Class SpannerDatabaseEncryptionConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.spanner_database.SpannerDatabaseEncryptionConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SpannerDatabaseEncryptionConfig>
- Enclosing interface:
- SpannerDatabaseEncryptionConfig
@Stability(Stable) public static final class SpannerDatabaseEncryptionConfig.Builder extends Object implements software.amazon.jsii.Builder<SpannerDatabaseEncryptionConfig>
A builder forSpannerDatabaseEncryptionConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpannerDatabaseEncryptionConfigbuild()Builds the configured instance.SpannerDatabaseEncryptionConfig.BuilderkmsKeyName(String kmsKeyName)Sets the value ofSpannerDatabaseEncryptionConfig.getKmsKeyName()
-
-
-
Method Detail
-
kmsKeyName
@Stability(Stable) public SpannerDatabaseEncryptionConfig.Builder kmsKeyName(String kmsKeyName)
Sets the value ofSpannerDatabaseEncryptionConfig.getKmsKeyName()- Parameters:
kmsKeyName- Fully qualified name of the KMS key to use to encrypt this database. This parameter is required. This key must exist in the same location as the Spanner Database. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/spanner_database#kms_key_name SpannerDatabase#kms_key_name}- Returns:
this
-
build
@Stability(Stable) public SpannerDatabaseEncryptionConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SpannerDatabaseEncryptionConfig>- Returns:
- a new instance of
SpannerDatabaseEncryptionConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-