1 + | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + |
|
3 + | /// <p>Status information about the association.</p>
|
4 + | #[non_exhaustive]
|
5 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
6 + | pub struct InstanceAssociationStatusInfo {
|
7 + | /// <p>The association ID.</p>
|
8 + | pub association_id: ::std::option::Option<::std::string::String>,
|
9 + | /// <p>The name of the association.</p>
|
10 + | pub name: ::std::option::Option<::std::string::String>,
|
11 + | /// <p>The association document versions.</p>
|
12 + | pub document_version: ::std::option::Option<::std::string::String>,
|
13 + | /// <p>The version of the association applied to the managed node.</p>
|
14 + | pub association_version: ::std::option::Option<::std::string::String>,
|
15 + | /// <p>The managed node ID where the association was created.</p>
|
16 + | pub instance_id: ::std::option::Option<::std::string::String>,
|
17 + | /// <p>The date the association ran.</p>
|
18 + | pub execution_date: ::std::option::Option<::aws_smithy_types::DateTime>,
|
19 + | /// <p>Status information about the association.</p>
|
20 + | pub status: ::std::option::Option<::std::string::String>,
|
21 + | /// <p>Detailed status information about the association.</p>
|
22 + | pub detailed_status: ::std::option::Option<::std::string::String>,
|
23 + | /// <p>Summary information about association execution.</p>
|
24 + | pub execution_summary: ::std::option::Option<::std::string::String>,
|
25 + | /// <p>An error code returned by the request to create the association.</p>
|
26 + | pub error_code: ::std::option::Option<::std::string::String>,
|
27 + | /// <p>A URL for an S3 bucket where you want to store the results of this request.</p>
|
28 + | pub output_url: ::std::option::Option<crate::types::InstanceAssociationOutputUrl>,
|
29 + | /// <p>The name of the association applied to the managed node.</p>
|
30 + | pub association_name: ::std::option::Option<::std::string::String>,
|
31 + | }
|
32 + | impl InstanceAssociationStatusInfo {
|
33 + | /// <p>The association ID.</p>
|
34 + | pub fn association_id(&self) -> ::std::option::Option<&str> {
|
35 + | self.association_id.as_deref()
|
36 + | }
|
37 + | /// <p>The name of the association.</p>
|
38 + | pub fn name(&self) -> ::std::option::Option<&str> {
|
39 + | self.name.as_deref()
|
40 + | }
|
41 + | /// <p>The association document versions.</p>
|
42 + | pub fn document_version(&self) -> ::std::option::Option<&str> {
|
43 + | self.document_version.as_deref()
|
44 + | }
|
45 + | /// <p>The version of the association applied to the managed node.</p>
|
46 + | pub fn association_version(&self) -> ::std::option::Option<&str> {
|
47 + | self.association_version.as_deref()
|
48 + | }
|
49 + | /// <p>The managed node ID where the association was created.</p>
|
50 + | pub fn instance_id(&self) -> ::std::option::Option<&str> {
|
51 + | self.instance_id.as_deref()
|
52 + | }
|
53 + | /// <p>The date the association ran.</p>
|
54 + | pub fn execution_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
55 + | self.execution_date.as_ref()
|
56 + | }
|
57 + | /// <p>Status information about the association.</p>
|
58 + | pub fn status(&self) -> ::std::option::Option<&str> {
|
59 + | self.status.as_deref()
|
60 + | }
|
61 + | /// <p>Detailed status information about the association.</p>
|
62 + | pub fn detailed_status(&self) -> ::std::option::Option<&str> {
|
63 + | self.detailed_status.as_deref()
|
64 + | }
|
65 + | /// <p>Summary information about association execution.</p>
|
66 + | pub fn execution_summary(&self) -> ::std::option::Option<&str> {
|
67 + | self.execution_summary.as_deref()
|
68 + | }
|
69 + | /// <p>An error code returned by the request to create the association.</p>
|
70 + | pub fn error_code(&self) -> ::std::option::Option<&str> {
|
71 + | self.error_code.as_deref()
|
72 + | }
|
73 + | /// <p>A URL for an S3 bucket where you want to store the results of this request.</p>
|
74 + | pub fn output_url(&self) -> ::std::option::Option<&crate::types::InstanceAssociationOutputUrl> {
|
75 + | self.output_url.as_ref()
|
76 + | }
|
77 + | /// <p>The name of the association applied to the managed node.</p>
|
78 + | pub fn association_name(&self) -> ::std::option::Option<&str> {
|
79 + | self.association_name.as_deref()
|
80 + | }
|
81 + | }
|
82 + | static INSTANCEASSOCIATIONSTATUSINFO_MEMBER_ASSOCIATION_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
83 + | ::aws_smithy_schema::ShapeId::from_parts(
|
84 + | "com.amazonaws.ssm#InstanceAssociationStatusInfo$AssociationId",
|
85 + | "com.amazonaws.ssm",
|
86 + | "InstanceAssociationStatusInfo",
|
87 + | ),
|
88 + | ::aws_smithy_schema::ShapeType::String,
|
89 + | "AssociationId",
|
90 + | 0,
|
91 + | );
|
92 + | static INSTANCEASSOCIATIONSTATUSINFO_MEMBER_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
93 + | ::aws_smithy_schema::ShapeId::from_parts(
|
94 + | "com.amazonaws.ssm#InstanceAssociationStatusInfo$Name",
|
95 + | "com.amazonaws.ssm",
|
96 + | "InstanceAssociationStatusInfo",
|
97 + | ),
|
98 + | ::aws_smithy_schema::ShapeType::String,
|
99 + | "Name",
|
100 + | 1,
|
101 + | );
|
102 + | static INSTANCEASSOCIATIONSTATUSINFO_MEMBER_DOCUMENT_VERSION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
103 + | ::aws_smithy_schema::ShapeId::from_parts(
|
104 + | "com.amazonaws.ssm#InstanceAssociationStatusInfo$DocumentVersion",
|
105 + | "com.amazonaws.ssm",
|
106 + | "InstanceAssociationStatusInfo",
|
107 + | ),
|
108 + | ::aws_smithy_schema::ShapeType::String,
|
109 + | "DocumentVersion",
|
110 + | 2,
|
111 + | );
|
112 + | static INSTANCEASSOCIATIONSTATUSINFO_MEMBER_ASSOCIATION_VERSION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
113 + | ::aws_smithy_schema::ShapeId::from_parts(
|
114 + | "com.amazonaws.ssm#InstanceAssociationStatusInfo$AssociationVersion",
|
115 + | "com.amazonaws.ssm",
|
116 + | "InstanceAssociationStatusInfo",
|
117 + | ),
|
118 + | ::aws_smithy_schema::ShapeType::String,
|
119 + | "AssociationVersion",
|
120 + | 3,
|
121 + | );
|
122 + | static INSTANCEASSOCIATIONSTATUSINFO_MEMBER_INSTANCE_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
123 + | ::aws_smithy_schema::ShapeId::from_parts(
|
124 + | "com.amazonaws.ssm#InstanceAssociationStatusInfo$InstanceId",
|
125 + | "com.amazonaws.ssm",
|
126 + | "InstanceAssociationStatusInfo",
|
127 + | ),
|
128 + | ::aws_smithy_schema::ShapeType::String,
|
129 + | "InstanceId",
|
130 + | 4,
|
131 + | );
|
132 + | static INSTANCEASSOCIATIONSTATUSINFO_MEMBER_EXECUTION_DATE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
133 + | ::aws_smithy_schema::ShapeId::from_parts(
|
134 + | "com.amazonaws.ssm#InstanceAssociationStatusInfo$ExecutionDate",
|
135 + | "com.amazonaws.ssm",
|
136 + | "InstanceAssociationStatusInfo",
|
137 + | ),
|
138 + | ::aws_smithy_schema::ShapeType::Timestamp,
|
139 + | "ExecutionDate",
|
140 + | 5,
|
141 + | );
|
142 + | static INSTANCEASSOCIATIONSTATUSINFO_MEMBER_STATUS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
143 + | ::aws_smithy_schema::ShapeId::from_parts(
|
144 + | "com.amazonaws.ssm#InstanceAssociationStatusInfo$Status",
|
145 + | "com.amazonaws.ssm",
|
146 + | "InstanceAssociationStatusInfo",
|
147 + | ),
|
148 + | ::aws_smithy_schema::ShapeType::String,
|
149 + | "Status",
|
150 + | 6,
|
151 + | );
|
152 + | static INSTANCEASSOCIATIONSTATUSINFO_MEMBER_DETAILED_STATUS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
153 + | ::aws_smithy_schema::ShapeId::from_parts(
|
154 + | "com.amazonaws.ssm#InstanceAssociationStatusInfo$DetailedStatus",
|
155 + | "com.amazonaws.ssm",
|
156 + | "InstanceAssociationStatusInfo",
|
157 + | ),
|
158 + | ::aws_smithy_schema::ShapeType::String,
|
159 + | "DetailedStatus",
|
160 + | 7,
|
161 + | );
|
162 + | static INSTANCEASSOCIATIONSTATUSINFO_MEMBER_EXECUTION_SUMMARY: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
163 + | ::aws_smithy_schema::ShapeId::from_parts(
|
164 + | "com.amazonaws.ssm#InstanceAssociationStatusInfo$ExecutionSummary",
|
165 + | "com.amazonaws.ssm",
|
166 + | "InstanceAssociationStatusInfo",
|
167 + | ),
|
168 + | ::aws_smithy_schema::ShapeType::String,
|
169 + | "ExecutionSummary",
|
170 + | 8,
|
171 + | );
|
172 + | static INSTANCEASSOCIATIONSTATUSINFO_MEMBER_ERROR_CODE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
173 + | ::aws_smithy_schema::ShapeId::from_parts(
|
174 + | "com.amazonaws.ssm#InstanceAssociationStatusInfo$ErrorCode",
|
175 + | "com.amazonaws.ssm",
|
176 + | "InstanceAssociationStatusInfo",
|
177 + | ),
|
178 + | ::aws_smithy_schema::ShapeType::String,
|
179 + | "ErrorCode",
|
180 + | 9,
|
181 + | );
|
182 + | static INSTANCEASSOCIATIONSTATUSINFO_MEMBER_OUTPUT_URL: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
183 + | ::aws_smithy_schema::ShapeId::from_parts(
|
184 + | "com.amazonaws.ssm#InstanceAssociationStatusInfo$OutputUrl",
|
185 + | "com.amazonaws.ssm",
|
186 + | "InstanceAssociationStatusInfo",
|
187 + | ),
|
188 + | ::aws_smithy_schema::ShapeType::Structure,
|
189 + | "OutputUrl",
|
190 + | 10,
|
191 + | );
|
192 + | static INSTANCEASSOCIATIONSTATUSINFO_MEMBER_ASSOCIATION_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
193 + | ::aws_smithy_schema::ShapeId::from_parts(
|
194 + | "com.amazonaws.ssm#InstanceAssociationStatusInfo$AssociationName",
|
195 + | "com.amazonaws.ssm",
|
196 + | "InstanceAssociationStatusInfo",
|
197 + | ),
|
198 + | ::aws_smithy_schema::ShapeType::String,
|
199 + | "AssociationName",
|
200 + | 11,
|
201 + | );
|
202 + | static INSTANCEASSOCIATIONSTATUSINFO_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
|
203 + | ::aws_smithy_schema::ShapeId::from_parts(
|
204 + | "com.amazonaws.ssm#InstanceAssociationStatusInfo",
|
205 + | "com.amazonaws.ssm",
|
206 + | "InstanceAssociationStatusInfo",
|
207 + | ),
|
208 + | ::aws_smithy_schema::ShapeType::Structure,
|
209 + | &[
|
210 + | &INSTANCEASSOCIATIONSTATUSINFO_MEMBER_ASSOCIATION_ID,
|
211 + | &INSTANCEASSOCIATIONSTATUSINFO_MEMBER_NAME,
|
212 + | &INSTANCEASSOCIATIONSTATUSINFO_MEMBER_DOCUMENT_VERSION,
|
213 + | &INSTANCEASSOCIATIONSTATUSINFO_MEMBER_ASSOCIATION_VERSION,
|
214 + | &INSTANCEASSOCIATIONSTATUSINFO_MEMBER_INSTANCE_ID,
|
215 + | &INSTANCEASSOCIATIONSTATUSINFO_MEMBER_EXECUTION_DATE,
|
216 + | &INSTANCEASSOCIATIONSTATUSINFO_MEMBER_STATUS,
|
217 + | &INSTANCEASSOCIATIONSTATUSINFO_MEMBER_DETAILED_STATUS,
|
218 + | &INSTANCEASSOCIATIONSTATUSINFO_MEMBER_EXECUTION_SUMMARY,
|
219 + | &INSTANCEASSOCIATIONSTATUSINFO_MEMBER_ERROR_CODE,
|
220 + | &INSTANCEASSOCIATIONSTATUSINFO_MEMBER_OUTPUT_URL,
|
221 + | &INSTANCEASSOCIATIONSTATUSINFO_MEMBER_ASSOCIATION_NAME,
|
222 + | ],
|
223 + | );
|
224 + | impl InstanceAssociationStatusInfo {
|
225 + | /// The schema for this shape.
|
226 + | pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &INSTANCEASSOCIATIONSTATUSINFO_SCHEMA;
|
227 + | }
|
228 + | impl ::aws_smithy_schema::serde::SerializableStruct for InstanceAssociationStatusInfo {
|
229 + | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
230 + | fn serialize_members(
|
231 + | &self,
|
232 + | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
233 + | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
234 + | if let Some(ref val) = self.association_id {
|
235 + | ser.write_string(&INSTANCEASSOCIATIONSTATUSINFO_MEMBER_ASSOCIATION_ID, val)?;
|
236 + | }
|
237 + | if let Some(ref val) = self.name {
|
238 + | ser.write_string(&INSTANCEASSOCIATIONSTATUSINFO_MEMBER_NAME, val)?;
|
239 + | }
|
240 + | if let Some(ref val) = self.document_version {
|
241 + | ser.write_string(&INSTANCEASSOCIATIONSTATUSINFO_MEMBER_DOCUMENT_VERSION, val)?;
|
242 + | }
|
243 + | if let Some(ref val) = self.association_version {
|
244 + | ser.write_string(&INSTANCEASSOCIATIONSTATUSINFO_MEMBER_ASSOCIATION_VERSION, val)?;
|
245 + | }
|
246 + | if let Some(ref val) = self.instance_id {
|
247 + | ser.write_string(&INSTANCEASSOCIATIONSTATUSINFO_MEMBER_INSTANCE_ID, val)?;
|
248 + | }
|
249 + | if let Some(ref val) = self.execution_date {
|
250 + | ser.write_timestamp(&INSTANCEASSOCIATIONSTATUSINFO_MEMBER_EXECUTION_DATE, val)?;
|
251 + | }
|
252 + | if let Some(ref val) = self.status {
|
253 + | ser.write_string(&INSTANCEASSOCIATIONSTATUSINFO_MEMBER_STATUS, val)?;
|
254 + | }
|
255 + | if let Some(ref val) = self.detailed_status {
|
256 + | ser.write_string(&INSTANCEASSOCIATIONSTATUSINFO_MEMBER_DETAILED_STATUS, val)?;
|
257 + | }
|
258 + | if let Some(ref val) = self.execution_summary {
|
259 + | ser.write_string(&INSTANCEASSOCIATIONSTATUSINFO_MEMBER_EXECUTION_SUMMARY, val)?;
|
260 + | }
|
261 + | if let Some(ref val) = self.error_code {
|
262 + | ser.write_string(&INSTANCEASSOCIATIONSTATUSINFO_MEMBER_ERROR_CODE, val)?;
|
263 + | }
|
264 + | if let Some(ref val) = self.output_url {
|
265 + | ser.write_struct(&INSTANCEASSOCIATIONSTATUSINFO_MEMBER_OUTPUT_URL, val)?;
|
266 + | }
|
267 + | if let Some(ref val) = self.association_name {
|
268 + | ser.write_string(&INSTANCEASSOCIATIONSTATUSINFO_MEMBER_ASSOCIATION_NAME, val)?;
|
269 + | }
|
270 + | Ok(())
|
271 + | }
|
272 + | }
|
273 + | impl InstanceAssociationStatusInfo {
|
274 + | /// Deserializes this structure from a [`ShapeDeserializer`].
|
275 + | pub fn deserialize(
|
276 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
277 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
278 + | #[allow(unused_variables, unused_mut)]
|
279 + | let mut builder = Self::builder();
|
280 + | #[allow(
|
281 + | unused_variables,
|
282 + | unreachable_code,
|
283 + | clippy::single_match,
|
284 + | clippy::match_single_binding,
|
285 + | clippy::diverging_sub_expression
|
286 + | )]
|
287 + | deserializer.read_struct(&INSTANCEASSOCIATIONSTATUSINFO_SCHEMA, &mut |member, deser| {
|
288 + | match member.member_index() {
|
289 + | Some(0) => {
|
290 + | if deser.is_null() {
|
291 + | deser.read_null()?;
|
292 + | } else {
|
293 + | builder.association_id = Some(deser.read_string(member)?);
|
294 + | }
|
295 + | }
|
296 + | Some(1) => {
|
297 + | if deser.is_null() {
|
298 + | deser.read_null()?;
|
299 + | } else {
|
300 + | builder.name = Some(deser.read_string(member)?);
|
301 + | }
|
302 + | }
|
303 + | Some(2) => {
|
304 + | if deser.is_null() {
|
305 + | deser.read_null()?;
|
306 + | } else {
|
307 + | builder.document_version = Some(deser.read_string(member)?);
|
308 + | }
|
309 + | }
|
310 + | Some(3) => {
|
311 + | if deser.is_null() {
|
312 + | deser.read_null()?;
|
313 + | } else {
|
314 + | builder.association_version = Some(deser.read_string(member)?);
|
315 + | }
|
316 + | }
|
317 + | Some(4) => {
|
318 + | if deser.is_null() {
|
319 + | deser.read_null()?;
|
320 + | } else {
|
321 + | builder.instance_id = Some(deser.read_string(member)?);
|
322 + | }
|
323 + | }
|
324 + | Some(5) => {
|
325 + | if deser.is_null() {
|
326 + | deser.read_null()?;
|
327 + | } else {
|
328 + | builder.execution_date = Some(deser.read_timestamp(member)?);
|
329 + | }
|
330 + | }
|
331 + | Some(6) => {
|
332 + | if deser.is_null() {
|
333 + | deser.read_null()?;
|
334 + | } else {
|
335 + | builder.status = Some(deser.read_string(member)?);
|
336 + | }
|
337 + | }
|
338 + | Some(7) => {
|
339 + | if deser.is_null() {
|
340 + | deser.read_null()?;
|
341 + | } else {
|
342 + | builder.detailed_status = Some(deser.read_string(member)?);
|
343 + | }
|
344 + | }
|
345 + | Some(8) => {
|
346 + | if deser.is_null() {
|
347 + | deser.read_null()?;
|
348 + | } else {
|
349 + | builder.execution_summary = Some(deser.read_string(member)?);
|
350 + | }
|
351 + | }
|
352 + | Some(9) => {
|
353 + | if deser.is_null() {
|
354 + | deser.read_null()?;
|
355 + | } else {
|
356 + | builder.error_code = Some(deser.read_string(member)?);
|
357 + | }
|
358 + | }
|
359 + | Some(10) => {
|
360 + | if deser.is_null() {
|
361 + | deser.read_null()?;
|
362 + | } else {
|
363 + | builder.output_url = Some(crate::types::InstanceAssociationOutputUrl::deserialize(deser)?);
|
364 + | }
|
365 + | }
|
366 + | Some(11) => {
|
367 + | if deser.is_null() {
|
368 + | deser.read_null()?;
|
369 + | } else {
|
370 + | builder.association_name = Some(deser.read_string(member)?);
|
371 + | }
|
372 + | }
|
373 + | _ => {}
|
374 + | }
|
375 + | Ok(())
|
376 + | })?;
|
377 + | Ok(builder.build())
|
378 + | }
|
379 + | }
|
380 + | impl InstanceAssociationStatusInfo {
|
381 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
382 + | pub fn deserialize_with_response(
|
383 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
384 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
385 + | _status: u16,
|
386 + | _body: &[u8],
|
387 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
388 + | Self::deserialize(deserializer)
|
389 + | }
|
390 + | }
|
391 + | impl InstanceAssociationStatusInfo {
|
392 + | /// Creates a new builder-style object to manufacture [`InstanceAssociationStatusInfo`](crate::types::InstanceAssociationStatusInfo).
|
393 + | pub fn builder() -> crate::types::builders::InstanceAssociationStatusInfoBuilder {
|
394 + | crate::types::builders::InstanceAssociationStatusInfoBuilder::default()
|
395 + | }
|
396 + | }
|
397 + |
|
398 + | /// A builder for [`InstanceAssociationStatusInfo`](crate::types::InstanceAssociationStatusInfo).
|
399 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
400 + | #[non_exhaustive]
|
401 + | pub struct InstanceAssociationStatusInfoBuilder {
|
402 + | pub(crate) association_id: ::std::option::Option<::std::string::String>,
|
403 + | pub(crate) name: ::std::option::Option<::std::string::String>,
|
404 + | pub(crate) document_version: ::std::option::Option<::std::string::String>,
|
405 + | pub(crate) association_version: ::std::option::Option<::std::string::String>,
|
406 + | pub(crate) instance_id: ::std::option::Option<::std::string::String>,
|
407 + | pub(crate) execution_date: ::std::option::Option<::aws_smithy_types::DateTime>,
|
408 + | pub(crate) status: ::std::option::Option<::std::string::String>,
|
409 + | pub(crate) detailed_status: ::std::option::Option<::std::string::String>,
|
410 + | pub(crate) execution_summary: ::std::option::Option<::std::string::String>,
|
411 + | pub(crate) error_code: ::std::option::Option<::std::string::String>,
|
412 + | pub(crate) output_url: ::std::option::Option<crate::types::InstanceAssociationOutputUrl>,
|
413 + | pub(crate) association_name: ::std::option::Option<::std::string::String>,
|
414 + | }
|
415 + | impl InstanceAssociationStatusInfoBuilder {
|
416 + | /// <p>The association ID.</p>
|
417 + | pub fn association_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
418 + | self.association_id = ::std::option::Option::Some(input.into());
|
419 + | self
|
420 + | }
|
421 + | /// <p>The association ID.</p>
|
422 + | pub fn set_association_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
423 + | self.association_id = input;
|
424 + | self
|
425 + | }
|
426 + | /// <p>The association ID.</p>
|
427 + | pub fn get_association_id(&self) -> &::std::option::Option<::std::string::String> {
|
428 + | &self.association_id
|
429 + | }
|
430 + | /// <p>The name of the association.</p>
|
431 + | pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
432 + | self.name = ::std::option::Option::Some(input.into());
|
433 + | self
|
434 + | }
|
435 + | /// <p>The name of the association.</p>
|
436 + | pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
437 + | self.name = input;
|
438 + | self
|
439 + | }
|
440 + | /// <p>The name of the association.</p>
|
441 + | pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
|
442 + | &self.name
|
443 + | }
|
444 + | /// <p>The association document versions.</p>
|
445 + | pub fn document_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
446 + | self.document_version = ::std::option::Option::Some(input.into());
|
447 + | self
|
448 + | }
|
449 + | /// <p>The association document versions.</p>
|
450 + | pub fn set_document_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
451 + | self.document_version = input;
|
452 + | self
|
453 + | }
|
454 + | /// <p>The association document versions.</p>
|
455 + | pub fn get_document_version(&self) -> &::std::option::Option<::std::string::String> {
|
456 + | &self.document_version
|
457 + | }
|
458 + | /// <p>The version of the association applied to the managed node.</p>
|
459 + | pub fn association_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
460 + | self.association_version = ::std::option::Option::Some(input.into());
|
461 + | self
|
462 + | }
|
463 + | /// <p>The version of the association applied to the managed node.</p>
|
464 + | pub fn set_association_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
465 + | self.association_version = input;
|
466 + | self
|
467 + | }
|
468 + | /// <p>The version of the association applied to the managed node.</p>
|
469 + | pub fn get_association_version(&self) -> &::std::option::Option<::std::string::String> {
|
470 + | &self.association_version
|
471 + | }
|
472 + | /// <p>The managed node ID where the association was created.</p>
|
473 + | pub fn instance_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
474 + | self.instance_id = ::std::option::Option::Some(input.into());
|
475 + | self
|
476 + | }
|
477 + | /// <p>The managed node ID where the association was created.</p>
|
478 + | pub fn set_instance_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
479 + | self.instance_id = input;
|
480 + | self
|
481 + | }
|
482 + | /// <p>The managed node ID where the association was created.</p>
|
483 + | pub fn get_instance_id(&self) -> &::std::option::Option<::std::string::String> {
|
484 + | &self.instance_id
|
485 + | }
|
486 + | /// <p>The date the association ran.</p>
|
487 + | pub fn execution_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
488 + | self.execution_date = ::std::option::Option::Some(input);
|
489 + | self
|
490 + | }
|
491 + | /// <p>The date the association ran.</p>
|
492 + | pub fn set_execution_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
493 + | self.execution_date = input;
|
494 + | self
|
495 + | }
|
496 + | /// <p>The date the association ran.</p>
|
497 + | pub fn get_execution_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
498 + | &self.execution_date
|
499 + | }
|
500 + | /// <p>Status information about the association.</p>
|
501 + | pub fn status(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
502 + | self.status = ::std::option::Option::Some(input.into());
|
503 + | self
|
504 + | }
|
505 + | /// <p>Status information about the association.</p>
|
506 + | pub fn set_status(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
507 + | self.status = input;
|
508 + | self
|
509 + | }
|
510 + | /// <p>Status information about the association.</p>
|
511 + | pub fn get_status(&self) -> &::std::option::Option<::std::string::String> {
|
512 + | &self.status
|
513 + | }
|
514 + | /// <p>Detailed status information about the association.</p>
|
515 + | pub fn detailed_status(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
516 + | self.detailed_status = ::std::option::Option::Some(input.into());
|
517 + | self
|
518 + | }
|
519 + | /// <p>Detailed status information about the association.</p>
|
520 + | pub fn set_detailed_status(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
521 + | self.detailed_status = input;
|
522 + | self
|
523 + | }
|
524 + | /// <p>Detailed status information about the association.</p>
|
525 + | pub fn get_detailed_status(&self) -> &::std::option::Option<::std::string::String> {
|
526 + | &self.detailed_status
|
527 + | }
|
528 + | /// <p>Summary information about association execution.</p>
|
529 + | pub fn execution_summary(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
530 + | self.execution_summary = ::std::option::Option::Some(input.into());
|
531 + | self
|
532 + | }
|
533 + | /// <p>Summary information about association execution.</p>
|
534 + | pub fn set_execution_summary(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
535 + | self.execution_summary = input;
|
536 + | self
|
537 + | }
|
538 + | /// <p>Summary information about association execution.</p>
|
539 + | pub fn get_execution_summary(&self) -> &::std::option::Option<::std::string::String> {
|
540 + | &self.execution_summary
|
541 + | }
|
542 + | /// <p>An error code returned by the request to create the association.</p>
|
543 + | pub fn error_code(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
544 + | self.error_code = ::std::option::Option::Some(input.into());
|
545 + | self
|
546 + | }
|
547 + | /// <p>An error code returned by the request to create the association.</p>
|
548 + | pub fn set_error_code(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
549 + | self.error_code = input;
|
550 + | self
|
551 + | }
|
552 + | /// <p>An error code returned by the request to create the association.</p>
|
553 + | pub fn get_error_code(&self) -> &::std::option::Option<::std::string::String> {
|
554 + | &self.error_code
|
555 + | }
|
556 + | /// <p>A URL for an S3 bucket where you want to store the results of this request.</p>
|
557 + | pub fn output_url(mut self, input: crate::types::InstanceAssociationOutputUrl) -> Self {
|
558 + | self.output_url = ::std::option::Option::Some(input);
|
559 + | self
|
560 + | }
|
561 + | /// <p>A URL for an S3 bucket where you want to store the results of this request.</p>
|
562 + | pub fn set_output_url(mut self, input: ::std::option::Option<crate::types::InstanceAssociationOutputUrl>) -> Self {
|
563 + | self.output_url = input;
|
564 + | self
|
565 + | }
|
566 + | /// <p>A URL for an S3 bucket where you want to store the results of this request.</p>
|
567 + | pub fn get_output_url(&self) -> &::std::option::Option<crate::types::InstanceAssociationOutputUrl> {
|
568 + | &self.output_url
|
569 + | }
|
570 + | /// <p>The name of the association applied to the managed node.</p>
|
571 + | pub fn association_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
572 + | self.association_name = ::std::option::Option::Some(input.into());
|
573 + | self
|
574 + | }
|
575 + | /// <p>The name of the association applied to the managed node.</p>
|
576 + | pub fn set_association_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
577 + | self.association_name = input;
|
578 + | self
|
579 + | }
|
580 + | /// <p>The name of the association applied to the managed node.</p>
|
581 + | pub fn get_association_name(&self) -> &::std::option::Option<::std::string::String> {
|
582 + | &self.association_name
|
583 + | }
|
584 + | /// Consumes the builder and constructs a [`InstanceAssociationStatusInfo`](crate::types::InstanceAssociationStatusInfo).
|
585 + | pub fn build(self) -> crate::types::InstanceAssociationStatusInfo {
|
586 + | crate::types::InstanceAssociationStatusInfo {
|
587 + | association_id: self.association_id,
|
588 + | name: self.name,
|
589 + | document_version: self.document_version,
|
590 + | association_version: self.association_version,
|
591 + | instance_id: self.instance_id,
|
592 + | execution_date: self.execution_date,
|
593 + | status: self.status,
|
594 + | detailed_status: self.detailed_status,
|
595 + | execution_summary: self.execution_summary,
|
596 + | error_code: self.error_code,
|
597 + | output_url: self.output_url,
|
598 + | association_name: self.association_name,
|
599 + | }
|
600 + | }
|
601 + | }
|