aws_sdk_customerprofiles/operation/list_integrations/
_list_integrations_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 ListIntegrationsInput {
6    /// <p>The unique name of the domain.</p>
7    pub domain_name: ::std::option::Option<::std::string::String>,
8    /// <p>The pagination token from the previous ListIntegrations API call.</p>
9    pub next_token: ::std::option::Option<::std::string::String>,
10    /// <p>The maximum number of objects returned per page.</p>
11    pub max_results: ::std::option::Option<i32>,
12    /// <p>Boolean to indicate if hidden integration should be returned. Defaults to <code>False</code>.</p>
13    pub include_hidden: ::std::option::Option<bool>,
14}
15impl ListIntegrationsInput {
16    /// <p>The unique name of the domain.</p>
17    pub fn domain_name(&self) -> ::std::option::Option<&str> {
18        self.domain_name.as_deref()
19    }
20    /// <p>The pagination token from the previous ListIntegrations API call.</p>
21    pub fn next_token(&self) -> ::std::option::Option<&str> {
22        self.next_token.as_deref()
23    }
24    /// <p>The maximum number of objects returned per page.</p>
25    pub fn max_results(&self) -> ::std::option::Option<i32> {
26        self.max_results
27    }
28    /// <p>Boolean to indicate if hidden integration should be returned. Defaults to <code>False</code>.</p>
29    pub fn include_hidden(&self) -> ::std::option::Option<bool> {
30        self.include_hidden
31    }
32}
33impl ListIntegrationsInput {
34    /// Creates a new builder-style object to manufacture [`ListIntegrationsInput`](crate::operation::list_integrations::ListIntegrationsInput).
35    pub fn builder() -> crate::operation::list_integrations::builders::ListIntegrationsInputBuilder {
36        crate::operation::list_integrations::builders::ListIntegrationsInputBuilder::default()
37    }
38}
39
40/// A builder for [`ListIntegrationsInput`](crate::operation::list_integrations::ListIntegrationsInput).
41#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
42#[non_exhaustive]
43pub struct ListIntegrationsInputBuilder {
44    pub(crate) domain_name: ::std::option::Option<::std::string::String>,
45    pub(crate) next_token: ::std::option::Option<::std::string::String>,
46    pub(crate) max_results: ::std::option::Option<i32>,
47    pub(crate) include_hidden: ::std::option::Option<bool>,
48}
49impl ListIntegrationsInputBuilder {
50    /// <p>The unique name of the domain.</p>
51    /// This field is required.
52    pub fn domain_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
53        self.domain_name = ::std::option::Option::Some(input.into());
54        self
55    }
56    /// <p>The unique name of the domain.</p>
57    pub fn set_domain_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
58        self.domain_name = input;
59        self
60    }
61    /// <p>The unique name of the domain.</p>
62    pub fn get_domain_name(&self) -> &::std::option::Option<::std::string::String> {
63        &self.domain_name
64    }
65    /// <p>The pagination token from the previous ListIntegrations API call.</p>
66    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
67        self.next_token = ::std::option::Option::Some(input.into());
68        self
69    }
70    /// <p>The pagination token from the previous ListIntegrations API call.</p>
71    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
72        self.next_token = input;
73        self
74    }
75    /// <p>The pagination token from the previous ListIntegrations API call.</p>
76    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
77        &self.next_token
78    }
79    /// <p>The maximum number of objects returned per page.</p>
80    pub fn max_results(mut self, input: i32) -> Self {
81        self.max_results = ::std::option::Option::Some(input);
82        self
83    }
84    /// <p>The maximum number of objects returned per page.</p>
85    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
86        self.max_results = input;
87        self
88    }
89    /// <p>The maximum number of objects returned per page.</p>
90    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
91        &self.max_results
92    }
93    /// <p>Boolean to indicate if hidden integration should be returned. Defaults to <code>False</code>.</p>
94    pub fn include_hidden(mut self, input: bool) -> Self {
95        self.include_hidden = ::std::option::Option::Some(input);
96        self
97    }
98    /// <p>Boolean to indicate if hidden integration should be returned. Defaults to <code>False</code>.</p>
99    pub fn set_include_hidden(mut self, input: ::std::option::Option<bool>) -> Self {
100        self.include_hidden = input;
101        self
102    }
103    /// <p>Boolean to indicate if hidden integration should be returned. Defaults to <code>False</code>.</p>
104    pub fn get_include_hidden(&self) -> &::std::option::Option<bool> {
105        &self.include_hidden
106    }
107    /// Consumes the builder and constructs a [`ListIntegrationsInput`](crate::operation::list_integrations::ListIntegrationsInput).
108    pub fn build(
109        self,
110    ) -> ::std::result::Result<crate::operation::list_integrations::ListIntegrationsInput, ::aws_smithy_types::error::operation::BuildError> {
111        ::std::result::Result::Ok(crate::operation::list_integrations::ListIntegrationsInput {
112            domain_name: self.domain_name,
113            next_token: self.next_token,
114            max_results: self.max_results,
115            include_hidden: self.include_hidden,
116        })
117    }
118}