AWS SDK

AWS SDK

rev. 18b1dd205ff4335251e6dd0ecb88193de1b1cede

Files changed:

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

@@ -0,1 +0,182 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>The specified filter option isn't valid. Valid options are Equals and BeginsWith. For Path filter, valid options are Recursive and OneLevel.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct InvalidFilterOption {
           7  +
    /// <p>The specified filter option isn't valid. Valid options are Equals and BeginsWith. For Path filter, valid options are Recursive and OneLevel.</p>
           8  +
    pub message: ::std::option::Option<::std::string::String>,
           9  +
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          10  +
}
          11  +
static INVALIDFILTEROPTION_MEMBER_MESSAGE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          12  +
    ::aws_smithy_schema::ShapeId::from_parts(
          13  +
        "com.amazonaws.ssm#InvalidFilterOption$message",
          14  +
        "com.amazonaws.ssm",
          15  +
        "InvalidFilterOption",
          16  +
    ),
          17  +
    ::aws_smithy_schema::ShapeType::String,
          18  +
    "message",
          19  +
    0,
          20  +
);
          21  +
static INVALIDFILTEROPTION_TRAITS: std::sync::LazyLock<::aws_smithy_schema::TraitMap> = std::sync::LazyLock::new(|| {
          22  +
    let mut map = ::aws_smithy_schema::TraitMap::new();
          23  +
    map.insert(Box::new(::aws_smithy_schema::DocumentTrait::new(
          24  +
        ::aws_smithy_schema::ShapeId::from_parts("aws.protocols#awsQueryError", "aws.protocols", "awsQueryError"),
          25  +
        {
          26  +
            let mut obj = ::aws_smithy_types::document::DocumentObject::new();
          27  +
            obj.insert(
          28  +
                "code".to_string(),
          29  +
                ::aws_smithy_types::Document::String("InvalidFilterOption".to_string()),
          30  +
            );
          31  +
            obj.insert(
          32  +
                "httpResponseCode".to_string(),
          33  +
                ::aws_smithy_types::Document::Number(::aws_smithy_types::Number::PosInt(400u64)),
          34  +
            );
          35  +
            ::aws_smithy_types::Document::Object(obj)
          36  +
        },
          37  +
    )));
          38  +
    map
          39  +
});
          40  +
static INVALIDFILTEROPTION_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          41  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#InvalidFilterOption", "com.amazonaws.ssm", "InvalidFilterOption"),
          42  +
    ::aws_smithy_schema::ShapeType::Structure,
          43  +
    &[&INVALIDFILTEROPTION_MEMBER_MESSAGE],
          44  +
)
          45  +
.with_traits(&INVALIDFILTEROPTION_TRAITS);
          46  +
impl InvalidFilterOption {
          47  +
    /// The schema for this shape.
          48  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &INVALIDFILTEROPTION_SCHEMA;
          49  +
}
          50  +
impl ::aws_smithy_schema::serde::SerializableStruct for InvalidFilterOption {
          51  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          52  +
    fn serialize_members(
          53  +
        &self,
          54  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          55  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          56  +
        if let Some(ref val) = self.message {
          57  +
            ser.write_string(&INVALIDFILTEROPTION_MEMBER_MESSAGE, val)?;
          58  +
        }
          59  +
        Ok(())
          60  +
    }
          61  +
}
          62  +
impl InvalidFilterOption {
          63  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
          64  +
    pub fn deserialize(
          65  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          66  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          67  +
        #[allow(unused_variables, unused_mut)]
          68  +
        let mut builder = Self::builder();
          69  +
        #[allow(
          70  +
            unused_variables,
          71  +
            unreachable_code,
          72  +
            clippy::single_match,
          73  +
            clippy::match_single_binding,
          74  +
            clippy::diverging_sub_expression
          75  +
        )]
          76  +
        deserializer.read_struct(&INVALIDFILTEROPTION_SCHEMA, &mut |member, deser| {
          77  +
            match member.member_index() {
          78  +
                Some(0) => {
          79  +
                    if deser.is_null() {
          80  +
                        deser.read_null()?;
          81  +
                    } else {
          82  +
                        builder.message = Some(deser.read_string(member)?);
          83  +
                    }
          84  +
                }
          85  +
                _ => {}
          86  +
            }
          87  +
            Ok(())
          88  +
        })?;
          89  +
        Ok(builder.build())
          90  +
    }
          91  +
}
          92  +
impl InvalidFilterOption {
          93  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          94  +
    pub fn deserialize_with_response(
          95  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          96  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          97  +
        _status: u16,
          98  +
        body: &[u8],
          99  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         100  +
        if body.is_empty() {
         101  +
            return Ok(Self::builder().build());
         102  +
        }
         103  +
        Self::deserialize(deserializer)
         104  +
    }
         105  +
}
         106  +
impl InvalidFilterOption {
         107  +
    /// Returns the error message.
         108  +
    pub fn message(&self) -> ::std::option::Option<&str> {
         109  +
        self.message.as_deref()
         110  +
    }
         111  +
}
         112  +
impl ::std::fmt::Display for InvalidFilterOption {
         113  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         114  +
        ::std::write!(f, "InvalidFilterOption")?;
         115  +
        if let ::std::option::Option::Some(inner_1) = &self.message {
         116  +
            {
         117  +
                ::std::write!(f, ": {inner_1}")?;
         118  +
            }
         119  +
        }
         120  +
        Ok(())
         121  +
    }
         122  +
}
         123  +
impl ::std::error::Error for InvalidFilterOption {}
         124  +
impl ::aws_types::request_id::RequestId for crate::types::error::InvalidFilterOption {
         125  +
    fn request_id(&self) -> Option<&str> {
         126  +
        use ::aws_smithy_types::error::metadata::ProvideErrorMetadata;
         127  +
        self.meta().request_id()
         128  +
    }
         129  +
}
         130  +
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for InvalidFilterOption {
         131  +
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         132  +
        &self.meta
         133  +
    }
         134  +
}
         135  +
