Class DatastreamConnectionProfileMysqlProfileSslConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.datastream_connection_profile.DatastreamConnectionProfileMysqlProfileSslConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DatastreamConnectionProfileMysqlProfileSslConfig>
- Enclosing interface:
- DatastreamConnectionProfileMysqlProfileSslConfig
@Stability(Stable) public static final class DatastreamConnectionProfileMysqlProfileSslConfig.Builder extends Object implements software.amazon.jsii.Builder<DatastreamConnectionProfileMysqlProfileSslConfig>
A builder forDatastreamConnectionProfileMysqlProfileSslConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatastreamConnectionProfileMysqlProfileSslConfigbuild()Builds the configured instance.DatastreamConnectionProfileMysqlProfileSslConfig.BuildercaCertificate(String caCertificate)Sets the value ofDatastreamConnectionProfileMysqlProfileSslConfig.getCaCertificate()DatastreamConnectionProfileMysqlProfileSslConfig.BuilderclientCertificate(String clientCertificate)Sets the value ofDatastreamConnectionProfileMysqlProfileSslConfig.getClientCertificate()DatastreamConnectionProfileMysqlProfileSslConfig.BuilderclientKey(String clientKey)Sets the value ofDatastreamConnectionProfileMysqlProfileSslConfig.getClientKey()
-
-
-
Method Detail
-
caCertificate
@Stability(Stable) public DatastreamConnectionProfileMysqlProfileSslConfig.Builder caCertificate(String caCertificate)
Sets the value ofDatastreamConnectionProfileMysqlProfileSslConfig.getCaCertificate()- Parameters:
caCertificate- PEM-encoded certificate of the CA that signed the source database server's certificate. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/datastream_connection_profile#ca_certificate DatastreamConnectionProfile#ca_certificate}- Returns:
this
-
clientCertificate
@Stability(Stable) public DatastreamConnectionProfileMysqlProfileSslConfig.Builder clientCertificate(String clientCertificate)
Sets the value ofDatastreamConnectionProfileMysqlProfileSslConfig.getClientCertificate()- Parameters:
clientCertificate- PEM-encoded certificate that will be used by the replica to authenticate against the source database server. If this field is used then the 'clientKey' and the 'caCertificate' fields are mandatory. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/datastream_connection_profile#client_certificate DatastreamConnectionProfile#client_certificate}- Returns:
this
-
clientKey
@Stability(Stable) public DatastreamConnectionProfileMysqlProfileSslConfig.Builder clientKey(String clientKey)
Sets the value ofDatastreamConnectionProfileMysqlProfileSslConfig.getClientKey()- Parameters:
clientKey- PEM-encoded private key associated with the Client Certificate. If this field is used then the 'client_certificate' and the 'ca_certificate' fields are mandatory. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/datastream_connection_profile#client_key DatastreamConnectionProfile#client_key}- Returns:
this
-
build
@Stability(Stable) public DatastreamConnectionProfileMysqlProfileSslConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DatastreamConnectionProfileMysqlProfileSslConfig>- Returns:
- a new instance of
DatastreamConnectionProfileMysqlProfileSslConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-