Class CfnDataSource.ConnectionConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kendra.CfnDataSource.ConnectionConfigurationProperty.Builder
- All Implemented Interfaces:
- software.amazon.jsii.Builder<CfnDataSource.ConnectionConfigurationProperty>
- Enclosing interface:
- CfnDataSource.ConnectionConfigurationProperty
@Stability(Stable)
public static final class CfnDataSource.ConnectionConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSource.ConnectionConfigurationProperty>
A builder for 
CfnDataSource.ConnectionConfigurationProperty- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds the configured instance.databaseHost(String databaseHost) Sets the value ofCfnDataSource.ConnectionConfigurationProperty.getDatabaseHost()databaseName(String databaseName) Sets the value ofCfnDataSource.ConnectionConfigurationProperty.getDatabaseName()databasePort(Number databasePort) Sets the value ofCfnDataSource.ConnectionConfigurationProperty.getDatabasePort()Sets the value ofCfnDataSource.ConnectionConfigurationProperty.getSecretArn()Sets the value ofCfnDataSource.ConnectionConfigurationProperty.getTableName()
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
databaseHost@Stability(Stable) public CfnDataSource.ConnectionConfigurationProperty.Builder databaseHost(String databaseHost) Sets the value ofCfnDataSource.ConnectionConfigurationProperty.getDatabaseHost()- Parameters:
- databaseHost- The name of the host for the database. This parameter is required. Can be either a string (host.subdomain.domain.tld) or an IPv4 or IPv6 address.
- Returns:
- this
 
- 
databaseName@Stability(Stable) public CfnDataSource.ConnectionConfigurationProperty.Builder databaseName(String databaseName) Sets the value ofCfnDataSource.ConnectionConfigurationProperty.getDatabaseName()- Parameters:
- databaseName- The name of the database containing the document data. This parameter is required.
- Returns:
- this
 
- 
databasePort@Stability(Stable) public CfnDataSource.ConnectionConfigurationProperty.Builder databasePort(Number databasePort) Sets the value ofCfnDataSource.ConnectionConfigurationProperty.getDatabasePort()- Parameters:
- databasePort- The port that the database uses for connections. This parameter is required.
- Returns:
- this
 
- 
secretArn@Stability(Stable) public CfnDataSource.ConnectionConfigurationProperty.Builder secretArn(String secretArn) Sets the value ofCfnDataSource.ConnectionConfigurationProperty.getSecretArn()- Parameters:
- secretArn- The Amazon Resource Name (ARN) of an AWS Secrets Manager secret that stores the credentials. This parameter is required. The credentials should be a user-password pair. For more information, see Using a Database Data Source . For more information about AWS Secrets Manager , see What Is AWS Secrets Manager in the AWS Secrets Manager user guide.
- Returns:
- this
 
- 
tableName@Stability(Stable) public CfnDataSource.ConnectionConfigurationProperty.Builder tableName(String tableName) Sets the value ofCfnDataSource.ConnectionConfigurationProperty.getTableName()- Parameters:
- tableName- The name of the table that contains the document data. This parameter is required.
- Returns:
- this
 
- 
buildBuilds the configured instance.- Specified by:
- buildin interface- software.amazon.jsii.Builder<CfnDataSource.ConnectionConfigurationProperty>
- Returns:
- a new instance of CfnDataSource.ConnectionConfigurationProperty
- Throws:
- NullPointerException- if any required attribute was not provided
 
 
-