Class ComputeRegionCommitmentResources.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_region_commitment.ComputeRegionCommitmentResources.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeRegionCommitmentResources>
- Enclosing interface:
- ComputeRegionCommitmentResources
@Stability(Stable) public static final class ComputeRegionCommitmentResources.Builder extends Object implements software.amazon.jsii.Builder<ComputeRegionCommitmentResources>
A builder forComputeRegionCommitmentResources
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeRegionCommitmentResources.BuilderacceleratorType(String acceleratorType)Sets the value ofComputeRegionCommitmentResources.getAcceleratorType()ComputeRegionCommitmentResources.Builderamount(String amount)Sets the value ofComputeRegionCommitmentResources.getAmount()ComputeRegionCommitmentResourcesbuild()Builds the configured instance.ComputeRegionCommitmentResources.Buildertype(String type)Sets the value ofComputeRegionCommitmentResources.getType()
-
-
-
Method Detail
-
acceleratorType
@Stability(Stable) public ComputeRegionCommitmentResources.Builder acceleratorType(String acceleratorType)
Sets the value ofComputeRegionCommitmentResources.getAcceleratorType()- Parameters:
acceleratorType- Name of the accelerator type resource. Applicable only when the type is ACCELERATOR. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_commitment#accelerator_type ComputeRegionCommitment#accelerator_type}- Returns:
this
-
amount
@Stability(Stable) public ComputeRegionCommitmentResources.Builder amount(String amount)
Sets the value ofComputeRegionCommitmentResources.getAmount()- Parameters:
amount- The amount of the resource purchased (in a type-dependent unit, such as bytes). For vCPUs, this can just be an integer. For memory, this must be provided in MB. Memory must be a multiple of 256 MB, with up to 6.5GB of memory per every vCPU. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_commitment#amount ComputeRegionCommitment#amount}- Returns:
this
-
type
@Stability(Stable) public ComputeRegionCommitmentResources.Builder type(String type)
Sets the value ofComputeRegionCommitmentResources.getType()- Parameters:
type- Type of resource for which this commitment applies. Possible values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_commitment#type ComputeRegionCommitment#type}- Returns:
this
-
build
@Stability(Stable) public ComputeRegionCommitmentResources build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeRegionCommitmentResources>- Returns:
- a new instance of
ComputeRegionCommitmentResources - Throws:
NullPointerException- if any required attribute was not provided
-
-