Class ComputeSnapshotSnapshotEncryptionKey.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_snapshot.ComputeSnapshotSnapshotEncryptionKey.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeSnapshotSnapshotEncryptionKey>
- Enclosing interface:
- ComputeSnapshotSnapshotEncryptionKey
@Stability(Stable) public static final class ComputeSnapshotSnapshotEncryptionKey.Builder extends Object implements software.amazon.jsii.Builder<ComputeSnapshotSnapshotEncryptionKey>
A builder forComputeSnapshotSnapshotEncryptionKey
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeSnapshotSnapshotEncryptionKeybuild()Builds the configured instance.ComputeSnapshotSnapshotEncryptionKey.BuilderkmsKeySelfLink(String kmsKeySelfLink)Sets the value ofComputeSnapshotSnapshotEncryptionKey.getKmsKeySelfLink()ComputeSnapshotSnapshotEncryptionKey.BuilderkmsKeyServiceAccount(String kmsKeyServiceAccount)Sets the value ofComputeSnapshotSnapshotEncryptionKey.getKmsKeyServiceAccount()ComputeSnapshotSnapshotEncryptionKey.BuilderrawKey(String rawKey)Sets the value ofComputeSnapshotSnapshotEncryptionKey.getRawKey()
-
-
-
Method Detail
-
kmsKeySelfLink
@Stability(Stable) public ComputeSnapshotSnapshotEncryptionKey.Builder kmsKeySelfLink(String kmsKeySelfLink)
Sets the value ofComputeSnapshotSnapshotEncryptionKey.getKmsKeySelfLink()- Parameters:
kmsKeySelfLink- The name of the encryption key that is stored in Google Cloud KMS. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_snapshot#kms_key_self_link ComputeSnapshot#kms_key_self_link}- Returns:
this
-
kmsKeyServiceAccount
@Stability(Stable) public ComputeSnapshotSnapshotEncryptionKey.Builder kmsKeyServiceAccount(String kmsKeyServiceAccount)
Sets the value ofComputeSnapshotSnapshotEncryptionKey.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 ComputeSnapshotSnapshotEncryptionKey.Builder rawKey(String rawKey)
Sets the value ofComputeSnapshotSnapshotEncryptionKey.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 ComputeSnapshotSnapshotEncryptionKey build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeSnapshotSnapshotEncryptionKey>- Returns:
- a new instance of
ComputeSnapshotSnapshotEncryptionKey - Throws:
NullPointerException- if any required attribute was not provided
-
-