Class KafkaCluster.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • 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
      • 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
      • 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