aws_sdk_customerprofiles/operation/list_profile_object_types/
_list_profile_object_types_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct ListProfileObjectTypesInput {
6 pub domain_name: ::std::option::Option<::std::string::String>,
8 pub next_token: ::std::option::Option<::std::string::String>,
10 pub max_results: ::std::option::Option<i32>,
12}
13impl ListProfileObjectTypesInput {
14 pub fn domain_name(&self) -> ::std::option::Option<&str> {
16 self.domain_name.as_deref()
17 }
18 pub fn next_token(&self) -> ::std::option::Option<&str> {
20 self.next_token.as_deref()
21 }
22 pub fn max_results(&self) -> ::std::option::Option<i32> {
24 self.max_results
25 }
26}
27impl ListProfileObjectTypesInput {
28 pub fn builder() -> crate::operation::list_profile_object_types::builders::ListProfileObjectTypesInputBuilder {
30 crate::operation::list_profile_object_types::builders::ListProfileObjectTypesInputBuilder::default()
31 }
32}
33
34#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
36#[non_exhaustive]
37pub struct ListProfileObjectTypesInputBuilder {
38 pub(crate) domain_name: ::std::option::Option<::std::string::String>,
39 pub(crate) next_token: ::std::option::Option<::std::string::String>,
40 pub(crate) max_results: ::std::option::Option<i32>,
41}
42impl ListProfileObjectTypesInputBuilder {
43 pub fn domain_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
46 self.domain_name = ::std::option::Option::Some(input.into());
47 self
48 }
49 pub fn set_domain_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
51 self.domain_name = input;
52 self
53 }
54 pub fn get_domain_name(&self) -> &::std::option::Option<::std::string::String> {
56 &self.domain_name
57 }
58 pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
60 self.next_token = ::std::option::Option::Some(input.into());
61 self
62 }
63 pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
65 self.next_token = input;
66 self
67 }
68 pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
70 &self.next_token
71 }
72 pub fn max_results(mut self, input: i32) -> Self {
74 self.max_results = ::std::option::Option::Some(input);
75 self
76 }
77 pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
79 self.max_results = input;
80 self
81 }
82 pub fn get_max_results(&self) -> &::std::option::Option<i32> {
84 &self.max_results
85 }
86 pub fn build(
88 self,
89 ) -> ::std::result::Result<
90 crate::operation::list_profile_object_types::ListProfileObjectTypesInput,
91 ::aws_smithy_types::error::operation::BuildError,
92 > {
93 ::std::result::Result::Ok(crate::operation::list_profile_object_types::ListProfileObjectTypesInput {
94 domain_name: self.domain_name,
95 next_token: self.next_token,
96 max_results: self.max_results,
97 })
98 }
99}