1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListDestinations`](crate::operation::list_destinations::builders::ListDestinationsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_destinations::builders::ListDestinationsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`site(impl ::std::convert::Into<String>)`](crate::operation::list_destinations::builders::ListDestinationsFluentBuilder::site) / [`set_site(Option<String>)`](crate::operation::list_destinations::builders::ListDestinationsFluentBuilder::set_site): Site ARN.
    ///   - [`max_results(i32)`](crate::operation::list_destinations::builders::ListDestinationsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_destinations::builders::ListDestinationsFluentBuilder::set_max_results): Maximum number of results to retrieve in a single call.
    ///   - [`next_token(impl ::std::convert::Into<String>)`](crate::operation::list_destinations::builders::ListDestinationsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_destinations::builders::ListDestinationsFluentBuilder::set_next_token): Pagination token returned when another page of data exists. Provide it in your next call to the API to receive the next page.
    ///   - [`state(DestinationState)`](crate::operation::list_destinations::builders::ListDestinationsFluentBuilder::state) / [`set_state(Option<DestinationState>)`](crate::operation::list_destinations::builders::ListDestinationsFluentBuilder::set_state): State of the destination.
    /// - On success, responds with [`ListDestinationsOutput`](crate::operation::list_destinations::ListDestinationsOutput) with field(s):
    ///   - [`next_token(Option<String>)`](crate::operation::list_destinations::ListDestinationsOutput::next_token): Pagination token returned when another page of data exists. Provide it in your next call to the API to receive the next page.
    ///   - [`destinations(Option<Vec<Destination>>)`](crate::operation::list_destinations::ListDestinationsOutput::destinations): List of destinations.
    /// - On failure, responds with [`SdkError<ListDestinationsError>`](crate::operation::list_destinations::ListDestinationsError)
    pub fn list_destinations(&self) -> crate::operation::list_destinations::builders::ListDestinationsFluentBuilder {
        crate::operation::list_destinations::builders::ListDestinationsFluentBuilder::new(self.handle.clone())
    }
}