Class CfnDeliveryStream.DatabaseSourceConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.DatabaseSourceConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeliveryStream.DatabaseSourceConfigurationProperty>
- Enclosing interface:
CfnDeliveryStream.DatabaseSourceConfigurationProperty
@Stability(Stable)
public static final class CfnDeliveryStream.DatabaseSourceConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeliveryStream.DatabaseSourceConfigurationProperty>
A builder for
CfnDeliveryStream.DatabaseSourceConfigurationProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.columns
(IResolvable columns) Sets the value ofCfnDeliveryStream.DatabaseSourceConfigurationProperty.getColumns()
Sets the value ofCfnDeliveryStream.DatabaseSourceConfigurationProperty.getColumns()
databases
(IResolvable databases) Sets the value ofCfnDeliveryStream.DatabaseSourceConfigurationProperty.getDatabases()
databases
(CfnDeliveryStream.DatabasesProperty databases) Sets the value ofCfnDeliveryStream.DatabaseSourceConfigurationProperty.getDatabases()
databaseSourceAuthenticationConfiguration
(IResolvable databaseSourceAuthenticationConfiguration) databaseSourceAuthenticationConfiguration
(CfnDeliveryStream.DatabaseSourceAuthenticationConfigurationProperty databaseSourceAuthenticationConfiguration) databaseSourceVpcConfiguration
(IResolvable databaseSourceVpcConfiguration) databaseSourceVpcConfiguration
(CfnDeliveryStream.DatabaseSourceVPCConfigurationProperty databaseSourceVpcConfiguration) Sets the value ofCfnDeliveryStream.DatabaseSourceConfigurationProperty.getDigest()
Sets the value ofCfnDeliveryStream.DatabaseSourceConfigurationProperty.getEndpoint()
Sets the value ofCfnDeliveryStream.DatabaseSourceConfigurationProperty.getPort()
publicCertificate
(String publicCertificate) snapshotWatermarkTable
(String snapshotWatermarkTable) Sets the value ofCfnDeliveryStream.DatabaseSourceConfigurationProperty.getSslMode()
surrogateKeys
(List<String> surrogateKeys) Sets the value ofCfnDeliveryStream.DatabaseSourceConfigurationProperty.getSurrogateKeys()
tables
(IResolvable tables) Sets the value ofCfnDeliveryStream.DatabaseSourceConfigurationProperty.getTables()
Sets the value ofCfnDeliveryStream.DatabaseSourceConfigurationProperty.getTables()
Sets the value ofCfnDeliveryStream.DatabaseSourceConfigurationProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
databases
@Stability(Stable) public CfnDeliveryStream.DatabaseSourceConfigurationProperty.Builder databases(IResolvable databases) Sets the value ofCfnDeliveryStream.DatabaseSourceConfigurationProperty.getDatabases()
- Parameters:
databases
- The list of database patterns in source database endpoint for Firehose to read from. This parameter is required. Amazon Data Firehose is in preview release and is subject to change.- Returns:
this
-
databases
@Stability(Stable) public CfnDeliveryStream.DatabaseSourceConfigurationProperty.Builder databases(CfnDeliveryStream.DatabasesProperty databases) Sets the value ofCfnDeliveryStream.DatabaseSourceConfigurationProperty.getDatabases()
- Parameters:
databases
- The list of database patterns in source database endpoint for Firehose to read from. This parameter is required. Amazon Data Firehose is in preview release and is subject to change.- Returns:
this
-
databaseSourceAuthenticationConfiguration
@Stability(Stable) public CfnDeliveryStream.DatabaseSourceConfigurationProperty.Builder databaseSourceAuthenticationConfiguration(IResolvable databaseSourceAuthenticationConfiguration) Sets the value ofCfnDeliveryStream.DatabaseSourceConfigurationProperty.getDatabaseSourceAuthenticationConfiguration()
- Parameters:
databaseSourceAuthenticationConfiguration
- The structure to configure the authentication methods for Firehose to connect to source database endpoint. This parameter is required. Amazon Data Firehose is in preview release and is subject to change.- Returns:
this
-
databaseSourceAuthenticationConfiguration
@Stability(Stable) public CfnDeliveryStream.DatabaseSourceConfigurationProperty.Builder databaseSourceAuthenticationConfiguration(CfnDeliveryStream.DatabaseSourceAuthenticationConfigurationProperty databaseSourceAuthenticationConfiguration) Sets the value ofCfnDeliveryStream.DatabaseSourceConfigurationProperty.getDatabaseSourceAuthenticationConfiguration()
- Parameters:
databaseSourceAuthenticationConfiguration
- The structure to configure the authentication methods for Firehose to connect to source database endpoint. This parameter is required. Amazon Data Firehose is in preview release and is subject to change.- Returns:
this
-
databaseSourceVpcConfiguration
@Stability(Stable) public CfnDeliveryStream.DatabaseSourceConfigurationProperty.Builder databaseSourceVpcConfiguration(IResolvable databaseSourceVpcConfiguration) Sets the value ofCfnDeliveryStream.DatabaseSourceConfigurationProperty.getDatabaseSourceVpcConfiguration()
- Parameters:
databaseSourceVpcConfiguration
- The details of the VPC Endpoint Service which Firehose uses to create a PrivateLink to the database. This parameter is required. Amazon Data Firehose is in preview release and is subject to change.- Returns:
this
-
databaseSourceVpcConfiguration
@Stability(Stable) public CfnDeliveryStream.DatabaseSourceConfigurationProperty.Builder databaseSourceVpcConfiguration(CfnDeliveryStream.DatabaseSourceVPCConfigurationProperty databaseSourceVpcConfiguration) Sets the value ofCfnDeliveryStream.DatabaseSourceConfigurationProperty.getDatabaseSourceVpcConfiguration()
- Parameters:
databaseSourceVpcConfiguration
- The details of the VPC Endpoint Service which Firehose uses to create a PrivateLink to the database. This parameter is required. Amazon Data Firehose is in preview release and is subject to change.- Returns:
this
-
endpoint
@Stability(Stable) public CfnDeliveryStream.DatabaseSourceConfigurationProperty.Builder endpoint(String endpoint) Sets the value ofCfnDeliveryStream.DatabaseSourceConfigurationProperty.getEndpoint()
- Parameters:
endpoint
- The endpoint of the database server. This parameter is required. Amazon Data Firehose is in preview release and is subject to change.- Returns:
this
-
port
@Stability(Stable) public CfnDeliveryStream.DatabaseSourceConfigurationProperty.Builder port(Number port) Sets the value ofCfnDeliveryStream.DatabaseSourceConfigurationProperty.getPort()
- Parameters:
port
- The port of the database. This can be one of the following values. This parameter is required.- 3306 for MySQL database type
- 5432 for PostgreSQL database type
Amazon Data Firehose is in preview release and is subject to change.
- Returns:
this
-
snapshotWatermarkTable
@Stability(Stable) public CfnDeliveryStream.DatabaseSourceConfigurationProperty.Builder snapshotWatermarkTable(String snapshotWatermarkTable) - Parameters:
snapshotWatermarkTable
- The fully qualified name of the table in source database endpoint that Firehose uses to track snapshot progress. This parameter is required. Amazon Data Firehose is in preview release and is subject to change.- Returns:
this
-
tables
@Stability(Stable) public CfnDeliveryStream.DatabaseSourceConfigurationProperty.Builder tables(IResolvable tables) Sets the value ofCfnDeliveryStream.DatabaseSourceConfigurationProperty.getTables()
- Parameters:
tables
- The list of table patterns in source database endpoint for Firehose to read from. This parameter is required. Amazon Data Firehose is in preview release and is subject to change.- Returns:
this
-
tables
@Stability(Stable) public CfnDeliveryStream.DatabaseSourceConfigurationProperty.Builder tables(CfnDeliveryStream.DatabaseTablesProperty tables) Sets the value ofCfnDeliveryStream.DatabaseSourceConfigurationProperty.getTables()
- Parameters:
tables
- The list of table patterns in source database endpoint for Firehose to read from. This parameter is required. Amazon Data Firehose is in preview release and is subject to change.- Returns:
this
-
type
@Stability(Stable) public CfnDeliveryStream.DatabaseSourceConfigurationProperty.Builder type(String type) Sets the value ofCfnDeliveryStream.DatabaseSourceConfigurationProperty.getType()
- Parameters:
type
- The type of database engine. This can be one of the following values. This parameter is required.- MySQL
- PostgreSQL
Amazon Data Firehose is in preview release and is subject to change.
- Returns:
this
-
columns
@Stability(Stable) public CfnDeliveryStream.DatabaseSourceConfigurationProperty.Builder columns(IResolvable columns) Sets the value ofCfnDeliveryStream.DatabaseSourceConfigurationProperty.getColumns()
- Parameters:
columns
- The list of column patterns in source database endpoint for Firehose to read from. Amazon Data Firehose is in preview release and is subject to change.- Returns:
this
-
columns
@Stability(Stable) public CfnDeliveryStream.DatabaseSourceConfigurationProperty.Builder columns(CfnDeliveryStream.DatabaseColumnsProperty columns) Sets the value ofCfnDeliveryStream.DatabaseSourceConfigurationProperty.getColumns()
- Parameters:
columns
- The list of column patterns in source database endpoint for Firehose to read from. Amazon Data Firehose is in preview release and is subject to change.- Returns:
this
-
digest
@Stability(Stable) public CfnDeliveryStream.DatabaseSourceConfigurationProperty.Builder digest(String digest) Sets the value ofCfnDeliveryStream.DatabaseSourceConfigurationProperty.getDigest()
- Parameters:
digest
- the value to be set.- Returns:
this
-
publicCertificate
@Stability(Stable) public CfnDeliveryStream.DatabaseSourceConfigurationProperty.Builder publicCertificate(String publicCertificate) - Parameters:
publicCertificate
- the value to be set.- Returns:
this
-
sslMode
@Stability(Stable) public CfnDeliveryStream.DatabaseSourceConfigurationProperty.Builder sslMode(String sslMode) Sets the value ofCfnDeliveryStream.DatabaseSourceConfigurationProperty.getSslMode()
- Parameters:
sslMode
- The mode to enable or disable SSL when Firehose connects to the database endpoint. Amazon Data Firehose is in preview release and is subject to change.- Returns:
this
-
surrogateKeys
@Stability(Stable) public CfnDeliveryStream.DatabaseSourceConfigurationProperty.Builder surrogateKeys(List<String> surrogateKeys) Sets the value ofCfnDeliveryStream.DatabaseSourceConfigurationProperty.getSurrogateKeys()
- Parameters:
surrogateKeys
- The optional list of table and column names used as unique key columns when taking snapshot if the tables don’t have primary keys configured. Amazon Data Firehose is in preview release and is subject to change.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDeliveryStream.DatabaseSourceConfigurationProperty>
- Returns:
- a new instance of
CfnDeliveryStream.DatabaseSourceConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-