aws_sdk_redshiftserverless/client/
list_reservations.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`ListReservations`](crate::operation::list_reservations::builders::ListReservationsFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_reservations::builders::ListReservationsFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`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><p>The token for the next set of items to return. (You received this token from a previous call.)</p><br>
8    ///   - [`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><p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p><br>
9    /// - On success, responds with [`ListReservationsOutput`](crate::operation::list_reservations::ListReservationsOutput) with field(s):
10    ///   - [`reservations_list(Vec::<Reservation>)`](crate::operation::list_reservations::ListReservationsOutput::reservations_list): <p>The serverless reservations returned by the request.</p>
11    ///   - [`next_token(Option<String>)`](crate::operation::list_reservations::ListReservationsOutput::next_token): <p>The token to use when requesting the next set of items.</p>
12    /// - On failure, responds with [`SdkError<ListReservationsError>`](crate::operation::list_reservations::ListReservationsError)
13    pub fn list_reservations(&self) -> crate::operation::list_reservations::builders::ListReservationsFluentBuilder {
14        crate::operation::list_reservations::builders::ListReservationsFluentBuilder::new(self.handle.clone())
15    }
16}