Interface ListReservationsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListReservationsResponse.Builder,,ListReservationsResponse> MediaConnectResponse.Builder,SdkBuilder<ListReservationsResponse.Builder,,ListReservationsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListReservationsResponse
-
Method Summary
Modifier and TypeMethodDescriptionThe token that identifies the batch of results that you want to see.reservations(Collection<Reservation> reservations) A list of all reservations that have been purchased by this account in the current Amazon Web Services Region.reservations(Consumer<Reservation.Builder>... reservations) A list of all reservations that have been purchased by this account in the current Amazon Web Services Region.reservations(Reservation... reservations) A list of all reservations that have been purchased by this account in the current Amazon Web Services Region.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.mediaconnect.model.MediaConnectResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
nextToken
The token that identifies the batch of results that you want to see.
For example, you submit a
ListReservationsrequest withMaxResultsset at 5. The service returns the first batch of results (up to 5) and aNextTokenvalue. To see the next batch of results, you can submit theListReservationsrequest a second time and specify theNextTokenvalue.- Parameters:
nextToken- The token that identifies the batch of results that you want to see.For example, you submit a
ListReservationsrequest withMaxResultsset at 5. The service returns the first batch of results (up to 5) and aNextTokenvalue. To see the next batch of results, you can submit theListReservationsrequest a second time and specify theNextTokenvalue.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reservations
A list of all reservations that have been purchased by this account in the current Amazon Web Services Region.
- Parameters:
reservations- A list of all reservations that have been purchased by this account in the current Amazon Web Services Region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reservations
A list of all reservations that have been purchased by this account in the current Amazon Web Services Region.
- Parameters:
reservations- A list of all reservations that have been purchased by this account in the current Amazon Web Services Region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reservations
A list of all reservations that have been purchased by this account in the current Amazon Web Services Region.
This is a convenience method that creates an instance of theReservation.Builderavoiding the need to create one manually viaReservation.builder().When the
Consumercompletes,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:
-