aws_sdk_organizations/operation/list_aws_service_access_for_organization/
_list_aws_service_access_for_organization_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 ListAwsServiceAccessForOrganizationInput {
6    /// <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>
7    pub next_token: ::std::option::Option<::std::string::String>,
8    /// <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>
9    pub max_results: ::std::option::Option<i32>,
10}
11impl ListAwsServiceAccessForOrganizationInput {
12    /// <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>
13    pub fn next_token(&self) -> ::std::option::Option<&str> {
14        self.next_token.as_deref()
15    }
16    /// <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>
17    pub fn max_results(&self) -> ::std::option::Option<i32> {
18        self.max_results
19    }
20}
21impl ListAwsServiceAccessForOrganizationInput {
22    /// Creates a new builder-style object to manufacture [`ListAwsServiceAccessForOrganizationInput`](crate::operation::list_aws_service_access_for_organization::ListAwsServiceAccessForOrganizationInput).
23    pub fn builder() -> crate::operation::list_aws_service_access_for_organization::builders::ListAwsServiceAccessForOrganizationInputBuilder {
24        crate::operation::list_aws_service_access_for_organization::builders::ListAwsServiceAccessForOrganizationInputBuilder::default()
25    }
26}
27
28/// A builder for [`ListAwsServiceAccessForOrganizationInput`](crate::operation::list_aws_service_access_for_organization::ListAwsServiceAccessForOrganizationInput).
29#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
30#[non_exhaustive]
31pub struct ListAwsServiceAccessForOrganizationInputBuilder {
32    pub(crate) next_token: ::std::option::Option<::std::string::String>,
33    pub(crate) max_results: ::std::option::Option<i32>,
34}
35impl ListAwsServiceAccessForOrganizationInputBuilder {
36    /// <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>
37    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
38        self.next_token = ::std::option::Option::Some(input.into());
39        self
40    }
41    /// <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>
42    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
43        self.next_token = input;
44        self
45    }
46    /// <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>
47    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
48        &self.next_token
49    }
50    /// <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>
51    pub fn max_results(mut self, input: i32) -> Self {
52        self.max_results = ::std::option::Option::Some(input);
53        self
54    }
55    /// <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>
56    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
57        self.max_results = input;
58        self
59    }
60    /// <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>
61    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
62        &self.max_results
63    }
64    /// Consumes the builder and constructs a [`ListAwsServiceAccessForOrganizationInput`](crate::operation::list_aws_service_access_for_organization::ListAwsServiceAccessForOrganizationInput).
65    pub fn build(
66        self,
67    ) -> ::std::result::Result<
68        crate::operation::list_aws_service_access_for_organization::ListAwsServiceAccessForOrganizationInput,
69        ::aws_smithy_types::error::operation::BuildError,
70    > {
71        ::std::result::Result::Ok(
72            crate::operation::list_aws_service_access_for_organization::ListAwsServiceAccessForOrganizationInput {
73                next_token: self.next_token,
74                max_results: self.max_results,
75            },
76        )
77    }
78}