Class CfnPipe.PipeTargetRedshiftDataParametersProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pipes.CfnPipe.PipeTargetRedshiftDataParametersProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPipe.PipeTargetRedshiftDataParametersProperty>
- Enclosing interface:
- CfnPipe.PipeTargetRedshiftDataParametersProperty
@Stability(Stable)
public static final class CfnPipe.PipeTargetRedshiftDataParametersProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPipe.PipeTargetRedshiftDataParametersProperty>
A builder for
CfnPipe.PipeTargetRedshiftDataParametersProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnPipe.PipeTargetRedshiftDataParametersProperty.getDatabase()
Sets the value ofCfnPipe.PipeTargetRedshiftDataParametersProperty.getDbUser()
secretManagerArn
(String secretManagerArn) Sets the value ofCfnPipe.PipeTargetRedshiftDataParametersProperty.getSecretManagerArn()
Sets the value ofCfnPipe.PipeTargetRedshiftDataParametersProperty.getSqls()
statementName
(String statementName) Sets the value ofCfnPipe.PipeTargetRedshiftDataParametersProperty.getStatementName()
Sets the value ofCfnPipe.PipeTargetRedshiftDataParametersProperty.getWithEvent()
withEvent
(IResolvable withEvent) Sets the value ofCfnPipe.PipeTargetRedshiftDataParametersProperty.getWithEvent()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
database
@Stability(Stable) public CfnPipe.PipeTargetRedshiftDataParametersProperty.Builder database(String database) Sets the value ofCfnPipe.PipeTargetRedshiftDataParametersProperty.getDatabase()
- Parameters:
database
- The name of the database. This parameter is required. Required when authenticating using temporary credentials.- Returns:
this
-
sqls
@Stability(Stable) public CfnPipe.PipeTargetRedshiftDataParametersProperty.Builder sqls(List<String> sqls) Sets the value ofCfnPipe.PipeTargetRedshiftDataParametersProperty.getSqls()
- Parameters:
sqls
- The SQL statement text to run. This parameter is required.- Returns:
this
-
dbUser
@Stability(Stable) public CfnPipe.PipeTargetRedshiftDataParametersProperty.Builder dbUser(String dbUser) Sets the value ofCfnPipe.PipeTargetRedshiftDataParametersProperty.getDbUser()
- Parameters:
dbUser
- The database user name. Required when authenticating using temporary credentials.- Returns:
this
-
secretManagerArn
@Stability(Stable) public CfnPipe.PipeTargetRedshiftDataParametersProperty.Builder secretManagerArn(String secretManagerArn) Sets the value ofCfnPipe.PipeTargetRedshiftDataParametersProperty.getSecretManagerArn()
- Parameters:
secretManagerArn
- The name or ARN of the secret that enables access to the database. Required when authenticating using Secrets Manager .- Returns:
this
-
statementName
@Stability(Stable) public CfnPipe.PipeTargetRedshiftDataParametersProperty.Builder statementName(String statementName) Sets the value ofCfnPipe.PipeTargetRedshiftDataParametersProperty.getStatementName()
- Parameters:
statementName
- The name of the SQL statement. You can name the SQL statement when you create it to identify the query.- Returns:
this
-
withEvent
@Stability(Stable) public CfnPipe.PipeTargetRedshiftDataParametersProperty.Builder withEvent(Boolean withEvent) Sets the value ofCfnPipe.PipeTargetRedshiftDataParametersProperty.getWithEvent()
- Parameters:
withEvent
- Indicates whether to send an event back to EventBridge after the SQL statement runs.- Returns:
this
-
withEvent
@Stability(Stable) public CfnPipe.PipeTargetRedshiftDataParametersProperty.Builder withEvent(IResolvable withEvent) Sets the value ofCfnPipe.PipeTargetRedshiftDataParametersProperty.getWithEvent()
- Parameters:
withEvent
- Indicates whether to send an event back to EventBridge after the SQL statement runs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPipe.PipeTargetRedshiftDataParametersProperty>
- Returns:
- a new instance of
CfnPipe.PipeTargetRedshiftDataParametersProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-