Interface DescribeCapacityReservationsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DescribeCapacityReservationsResponse.Builder,
,DescribeCapacityReservationsResponse> Ec2Response.Builder
,SdkBuilder<DescribeCapacityReservationsResponse.Builder,
,DescribeCapacityReservationsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DescribeCapacityReservationsResponse
public static interface DescribeCapacityReservationsResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<DescribeCapacityReservationsResponse.Builder,DescribeCapacityReservationsResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncapacityReservations
(Collection<CapacityReservation> capacityReservations) Information about the Capacity Reservations.capacityReservations
(Consumer<CapacityReservation.Builder>... capacityReservations) Information about the Capacity Reservations.capacityReservations
(CapacityReservation... capacityReservations) Information about the Capacity Reservations.The token to use to retrieve the next page of results.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.Builder
build, responseMetadata, responseMetadata
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
The token to use to retrieve the next page of results. This value is
null
when there are no more results to return.- Parameters:
nextToken
- The token to use to retrieve the next page of results. This value isnull
when there are no more results to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityReservations
DescribeCapacityReservationsResponse.Builder capacityReservations(Collection<CapacityReservation> capacityReservations) Information about the Capacity Reservations.
- Parameters:
capacityReservations
- Information about the Capacity Reservations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityReservations
DescribeCapacityReservationsResponse.Builder capacityReservations(CapacityReservation... capacityReservations) Information about the Capacity Reservations.
- Parameters:
capacityReservations
- Information about the Capacity Reservations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityReservations
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 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:
-