impl InvalidFilterOption {
         136  +
    /// Creates a new builder-style object to manufacture [`InvalidFilterOption`](crate::types::error::InvalidFilterOption).
         137  +
    pub fn builder() -> crate::types::error::builders::InvalidFilterOptionBuilder {
         138  +
        crate::types::error::builders::InvalidFilterOptionBuilder::default()
         139  +
    }
         140  +
}
         141  +
         142  +
/// A builder for [`InvalidFilterOption`](crate::types::error::InvalidFilterOption).
         143  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         144  +
#[non_exhaustive]
         145  +
pub struct InvalidFilterOptionBuilder {
         146  +
    pub(crate) message: ::std::option::Option<::std::string::String>,
         147  +
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
         148  +
}
         149  +
impl InvalidFilterOptionBuilder {
         150  +
    /// <p>The specified filter option isn't valid. Valid options are Equals and BeginsWith. For Path filter, valid options are Recursive and OneLevel.</p>
         151  +
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         152  +
        self.message = ::std::option::Option::Some(input.into());
         153  +
        self
         154  +
    }
         155  +
    /// <p>The specified filter option isn't valid. Valid options are Equals and BeginsWith. For Path filter, valid options are Recursive and OneLevel.</p>
         156  +
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         157  +
        self.message = input;
         158  +
        self
         159  +
    }
         160  +
    /// <p>The specified filter option isn't valid. Valid options are Equals and BeginsWith. For Path filter, valid options are Recursive and OneLevel.</p>
         161  +
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
         162  +
        &self.message
         163  +
    }
         164  +
    /// Sets error metadata
         165  +
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
         166  +
        self.meta = Some(meta);
         167  +
        self
         168  +
    }
         169  +
         170  +
    /// Sets error metadata
         171  +
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
         172  +
        self.meta = meta;
         173  +
        self
         174  +
    }
         175  +
    /// Consumes the builder and constructs a [`InvalidFilterOption`](crate::types::error::InvalidFilterOption).
         176  +
    pub fn build(self) -> crate::types::error::InvalidFilterOption {
         177  +
        crate::types::error::InvalidFilterOption {
         178  +
            message: self.message,
         179  +
            meta: self.meta.unwrap_or_default(),
         180  +
        }
         181  +
    }
         182  +
}

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

@@ -0,1 +0,175 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>The filter value isn't valid. Verify the value and try again.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct InvalidFilterValue {
           7  +
    #[allow(missing_docs)] // documentation missing in model
           8  +
    pub message: ::std::option::Option<::std::string::String>,
           9  +
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          10  +
}
          11  +
static INVALIDFILTERVALUE_MEMBER_MESSAGE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          12  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#InvalidFilterValue$Message", "com.amazonaws.ssm", "InvalidFilterValue"),
          13  +
    ::aws_smithy_schema::ShapeType::String,
          14  +
    "Message",
          15  +
    0,
          16  +
);
          17  +
static INVALIDFILTERVALUE_TRAITS: std::sync::LazyLock<::aws_smithy_schema::TraitMap> = std::sync::LazyLock::new(|| {
          18  +
    let mut map = ::aws_smithy_schema::TraitMap::new();
          19  +
    map.insert(Box::new(::aws_smithy_schema::DocumentTrait::new(
          20  +
        ::aws_smithy_schema::ShapeId::from_parts("aws.protocols#awsQueryError", "aws.protocols", "awsQueryError"),
          21  +
        {
          22  +
            let mut obj = ::aws_smithy_types::document::DocumentObject::new();
          23  +
            obj.insert("code".to_string(), ::aws_smithy_types::Document::String("InvalidFilterValue".to_string()));
          24  +
            obj.insert(
          25  +
                "httpResponseCode".to_string(),
          26  +
                ::aws_smithy_types::Document::Number(::aws_smithy_types::Number::PosInt(400u64)),
          27  +
            );
          28  +
            ::aws_smithy_types::Document::Object(obj)
          29  +
        },
          30  +
    )));
          31  +
    map
          32  +
});
          33  +
static INVALIDFILTERVALUE_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          34  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#InvalidFilterValue", "com.amazonaws.ssm", "InvalidFilterValue"),
          35  +
    ::aws_smithy_schema::ShapeType::Structure,
          36  +
    &[&INVALIDFILTERVALUE_MEMBER_MESSAGE],
          37  +
)
          38  +
.with_traits(&INVALIDFILTERVALUE_TRAITS);
          39  +
impl InvalidFilterValue {
          40  +
    /// The schema for this shape.
          41  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &INVALIDFILTERVALUE_SCHEMA;
          42  +
}
          43  +
impl ::aws_smithy_schema::serde::SerializableStruct for InvalidFilterValue {
          44  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          45  +
    fn serialize_members(
          46  +
        &self,
          47  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          48  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          49  +
        if let Some(ref val) = self.message {
          50  +
            ser.write_string(&INVALIDFILTERVALUE_MEMBER_MESSAGE, val)?;
          51  +
        }
          52  +
        Ok(())
          53  +
    }
          54  +
}
          55  +
impl InvalidFilterValue {
          56  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
          57  +
    pub fn deserialize(
          58  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          59  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          60  +
        #[allow(unused_variables, unused_mut)]
          61  +
        let mut builder = Self::builder();
          62  +
        #[allow(
          63  +
            unused_variables,
          64  +
            unreachable_code,
          65  +
            clippy::single_match,
          66  +
            clippy::match_single_binding,
          67  +
            clippy::diverging_sub_expression
          68  +
        )]
          69  +
        deserializer.read_struct(&INVALIDFILTERVALUE_SCHEMA, &mut |member, deser| {
          70  +
            match member.member_index() {
          71  +
                Some(0) => {
          72  +
                    if deser.is_null() {
          73  +
                        deser.read_null()?;
          74  +
                    } else {
          75  +
                        builder.message = Some(deser.read_string(member)?);
          76  +
                    }
          77  +
                }
          78  +
                _ => {}
          79  +
            }
          80  +
            Ok(())
          81  +
        })?;
          82  +
        Ok(builder.build())
          83  +
    }
          84  +
}
          85  +
impl InvalidFilterValue {
          86  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          87  +
    pub fn deserialize_with_response(
          88  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          89  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          90  +
        _status: u16,
          91  +
        body: &[u8],
          92  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          93  +
        if body.is_empty() {
          94  +
            return Ok(Self::builder().build());
          95  +
        }
          96  +
        Self::deserialize(deserializer)
          97  +
    }
          98  +
}
          99  +
