Interface GetPreparedStatementResponse.Builder
- All Superinterfaces:
AthenaResponse.Builder,AwsResponse.Builder,Buildable,CopyableBuilder<GetPreparedStatementResponse.Builder,,GetPreparedStatementResponse> SdkBuilder<GetPreparedStatementResponse.Builder,,GetPreparedStatementResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetPreparedStatementResponse
@Mutable
@NotThreadSafe
public static interface GetPreparedStatementResponse.Builder
extends AthenaResponse.Builder, SdkPojo, CopyableBuilder<GetPreparedStatementResponse.Builder,GetPreparedStatementResponse>
-
Method Summary
Modifier and TypeMethodDescriptionpreparedStatement(Consumer<PreparedStatement.Builder> preparedStatement) The name of the prepared statement that was retrieved.preparedStatement(PreparedStatement preparedStatement) The name of the prepared statement that was retrieved.Methods inherited from interface software.amazon.awssdk.services.athena.model.AthenaResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
preparedStatement
The name of the prepared statement that was retrieved.
- Parameters:
preparedStatement- The name of the prepared statement that was retrieved.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
preparedStatement
default GetPreparedStatementResponse.Builder preparedStatement(Consumer<PreparedStatement.Builder> preparedStatement) The name of the prepared statement that was retrieved.
This is a convenience method that creates an instance of thePreparedStatement.Builderavoiding the need to create one manually viaPreparedStatement.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topreparedStatement(PreparedStatement).- Parameters:
preparedStatement- a consumer that will call methods onPreparedStatement.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-