Interface ExecuteStatementRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ExecuteStatementRequest.Builder,ExecuteStatementRequest>,RdsDataRequest.Builder,SdkBuilder<ExecuteStatementRequest.Builder,ExecuteStatementRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- ExecuteStatementRequest
public static interface ExecuteStatementRequest.Builder extends RdsDataRequest.Builder, SdkPojo, CopyableBuilder<ExecuteStatementRequest.Builder,ExecuteStatementRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ExecuteStatementRequest.BuildercontinueAfterTimeout(Boolean continueAfterTimeout)A value that indicates whether to continue running the statement after the call times out.ExecuteStatementRequest.Builderdatabase(String database)The name of the database.ExecuteStatementRequest.BuilderformatRecordsAs(String formatRecordsAs)A value that indicates whether to format the result set as a single JSON string.ExecuteStatementRequest.BuilderformatRecordsAs(RecordsFormatType formatRecordsAs)A value that indicates whether to format the result set as a single JSON string.ExecuteStatementRequest.BuilderincludeResultMetadata(Boolean includeResultMetadata)A value that indicates whether to include metadata in the results.ExecuteStatementRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)ExecuteStatementRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)ExecuteStatementRequest.Builderparameters(Collection<SqlParameter> parameters)The parameters for the SQL statement.ExecuteStatementRequest.Builderparameters(Consumer<SqlParameter.Builder>... parameters)The parameters for the SQL statement.ExecuteStatementRequest.Builderparameters(SqlParameter... parameters)The parameters for the SQL statement.ExecuteStatementRequest.BuilderresourceArn(String resourceArn)The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.default ExecuteStatementRequest.BuilderresultSetOptions(Consumer<ResultSetOptions.Builder> resultSetOptions)Options that control how the result set is returned.ExecuteStatementRequest.BuilderresultSetOptions(ResultSetOptions resultSetOptions)Options that control how the result set is returned.ExecuteStatementRequest.Builderschema(String schema)The name of the database schema.ExecuteStatementRequest.BuildersecretArn(String secretArn)The ARN of the secret that enables access to the DB cluster.ExecuteStatementRequest.Buildersql(String sql)The SQL statement to run.ExecuteStatementRequest.BuildertransactionId(String transactionId)The identifier of a transaction that was started by using theBeginTransactionoperation.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.rdsdata.model.RdsDataRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
resourceArn
ExecuteStatementRequest.Builder resourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
- Parameters:
resourceArn- The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secretArn
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sql
ExecuteStatementRequest.Builder sql(String sql)
The SQL statement to run.
- Parameters:
sql- The SQL statement to run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
database
ExecuteStatementRequest.Builder database(String database)
The name of the database.
- Parameters:
database- The name of the database.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schema
ExecuteStatementRequest.Builder schema(String schema)
The name of the database schema.
Currently, the
schemaparameter isn't supported.- Parameters:
schema- The name of the database schema.Currently, the
schemaparameter isn't supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parameters
ExecuteStatementRequest.Builder parameters(Collection<SqlParameter> parameters)
The parameters for the SQL statement.
Array parameters are not supported.
- Parameters:
parameters- The parameters for the SQL statement.Array parameters are not supported.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parameters
ExecuteStatementRequest.Builder parameters(SqlParameter... parameters)
The parameters for the SQL statement.
Array parameters are not supported.
- Parameters:
parameters- The parameters for the SQL statement.Array parameters are not supported.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parameters
ExecuteStatementRequest.Builder parameters(Consumer<SqlParameter.Builder>... parameters)
The parameters for the SQL statement.
This is a convenience method that creates an instance of theArray parameters are not supported.
SqlParameter.Builderavoiding the need to create one manually viaSqlParameter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#parameters(List.) - Parameters:
parameters- a consumer that will call methods onSqlParameter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#parameters(java.util.Collection)
-
transactionId
ExecuteStatementRequest.Builder transactionId(String transactionId)
The identifier of a transaction that was started by using the
BeginTransactionoperation. 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.
- Parameters:
transactionId- The identifier of a transaction that was started by using theBeginTransactionoperation. 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
includeResultMetadata
ExecuteStatementRequest.Builder includeResultMetadata(Boolean includeResultMetadata)
A value that indicates whether to include metadata in the results.
- Parameters:
includeResultMetadata- A value that indicates whether to include metadata in the results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
continueAfterTimeout
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resultSetOptions
ExecuteStatementRequest.Builder resultSetOptions(ResultSetOptions resultSetOptions)
Options that control how the result set is returned.
- Parameters:
resultSetOptions- Options that control how the result set is returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resultSetOptions
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.Builderavoiding the need to create one manually viaResultSetOptions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresultSetOptions(ResultSetOptions).- Parameters:
resultSetOptions- a consumer that will call methods onResultSetOptions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
resultSetOptions(ResultSetOptions)
-
formatRecordsAs
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
SELECTstatements and is ignored for other types of statements. Allowed values areNONEandJSON. The default value isNONE. The result is returned in theformattedRecordsfield.For usage information about the JSON format for result sets, see Using the Data API in the Amazon Aurora User Guide.
- Parameters:
formatRecordsAs- A value that indicates whether to format the result set as a single JSON string. This parameter only applies toSELECTstatements and is ignored for other types of statements. Allowed values areNONEandJSON. The default value isNONE. The result is returned in theformattedRecordsfield.For usage information about the JSON format for result sets, see Using the Data API in the Amazon Aurora User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RecordsFormatType,RecordsFormatType
-
formatRecordsAs
ExecuteStatementRequest.Builder formatRecordsAs(RecordsFormatType formatRecordsAs)
A value that indicates whether to format the result set as a single JSON string. This parameter only applies to
SELECTstatements and is ignored for other types of statements. Allowed values areNONEandJSON. The default value isNONE. The result is returned in theformattedRecordsfield.For usage information about the JSON format for result sets, see Using the Data API in the Amazon Aurora User Guide.
- Parameters:
formatRecordsAs- A value that indicates whether to format the result set as a single JSON string. This parameter only applies toSELECTstatements and is ignored for other types of statements. Allowed values areNONEandJSON. The default value isNONE. The result is returned in theformattedRecordsfield.For usage information about the JSON format for result sets, see Using the Data API in the Amazon Aurora User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RecordsFormatType,RecordsFormatType
-
overrideConfiguration
ExecuteStatementRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
ExecuteStatementRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-