Class DatabaseMigrationServicePrivateConnectionVpcPeeringConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.database_migration_service_private_connection.DatabaseMigrationServicePrivateConnectionVpcPeeringConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DatabaseMigrationServicePrivateConnectionVpcPeeringConfig>
- Enclosing interface:
- DatabaseMigrationServicePrivateConnectionVpcPeeringConfig
@Stability(Stable) public static final class DatabaseMigrationServicePrivateConnectionVpcPeeringConfig.Builder extends Object implements software.amazon.jsii.Builder<DatabaseMigrationServicePrivateConnectionVpcPeeringConfig>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatabaseMigrationServicePrivateConnectionVpcPeeringConfigbuild()Builds the configured instance.DatabaseMigrationServicePrivateConnectionVpcPeeringConfig.Buildersubnet(String subnet)Sets the value ofDatabaseMigrationServicePrivateConnectionVpcPeeringConfig.getSubnet()DatabaseMigrationServicePrivateConnectionVpcPeeringConfig.BuildervpcName(String vpcName)Sets the value ofDatabaseMigrationServicePrivateConnectionVpcPeeringConfig.getVpcName()
-
-
-
Method Detail
-
subnet
@Stability(Stable) public DatabaseMigrationServicePrivateConnectionVpcPeeringConfig.Builder subnet(String subnet)
Sets the value ofDatabaseMigrationServicePrivateConnectionVpcPeeringConfig.getSubnet()- Parameters:
subnet- A free subnet for peering. (CIDR of /29). 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#subnet DatabaseMigrationServicePrivateConnection#subnet}- Returns:
this
-
vpcName
@Stability(Stable) public DatabaseMigrationServicePrivateConnectionVpcPeeringConfig.Builder vpcName(String vpcName)
Sets the value ofDatabaseMigrationServicePrivateConnectionVpcPeeringConfig.getVpcName()- Parameters:
vpcName- Fully qualified name of the VPC that Database Migration Service will peer to. Format: projects/{project}/global/{networks}/{name}. 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_name DatabaseMigrationServicePrivateConnection#vpc_name}- Returns:
this
-
build
@Stability(Stable) public DatabaseMigrationServicePrivateConnectionVpcPeeringConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DatabaseMigrationServicePrivateConnectionVpcPeeringConfig>- Returns:
- a new instance of
DatabaseMigrationServicePrivateConnectionVpcPeeringConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-