aws_sdk_rds/operation/describe_integrations/_describe_integrations_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 DescribeIntegrationsInput {
6 /// <p>The unique identifier of the integration.</p>
7 pub integration_identifier: ::std::option::Option<::std::string::String>,
8 /// <p>A filter that specifies one or more resources to return.</p>
9 pub filters: ::std::option::Option<::std::vec::Vec<crate::types::Filter>>,
10 /// <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 that you can retrieve the remaining results.</p>
11 /// <p>Default: 100</p>
12 /// <p>Constraints: Minimum 20, maximum 100.</p>
13 pub max_records: ::std::option::Option<i32>,
14 /// <p>An optional pagination token provided by a previous <code>DescribeIntegrations</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>
15 pub marker: ::std::option::Option<::std::string::String>,
16}
17impl DescribeIntegrationsInput {
18 /// <p>The unique identifier of the integration.</p>
19 pub fn integration_identifier(&self) -> ::std::option::Option<&str> {
20 self.integration_identifier.as_deref()
21 }
22 /// <p>A filter that specifies one or more resources to return.</p>
23 ///
24 /// 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()`.
25 pub fn filters(&self) -> &[crate::types::Filter] {
26 self.filters.as_deref().unwrap_or_default()
27 }
28 /// <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 that you can retrieve the remaining results.</p>
29 /// <p>Default: 100</p>
30 /// <p>Constraints: Minimum 20, maximum 100.</p>
31 pub fn max_records(&self) -> ::std::option::Option<i32> {
32 self.max_records
33 }
34 /// <p>An optional pagination token provided by a previous <code>DescribeIntegrations</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>
35 pub fn marker(&self) -> ::std::option::Option<&str> {
36 self.marker.as_deref()
37 }
38}
39impl DescribeIntegrationsInput {
40 /// Creates a new builder-style object to manufacture [`DescribeIntegrationsInput`](crate::operation::describe_integrations::DescribeIntegrationsInput).
41 pub fn builder() -> crate::operation::describe_integrations::builders::DescribeIntegrationsInputBuilder {
42 crate::operation::describe_integrations::builders::DescribeIntegrationsInputBuilder::default()
43 }
44}
45
46/// A builder for [`DescribeIntegrationsInput`](crate::operation::describe_integrations::DescribeIntegrationsInput).
47#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
48#[non_exhaustive]
49pub struct DescribeIntegrationsInputBuilder {
50 pub(crate) integration_identifier: ::std::option::Option<::std::string::String>,
51 pub(crate) filters: ::std::option::Option<::std::vec::Vec<crate::types::Filter>>,
52 pub(crate) max_records: ::std::option::Option<i32>,
53 pub(crate) marker: ::std::option::Option<::std::string::String>,
54}
55impl DescribeIntegrationsInputBuilder {
56 /// <p>The unique identifier of the integration.</p>
57 pub fn integration_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
58 self.integration_identifier = ::std::option::Option::Some(input.into());
59 self
60 }
61 /// <p>The unique identifier of the integration.</p>
62 pub fn set_integration_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
63 self.integration_identifier = input;
64 self
65 }
66 /// <p>The unique identifier of the integration.</p>
67 pub fn get_integration_identifier(&self) -> &::std::option::Option<::std::string::String> {
68 &self.integration_identifier
69 }
70 /// Appends an item to `filters`.
71 ///
72 /// To override the contents of this collection use [`set_filters`](Self::set_filters).
73 ///
74 /// <p>A filter that specifies one or more resources to return.</p>
75 pub fn filters(mut self, input: crate::types::Filter) -> Self {
76 let mut v = self.filters.unwrap_or_default();
77 v.push(input);
78 self.filters = ::std::option::Option::Some(v);
79 self
80 }
81 /// <p>A filter that specifies one or more resources to return.</p>
82 pub fn set_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Filter>>) -> Self {
83 self.filters = input;
84 self
85 }
86 /// <p>A filter that specifies one or more resources to return.</p>
87 pub fn get_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Filter>> {
88 &self.filters
89 }
90 /// <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 that you can retrieve the remaining results.</p>
91 /// <p>Default: 100</p>
92 /// <p>Constraints: Minimum 20, maximum 100.</p>
93 pub fn max_records(mut self, input: i32) -> Self {
94 self.max_records = ::std::option::Option::Some(input);
95 self
96 }
97 /// <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 that you can retrieve the remaining results.</p>
98 /// <p>Default: 100</p>
99 /// <p>Constraints: Minimum 20, maximum 100.</p>
100 pub fn set_max_records(mut self, input: ::std::option::Option<i32>) -> Self {
101 self.max_records = input;
102 self
103 }
104 /// <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 that you can retrieve the remaining results.</p>
105 /// <p>Default: 100</p>
106 /// <p>Constraints: Minimum 20, maximum 100.</p>
107 pub fn get_max_records(&self) -> &::std::option::Option<i32> {
108 &self.max_records
109 }
110 /// <p>An optional pagination token provided by a previous <code>DescribeIntegrations</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>
111 pub fn marker(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
112 self.marker = ::std::option::Option::Some(input.into());
113 self
114 }
115 /// <p>An optional pagination token provided by a previous <code>DescribeIntegrations</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>
116 pub fn set_marker(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
117 self.marker = input;
118 self
119 }
120 /// <p>An optional pagination token provided by a previous <code>DescribeIntegrations</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>
121 pub fn get_marker(&self) -> &::std::option::Option<::std::string::String> {
122 &self.marker
123 }
124 /// Consumes the builder and constructs a [`DescribeIntegrationsInput`](crate::operation::describe_integrations::DescribeIntegrationsInput).
125 pub fn build(
126 self,
127 ) -> ::std::result::Result<crate::operation::describe_integrations::DescribeIntegrationsInput, ::aws_smithy_types::error::operation::BuildError>
128 {
129 ::std::result::Result::Ok(crate::operation::describe_integrations::DescribeIntegrationsInput {
130 integration_identifier: self.integration_identifier,
131 filters: self.filters,
132 max_records: self.max_records,
133 marker: self.marker,
134 })
135 }
136}