Class KmsEkmConnectionConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.kms_ekm_connection.KmsEkmConnectionConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KmsEkmConnectionConfig>
- Enclosing interface:
- KmsEkmConnectionConfig
@Stability(Stable) public static final class KmsEkmConnectionConfig.Builder extends Object implements software.amazon.jsii.Builder<KmsEkmConnectionConfig>
A builder forKmsEkmConnectionConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KmsEkmConnectionConfigbuild()Builds the configured instance.KmsEkmConnectionConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()KmsEkmConnectionConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()KmsEkmConnectionConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()KmsEkmConnectionConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()KmsEkmConnectionConfig.BuildercryptoSpacePath(String cryptoSpacePath)Sets the value ofKmsEkmConnectionConfig.getCryptoSpacePath()KmsEkmConnectionConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()KmsEkmConnectionConfig.Builderetag(String etag)Sets the value ofKmsEkmConnectionConfig.getEtag()KmsEkmConnectionConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()KmsEkmConnectionConfig.Builderid(String id)Sets the value ofKmsEkmConnectionConfig.getId()KmsEkmConnectionConfig.BuilderkeyManagementMode(String keyManagementMode)Sets the value ofKmsEkmConnectionConfig.getKeyManagementMode()KmsEkmConnectionConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()KmsEkmConnectionConfig.Builderlocation(String location)Sets the value ofKmsEkmConnectionConfig.getLocation()KmsEkmConnectionConfig.Buildername(String name)Sets the value ofKmsEkmConnectionConfig.getName()KmsEkmConnectionConfig.Builderproject(String project)Sets the value ofKmsEkmConnectionConfig.getProject()KmsEkmConnectionConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()KmsEkmConnectionConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()KmsEkmConnectionConfig.BuilderserviceResolvers(com.hashicorp.cdktf.IResolvable serviceResolvers)Sets the value ofKmsEkmConnectionConfig.getServiceResolvers()KmsEkmConnectionConfig.BuilderserviceResolvers(List<? extends KmsEkmConnectionServiceResolvers> serviceResolvers)Sets the value ofKmsEkmConnectionConfig.getServiceResolvers()KmsEkmConnectionConfig.Buildertimeouts(KmsEkmConnectionTimeouts timeouts)Sets the value ofKmsEkmConnectionConfig.getTimeouts()
-
-
-
Method Detail
-
location
@Stability(Stable) public KmsEkmConnectionConfig.Builder location(String location)
Sets the value ofKmsEkmConnectionConfig.getLocation()- Parameters:
location- The location for the EkmConnection. A full list of valid locations can be found by running 'gcloud kms locations list'. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/kms_ekm_connection#location KmsEkmConnection#location}- Returns:
this
-
name
@Stability(Stable) public KmsEkmConnectionConfig.Builder name(String name)
Sets the value ofKmsEkmConnectionConfig.getName()- Parameters:
name- The resource name for the EkmConnection. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/kms_ekm_connection#name KmsEkmConnection#name}- Returns:
this
-
serviceResolvers
@Stability(Stable) public KmsEkmConnectionConfig.Builder serviceResolvers(com.hashicorp.cdktf.IResolvable serviceResolvers)
Sets the value ofKmsEkmConnectionConfig.getServiceResolvers()- Parameters:
serviceResolvers- service_resolvers block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/kms_ekm_connection#service_resolvers KmsEkmConnection#service_resolvers}- Returns:
this
-
serviceResolvers
@Stability(Stable) public KmsEkmConnectionConfig.Builder serviceResolvers(List<? extends KmsEkmConnectionServiceResolvers> serviceResolvers)
Sets the value ofKmsEkmConnectionConfig.getServiceResolvers()- Parameters:
serviceResolvers- service_resolvers block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/kms_ekm_connection#service_resolvers KmsEkmConnection#service_resolvers}- Returns:
this
-
cryptoSpacePath
@Stability(Stable) public KmsEkmConnectionConfig.Builder cryptoSpacePath(String cryptoSpacePath)
Sets the value ofKmsEkmConnectionConfig.getCryptoSpacePath()- Parameters:
cryptoSpacePath- Optional. Identifies the EKM Crypto Space that this EkmConnection maps to. Note: This field is required if KeyManagementMode is CLOUD_KMS. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/kms_ekm_connection#crypto_space_path KmsEkmConnection#crypto_space_path}- Returns:
this
-
etag
@Stability(Stable) public KmsEkmConnectionConfig.Builder etag(String etag)
Sets the value ofKmsEkmConnectionConfig.getEtag()- Parameters:
etag- Optional. Etag of the currently stored EkmConnection. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/kms_ekm_connection#etag KmsEkmConnection#etag}- Returns:
this
-
id
@Stability(Stable) public KmsEkmConnectionConfig.Builder id(String id)
Sets the value ofKmsEkmConnectionConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/kms_ekm_connection#id KmsEkmConnection#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
-
keyManagementMode
@Stability(Stable) public KmsEkmConnectionConfig.Builder keyManagementMode(String keyManagementMode)
Sets the value ofKmsEkmConnectionConfig.getKeyManagementMode()- Parameters:
keyManagementMode- Optional. Describes who can perform control plane operations on the EKM. If unset, this defaults to MANUAL Default value: "MANUAL" Possible values: ["MANUAL", "CLOUD_KMS"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/kms_ekm_connection#key_management_mode KmsEkmConnection#key_management_mode}- Returns:
this
-
project
@Stability(Stable) public KmsEkmConnectionConfig.Builder project(String project)
Sets the value ofKmsEkmConnectionConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/kms_ekm_connection#project KmsEkmConnection#project}.- Returns:
this
-
timeouts
@Stability(Stable) public KmsEkmConnectionConfig.Builder timeouts(KmsEkmConnectionTimeouts timeouts)
Sets the value ofKmsEkmConnectionConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/kms_ekm_connection#timeouts KmsEkmConnection#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public KmsEkmConnectionConfig.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 KmsEkmConnectionConfig.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 KmsEkmConnectionConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public KmsEkmConnectionConfig.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 KmsEkmConnectionConfig.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 KmsEkmConnectionConfig.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 KmsEkmConnectionConfig.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 KmsEkmConnectionConfig.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 KmsEkmConnectionConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public KmsEkmConnectionConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<KmsEkmConnectionConfig>- Returns:
- a new instance of
KmsEkmConnectionConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-