Class DatabaseMigrationServiceConnectionProfilePostgresql.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.database_migration_service_connection_profile.DatabaseMigrationServiceConnectionProfilePostgresql.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DatabaseMigrationServiceConnectionProfilePostgresql>
- Enclosing interface:
- DatabaseMigrationServiceConnectionProfilePostgresql
@Stability(Stable) public static final class DatabaseMigrationServiceConnectionProfilePostgresql.Builder extends Object implements software.amazon.jsii.Builder<DatabaseMigrationServiceConnectionProfilePostgresql>
A builder forDatabaseMigrationServiceConnectionProfilePostgresql
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
host
@Stability(Stable) public DatabaseMigrationServiceConnectionProfilePostgresql.Builder host(String host)
Sets the value ofDatabaseMigrationServiceConnectionProfilePostgresql.getHost()- Parameters:
host- Required. The IP or hostname of the source MySQL database. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/database_migration_service_connection_profile#host DatabaseMigrationServiceConnectionProfile#host}- Returns:
this
-
password
@Stability(Stable) public DatabaseMigrationServiceConnectionProfilePostgresql.Builder password(String password)
Sets the value ofDatabaseMigrationServiceConnectionProfilePostgresql.getPassword()- Parameters:
password- Required. This parameter is required. Input only. The password for the user that Database Migration Service will be using to connect to the database. This field is not returned on request, and the value is encrypted when stored in Database Migration Service. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/database_migration_service_connection_profile#password DatabaseMigrationServiceConnectionProfile#password}- Returns:
this
-
port
@Stability(Stable) public DatabaseMigrationServiceConnectionProfilePostgresql.Builder port(Number port)
Sets the value ofDatabaseMigrationServiceConnectionProfilePostgresql.getPort()- Parameters:
port- Required. The network port of the source MySQL database. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/database_migration_service_connection_profile#port DatabaseMigrationServiceConnectionProfile#port}- Returns:
this
-
username
@Stability(Stable) public DatabaseMigrationServiceConnectionProfilePostgresql.Builder username(String username)
Sets the value ofDatabaseMigrationServiceConnectionProfilePostgresql.getUsername()- Parameters:
username- Required. This parameter is required. The username that Database Migration Service will use to connect to the database. The value is encrypted when stored in Database Migration Service. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/database_migration_service_connection_profile#username DatabaseMigrationServiceConnectionProfile#username}- Returns:
this
-
cloudSqlId
@Stability(Stable) public DatabaseMigrationServiceConnectionProfilePostgresql.Builder cloudSqlId(String cloudSqlId)
Sets the value ofDatabaseMigrationServiceConnectionProfilePostgresql.getCloudSqlId()- Parameters:
cloudSqlId- If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/database_migration_service_connection_profile#cloud_sql_id DatabaseMigrationServiceConnectionProfile#cloud_sql_id}- Returns:
this
-
ssl
@Stability(Stable) public DatabaseMigrationServiceConnectionProfilePostgresql.Builder ssl(DatabaseMigrationServiceConnectionProfilePostgresqlSsl ssl)
Sets the value ofDatabaseMigrationServiceConnectionProfilePostgresql.getSsl()- Parameters:
ssl- ssl block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/database_migration_service_connection_profile#ssl DatabaseMigrationServiceConnectionProfile#ssl}- Returns:
this
-
build
@Stability(Stable) public DatabaseMigrationServiceConnectionProfilePostgresql build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DatabaseMigrationServiceConnectionProfilePostgresql>- Returns:
- a new instance of
DatabaseMigrationServiceConnectionProfilePostgresql - Throws:
NullPointerException- if any required attribute was not provided
-
-