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 [`ListAssets`](crate::operation::list_assets::builders::ListAssetsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_assets::builders::ListAssetsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_assets::builders::ListAssetsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_assets::builders::ListAssetsFluentBuilder::set_next_token):<br>required: **false**<br><p>The token to be used for the next set of paginated results.</p><br>
    ///   - [`max_results(i32)`](crate::operation::list_assets::builders::ListAssetsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_assets::builders::ListAssetsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return for each paginated request.</p> <p>Default: 50</p><br>
    ///   - [`asset_model_id(impl Into<String>)`](crate::operation::list_assets::builders::ListAssetsFluentBuilder::asset_model_id) / [`set_asset_model_id(Option<String>)`](crate::operation::list_assets::builders::ListAssetsFluentBuilder::set_asset_model_id):<br>required: **false**<br><p>The ID of the asset model by which to filter the list of assets. This parameter is required if you choose <code>ALL</code> for <code>filter</code>. This can be either the actual ID in UUID format, or else <code>externalId:</code> followed by the external ID, if it has one. For more information, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/object-ids.html#external-id-references">Referencing objects with external IDs</a> in the <i>IoT SiteWise User Guide</i>.</p><br>
    ///   - [`filter(ListAssetsFilter)`](crate::operation::list_assets::builders::ListAssetsFluentBuilder::filter) / [`set_filter(Option<ListAssetsFilter>)`](crate::operation::list_assets::builders::ListAssetsFluentBuilder::set_filter):<br>required: **false**<br><p>The filter for the requested list of assets. Choose one of the following options:</p> <ul>  <li>   <p><code>ALL</code> – The list includes all assets for a given asset model ID. The <code>assetModelId</code> parameter is required if you filter by <code>ALL</code>.</p></li>  <li>   <p><code>TOP_LEVEL</code> – The list includes only top-level assets in the asset hierarchy tree.</p></li> </ul> <p>Default: <code>ALL</code></p><br>
    /// - On success, responds with [`ListAssetsOutput`](crate::operation::list_assets::ListAssetsOutput) with field(s):
    ///   - [`asset_summaries(Vec::<AssetSummary>)`](crate::operation::list_assets::ListAssetsOutput::asset_summaries): <p>A list that summarizes each asset.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_assets::ListAssetsOutput::next_token): <p>The token for the next set of results, or null if there are no additional results.</p>
    /// - On failure, responds with [`SdkError<ListAssetsError>`](crate::operation::list_assets::ListAssetsError)
    pub fn list_assets(&self) -> crate::operation::list_assets::builders::ListAssetsFluentBuilder {
        crate::operation::list_assets::builders::ListAssetsFluentBuilder::new(self.handle.clone())
    }
}