Interface ListCapacityReservationsResponse.Builder
- All Superinterfaces:
AthenaResponse.Builder
,AwsResponse.Builder
,Buildable
,CopyableBuilder<ListCapacityReservationsResponse.Builder,
,ListCapacityReservationsResponse> SdkBuilder<ListCapacityReservationsResponse.Builder,
,ListCapacityReservationsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListCapacityReservationsResponse
public static interface ListCapacityReservationsResponse.Builder
extends AthenaResponse.Builder, SdkPojo, CopyableBuilder<ListCapacityReservationsResponse.Builder,ListCapacityReservationsResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncapacityReservations
(Collection<CapacityReservation> capacityReservations) The capacity reservations for the current account.capacityReservations
(Consumer<CapacityReservation.Builder>... capacityReservations) The capacity reservations for the current account.capacityReservations
(CapacityReservation... capacityReservations) The capacity reservations for the current account.A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated.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
-
nextToken
A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.
- Parameters:
nextToken
- A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityReservations
ListCapacityReservationsResponse.Builder capacityReservations(Collection<CapacityReservation> capacityReservations) The capacity reservations for the current account.
- Parameters:
capacityReservations
- The capacity reservations for the current account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityReservations
ListCapacityReservationsResponse.Builder capacityReservations(CapacityReservation... capacityReservations) The capacity reservations for the current account.
- Parameters:
capacityReservations
- The capacity reservations for the current account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityReservations
ListCapacityReservationsResponse.Builder capacityReservations(Consumer<CapacityReservation.Builder>... capacityReservations) The capacity reservations for the current account.
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 tocapacityReservations(List<CapacityReservation>)
.- Parameters:
capacityReservations
- 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:
-