Class ComputeInstanceFromTemplateBootDiskInitializeParams.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_instance_from_template.ComputeInstanceFromTemplateBootDiskInitializeParams.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeInstanceFromTemplateBootDiskInitializeParams>
- Enclosing interface:
- ComputeInstanceFromTemplateBootDiskInitializeParams
@Stability(Stable) public static final class ComputeInstanceFromTemplateBootDiskInitializeParams.Builder extends Object implements software.amazon.jsii.Builder<ComputeInstanceFromTemplateBootDiskInitializeParams>
A builder forComputeInstanceFromTemplateBootDiskInitializeParams
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
enableConfidentialCompute
@Stability(Stable) public ComputeInstanceFromTemplateBootDiskInitializeParams.Builder enableConfidentialCompute(Boolean enableConfidentialCompute)
Sets the value ofComputeInstanceFromTemplateBootDiskInitializeParams.getEnableConfidentialCompute()- Parameters:
enableConfidentialCompute- A flag to enable confidential compute mode on boot disk. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_from_template#enable_confidential_compute ComputeInstanceFromTemplate#enable_confidential_compute}- Returns:
this
-
enableConfidentialCompute
@Stability(Stable) public ComputeInstanceFromTemplateBootDiskInitializeParams.Builder enableConfidentialCompute(com.hashicorp.cdktf.IResolvable enableConfidentialCompute)
Sets the value ofComputeInstanceFromTemplateBootDiskInitializeParams.getEnableConfidentialCompute()- Parameters:
enableConfidentialCompute- A flag to enable confidential compute mode on boot disk. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_from_template#enable_confidential_compute ComputeInstanceFromTemplate#enable_confidential_compute}- Returns:
this
-
image
@Stability(Stable) public ComputeInstanceFromTemplateBootDiskInitializeParams.Builder image(String image)
Sets the value ofComputeInstanceFromTemplateBootDiskInitializeParams.getImage()- Parameters:
image- The image from which this disk was initialised. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_from_template#image ComputeInstanceFromTemplate#image}- Returns:
this
-
labels
@Stability(Stable) public ComputeInstanceFromTemplateBootDiskInitializeParams.Builder labels(Map<String,String> labels)
Sets the value ofComputeInstanceFromTemplateBootDiskInitializeParams.getLabels()- Parameters:
labels- A set of key/value label pairs assigned to the disk. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_from_template#labels ComputeInstanceFromTemplate#labels}- Returns:
this
-
provisionedIops
@Stability(Stable) public ComputeInstanceFromTemplateBootDiskInitializeParams.Builder provisionedIops(Number provisionedIops)
Sets the value ofComputeInstanceFromTemplateBootDiskInitializeParams.getProvisionedIops()- Parameters:
provisionedIops- Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_from_template#provisioned_iops ComputeInstanceFromTemplate#provisioned_iops}- Returns:
this
-
provisionedThroughput
@Stability(Stable) public ComputeInstanceFromTemplateBootDiskInitializeParams.Builder provisionedThroughput(Number provisionedThroughput)
- Parameters:
provisionedThroughput- Indicates how much throughput to provision for the disk. This sets the number of throughput mb per second that the disk can handle. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_from_template#provisioned_throughput ComputeInstanceFromTemplate#provisioned_throughput}- Returns:
this
-
resourceManagerTags
@Stability(Stable) public ComputeInstanceFromTemplateBootDiskInitializeParams.Builder resourceManagerTags(Map<String,String> resourceManagerTags)
- Parameters:
resourceManagerTags- A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_from_template#resource_manager_tags ComputeInstanceFromTemplate#resource_manager_tags}- Returns:
this
-
size
@Stability(Stable) public ComputeInstanceFromTemplateBootDiskInitializeParams.Builder size(Number size)
Sets the value ofComputeInstanceFromTemplateBootDiskInitializeParams.getSize()- Parameters:
size- The size of the image in gigabytes. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_from_template#size ComputeInstanceFromTemplate#size}- Returns:
this
-
storagePool
@Stability(Stable) public ComputeInstanceFromTemplateBootDiskInitializeParams.Builder storagePool(String storagePool)
Sets the value ofComputeInstanceFromTemplateBootDiskInitializeParams.getStoragePool()- Parameters:
storagePool- The URL of the storage pool in which the new disk is created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_from_template#storage_pool ComputeInstanceFromTemplate#storage_pool}- Returns:
this
-
type
@Stability(Stable) public ComputeInstanceFromTemplateBootDiskInitializeParams.Builder type(String type)
Sets the value ofComputeInstanceFromTemplateBootDiskInitializeParams.getType()- Parameters:
type- The Google Compute Engine disk type. Such as pd-standard, pd-ssd or pd-balanced. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_from_template#type ComputeInstanceFromTemplate#type}- Returns:
this
-
build
@Stability(Stable) public ComputeInstanceFromTemplateBootDiskInitializeParams build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeInstanceFromTemplateBootDiskInitializeParams>- Returns:
- a new instance of
ComputeInstanceFromTemplateBootDiskInitializeParams - Throws:
NullPointerException- if any required attribute was not provided
-
-