AWS SDK

AWS SDK

rev. bbca34fa2eddb4be623fbbc6b6df1a2401de0029 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/ssm/src/types/_impact_type.rs

@@ -0,1 +0,114 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// When writing a match expression against `ImpactType`, it is important to ensure
           4  +
/// your code is forward-compatible. That is, if a match arm handles a case for a
           5  +
/// feature that is supported by the service but has not been represented as an enum
           6  +
/// variant in a current version of SDK, your code should continue to work when you
           7  +
/// upgrade SDK to a future version in which the enum does include a variant for that
           8  +
/// feature.
           9  +
///
          10  +
/// Here is an example of how you can make a match expression forward-compatible:
          11  +
///
          12  +
/// ```text
          13  +
/// # let impacttype = unimplemented!();
          14  +
/// match impacttype {
          15  +
///     ImpactType::Mutating => { /* ... */ },
          16  +
///     ImpactType::NonMutating => { /* ... */ },
          17  +
///     ImpactType::Undetermined => { /* ... */ },
          18  +
///     other @ _ if other.as_str() == "NewFeature" => { /* handles a case for `NewFeature` */ },
          19  +
///     _ => { /* ... */ },
          20  +
/// }
          21  +
/// ```
          22  +
/// The above code demonstrates that when `impacttype` represents
          23  +
/// `NewFeature`, the execution path will lead to the second last match arm,
          24  +
/// even though the enum does not contain a variant `ImpactType::NewFeature`
          25  +
/// in the current version of SDK. The reason is that the variable `other`,
          26  +
/// created by the `@` operator, is bound to
          27  +
/// `ImpactType::Unknown(UnknownVariantValue("NewFeature".to_owned()))`
          28  +
/// and calling `as_str` on it yields `"NewFeature"`.
          29  +
/// This match expression is forward-compatible when executed with a newer
          30  +
/// version of SDK where the variant `ImpactType::NewFeature` is defined.
          31  +
/// Specifically, when `impacttype` represents `NewFeature`,
          32  +
/// the execution path will hit the second last match arm as before by virtue of
          33  +
/// calling `as_str` on `ImpactType::NewFeature` also yielding `"NewFeature"`.
          34  +
///
          35  +
/// Explicitly matching on the `Unknown` variant should
          36  +
/// be avoided for two reasons:
          37  +
/// - The inner data `UnknownVariantValue` is opaque, and no further information can be extracted.
          38  +
/// - It might inadvertently shadow other intended match arms.
          39  +
///
          40  +
#[allow(missing_docs)] // documentation missing in model
          41  +
#[non_exhaustive]
          42  +
#[derive(
          43  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::Ord, ::std::cmp::PartialEq, ::std::cmp::PartialOrd, ::std::fmt::Debug, ::std::hash::Hash,
          44  +
)]
          45  +
pub enum ImpactType {
          46  +
    #[allow(missing_docs)] // documentation missing in model
          47  +
    Mutating,
          48  +
    #[allow(missing_docs)] // documentation missing in model
          49  +
    NonMutating,
          50  +
    #[allow(missing_docs)] // documentation missing in model
          51  +
    Undetermined,
          52  +
    /// `Unknown` contains new variants that have been added since this code was generated.
          53  +
    #[deprecated(note = "Don't directly match on `Unknown`. See the docs on this enum for the correct way to handle unknown variants.")]
          54  +
    Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue),
          55  +
}
          56  +
impl ::std::convert::From<&str> for ImpactType {
          57  +
    fn from(s: &str) -> Self {
          58  +
        match s {
          59  +
            "Mutating" => ImpactType::Mutating,
          60  +
            "NonMutating" => ImpactType::NonMutating,
          61  +
            "Undetermined" => ImpactType::Undetermined,
          62  +
            other => ImpactType::Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue(other.to_owned())),
          63  +
        }
          64  +
    }
          65  +
}
          66  +
impl ::std::str::FromStr for ImpactType {
          67  +
    type Err = ::std::convert::Infallible;
          68  +
          69  +
    fn from_str(s: &str) -> ::std::result::Result<Self, <Self as ::std::str::FromStr>::Err> {
          70  +
        ::std::result::Result::Ok(ImpactType::from(s))
          71  +
    }
          72  +
}
          73  +
impl ImpactType {
          74  +
    /// Returns the `&str` value of the enum member.
          75  +
    pub fn as_str(&self) -> &str {
          76  +
        match self {
          77  +
            ImpactType::Mutating => "Mutating",
          78  +
            ImpactType::NonMutating => "NonMutating",
          79  +
            ImpactType::Undetermined => "Undetermined",
          80  +
            ImpactType::Unknown(value) => value.as_str(),
          81  +
        }
          82  +
    }
          83  +
    /// Returns all the `&str` representations of the enum members.
          84  +
    pub const fn values() -> &'static [&'static str] {
          85  +
        &["Mutating", "NonMutating", "Undetermined"]
          86  +
    }
          87  +
}
          88  +
impl ::std::convert::AsRef<str> for ImpactType {
          89  +
    fn as_ref(&self) -> &str {
          90  +
        self.as_str()
          91  +
    }
          92  +
}
          93  +
