Class KmsCryptoKeyVersionConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.kms_crypto_key_version.KmsCryptoKeyVersionConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KmsCryptoKeyVersionConfig>
- Enclosing interface:
- KmsCryptoKeyVersionConfig
@Stability(Stable) public static final class KmsCryptoKeyVersionConfig.Builder extends Object implements software.amazon.jsii.Builder<KmsCryptoKeyVersionConfig>
A builder forKmsCryptoKeyVersionConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KmsCryptoKeyVersionConfigbuild()Builds the configured instance.KmsCryptoKeyVersionConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()KmsCryptoKeyVersionConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()KmsCryptoKeyVersionConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()KmsCryptoKeyVersionConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()KmsCryptoKeyVersionConfig.BuildercryptoKey(String cryptoKey)Sets the value ofKmsCryptoKeyVersionConfig.getCryptoKey()KmsCryptoKeyVersionConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()KmsCryptoKeyVersionConfig.BuilderexternalProtectionLevelOptions(KmsCryptoKeyVersionExternalProtectionLevelOptions externalProtectionLevelOptions)Sets the value ofKmsCryptoKeyVersionConfig.getExternalProtectionLevelOptions()KmsCryptoKeyVersionConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()KmsCryptoKeyVersionConfig.Builderid(String id)Sets the value ofKmsCryptoKeyVersionConfig.getId()KmsCryptoKeyVersionConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()KmsCryptoKeyVersionConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()KmsCryptoKeyVersionConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()KmsCryptoKeyVersionConfig.Builderstate(String state)Sets the value ofKmsCryptoKeyVersionConfig.getState()KmsCryptoKeyVersionConfig.Buildertimeouts(KmsCryptoKeyVersionTimeouts timeouts)Sets the value ofKmsCryptoKeyVersionConfig.getTimeouts()
-
-
-
Method Detail
-
cryptoKey
@Stability(Stable) public KmsCryptoKeyVersionConfig.Builder cryptoKey(String cryptoKey)
Sets the value ofKmsCryptoKeyVersionConfig.getCryptoKey()- Parameters:
cryptoKey- The name of the cryptoKey associated with the CryptoKeyVersions. Format: ''projects/{{project}}/locations/{{location}}/keyRings/{{keyring}}/cryptoKeys/{{cryptoKey}}''. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/kms_crypto_key_version#crypto_key KmsCryptoKeyVersion#crypto_key}- Returns:
this
-
externalProtectionLevelOptions
@Stability(Stable) public KmsCryptoKeyVersionConfig.Builder externalProtectionLevelOptions(KmsCryptoKeyVersionExternalProtectionLevelOptions externalProtectionLevelOptions)
Sets the value ofKmsCryptoKeyVersionConfig.getExternalProtectionLevelOptions()- Parameters:
externalProtectionLevelOptions- external_protection_level_options block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/kms_crypto_key_version#external_protection_level_options KmsCryptoKeyVersion#external_protection_level_options}- Returns:
this
-
id
@Stability(Stable) public KmsCryptoKeyVersionConfig.Builder id(String id)
Sets the value ofKmsCryptoKeyVersionConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/kms_crypto_key_version#id KmsCryptoKeyVersion#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
-
state
@Stability(Stable) public KmsCryptoKeyVersionConfig.Builder state(String state)
Sets the value ofKmsCryptoKeyVersionConfig.getState()- Parameters:
state- The current state of the CryptoKeyVersion. Possible values: ["PENDING_GENERATION", "ENABLED", "DISABLED", "DESTROYED", "DESTROY_SCHEDULED", "PENDING_IMPORT", "IMPORT_FAILED"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/kms_crypto_key_version#state KmsCryptoKeyVersion#state}- Returns:
this
-
timeouts
@Stability(Stable) public KmsCryptoKeyVersionConfig.Builder timeouts(KmsCryptoKeyVersionTimeouts timeouts)
Sets the value ofKmsCryptoKeyVersionConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/kms_crypto_key_version#timeouts KmsCryptoKeyVersion#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public KmsCryptoKeyVersionConfig.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 KmsCryptoKeyVersionConfig.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 KmsCryptoKeyVersionConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public KmsCryptoKeyVersionConfig.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 KmsCryptoKeyVersionConfig.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 KmsCryptoKeyVersionConfig.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 KmsCryptoKeyVersionConfig.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 KmsCryptoKeyVersionConfig.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 KmsCryptoKeyVersionConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public KmsCryptoKeyVersionConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<KmsCryptoKeyVersionConfig>- Returns:
- a new instance of
KmsCryptoKeyVersionConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-