Class UpdateNodePoolDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.containerengine.model.UpdateNodePoolDetails.Builder
-
- Enclosing class:
- UpdateNodePoolDetails
public static class UpdateNodePoolDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateNodePoolDetails
build()
UpdateNodePoolDetails.Builder
copy(UpdateNodePoolDetails model)
UpdateNodePoolDetails.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.UpdateNodePoolDetails.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.UpdateNodePoolDetails.Builder
initialNodeLabels(List<KeyValue> initialNodeLabels)
A list of key/value pairs to add to nodes after they join the Kubernetes cluster.UpdateNodePoolDetails.Builder
kubernetesVersion(String kubernetesVersion)
The version of Kubernetes to which the nodes in the node pool should be upgraded.UpdateNodePoolDetails.Builder
name(String name)
The new name for the cluster.UpdateNodePoolDetails.Builder
nodeConfigDetails(UpdateNodePoolNodeConfigDetails nodeConfigDetails)
The configuration of nodes in the node pool.UpdateNodePoolDetails.Builder
nodeEvictionNodePoolSettings(NodeEvictionNodePoolSettings nodeEvictionNodePoolSettings)
UpdateNodePoolDetails.Builder
nodeMetadata(Map<String,String> nodeMetadata)
A list of key/value pairs to add to each underlying OCI instance in the node pool on launch.UpdateNodePoolDetails.Builder
nodePoolCyclingDetails(NodePoolCyclingDetails nodePoolCyclingDetails)
UpdateNodePoolDetails.Builder
nodeShape(String nodeShape)
The name of the node shape of the nodes in the node pool used on launch.UpdateNodePoolDetails.Builder
nodeShapeConfig(UpdateNodeShapeConfigDetails nodeShapeConfig)
Specify the configuration of the shape to launch nodes in the node pool.UpdateNodePoolDetails.Builder
nodeSourceDetails(NodeSourceDetails nodeSourceDetails)
Specify the source to use to launch nodes in the node pool.UpdateNodePoolDetails.Builder
quantityPerSubnet(Integer quantityPerSubnet)
The number of nodes to have in each subnet specified in the subnetIds property.UpdateNodePoolDetails.Builder
sshPublicKey(String sshPublicKey)
The SSH public key to add to each node in the node pool on launch.UpdateNodePoolDetails.Builder
subnetIds(List<String> subnetIds)
The OCIDs of the subnets in which to place nodes for this node pool.
-
-
-
Method Detail
-
name
public UpdateNodePoolDetails.Builder name(String name)
The new name for the cluster.Avoid entering confidential information.
- Parameters:
name
- the value to set- Returns:
- this builder
-
kubernetesVersion
public UpdateNodePoolDetails.Builder kubernetesVersion(String kubernetesVersion)
The version of Kubernetes to which the nodes in the node pool should be upgraded.- Parameters:
kubernetesVersion
- the value to set- Returns:
- this builder
-
initialNodeLabels
public UpdateNodePoolDetails.Builder initialNodeLabels(List<KeyValue> initialNodeLabels)
A list of key/value pairs to add to nodes after they join the Kubernetes cluster.- Parameters:
initialNodeLabels
- the value to set- Returns:
- this builder
-
quantityPerSubnet
public UpdateNodePoolDetails.Builder quantityPerSubnet(Integer quantityPerSubnet)
The number of nodes to have in each subnet specified in the subnetIds property.This property is deprecated, use nodeConfigDetails instead. If the current value of quantityPerSubnet is greater than 0, you can only use quantityPerSubnet to scale the node pool. If the current value of quantityPerSubnet is equal to 0 and the current value of size in nodeConfigDetails is greater than 0, before you can use quantityPerSubnet, you must first scale the node pool to 0 nodes using nodeConfigDetails.
- Parameters:
quantityPerSubnet
- the value to set- Returns:
- this builder
-
subnetIds
public UpdateNodePoolDetails.Builder subnetIds(List<String> subnetIds)
The OCIDs of the subnets in which to place nodes for this node pool.This property is deprecated, use nodeConfigDetails instead. Only one of the subnetIds or nodeConfigDetails properties can be specified.
- Parameters:
subnetIds
- the value to set- Returns:
- this builder
-
nodeConfigDetails
public UpdateNodePoolDetails.Builder nodeConfigDetails(UpdateNodePoolNodeConfigDetails nodeConfigDetails)
The configuration of nodes in the node pool.Only one of the subnetIds or nodeConfigDetails properties should be specified. If the current value of quantityPerSubnet is greater than 0, the node pool may still be scaled using quantityPerSubnet. Before you can use nodeConfigDetails, you must first scale the node pool to 0 nodes using quantityPerSubnet.
- Parameters:
nodeConfigDetails
- the value to set- Returns:
- this builder
-
nodeMetadata
public UpdateNodePoolDetails.Builder nodeMetadata(Map<String,String> nodeMetadata)
A list of key/value pairs to add to each underlying OCI instance in the node pool on launch.- Parameters:
nodeMetadata
- the value to set- Returns:
- this builder
-
nodeSourceDetails
public UpdateNodePoolDetails.Builder nodeSourceDetails(NodeSourceDetails nodeSourceDetails)
Specify the source to use to launch nodes in the node pool.Currently, image is the only supported source.
- Parameters:
nodeSourceDetails
- the value to set- Returns:
- this builder
-
sshPublicKey
public UpdateNodePoolDetails.Builder sshPublicKey(String sshPublicKey)
The SSH public key to add to each node in the node pool on launch.- Parameters:
sshPublicKey
- the value to set- Returns:
- this builder
-
nodeShape
public UpdateNodePoolDetails.Builder nodeShape(String nodeShape)
The name of the node shape of the nodes in the node pool used on launch.- Parameters:
nodeShape
- the value to set- Returns:
- this builder
-
nodeShapeConfig
public UpdateNodePoolDetails.Builder nodeShapeConfig(UpdateNodeShapeConfigDetails nodeShapeConfig)
Specify the configuration of the shape to launch nodes in the node pool.- Parameters:
nodeShapeConfig
- the value to set- Returns:
- this builder
-
freeformTags
public UpdateNodePoolDetails.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 UpdateNodePoolDetails.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
-
nodeEvictionNodePoolSettings
public UpdateNodePoolDetails.Builder nodeEvictionNodePoolSettings(NodeEvictionNodePoolSettings nodeEvictionNodePoolSettings)
-
nodePoolCyclingDetails
public UpdateNodePoolDetails.Builder nodePoolCyclingDetails(NodePoolCyclingDetails nodePoolCyclingDetails)
-
build
public UpdateNodePoolDetails build()
-
copy
public UpdateNodePoolDetails.Builder copy(UpdateNodePoolDetails model)
-
-