Class DatastreamConnectionProfilePostgresqlProfile.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.datastream_connection_profile.DatastreamConnectionProfilePostgresqlProfile.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DatastreamConnectionProfilePostgresqlProfile>
- Enclosing interface:
- DatastreamConnectionProfilePostgresqlProfile
@Stability(Stable) public static final class DatastreamConnectionProfilePostgresqlProfile.Builder extends Object implements software.amazon.jsii.Builder<DatastreamConnectionProfilePostgresqlProfile>
A builder forDatastreamConnectionProfilePostgresqlProfile
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatastreamConnectionProfilePostgresqlProfilebuild()Builds the configured instance.DatastreamConnectionProfilePostgresqlProfile.Builderdatabase(String database)Sets the value ofDatastreamConnectionProfilePostgresqlProfile.getDatabase()DatastreamConnectionProfilePostgresqlProfile.Builderhostname(String hostname)Sets the value ofDatastreamConnectionProfilePostgresqlProfile.getHostname()DatastreamConnectionProfilePostgresqlProfile.Builderpassword(String password)Sets the value ofDatastreamConnectionProfilePostgresqlProfile.getPassword()DatastreamConnectionProfilePostgresqlProfile.Builderport(Number port)Sets the value ofDatastreamConnectionProfilePostgresqlProfile.getPort()DatastreamConnectionProfilePostgresqlProfile.Builderusername(String username)Sets the value ofDatastreamConnectionProfilePostgresqlProfile.getUsername()
-
-
-
Method Detail
-
database
@Stability(Stable) public DatastreamConnectionProfilePostgresqlProfile.Builder database(String database)
Sets the value ofDatastreamConnectionProfilePostgresqlProfile.getDatabase()- Parameters:
database- Database for the PostgreSQL connection. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/datastream_connection_profile#database DatastreamConnectionProfile#database}- Returns:
this
-
hostname
@Stability(Stable) public DatastreamConnectionProfilePostgresqlProfile.Builder hostname(String hostname)
Sets the value ofDatastreamConnectionProfilePostgresqlProfile.getHostname()- Parameters:
hostname- Hostname for the PostgreSQL connection. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/datastream_connection_profile#hostname DatastreamConnectionProfile#hostname}- Returns:
this
-
password
@Stability(Stable) public DatastreamConnectionProfilePostgresqlProfile.Builder password(String password)
Sets the value ofDatastreamConnectionProfilePostgresqlProfile.getPassword()- Parameters:
password- Password for the PostgreSQL connection. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/datastream_connection_profile#password DatastreamConnectionProfile#password}- Returns:
this
-
username
@Stability(Stable) public DatastreamConnectionProfilePostgresqlProfile.Builder username(String username)
Sets the value ofDatastreamConnectionProfilePostgresqlProfile.getUsername()- Parameters:
username- Username for the PostgreSQL connection. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/datastream_connection_profile#username DatastreamConnectionProfile#username}- Returns:
this
-
port
@Stability(Stable) public DatastreamConnectionProfilePostgresqlProfile.Builder port(Number port)
Sets the value ofDatastreamConnectionProfilePostgresqlProfile.getPort()- Parameters:
port- Port for the PostgreSQL connection. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/datastream_connection_profile#port DatastreamConnectionProfile#port}- Returns:
this
-
build
@Stability(Stable) public DatastreamConnectionProfilePostgresqlProfile build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DatastreamConnectionProfilePostgresqlProfile>- Returns:
- a new instance of
DatastreamConnectionProfilePostgresqlProfile - Throws:
NullPointerException- if any required attribute was not provided
-
-