impl InvalidFilterValue {
         100  +
    /// Returns the error message.
         101  +
    pub fn message(&self) -> ::std::option::Option<&str> {
         102  +
        self.message.as_deref()
         103  +
    }
         104  +
}
         105  +
impl ::std::fmt::Display for InvalidFilterValue {
         106  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         107  +
        ::std::write!(f, "InvalidFilterValue")?;
         108  +
        if let ::std::option::Option::Some(inner_1) = &self.message {
         109  +
            {
         110  +
                ::std::write!(f, ": {inner_1}")?;
         111  +
            }
         112  +
        }
         113  +
        Ok(())
         114  +
    }
         115  +
}
         116  +
impl ::std::error::Error for InvalidFilterValue {}
         117  +
impl ::aws_types::request_id::RequestId for crate::types::error::InvalidFilterValue {
         118  +
    fn request_id(&self) -> Option<&str> {
         119  +
        use ::aws_smithy_types::error::metadata::ProvideErrorMetadata;
         120  +
        self.meta().request_id()
         121  +
    }
         122  +
}
         123  +
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for InvalidFilterValue {
         124  +
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         125  +
        &self.meta
         126  +
    }
         127  +
}
         128  +
impl InvalidFilterValue {
         129  +
    /// Creates a new builder-style object to manufacture [`InvalidFilterValue`](crate::types::error::InvalidFilterValue).
         130  +
    pub fn builder() -> crate::types::error::builders::InvalidFilterValueBuilder {
         131  +
        crate::types::error::builders::InvalidFilterValueBuilder::default()
         132  +
    }
         133  +
}
         134  +
         135  +
/// A builder for [`InvalidFilterValue`](crate::types::error::InvalidFilterValue).
         136  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         137  +
#[non_exhaustive]
         138  +
pub struct InvalidFilterValueBuilder {
         139  +
    pub(crate) message: ::std::option::Option<::std::string::String>,
         140  +
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
         141  +
}
         142  +
impl InvalidFilterValueBuilder {
         143  +
    #[allow(missing_docs)] // documentation missing in model
         144  +
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         145  +
        self.message = ::std::option::Option::Some(input.into());
         146  +
        self
         147  +
    }
         148  +
    #[allow(missing_docs)] // documentation missing in model
         149  +
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         150  +
        self.message = input;
         151  +
        self
         152  +
    }
         153  +
    #[allow(missing_docs)] // documentation missing in model
         154  +
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
         155  +
        &self.message
         156  +
    }
         157  +
    /// Sets error metadata
         158  +
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
         159  +
        self.meta = Some(meta);
         160  +
        self
         161  +
    }
         162  +
         163  +
    /// Sets error metadata
         164  +
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
         165  +
        self.meta = meta;
         166  +
        self
         167  +
    }
         168  +
    /// Consumes the builder and constructs a [`InvalidFilterValue`](crate::types::error::InvalidFilterValue).
         169  +
    pub fn build(self) -> crate::types::error::InvalidFilterValue {
         170  +
        crate::types::error::InvalidFilterValue {
         171  +
            message: self.message,
         172  +
            meta: self.meta.unwrap_or_default(),
         173  +
        }
         174  +
    }
         175  +
}

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

@@ -0,1 +0,185 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>The following problems can cause this exception:</p>
           4  +
/// <ul>
           5  +
/// <li>
           6  +
/// <p>You don't have permission to access the managed node.</p></li>
           7  +
/// <li>
           8  +
/// <p>Amazon Web Services Systems Manager Agent (SSM Agent) isn't running. Verify that SSM Agent is running.</p></li>
           9  +
/// <li>
          10  +
/// <p>SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.</p></li>
          11  +
/// <li>
          12  +
/// <p>The managed node isn't in a valid state. Valid states are: <code>Running</code>, <code>Pending</code>, <code>Stopped</code>, and <code>Stopping</code>. Invalid states are: <code>Shutting-down</code> and <code>Terminated</code>.</p></li>
          13  +
/// </ul>
          14  +
#[non_exhaustive]
          15  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
          16  +
pub struct InvalidInstanceId {
          17  +
    #[allow(missing_docs)] // documentation missing in model
          18  +
    pub message: ::std::option::Option<::std::string::String>,
          19  +
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          20  +
}
          21  +
static INVALIDINSTANCEID_MEMBER_MESSAGE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          22  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#InvalidInstanceId$Message", "com.amazonaws.ssm", "InvalidInstanceId"),
          23  +
    ::aws_smithy_schema::ShapeType::String,
          24  +
    "Message",
          25  +
    0,
          26  +
);
          27  +
static INVALIDINSTANCEID_TRAITS: std::sync::LazyLock<::aws_smithy_schema::TraitMap> = std::sync::LazyLock::new(|| {
          28  +
    let mut map = ::aws_smithy_schema::TraitMap::new();
          29  +
    map.insert(Box::new(::aws_smithy_schema::DocumentTrait::new(
          30  +
        ::aws_smithy_schema::ShapeId::from_parts("aws.protocols#awsQueryError", "aws.protocols", "awsQueryError"),
          31  +
        {
          32  +
            let mut obj = ::aws_smithy_types::document::DocumentObject::new();
          33  +
            obj.insert("code".to_string(), ::aws_smithy_types::Document::String("InvalidInstanceId".to_string()));
          34  +
            obj.insert(
          35  +
                "httpResponseCode".to_string(),
          36  +
                ::aws_smithy_types::Document::Number(::aws_smithy_types::Number::PosInt(404u64)),
          37  +
            );
          38  +
            ::aws_smithy_types::Document::Object(obj)
          39  +
        },
          40  +
    )));
          41  +
    map
          42  +
});
          43  +
static INVALIDINSTANCEID_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          44  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#InvalidInstanceId", "com.amazonaws.ssm", "InvalidInstanceId"),
          45  +
    ::aws_smithy_schema::ShapeType::Structure,
          46  +
    &[&INVALIDINSTANCEID_MEMBER_MESSAGE],
          47  +
)
          48  +
