Class UpdateSparkConnectionDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.goldengate.model.UpdateSparkConnectionDetails.Builder
-
- Enclosing class:
- UpdateSparkConnectionDetails
public static class UpdateSparkConnectionDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
displayName
public UpdateSparkConnectionDetails.Builder displayName(String displayName)
-
description
public UpdateSparkConnectionDetails.Builder description(String description)
-
freeformTags
public UpdateSparkConnectionDetails.Builder freeformTags(Map<String,String> freeformTags)
-
definedTags
public UpdateSparkConnectionDetails.Builder definedTags(Map<String,Map<String,Object>> definedTags)
-
vaultId
public UpdateSparkConnectionDetails.Builder vaultId(String vaultId)
-
keyId
public UpdateSparkConnectionDetails.Builder keyId(String keyId)
-
nsgIds
public UpdateSparkConnectionDetails.Builder nsgIds(List<String> nsgIds)
-
subnetId
public UpdateSparkConnectionDetails.Builder subnetId(String subnetId)
-
routingMethod
public UpdateSparkConnectionDetails.Builder routingMethod(RoutingMethod routingMethod)
-
doesUseSecretIds
public UpdateSparkConnectionDetails.Builder doesUseSecretIds(Boolean doesUseSecretIds)
-
securityAttributes
public UpdateSparkConnectionDetails.Builder securityAttributes(Map<String,Map<String,Object>> securityAttributes)
-
submitMode
public UpdateSparkConnectionDetails.Builder submitMode(SparkConnection.SubmitMode submitMode)
Selects the submission channel.SUBMIT uses the Spark master RPC endpoint. REST uses the Spark standalone REST submission gateway.
- Parameters:
submitMode- the value to set- Returns:
- this builder
-
authenticationType
public UpdateSparkConnectionDetails.Builder authenticationType(SparkConnection.AuthenticationType authenticationType)
Authentication type for Spark.AES_RPC and SASL_ENCRYPTED securityProtocol values require authenticationType to be SHARED_SECRET. Use SHARED_SECRET only when the target cluster is configured with spark.authenticate=true.
- Parameters:
authenticationType- the value to set- Returns:
- this builder
-
securityProtocol
public UpdateSparkConnectionDetails.Builder securityProtocol(SparkConnection.SecurityProtocol securityProtocol)
Security protocol for Spark submission traffic.PLAINTEXT uses an unencrypted channel, TLS uses TLS for the selected submission endpoint, AES_RPC uses Spark RPC AES encryption, and SASL_ENCRYPTED uses legacy SASL encryption. AES_RPC and SASL_ENCRYPTED require authenticationType to be SHARED_SECRET.
- Parameters:
securityProtocol- the value to set- Returns:
- this builder
-
clusterEndpoint
public UpdateSparkConnectionDetails.Builder clusterEndpoint(String clusterEndpoint)
Spark master URL used for job submission.Required for both submitMode SUBMIT and REST. e.g.: ‘spark://spark-master.example.com:7077’ High availability can be configured with a comma-separated list, for example: ‘spark://h1.example.com:7077,h2.example.com:7077’
- Parameters:
clusterEndpoint- the value to set- Returns:
- this builder
-
restEndpoint
public UpdateSparkConnectionDetails.Builder restEndpoint(String restEndpoint)
Spark standalone REST submission base URL.e.g.: ‘https://spark-master.example.com:6066’ Applicable only and required when submitMode is REST.
- Parameters:
restEndpoint- the value to set- Returns:
- this builder
-
authSecret
public UpdateSparkConnectionDetails.Builder authSecret(char[] authSecret)
The shared secret used for Spark authentication.Applicable when authenticationType is SHARED_SECRET.
Deprecated: This field is deprecated and replaced by "authSecretSecretId". This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate
- Parameters:
authSecret- the value to set- Returns:
- this builder
-
authSecret
public UpdateSparkConnectionDetails.Builder authSecret(String authSecret)
-
authSecretSecretId
public UpdateSparkConnectionDetails.Builder authSecretSecretId(String authSecretSecretId)
The OCID of the Secret that stores the Spark authentication shared secret.Applicable when authenticationType is SHARED_SECRET. Note: When provided, ‘authSecret’ field must not be provided.
- Parameters:
authSecretSecretId- the value to set- Returns:
- this builder
-
rpcCipher
public UpdateSparkConnectionDetails.Builder rpcCipher(SparkConnection.RpcCipher rpcCipher)
Cipher transform used for Spark RPC encryption.Applicable when securityProtocol is AES_RPC. Defaults to AES_CTR_NOPADDING when not provided.
- Parameters:
rpcCipher- the value to set- Returns:
- this builder
-
restAuthSecretKey
public UpdateSparkConnectionDetails.Builder restAuthSecretKey(char[] restAuthSecretKey)
The BASE64URL-encoded HMAC secret key used to sign REST submission requests when the Spark master’s REST endpoint is protected by the JWS filter.Applicable only when submitMode is REST and the cluster enforces REST request signing. This setting is independent of authenticationType.
Deprecated: This field is deprecated and replaced by "restAuthSecretKeySecretId". This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate
- Parameters:
restAuthSecretKey- the value to set- Returns:
- this builder
-
restAuthSecretKey
public UpdateSparkConnectionDetails.Builder restAuthSecretKey(String restAuthSecretKey)
-
restAuthSecretKeySecretId
public UpdateSparkConnectionDetails.Builder restAuthSecretKeySecretId(String restAuthSecretKeySecretId)
The OCID of the Secret that stores the REST submission signing key.Applicable only when submitMode is REST and the cluster enforces REST request signing. This setting is independent of authenticationType. Note: When provided, ‘restAuthSecretKey’ field must not be provided.
- Parameters:
restAuthSecretKeySecretId- the value to set- Returns:
- this builder
-
trustStore
public UpdateSparkConnectionDetails.Builder trustStore(char[] trustStore)
The base64 encoded content of the trust store used to validate the Spark server certificate.Applicable when securityProtocol is TLS. Provide this when the server certificate is not already trusted by the JVM.
Deprecated: This field is deprecated and replaced by "trustStoreSecretId". This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate
- Parameters:
trustStore- the value to set- Returns:
- this builder
-
trustStore
public UpdateSparkConnectionDetails.Builder trustStore(String trustStore)
-
trustStoreSecretId
public UpdateSparkConnectionDetails.Builder trustStoreSecretId(String trustStoreSecretId)
The OCID of the Secret that stores the trust store content.Applicable when securityProtocol is TLS. Provide this when the server certificate is not already trusted by the JVM. Note: When provided, ‘trustStore’ field must not be provided.
- Parameters:
trustStoreSecretId- the value to set- Returns:
- this builder
-
trustStorePassword
public UpdateSparkConnectionDetails.Builder trustStorePassword(char[] trustStorePassword)
Password for the trust store.Applicable when securityProtocol is TLS and a trust store is provided. Required when ‘trustStore’ is provided.
Deprecated: This field is deprecated and replaced by "trustStorePasswordSecretId". This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate
- Parameters:
trustStorePassword- the value to set- Returns:
- this builder
-
trustStorePassword
public UpdateSparkConnectionDetails.Builder trustStorePassword(String trustStorePassword)
-
trustStorePasswordSecretId
public UpdateSparkConnectionDetails.Builder trustStorePasswordSecretId(String trustStorePasswordSecretId)
The OCID of the Secret that stores the trust store password.Applicable when securityProtocol is TLS and a trust store is provided. Required when ‘trustStoreSecretId’ is provided. Note: When provided, ‘trustStorePassword’ field must not be provided.
- Parameters:
trustStorePasswordSecretId- the value to set- Returns:
- this builder
-
trustStoreType
public UpdateSparkConnectionDetails.Builder trustStoreType(SparkConnection.TrustStoreType trustStoreType)
Trust store format used by the Spark client.Applicable when securityProtocol is TLS and a trust store is provided. Defaults to JKS when not provided. Provide this only when a trust store is provided.
- Parameters:
trustStoreType- the value to set- Returns:
- this builder
-
keyStore
public UpdateSparkConnectionDetails.Builder keyStore(char[] keyStore)
The base64 encoded content of the client key store used for mutual TLS.Provide this only when the target cluster requires client certificate authentication. Applicable when securityProtocol is TLS.
Deprecated: This field is deprecated and replaced by "keyStoreSecretId". This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate
- Parameters:
keyStore- the value to set- Returns:
- this builder
-
keyStore
public UpdateSparkConnectionDetails.Builder keyStore(String keyStore)
-
keyStoreSecretId
public UpdateSparkConnectionDetails.Builder keyStoreSecretId(String keyStoreSecretId)
The OCID of the Secret that stores the client key store content.Applicable when securityProtocol is TLS. Note: When provided, ‘keyStore’ field must not be provided.
- Parameters:
keyStoreSecretId- the value to set- Returns:
- this builder
-
keyStorePassword
public UpdateSparkConnectionDetails.Builder keyStorePassword(char[] keyStorePassword)
Password for the client key store.Applicable when securityProtocol is TLS and a client key store is provided. Required when ‘keyStore’ is provided.
Deprecated: This field is deprecated and replaced by "keyStorePasswordSecretId". This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate
- Parameters:
keyStorePassword- the value to set- Returns:
- this builder
-
keyStorePassword
public UpdateSparkConnectionDetails.Builder keyStorePassword(String keyStorePassword)
-
keyStorePasswordSecretId
public UpdateSparkConnectionDetails.Builder keyStorePasswordSecretId(String keyStorePasswordSecretId)
The OCID of the Secret that stores the client key store password.Applicable when securityProtocol is TLS and a client key store is provided. Required when ‘keyStoreSecretId’ is provided. Note: When provided, ‘keyStorePassword’ field must not be provided.
- Parameters:
keyStorePasswordSecretId- the value to set- Returns:
- this builder
-
keyStoreType
public UpdateSparkConnectionDetails.Builder keyStoreType(SparkConnection.KeyStoreType keyStoreType)
Client key store format used for mutual TLS.Applicable when securityProtocol is TLS and a client key store is provided. Defaults to JKS when not provided. Provide this only when a client key store is provided.
- Parameters:
keyStoreType- the value to set- Returns:
- this builder
-
sslKeyPassword
public UpdateSparkConnectionDetails.Builder sslKeyPassword(char[] sslKeyPassword)
Password for the certificate private key inside the client key store.Provide this only when it differs from the key store password. Applicable when securityProtocol is TLS and a client key store is provided.
Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This change follows the GoldenGate "Plain Text Fields in Connections" deprecation: https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#servicechanges_topic-GoldenGate
- Parameters:
sslKeyPassword- the value to set- Returns:
- this builder
-
sslKeyPassword
public UpdateSparkConnectionDetails.Builder sslKeyPassword(String sslKeyPassword)
-
sslKeyPasswordSecretId
public UpdateSparkConnectionDetails.Builder sslKeyPasswordSecretId(String sslKeyPasswordSecretId)
The OCID of the Secret that stores the private key password.Applicable when securityProtocol is TLS and a client key store is provided. Note: When provided, ‘sslKeyPassword’ field must not be provided.
- Parameters:
sslKeyPasswordSecretId- the value to set- Returns:
- this builder
-
tlsProtocol
public UpdateSparkConnectionDetails.Builder tlsProtocol(SparkConnection.TlsProtocol tlsProtocol)
TLS protocol negotiated by the Spark client.Applicable when securityProtocol is TLS. Defaults to TLS_V1_3 when not provided. Must be supported by the target cluster.
- Parameters:
tlsProtocol- the value to set- Returns:
- this builder
-
artifactLocation
public UpdateSparkConnectionDetails.Builder artifactLocation(UpdateSparkArtifactLocationDetails artifactLocation)
-
build
public UpdateSparkConnectionDetails build()
-
copy
public UpdateSparkConnectionDetails.Builder copy(UpdateSparkConnectionDetails model)
-
-