Class DatabaseMigrationServicePrivateConnectionConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.database_migration_service_private_connection.DatabaseMigrationServicePrivateConnectionConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DatabaseMigrationServicePrivateConnectionConfig>
- Enclosing interface:
- DatabaseMigrationServicePrivateConnectionConfig
@Stability(Stable) public static final class DatabaseMigrationServicePrivateConnectionConfig.Builder extends Object implements software.amazon.jsii.Builder<DatabaseMigrationServicePrivateConnectionConfig>
A builder forDatabaseMigrationServicePrivateConnectionConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
location
@Stability(Stable) public DatabaseMigrationServicePrivateConnectionConfig.Builder location(String location)
Sets the value ofDatabaseMigrationServicePrivateConnectionConfig.getLocation()- Parameters:
location- The name of the location this private connection is located in. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/database_migration_service_private_connection#location DatabaseMigrationServicePrivateConnection#location}- Returns:
this
-
privateConnectionId
@Stability(Stable) public DatabaseMigrationServicePrivateConnectionConfig.Builder privateConnectionId(String privateConnectionId)
Sets the value ofDatabaseMigrationServicePrivateConnectionConfig.getPrivateConnectionId()- Parameters:
privateConnectionId- The private connectivity identifier. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/database_migration_service_private_connection#private_connection_id DatabaseMigrationServicePrivateConnection#private_connection_id}- Returns:
this
-
vpcPeeringConfig
@Stability(Stable) public DatabaseMigrationServicePrivateConnectionConfig.Builder vpcPeeringConfig(DatabaseMigrationServicePrivateConnectionVpcPeeringConfig vpcPeeringConfig)
Sets the value ofDatabaseMigrationServicePrivateConnectionConfig.getVpcPeeringConfig()- Parameters:
vpcPeeringConfig- vpc_peering_config block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/database_migration_service_private_connection#vpc_peering_config DatabaseMigrationServicePrivateConnection#vpc_peering_config}- Returns:
this
-
displayName
@Stability(Stable) public DatabaseMigrationServicePrivateConnectionConfig.Builder displayName(String displayName)
Sets the value ofDatabaseMigrationServicePrivateConnectionConfig.getDisplayName()- Parameters:
displayName- Display name. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/database_migration_service_private_connection#display_name DatabaseMigrationServicePrivateConnection#display_name}- Returns:
this
-
id
@Stability(Stable) public DatabaseMigrationServicePrivateConnectionConfig.Builder id(String id)
Sets the value ofDatabaseMigrationServicePrivateConnectionConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/database_migration_service_private_connection#id DatabaseMigrationServicePrivateConnection#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
-
labels
@Stability(Stable) public DatabaseMigrationServicePrivateConnectionConfig.Builder labels(Map<String,String> labels)
Sets the value ofDatabaseMigrationServicePrivateConnectionConfig.getLabels()- Parameters:
labels- Labels. **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/database_migration_service_private_connection#labels DatabaseMigrationServicePrivateConnection#labels}- Returns:
this
-
project
@Stability(Stable) public DatabaseMigrationServicePrivateConnectionConfig.Builder project(String project)
Sets the value ofDatabaseMigrationServicePrivateConnectionConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/database_migration_service_private_connection#project DatabaseMigrationServicePrivateConnection#project}.- Returns:
this
-
timeouts
@Stability(Stable) public DatabaseMigrationServicePrivateConnectionConfig.Builder timeouts(DatabaseMigrationServicePrivateConnectionTimeouts timeouts)
Sets the value ofDatabaseMigrationServicePrivateConnectionConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/database_migration_service_private_connection#timeouts DatabaseMigrationServicePrivateConnection#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public DatabaseMigrationServicePrivateConnectionConfig.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 DatabaseMigrationServicePrivateConnectionConfig.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 DatabaseMigrationServicePrivateConnectionConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public DatabaseMigrationServicePrivateConnectionConfig.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 DatabaseMigrationServicePrivateConnectionConfig.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 DatabaseMigrationServicePrivateConnectionConfig.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 DatabaseMigrationServicePrivateConnectionConfig.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 DatabaseMigrationServicePrivateConnectionConfig.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 DatabaseMigrationServicePrivateConnectionConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public DatabaseMigrationServicePrivateConnectionConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DatabaseMigrationServicePrivateConnectionConfig>- Returns:
- a new instance of
DatabaseMigrationServicePrivateConnectionConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-