@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ExecuteStatementRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
ExecuteStatementRequest() |
Modifier and Type | Method and Description |
---|---|
ExecuteStatementRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClusterIdentifier()
The cluster identifier.
|
String |
getDatabase()
The name of the database.
|
String |
getDbUser()
The database user name.
|
String |
getSecretArn()
The name or ARN of the secret that enables access to the database.
|
String |
getSql()
The SQL statement text to run.
|
String |
getStatementName()
The name of the SQL statement.
|
Boolean |
getWithEvent()
A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statement runs.
|
int |
hashCode() |
Boolean |
isWithEvent()
A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statement runs.
|
void |
setClusterIdentifier(String clusterIdentifier)
The cluster identifier.
|
void |
setDatabase(String database)
The name of the database.
|
void |
setDbUser(String dbUser)
The database user name.
|
void |
setSecretArn(String secretArn)
The name or ARN of the secret that enables access to the database.
|
void |
setSql(String sql)
The SQL statement text to run.
|
void |
setStatementName(String statementName)
The name of the SQL statement.
|
void |
setWithEvent(Boolean withEvent)
A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statement runs.
|
String |
toString()
Returns a string representation of this object.
|
ExecuteStatementRequest |
withClusterIdentifier(String clusterIdentifier)
The cluster identifier.
|
ExecuteStatementRequest |
withDatabase(String database)
The name of the database.
|
ExecuteStatementRequest |
withDbUser(String dbUser)
The database user name.
|
ExecuteStatementRequest |
withSecretArn(String secretArn)
The name or ARN of the secret that enables access to the database.
|
ExecuteStatementRequest |
withSql(String sql)
The SQL statement text to run.
|
ExecuteStatementRequest |
withStatementName(String statementName)
The name of the SQL statement.
|
ExecuteStatementRequest |
withWithEvent(Boolean withEvent)
A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statement runs.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setClusterIdentifier(String clusterIdentifier)
The cluster identifier. This parameter is required when authenticating using either AWS Secrets Manager or temporary credentials.
clusterIdentifier
- The cluster identifier. This parameter is required when authenticating using either AWS Secrets Manager or
temporary credentials.public String getClusterIdentifier()
The cluster identifier. This parameter is required when authenticating using either AWS Secrets Manager or temporary credentials.
public ExecuteStatementRequest withClusterIdentifier(String clusterIdentifier)
The cluster identifier. This parameter is required when authenticating using either AWS Secrets Manager or temporary credentials.
clusterIdentifier
- The cluster identifier. This parameter is required when authenticating using either AWS Secrets Manager or
temporary credentials.public void setDatabase(String database)
The name of the database. This parameter is required when authenticating using temporary credentials.
database
- The name of the database. This parameter is required when authenticating using temporary credentials.public String getDatabase()
The name of the database. This parameter is required when authenticating using temporary credentials.
public ExecuteStatementRequest withDatabase(String database)
The name of the database. This parameter is required when authenticating using temporary credentials.
database
- The name of the database. This parameter is required when authenticating using temporary credentials.public void setDbUser(String dbUser)
The database user name. This parameter is required when authenticating using temporary credentials.
dbUser
- The database user name. This parameter is required when authenticating using temporary credentials.public String getDbUser()
The database user name. This parameter is required when authenticating using temporary credentials.
public ExecuteStatementRequest withDbUser(String dbUser)
The database user name. This parameter is required when authenticating using temporary credentials.
dbUser
- The database user name. This parameter is required when authenticating using temporary credentials.public void setSecretArn(String secretArn)
The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using AWS Secrets Manager.
secretArn
- The name or ARN of the secret that enables access to the database. This parameter is required when
authenticating using AWS Secrets Manager.public String getSecretArn()
The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using AWS Secrets Manager.
public ExecuteStatementRequest withSecretArn(String secretArn)
The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using AWS Secrets Manager.
secretArn
- The name or ARN of the secret that enables access to the database. This parameter is required when
authenticating using AWS Secrets Manager.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 ExecuteStatementRequest 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 ExecuteStatementRequest 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)
A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statement runs.
withEvent
- A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL
statement runs.public Boolean getWithEvent()
A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statement runs.
public ExecuteStatementRequest withWithEvent(Boolean withEvent)
A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statement runs.
withEvent
- A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL
statement runs.public Boolean isWithEvent()
A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statement runs.
public String toString()
toString
in class Object
Object.toString()
public ExecuteStatementRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()