impl ImpactType {
          94  +
    /// Parses the enum value while disallowing unknown variants.
          95  +
    ///
          96  +
    /// Unknown variants will result in an error.
          97  +
    pub fn try_parse(value: &str) -> ::std::result::Result<Self, crate::error::UnknownVariantError> {
          98  +
        match Self::from(value) {
          99  +
            #[allow(deprecated)]
         100  +
            Self::Unknown(_) => ::std::result::Result::Err(crate::error::UnknownVariantError::new(value)),
         101  +
            known => Ok(known),
         102  +
        }
         103  +
    }
         104  +
}
         105  +
impl ::std::fmt::Display for ImpactType {
         106  +
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
         107  +
        match self {
         108  +
            ImpactType::Mutating => write!(f, "Mutating"),
         109  +
            ImpactType::NonMutating => write!(f, "NonMutating"),
         110  +
            ImpactType::Undetermined => write!(f, "Undetermined"),
         111  +
            ImpactType::Unknown(value) => write!(f, "{value}"),
         112  +
        }
         113  +
    }
         114  +
}

tmp-codegen-diff/aws-sdk/sdk/ssm/src/types/_instance_aggregated_association_overview.rs

@@ -0,1 +0,225 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>Status information about the aggregated associations.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct InstanceAggregatedAssociationOverview {
           7  +
    /// <p>Detailed status information about the aggregated associations.</p>
           8  +
    pub detailed_status: ::std::option::Option<::std::string::String>,
           9  +
    /// <p>The number of associations for the managed nodes.</p>
          10  +
    pub instance_association_status_aggregated_count: ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
          11  +
}
          12  +
impl InstanceAggregatedAssociationOverview {
          13  +
    /// <p>Detailed status information about the aggregated associations.</p>
          14  +
    pub fn detailed_status(&self) -> ::std::option::Option<&str> {
          15  +
        self.detailed_status.as_deref()
          16  +
    }
          17  +
    /// <p>The number of associations for the managed nodes.</p>
          18  +
    pub fn instance_association_status_aggregated_count(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, i32>> {
          19  +
        self.instance_association_status_aggregated_count.as_ref()
          20  +
    }
          21  +
}
          22  +
static INSTANCEAGGREGATEDASSOCIATIONOVERVIEW_MEMBER_DETAILED_STATUS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          23  +
    ::aws_smithy_schema::ShapeId::from_parts(
          24  +
        "com.amazonaws.ssm#InstanceAggregatedAssociationOverview$DetailedStatus",
          25  +
        "com.amazonaws.ssm",
          26  +
        "InstanceAggregatedAssociationOverview",
          27  +
    ),
          28  +
    ::aws_smithy_schema::ShapeType::String,
          29  +
    "DetailedStatus",
          30  +
    0,
          31  +
);
          32  +
static INSTANCEAGGREGATEDASSOCIATIONOVERVIEW_MEMBER_INSTANCE_ASSOCIATION_STATUS_AGGREGATED_COUNT_KEY: ::aws_smithy_schema::Schema<'static> =
          33  +
    ::aws_smithy_schema::Schema::new_member(
          34  +
        ::aws_smithy_schema::ShapeId::from_parts(
          35  +
            "com.amazonaws.ssm#InstanceAssociationStatusAggregatedCount$key",
          36  +
            "com.amazonaws.ssm",
          37  +
            "InstanceAssociationStatusAggregatedCount",
          38  +
        ),
          39  +
        ::aws_smithy_schema::ShapeType::String,
          40  +
        "key",
          41  +
        0,
          42  +
    );
          43  +
static INSTANCEAGGREGATEDASSOCIATIONOVERVIEW_MEMBER_INSTANCE_ASSOCIATION_STATUS_AGGREGATED_COUNT_VALUE: ::aws_smithy_schema::Schema<'static> =
          44  +
    ::aws_smithy_schema::Schema::new_member(
          45  +
        ::aws_smithy_schema::ShapeId::from_parts(
          46  +
            "com.amazonaws.ssm#InstanceAssociationStatusAggregatedCount$value",
          47  +
            "com.amazonaws.ssm",
          48  +
            "InstanceAssociationStatusAggregatedCount",
          49  +
        ),
          50  +
        ::aws_smithy_schema::ShapeType::Integer,
          51  +
        "value",
          52  +
        1,
          53  +
    );
          54  +
static INSTANCEAGGREGATEDASSOCIATIONOVERVIEW_MEMBER_INSTANCE_ASSOCIATION_STATUS_AGGREGATED_COUNT: ::aws_smithy_schema::Schema<'static> =
          55  +
    ::aws_smithy_schema::Schema::new_member(
          56  +
        ::aws_smithy_schema::ShapeId::from_parts(
          57  +
            "com.amazonaws.ssm#InstanceAggregatedAssociationOverview$InstanceAssociationStatusAggregatedCount",
          58  +
            "com.amazonaws.ssm",
          59  +
            "InstanceAggregatedAssociationOverview",
          60  +
        ),
          61  +
        ::aws_smithy_schema::ShapeType::Map,
          62  +
        "InstanceAssociationStatusAggregatedCount",
          63  +
        1,
          64  +
    )
          65  +
    .with_map_members(
          66  +
        &INSTANCEAGGREGATEDASSOCIATIONOVERVIEW_MEMBER_INSTANCE_ASSOCIATION_STATUS_AGGREGATED_COUNT_KEY,
          67  +
        &INSTANCEAGGREGATEDASSOCIATIONOVERVIEW_MEMBER_INSTANCE_ASSOCIATION_STATUS_AGGREGATED_COUNT_VALUE,
          68  +
    );
          69  +
