Class ComputeAttachedDisk.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_attached_disk.ComputeAttachedDisk.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeAttachedDisk>
- Enclosing class:
- ComputeAttachedDisk
@Stability(Stable) public static final class ComputeAttachedDisk.Builder extends Object implements software.amazon.jsii.Builder<ComputeAttachedDisk>
A fluent builder forComputeAttachedDisk.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeAttachedDiskbuild()ComputeAttachedDisk.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)ComputeAttachedDisk.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)ComputeAttachedDisk.Buildercount(com.hashicorp.cdktf.TerraformCount count)ComputeAttachedDisk.Buildercount(Number count)static ComputeAttachedDisk.Buildercreate(software.constructs.Construct scope, String id)ComputeAttachedDisk.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)ComputeAttachedDisk.BuilderdeviceName(String deviceName)Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance.ComputeAttachedDisk.Builderdisk(String disk)name or self_link of the disk that will be attached.ComputeAttachedDisk.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)ComputeAttachedDisk.Builderid(String id)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_attached_disk#id ComputeAttachedDisk#id}.ComputeAttachedDisk.Builderinstance(String instance)name or self_link of the compute instance that the disk will be attached to.ComputeAttachedDisk.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)ComputeAttachedDisk.Buildermode(String mode)The mode in which to attach this disk, either READ_WRITE or READ_ONLY.ComputeAttachedDisk.Builderproject(String project)The project that the referenced compute instance is a part of.ComputeAttachedDisk.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)ComputeAttachedDisk.Builderprovisioners(List<? extends Object> provisioners)ComputeAttachedDisk.Buildertimeouts(ComputeAttachedDiskTimeouts timeouts)timeouts block.ComputeAttachedDisk.Builderzone(String zone)The zone that the referenced compute instance is located within.
-
-
-
Method Detail
-
create
@Stability(Stable) public static ComputeAttachedDisk.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope- The scope in which to define this construct. This parameter is required.id- The scoped construct ID. This parameter is required.- Returns:
- a new instance of
ComputeAttachedDisk.Builder.
-
connection
@Stability(Experimental) public ComputeAttachedDisk.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
connection
@Stability(Experimental) public ComputeAttachedDisk.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public ComputeAttachedDisk.Builder count(Number count)
- Parameters:
count- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public ComputeAttachedDisk.Builder count(com.hashicorp.cdktf.TerraformCount count)
- Parameters:
count- This parameter is required.- Returns:
this
-
dependsOn
@Stability(Experimental) public ComputeAttachedDisk.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
- Parameters:
dependsOn- This parameter is required.- Returns:
this
-
forEach
@Stability(Experimental) public ComputeAttachedDisk.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
- Parameters:
forEach- This parameter is required.- Returns:
this
-
lifecycle
@Stability(Experimental) public ComputeAttachedDisk.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
- Parameters:
lifecycle- This parameter is required.- Returns:
this
-
provider
@Stability(Experimental) public ComputeAttachedDisk.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
- Parameters:
provider- This parameter is required.- Returns:
this
-
provisioners
@Stability(Experimental) public ComputeAttachedDisk.Builder provisioners(List<? extends Object> provisioners)
- Parameters:
provisioners- This parameter is required.- Returns:
this
-
disk
@Stability(Stable) public ComputeAttachedDisk.Builder disk(String disk)
name or self_link of the disk that will be attached.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_attached_disk#disk ComputeAttachedDisk#disk}
- Parameters:
disk- name or self_link of the disk that will be attached. This parameter is required.- Returns:
this
-
instance
@Stability(Stable) public ComputeAttachedDisk.Builder instance(String instance)
name or self_link of the compute instance that the disk will be attached to.If the self_link is provided then zone and project are extracted from the self link. If only the name is used then zone and project must be defined as properties on the resource or provider. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_attached_disk#instance ComputeAttachedDisk#instance}
- Parameters:
instance- name or self_link of the compute instance that the disk will be attached to. This parameter is required.- Returns:
this
-
deviceName
@Stability(Stable) public ComputeAttachedDisk.Builder deviceName(String deviceName)
Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance.This name can be used to reference the device for mounting, resizing, and so on, from within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disks-x, where x is a number assigned by Google Compute Engine. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_attached_disk#device_name ComputeAttachedDisk#device_name}
- Parameters:
deviceName- Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This parameter is required.- Returns:
this
-
id
@Stability(Stable) public ComputeAttachedDisk.Builder id(String id)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_attached_disk#id ComputeAttachedDisk#id}.Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_attached_disk#id ComputeAttachedDisk#id}. This parameter is required.- Returns:
this
-
mode
@Stability(Stable) public ComputeAttachedDisk.Builder mode(String mode)
The mode in which to attach this disk, either READ_WRITE or READ_ONLY.If not specified, the default is to attach the disk in READ_WRITE mode. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_attached_disk#mode ComputeAttachedDisk#mode}
- Parameters:
mode- The mode in which to attach this disk, either READ_WRITE or READ_ONLY. This parameter is required.- Returns:
this
-
project
@Stability(Stable) public ComputeAttachedDisk.Builder project(String project)
The project that the referenced compute instance is a part of.If instance is referenced by its self_link the project defined in the link will take precedence. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_attached_disk#project ComputeAttachedDisk#project}
- Parameters:
project- The project that the referenced compute instance is a part of. This parameter is required.- Returns:
this
-
timeouts
@Stability(Stable) public ComputeAttachedDisk.Builder timeouts(ComputeAttachedDiskTimeouts timeouts)
timeouts block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_attached_disk#timeouts ComputeAttachedDisk#timeouts}
- Parameters:
timeouts- timeouts block. This parameter is required.- Returns:
this
-
zone
@Stability(Stable) public ComputeAttachedDisk.Builder zone(String zone)
The zone that the referenced compute instance is located within.If instance is referenced by its self_link the zone defined in the link will take precedence. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_attached_disk#zone ComputeAttachedDisk#zone}
- Parameters:
zone- The zone that the referenced compute instance is located within. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public ComputeAttachedDisk build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeAttachedDisk>- Returns:
- a newly built instance of
ComputeAttachedDisk.
-
-