Interface DescribeInstancesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DescribeInstancesResponse.Builder,
,DescribeInstancesResponse> Ec2Response.Builder
,SdkBuilder<DescribeInstancesResponse.Builder,
,DescribeInstancesResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DescribeInstancesResponse
public static interface DescribeInstancesResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<DescribeInstancesResponse.Builder,DescribeInstancesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe token to include in another request to get the next page of items.reservations
(Collection<Reservation> reservations) Information about the reservations.reservations
(Consumer<Reservation.Builder>... reservations) Information about the reservations.reservations
(Reservation... reservations) Information about the reservations.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
-
reservations
Information about the reservations.
- Parameters:
reservations
- Information about the reservations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reservations
Information about the reservations.
- Parameters:
reservations
- Information about the reservations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reservations
Information about the reservations.
This is a convenience method that creates an instance of theReservation.Builder
avoiding the need to create one manually viaReservation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toreservations(List<Reservation>)
.- Parameters:
reservations
- a consumer that will call methods onReservation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The token to include in another request to get the next page of items. This value is
null
when there are no more items to return.- Parameters:
nextToken
- The token to include in another request to get the next page of items. This value isnull
when there are no more items to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-