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 DescribeAssociationExecutionTargetsInput {
|
6 + | /// <p>The association ID that includes the execution for which you want to view details.</p>
|
7 + | pub association_id: ::std::option::Option<::std::string::String>,
|
8 + | /// <p>The execution ID for which you want to view details.</p>
|
9 + | pub execution_id: ::std::option::Option<::std::string::String>,
|
10 + | /// <p>Filters for the request. You can specify the following filters and values.</p>
|
11 + | /// <p>Status (EQUAL)</p>
|
12 + | /// <p>ResourceId (EQUAL)</p>
|
13 + | /// <p>ResourceType (EQUAL)</p>
|
14 + | pub filters: ::std::option::Option<::std::vec::Vec<crate::types::AssociationExecutionTargetsFilter>>,
|
15 + | /// <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>
|
16 + | pub max_results: ::std::option::Option<i32>,
|
17 + | /// <p>A token to start the list. Use this token to get the next set of results.</p>
|
18 + | pub next_token: ::std::option::Option<::std::string::String>,
|
19 + | }
|
20 + | impl DescribeAssociationExecutionTargetsInput {
|
21 + | /// <p>The association ID that includes the execution for which you want to view details.</p>
|
22 + | pub fn association_id(&self) -> ::std::option::Option<&str> {
|
23 + | self.association_id.as_deref()
|
24 + | }
|
25 + | /// <p>The execution ID for which you want to view details.</p>
|
26 + | pub fn execution_id(&self) -> ::std::option::Option<&str> {
|
27 + | self.execution_id.as_deref()
|
28 + | }
|
29 + | /// <p>Filters for the request. You can specify the following filters and values.</p>
|
30 + | /// <p>Status (EQUAL)</p>
|
31 + | /// <p>ResourceId (EQUAL)</p>
|
32 + | /// <p>ResourceType (EQUAL)</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::AssociationExecutionTargetsFilter] {
|
36 + | self.filters.as_deref().unwrap_or_default()
|
37 + | }
|
38 + | /// <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>
|
39 + | pub fn max_results(&self) -> ::std::option::Option<i32> {
|
40 + | self.max_results
|
41 + | }
|
42 + | /// <p>A token to start the list. Use this token to get the next set of results.</p>
|
43 + | pub fn next_token(&self) -> ::std::option::Option<&str> {
|
44 + | self.next_token.as_deref()
|
45 + | }
|
46 + | }
|
47 + | static DESCRIBEASSOCIATIONEXECUTIONTARGETSINPUT_MEMBER_ASSOCIATION_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
48 + | ::aws_smithy_schema::ShapeId::from_parts(
|
49 + | "com.amazonaws.ssm.synthetic#DescribeAssociationExecutionTargetsInput$AssociationId",
|
50 + | "com.amazonaws.ssm.synthetic",
|
51 + | "DescribeAssociationExecutionTargetsInput",
|
52 + | ),
|
53 + | ::aws_smithy_schema::ShapeType::String,
|
54 + | "AssociationId",
|
55 + | 0,
|
56 + | );
|
57 + | static DESCRIBEASSOCIATIONEXECUTIONTARGETSINPUT_MEMBER_EXECUTION_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
58 + | ::aws_smithy_schema::ShapeId::from_parts(
|
59 + | "com.amazonaws.ssm.synthetic#DescribeAssociationExecutionTargetsInput$ExecutionId",
|
60 + | "com.amazonaws.ssm.synthetic",
|
61 + | "DescribeAssociationExecutionTargetsInput",
|
62 + | ),
|
63 + | ::aws_smithy_schema::ShapeType::String,
|
64 + | "ExecutionId",
|
65 + | 1,
|
66 + | );
|
67 + | static DESCRIBEASSOCIATIONEXECUTIONTARGETSINPUT_MEMBER_FILTERS_MEMBER: ::aws_smithy_schema::Schema<'static> =
|
68 + | ::aws_smithy_schema::Schema::new_member(
|
69 + | ::aws_smithy_schema::ShapeId::from_parts(
|
70 + | "com.amazonaws.ssm#AssociationExecutionTargetsFilterList$member",
|
71 + | "com.amazonaws.ssm",
|
72 + | "AssociationExecutionTargetsFilterList",
|
73 + | ),
|
74 + | ::aws_smithy_schema::ShapeType::Structure,
|
75 + | "member",
|
76 + | 0,
|
77 + | )
|
78 + | .with_xml_name("AssociationExecutionTargetsFilter");
|
79 + | static DESCRIBEASSOCIATIONEXECUTIONTARGETSINPUT_MEMBER_FILTERS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
80 + | ::aws_smithy_schema::ShapeId::from_parts(
|
81 + | "com.amazonaws.ssm.synthetic#DescribeAssociationExecutionTargetsInput$Filters",
|
82 + | "com.amazonaws.ssm.synthetic",
|
83 + | "DescribeAssociationExecutionTargetsInput",
|
84 + | ),
|
85 + | ::aws_smithy_schema::ShapeType::List,
|
86 + | "Filters",
|
87 + | 2,
|
88 + | )
|
89 + | .with_list_member(&DESCRIBEASSOCIATIONEXECUTIONTARGETSINPUT_MEMBER_FILTERS_MEMBER);
|
90 + | static DESCRIBEASSOCIATIONEXECUTIONTARGETSINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
91 + | ::aws_smithy_schema::ShapeId::from_parts(
|
92 + | "com.amazonaws.ssm.synthetic#DescribeAssociationExecutionTargetsInput$MaxResults",
|
93 + | "com.amazonaws.ssm.synthetic",
|
94 + | "DescribeAssociationExecutionTargetsInput",
|
95 + | ),
|
96 + | ::aws_smithy_schema::ShapeType::Integer,
|
97 + | "MaxResults",
|
98 + | 3,
|
99 + | );
|
100 + | static DESCRIBEASSOCIATIONEXECUTIONTARGETSINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
101 + | ::aws_smithy_schema::ShapeId::from_parts(
|
102 + | "com.amazonaws.ssm.synthetic#DescribeAssociationExecutionTargetsInput$NextToken",
|
103 + | "com.amazonaws.ssm.synthetic",
|
104 + | "DescribeAssociationExecutionTargetsInput",
|
105 + | ),
|
106 + | ::aws_smithy_schema::ShapeType::String,
|
107 + | "NextToken",
|
108 + | 4,
|
109 + | );
|
110 + | static DESCRIBEASSOCIATIONEXECUTIONTARGETSINPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
|
111 + | ::aws_smithy_schema::ShapeId::from_parts(
|
112 + | "com.amazonaws.ssm.synthetic#DescribeAssociationExecutionTargetsInput",
|
113 + | "com.amazonaws.ssm.synthetic",
|
114 + | "DescribeAssociationExecutionTargetsInput",
|
115 + | ),
|
116 + | ::aws_smithy_schema::ShapeType::Structure,
|
117 + | &[
|
118 + | &DESCRIBEASSOCIATIONEXECUTIONTARGETSINPUT_MEMBER_ASSOCIATION_ID,
|
119 + | &DESCRIBEASSOCIATIONEXECUTIONTARGETSINPUT_MEMBER_EXECUTION_ID,
|
120 + | &DESCRIBEASSOCIATIONEXECUTIONTARGETSINPUT_MEMBER_FILTERS,
|
121 + | &DESCRIBEASSOCIATIONEXECUTIONTARGETSINPUT_MEMBER_MAX_RESULTS,
|
122 + | &DESCRIBEASSOCIATIONEXECUTIONTARGETSINPUT_MEMBER_NEXT_TOKEN,
|
123 + | ],
|
124 + | )
|
125 + | .with_payload_hint(::aws_smithy_schema::PayloadHint::NoStructPayload)
|
126 + | .with_original_name("DescribeAssociationExecutionTargetsRequest");
|
127 + | impl DescribeAssociationExecutionTargetsInput {
|
128 + | /// The schema for this shape.
|
129 + | pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &DESCRIBEASSOCIATIONEXECUTIONTARGETSINPUT_SCHEMA;
|
130 + | }
|
131 + | impl ::aws_smithy_schema::serde::SerializableStruct for DescribeAssociationExecutionTargetsInput {
|
132 + | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
133 + | fn serialize_members(
|
134 + | &self,
|
135 + | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
136 + | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
137 + | if let Some(ref val) = self.association_id {
|
138 + | ser.write_string(&DESCRIBEASSOCIATIONEXECUTIONTARGETSINPUT_MEMBER_ASSOCIATION_ID, val)?;
|
139 + | }
|
140 + | if let Some(ref val) = self.execution_id {
|
141 + | ser.write_string(&DESCRIBEASSOCIATIONEXECUTIONTARGETSINPUT_MEMBER_EXECUTION_ID, val)?;
|
142 + | }
|
143 + | if let Some(ref val) = self.filters {
|
144 + | ser.write_list(
|
145 + | &DESCRIBEASSOCIATIONEXECUTIONTARGETSINPUT_MEMBER_FILTERS,
|
146 + | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
147 + | for item in val {
|
148 + | ser.write_struct(crate::types::AssociationExecutionTargetsFilter::SCHEMA, item)?;
|
149 + | }
|
150 + | Ok(())
|
151 + | },
|
152 + | )?;
|
153 + | }
|
154 + | if let Some(ref val) = self.max_results {
|
155 + | ser.write_integer(&DESCRIBEASSOCIATIONEXECUTIONTARGETSINPUT_MEMBER_MAX_RESULTS, *val)?;
|
156 + | }
|
157 + | if let Some(ref val) = self.next_token {
|
158 + | ser.write_string(&DESCRIBEASSOCIATIONEXECUTIONTARGETSINPUT_MEMBER_NEXT_TOKEN, val)?;
|
159 + | }
|
160 + | Ok(())
|
161 + | }
|
162 + | }
|
163 + | impl DescribeAssociationExecutionTargetsInput {
|
164 + | /// Deserializes this structure from a [`ShapeDeserializer`].
|
165 + | pub fn deserialize(
|
166 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
167 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
168 + | #[allow(unused_variables, unused_mut)]
|
169 + | let mut builder = Self::builder();
|
170 + | #[allow(
|
171 + | unused_variables,
|
172 + | unreachable_code,
|
173 + | clippy::single_match,
|
174 + | clippy::match_single_binding,
|
175 + | clippy::diverging_sub_expression
|
176 + | )]
|
177 + | deserializer.read_struct(&DESCRIBEASSOCIATIONEXECUTIONTARGETSINPUT_SCHEMA, &mut |member, deser| {
|
178 + | match member.member_index() {
|
179 + | Some(0) => {
|
180 + | if deser.is_null() {
|
181 + | deser.read_null()?;
|
182 + | } else {
|
183 + | builder.association_id = Some(deser.read_string(member)?);
|
184 + | }
|
185 + | }
|
186 + | Some(1) => {
|
187 + | if deser.is_null() {
|
188 + | deser.read_null()?;
|
189 + | } else {
|
190 + | builder.execution_id = Some(deser.read_string(member)?);
|
191 + | }
|
192 + | }
|
193 + | Some(2) => {
|
194 + | if deser.is_null() {
|
195 + | deser.read_null()?;
|
196 + | } else {
|
197 + | builder.filters = Some({
|
198 + | let mut container = Vec::new();
|
199 + | deser.read_list(member, &mut |deser| {
|
200 + | container.push(crate::types::AssociationExecutionTargetsFilter::deserialize(deser)?);
|
201 + | Ok(())
|
202 + | })?;
|
203 + | container
|
204 + | });
|
205 + | }
|
206 + | }
|
207 + | Some(3) => {
|
208 + | if deser.is_null() {
|
209 + | deser.read_null()?;
|
210 + | } else {
|
211 + | builder.max_results = Some(deser.read_integer(member)?);
|
212 + | }
|
213 + | }
|
214 + | Some(4) => {
|
215 + | if deser.is_null() {
|
216 + | deser.read_null()?;
|
217 + | } else {
|
218 + | builder.next_token = Some(deser.read_string(member)?);
|
219 + | }
|
220 + | }
|
221 + | _ => {}
|
222 + | }
|
223 + | Ok(())
|
224 + | })?;
|
225 + | builder.association_id = builder.association_id.or(Some(String::new()));
|
226 + | builder.execution_id = builder.execution_id.or(Some(String::new()));
|
227 + | builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
|
228 + | }
|
229 + | }
|
230 + | impl DescribeAssociationExecutionTargetsInput {
|
231 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
232 + | pub fn deserialize_with_response(
|
233 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
234 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
235 + | _status: u16,
|
236 + | _body: &[u8],
|
237 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
238 + | Self::deserialize(deserializer)
|
239 + | }
|
240 + | }
|
241 + | impl DescribeAssociationExecutionTargetsInput {
|
242 + | /// Creates a new builder-style object to manufacture [`DescribeAssociationExecutionTargetsInput`](crate::operation::describe_association_execution_targets::DescribeAssociationExecutionTargetsInput).
|
243 + | pub fn builder() -> crate::operation::describe_association_execution_targets::builders::DescribeAssociationExecutionTargetsInputBuilder {
|
244 + | crate::operation::describe_association_execution_targets::builders::DescribeAssociationExecutionTargetsInputBuilder::default()
|
245 + | }
|
246 + | }
|
247 + |
|
248 + | /// A builder for [`DescribeAssociationExecutionTargetsInput`](crate::operation::describe_association_execution_targets::DescribeAssociationExecutionTargetsInput).
|
249 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
250 + | #[non_exhaustive]
|
251 + | pub struct DescribeAssociationExecutionTargetsInputBuilder {
|
252 + | pub(crate) association_id: ::std::option::Option<::std::string::String>,
|
253 + | pub(crate) execution_id: ::std::option::Option<::std::string::String>,
|
254 + | pub(crate) filters: ::std::option::Option<::std::vec::Vec<crate::types::AssociationExecutionTargetsFilter>>,
|
255 + | pub(crate) max_results: ::std::option::Option<i32>,
|
256 + | pub(crate) next_token: ::std::option::Option<::std::string::String>,
|
257 + | }
|
258 + | impl DescribeAssociationExecutionTargetsInputBuilder {
|
259 + | /// <p>The association ID that includes the execution for which you want to view details.</p>
|
260 + | /// This field is required.
|
261 + | pub fn association_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
262 + | self.association_id = ::std::option::Option::Some(input.into());
|
263 + | self
|
264 + | }
|
265 + | /// <p>The association ID that includes the execution for which you want to view details.</p>
|
266 + | pub fn set_association_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
267 + | self.association_id = input;
|
268 + | self
|
269 + | }
|
270 + | /// <p>The association ID that includes the execution for which you want to view details.</p>
|
271 + | pub fn get_association_id(&self) -> &::std::option::Option<::std::string::String> {
|
272 + | &self.association_id
|
273 + | }
|
274 + | /// <p>The execution ID for which you want to view details.</p>
|
275 + | /// This field is required.
|
276 + | pub fn execution_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
277 + | self.execution_id = ::std::option::Option::Some(input.into());
|
278 + | self
|
279 + | }
|
280 + | /// <p>The execution ID for which you want to view details.</p>
|
281 + | pub fn set_execution_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
282 + | self.execution_id = input;
|
283 + | self
|
284 + | }
|
285 + | /// <p>The execution ID for which you want to view details.</p>
|
286 + | pub fn get_execution_id(&self) -> &::std::option::Option<::std::string::String> {
|
287 + | &self.execution_id
|
288 + | }
|
289 + | /// Appends an item to `filters`.
|
290 + | ///
|
291 + | /// To override the contents of this collection use [`set_filters`](Self::set_filters).
|
292 + | ///
|
293 + | /// <p>Filters for the request. You can specify the following filters and values.</p>
|
294 + | /// <p>Status (EQUAL)</p>
|
295 + | /// <p>ResourceId (EQUAL)</p>
|
296 + | /// <p>ResourceType (EQUAL)</p>
|
297 + | pub fn filters(mut self, input: crate::types::AssociationExecutionTargetsFilter) -> Self {
|
298 + | let mut v = self.filters.unwrap_or_default();
|
299 + | v.push(input);
|
300 + | self.filters = ::std::option::Option::Some(v);
|
301 + | self
|
302 + | }
|
303 + | /// <p>Filters for the request. You can specify the following filters and values.</p>
|
304 + | /// <p>Status (EQUAL)</p>
|
305 + | /// <p>ResourceId (EQUAL)</p>
|
306 + | /// <p>ResourceType (EQUAL)</p>
|
307 + | pub fn set_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::AssociationExecutionTargetsFilter>>) -> Self {
|
308 + | self.filters = input;
|
309 + | self
|
310 + | }
|
311 + | /// <p>Filters for the request. You can specify the following filters and values.</p>
|
312 + | /// <p>Status (EQUAL)</p>
|
313 + | /// <p>ResourceId (EQUAL)</p>
|
314 + | /// <p>ResourceType (EQUAL)</p>
|
315 + | pub fn get_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::AssociationExecutionTargetsFilter>> {
|
316 + | &self.filters
|
317 + | }
|
318 + | /// <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>
|
319 + | pub fn max_results(mut self, input: i32) -> Self {
|
320 + | self.max_results = ::std::option::Option::Some(input);
|
321 + | self
|
322 + | }
|
323 + | /// <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>
|
324 + | pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
|
325 + | self.max_results = input;
|
326 + | self
|
327 + | }
|
328 + | /// <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>
|
329 + | pub fn get_max_results(&self) -> &::std::option::Option<i32> {
|
330 + | &self.max_results
|
331 + | }
|
332 + | /// <p>A token to start the list. Use this token to get the next set of results.</p>
|
333 + | pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
334 + | self.next_token = ::std::option::Option::Some(input.into());
|
335 + | self
|
336 + | }
|
337 + | /// <p>A token to start the list. Use this token to get the next set of results.</p>
|
338 + | pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
339 + | self.next_token = input;
|
340 + | self
|
341 + | }
|
342 + | /// <p>A token to start the list. Use this token to get the next set of results.</p>
|
343 + | pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
|
344 + | &self.next_token
|
345 + | }
|
346 + | /// Consumes the builder and constructs a [`DescribeAssociationExecutionTargetsInput`](crate::operation::describe_association_execution_targets::DescribeAssociationExecutionTargetsInput).
|
347 + | pub fn build(
|
348 + | self,
|
349 + | ) -> ::std::result::Result<
|
350 + | crate::operation::describe_association_execution_targets::DescribeAssociationExecutionTargetsInput,
|
351 + | ::aws_smithy_types::error::operation::BuildError,
|
352 + | > {
|
353 + | ::std::result::Result::Ok(
|
354 + | crate::operation::describe_association_execution_targets::DescribeAssociationExecutionTargetsInput {
|
355 + | association_id: self.association_id,
|
356 + | execution_id: self.execution_id,
|
357 + | filters: self.filters,
|
358 + | max_results: self.max_results,
|
359 + | next_token: self.next_token,
|
360 + | },
|
361 + | )
|
362 + | }
|
363 + | }
|