.with_traits(&INVALIDINSTANCEID_TRAITS);
          49  +
impl InvalidInstanceId {
          50  +
    /// The schema for this shape.
          51  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &INVALIDINSTANCEID_SCHEMA;
          52  +
}
          53  +
impl ::aws_smithy_schema::serde::SerializableStruct for InvalidInstanceId {
          54  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          55  +
    fn serialize_members(
          56  +
        &self,
          57  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          58  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          59  +
        if let Some(ref val) = self.message {
          60  +
            ser.write_string(&INVALIDINSTANCEID_MEMBER_MESSAGE, val)?;
          61  +
        }
          62  +
        Ok(())
          63  +
    }
          64  +
}
          65  +
impl InvalidInstanceId {
          66  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
          67  +
    pub fn deserialize(
          68  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          69  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          70  +
        #[allow(unused_variables, unused_mut)]
          71  +
        let mut builder = Self::builder();
          72  +
        #[allow(
          73  +
            unused_variables,
          74  +
            unreachable_code,
          75  +
            clippy::single_match,
          76  +
            clippy::match_single_binding,
          77  +
            clippy::diverging_sub_expression
          78  +
        )]
          79  +
        deserializer.read_struct(&INVALIDINSTANCEID_SCHEMA, &mut |member, deser| {
          80  +
            match member.member_index() {
          81  +
                Some(0) => {
          82  +
                    if deser.is_null() {
          83  +
                        deser.read_null()?;
          84  +
                    } else {
          85  +
                        builder.message = Some(deser.read_string(member)?);
          86  +
                    }
          87  +
                }
          88  +
                _ => {}
          89  +
            }
          90  +
            Ok(())
          91  +
        })?;
          92  +
        Ok(builder.build())
          93  +
    }
          94  +
}
          95  +
impl InvalidInstanceId {
          96  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          97  +
    pub fn deserialize_with_response(
          98  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          99  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         100  +
        _status: u16,
         101  +
        body: &[u8],
         102  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         103  +
        if body.is_empty() {
         104  +
            return Ok(Self::builder().build());
         105  +
        }
         106  +
        Self::deserialize(deserializer)
         107  +
    }
         108  +
}
         109  +
impl InvalidInstanceId {
         110  +
    /// Returns the error message.
         111  +
    pub fn message(&self) -> ::std::option::Option<&str> {
         112  +
        self.message.as_deref()
         113  +
    }
         114  +
}
         115  +
impl ::std::fmt::Display for InvalidInstanceId {
         116  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         117  +
        ::std::write!(f, "InvalidInstanceId")?;
         118  +
        if let ::std::option::Option::Some(inner_1) = &self.message {
         119  +
            {
         120  +
                ::std::write!(f, ": {inner_1}")?;
         121  +
            }
         122  +
        }
         123  +
        Ok(())
         124  +
    }
         125  +
}
         126  +
impl ::std::error::Error for InvalidInstanceId {}
         127  +
impl ::aws_types::request_id::RequestId for crate::types::error::InvalidInstanceId {
         128  +
    fn request_id(&self) -> Option<&str> {
         129  +
        use ::aws_smithy_types::error::metadata::ProvideErrorMetadata;
         130  +
        self.meta().request_id()
         131  +
    }
         132  +
}
         133  +
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for InvalidInstanceId {
         134  +
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         135  +
        &self.meta
         136  +
    }
         137  +
}
         138  +
impl InvalidInstanceId {
         139  +
    /// Creates a new builder-style object to manufacture [`InvalidInstanceId`](crate::types::error::InvalidInstanceId).
         140  +
    pub fn builder() -> crate::types::error::builders::InvalidInstanceIdBuilder {
         141  +
        crate::types::error::builders::InvalidInstanceIdBuilder::default()
         142  +
    }
         143  +
}
         144  +
         145  +
/// A builder for [`InvalidInstanceId`](crate::types::error::InvalidInstanceId).
         146  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         147  +
#[non_exhaustive]
         148  +
pub struct InvalidInstanceIdBuilder {
         149  +
    pub(crate) message: ::std::option::Option<::std::string::String>,
         150  +
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
         151  +
}
         152  +
impl InvalidInstanceIdBuilder {
         153  +
    #[allow(missing_docs)] // documentation missing in model
         154  +
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         155  +
        self.message = ::std::option::Option::Some(input.into());
         156  +
        self
         157  +
    }
         158  +
    #[allow(missing_docs)] // documentation missing in model
         159  +
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         160  +
        self.message = input;
         161  +
        self
         162  +
    }
         163  +
    #[allow(missing_docs)] // documentation missing in model
         164  +
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
         165  +
        &self.message
         166  +
    }
         167  +
    /// Sets error metadata
         168  +
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
         169  +
        self.meta = Some(meta);
         170  +
        self
         171  +
    }
         172  +
         173  +
    /// Sets error metadata
         174  +
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
         175  +
        self.meta = meta;
         176  +
        self
         177  +
    }
         178  +
    /// Consumes the builder and constructs a [`InvalidInstanceId`](crate::types::error::InvalidInstanceId).
         179  +
    pub fn build(self) -> crate::types::error::InvalidInstanceId {
         180  +
        crate::types::error::InvalidInstanceId {
         181  +
            message: self.message,
         182  +
            meta: self.meta.unwrap_or_default(),
         183  +
        }
         184  +
    }
         185  +
}

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

@@ -0,1 +0,186 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>The specified filter value isn't valid.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct InvalidInstanceInformationFilterValue {
           7  +
    #[allow(missing_docs)] // documentation missing in model
           8  +
    pub message: ::std::option::Option<::std::string::String>,
           9  +
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          10  +
}
          11  +
static INVALIDINSTANCEINFORMATIONFILTERVALUE_MEMBER_MESSAGE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          12  +
    ::aws_smithy_schema::ShapeId::from_parts(
          13  +
        "com.amazonaws.ssm#InvalidInstanceInformationFilterValue$message",
          14  +
        "com.amazonaws.ssm",
          15  +
        "InvalidInstanceInformationFilterValue",
          16  +
    ),
          17  +
    ::aws_smithy_schema::ShapeType::String,
          18  +
    "message",
          19  +
    0,
          20  +
);
          21  +
