Class ClusterSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.containerengine.model.ClusterSummary.Builder
-
- Enclosing class:
- ClusterSummary
public static class ClusterSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterSummary.Builder
availableKubernetesUpgrades(List<String> availableKubernetesUpgrades)
Available Kubernetes versions to which the clusters masters may be upgraded.ClusterSummary
build()
ClusterSummary.Builder
clusterPodNetworkOptions(List<ClusterPodNetworkOptionDetails> clusterPodNetworkOptions)
Available CNIs and network options for existing and new node pools of the clusterClusterSummary.Builder
compartmentId(String compartmentId)
The OCID of the compartment in which the cluster exists.ClusterSummary.Builder
copy(ClusterSummary model)
ClusterSummary.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.ClusterSummary.Builder
endpointConfig(ClusterEndpointConfig endpointConfig)
The network configuration for access to the Cluster control plane.ClusterSummary.Builder
endpoints(ClusterEndpoints endpoints)
Endpoints served up by the cluster masters.ClusterSummary.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.ClusterSummary.Builder
id(String id)
The OCID of the cluster.ClusterSummary.Builder
imagePolicyConfig(ImagePolicyConfig imagePolicyConfig)
The image verification policy for signature validation.ClusterSummary.Builder
kubernetesVersion(String kubernetesVersion)
The version of Kubernetes running on the cluster masters.ClusterSummary.Builder
lifecycleDetails(String lifecycleDetails)
Details about the state of the cluster masters.ClusterSummary.Builder
lifecycleState(ClusterLifecycleState lifecycleState)
The state of the cluster masters.ClusterSummary.Builder
metadata(ClusterMetadata metadata)
Metadata about the cluster.ClusterSummary.Builder
name(String name)
The name of the cluster.ClusterSummary.Builder
options(ClusterCreateOptions options)
Optional attributes for the cluster.ClusterSummary.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.ClusterSummary.Builder
type(ClusterType type)
Type of cluster.ClusterSummary.Builder
vcnId(String vcnId)
The OCID of the virtual cloud network (VCN) in which the cluster exists
-
-
-
Method Detail
-
id
public ClusterSummary.Builder id(String id)
The OCID of the cluster.- Parameters:
id
- the value to set- Returns:
- this builder
-
name
public ClusterSummary.Builder name(String name)
The name of the cluster.- Parameters:
name
- the value to set- Returns:
- this builder
-
compartmentId
public ClusterSummary.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 ClusterSummary.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 ClusterSummary.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 ClusterSummary.Builder kubernetesVersion(String kubernetesVersion)
The version of Kubernetes running on the cluster masters.- Parameters:
kubernetesVersion
- the value to set- Returns:
- this builder
-
freeformTags
public ClusterSummary.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 ClusterSummary.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 ClusterSummary.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 ClusterSummary.Builder options(ClusterCreateOptions options)
Optional attributes for the cluster.- Parameters:
options
- the value to set- Returns:
- this builder
-
metadata
public ClusterSummary.Builder metadata(ClusterMetadata metadata)
Metadata about the cluster.- Parameters:
metadata
- the value to set- Returns:
- this builder
-
lifecycleState
public ClusterSummary.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 ClusterSummary.Builder lifecycleDetails(String lifecycleDetails)
Details about the state of the cluster masters.- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
endpoints
public ClusterSummary.Builder endpoints(ClusterEndpoints endpoints)
Endpoints served up by the cluster masters.- Parameters:
endpoints
- the value to set- Returns:
- this builder
-
availableKubernetesUpgrades
public ClusterSummary.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 ClusterSummary.Builder imagePolicyConfig(ImagePolicyConfig imagePolicyConfig)
The image verification policy for signature validation.- Parameters:
imagePolicyConfig
- the value to set- Returns:
- this builder
-
clusterPodNetworkOptions
public ClusterSummary.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 ClusterSummary.Builder type(ClusterType type)
Type of cluster.Values can be BASIC_CLUSTER or ENHANCED_CLUSTER. For more information, see Cluster Types
- Parameters:
type
- the value to set- Returns:
- this builder
-
build
public ClusterSummary build()
-
copy
public ClusterSummary.Builder copy(ClusterSummary model)
-
-