static INSTANCEAGGREGATEDASSOCIATIONOVERVIEW_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          70  +
    ::aws_smithy_schema::ShapeId::from_parts(
          71  +
        "com.amazonaws.ssm#InstanceAggregatedAssociationOverview",
          72  +
        "com.amazonaws.ssm",
          73  +
        "InstanceAggregatedAssociationOverview",
          74  +
    ),
          75  +
    ::aws_smithy_schema::ShapeType::Structure,
          76  +
    &[
          77  +
        &INSTANCEAGGREGATEDASSOCIATIONOVERVIEW_MEMBER_DETAILED_STATUS,
          78  +
        &INSTANCEAGGREGATEDASSOCIATIONOVERVIEW_MEMBER_INSTANCE_ASSOCIATION_STATUS_AGGREGATED_COUNT,
          79  +
    ],
          80  +
);
          81  +
impl InstanceAggregatedAssociationOverview {
          82  +
    /// The schema for this shape.
          83  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &INSTANCEAGGREGATEDASSOCIATIONOVERVIEW_SCHEMA;
          84  +
}
          85  +
impl ::aws_smithy_schema::serde::SerializableStruct for InstanceAggregatedAssociationOverview {
          86  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          87  +
    fn serialize_members(
          88  +
        &self,
          89  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          90  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          91  +
        if let Some(ref val) = self.detailed_status {
          92  +
            ser.write_string(&INSTANCEAGGREGATEDASSOCIATIONOVERVIEW_MEMBER_DETAILED_STATUS, val)?;
          93  +
        }
          94  +
        if let Some(ref val) = self.instance_association_status_aggregated_count {
          95  +
            ser.write_map(
          96  +
                &INSTANCEAGGREGATEDASSOCIATIONOVERVIEW_MEMBER_INSTANCE_ASSOCIATION_STATUS_AGGREGATED_COUNT,
          97  +
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
          98  +
                    for (key, value) in val {
          99  +
                        ser.write_string(&::aws_smithy_schema::prelude::STRING, key)?;
         100  +
                        ser.write_integer(&::aws_smithy_schema::prelude::INTEGER, *value)?;
         101  +
                    }
         102  +
                    Ok(())
         103  +
                },
         104  +
            )?;
         105  +
        }
         106  +
        Ok(())
         107  +
    }
         108  +
}
         109  +
impl InstanceAggregatedAssociationOverview {
         110  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
         111  +
    pub fn deserialize(
         112  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         113  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         114  +
        #[allow(unused_variables, unused_mut)]
         115  +
        let mut builder = Self::builder();
         116  +
        #[allow(
         117  +
            unused_variables,
         118  +
            unreachable_code,
         119  +
            clippy::single_match,
         120  +
            clippy::match_single_binding,
         121  +
            clippy::diverging_sub_expression
         122  +
        )]
         123  +
        deserializer.read_struct(&INSTANCEAGGREGATEDASSOCIATIONOVERVIEW_SCHEMA, &mut |member, deser| {
         124  +
            match member.member_index() {
         125  +
                Some(0) => {
         126  +
                    if deser.is_null() {
         127  +
                        deser.read_null()?;
         128  +
                    } else {
         129  +
                        builder.detailed_status = Some(deser.read_string(member)?);
         130  +
                    }
         131  +
                }
         132  +
                Some(1) => {
         133  +
                    if deser.is_null() {
         134  +
                        deser.read_null()?;
         135  +
                    } else {
         136  +
                        builder.instance_association_status_aggregated_count = Some({
         137  +
                            let mut container = std::collections::HashMap::new();
         138  +
                            deser.read_map(member, &mut |key, deser| {
         139  +
                                container.insert(key, deser.read_integer(&::aws_smithy_schema::prelude::INTEGER)?);
         140  +
                                Ok(())
         141  +
                            })?;
         142  +
                            container
         143  +
                        });
         144  +
                    }
         145  +
                }
         146  +
                _ => {}
         147  +
            }
         148  +
            Ok(())
         149  +
        })?;
         150  +
        Ok(builder.build())
         151  +
    }
         152  +
}
         153  +
impl InstanceAggregatedAssociationOverview {
         154  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         155  +
    pub fn deserialize_with_response(
         156  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         157  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         158  +
        _status: u16,
         159  +
        _body: &[u8],
         160  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         161  +
        Self::deserialize(deserializer)
         162  +
    }
         163  +
}
         164  +
impl InstanceAggregatedAssociationOverview {
         165  +
    /// Creates a new builder-style object to manufacture [`InstanceAggregatedAssociationOverview`](crate::types::InstanceAggregatedAssociationOverview).
         166  +
    pub fn builder() -> crate::types::builders::InstanceAggregatedAssociationOverviewBuilder {
         167  +
        crate::types::builders::InstanceAggregatedAssociationOverviewBuilder::default()
         168  +
    }
         169  +
}
         170  +
         171  +
/// A builder for [`InstanceAggregatedAssociationOverview`](crate::types::InstanceAggregatedAssociationOverview).
         172  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         173  +
#[non_exhaustive]
         174  +
pub struct InstanceAggregatedAssociationOverviewBuilder {
         175  +
    pub(crate) detailed_status: ::std::option::Option<::std::string::String>,
         176  +
    pub(crate) instance_association_status_aggregated_count: ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
         177  +
}
         178  +
