Class ComputeRegionCommitmentLicenseResource.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_region_commitment.ComputeRegionCommitmentLicenseResource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeRegionCommitmentLicenseResource>
- Enclosing interface:
- ComputeRegionCommitmentLicenseResource
@Stability(Stable) public static final class ComputeRegionCommitmentLicenseResource.Builder extends Object implements software.amazon.jsii.Builder<ComputeRegionCommitmentLicenseResource>
A builder forComputeRegionCommitmentLicenseResource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeRegionCommitmentLicenseResource.Builderamount(String amount)Sets the value ofComputeRegionCommitmentLicenseResource.getAmount()ComputeRegionCommitmentLicenseResourcebuild()Builds the configured instance.ComputeRegionCommitmentLicenseResource.BuildercoresPerLicense(String coresPerLicense)Sets the value ofComputeRegionCommitmentLicenseResource.getCoresPerLicense()ComputeRegionCommitmentLicenseResource.Builderlicense(String license)Sets the value ofComputeRegionCommitmentLicenseResource.getLicense()
-
-
-
Method Detail
-
license
@Stability(Stable) public ComputeRegionCommitmentLicenseResource.Builder license(String license)
Sets the value ofComputeRegionCommitmentLicenseResource.getLicense()- Parameters:
license- Any applicable license URI. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_commitment#license ComputeRegionCommitment#license}- Returns:
this
-
amount
@Stability(Stable) public ComputeRegionCommitmentLicenseResource.Builder amount(String amount)
Sets the value ofComputeRegionCommitmentLicenseResource.getAmount()- Parameters:
amount- The number of licenses purchased. 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
-
coresPerLicense
@Stability(Stable) public ComputeRegionCommitmentLicenseResource.Builder coresPerLicense(String coresPerLicense)
Sets the value ofComputeRegionCommitmentLicenseResource.getCoresPerLicense()- Parameters:
coresPerLicense- Specifies the core range of the instance for which this license applies. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_commitment#cores_per_license ComputeRegionCommitment#cores_per_license}- Returns:
this
-
build
@Stability(Stable) public ComputeRegionCommitmentLicenseResource build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeRegionCommitmentLicenseResource>- Returns:
- a new instance of
ComputeRegionCommitmentLicenseResource - Throws:
NullPointerException- if any required attribute was not provided
-
-