Interface GetPreparedStatementResponse.Builder
- All Superinterfaces:
AthenaResponse.Builder
,AwsResponse.Builder
,Buildable
,CopyableBuilder<GetPreparedStatementResponse.Builder,
,GetPreparedStatementResponse> SdkBuilder<GetPreparedStatementResponse.Builder,
,GetPreparedStatementResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetPreparedStatementResponse
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, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods 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.Builder
avoiding the need to create one manually viaPreparedStatement.builder()
.When the
Consumer
completes,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:
-