impl InstanceAggregatedAssociationOverviewBuilder {
         179  +
    /// <p>Detailed status information about the aggregated associations.</p>
         180  +
    pub fn detailed_status(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         181  +
        self.detailed_status = ::std::option::Option::Some(input.into());
         182  +
        self
         183  +
    }
         184  +
    /// <p>Detailed status information about the aggregated associations.</p>
         185  +
    pub fn set_detailed_status(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         186  +
        self.detailed_status = input;
         187  +
        self
         188  +
    }
         189  +
    /// <p>Detailed status information about the aggregated associations.</p>
         190  +
    pub fn get_detailed_status(&self) -> &::std::option::Option<::std::string::String> {
         191  +
        &self.detailed_status
         192  +
    }
         193  +
    /// Adds a key-value pair to `instance_association_status_aggregated_count`.
         194  +
    ///
         195  +
    /// To override the contents of this collection use [`set_instance_association_status_aggregated_count`](Self::set_instance_association_status_aggregated_count).
         196  +
    ///
         197  +
    /// <p>The number of associations for the managed nodes.</p>
         198  +
    pub fn instance_association_status_aggregated_count(mut self, k: impl ::std::convert::Into<::std::string::String>, v: i32) -> Self {
         199  +
        let mut hash_map = self.instance_association_status_aggregated_count.unwrap_or_default();
         200  +
        hash_map.insert(k.into(), v);
         201  +
        self.instance_association_status_aggregated_count = ::std::option::Option::Some(hash_map);
         202  +
        self
         203  +
    }
         204  +
    /// <p>The number of associations for the managed nodes.</p>
         205  +
    pub fn set_instance_association_status_aggregated_count(
         206  +
        mut self,
         207  +
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
         208  +
    ) -> Self {
         209  +
        self.instance_association_status_aggregated_count = input;
         210  +
        self
         211  +
    }
         212  +
    /// <p>The number of associations for the managed nodes.</p>
         213  +
    pub fn get_instance_association_status_aggregated_count(
         214  +
        &self,
         215  +
    ) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, i32>> {
         216  +
        &self.instance_association_status_aggregated_count
         217  +
    }
         218  +
    /// Consumes the builder and constructs a [`InstanceAggregatedAssociationOverview`](crate::types::InstanceAggregatedAssociationOverview).
         219  +
    pub fn build(self) -> crate::types::InstanceAggregatedAssociationOverview {
         220  +
        crate::types::InstanceAggregatedAssociationOverview {
         221  +
            detailed_status: self.detailed_status,
         222  +
            instance_association_status_aggregated_count: self.instance_association_status_aggregated_count,
         223  +
        }
         224  +
    }
         225  +
}

tmp-codegen-diff/aws-sdk/sdk/ssm/src/types/_instance_association.rs

@@ -0,1 +0,253 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>One or more association documents on the managed node.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct InstanceAssociation {
           7  +
    /// <p>The association ID.</p>
           8  +
    pub association_id: ::std::option::Option<::std::string::String>,
           9  +
    /// <p>The managed node ID.</p>
          10  +
    pub instance_id: ::std::option::Option<::std::string::String>,
          11  +
    /// <p>The content of the association document for the managed nodes.</p>
          12  +
    pub content: ::std::option::Option<::std::string::String>,
          13  +
    /// <p>Version information for the association on the managed node.</p>
          14  +
    pub association_version: ::std::option::Option<::std::string::String>,
          15  +
}
          16  +
impl InstanceAssociation {
          17  +
    /// <p>The association ID.</p>
          18  +
    pub fn association_id(&self) -> ::std::option::Option<&str> {
          19  +
        self.association_id.as_deref()
          20  +
    }
          21  +
    /// <p>The managed node ID.</p>
          22  +
    pub fn instance_id(&self) -> ::std::option::Option<&str> {
          23  +
        self.instance_id.as_deref()
          24  +
    }
          25  +
    /// <p>The content of the association document for the managed nodes.</p>
          26  +
    pub fn content(&self) -> ::std::option::Option<&str> {
          27  +
        self.content.as_deref()
          28  +
    }
          29  +
    /// <p>Version information for the association on the managed node.</p>
          30  +
    pub fn association_version(&self) -> ::std::option::Option<&str> {
          31  +
        self.association_version.as_deref()
          32  +
    }
          33  +
}
          34  +
static INSTANCEASSOCIATION_MEMBER_ASSOCIATION_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          35  +
    ::aws_smithy_schema::ShapeId::from_parts(
          36  +
        "com.amazonaws.ssm#InstanceAssociation$AssociationId",
          37  +
        "com.amazonaws.ssm",
          38  +
        "InstanceAssociation",
          39  +
    ),
          40  +
    ::aws_smithy_schema::ShapeType::String,
          41  +
    "AssociationId",
          42  +
    0,
          43  +
);
          44  +
static INSTANCEASSOCIATION_MEMBER_INSTANCE_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          45  +
    ::aws_smithy_schema::ShapeId::from_parts(
          46  +
        "com.amazonaws.ssm#InstanceAssociation$InstanceId",
          47  +
        "com.amazonaws.ssm",
          48  +
        "InstanceAssociation",
          49  +
    ),
          50  +
    ::aws_smithy_schema::ShapeType::String,
          51  +
    "InstanceId",
          52  +
    1,
          53  +
);
          54  +
static INSTANCEASSOCIATION_MEMBER_CONTENT: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          55  +
    ::aws_smithy_schema::ShapeId::from_parts(
          56  +
        "com.amazonaws.ssm#InstanceAssociation$Content",
          57  +
        "com.amazonaws.ssm",
          58  +
        "InstanceAssociation",
          59  +
    ),
          60  +
    ::aws_smithy_schema::ShapeType::String,
          61  +
    "Content",
          62  +
    2,
          63  +
);
          64  +
