Skip to main content

aws_sdk_neptune/operation/describe_engine_default_cluster_parameters/
_describe_engine_default_cluster_parameters_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 DescribeEngineDefaultClusterParametersInput {
6    /// <p>The name of the DB cluster parameter group family to return engine parameter information for.</p>
7    pub db_parameter_group_family: ::std::option::Option<::std::string::String>,
8    /// <p>This parameter is not currently supported.</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 the remaining results can be retrieved.</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>DescribeEngineDefaultClusterParameters</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 DescribeEngineDefaultClusterParametersInput {
18    /// <p>The name of the DB cluster parameter group family to return engine parameter information for.</p>
19    pub fn db_parameter_group_family(&self) -> ::std::option::Option<&str> {
20        self.db_parameter_group_family.as_deref()
21    }
22    /// <p>This parameter is not currently supported.</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 the remaining results can be retrieved.</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>DescribeEngineDefaultClusterParameters</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 DescribeEngineDefaultClusterParametersInput {
40    /// Creates a new builder-style object to manufacture [`DescribeEngineDefaultClusterParametersInput`](crate::operation::describe_engine_default_cluster_parameters::DescribeEngineDefaultClusterParametersInput).
41    pub fn builder() -> crate::operation::describe_engine_default_cluster_parameters::builders::DescribeEngineDefaultClusterParametersInputBuilder {
42        crate::operation::describe_engine_default_cluster_parameters::builders::DescribeEngineDefaultClusterParametersInputBuilder::default()
43    }
44}
45
46/// A builder for [`DescribeEngineDefaultClusterParametersInput`](crate::operation::describe_engine_default_cluster_parameters::DescribeEngineDefaultClusterParametersInput).
47#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
48#[non_exhaustive]
49pub struct DescribeEngineDefaultClusterParametersInputBuilder {
50    pub(crate) db_parameter_group_family: ::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 DescribeEngineDefaultClusterParametersInputBuilder {
56    /// <p>The name of the DB cluster parameter group family to return engine parameter information for.</p>
57    /// This field is required.
58    pub fn db_parameter_group_family(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
59        self.db_parameter_group_family = ::std::option::Option::Some(input.into());
60        self
61    }
62    /// <p>The name of the DB cluster parameter group family to return engine parameter information for.</p>
63    pub fn set_db_parameter_group_family(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
64        self.db_parameter_group_family = input;
65        self
66    }
67    /// <p>The name of the DB cluster parameter group family to return engine parameter information for.</p>
68    pub fn get_db_parameter_group_family(&self) -> &::std::option::Option<::std::string::String> {
69        &self.db_parameter_group_family
70    }
71    /// Appends an item to `filters`.
72    ///
73    /// To override the contents of this collection use [`set_filters`](Self::set_filters).
74    ///
75    /// <p>This parameter is not currently supported.</p>
76    pub fn filters(mut self, input: crate::types::Filter) -> Self {
77        let mut v = self.filters.unwrap_or_default();
78        v.push(input);
79        self.filters = ::std::option::Option::Some(v);
80        self
81    }
82    /// <p>This parameter is not currently supported.</p>
83    pub fn set_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Filter>>) -> Self {
84        self.filters = input;
85        self
86    }
87    /// <p>This parameter is not currently supported.</p>
88    pub fn get_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Filter>> {
89        &self.filters
90    }
91    /// <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>
92    /// <p>Default: 100</p>
93    /// <p>Constraints: Minimum 20, maximum 100.</p>
94    pub fn max_records(mut self, input: i32) -> Self {
95        self.max_records = ::std::option::Option::Some(input);
96        self
97    }
98    /// <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>
99    /// <p>Default: 100</p>
100    /// <p>Constraints: Minimum 20, maximum 100.</p>
101    pub fn set_max_records(mut self, input: ::std::option::Option<i32>) -> Self {
102        self.max_records = input;
103        self
104    }
105    /// <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>
106    /// <p>Default: 100</p>
107    /// <p>Constraints: Minimum 20, maximum 100.</p>
108    pub fn get_max_records(&self) -> &::std::option::Option<i32> {
109        &self.max_records
110    }
111    /// <p>An optional pagination token provided by a previous <code>DescribeEngineDefaultClusterParameters</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>
112    pub fn marker(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
113        self.marker = ::std::option::Option::Some(input.into());
114        self
115    }
116    /// <p>An optional pagination token provided by a previous <code>DescribeEngineDefaultClusterParameters</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>
117    pub fn set_marker(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
118        self.marker = input;
119        self
120    }
121    /// <p>An optional pagination token provided by a previous <code>DescribeEngineDefaultClusterParameters</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>
122    pub fn get_marker(&self) -> &::std::option::Option<::std::string::String> {
123        &self.marker
124    }
125    /// Consumes the builder and constructs a [`DescribeEngineDefaultClusterParametersInput`](crate::operation::describe_engine_default_cluster_parameters::DescribeEngineDefaultClusterParametersInput).
126    pub fn build(
127        self,
128    ) -> ::std::result::Result<
129        crate::operation::describe_engine_default_cluster_parameters::DescribeEngineDefaultClusterParametersInput,
130        ::aws_smithy_types::error::operation::BuildError,
131    > {
132        ::std::result::Result::Ok(
133            crate::operation::describe_engine_default_cluster_parameters::DescribeEngineDefaultClusterParametersInput {
134                db_parameter_group_family: self.db_parameter_group_family,
135                filters: self.filters,
136                max_records: self.max_records,
137                marker: self.marker,
138            },
139        )
140    }
141}