Interface GetCapacityReservationResponse.Builder
-
- All Superinterfaces:
AthenaResponse.Builder
,AwsResponse.Builder
,Buildable
,CopyableBuilder<GetCapacityReservationResponse.Builder,GetCapacityReservationResponse>
,SdkBuilder<GetCapacityReservationResponse.Builder,GetCapacityReservationResponse>
,SdkPojo
,SdkResponse.Builder
- Enclosing class:
- GetCapacityReservationResponse
public static interface GetCapacityReservationResponse.Builder extends AthenaResponse.Builder, SdkPojo, CopyableBuilder<GetCapacityReservationResponse.Builder,GetCapacityReservationResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default GetCapacityReservationResponse.Builder
capacityReservation(Consumer<CapacityReservation.Builder> capacityReservation)
The requested capacity reservation structure.GetCapacityReservationResponse.Builder
capacityReservation(CapacityReservation capacityReservation)
The requested capacity reservation structure.-
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 Detail
-
capacityReservation
GetCapacityReservationResponse.Builder capacityReservation(CapacityReservation capacityReservation)
The requested capacity reservation structure.
- Parameters:
capacityReservation
- The requested capacity reservation structure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityReservation
default GetCapacityReservationResponse.Builder capacityReservation(Consumer<CapacityReservation.Builder> capacityReservation)
The requested capacity reservation structure.
This is a convenience method that creates an instance of theCapacityReservation.Builder
avoiding the need to create one manually viaCapacityReservation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocapacityReservation(CapacityReservation)
.- Parameters:
capacityReservation
- a consumer that will call methods onCapacityReservation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
capacityReservation(CapacityReservation)
-
-