static INSTANCEASSOCIATION_MEMBER_ASSOCIATION_VERSION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          65  +
    ::aws_smithy_schema::ShapeId::from_parts(
          66  +
        "com.amazonaws.ssm#InstanceAssociation$AssociationVersion",
          67  +
        "com.amazonaws.ssm",
          68  +
        "InstanceAssociation",
          69  +
    ),
          70  +
    ::aws_smithy_schema::ShapeType::String,
          71  +
    "AssociationVersion",
          72  +
    3,
          73  +
);
          74  +
static INSTANCEASSOCIATION_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          75  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#InstanceAssociation", "com.amazonaws.ssm", "InstanceAssociation"),
          76  +
    ::aws_smithy_schema::ShapeType::Structure,
          77  +
    &[
          78  +
        &INSTANCEASSOCIATION_MEMBER_ASSOCIATION_ID,
          79  +
        &INSTANCEASSOCIATION_MEMBER_INSTANCE_ID,
          80  +
        &INSTANCEASSOCIATION_MEMBER_CONTENT,
          81  +
        &INSTANCEASSOCIATION_MEMBER_ASSOCIATION_VERSION,
          82  +
    ],
          83  +
);
          84  +
impl InstanceAssociation {
          85  +
    /// The schema for this shape.
          86  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &INSTANCEASSOCIATION_SCHEMA;
          87  +
}
          88  +
impl ::aws_smithy_schema::serde::SerializableStruct for InstanceAssociation {
          89  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          90  +
    fn serialize_members(
          91  +
        &self,
          92  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          93  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          94  +
        if let Some(ref val) = self.association_id {
          95  +
            ser.write_string(&INSTANCEASSOCIATION_MEMBER_ASSOCIATION_ID, val)?;
          96  +
        }
          97  +
        if let Some(ref val) = self.instance_id {
          98  +
            ser.write_string(&INSTANCEASSOCIATION_MEMBER_INSTANCE_ID, val)?;
          99  +
        }
         100  +
        if let Some(ref val) = self.content {
         101  +
            ser.write_string(&INSTANCEASSOCIATION_MEMBER_CONTENT, val)?;
         102  +
        }
         103  +
        if let Some(ref val) = self.association_version {
         104  +
            ser.write_string(&INSTANCEASSOCIATION_MEMBER_ASSOCIATION_VERSION, val)?;
         105  +
        }
         106  +
        Ok(())
         107  +
    }
         108  +
}
         109  +
impl InstanceAssociation {
         110  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
         111  +
    pub fn deserialize(
         112  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         113  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         114  +
        #[allow(unused_variables, unused_mut)]
         115  +
        let mut builder = Self::builder();
         116  +
        #[allow(
         117  +
            unused_variables,
         118  +
            unreachable_code,
         119  +
            clippy::single_match,
         120  +
            clippy::match_single_binding,
         121  +
            clippy::diverging_sub_expression
         122  +
        )]
         123  +
        deserializer.read_struct(&INSTANCEASSOCIATION_SCHEMA, &mut |member, deser| {
         124  +
            match member.member_index() {
         125  +
                Some(0) => {
         126  +
                    if deser.is_null() {
         127  +
                        deser.read_null()?;
         128  +
                    } else {
         129  +
                        builder.association_id = Some(deser.read_string(member)?);
         130  +
                    }
         131  +
                }
         132  +
                Some(1) => {
         133  +
                    if deser.is_null() {
         134  +
                        deser.read_null()?;
         135  +
                    } else {
         136  +
                        builder.instance_id = Some(deser.read_string(member)?);
         137  +
                    }
         138  +
                }
         139  +
                Some(2) => {
         140  +
                    if deser.is_null() {
         141  +
                        deser.read_null()?;
         142  +
                    } else {
         143  +
                        builder.content = Some(deser.read_string(member)?);
         144  +
                    }
         145  +
                }
         146  +
                Some(3) => {
         147  +
                    if deser.is_null() {
         148  +
                        deser.read_null()?;
         149  +
                    } else {
         150  +
                        builder.association_version = Some(deser.read_string(member)?);
         151  +
                    }
         152  +
                }
         153  +
                _ => {}
         154  +
            }
         155  +
            Ok(())
         156  +
        })?;
         157  +
        Ok(builder.build())
         158  +
    }
         159  +
}
         160  +
impl InstanceAssociation {
         161  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         162  +
    pub fn deserialize_with_response(
         163  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         164  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         165  +
        _status: u16,
         166  +
        _body: &[u8],
         167  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         168  +
        Self::deserialize(deserializer)
         169  +
    }
         170  +
}
         171  +
impl InstanceAssociation {
         172  +
    /// Creates a new builder-style object to manufacture [`InstanceAssociation`](crate::types::InstanceAssociation).
         173  +
    pub fn builder() -> crate::types::builders::InstanceAssociationBuilder {
         174  +
        crate::types::builders::InstanceAssociationBuilder::default()
         175  +
    }
         176  +
}
         177  +
         178  +
/// A builder for [`InstanceAssociation`](crate::types::InstanceAssociation).
         179  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         180  +
#[non_exhaustive]
         181  +