static INVALIDINSTANCEINFORMATIONFILTERVALUE_TRAITS: std::sync::LazyLock<::aws_smithy_schema::TraitMap> = std::sync::LazyLock::new(|| {
          22  +
    let mut map = ::aws_smithy_schema::TraitMap::new();
          23  +
    map.insert(Box::new(::aws_smithy_schema::DocumentTrait::new(
          24  +
        ::aws_smithy_schema::ShapeId::from_parts("aws.protocols#awsQueryError", "aws.protocols", "awsQueryError"),
          25  +
        {
          26  +
            let mut obj = ::aws_smithy_types::document::DocumentObject::new();
          27  +
            obj.insert(
          28  +
                "code".to_string(),
          29  +
                ::aws_smithy_types::Document::String("InvalidInstanceInformationFilterValue".to_string()),
          30  +
            );
          31  +
            obj.insert(
          32  +
                "httpResponseCode".to_string(),
          33  +
                ::aws_smithy_types::Document::Number(::aws_smithy_types::Number::PosInt(400u64)),
          34  +
            );
          35  +
            ::aws_smithy_types::Document::Object(obj)
          36  +
        },
          37  +
    )));
          38  +
    map
          39  +
});
          40  +
static INVALIDINSTANCEINFORMATIONFILTERVALUE_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          41  +
    ::aws_smithy_schema::ShapeId::from_parts(
          42  +
        "com.amazonaws.ssm#InvalidInstanceInformationFilterValue",
          43  +
        "com.amazonaws.ssm",
          44  +
        "InvalidInstanceInformationFilterValue",
          45  +
    ),
          46  +
    ::aws_smithy_schema::ShapeType::Structure,
          47  +
    &[&INVALIDINSTANCEINFORMATIONFILTERVALUE_MEMBER_MESSAGE],
          48  +
)
          49  +
.with_traits(&INVALIDINSTANCEINFORMATIONFILTERVALUE_TRAITS);
          50  +
impl InvalidInstanceInformationFilterValue {
          51  +
    /// The schema for this shape.
          52  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &INVALIDINSTANCEINFORMATIONFILTERVALUE_SCHEMA;
          53  +
}
          54  +
impl ::aws_smithy_schema::serde::SerializableStruct for InvalidInstanceInformationFilterValue {
          55  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          56  +
    fn serialize_members(
          57  +
        &self,
          58  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          59  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          60  +
        if let Some(ref val) = self.message {
          61  +
            ser.write_string(&INVALIDINSTANCEINFORMATIONFILTERVALUE_MEMBER_MESSAGE, val)?;
          62  +
        }
          63  +
        Ok(())
          64  +
    }
          65  +
}
          66  +
impl InvalidInstanceInformationFilterValue {
          67  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
          68  +
    pub fn deserialize(
          69  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          70  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          71  +
        #[allow(unused_variables, unused_mut)]
          72  +
        let mut builder = Self::builder();
          73  +
        #[allow(
          74  +
            unused_variables,
          75  +
            unreachable_code,
          76  +
            clippy::single_match,
          77  +
            clippy::match_single_binding,
          78  +
            clippy::diverging_sub_expression
          79  +
        )]
          80  +
        deserializer.read_struct(&INVALIDINSTANCEINFORMATIONFILTERVALUE_SCHEMA, &mut |member, deser| {
          81  +
            match member.member_index() {
          82  +
                Some(0) => {
          83  +
                    if deser.is_null() {
          84  +
                        deser.read_null()?;
          85  +
                    } else {
          86  +
                        builder.message = Some(deser.read_string(member)?);
          87  +
                    }
          88  +
                }
          89  +
                _ => {}
          90  +
            }
          91  +
            Ok(())
          92  +
        })?;
          93  +
        Ok(builder.build())
          94  +
    }
          95  +
}
          96  +
impl InvalidInstanceInformationFilterValue {
          97  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          98  +
    pub fn deserialize_with_response(
          99  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         100  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         101  +
        _status: u16,
         102  +
        body: &[u8],
         103  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         104  +
        if body.is_empty() {
         105  +
            return Ok(Self::builder().build());
         106  +
        }
         107  +
        Self::deserialize(deserializer)
         108  +
    }
         109  +
}
         110  +
impl InvalidInstanceInformationFilterValue {
         111  +
    /// Returns the error message.
         112  +
    pub fn message(&self) -> ::std::option::Option<&str> {
         113  +
        self.message.as_deref()
         114  +
    }
         115  +
}
         116  +
impl ::std::fmt::Display for InvalidInstanceInformationFilterValue {
         117  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         118  +
        ::std::write!(f, "InvalidInstanceInformationFilterValue")?;
         119  +
        if let ::std::option::Option::Some(inner_1) = &self.message {
         120  +
            {
         121  +
                ::std::write!(f, ": {inner_1}")?;
         122  +
            }
         123  +
        }
         124  +
        Ok(())
         125  +
    }
         126  +
}
         127  +
impl ::std::error::Error for InvalidInstanceInformationFilterValue {}
         128  +
impl ::aws_types::request_id::RequestId for crate::types::error::InvalidInstanceInformationFilterValue {
         129  +
    fn request_id(&self) -> Option<&str> {
         130  +
        use ::aws_smithy_types::error::metadata::ProvideErrorMetadata;
         131  +
        self.meta().request_id()
         132  +
    }
         133  +
}
         134  +
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for InvalidInstanceInformationFilterValue {
         135  +
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         136  +
        &self.meta
         137  +
    }
         138  +
}
         139  +
impl InvalidInstanceInformationFilterValue {
         140  +
    /// Creates a new builder-style object to manufacture [`InvalidInstanceInformationFilterValue`](crate::types::error::InvalidInstanceInformationFilterValue).
         141  +
    pub fn builder() -> crate::types::error::builders::InvalidInstanceInformationFilterValueBuilder {
         142  +
        crate::types::error::builders::InvalidInstanceInformationFilterValueBuilder::default()
         143  +
    }
         144  +
}
         145  +
         146  +
