public static interface ExecuteStatementRequest.Builder extends RdsDataRequest.Builder, SdkPojo, CopyableBuilder<ExecuteStatementRequest.Builder,ExecuteStatementRequest>
| Modifier and Type | Method and Description |
|---|---|
ExecuteStatementRequest.Builder |
continueAfterTimeout(Boolean continueAfterTimeout)
A value that indicates whether to continue running the statement after the call times out.
|
ExecuteStatementRequest.Builder |
database(String database)
The name of the database.
|
ExecuteStatementRequest.Builder |
formatRecordsAs(RecordsFormatType formatRecordsAs)
A value that indicates whether to format the result set as a single JSON string.
|
ExecuteStatementRequest.Builder |
formatRecordsAs(String formatRecordsAs)
A value that indicates whether to format the result set as a single JSON string.
|
ExecuteStatementRequest.Builder |
includeResultMetadata(Boolean includeResultMetadata)
A value that indicates whether to include metadata in the results.
|
ExecuteStatementRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
ExecuteStatementRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
ExecuteStatementRequest.Builder |
parameters(Collection<SqlParameter> parameters)
The parameters for the SQL statement.
|
ExecuteStatementRequest.Builder |
parameters(Consumer<SqlParameter.Builder>... parameters)
The parameters for the SQL statement.
|
ExecuteStatementRequest.Builder |
parameters(SqlParameter... parameters)
The parameters for the SQL statement.
|
ExecuteStatementRequest.Builder |
resourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
|
default ExecuteStatementRequest.Builder |
resultSetOptions(Consumer<ResultSetOptions.Builder> resultSetOptions)
Options that control how the result set is returned.
|
ExecuteStatementRequest.Builder |
resultSetOptions(ResultSetOptions resultSetOptions)
Options that control how the result set is returned.
|
ExecuteStatementRequest.Builder |
schema(String schema)
The name of the database schema.
|
ExecuteStatementRequest.Builder |
secretArn(String secretArn)
The ARN of the secret that enables access to the DB cluster.
|
ExecuteStatementRequest.Builder |
sql(String sql)
The SQL statement to run.
|
ExecuteStatementRequest.Builder |
transactionId(String transactionId)
The identifier of a transaction that was started by using the
BeginTransaction operation. |
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildExecuteStatementRequest.Builder resourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
resourceArn - The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.ExecuteStatementRequest.Builder secretArn(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.
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.
ExecuteStatementRequest.Builder sql(String sql)
The SQL statement to run.
sql - The SQL statement to run.ExecuteStatementRequest.Builder database(String database)
The name of the database.
database - The name of the database.ExecuteStatementRequest.Builder schema(String schema)
The name of the database schema.
Currently, the schema parameter isn't supported.
schema - The name of the database schema.
Currently, the schema parameter isn't supported.
ExecuteStatementRequest.Builder parameters(Collection<SqlParameter> parameters)
The parameters for the SQL statement.
Array parameters are not supported.
parameters - The parameters for the SQL statement. Array parameters are not supported.
ExecuteStatementRequest.Builder parameters(SqlParameter... parameters)
The parameters for the SQL statement.
Array parameters are not supported.
parameters - The parameters for the SQL statement. Array parameters are not supported.
ExecuteStatementRequest.Builder parameters(Consumer<SqlParameter.Builder>... parameters)
The parameters for the SQL statement.
Array parameters are not supported.
SqlParameter.Builder avoiding the need to create one
manually via SqlParameter.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and
its result is passed to #parameters(List.
parameters - a consumer that will call methods on
SqlParameter.Builder#parameters(java.util.Collection) ExecuteStatementRequest.Builder transactionId(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.
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.
ExecuteStatementRequest.Builder includeResultMetadata(Boolean includeResultMetadata)
A value that indicates whether to include metadata in the results.
includeResultMetadata - A value that indicates whether to include metadata in the results.ExecuteStatementRequest.Builder continueAfterTimeout(Boolean continueAfterTimeout)
A value that indicates whether to continue running the statement after the call times out. By default, the statement stops running when the call times out.
For DDL statements, we recommend continuing to run the statement after the call times out. When a DDL statement terminates before it is finished running, it can result in errors and possibly corrupted data structures.
continueAfterTimeout - A value that indicates whether to continue running the statement after the call times out. By default,
the statement stops running when the call times out. For DDL statements, we recommend continuing to run the statement after the call times out. When a DDL statement terminates before it is finished running, it can result in errors and possibly corrupted data structures.
ExecuteStatementRequest.Builder resultSetOptions(ResultSetOptions resultSetOptions)
Options that control how the result set is returned.
resultSetOptions - Options that control how the result set is returned.default ExecuteStatementRequest.Builder resultSetOptions(Consumer<ResultSetOptions.Builder> resultSetOptions)
Options that control how the result set is returned.
This is a convenience method that creates an instance of theResultSetOptions.Builder avoiding the
need to create one manually via ResultSetOptions.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to resultSetOptions(ResultSetOptions).
resultSetOptions - a consumer that will call methods on ResultSetOptions.BuilderresultSetOptions(ResultSetOptions)ExecuteStatementRequest.Builder formatRecordsAs(String formatRecordsAs)
A value that indicates whether to format the result set as a single JSON string. This parameter only applies
to SELECT statements and is ignored for other types of statements. Allowed values are
NONE and JSON. The default value is NONE. The result is returned in
the formattedRecords field.
For usage information about the JSON format for result sets, see Using the Data API in the Amazon Aurora User Guide.
formatRecordsAs - A value that indicates whether to format the result set as a single JSON string. This parameter only
applies to SELECT statements and is ignored for other types of statements. Allowed values
are NONE and JSON. The default value is NONE. The result is
returned in the formattedRecords field.
For usage information about the JSON format for result sets, see Using the Data API in the Amazon Aurora User Guide.
RecordsFormatType,
RecordsFormatTypeExecuteStatementRequest.Builder formatRecordsAs(RecordsFormatType formatRecordsAs)
A value that indicates whether to format the result set as a single JSON string. This parameter only applies
to SELECT statements and is ignored for other types of statements. Allowed values are
NONE and JSON. The default value is NONE. The result is returned in
the formattedRecords field.
For usage information about the JSON format for result sets, see Using the Data API in the Amazon Aurora User Guide.
formatRecordsAs - A value that indicates whether to format the result set as a single JSON string. This parameter only
applies to SELECT statements and is ignored for other types of statements. Allowed values
are NONE and JSON. The default value is NONE. The result is
returned in the formattedRecords field.
For usage information about the JSON format for result sets, see Using the Data API in the Amazon Aurora User Guide.
RecordsFormatType,
RecordsFormatTypeExecuteStatementRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderExecuteStatementRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2022. All rights reserved.