pub struct InstanceAssociationBuilder {
         182  +
    pub(crate) association_id: ::std::option::Option<::std::string::String>,
         183  +
    pub(crate) instance_id: ::std::option::Option<::std::string::String>,
         184  +
    pub(crate) content: ::std::option::Option<::std::string::String>,
         185  +
    pub(crate) association_version: ::std::option::Option<::std::string::String>,
         186  +
}
         187  +
impl InstanceAssociationBuilder {
         188  +
    /// <p>The association ID.</p>
         189  +
    pub fn association_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         190  +
        self.association_id = ::std::option::Option::Some(input.into());
         191  +
        self
         192  +
    }
         193  +
    /// <p>The association ID.</p>
         194  +
    pub fn set_association_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         195  +
        self.association_id = input;
         196  +
        self
         197  +
    }
         198  +
    /// <p>The association ID.</p>
         199  +
    pub fn get_association_id(&self) -> &::std::option::Option<::std::string::String> {
         200  +
        &self.association_id
         201  +
    }
         202  +
    /// <p>The managed node ID.</p>
         203  +
    pub fn instance_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         204  +
        self.instance_id = ::std::option::Option::Some(input.into());
         205  +
        self
         206  +
    }
         207  +
    /// <p>The managed node ID.</p>
         208  +
    pub fn set_instance_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         209  +
        self.instance_id = input;
         210  +
        self
         211  +
    }
         212  +
    /// <p>The managed node ID.</p>
         213  +
    pub fn get_instance_id(&self) -> &::std::option::Option<::std::string::String> {
         214  +
        &self.instance_id
         215  +
    }
         216  +
    /// <p>The content of the association document for the managed nodes.</p>
         217  +
    pub fn content(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         218  +
        self.content = ::std::option::Option::Some(input.into());
         219  +
        self
         220  +
    }
         221  +
    /// <p>The content of the association document for the managed nodes.</p>
         222  +
    pub fn set_content(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         223  +
        self.content = input;
         224  +
        self
         225  +
    }
         226  +
    /// <p>The content of the association document for the managed nodes.</p>
         227  +
    pub fn get_content(&self) -> &::std::option::Option<::std::string::String> {
         228  +
        &self.content
         229  +
    }
         230  +
    /// <p>Version information for the association on the managed node.</p>
         231  +
    pub fn association_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         232  +
        self.association_version = ::std::option::Option::Some(input.into());
         233  +
        self
         234  +
    }
         235  +
    /// <p>Version information for the association on the managed node.</p>
         236  +
    pub fn set_association_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         237  +
        self.association_version = input;
         238  +
        self
         239  +
    }
         240  +
    /// <p>Version information for the association on the managed node.</p>
         241  +
    pub fn get_association_version(&self) -> &::std::option::Option<::std::string::String> {
         242  +
        &self.association_version
         243  +
    }
         244  +
    /// Consumes the builder and constructs a [`InstanceAssociation`](crate::types::InstanceAssociation).
         245  +
    pub fn build(self) -> crate::types::InstanceAssociation {
         246  +
        crate::types::InstanceAssociation {
         247  +
            association_id: self.association_id,
         248  +
            instance_id: self.instance_id,
         249  +
            content: self.content,
         250  +
            association_version: self.association_version,
         251  +
        }
         252  +
    }
         253  +
}

tmp-codegen-diff/aws-sdk/sdk/ssm/src/types/_instance_association_output_location.rs

@@ -0,1 +0,127 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>An S3 bucket where you want to store the results of this request.</p>
           4  +
/// <p>For the minimal permissions required to enable Amazon S3 output for an association, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/state-manager-associations-creating.html#state-manager-associations-console">Create an association (console)</a> in the <i>Systems Manager User Guide</i>.</p>
           5  +
#[non_exhaustive]
           6  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           7  +
pub struct InstanceAssociationOutputLocation {
           8  +
    /// <p>An S3 bucket where you want to store the results of this request.</p>
           9  +
    pub s3_location: ::std::option::Option<crate::types::S3OutputLocation>,
          10  +
}
          11  +
impl InstanceAssociationOutputLocation {
          12  +
    /// <p>An S3 bucket where you want to store the results of this request.</p>
          13  +
    pub fn s3_location(&self) -> ::std::option::Option<&crate::types::S3OutputLocation> {
          14  +
        self.s3_location.as_ref()
          15  +
    }
          16  +
}
          17  +
static INSTANCEASSOCIATIONOUTPUTLOCATION_MEMBER_S3_LOCATION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          18  +
    ::aws_smithy_schema::ShapeId::from_parts(
          19  +
        "com.amazonaws.ssm#InstanceAssociationOutputLocation$S3Location",
          20  +
        "com.amazonaws.ssm",
          21  +
        "InstanceAssociationOutputLocation",
          22  +
    ),
          23  +
    ::aws_smithy_schema::ShapeType::Structure,
          24  +
    "S3Location",
          25  +
    0,
          26  +
);
          27  +
static INSTANCEASSOCIATIONOUTPUTLOCATION_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          28  +
    ::aws_smithy_schema::ShapeId::from_parts(
          29  +
        "com.amazonaws.ssm#InstanceAssociationOutputLocation",
          30  +
        "com.amazonaws.ssm",
          31  +
        "InstanceAssociationOutputLocation",
          32  +
    ),
          33  +
    ::aws_smithy_schema::ShapeType::Structure,
          34  +
    &[&INSTANCEASSOCIATIONOUTPUTLOCATION_MEMBER_S3_LOCATION],
          35  +
);
          36  +
