Class ContainerNodePoolPlacementPolicy.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.container_node_pool.ContainerNodePoolPlacementPolicy.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ContainerNodePoolPlacementPolicy>
- Enclosing interface:
- ContainerNodePoolPlacementPolicy
@Stability(Stable) public static final class ContainerNodePoolPlacementPolicy.Builder extends Object implements software.amazon.jsii.Builder<ContainerNodePoolPlacementPolicy>
A builder forContainerNodePoolPlacementPolicy
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContainerNodePoolPlacementPolicybuild()Builds the configured instance.ContainerNodePoolPlacementPolicy.BuilderpolicyName(String policyName)Sets the value ofContainerNodePoolPlacementPolicy.getPolicyName()ContainerNodePoolPlacementPolicy.BuildertpuTopology(String tpuTopology)Sets the value ofContainerNodePoolPlacementPolicy.getTpuTopology()ContainerNodePoolPlacementPolicy.Buildertype(String type)Sets the value ofContainerNodePoolPlacementPolicy.getType()
-
-
-
Method Detail
-
type
@Stability(Stable) public ContainerNodePoolPlacementPolicy.Builder type(String type)
Sets the value ofContainerNodePoolPlacementPolicy.getType()- Parameters:
type- Type defines the type of placement policy. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_node_pool#type ContainerNodePool#type}- Returns:
this
-
policyName
@Stability(Stable) public ContainerNodePoolPlacementPolicy.Builder policyName(String policyName)
Sets the value ofContainerNodePoolPlacementPolicy.getPolicyName()- Parameters:
policyName- If set, refers to the name of a custom resource policy supplied by the user. The resource policy must be in the same project and region as the node pool. If not found, InvalidArgument error is returned. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_node_pool#policy_name ContainerNodePool#policy_name}- Returns:
this
-
tpuTopology
@Stability(Stable) public ContainerNodePoolPlacementPolicy.Builder tpuTopology(String tpuTopology)
Sets the value ofContainerNodePoolPlacementPolicy.getTpuTopology()- Parameters:
tpuTopology- TPU placement topology for pod slice node pool. https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_node_pool#tpu_topology ContainerNodePool#tpu_topology}- Returns:
this
-
build
@Stability(Stable) public ContainerNodePoolPlacementPolicy build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ContainerNodePoolPlacementPolicy>- Returns:
- a new instance of
ContainerNodePoolPlacementPolicy - Throws:
NullPointerException- if any required attribute was not provided
-
-