/// A builder for [`InvalidInstanceInformationFilterValue`](crate::types::error::InvalidInstanceInformationFilterValue).
         147  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         148  +
#[non_exhaustive]
         149  +
pub struct InvalidInstanceInformationFilterValueBuilder {
         150  +
    pub(crate) message: ::std::option::Option<::std::string::String>,
         151  +
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
         152  +
}
         153  +
impl InvalidInstanceInformationFilterValueBuilder {
         154  +
    #[allow(missing_docs)] // documentation missing in model
         155  +
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         156  +
        self.message = ::std::option::Option::Some(input.into());
         157  +
        self
         158  +
    }
         159  +
    #[allow(missing_docs)] // documentation missing in model
         160  +
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         161  +
        self.message = input;
         162  +
        self
         163  +
    }
         164  +
    #[allow(missing_docs)] // documentation missing in model
         165  +
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
         166  +
        &self.message
         167  +
    }
         168  +
    /// Sets error metadata
         169  +
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
         170  +
        self.meta = Some(meta);
         171  +
        self
         172  +
    }
         173  +
         174  +
    /// Sets error metadata
         175  +
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
         176  +
        self.meta = meta;
         177  +
        self
         178  +
    }
         179  +
    /// Consumes the builder and constructs a [`InvalidInstanceInformationFilterValue`](crate::types::error::InvalidInstanceInformationFilterValue).
         180  +
    pub fn build(self) -> crate::types::error::InvalidInstanceInformationFilterValue {
         181  +
        crate::types::error::InvalidInstanceInformationFilterValue {
         182  +
            message: self.message,
         183  +
            meta: self.meta.unwrap_or_default(),
         184  +
        }
         185  +
    }
         186  +
}

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

@@ -0,1 +0,186 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>The specified filter value isn't valid.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct InvalidInstancePropertyFilterValue {
           7  +
    #[allow(missing_docs)] // documentation missing in model
           8  +
    pub message: ::std::option::Option<::std::string::String>,
           9  +
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          10  +
}
          11  +
static INVALIDINSTANCEPROPERTYFILTERVALUE_MEMBER_MESSAGE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          12  +
    ::aws_smithy_schema::ShapeId::from_parts(
          13  +
        "com.amazonaws.ssm#InvalidInstancePropertyFilterValue$message",
          14  +
        "com.amazonaws.ssm",
          15  +
        "InvalidInstancePropertyFilterValue",
          16  +
    ),
          17  +
    ::aws_smithy_schema::ShapeType::String,
          18  +
    "message",
          19  +
    0,
          20  +
);
          21  +
static INVALIDINSTANCEPROPERTYFILTERVALUE_TRAITS: std::sync::LazyLock<::aws_smithy_schema::TraitMap> = std::sync::LazyLock::new(|| {
          22  +
    let mut map = ::aws_smithy_schema::TraitMap::new();
          23  +
    map.insert(Box::new(::aws_smithy_schema::DocumentTrait::new(
          24  +
        ::aws_smithy_schema::ShapeId::from_parts("aws.protocols#awsQueryError", "aws.protocols", "awsQueryError"),
          25  +
        {
          26  +
            let mut obj = ::aws_smithy_types::document::DocumentObject::new();
          27  +
            obj.insert(
          28  +
                "code".to_string(),
          29  +
                ::aws_smithy_types::Document::String("InvalidInstancePropertyFilterValue".to_string()),
          30  +
            );
          31  +
            obj.insert(
          32  +
                "httpResponseCode".to_string(),
          33  +
                ::aws_smithy_types::Document::Number(::aws_smithy_types::Number::PosInt(400u64)),
          34  +
            );
          35  +
            ::aws_smithy_types::Document::Object(obj)
          36  +
        },
          37  +
    )));
          38  +
    map
          39  +
});
          40  +
static INVALIDINSTANCEPROPERTYFILTERVALUE_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          41  +
    ::aws_smithy_schema::ShapeId::from_parts(
          42  +
        "com.amazonaws.ssm#InvalidInstancePropertyFilterValue",
          43  +
        "com.amazonaws.ssm",
          44  +
        "InvalidInstancePropertyFilterValue",
          45  +
    ),
          46  +
    ::aws_smithy_schema::ShapeType::Structure,
          47  +
    &[&INVALIDINSTANCEPROPERTYFILTERVALUE_MEMBER_MESSAGE],
          48  +
)
          49  +
.with_traits(&INVALIDINSTANCEPROPERTYFILTERVALUE_TRAITS);
          50  +
impl InvalidInstancePropertyFilterValue {
          51  +
    /// The schema for this shape.
          52  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &INVALIDINSTANCEPROPERTYFILTERVALUE_SCHEMA;
          53  +
}
          54  +
impl ::aws_smithy_schema::serde::SerializableStruct for InvalidInstancePropertyFilterValue {
          55  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          56  +
    fn serialize_members(
          57  +
        &self,
          58  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          59  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          60  +
        if let Some(ref val) = self.message {
          61  +
            ser.write_string(&INVALIDINSTANCEPROPERTYFILTERVALUE_MEMBER_MESSAGE, val)?;
          62  +
        }
          63  +
        Ok(())
          64  +
    }
          65  +
}
          66  +
impl InvalidInstancePropertyFilterValue {
          67  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
          68  +
    pub fn deserialize(
          69  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          70  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          71  +
        #[allow(unused_variables, unused_mut)]
          72  +
        let mut builder = Self::builder();
          73  +
        #[allow(
          74  +
            unused_variables,
          75  +
            unreachable_code,
          76  +
            clippy::single_match,
          77  +
            clippy::match_single_binding,
          78  +
            clippy::diverging_sub_expression
          79  +
        )]
          80  +
        deserializer.read_struct(&INVALIDINSTANCEPROPERTYFILTERVALUE_SCHEMA, &mut |member, deser| {
          81  +
            match member.member_index() {
          82  +
                Some(0) => {
          83  +
                    if deser.is_null() {
          84  +
                        deser.read_null()?;
          85  +
                    } else {
          86  +
                        builder.message = Some(deser.read_string(member)?);
          87  +
                    }
          88  +
                }
          89  +
                _ => {}
          90  +
            }
          91  +
            Ok(())
          92  +
        })?;
          93  +
        Ok(builder.build())
          94  +
    }
          95  +
}
          96  +
