Interface ListReservationsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListReservationsResponse.Builder,ListReservationsResponse>,MediaConnectResponse.Builder,SdkBuilder<ListReservationsResponse.Builder,ListReservationsResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- ListReservationsResponse
public static interface ListReservationsResponse.Builder extends MediaConnectResponse.Builder, SdkPojo, CopyableBuilder<ListReservationsResponse.Builder,ListReservationsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListReservationsResponse.BuildernextToken(String nextToken)The token that identifies which batch of results that you want to see.ListReservationsResponse.Builderreservations(Collection<Reservation> reservations)A list of all reservations that have been purchased by this account in the current AWS Region.ListReservationsResponse.Builderreservations(Consumer<Reservation.Builder>... reservations)A list of all reservations that have been purchased by this account in the current AWS Region.ListReservationsResponse.Builderreservations(Reservation... reservations)A list of all reservations that have been purchased by this account in the current AWS Region.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.mediaconnect.model.MediaConnectResponse.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 Detail
-
nextToken
ListReservationsResponse.Builder nextToken(String nextToken)
The token that identifies which batch of results that you want to see. For example, you submit a ListReservations request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListReservations request a second time and specify the NextToken value.- Parameters:
nextToken- The token that identifies which batch of results that you want to see. For example, you submit a ListReservations request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListReservations request a second time and specify the NextToken value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reservations
ListReservationsResponse.Builder reservations(Collection<Reservation> reservations)
A list of all reservations that have been purchased by this account in the current AWS Region.- Parameters:
reservations- A list of all reservations that have been purchased by this account in the current AWS Region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reservations
ListReservationsResponse.Builder reservations(Reservation... reservations)
A list of all reservations that have been purchased by this account in the current AWS Region.- Parameters:
reservations- A list of all reservations that have been purchased by this account in the current AWS Region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reservations
ListReservationsResponse.Builder reservations(Consumer<Reservation.Builder>... reservations)
A list of all reservations that have been purchased by this account in the current AWS 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 to#reservations(List.) - 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:
#reservations(java.util.Collection)
-
-