Class DataGoogleLoggingProjectCmekSettingsConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.data_google_logging_project_cmek_settings.DataGoogleLoggingProjectCmekSettingsConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DataGoogleLoggingProjectCmekSettingsConfig>
- Enclosing interface:
- DataGoogleLoggingProjectCmekSettingsConfig
@Stability(Stable) public static final class DataGoogleLoggingProjectCmekSettingsConfig.Builder extends Object implements software.amazon.jsii.Builder<DataGoogleLoggingProjectCmekSettingsConfig>
A builder forDataGoogleLoggingProjectCmekSettingsConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataGoogleLoggingProjectCmekSettingsConfigbuild()Builds the configured instance.DataGoogleLoggingProjectCmekSettingsConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()DataGoogleLoggingProjectCmekSettingsConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()DataGoogleLoggingProjectCmekSettingsConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()DataGoogleLoggingProjectCmekSettingsConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()DataGoogleLoggingProjectCmekSettingsConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()DataGoogleLoggingProjectCmekSettingsConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()DataGoogleLoggingProjectCmekSettingsConfig.Builderid(String id)Sets the value ofDataGoogleLoggingProjectCmekSettingsConfig.getId()DataGoogleLoggingProjectCmekSettingsConfig.BuilderkmsKeyName(String kmsKeyName)Sets the value ofDataGoogleLoggingProjectCmekSettingsConfig.getKmsKeyName()DataGoogleLoggingProjectCmekSettingsConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()DataGoogleLoggingProjectCmekSettingsConfig.Builderproject(String project)Sets the value ofDataGoogleLoggingProjectCmekSettingsConfig.getProject()DataGoogleLoggingProjectCmekSettingsConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()DataGoogleLoggingProjectCmekSettingsConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()
-
-
-
Method Detail
-
project
@Stability(Stable) public DataGoogleLoggingProjectCmekSettingsConfig.Builder project(String project)
Sets the value ofDataGoogleLoggingProjectCmekSettingsConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/data-sources/logging_project_cmek_settings#project DataGoogleLoggingProjectCmekSettings#project}. This parameter is required.- Returns:
this
-
id
@Stability(Stable) public DataGoogleLoggingProjectCmekSettingsConfig.Builder id(String id)
Sets the value ofDataGoogleLoggingProjectCmekSettingsConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/data-sources/logging_project_cmek_settings#id DataGoogleLoggingProjectCmekSettings#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.- Returns:
this
-
kmsKeyName
@Stability(Stable) public DataGoogleLoggingProjectCmekSettingsConfig.Builder kmsKeyName(String kmsKeyName)
Sets the value ofDataGoogleLoggingProjectCmekSettingsConfig.getKmsKeyName()- Parameters:
kmsKeyName- The resource name for the configured Cloud KMS key. KMS key name format: "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]" To enable CMEK for the bucket, set this field to a valid kmsKeyName for which the associated service account has the required cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key. The Cloud KMS key used by the bucket can be updated by changing the kmsKeyName to a new valid key name. Encryption operations that are in progress will be completed with the key that was in use when they started. Decryption operations will be completed using the key that was used at the time of encryption unless access to that key has been revoked. See [Enabling CMEK for Logging Buckets](https://cloud.google.com/logging/docs/routing/managed-encryption-storage) for more information. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/data-sources/logging_project_cmek_settings#kms_key_name DataGoogleLoggingProjectCmekSettings#kms_key_name}- Returns:
this
-
connection
@Stability(Experimental) public DataGoogleLoggingProjectCmekSettingsConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public DataGoogleLoggingProjectCmekSettingsConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public DataGoogleLoggingProjectCmekSettingsConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public DataGoogleLoggingProjectCmekSettingsConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public DataGoogleLoggingProjectCmekSettingsConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public DataGoogleLoggingProjectCmekSettingsConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public DataGoogleLoggingProjectCmekSettingsConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public DataGoogleLoggingProjectCmekSettingsConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public DataGoogleLoggingProjectCmekSettingsConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public DataGoogleLoggingProjectCmekSettingsConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DataGoogleLoggingProjectCmekSettingsConfig>- Returns:
- a new instance of
DataGoogleLoggingProjectCmekSettingsConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-