Class SqlSourceRepresentationInstanceConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.sql_source_representation_instance.SqlSourceRepresentationInstanceConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SqlSourceRepresentationInstanceConfig>
- Enclosing interface:
- SqlSourceRepresentationInstanceConfig
@Stability(Stable) public static final class SqlSourceRepresentationInstanceConfig.Builder extends Object implements software.amazon.jsii.Builder<SqlSourceRepresentationInstanceConfig>
A builder forSqlSourceRepresentationInstanceConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
databaseVersion
@Stability(Stable) public SqlSourceRepresentationInstanceConfig.Builder databaseVersion(String databaseVersion)
Sets the value ofSqlSourceRepresentationInstanceConfig.getDatabaseVersion()- Parameters:
databaseVersion- The MySQL version running on your source database server. This parameter is required. Possible values: ["MYSQL_5_6", "MYSQL_5_7", "MYSQL_8_0", "POSTGRES_9_6", "POSTGRES_10", "POSTGRES_11", "POSTGRES_12", "POSTGRES_13", "POSTGRES_14"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_source_representation_instance#database_version SqlSourceRepresentationInstance#database_version}- Returns:
this
-
host
@Stability(Stable) public SqlSourceRepresentationInstanceConfig.Builder host(String host)
Sets the value ofSqlSourceRepresentationInstanceConfig.getHost()- Parameters:
host- The IPv4 address and port for the external server, or the the DNS address for the external server. This parameter is required. If the external server is hosted on Cloud SQL, the port is 5432. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_source_representation_instance#host SqlSourceRepresentationInstance#host}- Returns:
this
-
name
@Stability(Stable) public SqlSourceRepresentationInstanceConfig.Builder name(String name)
Sets the value ofSqlSourceRepresentationInstanceConfig.getName()- Parameters:
name- The name of the source representation instance. Use any valid Cloud SQL instance name. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_source_representation_instance#name SqlSourceRepresentationInstance#name}- Returns:
this
-
caCertificate
@Stability(Stable) public SqlSourceRepresentationInstanceConfig.Builder caCertificate(String caCertificate)
Sets the value ofSqlSourceRepresentationInstanceConfig.getCaCertificate()- Parameters:
caCertificate- The CA certificate on the external server. Include only if SSL/TLS is used on the external server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_source_representation_instance#ca_certificate SqlSourceRepresentationInstance#ca_certificate}- Returns:
this
-
clientCertificate
@Stability(Stable) public SqlSourceRepresentationInstanceConfig.Builder clientCertificate(String clientCertificate)
Sets the value ofSqlSourceRepresentationInstanceConfig.getClientCertificate()- Parameters:
clientCertificate- The client certificate on the external server. Required only for server-client authentication. Include only if SSL/TLS is used on the external server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_source_representation_instance#client_certificate SqlSourceRepresentationInstance#client_certificate}- Returns:
this
-
clientKey
@Stability(Stable) public SqlSourceRepresentationInstanceConfig.Builder clientKey(String clientKey)
Sets the value ofSqlSourceRepresentationInstanceConfig.getClientKey()- Parameters:
clientKey- The private key file for the client certificate on the external server. Required only for server-client authentication. Include only if SSL/TLS is used on the external server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_source_representation_instance#client_key SqlSourceRepresentationInstance#client_key}- Returns:
this
-
dumpFilePath
@Stability(Stable) public SqlSourceRepresentationInstanceConfig.Builder dumpFilePath(String dumpFilePath)
Sets the value ofSqlSourceRepresentationInstanceConfig.getDumpFilePath()- Parameters:
dumpFilePath- A file in the bucket that contains the data from the external server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_source_representation_instance#dump_file_path SqlSourceRepresentationInstance#dump_file_path}- Returns:
this
-
id
@Stability(Stable) public SqlSourceRepresentationInstanceConfig.Builder id(String id)
Sets the value ofSqlSourceRepresentationInstanceConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_source_representation_instance#id SqlSourceRepresentationInstance#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
-
password
@Stability(Stable) public SqlSourceRepresentationInstanceConfig.Builder password(String password)
Sets the value ofSqlSourceRepresentationInstanceConfig.getPassword()- Parameters:
password- The password for the replication user account. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_source_representation_instance#password SqlSourceRepresentationInstance#password}- Returns:
this
-
port
@Stability(Stable) public SqlSourceRepresentationInstanceConfig.Builder port(Number port)
Sets the value ofSqlSourceRepresentationInstanceConfig.getPort()- Parameters:
port- The externally accessible port for the source database server. Defaults to 3306. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_source_representation_instance#port SqlSourceRepresentationInstance#port}- Returns:
this
-
project
@Stability(Stable) public SqlSourceRepresentationInstanceConfig.Builder project(String project)
Sets the value ofSqlSourceRepresentationInstanceConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_source_representation_instance#project SqlSourceRepresentationInstance#project}.- Returns:
this
-
region
@Stability(Stable) public SqlSourceRepresentationInstanceConfig.Builder region(String region)
Sets the value ofSqlSourceRepresentationInstanceConfig.getRegion()- Parameters:
region- The Region in which the created instance should reside. If it is not provided, the provider region is used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_source_representation_instance#region SqlSourceRepresentationInstance#region}- Returns:
this
-
timeouts
@Stability(Stable) public SqlSourceRepresentationInstanceConfig.Builder timeouts(SqlSourceRepresentationInstanceTimeouts timeouts)
Sets the value ofSqlSourceRepresentationInstanceConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_source_representation_instance#timeouts SqlSourceRepresentationInstance#timeouts}- Returns:
this
-
username
@Stability(Stable) public SqlSourceRepresentationInstanceConfig.Builder username(String username)
Sets the value ofSqlSourceRepresentationInstanceConfig.getUsername()- Parameters:
username- The replication user account on the external server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_source_representation_instance#username SqlSourceRepresentationInstance#username}- Returns:
this
-
connection
@Stability(Experimental) public SqlSourceRepresentationInstanceConfig.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 SqlSourceRepresentationInstanceConfig.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 SqlSourceRepresentationInstanceConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public SqlSourceRepresentationInstanceConfig.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 SqlSourceRepresentationInstanceConfig.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 SqlSourceRepresentationInstanceConfig.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 SqlSourceRepresentationInstanceConfig.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 SqlSourceRepresentationInstanceConfig.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 SqlSourceRepresentationInstanceConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public SqlSourceRepresentationInstanceConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SqlSourceRepresentationInstanceConfig>- Returns:
- a new instance of
SqlSourceRepresentationInstanceConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-