Interface DescribeCapacityReservationsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DescribeCapacityReservationsResponse.Builder,DescribeCapacityReservationsResponse>,Ec2Response.Builder,SdkBuilder<DescribeCapacityReservationsResponse.Builder,DescribeCapacityReservationsResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- DescribeCapacityReservationsResponse
@Mutable @NotThreadSafe public static interface DescribeCapacityReservationsResponse.Builder extends Ec2Response.Builder, SdkPojo, CopyableBuilder<DescribeCapacityReservationsResponse.Builder,DescribeCapacityReservationsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DescribeCapacityReservationsResponse.BuildercapacityReservations(Collection<CapacityReservation> capacityReservations)Information about the Capacity Reservations.DescribeCapacityReservationsResponse.BuildercapacityReservations(Consumer<CapacityReservation.Builder>... capacityReservations)Information about the Capacity Reservations.DescribeCapacityReservationsResponse.BuildercapacityReservations(CapacityReservation... capacityReservations)Information about the Capacity Reservations.DescribeCapacityReservationsResponse.BuildernextToken(String nextToken)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, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
nextToken
DescribeCapacityReservationsResponse.Builder nextToken(String nextToken)
The token to use to retrieve the next page of results. This value is
nullwhen there are no more results to return.- Parameters:
nextToken- The token to use to retrieve the next page of results. This value isnullwhen 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.Builderavoiding the need to create one manually viaCapacityReservation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#capacityReservations(List.) - 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:
#capacityReservations(java.util.Collection)
-
-