Class DatastreamConnectionProfileMysqlProfile.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.datastream_connection_profile.DatastreamConnectionProfileMysqlProfile.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DatastreamConnectionProfileMysqlProfile>
- Enclosing interface:
- DatastreamConnectionProfileMysqlProfile
@Stability(Stable) public static final class DatastreamConnectionProfileMysqlProfile.Builder extends Object implements software.amazon.jsii.Builder<DatastreamConnectionProfileMysqlProfile>
A builder forDatastreamConnectionProfileMysqlProfile
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatastreamConnectionProfileMysqlProfilebuild()Builds the configured instance.DatastreamConnectionProfileMysqlProfile.Builderhostname(String hostname)Sets the value ofDatastreamConnectionProfileMysqlProfile.getHostname()DatastreamConnectionProfileMysqlProfile.Builderpassword(String password)Sets the value ofDatastreamConnectionProfileMysqlProfile.getPassword()DatastreamConnectionProfileMysqlProfile.Builderport(Number port)Sets the value ofDatastreamConnectionProfileMysqlProfile.getPort()DatastreamConnectionProfileMysqlProfile.BuildersslConfig(DatastreamConnectionProfileMysqlProfileSslConfig sslConfig)Sets the value ofDatastreamConnectionProfileMysqlProfile.getSslConfig()DatastreamConnectionProfileMysqlProfile.Builderusername(String username)Sets the value ofDatastreamConnectionProfileMysqlProfile.getUsername()
-
-
-
Method Detail
-
hostname
@Stability(Stable) public DatastreamConnectionProfileMysqlProfile.Builder hostname(String hostname)
Sets the value ofDatastreamConnectionProfileMysqlProfile.getHostname()- Parameters:
hostname- Hostname for the MySQL 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 DatastreamConnectionProfileMysqlProfile.Builder password(String password)
Sets the value ofDatastreamConnectionProfileMysqlProfile.getPassword()- Parameters:
password- Password for the MySQL 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 DatastreamConnectionProfileMysqlProfile.Builder username(String username)
Sets the value ofDatastreamConnectionProfileMysqlProfile.getUsername()- Parameters:
username- Username for the MySQL 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 DatastreamConnectionProfileMysqlProfile.Builder port(Number port)
Sets the value ofDatastreamConnectionProfileMysqlProfile.getPort()- Parameters:
port- Port for the MySQL 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
-
sslConfig
@Stability(Stable) public DatastreamConnectionProfileMysqlProfile.Builder sslConfig(DatastreamConnectionProfileMysqlProfileSslConfig sslConfig)
Sets the value ofDatastreamConnectionProfileMysqlProfile.getSslConfig()- Parameters:
sslConfig- ssl_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/datastream_connection_profile#ssl_config DatastreamConnectionProfile#ssl_config}- Returns:
this
-
build
@Stability(Stable) public DatastreamConnectionProfileMysqlProfile build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DatastreamConnectionProfileMysqlProfile>- Returns:
- a new instance of
DatastreamConnectionProfileMysqlProfile - Throws:
NullPointerException- if any required attribute was not provided
-
-