impl InvalidInstancePropertyFilterValue {
          97  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          98  +
    pub fn deserialize_with_response(
          99  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         100  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         101  +
        _status: u16,
         102  +
        body: &[u8],
         103  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         104  +
        if body.is_empty() {
         105  +
            return Ok(Self::builder().build());
         106  +
        }
         107  +
        Self::deserialize(deserializer)
         108  +
    }
         109  +
}
         110  +
impl InvalidInstancePropertyFilterValue {
         111  +
    /// Returns the error message.
         112  +
    pub fn message(&self) -> ::std::option::Option<&str> {
         113  +
        self.message.as_deref()
         114  +
    }
         115  +
}
         116  +
impl ::std::fmt::Display for InvalidInstancePropertyFilterValue {
         117  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         118  +
        ::std::write!(f, "InvalidInstancePropertyFilterValue")?;
         119  +
        if let ::std::option::Option::Some(inner_1) = &self.message {
         120  +
            {
         121  +
                ::std::write!(f, ": {inner_1}")?;
         122  +
            }
         123  +
        }
         124  +
        Ok(())
         125  +
    }
         126  +
}
         127  +
impl ::std::error::Error for InvalidInstancePropertyFilterValue {}
         128  +
impl ::aws_types::request_id::RequestId for crate::types::error::InvalidInstancePropertyFilterValue {
         129  +
    fn request_id(&self) -> Option<&str> {
         130  +
        use ::aws_smithy_types::error::metadata::ProvideErrorMetadata;
         131  +
        self.meta().request_id()
         132  +
    }
         133  +
}
         134  +
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for InvalidInstancePropertyFilterValue {
         135  +
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         136  +
        &self.meta
         137  +
    }
         138  +
}
         139  +
impl InvalidInstancePropertyFilterValue {
         140  +
    /// Creates a new builder-style object to manufacture [`InvalidInstancePropertyFilterValue`](crate::types::error::InvalidInstancePropertyFilterValue).
         141  +
    pub fn builder() -> crate::types::error::builders::InvalidInstancePropertyFilterValueBuilder {
         142  +
        crate::types::error::builders::InvalidInstancePropertyFilterValueBuilder::default()
         143  +
    }
         144  +
}
         145  +
         146  +
/// A builder for [`InvalidInstancePropertyFilterValue`](crate::types::error::InvalidInstancePropertyFilterValue).
         147  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         148  +
#[non_exhaustive]
         149  +
pub struct InvalidInstancePropertyFilterValueBuilder {
         150  +
    pub(crate) message: ::std::option::Option<::std::string::String>,
         151  +
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
         152  +
}
         153  +
impl InvalidInstancePropertyFilterValueBuilder {
         154  +
    #[allow(missing_docs)] // documentation missing in model
         155  +
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         156  +
        self.message = ::std::option::Option::Some(input.into());
         157  +
        self
         158  +
    }
         159  +
    #[allow(missing_docs)] // documentation missing in model
         160  +
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         161  +
        self.message = input;
         162  +
        self
         163  +
    }
         164  +
    #[allow(missing_docs)] // documentation missing in model
         165  +
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
         166  +
        &self.message
         167  +
    }
         168  +
    /// Sets error metadata
         169  +
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
         170  +
        self.meta = Some(meta);
         171  +
        self
         172  +
    }
         173  +
         174  +
    /// Sets error metadata
         175  +
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
         176  +
        self.meta = meta;
         177  +
        self
         178  +
    }
         179  +
    /// Consumes the builder and constructs a [`InvalidInstancePropertyFilterValue`](crate::types::error::InvalidInstancePropertyFilterValue).
         180  +
    pub fn build(self) -> crate::types::error::InvalidInstancePropertyFilterValue {
         181  +
        crate::types::error::InvalidInstancePropertyFilterValue {
         182  +
            message: self.message,
         183  +
            meta: self.meta.unwrap_or_default(),
         184  +
        }
         185  +
    }
         186  +
}

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

@@ -0,1 +0,186 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>The specified inventory group isn't valid.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct InvalidInventoryGroupException {
           7  +
    #[allow(missing_docs)] // documentation missing in model
           8  +
    pub message: ::std::option::Option<::std::string::String>,
           9  +
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          10  +
}
          11  +
static INVALIDINVENTORYGROUPEXCEPTION_MEMBER_MESSAGE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          12  +
    ::aws_smithy_schema::ShapeId::from_parts(
          13  +
        "com.amazonaws.ssm#InvalidInventoryGroupException$Message",
          14  +
        "com.amazonaws.ssm",
          15  +
        "InvalidInventoryGroupException",
          16  +
    ),
          17  +
    ::aws_smithy_schema::ShapeType::String,
          18  +
    "Message",
          19  +
    0,
          20  +
);
          21  +
static INVALIDINVENTORYGROUPEXCEPTION_TRAITS: std::sync::LazyLock<::aws_smithy_schema::TraitMap> = std::sync::LazyLock::new(|| {
          22  +
    let mut map = ::aws_smithy_schema::TraitMap::new();
          23  +
    map.insert(Box::new(::aws_smithy_schema::DocumentTrait::new(
          24  +
        ::aws_smithy_schema::ShapeId::from_parts("aws.protocols#awsQueryError", "aws.protocols", "awsQueryError"),
          25  +
        {
          26  +
            let mut obj = ::aws_smithy_types::document::DocumentObject::new();
          27  +
            obj.insert(
          28  +
                "code".to_string(),
          29  +
                ::aws_smithy_types::Document::String("InvalidInventoryGroup".to_string()),
          30  +
            );
          31  +
            obj.insert(
          32  +
                "httpResponseCode".to_string(),
          33  +
                ::aws_smithy_types::Document::Number(::aws_smithy_types::Number::PosInt(400u64)),
          34  +
            );
          35  +
            ::aws_smithy_types::Document::Object(obj)
          36  +
        },
          37  +
    )));
          38  +
    map
          39  +
});
          40  +
