Class SparkConnection.Builder
- java.lang.Object
-
- com.oracle.bmc.goldengate.model.SparkConnection.Builder
-
- Enclosing class:
- SparkConnection
public static class SparkConnection.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
id
public SparkConnection.Builder id(String id)
-
displayName
public SparkConnection.Builder displayName(String displayName)
-
description
public SparkConnection.Builder description(String description)
-
compartmentId
public SparkConnection.Builder compartmentId(String compartmentId)
-
freeformTags
public SparkConnection.Builder freeformTags(Map<String,String> freeformTags)
-
definedTags
public SparkConnection.Builder definedTags(Map<String,Map<String,Object>> definedTags)
-
lifecycleState
public SparkConnection.Builder lifecycleState(Connection.LifecycleState lifecycleState)
-
lifecycleDetails
public SparkConnection.Builder lifecycleDetails(String lifecycleDetails)
-
timeCreated
public SparkConnection.Builder timeCreated(Date timeCreated)
-
timeUpdated
public SparkConnection.Builder timeUpdated(Date timeUpdated)
-
locks
public SparkConnection.Builder locks(List<ResourceLock> locks)
-
vaultId
public SparkConnection.Builder vaultId(String vaultId)
-
keyId
public SparkConnection.Builder keyId(String keyId)
-
ingressIps
public SparkConnection.Builder ingressIps(List<IngressIpDetails> ingressIps)
-
nsgIds
public SparkConnection.Builder nsgIds(List<String> nsgIds)
-
subnetId
public SparkConnection.Builder subnetId(String subnetId)
-
routingMethod
public SparkConnection.Builder routingMethod(RoutingMethod routingMethod)
-
doesUseSecretIds
public SparkConnection.Builder doesUseSecretIds(Boolean doesUseSecretIds)
-
subscriptionId
public SparkConnection.Builder subscriptionId(String subscriptionId)
-
clusterPlacementGroupId
public SparkConnection.Builder clusterPlacementGroupId(String clusterPlacementGroupId)
-
securityAttributes
public SparkConnection.Builder securityAttributes(Map<String,Map<String,Object>> securityAttributes)
-
technologyType
public SparkConnection.Builder technologyType(SparkConnection.TechnologyType technologyType)
The Spark technology type.- Parameters:
technologyType- the value to set- Returns:
- this builder
-
submitMode
public SparkConnection.Builder submitMode(SparkConnection.SubmitMode submitMode)
Submission channel used to connect to Spark.- Parameters:
submitMode- the value to set- Returns:
- this builder
-
authenticationType
public SparkConnection.Builder authenticationType(SparkConnection.AuthenticationType authenticationType)
Authentication type for Spark.- Parameters:
authenticationType- the value to set- Returns:
- this builder
-
securityProtocol
public SparkConnection.Builder securityProtocol(SparkConnection.SecurityProtocol securityProtocol)
Security protocol for Spark submission traffic.- Parameters:
securityProtocol- the value to set- Returns:
- this builder
-
clusterEndpoint
public SparkConnection.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 SparkConnection.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
-
authSecretSecretId
public SparkConnection.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 SparkConnection.Builder rpcCipher(SparkConnection.RpcCipher rpcCipher)
Cipher transform used for Spark RPC encryption.Applicable when securityProtocol is AES_RPC.
- Parameters:
rpcCipher- the value to set- Returns:
- this builder
-
restAuthSecretKeySecretId
public SparkConnection.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
-
trustStoreSecretId
public SparkConnection.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
-
trustStorePasswordSecretId
public SparkConnection.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 SparkConnection.Builder trustStoreType(SparkConnection.TrustStoreType trustStoreType)
Trust store format used by the Spark client.- Parameters:
trustStoreType- the value to set- Returns:
- this builder
-
keyStoreSecretId
public SparkConnection.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
-
keyStorePasswordSecretId
public SparkConnection.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 SparkConnection.Builder keyStoreType(SparkConnection.KeyStoreType keyStoreType)
Client key store format used for mutual TLS.- Parameters:
keyStoreType- the value to set- Returns:
- this builder
-
sslKeyPasswordSecretId
public SparkConnection.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 SparkConnection.Builder tlsProtocol(SparkConnection.TlsProtocol tlsProtocol)
TLS protocol negotiated by the Spark client.- Parameters:
tlsProtocol- the value to set- Returns:
- this builder
-
artifactLocation
public SparkConnection.Builder artifactLocation(SparkArtifactLocation artifactLocation)
-
build
public SparkConnection build()
-
copy
public SparkConnection.Builder copy(SparkConnection model)
-
-