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)]
|
5 + | pub struct GetParametersByPathInput {
|
6 + | /// <p>The hierarchy for the parameter. Hierarchies start with a forward slash (/). The hierarchy is the parameter name except the last part of the parameter. For the API call to succeed, the last part of the parameter name can't be in the path. A parameter name hierarchy can have a maximum of 15 levels. Here is an example of a hierarchy: <code>/Finance/Prod/IAD/WinServ2016/license33 </code></p>
|
7 + | pub path: ::std::option::Option<::std::string::String>,
|
8 + | /// <p>Retrieve all parameters within a hierarchy.</p><important>
|
9 + | /// <p>If a user has access to a path, then the user can access all levels of that path. For example, if a user has permission to access path <code>/a</code>, then the user can also access <code>/a/b</code>. Even if a user has explicitly been denied access in IAM for parameter <code>/a/b</code>, they can still call the GetParametersByPath API operation recursively for <code>/a</code> and view <code>/a/b</code>.</p>
|
10 + | /// </important>
|
11 + | pub recursive: ::std::option::Option<bool>,
|
12 + | /// <p>Filters to limit the request results.</p><note>
|
13 + | /// <p>The following <code>Key</code> values are supported for <code>GetParametersByPath</code>: <code>Type</code>, <code>KeyId</code>, and <code>Label</code>.</p>
|
14 + | /// <p>The following <code>Key</code> values aren't supported for <code>GetParametersByPath</code>: <code>tag</code>, <code>DataType</code>, <code>Name</code>, <code>Path</code>, and <code>Tier</code>.</p>
|
15 + | /// </note>
|
16 + | pub parameter_filters: ::std::option::Option<::std::vec::Vec<crate::types::ParameterStringFilter>>,
|
17 + | /// <p>Retrieve all parameters in a hierarchy with their value decrypted.</p>
|
18 + | pub with_decryption: ::std::option::Option<bool>,
|
19 + | /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
|
20 + | pub max_results: ::std::option::Option<i32>,
|
21 + | /// <p>A token to start the list. Use this token to get the next set of results.</p>
|
22 + | pub next_token: ::std::option::Option<::std::string::String>,
|
23 + | }
|
24 + | impl GetParametersByPathInput {
|
25 + | /// <p>The hierarchy for the parameter. Hierarchies start with a forward slash (/). The hierarchy is the parameter name except the last part of the parameter. For the API call to succeed, the last part of the parameter name can't be in the path. A parameter name hierarchy can have a maximum of 15 levels. Here is an example of a hierarchy: <code>/Finance/Prod/IAD/WinServ2016/license33 </code></p>
|
26 + | pub fn path(&self) -> ::std::option::Option<&str> {
|
27 + | self.path.as_deref()
|
28 + | }
|
29 + | /// <p>Retrieve all parameters within a hierarchy.</p><important>
|
30 + | /// <p>If a user has access to a path, then the user can access all levels of that path. For example, if a user has permission to access path <code>/a</code>, then the user can also access <code>/a/b</code>. Even if a user has explicitly been denied access in IAM for parameter <code>/a/b</code>, they can still call the GetParametersByPath API operation recursively for <code>/a</code> and view <code>/a/b</code>.</p>
|
31 + | /// </important>
|
32 + | pub fn recursive(&self) -> ::std::option::Option<bool> {
|
33 + | self.recursive
|
34 + | }
|
35 + | /// <p>Filters to limit the request results.</p><note>
|
36 + | /// <p>The following <code>Key</code> values are supported for <code>GetParametersByPath</code>: <code>Type</code>, <code>KeyId</code>, and <code>Label</code>.</p>
|
37 + | /// <p>The following <code>Key</code> values aren't supported for <code>GetParametersByPath</code>: <code>tag</code>, <code>DataType</code>, <code>Name</code>, <code>Path</code>, and <code>Tier</code>.</p>
|
38 + | /// </note>
|
39 + | ///
|
40 + | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.parameter_filters.is_none()`.
|
41 + | pub fn parameter_filters(&self) -> &[crate::types::ParameterStringFilter] {
|
42 + | self.parameter_filters.as_deref().unwrap_or_default()
|
43 + | }
|
44 + | /// <p>Retrieve all parameters in a hierarchy with their value decrypted.</p>
|
45 + | pub fn with_decryption(&self) -> ::std::option::Option<bool> {
|
46 + | self.with_decryption
|
47 + | }
|
48 + | /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
|
49 + | pub fn max_results(&self) -> ::std::option::Option<i32> {
|
50 + | self.max_results
|
51 + | }
|
52 + | /// <p>A token to start the list. Use this token to get the next set of results.</p>
|
53 + | pub fn next_token(&self) -> ::std::option::Option<&str> {
|
54 + | self.next_token.as_deref()
|
55 + | }
|
56 + | }
|
57 + | static GETPARAMETERSBYPATHINPUT_MEMBER_PATH: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
58 + | ::aws_smithy_schema::ShapeId::from_parts(
|
59 + | "com.amazonaws.ssm.synthetic#GetParametersByPathInput$Path",
|
60 + | "com.amazonaws.ssm.synthetic",
|
61 + | "GetParametersByPathInput",
|
62 + | ),
|
63 + | ::aws_smithy_schema::ShapeType::String,
|
64 + | "Path",
|
65 + | 0,
|
66 + | );
|
67 + | static GETPARAMETERSBYPATHINPUT_MEMBER_RECURSIVE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
68 + | ::aws_smithy_schema::ShapeId::from_parts(
|
69 + | "com.amazonaws.ssm.synthetic#GetParametersByPathInput$Recursive",
|
70 + | "com.amazonaws.ssm.synthetic",
|
71 + | "GetParametersByPathInput",
|
72 + | ),
|
73 + | ::aws_smithy_schema::ShapeType::Boolean,
|
74 + | "Recursive",
|
75 + | 1,
|
76 + | );
|
77 + | static GETPARAMETERSBYPATHINPUT_MEMBER_PARAMETER_FILTERS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
78 + | ::aws_smithy_schema::ShapeId::from_parts(
|
79 + | "com.amazonaws.ssm#ParameterStringFilterList$member",
|
80 + | "com.amazonaws.ssm",
|
81 + | "ParameterStringFilterList",
|
82 + | ),
|
83 + | ::aws_smithy_schema::ShapeType::Structure,
|
84 + | "member",
|
85 + | 0,
|
86 + | );
|
87 + | static GETPARAMETERSBYPATHINPUT_MEMBER_PARAMETER_FILTERS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
88 + | ::aws_smithy_schema::ShapeId::from_parts(
|
89 + | "com.amazonaws.ssm.synthetic#GetParametersByPathInput$ParameterFilters",
|
90 + | "com.amazonaws.ssm.synthetic",
|
91 + | "GetParametersByPathInput",
|
92 + | ),
|
93 + | ::aws_smithy_schema::ShapeType::List,
|
94 + | "ParameterFilters",
|
95 + | 2,
|
96 + | )
|
97 + | .with_list_member(&GETPARAMETERSBYPATHINPUT_MEMBER_PARAMETER_FILTERS_MEMBER);
|
98 + | static GETPARAMETERSBYPATHINPUT_MEMBER_WITH_DECRYPTION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
99 + | ::aws_smithy_schema::ShapeId::from_parts(
|
100 + | "com.amazonaws.ssm.synthetic#GetParametersByPathInput$WithDecryption",
|
101 + | "com.amazonaws.ssm.synthetic",
|
102 + | "GetParametersByPathInput",
|
103 + | ),
|
104 + | ::aws_smithy_schema::ShapeType::Boolean,
|
105 + | "WithDecryption",
|
106 + | 3,
|
107 + | );
|
108 + | static GETPARAMETERSBYPATHINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
109 + | ::aws_smithy_schema::ShapeId::from_parts(
|
110 + | "com.amazonaws.ssm.synthetic#GetParametersByPathInput$MaxResults",
|
111 + | "com.amazonaws.ssm.synthetic",
|
112 + | "GetParametersByPathInput",
|
113 + | ),
|
114 + | ::aws_smithy_schema::ShapeType::Integer,
|
115 + | "MaxResults",
|
116 + | 4,
|
117 + | );
|
118 + | static GETPARAMETERSBYPATHINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
119 + | ::aws_smithy_schema::ShapeId::from_parts(
|
120 + | "com.amazonaws.ssm.synthetic#GetParametersByPathInput$NextToken",
|
121 + | "com.amazonaws.ssm.synthetic",
|
122 + | "GetParametersByPathInput",
|
123 + | ),
|
124 + | ::aws_smithy_schema::ShapeType::String,
|
125 + | "NextToken",
|
126 + | 5,
|
127 + | );
|
128 + | static GETPARAMETERSBYPATHINPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
|
129 + | ::aws_smithy_schema::ShapeId::from_parts(
|
130 + | "com.amazonaws.ssm.synthetic#GetParametersByPathInput",
|
131 + | "com.amazonaws.ssm.synthetic",
|
132 + | "GetParametersByPathInput",
|
133 + | ),
|
134 + | ::aws_smithy_schema::ShapeType::Structure,
|
135 + | &[
|
136 + | &GETPARAMETERSBYPATHINPUT_MEMBER_PATH,
|
137 + | &GETPARAMETERSBYPATHINPUT_MEMBER_RECURSIVE,
|
138 + | &GETPARAMETERSBYPATHINPUT_MEMBER_PARAMETER_FILTERS,
|
139 + | &GETPARAMETERSBYPATHINPUT_MEMBER_WITH_DECRYPTION,
|
140 + | &GETPARAMETERSBYPATHINPUT_MEMBER_MAX_RESULTS,
|
141 + | &GETPARAMETERSBYPATHINPUT_MEMBER_NEXT_TOKEN,
|
142 + | ],
|
143 + | )
|
144 + | .with_payload_hint(::aws_smithy_schema::PayloadHint::NoStructPayload)
|
145 + | .with_original_name("GetParametersByPathRequest");
|
146 + | impl GetParametersByPathInput {
|
147 + | /// The schema for this shape.
|
148 + | pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &GETPARAMETERSBYPATHINPUT_SCHEMA;
|
149 + | }
|
150 + | impl ::aws_smithy_schema::serde::SerializableStruct for GetParametersByPathInput {
|
151 + | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
152 + | fn serialize_members(
|
153 + | &self,
|
154 + | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
155 + | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
156 + | if let Some(ref val) = self.path {
|
157 + | ser.write_string(&GETPARAMETERSBYPATHINPUT_MEMBER_PATH, val)?;
|
158 + | }
|
159 + | if let Some(ref val) = self.recursive {
|
160 + | ser.write_boolean(&GETPARAMETERSBYPATHINPUT_MEMBER_RECURSIVE, *val)?;
|
161 + | }
|
162 + | if let Some(ref val) = self.parameter_filters {
|
163 + | ser.write_list(
|
164 + | &GETPARAMETERSBYPATHINPUT_MEMBER_PARAMETER_FILTERS,
|
165 + | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
166 + | for item in val {
|
167 + | ser.write_struct(crate::types::ParameterStringFilter::SCHEMA, item)?;
|
168 + | }
|
169 + | Ok(())
|
170 + | },
|
171 + | )?;
|
172 + | }
|
173 + | if let Some(ref val) = self.with_decryption {
|
174 + | ser.write_boolean(&GETPARAMETERSBYPATHINPUT_MEMBER_WITH_DECRYPTION, *val)?;
|
175 + | }
|
176 + | if let Some(ref val) = self.max_results {
|
177 + | ser.write_integer(&GETPARAMETERSBYPATHINPUT_MEMBER_MAX_RESULTS, *val)?;
|
178 + | }
|
179 + | if let Some(ref val) = self.next_token {
|
180 + | ser.write_string(&GETPARAMETERSBYPATHINPUT_MEMBER_NEXT_TOKEN, val)?;
|
181 + | }
|
182 + | Ok(())
|
183 + | }
|
184 + | }
|
185 + | impl GetParametersByPathInput {
|
186 + | /// Deserializes this structure from a [`ShapeDeserializer`].
|
187 + | pub fn deserialize(
|
188 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
189 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
190 + | #[allow(unused_variables, unused_mut)]
|
191 + | let mut builder = Self::builder();
|
192 + | #[allow(
|
193 + | unused_variables,
|
194 + | unreachable_code,
|
195 + | clippy::single_match,
|
196 + | clippy::match_single_binding,
|
197 + | clippy::diverging_sub_expression
|
198 + | )]
|
199 + | deserializer.read_struct(&GETPARAMETERSBYPATHINPUT_SCHEMA, &mut |member, deser| {
|
200 + | match member.member_index() {
|
201 + | Some(0) => {
|
202 + | if deser.is_null() {
|
203 + | deser.read_null()?;
|
204 + | } else {
|
205 + | builder.path = Some(deser.read_string(member)?);
|
206 + | }
|
207 + | }
|
208 + | Some(1) => {
|
209 + | if deser.is_null() {
|
210 + | deser.read_null()?;
|
211 + | } else {
|
212 + | builder.recursive = Some(deser.read_boolean(member)?);
|
213 + | }
|
214 + | }
|
215 + | Some(2) => {
|
216 + | if deser.is_null() {
|
217 + | deser.read_null()?;
|
218 + | } else {
|
219 + | builder.parameter_filters = Some({
|
220 + | let mut container = Vec::new();
|
221 + | deser.read_list(member, &mut |deser| {
|
222 + | container.push(crate::types::ParameterStringFilter::deserialize(deser)?);
|
223 + | Ok(())
|
224 + | })?;
|
225 + | container
|
226 + | });
|
227 + | }
|
228 + | }
|
229 + | Some(3) => {
|
230 + | if deser.is_null() {
|
231 + | deser.read_null()?;
|
232 + | } else {
|
233 + | builder.with_decryption = Some(deser.read_boolean(member)?);
|
234 + | }
|
235 + | }
|
236 + | Some(4) => {
|
237 + | if deser.is_null() {
|
238 + | deser.read_null()?;
|
239 + | } else {
|
240 + | builder.max_results = Some(deser.read_integer(member)?);
|
241 + | }
|
242 + | }
|
243 + | Some(5) => {
|
244 + | if deser.is_null() {
|
245 + | deser.read_null()?;
|
246 + | } else {
|
247 + | builder.next_token = Some(deser.read_string(member)?);
|
248 + | }
|
249 + | }
|
250 + | _ => {}
|
251 + | }
|
252 + | Ok(())
|
253 + | })?;
|
254 + | builder.path = builder.path.or(Some(String::new()));
|
255 + | builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
|
256 + | }
|
257 + | }
|
258 + | impl GetParametersByPathInput {
|
259 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
260 + | pub fn deserialize_with_response(
|
261 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
262 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
263 + | _status: u16,
|
264 + | _body: &[u8],
|
265 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
266 + | Self::deserialize(deserializer)
|
267 + | }
|
268 + | }
|
269 + | impl GetParametersByPathInput {
|
270 + | /// Creates a new builder-style object to manufacture [`GetParametersByPathInput`](crate::operation::get_parameters_by_path::GetParametersByPathInput).
|
271 + | pub fn builder() -> crate::operation::get_parameters_by_path::builders::GetParametersByPathInputBuilder {
|
272 + | crate::operation::get_parameters_by_path::builders::GetParametersByPathInputBuilder::default()
|
273 + | }
|
274 + | }
|
275 + |
|
276 + | /// A builder for [`GetParametersByPathInput`](crate::operation::get_parameters_by_path::GetParametersByPathInput).
|
277 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
278 + | #[non_exhaustive]
|
279 + | pub struct GetParametersByPathInputBuilder {
|
280 + | pub(crate) path: ::std::option::Option<::std::string::String>,
|
281 + | pub(crate) recursive: ::std::option::Option<bool>,
|
282 + | pub(crate) parameter_filters: ::std::option::Option<::std::vec::Vec<crate::types::ParameterStringFilter>>,
|
283 + | pub(crate) with_decryption: ::std::option::Option<bool>,
|
284 + | pub(crate) max_results: ::std::option::Option<i32>,
|
285 + | pub(crate) next_token: ::std::option::Option<::std::string::String>,
|
286 + | }
|
287 + | impl GetParametersByPathInputBuilder {
|
288 + | /// <p>The hierarchy for the parameter. Hierarchies start with a forward slash (/). The hierarchy is the parameter name except the last part of the parameter. For the API call to succeed, the last part of the parameter name can't be in the path. A parameter name hierarchy can have a maximum of 15 levels. Here is an example of a hierarchy: <code>/Finance/Prod/IAD/WinServ2016/license33 </code></p>
|
289 + | /// This field is required.
|
290 + | pub fn path(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
291 + | self.path = ::std::option::Option::Some(input.into());
|
292 + | self
|
293 + | }
|
294 + | /// <p>The hierarchy for the parameter. Hierarchies start with a forward slash (/). The hierarchy is the parameter name except the last part of the parameter. For the API call to succeed, the last part of the parameter name can't be in the path. A parameter name hierarchy can have a maximum of 15 levels. Here is an example of a hierarchy: <code>/Finance/Prod/IAD/WinServ2016/license33 </code></p>
|
295 + | pub fn set_path(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
296 + | self.path = input;
|
297 + | self
|
298 + | }
|
299 + | /// <p>The hierarchy for the parameter. Hierarchies start with a forward slash (/). The hierarchy is the parameter name except the last part of the parameter. For the API call to succeed, the last part of the parameter name can't be in the path. A parameter name hierarchy can have a maximum of 15 levels. Here is an example of a hierarchy: <code>/Finance/Prod/IAD/WinServ2016/license33 </code></p>
|
300 + | pub fn get_path(&self) -> &::std::option::Option<::std::string::String> {
|
301 + | &self.path
|
302 + | }
|
303 + | /// <p>Retrieve all parameters within a hierarchy.</p><important>
|
304 + | /// <p>If a user has access to a path, then the user can access all levels of that path. For example, if a user has permission to access path <code>/a</code>, then the user can also access <code>/a/b</code>. Even if a user has explicitly been denied access in IAM for parameter <code>/a/b</code>, they can still call the GetParametersByPath API operation recursively for <code>/a</code> and view <code>/a/b</code>.</p>
|
305 + | /// </important>
|
306 + | pub fn recursive(mut self, input: bool) -> Self {
|
307 + | self.recursive = ::std::option::Option::Some(input);
|
308 + | self
|
309 + | }
|
310 + | /// <p>Retrieve all parameters within a hierarchy.</p><important>
|
311 + | /// <p>If a user has access to a path, then the user can access all levels of that path. For example, if a user has permission to access path <code>/a</code>, then the user can also access <code>/a/b</code>. Even if a user has explicitly been denied access in IAM for parameter <code>/a/b</code>, they can still call the GetParametersByPath API operation recursively for <code>/a</code> and view <code>/a/b</code>.</p>
|
312 + | /// </important>
|
313 + | pub fn set_recursive(mut self, input: ::std::option::Option<bool>) -> Self {
|
314 + | self.recursive = input;
|
315 + | self
|
316 + | }
|
317 + | /// <p>Retrieve all parameters within a hierarchy.</p><important>
|
318 + | /// <p>If a user has access to a path, then the user can access all levels of that path. For example, if a user has permission to access path <code>/a</code>, then the user can also access <code>/a/b</code>. Even if a user has explicitly been denied access in IAM for parameter <code>/a/b</code>, they can still call the GetParametersByPath API operation recursively for <code>/a</code> and view <code>/a/b</code>.</p>
|
319 + | /// </important>
|
320 + | pub fn get_recursive(&self) -> &::std::option::Option<bool> {
|
321 + | &self.recursive
|
322 + | }
|
323 + | /// Appends an item to `parameter_filters`.
|
324 + | ///
|
325 + | /// To override the contents of this collection use [`set_parameter_filters`](Self::set_parameter_filters).
|
326 + | ///
|
327 + | /// <p>Filters to limit the request results.</p><note>
|
328 + | /// <p>The following <code>Key</code> values are supported for <code>GetParametersByPath</code>: <code>Type</code>, <code>KeyId</code>, and <code>Label</code>.</p>
|
329 + | /// <p>The following <code>Key</code> values aren't supported for <code>GetParametersByPath</code>: <code>tag</code>, <code>DataType</code>, <code>Name</code>, <code>Path</code>, and <code>Tier</code>.</p>
|
330 + | /// </note>
|
331 + | pub fn parameter_filters(mut self, input: crate::types::ParameterStringFilter) -> Self {
|
332 + | let mut v = self.parameter_filters.unwrap_or_default();
|
333 + | v.push(input);
|
334 + | self.parameter_filters = ::std::option::Option::Some(v);
|
335 + | self
|
336 + | }
|
337 + | /// <p>Filters to limit the request results.</p><note>
|
338 + | /// <p>The following <code>Key</code> values are supported for <code>GetParametersByPath</code>: <code>Type</code>, <code>KeyId</code>, and <code>Label</code>.</p>
|
339 + | /// <p>The following <code>Key</code> values aren't supported for <code>GetParametersByPath</code>: <code>tag</code>, <code>DataType</code>, <code>Name</code>, <code>Path</code>, and <code>Tier</code>.</p>
|
340 + | /// </note>
|
341 + | pub fn set_parameter_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ParameterStringFilter>>) -> Self {
|
342 + | self.parameter_filters = input;
|
343 + | self
|
344 + | }
|
345 + | /// <p>Filters to limit the request results.</p><note>
|
346 + | /// <p>The following <code>Key</code> values are supported for <code>GetParametersByPath</code>: <code>Type</code>, <code>KeyId</code>, and <code>Label</code>.</p>
|
347 + | /// <p>The following <code>Key</code> values aren't supported for <code>GetParametersByPath</code>: <code>tag</code>, <code>DataType</code>, <code>Name</code>, <code>Path</code>, and <code>Tier</code>.</p>
|
348 + | /// </note>
|
349 + | pub fn get_parameter_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ParameterStringFilter>> {
|
350 + | &self.parameter_filters
|
351 + | }
|
352 + | /// <p>Retrieve all parameters in a hierarchy with their value decrypted.</p>
|
353 + | pub fn with_decryption(mut self, input: bool) -> Self {
|
354 + | self.with_decryption = ::std::option::Option::Some(input);
|
355 + | self
|
356 + | }
|
357 + | /// <p>Retrieve all parameters in a hierarchy with their value decrypted.</p>
|
358 + | pub fn set_with_decryption(mut self, input: ::std::option::Option<bool>) -> Self {
|
359 + | self.with_decryption = input;
|
360 + | self
|
361 + | }
|
362 + | /// <p>Retrieve all parameters in a hierarchy with their value decrypted.</p>
|
363 + | pub fn get_with_decryption(&self) -> &::std::option::Option<bool> {
|
364 + | &self.with_decryption
|
365 + | }
|
366 + | /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
|
367 + | pub fn max_results(mut self, input: i32) -> Self {
|
368 + | self.max_results = ::std::option::Option::Some(input);
|
369 + | self
|
370 + | }
|
371 + | /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
|
372 + | pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
|
373 + | self.max_results = input;
|
374 + | self
|
375 + | }
|
376 + | /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
|
377 + | pub fn get_max_results(&self) -> &::std::option::Option<i32> {
|
378 + | &self.max_results
|
379 + | }
|
380 + | /// <p>A token to start the list. Use this token to get the next set of results.</p>
|
381 + | pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
382 + | self.next_token = ::std::option::Option::Some(input.into());
|
383 + | self
|
384 + | }
|
385 + | /// <p>A token to start the list. Use this token to get the next set of results.</p>
|
386 + | pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
387 + | self.next_token = input;
|
388 + | self
|
389 + | }
|
390 + | /// <p>A token to start the list. Use this token to get the next set of results.</p>
|
391 + | pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
|
392 + | &self.next_token
|
393 + | }
|
394 + | /// Consumes the builder and constructs a [`GetParametersByPathInput`](crate::operation::get_parameters_by_path::GetParametersByPathInput).
|
395 + | pub fn build(
|
396 + | self,
|
397 + | ) -> ::std::result::Result<crate::operation::get_parameters_by_path::GetParametersByPathInput, ::aws_smithy_types::error::operation::BuildError>
|
398 + | {
|
399 + | ::std::result::Result::Ok(crate::operation::get_parameters_by_path::GetParametersByPathInput {
|
400 + | path: self.path,
|
401 + | recursive: self.recursive,
|
402 + | parameter_filters: self.parameter_filters,
|
403 + | with_decryption: self.with_decryption,
|
404 + | max_results: self.max_results,
|
405 + | next_token: self.next_token,
|
406 + | })
|
407 + | }
|
408 + | }
|