Class ComputeImageRawDisk.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_image.ComputeImageRawDisk.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeImageRawDisk>
- Enclosing interface:
- ComputeImageRawDisk
@Stability(Stable) public static final class ComputeImageRawDisk.Builder extends Object implements software.amazon.jsii.Builder<ComputeImageRawDisk>
A builder forComputeImageRawDisk
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeImageRawDiskbuild()Builds the configured instance.ComputeImageRawDisk.BuildercontainerType(String containerType)Sets the value ofComputeImageRawDisk.getContainerType()ComputeImageRawDisk.Buildersha1(String sha1)Sets the value ofComputeImageRawDisk.getSha1()ComputeImageRawDisk.Buildersource(String source)Sets the value ofComputeImageRawDisk.getSource()
-
-
-
Method Detail
-
source
@Stability(Stable) public ComputeImageRawDisk.Builder source(String source)
Sets the value ofComputeImageRawDisk.getSource()- Parameters:
source- The full Google Cloud Storage URL where disk storage is stored You must provide either this property or the sourceDisk property but not both. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_image#source ComputeImage#source}- Returns:
this
-
containerType
@Stability(Stable) public ComputeImageRawDisk.Builder containerType(String containerType)
Sets the value ofComputeImageRawDisk.getContainerType()- Parameters:
containerType- The format used to encode and transmit the block device, which should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created. Default value: "TAR" Possible values: ["TAR"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_image#container_type ComputeImage#container_type}- Returns:
this
-
sha1
@Stability(Stable) public ComputeImageRawDisk.Builder sha1(String sha1)
Sets the value ofComputeImageRawDisk.getSha1()- Parameters:
sha1- An optional SHA1 checksum of the disk image before unpackaging. This is provided by the client when the disk image is created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_image#sha1 ComputeImage#sha1}- Returns:
this
-
build
@Stability(Stable) public ComputeImageRawDisk build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeImageRawDisk>- Returns:
- a new instance of
ComputeImageRawDisk - Throws:
NullPointerException- if any required attribute was not provided
-
-