Class ContainerClusterNodePoolNodeConfigReservationAffinity.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.container_cluster.ContainerClusterNodePoolNodeConfigReservationAffinity.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ContainerClusterNodePoolNodeConfigReservationAffinity>
- Enclosing interface:
- ContainerClusterNodePoolNodeConfigReservationAffinity
@Stability(Stable) public static final class ContainerClusterNodePoolNodeConfigReservationAffinity.Builder extends Object implements software.amazon.jsii.Builder<ContainerClusterNodePoolNodeConfigReservationAffinity>
A builder forContainerClusterNodePoolNodeConfigReservationAffinity
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContainerClusterNodePoolNodeConfigReservationAffinitybuild()Builds the configured instance.ContainerClusterNodePoolNodeConfigReservationAffinity.BuilderconsumeReservationType(String consumeReservationType)ContainerClusterNodePoolNodeConfigReservationAffinity.Builderkey(String key)Sets the value ofContainerClusterNodePoolNodeConfigReservationAffinity.getKey()ContainerClusterNodePoolNodeConfigReservationAffinity.Buildervalues(List<String> values)Sets the value ofContainerClusterNodePoolNodeConfigReservationAffinity.getValues()
-
-
-
Method Detail
-
consumeReservationType
@Stability(Stable) public ContainerClusterNodePoolNodeConfigReservationAffinity.Builder consumeReservationType(String consumeReservationType)
- Parameters:
consumeReservationType- Corresponds to the type of reservation consumption. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#consume_reservation_type ContainerCluster#consume_reservation_type}- Returns:
this
-
key
@Stability(Stable) public ContainerClusterNodePoolNodeConfigReservationAffinity.Builder key(String key)
Sets the value ofContainerClusterNodePoolNodeConfigReservationAffinity.getKey()- Parameters:
key- The label key of a reservation resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#key ContainerCluster#key}- Returns:
this
-
values
@Stability(Stable) public ContainerClusterNodePoolNodeConfigReservationAffinity.Builder values(List<String> values)
Sets the value ofContainerClusterNodePoolNodeConfigReservationAffinity.getValues()- Parameters:
values- The label values of the reservation resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#values ContainerCluster#values}- Returns:
this
-
build
@Stability(Stable) public ContainerClusterNodePoolNodeConfigReservationAffinity build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ContainerClusterNodePoolNodeConfigReservationAffinity>- Returns:
- a new instance of
ContainerClusterNodePoolNodeConfigReservationAffinity - Throws:
NullPointerException- if any required attribute was not provided
-
-