aws_sdk_neptune/operation/describe_db_cluster_parameter_groups/_describe_db_cluster_parameter_groups_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 DescribeDbClusterParameterGroupsInput {
6 /// <p>The name of a specific DB cluster parameter group to return details for.</p>
7 /// <p>Constraints:</p>
8 /// <ul>
9 /// <li>
10 /// <p>If supplied, must match the name of an existing DBClusterParameterGroup.</p></li>
11 /// </ul>
12 pub db_cluster_parameter_group_name: ::std::option::Option<::std::string::String>,
13 /// <p>This parameter is not currently supported.</p>
14 pub filters: ::std::option::Option<::std::vec::Vec<crate::types::Filter>>,
15 /// <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 the remaining results can be retrieved.</p>
16 /// <p>Default: 100</p>
17 /// <p>Constraints: Minimum 20, maximum 100.</p>
18 pub max_records: ::std::option::Option<i32>,
19 /// <p>An optional pagination token provided by a previous <code>DescribeDBClusterParameterGroups</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>
20 pub marker: ::std::option::Option<::std::string::String>,
21}
22impl DescribeDbClusterParameterGroupsInput {
23 /// <p>The name of a specific DB cluster parameter group to return details for.</p>
24 /// <p>Constraints:</p>
25 /// <ul>
26 /// <li>
27 /// <p>If supplied, must match the name of an existing DBClusterParameterGroup.</p></li>
28 /// </ul>
29 pub fn db_cluster_parameter_group_name(&self) -> ::std::option::Option<&str> {
30 self.db_cluster_parameter_group_name.as_deref()
31 }
32 /// <p>This parameter is not currently supported.</p>
33 ///
34 /// 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()`.
35 pub fn filters(&self) -> &[crate::types::Filter] {
36 self.filters.as_deref().unwrap_or_default()
37 }
38 /// <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 the remaining results can be retrieved.</p>
39 /// <p>Default: 100</p>
40 /// <p>Constraints: Minimum 20, maximum 100.</p>
41 pub fn max_records(&self) -> ::std::option::Option<i32> {
42 self.max_records
43 }
44 /// <p>An optional pagination token provided by a previous <code>DescribeDBClusterParameterGroups</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>
45 pub fn marker(&self) -> ::std::option::Option<&str> {
46 self.marker.as_deref()
47 }
48}
49impl DescribeDbClusterParameterGroupsInput {
50 /// Creates a new builder-style object to manufacture [`DescribeDbClusterParameterGroupsInput`](crate::operation::describe_db_cluster_parameter_groups::DescribeDbClusterParameterGroupsInput).
51 pub fn builder() -> crate::operation::describe_db_cluster_parameter_groups::builders::DescribeDbClusterParameterGroupsInputBuilder {
52 crate::operation::describe_db_cluster_parameter_groups::builders::DescribeDbClusterParameterGroupsInputBuilder::default()
53 }
54}
55
56/// A builder for [`DescribeDbClusterParameterGroupsInput`](crate::operation::describe_db_cluster_parameter_groups::DescribeDbClusterParameterGroupsInput).
57#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
58#[non_exhaustive]
59pub struct DescribeDbClusterParameterGroupsInputBuilder {
60 pub(crate) db_cluster_parameter_group_name: ::std::option::Option<::std::string::String>,
61 pub(crate) filters: ::std::option::Option<::std::vec::Vec<crate::types::Filter>>,
62 pub(crate) max_records: ::std::option::Option<i32>,
63 pub(crate) marker: ::std::option::Option<::std::string::String>,
64}
65impl DescribeDbClusterParameterGroupsInputBuilder {
66 /// <p>The name of a specific DB cluster parameter group to return details for.</p>
67 /// <p>Constraints:</p>
68 /// <ul>
69 /// <li>
70 /// <p>If supplied, must match the name of an existing DBClusterParameterGroup.</p></li>
71 /// </ul>
72 pub fn db_cluster_parameter_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
73 self.db_cluster_parameter_group_name = ::std::option::Option::Some(input.into());
74 self
75 }
76 /// <p>The name of a specific DB cluster parameter group to return details for.</p>
77 /// <p>Constraints:</p>
78 /// <ul>
79 /// <li>
80 /// <p>If supplied, must match the name of an existing DBClusterParameterGroup.</p></li>
81 /// </ul>
82 pub fn set_db_cluster_parameter_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
83 self.db_cluster_parameter_group_name = input;
84 self
85 }
86 /// <p>The name of a specific DB cluster parameter group to return details for.</p>
87 /// <p>Constraints:</p>
88 /// <ul>
89 /// <li>
90 /// <p>If supplied, must match the name of an existing DBClusterParameterGroup.</p></li>
91 /// </ul>
92 pub fn get_db_cluster_parameter_group_name(&self) -> &::std::option::Option<::std::string::String> {
93 &self.db_cluster_parameter_group_name
94 }
95 /// Appends an item to `filters`.
96 ///
97 /// To override the contents of this collection use [`set_filters`](Self::set_filters).
98 ///
99 /// <p>This parameter is not currently supported.</p>
100 pub fn filters(mut self, input: crate::types::Filter) -> Self {
101 let mut v = self.filters.unwrap_or_default();
102 v.push(input);
103 self.filters = ::std::option::Option::Some(v);
104 self
105 }
106 /// <p>This parameter is not currently supported.</p>
107 pub fn set_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Filter>>) -> Self {
108 self.filters = input;
109 self
110 }
111 /// <p>This parameter is not currently supported.</p>
112 pub fn get_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Filter>> {
113 &self.filters
114 }
115 /// <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 the remaining results can be retrieved.</p>
116 /// <p>Default: 100</p>
117 /// <p>Constraints: Minimum 20, maximum 100.</p>
118 pub fn max_records(mut self, input: i32) -> Self {
119 self.max_records = ::std::option::Option::Some(input);
120 self
121 }
122 /// <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 the remaining results can be retrieved.</p>
123 /// <p>Default: 100</p>
124 /// <p>Constraints: Minimum 20, maximum 100.</p>
125 pub fn set_max_records(mut self, input: ::std::option::Option<i32>) -> Self {
126 self.max_records = input;
127 self
128 }
129 /// <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 the remaining results can be retrieved.</p>
130 /// <p>Default: 100</p>
131 /// <p>Constraints: Minimum 20, maximum 100.</p>
132 pub fn get_max_records(&self) -> &::std::option::Option<i32> {
133 &self.max_records
134 }
135 /// <p>An optional pagination token provided by a previous <code>DescribeDBClusterParameterGroups</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>
136 pub fn marker(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
137 self.marker = ::std::option::Option::Some(input.into());
138 self
139 }
140 /// <p>An optional pagination token provided by a previous <code>DescribeDBClusterParameterGroups</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>
141 pub fn set_marker(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
142 self.marker = input;
143 self
144 }
145 /// <p>An optional pagination token provided by a previous <code>DescribeDBClusterParameterGroups</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>
146 pub fn get_marker(&self) -> &::std::option::Option<::std::string::String> {
147 &self.marker
148 }
149 /// Consumes the builder and constructs a [`DescribeDbClusterParameterGroupsInput`](crate::operation::describe_db_cluster_parameter_groups::DescribeDbClusterParameterGroupsInput).
150 pub fn build(
151 self,
152 ) -> ::std::result::Result<
153 crate::operation::describe_db_cluster_parameter_groups::DescribeDbClusterParameterGroupsInput,
154 ::aws_smithy_types::error::operation::BuildError,
155 > {
156 ::std::result::Result::Ok(
157 crate::operation::describe_db_cluster_parameter_groups::DescribeDbClusterParameterGroupsInput {
158 db_cluster_parameter_group_name: self.db_cluster_parameter_group_name,
159 filters: self.filters,
160 max_records: self.max_records,
161 marker: self.marker,
162 },
163 )
164 }
165}