public static interface DescribeCapacityReservationsResponse.Builder extends Ec2Response.Builder, SdkPojo, CopyableBuilder<DescribeCapacityReservationsResponse.Builder,DescribeCapacityReservationsResponse>
Modifier and Type | Method and Description |
---|---|
DescribeCapacityReservationsResponse.Builder |
capacityReservations(CapacityReservation... capacityReservations)
Information about the Capacity Reservations.
|
DescribeCapacityReservationsResponse.Builder |
capacityReservations(Collection<CapacityReservation> capacityReservations)
Information about the Capacity Reservations.
|
DescribeCapacityReservationsResponse.Builder |
capacityReservations(Consumer<CapacityReservation.Builder>... capacityReservations)
Information about the Capacity Reservations.
|
DescribeCapacityReservationsResponse.Builder |
nextToken(String nextToken)
The token to use to retrieve the next page of results.
|
build, responseMetadata, responseMetadata
sdkHttpResponse, sdkHttpResponse
equalsBySdkFields, sdkFields
copy
applyMutation, build
DescribeCapacityReservationsResponse.Builder nextToken(String nextToken)
The token to use to retrieve the next page of results. This value is null
when there are no more
results to return.
nextToken
- The token to use to retrieve the next page of results. This value is null
when there are
no more results to return.DescribeCapacityReservationsResponse.Builder capacityReservations(Collection<CapacityReservation> capacityReservations)
Information about the Capacity Reservations.
capacityReservations
- Information about the Capacity Reservations.DescribeCapacityReservationsResponse.Builder capacityReservations(CapacityReservation... capacityReservations)
Information about the Capacity Reservations.
capacityReservations
- Information about the Capacity Reservations.DescribeCapacityReservationsResponse.Builder capacityReservations(Consumer<CapacityReservation.Builder>... capacityReservations)
Information about the Capacity Reservations.
This is a convenience method that creates an instance of theCapacityReservation.Builder
avoiding the need to create one
manually via CapacityReservation.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called immediately
and its result is passed to #capacityReservations(List
.
capacityReservations
- a consumer that will call methods on
CapacityReservation.Builder
#capacityReservations(java.util.Collection)
Copyright © 2023. All rights reserved.