aws_sdk_iotthingsgraph/operation/get_system_template_revisions/
_get_system_template_revisions_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct GetSystemTemplateRevisionsInput {
6 pub id: ::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 GetSystemTemplateRevisionsInput {
16 pub fn id(&self) -> ::std::option::Option<&str> {
20 self.id.as_deref()
21 }
22 pub fn next_token(&self) -> ::std::option::Option<&str> {
24 self.next_token.as_deref()
25 }
26 pub fn max_results(&self) -> ::std::option::Option<i32> {
28 self.max_results
29 }
30}
31impl GetSystemTemplateRevisionsInput {
32 pub fn builder() -> crate::operation::get_system_template_revisions::builders::GetSystemTemplateRevisionsInputBuilder {
34 crate::operation::get_system_template_revisions::builders::GetSystemTemplateRevisionsInputBuilder::default()
35 }
36}
37
38#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
40#[non_exhaustive]
41pub struct GetSystemTemplateRevisionsInputBuilder {
42 pub(crate) id: ::std::option::Option<::std::string::String>,
43 pub(crate) next_token: ::std::option::Option<::std::string::String>,
44 pub(crate) max_results: ::std::option::Option<i32>,
45}
46impl GetSystemTemplateRevisionsInputBuilder {
47 pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
52 self.id = ::std::option::Option::Some(input.into());
53 self
54 }
55 pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
59 self.id = input;
60 self
61 }
62 pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
66 &self.id
67 }
68 pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
70 self.next_token = ::std::option::Option::Some(input.into());
71 self
72 }
73 pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
75 self.next_token = input;
76 self
77 }
78 pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
80 &self.next_token
81 }
82 pub fn max_results(mut self, input: i32) -> Self {
84 self.max_results = ::std::option::Option::Some(input);
85 self
86 }
87 pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
89 self.max_results = input;
90 self
91 }
92 pub fn get_max_results(&self) -> &::std::option::Option<i32> {
94 &self.max_results
95 }
96 pub fn build(
98 self,
99 ) -> ::std::result::Result<
100 crate::operation::get_system_template_revisions::GetSystemTemplateRevisionsInput,
101 ::aws_smithy_types::error::operation::BuildError,
102 > {
103 ::std::result::Result::Ok(crate::operation::get_system_template_revisions::GetSystemTemplateRevisionsInput {
104 id: self.id,
105 next_token: self.next_token,
106 max_results: self.max_results,
107 })
108 }
109}