Class KafkaCluster.Builder
- java.lang.Object
-
- com.oracle.bmc.managedkafka.model.KafkaCluster.Builder
-
- Enclosing class:
- KafkaCluster
public static class KafkaCluster.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KafkaCluster.BuilderaccessSubnets(List<SubnetSet> accessSubnets)Subnets where broker/coordinator VNICs will be created.KafkaCluster.BuilderbrokerShape(BrokerShape brokerShape)KafkaClusterbuild()KafkaCluster.BuilderclientCertificateBundle(String clientCertificateBundle)CA certificate bundle for mTLS broker authentication.KafkaCluster.BuilderclusterConfigId(String clusterConfigId)The OCID of Kafka Cluster configuration objectKafkaCluster.BuilderclusterConfigVersion(Integer clusterConfigVersion)The version of configuration objectKafkaCluster.BuilderclusterType(KafkaCluster.ClusterType clusterType)Type of the cluster to spin up.KafkaCluster.BuildercompartmentId(String compartmentId)The OCID of the compartment.KafkaCluster.BuildercoordinationType(KafkaCluster.CoordinationType coordinationType)Kafka coordination type.KafkaCluster.Buildercopy(KafkaCluster model)KafkaCluster.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.KafkaCluster.BuilderdisplayName(String displayName)A user-friendly name.KafkaCluster.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.KafkaCluster.Builderid(String id)The OCID of the KafkaCluster.KafkaCluster.BuilderkafkaBootstrapUrls(List<BootstrapUrl> kafkaBootstrapUrls)Bootstrap URL that can be used to connect to KafkaKafkaCluster.BuilderkafkaVersion(String kafkaVersion)Version of Kafka to use to spin up the clusterKafkaCluster.BuilderlifecycleDetails(String lifecycleDetails)A message that describes the current state of the KafkaCluster in more detail.KafkaCluster.BuilderlifecycleState(KafkaCluster.LifecycleState lifecycleState)The current state of the KafkaCluster.KafkaCluster.BuildersecretId(String secretId)The OCID of the secret that contains superuser password.KafkaCluster.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.KafkaCluster.BuildertimeCreated(Date timeCreated)The date and time the KafkaCluster was created, in the format defined by RFC 3339.KafkaCluster.BuildertimeUpdated(Date timeUpdated)The date and time the KafkaCluster was updated, in the format defined by RFC 3339.
-
-
-
Method Detail
-
id
public KafkaCluster.Builder id(String id)
The OCID of the KafkaCluster.- Parameters:
id- the value to set- Returns:
- this builder
-
displayName
public KafkaCluster.Builder displayName(String displayName)
A user-friendly name.Does not have to be unique, and it’s changeable.
- Parameters:
displayName- the value to set- Returns:
- this builder
-
compartmentId
public KafkaCluster.Builder compartmentId(String compartmentId)
The OCID of the compartment.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
timeCreated
public KafkaCluster.Builder timeCreated(Date timeCreated)
The date and time the KafkaCluster was created, in the format defined by RFC 3339.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public KafkaCluster.Builder timeUpdated(Date timeUpdated)
The date and time the KafkaCluster was updated, in the format defined by RFC 3339.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
lifecycleState
public KafkaCluster.Builder lifecycleState(KafkaCluster.LifecycleState lifecycleState)
The current state of the KafkaCluster.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public KafkaCluster.Builder lifecycleDetails(String lifecycleDetails)
A message that describes the current state of the KafkaCluster in more detail.For example, can be used to provide actionable information for a resource in the Failed state.
- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
accessSubnets
public KafkaCluster.Builder accessSubnets(List<SubnetSet> accessSubnets)
Subnets where broker/coordinator VNICs will be created.- Parameters:
accessSubnets- the value to set- Returns:
- this builder
-
clientCertificateBundle
public KafkaCluster.Builder clientCertificateBundle(String clientCertificateBundle)
CA certificate bundle for mTLS broker authentication.- Parameters:
clientCertificateBundle- the value to set- Returns:
- this builder
-
kafkaVersion
public KafkaCluster.Builder kafkaVersion(String kafkaVersion)
Version of Kafka to use to spin up the cluster- Parameters:
kafkaVersion- the value to set- Returns:
- this builder
-
clusterType
public KafkaCluster.Builder clusterType(KafkaCluster.ClusterType clusterType)
Type of the cluster to spin up.DEVELOPMENT - setting that allows to sacrifice HA and spin up cluster on a single node PRODUCTION - Minimum allowed broker count is 3
- Parameters:
clusterType- the value to set- Returns:
- this builder
-
brokerShape
public KafkaCluster.Builder brokerShape(BrokerShape brokerShape)
-
clusterConfigId
public KafkaCluster.Builder clusterConfigId(String clusterConfigId)
The OCID of Kafka Cluster configuration object- Parameters:
clusterConfigId- the value to set- Returns:
- this builder
-
clusterConfigVersion
public KafkaCluster.Builder clusterConfigVersion(Integer clusterConfigVersion)
The version of configuration object- Parameters:
clusterConfigVersion- the value to set- Returns:
- this builder
-
kafkaBootstrapUrls
public KafkaCluster.Builder kafkaBootstrapUrls(List<BootstrapUrl> kafkaBootstrapUrls)
Bootstrap URL that can be used to connect to Kafka- Parameters:
kafkaBootstrapUrls- the value to set- Returns:
- this builder
-
coordinationType
public KafkaCluster.Builder coordinationType(KafkaCluster.CoordinationType coordinationType)
Kafka coordination type.Set of available types depends on Kafka version
- Parameters:
coordinationType- the value to set- Returns:
- this builder
-
secretId
public KafkaCluster.Builder secretId(String secretId)
The OCID of the secret that contains superuser password.- Parameters:
secretId- the value to set- Returns:
- this builder
-
freeformTags
public KafkaCluster.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {"Department": "Finance"}
- Parameters:
freeformTags- the value to set- Returns:
- this builder
-
definedTags
public KafkaCluster.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {"Operations": {"CostCenter": "42"}}
- Parameters:
definedTags- the value to set- Returns:
- this builder
-
systemTags
public KafkaCluster.Builder systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Each key is predefined and scoped to a namespace.
Example: {"orcl-cloud": {"free-tier-retained": "true"}}
- Parameters:
systemTags- the value to set- Returns:
- this builder
-
build
public KafkaCluster build()
-
copy
public KafkaCluster.Builder copy(KafkaCluster model)
-
-