Class DocdbClusterConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.docdb_cluster.DocdbClusterConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DocdbClusterConfig>
- Enclosing interface:
- DocdbClusterConfig
@Stability(Stable) public static final class DocdbClusterConfig.Builder extends Object implements software.amazon.jsii.Builder<DocdbClusterConfig>
A builder forDocdbClusterConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
applyImmediately
@Stability(Stable) public DocdbClusterConfig.Builder applyImmediately(Boolean applyImmediately)
Sets the value ofDocdbClusterConfig.getApplyImmediately()- Parameters:
applyImmediately- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_cluster#apply_immediately DocdbCluster#apply_immediately}.- Returns:
this
-
applyImmediately
@Stability(Stable) public DocdbClusterConfig.Builder applyImmediately(com.hashicorp.cdktf.IResolvable applyImmediately)
Sets the value ofDocdbClusterConfig.getApplyImmediately()- Parameters:
applyImmediately- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_cluster#apply_immediately DocdbCluster#apply_immediately}.- Returns:
this
-
availabilityZones
@Stability(Stable) public DocdbClusterConfig.Builder availabilityZones(List<String> availabilityZones)
Sets the value ofDocdbClusterConfig.getAvailabilityZones()- Parameters:
availabilityZones- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_cluster#availability_zones DocdbCluster#availability_zones}.- Returns:
this
-
backupRetentionPeriod
@Stability(Stable) public DocdbClusterConfig.Builder backupRetentionPeriod(Number backupRetentionPeriod)
Sets the value ofDocdbClusterConfig.getBackupRetentionPeriod()- Parameters:
backupRetentionPeriod- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_cluster#backup_retention_period DocdbCluster#backup_retention_period}.- Returns:
this
-
clusterIdentifier
@Stability(Stable) public DocdbClusterConfig.Builder clusterIdentifier(String clusterIdentifier)
Sets the value ofDocdbClusterConfig.getClusterIdentifier()- Parameters:
clusterIdentifier- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_cluster#cluster_identifier DocdbCluster#cluster_identifier}.- Returns:
this
-
clusterIdentifierPrefix
@Stability(Stable) public DocdbClusterConfig.Builder clusterIdentifierPrefix(String clusterIdentifierPrefix)
Sets the value ofDocdbClusterConfig.getClusterIdentifierPrefix()- Parameters:
clusterIdentifierPrefix- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_cluster#cluster_identifier_prefix DocdbCluster#cluster_identifier_prefix}.- Returns:
this
-
clusterMembers
@Stability(Stable) public DocdbClusterConfig.Builder clusterMembers(List<String> clusterMembers)
Sets the value ofDocdbClusterConfig.getClusterMembers()- Parameters:
clusterMembers- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_cluster#cluster_members DocdbCluster#cluster_members}.- Returns:
this
-
dbClusterParameterGroupName
@Stability(Stable) public DocdbClusterConfig.Builder dbClusterParameterGroupName(String dbClusterParameterGroupName)
Sets the value ofDocdbClusterConfig.getDbClusterParameterGroupName()- Parameters:
dbClusterParameterGroupName- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_cluster#db_cluster_parameter_group_name DocdbCluster#db_cluster_parameter_group_name}.- Returns:
this
-
dbSubnetGroupName
@Stability(Stable) public DocdbClusterConfig.Builder dbSubnetGroupName(String dbSubnetGroupName)
Sets the value ofDocdbClusterConfig.getDbSubnetGroupName()- Parameters:
dbSubnetGroupName- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_cluster#db_subnet_group_name DocdbCluster#db_subnet_group_name}.- Returns:
this
-
deletionProtection
@Stability(Stable) public DocdbClusterConfig.Builder deletionProtection(Boolean deletionProtection)
Sets the value ofDocdbClusterConfig.getDeletionProtection()- Parameters:
deletionProtection- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_cluster#deletion_protection DocdbCluster#deletion_protection}.- Returns:
this
-
deletionProtection
@Stability(Stable) public DocdbClusterConfig.Builder deletionProtection(com.hashicorp.cdktf.IResolvable deletionProtection)
Sets the value ofDocdbClusterConfig.getDeletionProtection()- Parameters:
deletionProtection- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_cluster#deletion_protection DocdbCluster#deletion_protection}.- Returns:
this
-
enabledCloudwatchLogsExports
@Stability(Stable) public DocdbClusterConfig.Builder enabledCloudwatchLogsExports(List<String> enabledCloudwatchLogsExports)
Sets the value ofDocdbClusterConfig.getEnabledCloudwatchLogsExports()- Parameters:
enabledCloudwatchLogsExports- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_cluster#enabled_cloudwatch_logs_exports DocdbCluster#enabled_cloudwatch_logs_exports}.- Returns:
this
-
engine
@Stability(Stable) public DocdbClusterConfig.Builder engine(String engine)
Sets the value ofDocdbClusterConfig.getEngine()- Parameters:
engine- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_cluster#engine DocdbCluster#engine}.- Returns:
this
-
engineVersion
@Stability(Stable) public DocdbClusterConfig.Builder engineVersion(String engineVersion)
Sets the value ofDocdbClusterConfig.getEngineVersion()- Parameters:
engineVersion- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_cluster#engine_version DocdbCluster#engine_version}.- Returns:
this
-
finalSnapshotIdentifier
@Stability(Stable) public DocdbClusterConfig.Builder finalSnapshotIdentifier(String finalSnapshotIdentifier)
Sets the value ofDocdbClusterConfig.getFinalSnapshotIdentifier()- Parameters:
finalSnapshotIdentifier- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_cluster#final_snapshot_identifier DocdbCluster#final_snapshot_identifier}.- Returns:
this
-
globalClusterIdentifier
@Stability(Stable) public DocdbClusterConfig.Builder globalClusterIdentifier(String globalClusterIdentifier)
Sets the value ofDocdbClusterConfig.getGlobalClusterIdentifier()- Parameters:
globalClusterIdentifier- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_cluster#global_cluster_identifier DocdbCluster#global_cluster_identifier}.- Returns:
this
-
id
@Stability(Stable) public DocdbClusterConfig.Builder id(String id)
Sets the value ofDocdbClusterConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_cluster#id DocdbCluster#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
-
kmsKeyId
@Stability(Stable) public DocdbClusterConfig.Builder kmsKeyId(String kmsKeyId)
Sets the value ofDocdbClusterConfig.getKmsKeyId()- Parameters:
kmsKeyId- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_cluster#kms_key_id DocdbCluster#kms_key_id}.- Returns:
this
-
masterPassword
@Stability(Stable) public DocdbClusterConfig.Builder masterPassword(String masterPassword)
Sets the value ofDocdbClusterConfig.getMasterPassword()- Parameters:
masterPassword- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_cluster#master_password DocdbCluster#master_password}.- Returns:
this
-
masterUsername
@Stability(Stable) public DocdbClusterConfig.Builder masterUsername(String masterUsername)
Sets the value ofDocdbClusterConfig.getMasterUsername()- Parameters:
masterUsername- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_cluster#master_username DocdbCluster#master_username}.- Returns:
this
-
port
@Stability(Stable) public DocdbClusterConfig.Builder port(Number port)
Sets the value ofDocdbClusterConfig.getPort()- Parameters:
port- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_cluster#port DocdbCluster#port}.- Returns:
this
-
preferredBackupWindow
@Stability(Stable) public DocdbClusterConfig.Builder preferredBackupWindow(String preferredBackupWindow)
Sets the value ofDocdbClusterConfig.getPreferredBackupWindow()- Parameters:
preferredBackupWindow- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_cluster#preferred_backup_window DocdbCluster#preferred_backup_window}.- Returns:
this
-
preferredMaintenanceWindow
@Stability(Stable) public DocdbClusterConfig.Builder preferredMaintenanceWindow(String preferredMaintenanceWindow)
Sets the value ofDocdbClusterConfig.getPreferredMaintenanceWindow()- Parameters:
preferredMaintenanceWindow- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_cluster#preferred_maintenance_window DocdbCluster#preferred_maintenance_window}.- Returns:
this
-
skipFinalSnapshot
@Stability(Stable) public DocdbClusterConfig.Builder skipFinalSnapshot(Boolean skipFinalSnapshot)
Sets the value ofDocdbClusterConfig.getSkipFinalSnapshot()- Parameters:
skipFinalSnapshot- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_cluster#skip_final_snapshot DocdbCluster#skip_final_snapshot}.- Returns:
this
-
skipFinalSnapshot
@Stability(Stable) public DocdbClusterConfig.Builder skipFinalSnapshot(com.hashicorp.cdktf.IResolvable skipFinalSnapshot)
Sets the value ofDocdbClusterConfig.getSkipFinalSnapshot()- Parameters:
skipFinalSnapshot- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_cluster#skip_final_snapshot DocdbCluster#skip_final_snapshot}.- Returns:
this
-
snapshotIdentifier
@Stability(Stable) public DocdbClusterConfig.Builder snapshotIdentifier(String snapshotIdentifier)
Sets the value ofDocdbClusterConfig.getSnapshotIdentifier()- Parameters:
snapshotIdentifier- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_cluster#snapshot_identifier DocdbCluster#snapshot_identifier}.- Returns:
this
-
storageEncrypted
@Stability(Stable) public DocdbClusterConfig.Builder storageEncrypted(Boolean storageEncrypted)
Sets the value ofDocdbClusterConfig.getStorageEncrypted()- Parameters:
storageEncrypted- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_cluster#storage_encrypted DocdbCluster#storage_encrypted}.- Returns:
this
-
storageEncrypted
@Stability(Stable) public DocdbClusterConfig.Builder storageEncrypted(com.hashicorp.cdktf.IResolvable storageEncrypted)
Sets the value ofDocdbClusterConfig.getStorageEncrypted()- Parameters:
storageEncrypted- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_cluster#storage_encrypted DocdbCluster#storage_encrypted}.- Returns:
this
-
tags
@Stability(Stable) public DocdbClusterConfig.Builder tags(Map<String,String> tags)
Sets the value ofDocdbClusterConfig.getTags()- Parameters:
tags- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_cluster#tags DocdbCluster#tags}.- Returns:
this
-
tagsAll
@Stability(Stable) public DocdbClusterConfig.Builder tagsAll(Map<String,String> tagsAll)
Sets the value ofDocdbClusterConfig.getTagsAll()- Parameters:
tagsAll- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_cluster#tags_all DocdbCluster#tags_all}.- Returns:
this
-
timeouts
@Stability(Stable) public DocdbClusterConfig.Builder timeouts(DocdbClusterTimeouts timeouts)
Sets the value ofDocdbClusterConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_cluster#timeouts DocdbCluster#timeouts}- Returns:
this
-
vpcSecurityGroupIds
@Stability(Stable) public DocdbClusterConfig.Builder vpcSecurityGroupIds(List<String> vpcSecurityGroupIds)
Sets the value ofDocdbClusterConfig.getVpcSecurityGroupIds()- Parameters:
vpcSecurityGroupIds- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/docdb_cluster#vpc_security_group_ids DocdbCluster#vpc_security_group_ids}.- Returns:
this
-
connection
@Stability(Experimental) public DocdbClusterConfig.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 DocdbClusterConfig.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 DocdbClusterConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public DocdbClusterConfig.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 DocdbClusterConfig.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 DocdbClusterConfig.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 DocdbClusterConfig.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 DocdbClusterConfig.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 DocdbClusterConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public DocdbClusterConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DocdbClusterConfig>- Returns:
- a new instance of
DocdbClusterConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-