Class ComputeInstanceBootDiskInitializeParams.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_instance.ComputeInstanceBootDiskInitializeParams.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeInstanceBootDiskInitializeParams>
- Enclosing interface:
- ComputeInstanceBootDiskInitializeParams
@Stability(Stable) public static final class ComputeInstanceBootDiskInitializeParams.Builder extends Object implements software.amazon.jsii.Builder<ComputeInstanceBootDiskInitializeParams>
A builder forComputeInstanceBootDiskInitializeParams
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
enableConfidentialCompute
@Stability(Stable) public ComputeInstanceBootDiskInitializeParams.Builder enableConfidentialCompute(Boolean enableConfidentialCompute)
Sets the value ofComputeInstanceBootDiskInitializeParams.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#enable_confidential_compute ComputeInstance#enable_confidential_compute}- Returns:
this
-
enableConfidentialCompute
@Stability(Stable) public ComputeInstanceBootDiskInitializeParams.Builder enableConfidentialCompute(com.hashicorp.cdktf.IResolvable enableConfidentialCompute)
Sets the value ofComputeInstanceBootDiskInitializeParams.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#enable_confidential_compute ComputeInstance#enable_confidential_compute}- Returns:
this
-
image
@Stability(Stable) public ComputeInstanceBootDiskInitializeParams.Builder image(String image)
Sets the value ofComputeInstanceBootDiskInitializeParams.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#image ComputeInstance#image}- Returns:
this
-
labels
@Stability(Stable) public ComputeInstanceBootDiskInitializeParams.Builder labels(Map<String,String> labels)
Sets the value ofComputeInstanceBootDiskInitializeParams.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#labels ComputeInstance#labels}- Returns:
this
-
provisionedIops
@Stability(Stable) public ComputeInstanceBootDiskInitializeParams.Builder provisionedIops(Number provisionedIops)
Sets the value ofComputeInstanceBootDiskInitializeParams.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#provisioned_iops ComputeInstance#provisioned_iops}- Returns:
this
-
provisionedThroughput
@Stability(Stable) public ComputeInstanceBootDiskInitializeParams.Builder provisionedThroughput(Number provisionedThroughput)
Sets the value ofComputeInstanceBootDiskInitializeParams.getProvisionedThroughput()- 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#provisioned_throughput ComputeInstance#provisioned_throughput}- Returns:
this
-
resourceManagerTags
@Stability(Stable) public ComputeInstanceBootDiskInitializeParams.Builder resourceManagerTags(Map<String,String> resourceManagerTags)
Sets the value ofComputeInstanceBootDiskInitializeParams.getResourceManagerTags()- 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#resource_manager_tags ComputeInstance#resource_manager_tags}- Returns:
this
-
size
@Stability(Stable) public ComputeInstanceBootDiskInitializeParams.Builder size(Number size)
Sets the value ofComputeInstanceBootDiskInitializeParams.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#size ComputeInstance#size}- Returns:
this
-
storagePool
@Stability(Stable) public ComputeInstanceBootDiskInitializeParams.Builder storagePool(String storagePool)
Sets the value ofComputeInstanceBootDiskInitializeParams.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#storage_pool ComputeInstance#storage_pool}- Returns:
this
-
type
@Stability(Stable) public ComputeInstanceBootDiskInitializeParams.Builder type(String type)
Sets the value ofComputeInstanceBootDiskInitializeParams.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#type ComputeInstance#type}- Returns:
this
-
build
@Stability(Stable) public ComputeInstanceBootDiskInitializeParams build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeInstanceBootDiskInitializeParams>- Returns:
- a new instance of
ComputeInstanceBootDiskInitializeParams - Throws:
NullPointerException- if any required attribute was not provided
-
-