@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BatchExecuteStatementRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
BatchExecuteStatementRequest() |
Modifier and Type | Method and Description |
---|---|
BatchExecuteStatementRequest |
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.
|
List<String> |
getSqls()
One or more SQL statements to run.
|
String |
getStatementName()
The name of the SQL statements.
|
Boolean |
getWithEvent()
A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statements run.
|
String |
getWorkgroupName()
The serverless workgroup name.
|
int |
hashCode() |
Boolean |
isWithEvent()
A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statements run.
|
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 |
setSqls(Collection<String> sqls)
One or more SQL statements to run.
|
void |
setStatementName(String statementName)
The name of the SQL statements.
|
void |
setWithEvent(Boolean withEvent)
A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statements run.
|
void |
setWorkgroupName(String workgroupName)
The serverless workgroup name.
|
String |
toString()
Returns a string representation of this object.
|
BatchExecuteStatementRequest |
withClusterIdentifier(String clusterIdentifier)
The cluster identifier.
|
BatchExecuteStatementRequest |
withDatabase(String database)
The name of the database.
|
BatchExecuteStatementRequest |
withDbUser(String dbUser)
The database user name.
|
BatchExecuteStatementRequest |
withSecretArn(String secretArn)
The name or ARN of the secret that enables access to the database.
|
BatchExecuteStatementRequest |
withSqls(Collection<String> sqls)
One or more SQL statements to run.
|
BatchExecuteStatementRequest |
withSqls(String... sqls)
One or more SQL statements to run.
|
BatchExecuteStatementRequest |
withStatementName(String statementName)
The name of the SQL statements.
|
BatchExecuteStatementRequest |
withWithEvent(Boolean withEvent)
A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statements run.
|
BatchExecuteStatementRequest |
withWorkgroupName(String workgroupName)
The serverless workgroup name.
|
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 connecting to a cluster and authenticating using either Secrets Manager or temporary credentials.
clusterIdentifier
- The cluster identifier. This parameter is required when connecting to a cluster and authenticating using
either Secrets Manager or temporary credentials.public String getClusterIdentifier()
The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials.
public BatchExecuteStatementRequest withClusterIdentifier(String clusterIdentifier)
The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials.
clusterIdentifier
- The cluster identifier. This parameter is required when connecting to a cluster and authenticating using
either Secrets Manager or temporary credentials.public void setDatabase(String database)
The name of the database. This parameter is required when authenticating using either Secrets Manager or temporary credentials.
database
- The name of the database. This parameter is required when authenticating using either Secrets Manager or
temporary credentials.public String getDatabase()
The name of the database. This parameter is required when authenticating using either Secrets Manager or temporary credentials.
public BatchExecuteStatementRequest withDatabase(String database)
The name of the database. This parameter is required when authenticating using either Secrets Manager or temporary credentials.
database
- The name of the database. This parameter is required when authenticating using either Secrets Manager or
temporary credentials.public void setDbUser(String dbUser)
The database user name. This parameter is required when connecting to a cluster and authenticating using temporary credentials.
dbUser
- The database user name. This parameter is required when connecting to a cluster and authenticating using
temporary credentials.public String getDbUser()
The database user name. This parameter is required when connecting to a cluster and authenticating using temporary credentials.
public BatchExecuteStatementRequest withDbUser(String dbUser)
The database user name. This parameter is required when connecting to a cluster and authenticating using temporary credentials.
dbUser
- The database user name. This parameter is required when connecting to a cluster and 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 Secrets Manager.
secretArn
- The name or ARN of the secret that enables access to the database. This parameter is required when
authenticating using 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 Secrets Manager.
public BatchExecuteStatementRequest withSecretArn(String secretArn)
The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager.
secretArn
- The name or ARN of the secret that enables access to the database. This parameter is required when
authenticating using Secrets Manager.public List<String> getSqls()
One or more SQL statements to run.
public void setSqls(Collection<String> sqls)
One or more SQL statements to run.
sqls
- One or more SQL statements to run.public BatchExecuteStatementRequest withSqls(String... sqls)
One or more SQL statements 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
- One or more SQL statements to run.public BatchExecuteStatementRequest withSqls(Collection<String> sqls)
One or more SQL statements to run.
sqls
- One or more SQL statements to run.public void setStatementName(String statementName)
The name of the SQL statements. You can name the SQL statements when you create them to identify the query.
statementName
- The name of the SQL statements. You can name the SQL statements when you create them to identify the
query.public String getStatementName()
The name of the SQL statements. You can name the SQL statements when you create them to identify the query.
public BatchExecuteStatementRequest withStatementName(String statementName)
The name of the SQL statements. You can name the SQL statements when you create them to identify the query.
statementName
- The name of the SQL statements. You can name the SQL statements when you create them 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 statements run.
withEvent
- A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL
statements run.public Boolean getWithEvent()
A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statements run.
public BatchExecuteStatementRequest withWithEvent(Boolean withEvent)
A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statements run.
withEvent
- A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL
statements run.public Boolean isWithEvent()
A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statements run.
public void setWorkgroupName(String workgroupName)
The serverless workgroup name. This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.
workgroupName
- The serverless workgroup name. This parameter is required when connecting to a serverless workgroup and
authenticating using either Secrets Manager or temporary credentials.public String getWorkgroupName()
The serverless workgroup name. This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.
public BatchExecuteStatementRequest withWorkgroupName(String workgroupName)
The serverless workgroup name. This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.
workgroupName
- The serverless workgroup name. This parameter is required when connecting to a serverless workgroup and
authenticating using either Secrets Manager or temporary credentials.public String toString()
toString
in class Object
Object.toString()
public BatchExecuteStatementRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()