aws_sdk_apigateway/operation/get_client_certificates/
_get_client_certificates_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>A request to get information about a collection of ClientCertificate resources.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct GetClientCertificatesInput {
7    /// <p>The current pagination position in the paged result set.</p>
8    pub position: ::std::option::Option<::std::string::String>,
9    /// <p>The maximum number of returned results per page. The default value is 25 and the maximum value is 500.</p>
10    pub limit: ::std::option::Option<i32>,
11}
12impl GetClientCertificatesInput {
13    /// <p>The current pagination position in the paged result set.</p>
14    pub fn position(&self) -> ::std::option::Option<&str> {
15        self.position.as_deref()
16    }
17    /// <p>The maximum number of returned results per page. The default value is 25 and the maximum value is 500.</p>
18    pub fn limit(&self) -> ::std::option::Option<i32> {
19        self.limit
20    }
21}
22impl GetClientCertificatesInput {
23    /// Creates a new builder-style object to manufacture [`GetClientCertificatesInput`](crate::operation::get_client_certificates::GetClientCertificatesInput).
24    pub fn builder() -> crate::operation::get_client_certificates::builders::GetClientCertificatesInputBuilder {
25        crate::operation::get_client_certificates::builders::GetClientCertificatesInputBuilder::default()
26    }
27}
28
29/// A builder for [`GetClientCertificatesInput`](crate::operation::get_client_certificates::GetClientCertificatesInput).
30#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
31#[non_exhaustive]
32pub struct GetClientCertificatesInputBuilder {
33    pub(crate) position: ::std::option::Option<::std::string::String>,
34    pub(crate) limit: ::std::option::Option<i32>,
35}
36impl GetClientCertificatesInputBuilder {
37    /// <p>The current pagination position in the paged result set.</p>
38    pub fn position(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
39        self.position = ::std::option::Option::Some(input.into());
40        self
41    }
42    /// <p>The current pagination position in the paged result set.</p>
43    pub fn set_position(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
44        self.position = input;
45        self
46    }
47    /// <p>The current pagination position in the paged result set.</p>
48    pub fn get_position(&self) -> &::std::option::Option<::std::string::String> {
49        &self.position
50    }
51    /// <p>The maximum number of returned results per page. The default value is 25 and the maximum value is 500.</p>
52    pub fn limit(mut self, input: i32) -> Self {
53        self.limit = ::std::option::Option::Some(input);
54        self
55    }
56    /// <p>The maximum number of returned results per page. The default value is 25 and the maximum value is 500.</p>
57    pub fn set_limit(mut self, input: ::std::option::Option<i32>) -> Self {
58        self.limit = input;
59        self
60    }
61    /// <p>The maximum number of returned results per page. The default value is 25 and the maximum value is 500.</p>
62    pub fn get_limit(&self) -> &::std::option::Option<i32> {
63        &self.limit
64    }
65    /// Consumes the builder and constructs a [`GetClientCertificatesInput`](crate::operation::get_client_certificates::GetClientCertificatesInput).
66    pub fn build(
67        self,
68    ) -> ::std::result::Result<crate::operation::get_client_certificates::GetClientCertificatesInput, ::aws_smithy_types::error::operation::BuildError>
69    {
70        ::std::result::Result::Ok(crate::operation::get_client_certificates::GetClientCertificatesInput {
71            position: self.position,
72            limit: self.limit,
73        })
74    }
75}