aws_sdk_dax/operation/describe_parameters/_describe_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 DescribeParametersInput {
6 /// <p>The name of the parameter group.</p>
7 pub parameter_group_name: ::std::option::Option<::std::string::String>,
8 /// <p>How the parameter is defined. For example, <code>system</code> denotes a system-defined parameter.</p>
9 pub source: ::std::option::Option<::std::string::String>,
10 /// <p>The maximum number of results to include in the response. If more results exist than the specified <code>MaxResults</code> value, a token is included in the response so that the remaining results can be retrieved.</p>
11 /// <p>The value for <code>MaxResults</code> must be between 20 and 100.</p>
12 pub max_results: ::std::option::Option<i32>,
13 /// <p>An optional token returned from a prior request. Use this token for pagination of results from this action. If this parameter is specified, the response includes only results beyond the token, up to the value specified by <code>MaxResults</code>.</p>
14 pub next_token: ::std::option::Option<::std::string::String>,
15}
16impl DescribeParametersInput {
17 /// <p>The name of the parameter group.</p>
18 pub fn parameter_group_name(&self) -> ::std::option::Option<&str> {
19 self.parameter_group_name.as_deref()
20 }
21 /// <p>How the parameter is defined. For example, <code>system</code> denotes a system-defined parameter.</p>
22 pub fn source(&self) -> ::std::option::Option<&str> {
23 self.source.as_deref()
24 }
25 /// <p>The maximum number of results to include in the response. If more results exist than the specified <code>MaxResults</code> value, a token is included in the response so that the remaining results can be retrieved.</p>
26 /// <p>The value for <code>MaxResults</code> must be between 20 and 100.</p>
27 pub fn max_results(&self) -> ::std::option::Option<i32> {
28 self.max_results
29 }
30 /// <p>An optional token returned from a prior request. Use this token for pagination of results from this action. If this parameter is specified, the response includes only results beyond the token, up to the value specified by <code>MaxResults</code>.</p>
31 pub fn next_token(&self) -> ::std::option::Option<&str> {
32 self.next_token.as_deref()
33 }
34}
35impl DescribeParametersInput {
36 /// Creates a new builder-style object to manufacture [`DescribeParametersInput`](crate::operation::describe_parameters::DescribeParametersInput).
37 pub fn builder() -> crate::operation::describe_parameters::builders::DescribeParametersInputBuilder {
38 crate::operation::describe_parameters::builders::DescribeParametersInputBuilder::default()
39 }
40}
41
42/// A builder for [`DescribeParametersInput`](crate::operation::describe_parameters::DescribeParametersInput).
43#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
44#[non_exhaustive]
45pub struct DescribeParametersInputBuilder {
46 pub(crate) parameter_group_name: ::std::option::Option<::std::string::String>,
47 pub(crate) source: ::std::option::Option<::std::string::String>,
48 pub(crate) max_results: ::std::option::Option<i32>,
49 pub(crate) next_token: ::std::option::Option<::std::string::String>,
50}
51impl DescribeParametersInputBuilder {
52 /// <p>The name of the parameter group.</p>
53 /// This field is required.
54 pub fn parameter_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
55 self.parameter_group_name = ::std::option::Option::Some(input.into());
56 self
57 }
58 /// <p>The name of the parameter group.</p>
59 pub fn set_parameter_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
60 self.parameter_group_name = input;
61 self
62 }
63 /// <p>The name of the parameter group.</p>
64 pub fn get_parameter_group_name(&self) -> &::std::option::Option<::std::string::String> {
65 &self.parameter_group_name
66 }
67 /// <p>How the parameter is defined. For example, <code>system</code> denotes a system-defined parameter.</p>
68 pub fn source(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
69 self.source = ::std::option::Option::Some(input.into());
70 self
71 }
72 /// <p>How the parameter is defined. For example, <code>system</code> denotes a system-defined parameter.</p>
73 pub fn set_source(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
74 self.source = input;
75 self
76 }
77 /// <p>How the parameter is defined. For example, <code>system</code> denotes a system-defined parameter.</p>
78 pub fn get_source(&self) -> &::std::option::Option<::std::string::String> {
79 &self.source
80 }
81 /// <p>The maximum number of results to include in the response. If more results exist than the specified <code>MaxResults</code> value, a token is included in the response so that the remaining results can be retrieved.</p>
82 /// <p>The value for <code>MaxResults</code> must be between 20 and 100.</p>
83 pub fn max_results(mut self, input: i32) -> Self {
84 self.max_results = ::std::option::Option::Some(input);
85 self
86 }
87 /// <p>The maximum number of results to include in the response. If more results exist than the specified <code>MaxResults</code> value, a token is included in the response so that the remaining results can be retrieved.</p>
88 /// <p>The value for <code>MaxResults</code> must be between 20 and 100.</p>
89 pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
90 self.max_results = input;
91 self
92 }
93 /// <p>The maximum number of results to include in the response. If more results exist than the specified <code>MaxResults</code> value, a token is included in the response so that the remaining results can be retrieved.</p>
94 /// <p>The value for <code>MaxResults</code> must be between 20 and 100.</p>
95 pub fn get_max_results(&self) -> &::std::option::Option<i32> {
96 &self.max_results
97 }
98 /// <p>An optional token returned from a prior request. Use this token for pagination of results from this action. If this parameter is specified, the response includes only results beyond the token, up to the value specified by <code>MaxResults</code>.</p>
99 pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
100 self.next_token = ::std::option::Option::Some(input.into());
101 self
102 }
103 /// <p>An optional token returned from a prior request. Use this token for pagination of results from this action. If this parameter is specified, the response includes only results beyond the token, up to the value specified by <code>MaxResults</code>.</p>
104 pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
105 self.next_token = input;
106 self
107 }
108 /// <p>An optional token returned from a prior request. Use this token for pagination of results from this action. If this parameter is specified, the response includes only results beyond the token, up to the value specified by <code>MaxResults</code>.</p>
109 pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
110 &self.next_token
111 }
112 /// Consumes the builder and constructs a [`DescribeParametersInput`](crate::operation::describe_parameters::DescribeParametersInput).
113 pub fn build(
114 self,
115 ) -> ::std::result::Result<crate::operation::describe_parameters::DescribeParametersInput, ::aws_smithy_types::error::operation::BuildError> {
116 ::std::result::Result::Ok(crate::operation::describe_parameters::DescribeParametersInput {
117 parameter_group_name: self.parameter_group_name,
118 source: self.source,
119 max_results: self.max_results,
120 next_token: self.next_token,
121 })
122 }
123}