Class StorageBucketEncryption.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.storage_bucket.StorageBucketEncryption.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<StorageBucketEncryption>
- Enclosing interface:
- StorageBucketEncryption
@Stability(Stable) public static final class StorageBucketEncryption.Builder extends Object implements software.amazon.jsii.Builder<StorageBucketEncryption>
A builder forStorageBucketEncryption
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StorageBucketEncryptionbuild()Builds the configured instance.StorageBucketEncryption.BuilderdefaultKmsKeyName(String defaultKmsKeyName)Sets the value ofStorageBucketEncryption.getDefaultKmsKeyName()
-
-
-
Method Detail
-
defaultKmsKeyName
@Stability(Stable) public StorageBucketEncryption.Builder defaultKmsKeyName(String defaultKmsKeyName)
Sets the value ofStorageBucketEncryption.getDefaultKmsKeyName()- Parameters:
defaultKmsKeyName- A Cloud KMS key that will be used to encrypt objects inserted into this bucket, if no encryption method is specified. This parameter is required. You must pay attention to whether the crypto key is available in the location that this bucket is created in. See the docs for more details. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#default_kms_key_name StorageBucket#default_kms_key_name}- Returns:
this
-
build
@Stability(Stable) public StorageBucketEncryption build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<StorageBucketEncryption>- Returns:
- a new instance of
StorageBucketEncryption - Throws:
NullPointerException- if any required attribute was not provided
-
-