Class Cluster.Builder
- java.lang.Object
-
- com.oracle.bmc.containerengine.model.Cluster.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Cluster.Builder
availableKubernetesUpgrades(List<String> availableKubernetesUpgrades)
Available Kubernetes versions to which the clusters masters may be upgraded.Cluster
build()
Cluster.Builder
clusterPodNetworkOptions(List<ClusterPodNetworkOptionDetails> clusterPodNetworkOptions)
Available CNIs and network options for existing and new node pools of the clusterCluster.Builder
compartmentId(String compartmentId)
The OCID of the compartment in which the cluster exists.Cluster.Builder
copy(Cluster model)
Cluster.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Cluster.Builder
endpointConfig(ClusterEndpointConfig endpointConfig)
The network configuration for access to the Cluster control plane.Cluster.Builder
endpoints(ClusterEndpoints endpoints)
Endpoints served up by the cluster masters.Cluster.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.Cluster.Builder
id(String id)
The OCID of the cluster.Cluster.Builder
imagePolicyConfig(ImagePolicyConfig imagePolicyConfig)
The image verification policy for signature validation.Cluster.Builder
kmsKeyId(String kmsKeyId)
The OCID of the KMS key to be used as the master encryption key for Kubernetes secret encryption.Cluster.Builder
kubernetesVersion(String kubernetesVersion)
The version of Kubernetes running on the cluster masters.Cluster.Builder
lifecycleDetails(String lifecycleDetails)
Details about the state of the cluster masters.Cluster.Builder
lifecycleState(ClusterLifecycleState lifecycleState)
The state of the cluster masters.Cluster.Builder
metadata(ClusterMetadata metadata)
Metadata about the cluster.Cluster.Builder
name(String name)
The name of the cluster.Cluster.Builder
openIdConnectDiscoveryEndpoint(String openIdConnectDiscoveryEndpoint)
The cluster-specific OpenID Connect Discovery endpointCluster.Builder
options(ClusterCreateOptions options)
Optional attributes for the cluster.Cluster.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.Cluster.Builder
type(ClusterType type)
Type of clusterCluster.Builder
vcnId(String vcnId)
The OCID of the virtual cloud network (VCN) in which the cluster exists.
-
-
-
Method Detail
-
id
public Cluster.Builder id(String id)
The OCID of the cluster.- Parameters:
id
- the value to set- Returns:
- this builder
-
name
public Cluster.Builder name(String name)
The name of the cluster.- Parameters:
name
- the value to set- Returns:
- this builder
-
compartmentId
public Cluster.Builder compartmentId(String compartmentId)
The OCID of the compartment in which the cluster exists.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
endpointConfig
public Cluster.Builder endpointConfig(ClusterEndpointConfig endpointConfig)
The network configuration for access to the Cluster control plane.- Parameters:
endpointConfig
- the value to set- Returns:
- this builder
-
vcnId
public Cluster.Builder vcnId(String vcnId)
The OCID of the virtual cloud network (VCN) in which the cluster exists.- Parameters:
vcnId
- the value to set- Returns:
- this builder
-
kubernetesVersion
public Cluster.Builder kubernetesVersion(String kubernetesVersion)
The version of Kubernetes running on the cluster masters.- Parameters:
kubernetesVersion
- the value to set- Returns:
- this builder
-
kmsKeyId
public Cluster.Builder kmsKeyId(String kmsKeyId)
The OCID of the KMS key to be used as the master encryption key for Kubernetes secret encryption.- Parameters:
kmsKeyId
- the value to set- Returns:
- this builder
-
freeformTags
public Cluster.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 Cluster.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 Cluster.Builder systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.These predefined keys are scoped to namespaces. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
options
public Cluster.Builder options(ClusterCreateOptions options)
Optional attributes for the cluster.- Parameters:
options
- the value to set- Returns:
- this builder
-
metadata
public Cluster.Builder metadata(ClusterMetadata metadata)
Metadata about the cluster.- Parameters:
metadata
- the value to set- Returns:
- this builder
-
lifecycleState
public Cluster.Builder lifecycleState(ClusterLifecycleState lifecycleState)
The state of the cluster masters.For more information, see Monitoring Clusters
- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleDetails
public Cluster.Builder lifecycleDetails(String lifecycleDetails)
Details about the state of the cluster masters.- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
endpoints
public Cluster.Builder endpoints(ClusterEndpoints endpoints)
Endpoints served up by the cluster masters.- Parameters:
endpoints
- the value to set- Returns:
- this builder
-
availableKubernetesUpgrades
public Cluster.Builder availableKubernetesUpgrades(List<String> availableKubernetesUpgrades)
Available Kubernetes versions to which the clusters masters may be upgraded.- Parameters:
availableKubernetesUpgrades
- the value to set- Returns:
- this builder
-
imagePolicyConfig
public Cluster.Builder imagePolicyConfig(ImagePolicyConfig imagePolicyConfig)
The image verification policy for signature validation.- Parameters:
imagePolicyConfig
- the value to set- Returns:
- this builder
-
clusterPodNetworkOptions
public Cluster.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 Cluster.Builder type(ClusterType type)
Type of cluster- Parameters:
type
- the value to set- Returns:
- this builder
-
openIdConnectDiscoveryEndpoint
public Cluster.Builder openIdConnectDiscoveryEndpoint(String openIdConnectDiscoveryEndpoint)
The cluster-specific OpenID Connect Discovery endpoint- Parameters:
openIdConnectDiscoveryEndpoint
- the value to set- Returns:
- this builder
-
build
public Cluster build()
-
copy
public Cluster.Builder copy(Cluster model)
-
-