aws_sdk_organizations/operation/list_delegated_services_for_account/
_list_delegated_services_for_account_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 ListDelegatedServicesForAccountInput {
6    /// <p>The account ID number of a delegated administrator account in the organization.</p>
7    pub account_id: ::std::option::Option<::std::string::String>,
8    /// <p>The parameter for receiving additional results if you receive a <code>NextToken</code> response in a previous request. A <code>NextToken</code> response indicates that more output is available. Set this parameter to the value of the previous call's <code>NextToken</code> response to indicate where the output should continue from.</p>
9    pub next_token: ::std::option::Option<::std::string::String>,
10    /// <p>The total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the maximum you specify, the <code>NextToken</code> response element is present and has a value (is not null). Include that value as the <code>NextToken</code> request parameter in the next call to the operation to get the next part of the results. Note that Organizations might return fewer results than the maximum even when there are more results available. You should check <code>NextToken</code> after every operation to ensure that you receive all of the results.</p>
11    pub max_results: ::std::option::Option<i32>,
12}
13impl ListDelegatedServicesForAccountInput {
14    /// <p>The account ID number of a delegated administrator account in the organization.</p>
15    pub fn account_id(&self) -> ::std::option::Option<&str> {
16        self.account_id.as_deref()
17    }
18    /// <p>The parameter for receiving additional results if you receive a <code>NextToken</code> response in a previous request. A <code>NextToken</code> response indicates that more output is available. Set this parameter to the value of the previous call's <code>NextToken</code> response to indicate where the output should continue from.</p>
19    pub fn next_token(&self) -> ::std::option::Option<&str> {
20        self.next_token.as_deref()
21    }
22    /// <p>The total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the maximum you specify, the <code>NextToken</code> response element is present and has a value (is not null). Include that value as the <code>NextToken</code> request parameter in the next call to the operation to get the next part of the results. Note that Organizations might return fewer results than the maximum even when there are more results available. You should check <code>NextToken</code> after every operation to ensure that you receive all of the results.</p>
23    pub fn max_results(&self) -> ::std::option::Option<i32> {
24        self.max_results
25    }
26}
27impl ListDelegatedServicesForAccountInput {
28    /// Creates a new builder-style object to manufacture [`ListDelegatedServicesForAccountInput`](crate::operation::list_delegated_services_for_account::ListDelegatedServicesForAccountInput).
29    pub fn builder() -> crate::operation::list_delegated_services_for_account::builders::ListDelegatedServicesForAccountInputBuilder {
30        crate::operation::list_delegated_services_for_account::builders::ListDelegatedServicesForAccountInputBuilder::default()
31    }
32}
33
34/// A builder for [`ListDelegatedServicesForAccountInput`](crate::operation::list_delegated_services_for_account::ListDelegatedServicesForAccountInput).
35#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
36#[non_exhaustive]
37pub struct ListDelegatedServicesForAccountInputBuilder {
38    pub(crate) account_id: ::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 ListDelegatedServicesForAccountInputBuilder {
43    /// <p>The account ID number of a delegated administrator account in the organization.</p>
44    /// This field is required.
45    pub fn account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
46        self.account_id = ::std::option::Option::Some(input.into());
47        self
48    }
49    /// <p>The account ID number of a delegated administrator account in the organization.</p>
50    pub fn set_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
51        self.account_id = input;
52        self
53    }
54    /// <p>The account ID number of a delegated administrator account in the organization.</p>
55    pub fn get_account_id(&self) -> &::std::option::Option<::std::string::String> {
56        &self.account_id
57    }
58    /// <p>The parameter for receiving additional results if you receive a <code>NextToken</code> response in a previous request. A <code>NextToken</code> response indicates that more output is available. Set this parameter to the value of the previous call's <code>NextToken</code> response to indicate where the output should continue from.</p>
59    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    /// <p>The parameter for receiving additional results if you receive a <code>NextToken</code> response in a previous request. A <code>NextToken</code> response indicates that more output is available. Set this parameter to the value of the previous call's <code>NextToken</code> response to indicate where the output should continue from.</p>
64    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
65        self.next_token = input;
66        self
67    }
68    /// <p>The parameter for receiving additional results if you receive a <code>NextToken</code> response in a previous request. A <code>NextToken</code> response indicates that more output is available. Set this parameter to the value of the previous call's <code>NextToken</code> response to indicate where the output should continue from.</p>
69    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
70        &self.next_token
71    }
72    /// <p>The total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the maximum you specify, the <code>NextToken</code> response element is present and has a value (is not null). Include that value as the <code>NextToken</code> request parameter in the next call to the operation to get the next part of the results. Note that Organizations might return fewer results than the maximum even when there are more results available. You should check <code>NextToken</code> after every operation to ensure that you receive all of the results.</p>
73    pub fn max_results(mut self, input: i32) -> Self {
74        self.max_results = ::std::option::Option::Some(input);
75        self
76    }
77    /// <p>The total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the maximum you specify, the <code>NextToken</code> response element is present and has a value (is not null). Include that value as the <code>NextToken</code> request parameter in the next call to the operation to get the next part of the results. Note that Organizations might return fewer results than the maximum even when there are more results available. You should check <code>NextToken</code> after every operation to ensure that you receive all of the results.</p>
78    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
79        self.max_results = input;
80        self
81    }
82    /// <p>The total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the maximum you specify, the <code>NextToken</code> response element is present and has a value (is not null). Include that value as the <code>NextToken</code> request parameter in the next call to the operation to get the next part of the results. Note that Organizations might return fewer results than the maximum even when there are more results available. You should check <code>NextToken</code> after every operation to ensure that you receive all of the results.</p>
83    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
84        &self.max_results
85    }
86    /// Consumes the builder and constructs a [`ListDelegatedServicesForAccountInput`](crate::operation::list_delegated_services_for_account::ListDelegatedServicesForAccountInput).
87    pub fn build(
88        self,
89    ) -> ::std::result::Result<
90        crate::operation::list_delegated_services_for_account::ListDelegatedServicesForAccountInput,
91        ::aws_smithy_types::error::operation::BuildError,
92    > {
93        ::std::result::Result::Ok(
94            crate::operation::list_delegated_services_for_account::ListDelegatedServicesForAccountInput {
95                account_id: self.account_id,
96                next_token: self.next_token,
97                max_results: self.max_results,
98            },
99        )
100    }
101}