aws_sdk_rds/operation/describe_certificates/
_describe_certificates_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p></p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct DescribeCertificatesInput {
7    /// <p>The user-supplied certificate identifier. If this parameter is specified, information for only the identified certificate is returned. This parameter isn't case-sensitive.</p>
8    /// <p>Constraints:</p>
9    /// <ul>
10    /// <li>
11    /// <p>Must match an existing CertificateIdentifier.</p></li>
12    /// </ul>
13    pub certificate_identifier: ::std::option::Option<::std::string::String>,
14    /// <p>This parameter isn't currently supported.</p>
15    pub filters: ::std::option::Option<::std::vec::Vec<crate::types::Filter>>,
16    /// <p>The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a pagination token called a marker is included in the response so you can retrieve the remaining results.</p>
17    /// <p>Default: 100</p>
18    /// <p>Constraints: Minimum 20, maximum 100.</p>
19    pub max_records: ::std::option::Option<i32>,
20    /// <p>An optional pagination token provided by a previous <code>DescribeCertificates</code> request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>.</p>
21    pub marker: ::std::option::Option<::std::string::String>,
22}
23impl DescribeCertificatesInput {
24    /// <p>The user-supplied certificate identifier. If this parameter is specified, information for only the identified certificate is returned. This parameter isn't case-sensitive.</p>
25    /// <p>Constraints:</p>
26    /// <ul>
27    /// <li>
28    /// <p>Must match an existing CertificateIdentifier.</p></li>
29    /// </ul>
30    pub fn certificate_identifier(&self) -> ::std::option::Option<&str> {
31        self.certificate_identifier.as_deref()
32    }
33    /// <p>This parameter isn't currently supported.</p>
34    ///
35    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.filters.is_none()`.
36    pub fn filters(&self) -> &[crate::types::Filter] {
37        self.filters.as_deref().unwrap_or_default()
38    }
39    /// <p>The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a pagination token called a marker is included in the response so you can retrieve the remaining results.</p>
40    /// <p>Default: 100</p>
41    /// <p>Constraints: Minimum 20, maximum 100.</p>
42    pub fn max_records(&self) -> ::std::option::Option<i32> {
43        self.max_records
44    }
45    /// <p>An optional pagination token provided by a previous <code>DescribeCertificates</code> request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>.</p>
46    pub fn marker(&self) -> ::std::option::Option<&str> {
47        self.marker.as_deref()
48    }
49}
50impl DescribeCertificatesInput {
51    /// Creates a new builder-style object to manufacture [`DescribeCertificatesInput`](crate::operation::describe_certificates::DescribeCertificatesInput).
52    pub fn builder() -> crate::operation::describe_certificates::builders::DescribeCertificatesInputBuilder {
53        crate::operation::describe_certificates::builders::DescribeCertificatesInputBuilder::default()
54    }
55}
56
57/// A builder for [`DescribeCertificatesInput`](crate::operation::describe_certificates::DescribeCertificatesInput).
58#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
59#[non_exhaustive]
60pub struct DescribeCertificatesInputBuilder {
61    pub(crate) certificate_identifier: ::std::option::Option<::std::string::String>,
62    pub(crate) filters: ::std::option::Option<::std::vec::Vec<crate::types::Filter>>,
63    pub(crate) max_records: ::std::option::Option<i32>,
64    pub(crate) marker: ::std::option::Option<::std::string::String>,
65}
66impl DescribeCertificatesInputBuilder {
67    /// <p>The user-supplied certificate identifier. If this parameter is specified, information for only the identified certificate is returned. This parameter isn't case-sensitive.</p>
68    /// <p>Constraints:</p>
69    /// <ul>
70    /// <li>
71    /// <p>Must match an existing CertificateIdentifier.</p></li>
72    /// </ul>
73    pub fn certificate_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
74        self.certificate_identifier = ::std::option::Option::Some(input.into());
75        self
76    }
77    /// <p>The user-supplied certificate identifier. If this parameter is specified, information for only the identified certificate is returned. This parameter isn't case-sensitive.</p>
78    /// <p>Constraints:</p>
79    /// <ul>
80    /// <li>
81    /// <p>Must match an existing CertificateIdentifier.</p></li>
82    /// </ul>
83    pub fn set_certificate_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
84        self.certificate_identifier = input;
85        self
86    }
87    /// <p>The user-supplied certificate identifier. If this parameter is specified, information for only the identified certificate is returned. This parameter isn't case-sensitive.</p>
88    /// <p>Constraints:</p>
89    /// <ul>
90    /// <li>
91    /// <p>Must match an existing CertificateIdentifier.</p></li>
92    /// </ul>
93    pub fn get_certificate_identifier(&self) -> &::std::option::Option<::std::string::String> {
94        &self.certificate_identifier
95    }
96    /// Appends an item to `filters`.
97    ///
98    /// To override the contents of this collection use [`set_filters`](Self::set_filters).
99    ///
100    /// <p>This parameter isn't currently supported.</p>
101    pub fn filters(mut self, input: crate::types::Filter) -> Self {
102        let mut v = self.filters.unwrap_or_default();
103        v.push(input);
104        self.filters = ::std::option::Option::Some(v);
105        self
106    }
107    /// <p>This parameter isn't currently supported.</p>
108    pub fn set_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Filter>>) -> Self {
109        self.filters = input;
110        self
111    }
112    /// <p>This parameter isn't currently supported.</p>
113    pub fn get_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Filter>> {
114        &self.filters
115    }
116    /// <p>The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a pagination token called a marker is included in the response so you can retrieve the remaining results.</p>
117    /// <p>Default: 100</p>
118    /// <p>Constraints: Minimum 20, maximum 100.</p>
119    pub fn max_records(mut self, input: i32) -> Self {
120        self.max_records = ::std::option::Option::Some(input);
121        self
122    }
123    /// <p>The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a pagination token called a marker is included in the response so you can retrieve the remaining results.</p>
124    /// <p>Default: 100</p>
125    /// <p>Constraints: Minimum 20, maximum 100.</p>
126    pub fn set_max_records(mut self, input: ::std::option::Option<i32>) -> Self {
127        self.max_records = input;
128        self
129    }
130    /// <p>The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a pagination token called a marker is included in the response so you can retrieve the remaining results.</p>
131    /// <p>Default: 100</p>
132    /// <p>Constraints: Minimum 20, maximum 100.</p>
133    pub fn get_max_records(&self) -> &::std::option::Option<i32> {
134        &self.max_records
135    }
136    /// <p>An optional pagination token provided by a previous <code>DescribeCertificates</code> request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>.</p>
137    pub fn marker(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
138        self.marker = ::std::option::Option::Some(input.into());
139        self
140    }
141    /// <p>An optional pagination token provided by a previous <code>DescribeCertificates</code> request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>.</p>
142    pub fn set_marker(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
143        self.marker = input;
144        self
145    }
146    /// <p>An optional pagination token provided by a previous <code>DescribeCertificates</code> request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>.</p>
147    pub fn get_marker(&self) -> &::std::option::Option<::std::string::String> {
148        &self.marker
149    }
150    /// Consumes the builder and constructs a [`DescribeCertificatesInput`](crate::operation::describe_certificates::DescribeCertificatesInput).
151    pub fn build(
152        self,
153    ) -> ::std::result::Result<crate::operation::describe_certificates::DescribeCertificatesInput, ::aws_smithy_types::error::operation::BuildError>
154    {
155        ::std::result::Result::Ok(crate::operation::describe_certificates::DescribeCertificatesInput {
156            certificate_identifier: self.certificate_identifier,
157            filters: self.filters,
158            max_records: self.max_records,
159            marker: self.marker,
160        })
161    }
162}