impl InstanceAssociationOutputLocation {
          37  +
    /// The schema for this shape.
          38  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &INSTANCEASSOCIATIONOUTPUTLOCATION_SCHEMA;
          39  +
}
          40  +
impl ::aws_smithy_schema::serde::SerializableStruct for InstanceAssociationOutputLocation {
          41  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          42  +
    fn serialize_members(
          43  +
        &self,
          44  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          45  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          46  +
        if let Some(ref val) = self.s3_location {
          47  +
            ser.write_struct(&INSTANCEASSOCIATIONOUTPUTLOCATION_MEMBER_S3_LOCATION, val)?;
          48  +
        }
          49  +
        Ok(())
          50  +
    }
          51  +
}
          52  +
impl InstanceAssociationOutputLocation {
          53  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
          54  +
    pub fn deserialize(
          55  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          56  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          57  +
        #[allow(unused_variables, unused_mut)]
          58  +
        let mut builder = Self::builder();
          59  +
        #[allow(
          60  +
            unused_variables,
          61  +
            unreachable_code,
          62  +
            clippy::single_match,
          63  +
            clippy::match_single_binding,
          64  +
            clippy::diverging_sub_expression
          65  +
        )]
          66  +
        deserializer.read_struct(&INSTANCEASSOCIATIONOUTPUTLOCATION_SCHEMA, &mut |member, deser| {
          67  +
            match member.member_index() {
          68  +
                Some(0) => {
          69  +
                    if deser.is_null() {
          70  +
                        deser.read_null()?;
          71  +
                    } else {
          72  +
                        builder.s3_location = Some(crate::types::S3OutputLocation::deserialize(deser)?);
          73  +
                    }
          74  +
                }
          75  +
                _ => {}
          76  +
            }
          77  +
            Ok(())
          78  +
        })?;
          79  +
        Ok(builder.build())
          80  +
    }
          81  +
}
          82  +
impl InstanceAssociationOutputLocation {
          83  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          84  +
    pub fn deserialize_with_response(
          85  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          86  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          87  +
        _status: u16,
          88  +
        _body: &[u8],
          89  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          90  +
        Self::deserialize(deserializer)
          91  +
    }
          92  +
}
          93  +
impl InstanceAssociationOutputLocation {
          94  +
    /// Creates a new builder-style object to manufacture [`InstanceAssociationOutputLocation`](crate::types::InstanceAssociationOutputLocation).
          95  +
    pub fn builder() -> crate::types::builders::InstanceAssociationOutputLocationBuilder {
          96  +
        crate::types::builders::InstanceAssociationOutputLocationBuilder::default()
          97  +
    }
          98  +
}
          99  +
         100  +
/// A builder for [`InstanceAssociationOutputLocation`](crate::types::InstanceAssociationOutputLocation).
         101  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         102  +
#[non_exhaustive]
         103  +
pub struct InstanceAssociationOutputLocationBuilder {
         104  +
    pub(crate) s3_location: ::std::option::Option<crate::types::S3OutputLocation>,
         105  +
}
         106  +
impl InstanceAssociationOutputLocationBuilder {
         107  +
    /// <p>An S3 bucket where you want to store the results of this request.</p>
         108  +
    pub fn s3_location(mut self, input: crate::types::S3OutputLocation) -> Self {
         109  +
        self.s3_location = ::std::option::Option::Some(input);
         110  +
        self
         111  +
    }
         112  +
    /// <p>An S3 bucket where you want to store the results of this request.</p>
         113  +
    pub fn set_s3_location(mut self, input: ::std::option::Option<crate::types::S3OutputLocation>) -> Self {
         114  +
        self.s3_location = input;
         115  +
        self
         116  +
    }
         117  +
    /// <p>An S3 bucket where you want to store the results of this request.</p>
         118  +
    pub fn get_s3_location(&self) -> &::std::option::Option<crate::types::S3OutputLocation> {
         119  +
        &self.s3_location
         120  +
    }
         121  +
    /// Consumes the builder and constructs a [`InstanceAssociationOutputLocation`](crate::types::InstanceAssociationOutputLocation).
         122  +
    pub fn build(self) -> crate::types::InstanceAssociationOutputLocation {
         123  +
        crate::types::InstanceAssociationOutputLocation {
         124  +
            s3_location: self.s3_location,
         125  +
        }
         126  +
    }
         127  +
}

tmp-codegen-diff/aws-sdk/sdk/ssm/src/types/_instance_association_output_url.rs

@@ -0,1 +0,126 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>The URL of S3 bucket where you want to store the results of this request.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct InstanceAssociationOutputUrl {
           7  +
    /// <p>The URL of S3 bucket where you want to store the results of this request.</p>
           8  +
    pub s3_output_url: ::std::option::Option<crate::types::S3OutputUrl>,
           9  +
}
          10  +
impl InstanceAssociationOutputUrl {
          11  +
    /// <p>The URL of S3 bucket where you want to store the results of this request.</p>
          12  +
    pub fn s3_output_url(&self) -> ::std::option::Option<&crate::types::S3OutputUrl> {
          13  +
        self.s3_output_url.as_ref()
          14  +
    }
          15  +
}
          16  +
static INSTANCEASSOCIATIONOUTPUTURL_MEMBER_S3_OUTPUT_URL: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          17  +
    ::aws_smithy_schema::ShapeId::from_parts(
          18  +
        "com.amazonaws.ssm#InstanceAssociationOutputUrl$S3OutputUrl",
          19  +
        "com.amazonaws.ssm",
          20  +
        "InstanceAssociationOutputUrl",
          21  +
    ),
          22  +
    ::aws_smithy_schema::ShapeType::Structure,
          23  +
    "S3OutputUrl",
          24  +
    0,
          25  +
);
          26  +
