Class CreateClusterDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.containerengine.model.CreateClusterDetails.Builder
-
- Enclosing class:
- CreateClusterDetails
public static class CreateClusterDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateClusterDetails
build()
CreateClusterDetails.Builder
clusterPodNetworkOptions(List<ClusterPodNetworkOptionDetails> clusterPodNetworkOptions)
Available CNIs and network options for existing and new node pools of the clusterCreateClusterDetails.Builder
compartmentId(String compartmentId)
The OCID of the compartment in which to create the cluster.CreateClusterDetails.Builder
copy(CreateClusterDetails model)
CreateClusterDetails.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.CreateClusterDetails.Builder
endpointConfig(CreateClusterEndpointConfigDetails endpointConfig)
The network configuration for access to the Cluster control plane.CreateClusterDetails.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.CreateClusterDetails.Builder
imagePolicyConfig(CreateImagePolicyConfigDetails imagePolicyConfig)
The image verification policy for signature validation.CreateClusterDetails.Builder
kmsKeyId(String kmsKeyId)
The OCID of the KMS key to be used as the master encryption key for Kubernetes secret encryption.CreateClusterDetails.Builder
kubernetesVersion(String kubernetesVersion)
The version of Kubernetes to install into the cluster masters.CreateClusterDetails.Builder
name(String name)
The name of the cluster.CreateClusterDetails.Builder
options(ClusterCreateOptions options)
Optional attributes for the cluster.CreateClusterDetails.Builder
type(ClusterType type)
Type of clusterCreateClusterDetails.Builder
vcnId(String vcnId)
The OCID of the virtual cloud network (VCN) in which to create the cluster.
-
-
-
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
-
endpointConfig
public CreateClusterDetails.Builder endpointConfig(CreateClusterEndpointConfigDetails endpointConfig)
The network configuration for access to the Cluster control plane.- Parameters:
endpointConfig
- 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
-
options
public CreateClusterDetails.Builder options(ClusterCreateOptions options)
Optional attributes for the cluster.- Parameters:
options
- 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
-
type
public CreateClusterDetails.Builder type(ClusterType type)
Type of cluster- Parameters:
type
- the value to set- Returns:
- this builder
-
build
public CreateClusterDetails build()
-
copy
public CreateClusterDetails.Builder copy(CreateClusterDetails model)
-
-