Class ComputeInstanceSchedulingNodeAffinities.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_instance.ComputeInstanceSchedulingNodeAffinities.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeInstanceSchedulingNodeAffinities>
- Enclosing interface:
- ComputeInstanceSchedulingNodeAffinities
@Stability(Stable) public static final class ComputeInstanceSchedulingNodeAffinities.Builder extends Object implements software.amazon.jsii.Builder<ComputeInstanceSchedulingNodeAffinities>
A builder forComputeInstanceSchedulingNodeAffinities
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeInstanceSchedulingNodeAffinitiesbuild()Builds the configured instance.ComputeInstanceSchedulingNodeAffinities.Builderkey(String key)Sets the value ofComputeInstanceSchedulingNodeAffinities.getKey()ComputeInstanceSchedulingNodeAffinities.Builderoperator(String operator)Sets the value ofComputeInstanceSchedulingNodeAffinities.getOperator()ComputeInstanceSchedulingNodeAffinities.Buildervalues(List<String> values)Sets the value ofComputeInstanceSchedulingNodeAffinities.getValues()
-
-
-
Method Detail
-
key
@Stability(Stable) public ComputeInstanceSchedulingNodeAffinities.Builder key(String key)
Sets the value ofComputeInstanceSchedulingNodeAffinities.getKey()- Parameters:
key- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#key ComputeInstance#key}. This parameter is required.- Returns:
this
-
operator
@Stability(Stable) public ComputeInstanceSchedulingNodeAffinities.Builder operator(String operator)
Sets the value ofComputeInstanceSchedulingNodeAffinities.getOperator()- Parameters:
operator- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#operator ComputeInstance#operator}. This parameter is required.- Returns:
this
-
values
@Stability(Stable) public ComputeInstanceSchedulingNodeAffinities.Builder values(List<String> values)
Sets the value ofComputeInstanceSchedulingNodeAffinities.getValues()- Parameters:
values- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#values ComputeInstance#values}. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public ComputeInstanceSchedulingNodeAffinities build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeInstanceSchedulingNodeAffinities>- Returns:
- a new instance of
ComputeInstanceSchedulingNodeAffinities - Throws:
NullPointerException- if any required attribute was not provided
-
-