@Generated(value="software.amazon.awssdk:codegen") public final class BatchExecuteStatementRequest extends RdsDataRequest implements ToCopyableBuilder<BatchExecuteStatementRequest.Builder,BatchExecuteStatementRequest>
The request parameters represent the input of a SQL statement over an array of data.
| Modifier and Type | Class and Description |
|---|---|
static interface |
BatchExecuteStatementRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static BatchExecuteStatementRequest.Builder |
builder() |
String |
database()
The name of the database.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasParameterSets()
For responses, this returns true if the service returned a value for the ParameterSets property.
|
List<List<SqlParameter>> |
parameterSets()
The parameter set for the batch operation.
|
String |
resourceArn()
The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
|
String |
schema()
The name of the database schema.
|
List<SdkField<?>> |
sdkFields() |
String |
secretArn()
The ARN of the secret that enables access to the DB cluster.
|
static Class<? extends BatchExecuteStatementRequest.Builder> |
serializableBuilderClass() |
String |
sql()
The SQL statement to run.
|
BatchExecuteStatementRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
transactionId()
The identifier of a transaction that was started by using the
BeginTransaction operation. |
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String resourceArn()
The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
public final String secretArn()
The ARN of the secret that enables access to the DB cluster. Enter the database user name and password for the credentials in the secret.
For information about creating the secret, see Create a database secret.
For information about creating the secret, see Create a database secret.
public final String sql()
The SQL statement to run. Don't include a semicolon (;) at the end of the SQL statement.
public final String database()
The name of the database.
public final String schema()
The name of the database schema.
Currently, the schema parameter isn't supported.
Currently, the schema parameter isn't supported.
public final boolean hasParameterSets()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<List<SqlParameter>> parameterSets()
The parameter set for the batch operation.
The SQL statement is executed as many times as the number of parameter sets provided. To execute a SQL statement with no parameters, use one of the following options:
Specify one or more empty parameter sets.
Use the ExecuteStatement operation instead of the BatchExecuteStatement operation.
Array parameters are not supported.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasParameterSets() method.
The SQL statement is executed as many times as the number of parameter sets provided. To execute a SQL statement with no parameters, use one of the following options:
Specify one or more empty parameter sets.
Use the ExecuteStatement operation instead of the BatchExecuteStatement
operation.
Array parameters are not supported.
public final String transactionId()
The identifier of a transaction that was started by using the BeginTransaction operation. Specify
the transaction ID of the transaction that you want to include the SQL statement in.
If the SQL statement is not part of a transaction, don't set this parameter.
BeginTransaction operation.
Specify the transaction ID of the transaction that you want to include the SQL statement in.
If the SQL statement is not part of a transaction, don't set this parameter.
public BatchExecuteStatementRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<BatchExecuteStatementRequest.Builder,BatchExecuteStatementRequest>toBuilder in class RdsDataRequestpublic static BatchExecuteStatementRequest.Builder builder()
public static Class<? extends BatchExecuteStatementRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2022. All rights reserved.