Class ComputeSnapshotSourceDiskEncryptionKey.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_snapshot.ComputeSnapshotSourceDiskEncryptionKey.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeSnapshotSourceDiskEncryptionKey>
- Enclosing interface:
- ComputeSnapshotSourceDiskEncryptionKey
@Stability(Stable) public static final class ComputeSnapshotSourceDiskEncryptionKey.Builder extends Object implements software.amazon.jsii.Builder<ComputeSnapshotSourceDiskEncryptionKey>
A builder forComputeSnapshotSourceDiskEncryptionKey
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeSnapshotSourceDiskEncryptionKeybuild()Builds the configured instance.ComputeSnapshotSourceDiskEncryptionKey.BuilderkmsKeyServiceAccount(String kmsKeyServiceAccount)Sets the value ofComputeSnapshotSourceDiskEncryptionKey.getKmsKeyServiceAccount()ComputeSnapshotSourceDiskEncryptionKey.BuilderrawKey(String rawKey)Sets the value ofComputeSnapshotSourceDiskEncryptionKey.getRawKey()
-
-
-
Method Detail
-
kmsKeyServiceAccount
@Stability(Stable) public ComputeSnapshotSourceDiskEncryptionKey.Builder kmsKeyServiceAccount(String kmsKeyServiceAccount)
Sets the value ofComputeSnapshotSourceDiskEncryptionKey.getKmsKeyServiceAccount()- Parameters:
kmsKeyServiceAccount- The service account used for the encryption request for the given KMS key. If absent, the Compute Engine Service Agent service account is used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_snapshot#kms_key_service_account ComputeSnapshot#kms_key_service_account}- Returns:
this
-
rawKey
@Stability(Stable) public ComputeSnapshotSourceDiskEncryptionKey.Builder rawKey(String rawKey)
Sets the value ofComputeSnapshotSourceDiskEncryptionKey.getRawKey()- Parameters:
rawKey- Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_snapshot#raw_key ComputeSnapshot#raw_key}- Returns:
this
-
build
@Stability(Stable) public ComputeSnapshotSourceDiskEncryptionKey build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeSnapshotSourceDiskEncryptionKey>- Returns:
- a new instance of
ComputeSnapshotSourceDiskEncryptionKey - Throws:
NullPointerException- if any required attribute was not provided
-
-