public static class CreateNodePoolDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CreateNodePoolDetails |
build() |
CreateNodePoolDetails.Builder |
clusterId(String clusterId)
The OCID of the cluster to which this node pool is attached.
|
CreateNodePoolDetails.Builder |
compartmentId(String compartmentId)
The OCID of the compartment in which the node pool exists.
|
CreateNodePoolDetails.Builder |
copy(CreateNodePoolDetails model) |
CreateNodePoolDetails.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
CreateNodePoolDetails.Builder |
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.
|
CreateNodePoolDetails.Builder |
initialNodeLabels(List<KeyValue> initialNodeLabels)
A list of key/value pairs to add to nodes after they join the Kubernetes cluster.
|
CreateNodePoolDetails.Builder |
kubernetesVersion(String kubernetesVersion)
The version of Kubernetes to install on the nodes in the node pool.
|
CreateNodePoolDetails.Builder |
name(String name)
The name of the node pool.
|
CreateNodePoolDetails.Builder |
nodeConfigDetails(CreateNodePoolNodeConfigDetails nodeConfigDetails)
The configuration of nodes in the node pool.
|
CreateNodePoolDetails.Builder |
nodeEvictionNodePoolSettings(NodeEvictionNodePoolSettings nodeEvictionNodePoolSettings) |
CreateNodePoolDetails.Builder |
nodeImageName(String nodeImageName)
Deprecated.
|
CreateNodePoolDetails.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.
|
CreateNodePoolDetails.Builder |
nodePoolCyclingDetails(NodePoolCyclingDetails nodePoolCyclingDetails) |
CreateNodePoolDetails.Builder |
nodeShape(String nodeShape)
The name of the node shape of the nodes in the node pool.
|
CreateNodePoolDetails.Builder |
nodeShapeConfig(CreateNodeShapeConfigDetails nodeShapeConfig)
Specify the configuration of the shape to launch nodes in the node pool.
|
CreateNodePoolDetails.Builder |
nodeSourceDetails(NodeSourceDetails nodeSourceDetails)
Specify the source to use to launch nodes in the node pool.
|
CreateNodePoolDetails.Builder |
quantityPerSubnet(Integer quantityPerSubnet)
Optional, default to 1.
|
CreateNodePoolDetails.Builder |
sshPublicKey(String sshPublicKey)
The SSH public key on each node in the node pool on launch.
|
CreateNodePoolDetails.Builder |
subnetIds(List<String> subnetIds)
The OCIDs of the subnets in which to place nodes for this node pool.
|
public CreateNodePoolDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment in which the node pool exists.
compartmentId
- the value to setpublic CreateNodePoolDetails.Builder clusterId(String clusterId)
The OCID of the cluster to which this node pool is attached.
clusterId
- the value to setpublic CreateNodePoolDetails.Builder name(String name)
The name of the node pool. Avoid entering confidential information.
name
- the value to setpublic CreateNodePoolDetails.Builder kubernetesVersion(String kubernetesVersion)
The version of Kubernetes to install on the nodes in the node pool.
kubernetesVersion
- the value to setpublic CreateNodePoolDetails.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.
nodeMetadata
- the value to setpublic CreateNodePoolDetails.Builder nodeImageName(String nodeImageName)
Deprecated. Use nodeSourceDetails
instead. If you specify values for both, this
value is ignored. The name of the image running on the nodes in the node pool.
nodeImageName
- the value to setpublic CreateNodePoolDetails.Builder nodeSourceDetails(NodeSourceDetails nodeSourceDetails)
Specify the source to use to launch nodes in the node pool. Currently, image is the only supported source.
nodeSourceDetails
- the value to setpublic CreateNodePoolDetails.Builder nodeShape(String nodeShape)
The name of the node shape of the nodes in the node pool.
nodeShape
- the value to setpublic CreateNodePoolDetails.Builder nodeShapeConfig(CreateNodeShapeConfigDetails nodeShapeConfig)
Specify the configuration of the shape to launch nodes in the node pool.
nodeShapeConfig
- the value to setpublic CreateNodePoolDetails.Builder initialNodeLabels(List<KeyValue> initialNodeLabels)
A list of key/value pairs to add to nodes after they join the Kubernetes cluster.
initialNodeLabels
- the value to setpublic CreateNodePoolDetails.Builder sshPublicKey(String sshPublicKey)
The SSH public key on each node in the node pool on launch.
sshPublicKey
- the value to setpublic CreateNodePoolDetails.Builder quantityPerSubnet(Integer quantityPerSubnet)
Optional, default to 1. The number of nodes to create in each subnet specified in subnetIds property. When used, subnetIds is required. This property is deprecated, use nodeConfigDetails instead.
quantityPerSubnet
- the value to setpublic CreateNodePoolDetails.Builder subnetIds(List<String> subnetIds)
The OCIDs of the subnets in which to place nodes for this node pool. When used, quantityPerSubnet can be provided. This property is deprecated, use nodeConfigDetails. Exactly one of the subnetIds or nodeConfigDetails properties must be specified.
subnetIds
- the value to setpublic CreateNodePoolDetails.Builder nodeConfigDetails(CreateNodePoolNodeConfigDetails nodeConfigDetails)
The configuration of nodes in the node pool. Exactly one of the subnetIds or nodeConfigDetails properties must be specified.
nodeConfigDetails
- the value to setpublic CreateNodePoolDetails.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"}
freeformTags
- the value to setpublic CreateNodePoolDetails.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"}}
definedTags
- the value to setpublic CreateNodePoolDetails.Builder nodeEvictionNodePoolSettings(NodeEvictionNodePoolSettings nodeEvictionNodePoolSettings)
public CreateNodePoolDetails.Builder nodePoolCyclingDetails(NodePoolCyclingDetails nodePoolCyclingDetails)
public CreateNodePoolDetails build()
public CreateNodePoolDetails.Builder copy(CreateNodePoolDetails model)
Copyright © 2016–2024. All rights reserved.