Class ComputeImageImageEncryptionKey.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_image.ComputeImageImageEncryptionKey.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeImageImageEncryptionKey>
- Enclosing interface:
- ComputeImageImageEncryptionKey
@Stability(Stable) public static final class ComputeImageImageEncryptionKey.Builder extends Object implements software.amazon.jsii.Builder<ComputeImageImageEncryptionKey>
A builder forComputeImageImageEncryptionKey
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeImageImageEncryptionKeybuild()Builds the configured instance.ComputeImageImageEncryptionKey.BuilderkmsKeySelfLink(String kmsKeySelfLink)Sets the value ofComputeImageImageEncryptionKey.getKmsKeySelfLink()ComputeImageImageEncryptionKey.BuilderkmsKeyServiceAccount(String kmsKeyServiceAccount)Sets the value ofComputeImageImageEncryptionKey.getKmsKeyServiceAccount()
-
-
-
Method Detail
-
kmsKeySelfLink
@Stability(Stable) public ComputeImageImageEncryptionKey.Builder kmsKeySelfLink(String kmsKeySelfLink)
Sets the value ofComputeImageImageEncryptionKey.getKmsKeySelfLink()- Parameters:
kmsKeySelfLink- The self link 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_image#kms_key_self_link ComputeImage#kms_key_self_link}- Returns:
this
-
kmsKeyServiceAccount
@Stability(Stable) public ComputeImageImageEncryptionKey.Builder kmsKeyServiceAccount(String kmsKeyServiceAccount)
Sets the value ofComputeImageImageEncryptionKey.getKmsKeyServiceAccount()- Parameters:
kmsKeyServiceAccount- The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_image#kms_key_service_account ComputeImage#kms_key_service_account}- Returns:
this
-
build
@Stability(Stable) public ComputeImageImageEncryptionKey build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeImageImageEncryptionKey>- Returns:
- a new instance of
ComputeImageImageEncryptionKey - Throws:
NullPointerException- if any required attribute was not provided
-
-