@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RedshiftDataParameters extends Object implements Serializable, Cloneable, StructuredPojo
These are custom parameters to be used when the target is a Amazon Redshift cluster or Redshift Serverless workgroup to invoke the Amazon Redshift Data API ExecuteStatement based on EventBridge events.
Constructor and Description |
---|
RedshiftDataParameters() |
Modifier and Type | Method and Description |
---|---|
RedshiftDataParameters |
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.
|
String |
getSql()
The SQL statement text to run.
|
List<String> |
getSqls() |
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 |
setSql(String sql)
The SQL statement text to run.
|
void |
setSqls(Collection<String> sqls) |
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.
|
RedshiftDataParameters |
withDatabase(String database)
The name of the database.
|
RedshiftDataParameters |
withDbUser(String dbUser)
The database user name.
|
RedshiftDataParameters |
withSecretManagerArn(String secretManagerArn)
The name or ARN of the secret that enables access to the database.
|
RedshiftDataParameters |
withSql(String sql)
The SQL statement text to run.
|
RedshiftDataParameters |
withSqls(Collection<String> sqls) |
RedshiftDataParameters |
withSqls(String... sqls)
NOTE: This method appends the values to the existing list (if any).
|
RedshiftDataParameters |
withStatementName(String statementName)
The name of the SQL statement.
|
RedshiftDataParameters |
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 Amazon Web Services Secrets Manager.
secretManagerArn
- The name or ARN of the secret that enables access to the database. Required when authenticating using
Amazon Web Services Secrets Manager.public String getSecretManagerArn()
The name or ARN of the secret that enables access to the database. Required when authenticating using Amazon Web Services Secrets Manager.
public RedshiftDataParameters withSecretManagerArn(String secretManagerArn)
The name or ARN of the secret that enables access to the database. Required when authenticating using Amazon Web Services Secrets Manager.
secretManagerArn
- The name or ARN of the secret that enables access to the database. Required when authenticating using
Amazon Web Services 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 RedshiftDataParameters 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.
Do not provide this parameter when connecting to a Redshift Serverless workgroup.
dbUser
- The database user name. Required when authenticating using temporary credentials.
Do not provide this parameter when connecting to a Redshift Serverless workgroup.
public String getDbUser()
The database user name. Required when authenticating using temporary credentials.
Do not provide this parameter when connecting to a Redshift Serverless workgroup.
Do not provide this parameter when connecting to a Redshift Serverless workgroup.
public RedshiftDataParameters withDbUser(String dbUser)
The database user name. Required when authenticating using temporary credentials.
Do not provide this parameter when connecting to a Redshift Serverless workgroup.
dbUser
- The database user name. Required when authenticating using temporary credentials.
Do not provide this parameter when connecting to a Redshift Serverless workgroup.
public void setSql(String sql)
The SQL statement text to run.
sql
- The SQL statement text to run.public String getSql()
The SQL statement text to run.
public RedshiftDataParameters withSql(String sql)
The SQL statement text to run.
sql
- The SQL statement text to run.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 RedshiftDataParameters 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 RedshiftDataParameters 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 void setSqls(Collection<String> sqls)
sqls
- public RedshiftDataParameters withSqls(String... sqls)
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
- public RedshiftDataParameters withSqls(Collection<String> sqls)
sqls
- public String toString()
toString
in class Object
Object.toString()
public RedshiftDataParameters clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.