Class ContainerClusterNodeConfigSoleTenantConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.container_cluster.ContainerClusterNodeConfigSoleTenantConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ContainerClusterNodeConfigSoleTenantConfig>
- Enclosing interface:
- ContainerClusterNodeConfigSoleTenantConfig
@Stability(Stable) public static final class ContainerClusterNodeConfigSoleTenantConfig.Builder extends Object implements software.amazon.jsii.Builder<ContainerClusterNodeConfigSoleTenantConfig>
A builder forContainerClusterNodeConfigSoleTenantConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContainerClusterNodeConfigSoleTenantConfigbuild()Builds the configured instance.ContainerClusterNodeConfigSoleTenantConfig.BuildernodeAffinity(com.hashicorp.cdktf.IResolvable nodeAffinity)Sets the value ofContainerClusterNodeConfigSoleTenantConfig.getNodeAffinity()ContainerClusterNodeConfigSoleTenantConfig.BuildernodeAffinity(List<? extends ContainerClusterNodeConfigSoleTenantConfigNodeAffinity> nodeAffinity)Sets the value ofContainerClusterNodeConfigSoleTenantConfig.getNodeAffinity()
-
-
-
Method Detail
-
nodeAffinity
@Stability(Stable) public ContainerClusterNodeConfigSoleTenantConfig.Builder nodeAffinity(com.hashicorp.cdktf.IResolvable nodeAffinity)
Sets the value ofContainerClusterNodeConfigSoleTenantConfig.getNodeAffinity()- Parameters:
nodeAffinity- node_affinity block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#node_affinity ContainerCluster#node_affinity}- Returns:
this
-
nodeAffinity
@Stability(Stable) public ContainerClusterNodeConfigSoleTenantConfig.Builder nodeAffinity(List<? extends ContainerClusterNodeConfigSoleTenantConfigNodeAffinity> nodeAffinity)
Sets the value ofContainerClusterNodeConfigSoleTenantConfig.getNodeAffinity()- Parameters:
nodeAffinity- node_affinity block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#node_affinity ContainerCluster#node_affinity}- Returns:
this
-
build
@Stability(Stable) public ContainerClusterNodeConfigSoleTenantConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ContainerClusterNodeConfigSoleTenantConfig>- Returns:
- a new instance of
ContainerClusterNodeConfigSoleTenantConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-