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 [`ListShares`](crate::operation::list_shares::builders::ListSharesFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_shares::builders::ListSharesFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`resource_owner(ResourceOwner)`](crate::operation::list_shares::builders::ListSharesFluentBuilder::resource_owner) / [`set_resource_owner(Option<ResourceOwner>)`](crate::operation::list_shares::builders::ListSharesFluentBuilder::set_resource_owner):<br>required: **true**<br><p>The account that owns the resource shares.</p><br>
    ///   - [`filter(Filter)`](crate::operation::list_shares::builders::ListSharesFluentBuilder::filter) / [`set_filter(Option<Filter>)`](crate::operation::list_shares::builders::ListSharesFluentBuilder::set_filter):<br>required: **false**<br><p>Attributes that you use to filter for a specific subset of resource shares.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_shares::builders::ListSharesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_shares::builders::ListSharesFluentBuilder::set_next_token):<br>required: **false**<br><p>Next token returned in the response of a previous ListReadSetUploadPartsRequest call. Used to get the next page of results.</p><br>
    ///   - [`max_results(i32)`](crate::operation::list_shares::builders::ListSharesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_shares::builders::ListSharesFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of shares to return in one page of results.</p><br>
    /// - On success, responds with [`ListSharesOutput`](crate::operation::list_shares::ListSharesOutput) with field(s):
    ///   - [`shares(Vec::<ShareDetails>)`](crate::operation::list_shares::ListSharesOutput::shares): <p>The shares available and their metadata details.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_shares::ListSharesOutput::next_token): <p>Next token returned in the response of a previous ListSharesResponse call. Used to get the next page of results.</p>
    /// - On failure, responds with [`SdkError<ListSharesError>`](crate::operation::list_shares::ListSharesError)
    pub fn list_shares(&self) -> crate::operation::list_shares::builders::ListSharesFluentBuilder {
        crate::operation::list_shares::builders::ListSharesFluentBuilder::new(self.handle.clone())
    }
}