aws_sdk_apigatewayv2/operation/get_apis/
_get_apis_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct GetApisInput {
6 pub max_results: ::std::option::Option<::std::string::String>,
8 pub next_token: ::std::option::Option<::std::string::String>,
10}
11impl GetApisInput {
12 pub fn max_results(&self) -> ::std::option::Option<&str> {
14 self.max_results.as_deref()
15 }
16 pub fn next_token(&self) -> ::std::option::Option<&str> {
18 self.next_token.as_deref()
19 }
20}
21impl GetApisInput {
22 pub fn builder() -> crate::operation::get_apis::builders::GetApisInputBuilder {
24 crate::operation::get_apis::builders::GetApisInputBuilder::default()
25 }
26}
27
28#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
30#[non_exhaustive]
31pub struct GetApisInputBuilder {
32 pub(crate) max_results: ::std::option::Option<::std::string::String>,
33 pub(crate) next_token: ::std::option::Option<::std::string::String>,
34}
35impl GetApisInputBuilder {
36 pub fn max_results(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
38 self.max_results = ::std::option::Option::Some(input.into());
39 self
40 }
41 pub fn set_max_results(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
43 self.max_results = input;
44 self
45 }
46 pub fn get_max_results(&self) -> &::std::option::Option<::std::string::String> {
48 &self.max_results
49 }
50 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 pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
57 self.next_token = input;
58 self
59 }
60 pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
62 &self.next_token
63 }
64 pub fn build(self) -> ::std::result::Result<crate::operation::get_apis::GetApisInput, ::aws_smithy_types::error::operation::BuildError> {
66 ::std::result::Result::Ok(crate::operation::get_apis::GetApisInput {
67 max_results: self.max_results,
68 next_token: self.next_token,
69 })
70 }
71}