static INSTANCEASSOCIATIONOUTPUTURL_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          27  +
    ::aws_smithy_schema::ShapeId::from_parts(
          28  +
        "com.amazonaws.ssm#InstanceAssociationOutputUrl",
          29  +
        "com.amazonaws.ssm",
          30  +
        "InstanceAssociationOutputUrl",
          31  +
    ),
          32  +
    ::aws_smithy_schema::ShapeType::Structure,
          33  +
    &[&INSTANCEASSOCIATIONOUTPUTURL_MEMBER_S3_OUTPUT_URL],
          34  +
);
          35  +
impl InstanceAssociationOutputUrl {
          36  +
    /// The schema for this shape.
          37  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &INSTANCEASSOCIATIONOUTPUTURL_SCHEMA;
          38  +
}
          39  +
impl ::aws_smithy_schema::serde::SerializableStruct for InstanceAssociationOutputUrl {
          40  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          41  +
    fn serialize_members(
          42  +
        &self,
          43  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          44  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          45  +
        if let Some(ref val) = self.s3_output_url {
          46  +
            ser.write_struct(&INSTANCEASSOCIATIONOUTPUTURL_MEMBER_S3_OUTPUT_URL, val)?;
          47  +
        }
          48  +
        Ok(())
          49  +
    }
          50  +
}
          51  +
impl InstanceAssociationOutputUrl {
          52  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
          53  +
    pub fn deserialize(
          54  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          55  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          56  +
        #[allow(unused_variables, unused_mut)]
          57  +
        let mut builder = Self::builder();
          58  +
        #[allow(
          59  +
            unused_variables,
          60  +
            unreachable_code,
          61  +
            clippy::single_match,
          62  +
            clippy::match_single_binding,
          63  +
            clippy::diverging_sub_expression
          64  +
        )]
          65  +
        deserializer.read_struct(&INSTANCEASSOCIATIONOUTPUTURL_SCHEMA, &mut |member, deser| {
          66  +
            match member.member_index() {
          67  +
                Some(0) => {
          68  +
                    if deser.is_null() {
          69  +
                        deser.read_null()?;
          70  +
                    } else {
          71  +
                        builder.s3_output_url = Some(crate::types::S3OutputUrl::deserialize(deser)?);
          72  +
                    }
          73  +
                }
          74  +
                _ => {}
          75  +
            }
          76  +
            Ok(())
          77  +
        })?;
          78  +
        Ok(builder.build())
          79  +
    }
          80  +
}
          81  +
impl InstanceAssociationOutputUrl {
          82  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          83  +
    pub fn deserialize_with_response(
          84  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          85  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          86  +
        _status: u16,
          87  +
        _body: &[u8],
          88  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          89  +
        Self::deserialize(deserializer)
          90  +
    }
          91  +
}
          92  +
impl InstanceAssociationOutputUrl {
          93  +
    /// Creates a new builder-style object to manufacture [`InstanceAssociationOutputUrl`](crate::types::InstanceAssociationOutputUrl).
          94  +
    pub fn builder() -> crate::types::builders::InstanceAssociationOutputUrlBuilder {
          95  +
        crate::types::builders::InstanceAssociationOutputUrlBuilder::default()
          96  +
    }
          97  +
}
          98  +
          99  +
/// A builder for [`InstanceAssociationOutputUrl`](crate::types::InstanceAssociationOutputUrl).
         100  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         101  +
#[non_exhaustive]
         102  +
pub struct InstanceAssociationOutputUrlBuilder {
         103  +
    pub(crate) s3_output_url: ::std::option::Option<crate::types::S3OutputUrl>,
         104  +
}
         105  +
impl InstanceAssociationOutputUrlBuilder {
         106  +
    /// <p>The URL of S3 bucket where you want to store the results of this request.</p>
         107  +
    pub fn s3_output_url(mut self, input: crate::types::S3OutputUrl) -> Self {
         108  +
        self.s3_output_url = ::std::option::Option::Some(input);
         109  +
        self
         110  +
    }
         111  +
    /// <p>The URL of S3 bucket where you want to store the results of this request.</p>
         112  +
    pub fn set_s3_output_url(mut self, input: ::std::option::Option<crate::types::S3OutputUrl>) -> Self {
         113  +
        self.s3_output_url = input;
         114  +
        self
         115  +
    }
         116  +
    /// <p>The URL of S3 bucket where you want to store the results of this request.</p>
         117  +
    pub fn get_s3_output_url(&self) -> &::std::option::Option<crate::types::S3OutputUrl> {
         118  +
        &self.s3_output_url
         119  +
    }
         120  +
    /// Consumes the builder and constructs a [`InstanceAssociationOutputUrl`](crate::types::InstanceAssociationOutputUrl).
         121  +
    pub fn build(self) -> crate::types::InstanceAssociationOutputUrl {
         122  +
        crate::types::InstanceAssociationOutputUrl {
         123  +
            s3_output_url: self.s3_output_url,
         124  +
        }
         125  +
    }
         126  +
}

tmp-codegen-diff/aws-sdk/sdk/ssm/src/types/_instance_association_status_info.rs

@@ -0,1 +0,601 @@
           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  +
}