Class DocdbGlobalClusterConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.docdb_global_cluster.DocdbGlobalClusterConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DocdbGlobalClusterConfig>
- Enclosing interface:
- DocdbGlobalClusterConfig
@Stability(Stable) public static final class DocdbGlobalClusterConfig.Builder extends Object implements software.amazon.jsii.Builder<DocdbGlobalClusterConfig>
A builder forDocdbGlobalClusterConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocdbGlobalClusterConfigbuild()Builds the configured instance.DocdbGlobalClusterConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()DocdbGlobalClusterConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()DocdbGlobalClusterConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()DocdbGlobalClusterConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()DocdbGlobalClusterConfig.BuilderdatabaseName(String databaseName)Sets the value ofDocdbGlobalClusterConfig.getDatabaseName()DocdbGlobalClusterConfig.BuilderdeletionProtection(com.hashicorp.cdktf.IResolvable deletionProtection)Sets the value ofDocdbGlobalClusterConfig.getDeletionProtection()DocdbGlobalClusterConfig.BuilderdeletionProtection(Boolean deletionProtection)Sets the value ofDocdbGlobalClusterConfig.getDeletionProtection()DocdbGlobalClusterConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()DocdbGlobalClusterConfig.Builderengine(String engine)Sets the value ofDocdbGlobalClusterConfig.getEngine()DocdbGlobalClusterConfig.BuilderengineVersion(String engineVersion)Sets the value ofDocdbGlobalClusterConfig.getEngineVersion()DocdbGlobalClusterConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()DocdbGlobalClusterConfig.BuilderglobalClusterIdentifier(String globalClusterIdentifier)Sets the value ofDocdbGlobalClusterConfig.getGlobalClusterIdentifier()DocdbGlobalClusterConfig.Builderid(String id)Sets the value ofDocdbGlobalClusterConfig.getId()DocdbGlobalClusterConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()DocdbGlobalClusterConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()DocdbGlobalClusterConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()DocdbGlobalClusterConfig.BuildersourceDbClusterIdentifier(String sourceDbClusterIdentifier)Sets the value ofDocdbGlobalClusterConfig.getSourceDbClusterIdentifier()DocdbGlobalClusterConfig.BuilderstorageEncrypted(com.hashicorp.cdktf.IResolvable storageEncrypted)Sets the value ofDocdbGlobalClusterConfig.getStorageEncrypted()DocdbGlobalClusterConfig.BuilderstorageEncrypted(Boolean storageEncrypted)Sets the value ofDocdbGlobalClusterConfig.getStorageEncrypted()DocdbGlobalClusterConfig.Buildertimeouts(DocdbGlobalClusterTimeouts timeouts)Sets the value ofDocdbGlobalClusterConfig.getTimeouts()
-
-
-
Method Detail
-
globalClusterIdentifier
@Stability(Stable) public DocdbGlobalClusterConfig.Builder globalClusterIdentifier(String globalClusterIdentifier)
Sets the value ofDocdbGlobalClusterConfig.getGlobalClusterIdentifier()- Parameters:
globalClusterIdentifier- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_global_cluster#global_cluster_identifier DocdbGlobalCluster#global_cluster_identifier}. This parameter is required.- Returns:
this
-
databaseName
@Stability(Stable) public DocdbGlobalClusterConfig.Builder databaseName(String databaseName)
Sets the value ofDocdbGlobalClusterConfig.getDatabaseName()- Parameters:
databaseName- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_global_cluster#database_name DocdbGlobalCluster#database_name}.- Returns:
this
-
deletionProtection
@Stability(Stable) public DocdbGlobalClusterConfig.Builder deletionProtection(Boolean deletionProtection)
Sets the value ofDocdbGlobalClusterConfig.getDeletionProtection()- Parameters:
deletionProtection- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_global_cluster#deletion_protection DocdbGlobalCluster#deletion_protection}.- Returns:
this
-
deletionProtection
@Stability(Stable) public DocdbGlobalClusterConfig.Builder deletionProtection(com.hashicorp.cdktf.IResolvable deletionProtection)
Sets the value ofDocdbGlobalClusterConfig.getDeletionProtection()- Parameters:
deletionProtection- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_global_cluster#deletion_protection DocdbGlobalCluster#deletion_protection}.- Returns:
this
-
engine
@Stability(Stable) public DocdbGlobalClusterConfig.Builder engine(String engine)
Sets the value ofDocdbGlobalClusterConfig.getEngine()- Parameters:
engine- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_global_cluster#engine DocdbGlobalCluster#engine}.- Returns:
this
-
engineVersion
@Stability(Stable) public DocdbGlobalClusterConfig.Builder engineVersion(String engineVersion)
Sets the value ofDocdbGlobalClusterConfig.getEngineVersion()- Parameters:
engineVersion- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_global_cluster#engine_version DocdbGlobalCluster#engine_version}.- Returns:
this
-
id
@Stability(Stable) public DocdbGlobalClusterConfig.Builder id(String id)
Sets the value ofDocdbGlobalClusterConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_global_cluster#id DocdbGlobalCluster#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
-
sourceDbClusterIdentifier
@Stability(Stable) public DocdbGlobalClusterConfig.Builder sourceDbClusterIdentifier(String sourceDbClusterIdentifier)
Sets the value ofDocdbGlobalClusterConfig.getSourceDbClusterIdentifier()- Parameters:
sourceDbClusterIdentifier- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_global_cluster#source_db_cluster_identifier DocdbGlobalCluster#source_db_cluster_identifier}.- Returns:
this
-
storageEncrypted
@Stability(Stable) public DocdbGlobalClusterConfig.Builder storageEncrypted(Boolean storageEncrypted)
Sets the value ofDocdbGlobalClusterConfig.getStorageEncrypted()- Parameters:
storageEncrypted- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_global_cluster#storage_encrypted DocdbGlobalCluster#storage_encrypted}.- Returns:
this
-
storageEncrypted
@Stability(Stable) public DocdbGlobalClusterConfig.Builder storageEncrypted(com.hashicorp.cdktf.IResolvable storageEncrypted)
Sets the value ofDocdbGlobalClusterConfig.getStorageEncrypted()- Parameters:
storageEncrypted- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_global_cluster#storage_encrypted DocdbGlobalCluster#storage_encrypted}.- Returns:
this
-
timeouts
@Stability(Stable) public DocdbGlobalClusterConfig.Builder timeouts(DocdbGlobalClusterTimeouts timeouts)
Sets the value ofDocdbGlobalClusterConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_global_cluster#timeouts DocdbGlobalCluster#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public DocdbGlobalClusterConfig.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 DocdbGlobalClusterConfig.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 DocdbGlobalClusterConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public DocdbGlobalClusterConfig.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 DocdbGlobalClusterConfig.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 DocdbGlobalClusterConfig.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 DocdbGlobalClusterConfig.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 DocdbGlobalClusterConfig.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 DocdbGlobalClusterConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public DocdbGlobalClusterConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DocdbGlobalClusterConfig>- Returns:
- a new instance of
DocdbGlobalClusterConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-