Skip to main content

aws_sdk_migrationhub/operation/list_created_artifacts/
_list_created_artifacts_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct ListCreatedArtifactsInput {
6    /// <p>The name of the ProgressUpdateStream.</p>
7    pub progress_update_stream: ::std::option::Option<::std::string::String>,
8    /// <p>Unique identifier that references the migration task. <i>Do not store personal data in this field.</i></p>
9    pub migration_task_name: ::std::option::Option<::std::string::String>,
10    /// <p>If a <code>NextToken</code> was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in <code>NextToken</code>.</p>
11    pub next_token: ::std::option::Option<::std::string::String>,
12    /// <p>Maximum number of results to be returned per page.</p>
13    pub max_results: ::std::option::Option<i32>,
14}
15impl ListCreatedArtifactsInput {
16    /// <p>The name of the ProgressUpdateStream.</p>
17    pub fn progress_update_stream(&self) -> ::std::option::Option<&str> {
18        self.progress_update_stream.as_deref()
19    }
20    /// <p>Unique identifier that references the migration task. <i>Do not store personal data in this field.</i></p>
21    pub fn migration_task_name(&self) -> ::std::option::Option<&str> {
22        self.migration_task_name.as_deref()
23    }
24    /// <p>If a <code>NextToken</code> was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in <code>NextToken</code>.</p>
25    pub fn next_token(&self) -> ::std::option::Option<&str> {
26        self.next_token.as_deref()
27    }
28    /// <p>Maximum number of results to be returned per page.</p>
29    pub fn max_results(&self) -> ::std::option::Option<i32> {
30        self.max_results
31    }
32}
33impl ListCreatedArtifactsInput {
34    /// Creates a new builder-style object to manufacture [`ListCreatedArtifactsInput`](crate::operation::list_created_artifacts::ListCreatedArtifactsInput).
35    pub fn builder() -> crate::operation::list_created_artifacts::builders::ListCreatedArtifactsInputBuilder {
36        crate::operation::list_created_artifacts::builders::ListCreatedArtifactsInputBuilder::default()
37    }
38}
39
40/// A builder for [`ListCreatedArtifactsInput`](crate::operation::list_created_artifacts::ListCreatedArtifactsInput).
41#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
42#[non_exhaustive]
43pub struct ListCreatedArtifactsInputBuilder {
44    pub(crate) progress_update_stream: ::std::option::Option<::std::string::String>,
45    pub(crate) migration_task_name: ::std::option::Option<::std::string::String>,
46    pub(crate) next_token: ::std::option::Option<::std::string::String>,
47    pub(crate) max_results: ::std::option::Option<i32>,
48}
49impl ListCreatedArtifactsInputBuilder {
50    /// <p>The name of the ProgressUpdateStream.</p>
51    /// This field is required.
52    pub fn progress_update_stream(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
53        self.progress_update_stream = ::std::option::Option::Some(input.into());
54        self
55    }
56    /// <p>The name of the ProgressUpdateStream.</p>
57    pub fn set_progress_update_stream(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
58        self.progress_update_stream = input;
59        self
60    }
61    /// <p>The name of the ProgressUpdateStream.</p>
62    pub fn get_progress_update_stream(&self) -> &::std::option::Option<::std::string::String> {
63        &self.progress_update_stream
64    }
65    /// <p>Unique identifier that references the migration task. <i>Do not store personal data in this field.</i></p>
66    /// This field is required.
67    pub fn migration_task_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
68        self.migration_task_name = ::std::option::Option::Some(input.into());
69        self
70    }
71    /// <p>Unique identifier that references the migration task. <i>Do not store personal data in this field.</i></p>
72    pub fn set_migration_task_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
73        self.migration_task_name = input;
74        self
75    }
76    /// <p>Unique identifier that references the migration task. <i>Do not store personal data in this field.</i></p>
77    pub fn get_migration_task_name(&self) -> &::std::option::Option<::std::string::String> {
78        &self.migration_task_name
79    }
80    /// <p>If a <code>NextToken</code> was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in <code>NextToken</code>.</p>
81    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
82        self.next_token = ::std::option::Option::Some(input.into());
83        self
84    }
85    /// <p>If a <code>NextToken</code> was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in <code>NextToken</code>.</p>
86    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
87        self.next_token = input;
88        self
89    }
90    /// <p>If a <code>NextToken</code> was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in <code>NextToken</code>.</p>
91    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
92        &self.next_token
93    }
94    /// <p>Maximum number of results to be returned per page.</p>
95    pub fn max_results(mut self, input: i32) -> Self {
96        self.max_results = ::std::option::Option::Some(input);
97        self
98    }
99    /// <p>Maximum number of results to be returned per page.</p>
100    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
101        self.max_results = input;
102        self
103    }
104    /// <p>Maximum number of results to be returned per page.</p>
105    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
106        &self.max_results
107    }
108    /// Consumes the builder and constructs a [`ListCreatedArtifactsInput`](crate::operation::list_created_artifacts::ListCreatedArtifactsInput).
109    pub fn build(
110        self,
111    ) -> ::std::result::Result<crate::operation::list_created_artifacts::ListCreatedArtifactsInput, ::aws_smithy_types::error::operation::BuildError>
112    {
113        ::std::result::Result::Ok(crate::operation::list_created_artifacts::ListCreatedArtifactsInput {
114            progress_update_stream: self.progress_update_stream,
115            migration_task_name: self.migration_task_name,
116            next_token: self.next_token,
117            max_results: self.max_results,
118        })
119    }
120}