@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PipeTargetRedshiftDataParameters extends Object implements Serializable, Cloneable, StructuredPojo
These are custom parameters to be used when the target is a Amazon Redshift cluster to invoke the Amazon Redshift Data API BatchExecuteStatement.
Constructor and Description |
---|
PipeTargetRedshiftDataParameters() |
Modifier and Type | Method and Description |
---|---|
PipeTargetRedshiftDataParameters |
clone() |
boolean |
equals(Object obj) |
String |
getDatabase()
The name of the database.
|
String |
getDbUser()
The database user name.
|
String |
getSecretManagerArn()
The name or ARN of the secret that enables access to the database.
|
List<String> |
getSqls()
The SQL statement text to run.
|
String |
getStatementName()
The name of the SQL statement.
|
Boolean |
getWithEvent()
Indicates whether to send an event back to EventBridge after the SQL statement runs.
|
int |
hashCode() |
Boolean |
isWithEvent()
Indicates whether to send an event back to EventBridge after the SQL statement runs.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDatabase(String database)
The name of the database.
|
void |
setDbUser(String dbUser)
The database user name.
|
void |
setSecretManagerArn(String secretManagerArn)
The name or ARN of the secret that enables access to the database.
|
void |
setSqls(Collection<String> sqls)
The SQL statement text to run.
|
void |
setStatementName(String statementName)
The name of the SQL statement.
|
void |
setWithEvent(Boolean withEvent)
Indicates whether to send an event back to EventBridge after the SQL statement runs.
|
String |
toString()
Returns a string representation of this object.
|
PipeTargetRedshiftDataParameters |
withDatabase(String database)
The name of the database.
|
PipeTargetRedshiftDataParameters |
withDbUser(String dbUser)
The database user name.
|
PipeTargetRedshiftDataParameters |
withSecretManagerArn(String secretManagerArn)
The name or ARN of the secret that enables access to the database.
|
PipeTargetRedshiftDataParameters |
withSqls(Collection<String> sqls)
The SQL statement text to run.
|
PipeTargetRedshiftDataParameters |
withSqls(String... sqls)
The SQL statement text to run.
|
PipeTargetRedshiftDataParameters |
withStatementName(String statementName)
The name of the SQL statement.
|
PipeTargetRedshiftDataParameters |
withWithEvent(Boolean withEvent)
Indicates whether to send an event back to EventBridge after the SQL statement runs.
|
public void setSecretManagerArn(String secretManagerArn)
The name or ARN of the secret that enables access to the database. Required when authenticating using Secrets Manager.
secretManagerArn
- The name or ARN of the secret that enables access to the database. Required when authenticating using
Secrets Manager.public String getSecretManagerArn()
The name or ARN of the secret that enables access to the database. Required when authenticating using Secrets Manager.
public PipeTargetRedshiftDataParameters withSecretManagerArn(String secretManagerArn)
The name or ARN of the secret that enables access to the database. Required when authenticating using Secrets Manager.
secretManagerArn
- The name or ARN of the secret that enables access to the database. Required when authenticating using
Secrets Manager.public void setDatabase(String database)
The name of the database. Required when authenticating using temporary credentials.
database
- The name of the database. Required when authenticating using temporary credentials.public String getDatabase()
The name of the database. Required when authenticating using temporary credentials.
public PipeTargetRedshiftDataParameters withDatabase(String database)
The name of the database. Required when authenticating using temporary credentials.
database
- The name of the database. Required when authenticating using temporary credentials.public void setDbUser(String dbUser)
The database user name. Required when authenticating using temporary credentials.
dbUser
- The database user name. Required when authenticating using temporary credentials.public String getDbUser()
The database user name. Required when authenticating using temporary credentials.
public PipeTargetRedshiftDataParameters withDbUser(String dbUser)
The database user name. Required when authenticating using temporary credentials.
dbUser
- The database user name. Required when authenticating using temporary credentials.public void setStatementName(String statementName)
The name of the SQL statement. You can name the SQL statement when you create it to identify the query.
statementName
- The name of the SQL statement. You can name the SQL statement when you create it to identify the query.public String getStatementName()
The name of the SQL statement. You can name the SQL statement when you create it to identify the query.
public PipeTargetRedshiftDataParameters withStatementName(String statementName)
The name of the SQL statement. You can name the SQL statement when you create it to identify the query.
statementName
- The name of the SQL statement. You can name the SQL statement when you create it to identify the query.public void setWithEvent(Boolean withEvent)
Indicates whether to send an event back to EventBridge after the SQL statement runs.
withEvent
- Indicates whether to send an event back to EventBridge after the SQL statement runs.public Boolean getWithEvent()
Indicates whether to send an event back to EventBridge after the SQL statement runs.
public PipeTargetRedshiftDataParameters withWithEvent(Boolean withEvent)
Indicates whether to send an event back to EventBridge after the SQL statement runs.
withEvent
- Indicates whether to send an event back to EventBridge after the SQL statement runs.public Boolean isWithEvent()
Indicates whether to send an event back to EventBridge after the SQL statement runs.
public List<String> getSqls()
The SQL statement text to run.
public void setSqls(Collection<String> sqls)
The SQL statement text to run.
sqls
- The SQL statement text to run.public PipeTargetRedshiftDataParameters withSqls(String... sqls)
The SQL statement text to run.
NOTE: This method appends the values to the existing list (if any). Use
setSqls(java.util.Collection)
or withSqls(java.util.Collection)
if you want to override the
existing values.
sqls
- The SQL statement text to run.public PipeTargetRedshiftDataParameters withSqls(Collection<String> sqls)
The SQL statement text to run.
sqls
- The SQL statement text to run.public String toString()
toString
in class Object
Object.toString()
public PipeTargetRedshiftDataParameters clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.