static INVALIDINVENTORYGROUPEXCEPTION_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          41  +
    ::aws_smithy_schema::ShapeId::from_parts(
          42  +
        "com.amazonaws.ssm#InvalidInventoryGroupException",
          43  +
        "com.amazonaws.ssm",
          44  +
        "InvalidInventoryGroupException",
          45  +
    ),
          46  +
    ::aws_smithy_schema::ShapeType::Structure,
          47  +
    &[&INVALIDINVENTORYGROUPEXCEPTION_MEMBER_MESSAGE],
          48  +
)
          49  +
.with_traits(&INVALIDINVENTORYGROUPEXCEPTION_TRAITS);
          50  +
impl InvalidInventoryGroupException {
          51  +
    /// The schema for this shape.
          52  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &INVALIDINVENTORYGROUPEXCEPTION_SCHEMA;
          53  +
}
          54  +
impl ::aws_smithy_schema::serde::SerializableStruct for InvalidInventoryGroupException {
          55  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          56  +
    fn serialize_members(
          57  +
        &self,
          58  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          59  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          60  +
        if let Some(ref val) = self.message {
          61  +
            ser.write_string(&INVALIDINVENTORYGROUPEXCEPTION_MEMBER_MESSAGE, val)?;
          62  +
        }
          63  +
        Ok(())
          64  +
    }
          65  +
}
          66  +
impl InvalidInventoryGroupException {
          67  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
          68  +
    pub fn deserialize(
          69  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          70  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          71  +
        #[allow(unused_variables, unused_mut)]
          72  +
        let mut builder = Self::builder();
          73  +
        #[allow(
          74  +
            unused_variables,
          75  +
            unreachable_code,
          76  +
            clippy::single_match,
          77  +
            clippy::match_single_binding,
          78  +
            clippy::diverging_sub_expression
          79  +
        )]
          80  +
        deserializer.read_struct(&INVALIDINVENTORYGROUPEXCEPTION_SCHEMA, &mut |member, deser| {
          81  +
            match member.member_index() {
          82  +
                Some(0) => {
          83  +
                    if deser.is_null() {
          84  +
                        deser.read_null()?;
          85  +
                    } else {
          86  +
                        builder.message = Some(deser.read_string(member)?);
          87  +
                    }
          88  +
                }
          89  +
                _ => {}
          90  +
            }
          91  +
            Ok(())
          92  +
        })?;
          93  +
        Ok(builder.build())
          94  +
    }
          95  +
}
          96  +
impl InvalidInventoryGroupException {
          97  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          98  +
    pub fn deserialize_with_response(
          99  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         100  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         101  +
        _status: u16,
         102  +
        body: &[u8],
         103  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         104  +
        if body.is_empty() {
         105  +
            return Ok(Self::builder().build());
         106  +
        }
         107  +
        Self::deserialize(deserializer)
         108  +
    }
         109  +
}
         110  +
impl InvalidInventoryGroupException {
         111  +
    /// Returns the error message.
         112  +
    pub fn message(&self) -> ::std::option::Option<&str> {
         113  +
        self.message.as_deref()
         114  +
    }
         115  +
}
         116  +
impl ::std::fmt::Display for InvalidInventoryGroupException {
         117  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         118  +
        ::std::write!(f, "InvalidInventoryGroupException")?;
         119  +
        if let ::std::option::Option::Some(inner_1) = &self.message {
         120  +
            {
         121  +
                ::std::write!(f, ": {inner_1}")?;
         122  +
            }
         123  +
        }
         124  +
        Ok(())
         125  +
    }
         126  +
}
         127  +
impl ::std::error::Error for InvalidInventoryGroupException {}
         128  +
impl ::aws_types::request_id::RequestId for crate::types::error::InvalidInventoryGroupException {
         129  +
    fn request_id(&self) -> Option<&str> {
         130  +
        use ::aws_smithy_types::error::metadata::ProvideErrorMetadata;
         131  +
        self.meta().request_id()
         132  +
    }
         133  +
}
         134  +
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for InvalidInventoryGroupException {
         135  +
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         136  +
        &self.meta
         137  +
    }
         138  +
}
         139  +
impl InvalidInventoryGroupException {
         140  +
    /// Creates a new builder-style object to manufacture [`InvalidInventoryGroupException`](crate::types::error::InvalidInventoryGroupException).
         141  +
    pub fn builder() -> crate::types::error::builders::InvalidInventoryGroupExceptionBuilder {
         142  +
        crate::types::error::builders::InvalidInventoryGroupExceptionBuilder::default()
         143  +
    }
         144  +
}
         145  +
         146  +
/// A builder for [`InvalidInventoryGroupException`](crate::types::error::InvalidInventoryGroupException).
         147  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         148  +
#[non_exhaustive]
         149  +
pub struct InvalidInventoryGroupExceptionBuilder {
         150  +
    pub(crate) message: ::std::option::Option<::std::string::String>,
         151  +
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
         152  +
}
         153  +
impl InvalidInventoryGroupExceptionBuilder {
         154  +
    #[allow(missing_docs)] // documentation missing in model
         155  +
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         156  +
        self.message = ::std::option::Option::Some(input.into());
         157  +
        self
         158  +
    }
         159  +
    #[allow(missing_docs)] // documentation missing in model
         160  +
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         161  +
        self.message = input;
         162  +
        self
         163  +
    }
         164  +
    #[allow(missing_docs)] // documentation missing in model
         165  +
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
         166  +
        &self.message
         167  +
    }
         168  +
    /// Sets error metadata
         169  +
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
         170  +
        self.meta = Some(meta);
         171  +
        self
         172  +
    }
         173  +
         174  +
    /// Sets error metadata
         175  +
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
         176  +
        self.meta = meta;
         177  +
        self
         178  +
    }
         179  +
    /// Consumes the builder and constructs a [`InvalidInventoryGroupException`](crate::types::error::InvalidInventoryGroupException).
         180  +
    pub fn build(self) -> crate::types::error::InvalidInventoryGroupException {
         181  +
        crate::types::error::InvalidInventoryGroupException {
         182  +
            message: self.message,
         183  +
            meta: self.meta.unwrap_or_default(),
         184  +
        }
         185  +
    }
         186  +
}