Class CreateClusterDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • name

        public CreateClusterDetails.Builder name​(String name)
        The name of the cluster.

        Avoid entering confidential information.

        Parameters:
        name - the value to set
        Returns:
        this builder
      • compartmentId

        public CreateClusterDetails.Builder compartmentId​(String compartmentId)
        The OCID of the compartment in which to create the cluster.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • vcnId

        public CreateClusterDetails.Builder vcnId​(String vcnId)
        The OCID of the virtual cloud network (VCN) in which to create the cluster.
        Parameters:
        vcnId - the value to set
        Returns:
        this builder
      • kubernetesVersion

        public CreateClusterDetails.Builder kubernetesVersion​(String kubernetesVersion)
        The version of Kubernetes to install into the cluster masters.
        Parameters:
        kubernetesVersion - the value to set
        Returns:
        this builder
      • kmsKeyId

        public CreateClusterDetails.Builder kmsKeyId​(String kmsKeyId)
        The OCID of the KMS key to be used as the master encryption key for Kubernetes secret encryption.

        When used, kubernetesVersion must be at least v1.13.0.

        Parameters:
        kmsKeyId - the value to set
        Returns:
        this builder
      • freeformTags

        public CreateClusterDetails.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 CreateClusterDetails.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
      • imagePolicyConfig

        public CreateClusterDetails.Builder imagePolicyConfig​(CreateImagePolicyConfigDetails imagePolicyConfig)
        The image verification policy for signature validation.

        Once a policy is created and enabled with one or more kms keys, the policy will ensure all images deployed has been signed with the key(s) attached to the policy.

        Parameters:
        imagePolicyConfig - the value to set
        Returns:
        this builder
      • clusterPodNetworkOptions

        public CreateClusterDetails.Builder clusterPodNetworkOptions​(List<ClusterPodNetworkOptionDetails> clusterPodNetworkOptions)
        Available CNIs and network options for existing and new node pools of the cluster
        Parameters:
        clusterPodNetworkOptions - the value to set
        Returns:
        this builder