1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListRestoreJobsByProtectedResource`](crate::operation::list_restore_jobs_by_protected_resource::builders::ListRestoreJobsByProtectedResourceFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_restore_jobs_by_protected_resource::builders::ListRestoreJobsByProtectedResourceFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`resource_arn(impl Into<String>)`](crate::operation::list_restore_jobs_by_protected_resource::builders::ListRestoreJobsByProtectedResourceFluentBuilder::resource_arn) / [`set_resource_arn(Option<String>)`](crate::operation::list_restore_jobs_by_protected_resource::builders::ListRestoreJobsByProtectedResourceFluentBuilder::set_resource_arn):<br>required: **true**<br><p>Returns only restore jobs that match the specified resource Amazon Resource Name (ARN).</p><br>
    ///   - [`by_status(RestoreJobStatus)`](crate::operation::list_restore_jobs_by_protected_resource::builders::ListRestoreJobsByProtectedResourceFluentBuilder::by_status) / [`set_by_status(Option<RestoreJobStatus>)`](crate::operation::list_restore_jobs_by_protected_resource::builders::ListRestoreJobsByProtectedResourceFluentBuilder::set_by_status):<br>required: **false**<br><p>Returns only restore jobs associated with the specified job status.</p><br>
    ///   - [`by_recovery_point_creation_date_after(DateTime)`](crate::operation::list_restore_jobs_by_protected_resource::builders::ListRestoreJobsByProtectedResourceFluentBuilder::by_recovery_point_creation_date_after) / [`set_by_recovery_point_creation_date_after(Option<DateTime>)`](crate::operation::list_restore_jobs_by_protected_resource::builders::ListRestoreJobsByProtectedResourceFluentBuilder::set_by_recovery_point_creation_date_after):<br>required: **false**<br><p>Returns only restore jobs of recovery points that were created after the specified date.</p><br>
    ///   - [`by_recovery_point_creation_date_before(DateTime)`](crate::operation::list_restore_jobs_by_protected_resource::builders::ListRestoreJobsByProtectedResourceFluentBuilder::by_recovery_point_creation_date_before) / [`set_by_recovery_point_creation_date_before(Option<DateTime>)`](crate::operation::list_restore_jobs_by_protected_resource::builders::ListRestoreJobsByProtectedResourceFluentBuilder::set_by_recovery_point_creation_date_before):<br>required: **false**<br><p>Returns only restore jobs of recovery points that were created before the specified date.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_restore_jobs_by_protected_resource::builders::ListRestoreJobsByProtectedResourceFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_restore_jobs_by_protected_resource::builders::ListRestoreJobsByProtectedResourceFluentBuilder::set_next_token):<br>required: **false**<br><p>The next item following a partial list of returned items. For example, if a request ismade 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_restore_jobs_by_protected_resource::builders::ListRestoreJobsByProtectedResourceFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_restore_jobs_by_protected_resource::builders::ListRestoreJobsByProtectedResourceFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of items to be returned.</p><br>
    /// - On success, responds with [`ListRestoreJobsByProtectedResourceOutput`](crate::operation::list_restore_jobs_by_protected_resource::ListRestoreJobsByProtectedResourceOutput) with field(s):
    ///   - [`restore_jobs(Option<Vec::<RestoreJobsListMember>>)`](crate::operation::list_restore_jobs_by_protected_resource::ListRestoreJobsByProtectedResourceOutput::restore_jobs): <p>An array of objects that contain detailed information about jobs to restore saved resources.&gt;</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_restore_jobs_by_protected_resource::ListRestoreJobsByProtectedResourceOutput::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 youto return more items in your list starting at the location pointed to by the next token</p>
    /// - On failure, responds with [`SdkError<ListRestoreJobsByProtectedResourceError>`](crate::operation::list_restore_jobs_by_protected_resource::ListRestoreJobsByProtectedResourceError)
    pub fn list_restore_jobs_by_protected_resource(
        &self,
    ) -> crate::operation::list_restore_jobs_by_protected_resource::builders::ListRestoreJobsByProtectedResourceFluentBuilder {
        crate::operation::list_restore_jobs_by_protected_resource::builders::ListRestoreJobsByProtectedResourceFluentBuilder::new(self.handle.clone())
    }
}