Skip to main content

aws_sdk_iotthingsgraph/operation/get_system_template_revisions/
_get_system_template_revisions_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 GetSystemTemplateRevisionsInput {
6    /// <p>The ID of the system template.</p>
7    /// <p>The ID should be in the following format.</p>
8    /// <p><code>urn:tdm:REGION/ACCOUNT ID/default:system:SYSTEMNAME</code></p>
9    pub id: ::std::option::Option<::std::string::String>,
10    /// <p>The string that specifies the next page of results. Use this when you're paginating results.</p>
11    pub next_token: ::std::option::Option<::std::string::String>,
12    /// <p>The maximum number of results to return in the response.</p>
13    pub max_results: ::std::option::Option<i32>,
14}
15impl GetSystemTemplateRevisionsInput {
16    /// <p>The ID of the system template.</p>
17    /// <p>The ID should be in the following format.</p>
18    /// <p><code>urn:tdm:REGION/ACCOUNT ID/default:system:SYSTEMNAME</code></p>
19    pub fn id(&self) -> ::std::option::Option<&str> {
20        self.id.as_deref()
21    }
22    /// <p>The string that specifies the next page of results. Use this when you're paginating results.</p>
23    pub fn next_token(&self) -> ::std::option::Option<&str> {
24        self.next_token.as_deref()
25    }
26    /// <p>The maximum number of results to return in the response.</p>
27    pub fn max_results(&self) -> ::std::option::Option<i32> {
28        self.max_results
29    }
30}
31impl GetSystemTemplateRevisionsInput {
32    /// Creates a new builder-style object to manufacture [`GetSystemTemplateRevisionsInput`](crate::operation::get_system_template_revisions::GetSystemTemplateRevisionsInput).
33    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/// A builder for [`GetSystemTemplateRevisionsInput`](crate::operation::get_system_template_revisions::GetSystemTemplateRevisionsInput).
39#[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    /// <p>The ID of the system template.</p>
48    /// <p>The ID should be in the following format.</p>
49    /// <p><code>urn:tdm:REGION/ACCOUNT ID/default:system:SYSTEMNAME</code></p>
50    /// This field is required.
51    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    /// <p>The ID of the system template.</p>
56    /// <p>The ID should be in the following format.</p>
57    /// <p><code>urn:tdm:REGION/ACCOUNT ID/default:system:SYSTEMNAME</code></p>
58    pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
59        self.id = input;
60        self
61    }
62    /// <p>The ID of the system template.</p>
63    /// <p>The ID should be in the following format.</p>
64    /// <p><code>urn:tdm:REGION/ACCOUNT ID/default:system:SYSTEMNAME</code></p>
65    pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
66        &self.id
67    }
68    /// <p>The string that specifies the next page of results. Use this when you're paginating results.</p>
69    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    /// <p>The string that specifies the next page of results. Use this when you're paginating results.</p>
74    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
75        self.next_token = input;
76        self
77    }
78    /// <p>The string that specifies the next page of results. Use this when you're paginating results.</p>
79    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
80        &self.next_token
81    }
82    /// <p>The maximum number of results to return in the response.</p>
83    pub fn max_results(mut self, input: i32) -> Self {
84        self.max_results = ::std::option::Option::Some(input);
85        self
86    }
87    /// <p>The maximum number of results to return in the response.</p>
88    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
89        self.max_results = input;
90        self
91    }
92    /// <p>The maximum number of results to return in the response.</p>
93    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
94        &self.max_results
95    }
96    /// Consumes the builder and constructs a [`GetSystemTemplateRevisionsInput`](crate::operation::get_system_template_revisions::GetSystemTemplateRevisionsInput).
97    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}