Class ContainerClusterNodePool.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.container_cluster.ContainerClusterNodePool.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ContainerClusterNodePool>
- Enclosing interface:
- ContainerClusterNodePool
@Stability(Stable) public static final class ContainerClusterNodePool.Builder extends Object implements software.amazon.jsii.Builder<ContainerClusterNodePool>
A builder forContainerClusterNodePool
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
autoscaling
@Stability(Stable) public ContainerClusterNodePool.Builder autoscaling(ContainerClusterNodePoolAutoscaling autoscaling)
Sets the value ofContainerClusterNodePool.getAutoscaling()- Parameters:
autoscaling- autoscaling block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#autoscaling ContainerCluster#autoscaling}- Returns:
this
-
initialNodeCount
@Stability(Stable) public ContainerClusterNodePool.Builder initialNodeCount(Number initialNodeCount)
Sets the value ofContainerClusterNodePool.getInitialNodeCount()- Parameters:
initialNodeCount- The initial number of nodes for the pool. In regional or multi-zonal clusters, this is the number of nodes per zone. Changing this will force recreation of the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#initial_node_count ContainerCluster#initial_node_count}- Returns:
this
-
management
@Stability(Stable) public ContainerClusterNodePool.Builder management(ContainerClusterNodePoolManagement management)
Sets the value ofContainerClusterNodePool.getManagement()- Parameters:
management- management block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#management ContainerCluster#management}- Returns:
this
-
maxPodsPerNode
@Stability(Stable) public ContainerClusterNodePool.Builder maxPodsPerNode(Number maxPodsPerNode)
Sets the value ofContainerClusterNodePool.getMaxPodsPerNode()- Parameters:
maxPodsPerNode- The maximum number of pods per node in this node pool. Note that this does not work on node pools which are "route-based" - that is, node pools belonging to clusters that do not have IP Aliasing enabled. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#max_pods_per_node ContainerCluster#max_pods_per_node}- Returns:
this
-
name
@Stability(Stable) public ContainerClusterNodePool.Builder name(String name)
Sets the value ofContainerClusterNodePool.getName()- Parameters:
name- The name of the node pool. If left blank, Terraform will auto-generate a unique name. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#name ContainerCluster#name}- Returns:
this
-
namePrefix
@Stability(Stable) public ContainerClusterNodePool.Builder namePrefix(String namePrefix)
Sets the value ofContainerClusterNodePool.getNamePrefix()- Parameters:
namePrefix- Creates a unique name for the node pool beginning with the specified prefix. Conflicts with name. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#name_prefix ContainerCluster#name_prefix}- Returns:
this
-
networkConfig
@Stability(Stable) public ContainerClusterNodePool.Builder networkConfig(ContainerClusterNodePoolNetworkConfig networkConfig)
Sets the value ofContainerClusterNodePool.getNetworkConfig()- Parameters:
networkConfig- network_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#network_config ContainerCluster#network_config}- Returns:
this
-
nodeConfig
@Stability(Stable) public ContainerClusterNodePool.Builder nodeConfig(ContainerClusterNodePoolNodeConfig nodeConfig)
Sets the value ofContainerClusterNodePool.getNodeConfig()- Parameters:
nodeConfig- node_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#node_config ContainerCluster#node_config}- Returns:
this
-
nodeCount
@Stability(Stable) public ContainerClusterNodePool.Builder nodeCount(Number nodeCount)
Sets the value ofContainerClusterNodePool.getNodeCount()- Parameters:
nodeCount- The number of nodes per instance group. This field can be used to update the number of nodes per instance group but should not be used alongside autoscaling. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#node_count ContainerCluster#node_count}- Returns:
this
-
nodeLocations
@Stability(Stable) public ContainerClusterNodePool.Builder nodeLocations(List<String> nodeLocations)
Sets the value ofContainerClusterNodePool.getNodeLocations()- Parameters:
nodeLocations- The list of zones in which the node pool's nodes should be located. Nodes must be in the region of their regional cluster or in the same region as their cluster's zone for zonal clusters. If unspecified, the cluster-level node_locations will be used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#node_locations ContainerCluster#node_locations}- Returns:
this
-
placementPolicy
@Stability(Stable) public ContainerClusterNodePool.Builder placementPolicy(ContainerClusterNodePoolPlacementPolicy placementPolicy)
Sets the value ofContainerClusterNodePool.getPlacementPolicy()- Parameters:
placementPolicy- placement_policy block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#placement_policy ContainerCluster#placement_policy}- Returns:
this
-
queuedProvisioning
@Stability(Stable) public ContainerClusterNodePool.Builder queuedProvisioning(ContainerClusterNodePoolQueuedProvisioning queuedProvisioning)
Sets the value ofContainerClusterNodePool.getQueuedProvisioning()- Parameters:
queuedProvisioning- queued_provisioning block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#queued_provisioning ContainerCluster#queued_provisioning}- Returns:
this
-
upgradeSettings
@Stability(Stable) public ContainerClusterNodePool.Builder upgradeSettings(ContainerClusterNodePoolUpgradeSettings upgradeSettings)
Sets the value ofContainerClusterNodePool.getUpgradeSettings()- Parameters:
upgradeSettings- upgrade_settings block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#upgrade_settings ContainerCluster#upgrade_settings}- Returns:
this
-
version
@Stability(Stable) public ContainerClusterNodePool.Builder version(String version)
Sets the value ofContainerClusterNodePool.getVersion()- Parameters:
version- The Kubernetes version for the nodes in this pool. Note that if this field and auto_upgrade are both specified, they will fight each other for what the node version should be, so setting both is highly discouraged. While a fuzzy version can be specified, it's recommended that you specify explicit versions as Terraform will see spurious diffs when fuzzy versions are used. See the google_container_engine_versions data source's version_prefix field to approximate fuzzy versions in a Terraform-compatible way. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#version ContainerCluster#version}- Returns:
this
-
build
@Stability(Stable) public ContainerClusterNodePool build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ContainerClusterNodePool>- Returns:
- a new instance of
ContainerClusterNodePool - Throws:
NullPointerException- if any required attribute was not provided
-
-