aws_sdk_snowdevicemanagement/operation/list_devices/
_list_devices_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct ListDevicesInput {
6 pub job_id: ::std::option::Option<::std::string::String>,
8 pub max_results: ::std::option::Option<i32>,
10 pub next_token: ::std::option::Option<::std::string::String>,
12}
13impl ListDevicesInput {
14 pub fn job_id(&self) -> ::std::option::Option<&str> {
16 self.job_id.as_deref()
17 }
18 pub fn max_results(&self) -> ::std::option::Option<i32> {
20 self.max_results
21 }
22 pub fn next_token(&self) -> ::std::option::Option<&str> {
24 self.next_token.as_deref()
25 }
26}
27impl ListDevicesInput {
28 pub fn builder() -> crate::operation::list_devices::builders::ListDevicesInputBuilder {
30 crate::operation::list_devices::builders::ListDevicesInputBuilder::default()
31 }
32}
33
34#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
36#[non_exhaustive]
37pub struct ListDevicesInputBuilder {
38 pub(crate) job_id: ::std::option::Option<::std::string::String>,
39 pub(crate) max_results: ::std::option::Option<i32>,
40 pub(crate) next_token: ::std::option::Option<::std::string::String>,
41}
42impl ListDevicesInputBuilder {
43 pub fn job_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
45 self.job_id = ::std::option::Option::Some(input.into());
46 self
47 }
48 pub fn set_job_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
50 self.job_id = input;
51 self
52 }
53 pub fn get_job_id(&self) -> &::std::option::Option<::std::string::String> {
55 &self.job_id
56 }
57 pub fn max_results(mut self, input: i32) -> Self {
59 self.max_results = ::std::option::Option::Some(input);
60 self
61 }
62 pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
64 self.max_results = input;
65 self
66 }
67 pub fn get_max_results(&self) -> &::std::option::Option<i32> {
69 &self.max_results
70 }
71 pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
73 self.next_token = ::std::option::Option::Some(input.into());
74 self
75 }
76 pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
78 self.next_token = input;
79 self
80 }
81 pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
83 &self.next_token
84 }
85 pub fn build(self) -> ::std::result::Result<crate::operation::list_devices::ListDevicesInput, ::aws_smithy_types::error::operation::BuildError> {
87 ::std::result::Result::Ok(crate::operation::list_devices::ListDevicesInput {
88 job_id: self.job_id,
89 max_results: self.max_results,
90 next_token: self.next_token,
91 })
92 }
93}