aws_sdk_appconfig/operation/list_applications/_list_applications_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 ListApplicationsInput {
6 /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
7 pub max_results: ::std::option::Option<i32>,
8 /// <p>A token to start the list. Next token is a pagination token generated by AppConfig to describe what page the previous List call ended on. For the first List request, the nextToken should not be set. On subsequent calls, the nextToken parameter should be set to the previous responses nextToken value. Use this token to get the next set of results.</p>
9 pub next_token: ::std::option::Option<::std::string::String>,
10}
11impl ListApplicationsInput {
12 /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
13 pub fn max_results(&self) -> ::std::option::Option<i32> {
14 self.max_results
15 }
16 /// <p>A token to start the list. Next token is a pagination token generated by AppConfig to describe what page the previous List call ended on. For the first List request, the nextToken should not be set. On subsequent calls, the nextToken parameter should be set to the previous responses nextToken value. Use this token to get the next set of results.</p>
17 pub fn next_token(&self) -> ::std::option::Option<&str> {
18 self.next_token.as_deref()
19 }
20}
21impl ListApplicationsInput {
22 /// Creates a new builder-style object to manufacture [`ListApplicationsInput`](crate::operation::list_applications::ListApplicationsInput).
23 pub fn builder() -> crate::operation::list_applications::builders::ListApplicationsInputBuilder {
24 crate::operation::list_applications::builders::ListApplicationsInputBuilder::default()
25 }
26}
27
28/// A builder for [`ListApplicationsInput`](crate::operation::list_applications::ListApplicationsInput).
29#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
30#[non_exhaustive]
31pub struct ListApplicationsInputBuilder {
32 pub(crate) max_results: ::std::option::Option<i32>,
33 pub(crate) next_token: ::std::option::Option<::std::string::String>,
34}
35impl ListApplicationsInputBuilder {
36 /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
37 pub fn max_results(mut self, input: i32) -> Self {
38 self.max_results = ::std::option::Option::Some(input);
39 self
40 }
41 /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
42 pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
43 self.max_results = input;
44 self
45 }
46 /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
47 pub fn get_max_results(&self) -> &::std::option::Option<i32> {
48 &self.max_results
49 }
50 /// <p>A token to start the list. Next token is a pagination token generated by AppConfig to describe what page the previous List call ended on. For the first List request, the nextToken should not be set. On subsequent calls, the nextToken parameter should be set to the previous responses nextToken value. Use this token to get the next set of results.</p>
51 pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
52 self.next_token = ::std::option::Option::Some(input.into());
53 self
54 }
55 /// <p>A token to start the list. Next token is a pagination token generated by AppConfig to describe what page the previous List call ended on. For the first List request, the nextToken should not be set. On subsequent calls, the nextToken parameter should be set to the previous responses nextToken value. Use this token to get the next set of results.</p>
56 pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
57 self.next_token = input;
58 self
59 }
60 /// <p>A token to start the list. Next token is a pagination token generated by AppConfig to describe what page the previous List call ended on. For the first List request, the nextToken should not be set. On subsequent calls, the nextToken parameter should be set to the previous responses nextToken value. Use this token to get the next set of results.</p>
61 pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
62 &self.next_token
63 }
64 /// Consumes the builder and constructs a [`ListApplicationsInput`](crate::operation::list_applications::ListApplicationsInput).
65 pub fn build(
66 self,
67 ) -> ::std::result::Result<crate::operation::list_applications::ListApplicationsInput, ::aws_smithy_types::error::operation::BuildError> {
68 ::std::result::Result::Ok(crate::operation::list_applications::ListApplicationsInput {
69 max_results: self.max_results,
70 next_token: self.next_token,
71 })
72 }
73}