aws_sdk_route53/operation/list_cidr_collections/
_list_cidr_collections_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct ListCidrCollectionsInput {
6 pub next_token: ::std::option::Option<::std::string::String>,
9 pub max_results: ::std::option::Option<i32>,
11}
12impl ListCidrCollectionsInput {
13 pub fn next_token(&self) -> ::std::option::Option<&str> {
16 self.next_token.as_deref()
17 }
18 pub fn max_results(&self) -> ::std::option::Option<i32> {
20 self.max_results
21 }
22}
23impl ListCidrCollectionsInput {
24 pub fn builder() -> crate::operation::list_cidr_collections::builders::ListCidrCollectionsInputBuilder {
26 crate::operation::list_cidr_collections::builders::ListCidrCollectionsInputBuilder::default()
27 }
28}
29
30#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
32#[non_exhaustive]
33pub struct ListCidrCollectionsInputBuilder {
34 pub(crate) next_token: ::std::option::Option<::std::string::String>,
35 pub(crate) max_results: ::std::option::Option<i32>,
36}
37impl ListCidrCollectionsInputBuilder {
38 pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
41 self.next_token = ::std::option::Option::Some(input.into());
42 self
43 }
44 pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
47 self.next_token = input;
48 self
49 }
50 pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
53 &self.next_token
54 }
55 pub fn max_results(mut self, input: i32) -> Self {
57 self.max_results = ::std::option::Option::Some(input);
58 self
59 }
60 pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
62 self.max_results = input;
63 self
64 }
65 pub fn get_max_results(&self) -> &::std::option::Option<i32> {
67 &self.max_results
68 }
69 pub fn build(
71 self,
72 ) -> ::std::result::Result<crate::operation::list_cidr_collections::ListCidrCollectionsInput, ::aws_smithy_types::error::operation::BuildError>
73 {
74 ::std::result::Result::Ok(crate::operation::list_cidr_collections::ListCidrCollectionsInput {
75 next_token: self.next_token,
76 max_results: self.max_results,
77 })
78 }
79}