aws_sdk_migrationhub/operation/list_created_artifacts/
_list_created_artifacts_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct ListCreatedArtifactsInput {
6 pub progress_update_stream: ::std::option::Option<::std::string::String>,
8 pub migration_task_name: ::std::option::Option<::std::string::String>,
10 pub next_token: ::std::option::Option<::std::string::String>,
12 pub max_results: ::std::option::Option<i32>,
14}
15impl ListCreatedArtifactsInput {
16 pub fn progress_update_stream(&self) -> ::std::option::Option<&str> {
18 self.progress_update_stream.as_deref()
19 }
20 pub fn migration_task_name(&self) -> ::std::option::Option<&str> {
22 self.migration_task_name.as_deref()
23 }
24 pub fn next_token(&self) -> ::std::option::Option<&str> {
26 self.next_token.as_deref()
27 }
28 pub fn max_results(&self) -> ::std::option::Option<i32> {
30 self.max_results
31 }
32}
33impl ListCreatedArtifactsInput {
34 pub fn builder() -> crate::operation::list_created_artifacts::builders::ListCreatedArtifactsInputBuilder {
36 crate::operation::list_created_artifacts::builders::ListCreatedArtifactsInputBuilder::default()
37 }
38}
39
40#[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 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 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 pub fn get_progress_update_stream(&self) -> &::std::option::Option<::std::string::String> {
63 &self.progress_update_stream
64 }
65 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 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 pub fn get_migration_task_name(&self) -> &::std::option::Option<::std::string::String> {
78 &self.migration_task_name
79 }
80 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 pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
87 self.next_token = input;
88 self
89 }
90 pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
92 &self.next_token
93 }
94 pub fn max_results(mut self, input: i32) -> Self {
96 self.max_results = ::std::option::Option::Some(input);
97 self
98 }
99 pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
101 self.max_results = input;
102 self
103 }
104 pub fn get_max_results(&self) -> &::std::option::Option<i32> {
106 &self.max_results
107 }
108 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}