1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListProtectedResources`](crate::operation::list_protected_resources::builders::ListProtectedResourcesFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_protected_resources::builders::ListProtectedResourcesFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_protected_resources::builders::ListProtectedResourcesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_protected_resources::builders::ListProtectedResourcesFluentBuilder::set_next_token):<br>required: **false**<br><p>The next item following a partial list of returned items. For example, if a request is made to return <code>MaxResults</code> number of items, <code>NextToken</code> allows you to return more items in your list starting at the location pointed to by the next token.</p><br>
    ///   - [`max_results(i32)`](crate::operation::list_protected_resources::builders::ListProtectedResourcesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_protected_resources::builders::ListProtectedResourcesFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of items to be returned.</p><br>
    /// - On success, responds with [`ListProtectedResourcesOutput`](crate::operation::list_protected_resources::ListProtectedResourcesOutput) with field(s):
    ///   - [`results(Option<Vec::<ProtectedResource>>)`](crate::operation::list_protected_resources::ListProtectedResourcesOutput::results): <p>An array of resources successfully backed up by Backup including the time the resource was saved, an Amazon Resource Name (ARN) of the resource, and a resource type.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_protected_resources::ListProtectedResourcesOutput::next_token): <p>The next item following a partial list of returned items. For example, if a request is made to return <code>MaxResults</code> number of items, <code>NextToken</code> allows you to return more items in your list starting at the location pointed to by the next token.</p>
    /// - On failure, responds with [`SdkError<ListProtectedResourcesError>`](crate::operation::list_protected_resources::ListProtectedResourcesError)
    pub fn list_protected_resources(&self) -> crate::operation::list_protected_resources::builders::ListProtectedResourcesFluentBuilder {
        crate::operation::list_protected_resources::builders::ListProtectedResourcesFluentBuilder::new(self.handle.clone())
    }
}