Class ContainerClusterNodePoolPlacementPolicy.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.container_cluster.ContainerClusterNodePoolPlacementPolicy.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ContainerClusterNodePoolPlacementPolicy>
- Enclosing interface:
- ContainerClusterNodePoolPlacementPolicy
@Stability(Stable) public static final class ContainerClusterNodePoolPlacementPolicy.Builder extends Object implements software.amazon.jsii.Builder<ContainerClusterNodePoolPlacementPolicy>
A builder forContainerClusterNodePoolPlacementPolicy
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContainerClusterNodePoolPlacementPolicybuild()Builds the configured instance.ContainerClusterNodePoolPlacementPolicy.BuilderpolicyName(String policyName)Sets the value ofContainerClusterNodePoolPlacementPolicy.getPolicyName()ContainerClusterNodePoolPlacementPolicy.BuildertpuTopology(String tpuTopology)Sets the value ofContainerClusterNodePoolPlacementPolicy.getTpuTopology()ContainerClusterNodePoolPlacementPolicy.Buildertype(String type)Sets the value ofContainerClusterNodePoolPlacementPolicy.getType()
-
-
-
Method Detail
-
type
@Stability(Stable) public ContainerClusterNodePoolPlacementPolicy.Builder type(String type)
Sets the value ofContainerClusterNodePoolPlacementPolicy.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_cluster#type ContainerCluster#type}- Returns:
this
-
policyName
@Stability(Stable) public ContainerClusterNodePoolPlacementPolicy.Builder policyName(String policyName)
Sets the value ofContainerClusterNodePoolPlacementPolicy.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_cluster#policy_name ContainerCluster#policy_name}- Returns:
this
-
tpuTopology
@Stability(Stable) public ContainerClusterNodePoolPlacementPolicy.Builder tpuTopology(String tpuTopology)
Sets the value ofContainerClusterNodePoolPlacementPolicy.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_cluster#tpu_topology ContainerCluster#tpu_topology}- Returns:
this
-
build
@Stability(Stable) public ContainerClusterNodePoolPlacementPolicy build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ContainerClusterNodePoolPlacementPolicy>- Returns:
- a new instance of
ContainerClusterNodePoolPlacementPolicy - Throws:
NullPointerException- if any required attribute was not provided
-
-