Class NodePool.Builder
- java.lang.Object
-
- com.oracle.bmc.containerengine.model.NodePool.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodePoolbuild()NodePool.BuilderclusterId(String clusterId)The OCID of the cluster to which this node pool is attached.NodePool.BuildercompartmentId(String compartmentId)The OCID of the compartment in which the node pool exists.NodePool.Buildercopy(NodePool model)NodePool.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.NodePool.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.NodePool.Builderid(String id)The OCID of the node pool.NodePool.BuilderinitialNodeLabels(List<KeyValue> initialNodeLabels)A list of key/value pairs to add to nodes after they join the Kubernetes cluster.NodePool.BuilderkubernetesVersion(String kubernetesVersion)The version of Kubernetes running on the nodes in the node pool.NodePool.BuilderlifecycleDetails(String lifecycleDetails)Details about the state of the nodepool.NodePool.BuilderlifecycleState(NodePoolLifecycleState lifecycleState)The state of the nodepool.NodePool.Buildername(String name)The name of the node pool.NodePool.BuildernodeConfigDetails(NodePoolNodeConfigDetails nodeConfigDetails)The configuration of nodes in the node pool.NodePool.BuildernodeEvictionNodePoolSettings(NodeEvictionNodePoolSettings nodeEvictionNodePoolSettings)NodePool.BuildernodeImageId(String nodeImageId)Deprecated.NodePool.BuildernodeImageName(String nodeImageName)Deprecated.NodePool.BuildernodeMetadata(Map<String,String> nodeMetadata)A list of key/value pairs to add to each underlying OCI instance in the node pool on launch.NodePool.BuildernodePoolCyclingDetails(NodePoolCyclingDetails nodePoolCyclingDetails)NodePool.Buildernodes(List<Node> nodes)The nodes in the node pool.NodePool.BuildernodeShape(String nodeShape)The name of the node shape of the nodes in the node pool.NodePool.BuildernodeShapeConfig(NodeShapeConfig nodeShapeConfig)The shape configuration of the nodes.NodePool.BuildernodeSource(NodeSourceOption nodeSource)Deprecated.NodePool.BuildernodeSourceDetails(NodeSourceDetails nodeSourceDetails)Source running on the nodes in the node pool.NodePool.BuilderquantityPerSubnet(Integer quantityPerSubnet)The number of nodes in each subnet.NodePool.BuildersshPublicKey(String sshPublicKey)The SSH public key on each node in the node pool on launch.NodePool.BuildersubnetIds(List<String> subnetIds)The OCIDs of the subnets in which to place nodes for this node pool.NodePool.BuildersystemTags(Map<String,Map<String,Object>> systemTags)Usage of system tag keys.
-
-
-
Method Detail
-
id
public NodePool.Builder id(String id)
The OCID of the node pool.- Parameters:
id- the value to set- Returns:
- this builder
-
lifecycleState
public NodePool.Builder lifecycleState(NodePoolLifecycleState lifecycleState)
The state of the nodepool.For more information, see Monitoring Clusters
- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public NodePool.Builder lifecycleDetails(String lifecycleDetails)
Details about the state of the nodepool.- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
compartmentId
public NodePool.Builder compartmentId(String compartmentId)
The OCID of the compartment in which the node pool exists.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
clusterId
public NodePool.Builder clusterId(String clusterId)
The OCID of the cluster to which this node pool is attached.- Parameters:
clusterId- the value to set- Returns:
- this builder
-
name
public NodePool.Builder name(String name)
The name of the node pool.- Parameters:
name- the value to set- Returns:
- this builder
-
kubernetesVersion
public NodePool.Builder kubernetesVersion(String kubernetesVersion)
The version of Kubernetes running on the nodes in the node pool.- Parameters:
kubernetesVersion- the value to set- Returns:
- this builder
-
nodeMetadata
public NodePool.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
-
nodeImageId
public NodePool.Builder nodeImageId(String nodeImageId)
Deprecated.see nodeSource. The OCID of the image running on the nodes in the node pool.
- Parameters:
nodeImageId- the value to set- Returns:
- this builder
-
nodeImageName
public NodePool.Builder nodeImageName(String nodeImageName)
Deprecated.see nodeSource. The name of the image running on the nodes in the node pool.
- Parameters:
nodeImageName- the value to set- Returns:
- this builder
-
nodeShapeConfig
public NodePool.Builder nodeShapeConfig(NodeShapeConfig nodeShapeConfig)
The shape configuration of the nodes.- Parameters:
nodeShapeConfig- the value to set- Returns:
- this builder
-
nodeSource
public NodePool.Builder nodeSource(NodeSourceOption nodeSource)
Deprecated.see nodeSourceDetails. Source running on the nodes in the node pool.
- Parameters:
nodeSource- the value to set- Returns:
- this builder
-
nodeSourceDetails
public NodePool.Builder nodeSourceDetails(NodeSourceDetails nodeSourceDetails)
Source running on the nodes in the node pool.- Parameters:
nodeSourceDetails- the value to set- Returns:
- this builder
-
nodeShape
public NodePool.Builder nodeShape(String nodeShape)
The name of the node shape of the nodes in the node pool.- Parameters:
nodeShape- the value to set- Returns:
- this builder
-
initialNodeLabels
public NodePool.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
-
sshPublicKey
public NodePool.Builder sshPublicKey(String sshPublicKey)
The SSH public key on each node in the node pool on launch.- Parameters:
sshPublicKey- the value to set- Returns:
- this builder
-
quantityPerSubnet
public NodePool.Builder quantityPerSubnet(Integer quantityPerSubnet)
The number of nodes in each subnet.- Parameters:
quantityPerSubnet- the value to set- Returns:
- this builder
-
subnetIds
public NodePool.Builder subnetIds(List<String> subnetIds)
The OCIDs of the subnets in which to place nodes for this node pool.- Parameters:
subnetIds- the value to set- Returns:
- this builder
-
nodes
public NodePool.Builder nodes(List<Node> nodes)
The nodes in the node pool.- Parameters:
nodes- the value to set- Returns:
- this builder
-
nodeConfigDetails
public NodePool.Builder nodeConfigDetails(NodePoolNodeConfigDetails nodeConfigDetails)
The configuration of nodes in the node pool.- Parameters:
nodeConfigDetails- the value to set- Returns:
- this builder
-
freeformTags
public NodePool.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 NodePool.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 NodePool.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
-
nodeEvictionNodePoolSettings
public NodePool.Builder nodeEvictionNodePoolSettings(NodeEvictionNodePoolSettings nodeEvictionNodePoolSettings)
-
nodePoolCyclingDetails
public NodePool.Builder nodePoolCyclingDetails(NodePoolCyclingDetails nodePoolCyclingDetails)
-
build
public NodePool build()
-
copy
public NodePool.Builder copy(NodePool model)
-
-