aws_sdk_sesv2/operation/list_configuration_sets/_list_configuration_sets_input.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>A request to obtain a list of configuration sets for your Amazon SES account in the current Amazon Web Services Region.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct ListConfigurationSetsInput {
7 /// <p>A token returned from a previous call to <code>ListConfigurationSets</code> to indicate the position in the list of configuration sets.</p>
8 pub next_token: ::std::option::Option<::std::string::String>,
9 /// <p>The number of results to show in a single call to <code>ListConfigurationSets</code>. If the number of results is larger than the number you specified in this parameter, then the response includes a <code>NextToken</code> element, which you can use to obtain additional results.</p>
10 pub page_size: ::std::option::Option<i32>,
11}
12impl ListConfigurationSetsInput {
13 /// <p>A token returned from a previous call to <code>ListConfigurationSets</code> to indicate the position in the list of configuration sets.</p>
14 pub fn next_token(&self) -> ::std::option::Option<&str> {
15 self.next_token.as_deref()
16 }
17 /// <p>The number of results to show in a single call to <code>ListConfigurationSets</code>. If the number of results is larger than the number you specified in this parameter, then the response includes a <code>NextToken</code> element, which you can use to obtain additional results.</p>
18 pub fn page_size(&self) -> ::std::option::Option<i32> {
19 self.page_size
20 }
21}
22impl ListConfigurationSetsInput {
23 /// Creates a new builder-style object to manufacture [`ListConfigurationSetsInput`](crate::operation::list_configuration_sets::ListConfigurationSetsInput).
24 pub fn builder() -> crate::operation::list_configuration_sets::builders::ListConfigurationSetsInputBuilder {
25 crate::operation::list_configuration_sets::builders::ListConfigurationSetsInputBuilder::default()
26 }
27}
28
29/// A builder for [`ListConfigurationSetsInput`](crate::operation::list_configuration_sets::ListConfigurationSetsInput).
30#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
31#[non_exhaustive]
32pub struct ListConfigurationSetsInputBuilder {
33 pub(crate) next_token: ::std::option::Option<::std::string::String>,
34 pub(crate) page_size: ::std::option::Option<i32>,
35}
36impl ListConfigurationSetsInputBuilder {
37 /// <p>A token returned from a previous call to <code>ListConfigurationSets</code> to indicate the position in the list of configuration sets.</p>
38 pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
39 self.next_token = ::std::option::Option::Some(input.into());
40 self
41 }
42 /// <p>A token returned from a previous call to <code>ListConfigurationSets</code> to indicate the position in the list of configuration sets.</p>
43 pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
44 self.next_token = input;
45 self
46 }
47 /// <p>A token returned from a previous call to <code>ListConfigurationSets</code> to indicate the position in the list of configuration sets.</p>
48 pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
49 &self.next_token
50 }
51 /// <p>The number of results to show in a single call to <code>ListConfigurationSets</code>. If the number of results is larger than the number you specified in this parameter, then the response includes a <code>NextToken</code> element, which you can use to obtain additional results.</p>
52 pub fn page_size(mut self, input: i32) -> Self {
53 self.page_size = ::std::option::Option::Some(input);
54 self
55 }
56 /// <p>The number of results to show in a single call to <code>ListConfigurationSets</code>. If the number of results is larger than the number you specified in this parameter, then the response includes a <code>NextToken</code> element, which you can use to obtain additional results.</p>
57 pub fn set_page_size(mut self, input: ::std::option::Option<i32>) -> Self {
58 self.page_size = input;
59 self
60 }
61 /// <p>The number of results to show in a single call to <code>ListConfigurationSets</code>. If the number of results is larger than the number you specified in this parameter, then the response includes a <code>NextToken</code> element, which you can use to obtain additional results.</p>
62 pub fn get_page_size(&self) -> &::std::option::Option<i32> {
63 &self.page_size
64 }
65 /// Consumes the builder and constructs a [`ListConfigurationSetsInput`](crate::operation::list_configuration_sets::ListConfigurationSetsInput).
66 pub fn build(
67 self,
68 ) -> ::std::result::Result<crate::operation::list_configuration_sets::ListConfigurationSetsInput, ::aws_smithy_types::error::operation::BuildError>
69 {
70 ::std::result::Result::Ok(crate::operation::list_configuration_sets::ListConfigurationSetsInput {
71 next_token: self.next_token,
72 page_size: self.page_size,
73 })
74 }
75}