// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`ListReservations`](crate::operation::list_reservations::builders::ListReservationsFluentBuilder) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::operation::list_reservations::builders::ListReservationsFluentBuilder::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`max_results(i32)`](crate::operation::list_reservations::builders::ListReservationsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_reservations::builders::ListReservationsFluentBuilder::set_max_results):<br>required: **false**<br>The maximum number of results to return per API request. For example, you submit a ListReservations request with MaxResults set at 5. Although 20 items match your request, the service returns no more than the first 5 items. (The service also returns a NextToken value that you can use to fetch the next batch of results.) The service might return fewer results than the MaxResults value. If MaxResults is not included in the request, the service defaults to pagination with a maximum of 10 results per page.<br>
/// - [`next_token(impl Into<String>)`](crate::operation::list_reservations::builders::ListReservationsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_reservations::builders::ListReservationsFluentBuilder::set_next_token):<br>required: **false**<br>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 ListOfferings request a second time and specify the NextToken value.<br>
/// - On success, responds with [`ListReservationsOutput`](crate::operation::list_reservations::ListReservationsOutput) with field(s):
/// - [`next_token(Option<String>)`](crate::operation::list_reservations::ListReservationsOutput::next_token): 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.
/// - [`reservations(Option<Vec::<Reservation>>)`](crate::operation::list_reservations::ListReservationsOutput::reservations): A list of all reservations that have been purchased by this account in the current AWS Region.
/// - On failure, responds with [`SdkError<ListReservationsError>`](crate::operation::list_reservations::ListReservationsError)
pub fn list_reservations(&self) -> crate::operation::list_reservations::builders::ListReservationsFluentBuilder {
crate::operation::list_reservations::builders::ListReservationsFluentBuilder::new(self.handle.clone())
}
}