AWS SDK

AWS SDK

rev. 3388bf5e18f4269f2b46f39cdc814c5c39d413d0

Files changed:

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

@@ -0,1 +0,186 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>The operating systems you specified isn't supported, or the operation isn't supported for the operating system.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct UnsupportedOperatingSystem {
           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 UNSUPPORTEDOPERATINGSYSTEM_MEMBER_MESSAGE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          12  +
    ::aws_smithy_schema::ShapeId::from_parts(
          13  +
        "com.amazonaws.ssm#UnsupportedOperatingSystem$Message",
          14  +
        "com.amazonaws.ssm",
          15  +
        "UnsupportedOperatingSystem",
          16  +
    ),
          17  +
    ::aws_smithy_schema::ShapeType::String,
          18  +
    "Message",
          19  +
    0,
          20  +
);
          21  +
static UNSUPPORTEDOPERATINGSYSTEM_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("UnsupportedOperatingSystem".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 UNSUPPORTEDOPERATINGSYSTEM_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          41  +
    ::aws_smithy_schema::ShapeId::from_parts(
          42  +
        "com.amazonaws.ssm#UnsupportedOperatingSystem",
          43  +
        "com.amazonaws.ssm",
          44  +
        "UnsupportedOperatingSystem",
          45  +
    ),
          46  +
    ::aws_smithy_schema::ShapeType::Structure,
          47  +
    &[&UNSUPPORTEDOPERATINGSYSTEM_MEMBER_MESSAGE],
          48  +
)
          49  +
.with_traits(&UNSUPPORTEDOPERATINGSYSTEM_TRAITS);
          50  +
impl UnsupportedOperatingSystem {
          51  +
    /// The schema for this shape.
          52  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &UNSUPPORTEDOPERATINGSYSTEM_SCHEMA;
          53  +
}
          54  +
impl ::aws_smithy_schema::serde::SerializableStruct for UnsupportedOperatingSystem {
          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(&UNSUPPORTEDOPERATINGSYSTEM_MEMBER_MESSAGE, val)?;
          62  +
        }
          63  +
        Ok(())
          64  +
    }
          65  +
}
          66  +
impl UnsupportedOperatingSystem {
          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(&UNSUPPORTEDOPERATINGSYSTEM_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 UnsupportedOperatingSystem {
          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 UnsupportedOperatingSystem {
         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 UnsupportedOperatingSystem {
         117  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         118  +
        ::std::write!(f, "UnsupportedOperatingSystem")?;
         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 UnsupportedOperatingSystem {}
         128  +
impl ::aws_types::request_id::RequestId for crate::types::error::UnsupportedOperatingSystem {
         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 UnsupportedOperatingSystem {
         135  +
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         136  +
        &self.meta
         137  +
    }
         138  +
}
         139  +
impl UnsupportedOperatingSystem {
         140  +
    /// Creates a new builder-style object to manufacture [`UnsupportedOperatingSystem`](crate::types::error::UnsupportedOperatingSystem).
         141  +
    pub fn builder() -> crate::types::error::builders::UnsupportedOperatingSystemBuilder {
         142  +
        crate::types::error::builders::UnsupportedOperatingSystemBuilder::default()
         143  +
    }
         144  +
}
         145  +
         146  +
/// A builder for [`UnsupportedOperatingSystem`](crate::types::error::UnsupportedOperatingSystem).
         147  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         148  +
#[non_exhaustive]
         149  +
pub struct UnsupportedOperatingSystemBuilder {
         150  +
    pub(crate) message: ::std::option::Option<::std::string::String>,
         151  +
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
         152  +
}
         153  +
impl UnsupportedOperatingSystemBuilder {
         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 [`UnsupportedOperatingSystem`](crate::types::error::UnsupportedOperatingSystem).
         180  +
    pub fn build(self) -> crate::types::error::UnsupportedOperatingSystem {
         181  +
        crate::types::error::UnsupportedOperatingSystem {
         182  +
            message: self.message,
         183  +
            meta: self.meta.unwrap_or_default(),
         184  +
        }
         185  +
    }
         186  +
}

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

@@ -0,1 +0,186 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>This operation is not supported for the current account. You must first enable the Systems Manager integrated experience in your account.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct UnsupportedOperationException {
           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 UNSUPPORTEDOPERATIONEXCEPTION_MEMBER_MESSAGE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          12  +
    ::aws_smithy_schema::ShapeId::from_parts(
          13  +
        "com.amazonaws.ssm#UnsupportedOperationException$Message",
          14  +
        "com.amazonaws.ssm",
          15  +
        "UnsupportedOperationException",
          16  +
    ),
          17  +
    ::aws_smithy_schema::ShapeType::String,
          18  +
    "Message",
          19  +
    0,
          20  +
);
          21  +
static UNSUPPORTEDOPERATIONEXCEPTION_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("UnsupportedOperation".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 UNSUPPORTEDOPERATIONEXCEPTION_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          41  +
    ::aws_smithy_schema::ShapeId::from_parts(
          42  +
        "com.amazonaws.ssm#UnsupportedOperationException",
          43  +
        "com.amazonaws.ssm",
          44  +
        "UnsupportedOperationException",
          45  +
    ),
          46  +
    ::aws_smithy_schema::ShapeType::Structure,
          47  +
    &[&UNSUPPORTEDOPERATIONEXCEPTION_MEMBER_MESSAGE],
          48  +
)
          49  +
.with_traits(&UNSUPPORTEDOPERATIONEXCEPTION_TRAITS);
          50  +
impl UnsupportedOperationException {
          51  +
    /// The schema for this shape.
          52  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &UNSUPPORTEDOPERATIONEXCEPTION_SCHEMA;
          53  +
}
          54  +
impl ::aws_smithy_schema::serde::SerializableStruct for UnsupportedOperationException {
          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(&UNSUPPORTEDOPERATIONEXCEPTION_MEMBER_MESSAGE, val)?;
          62  +
        }
          63  +
        Ok(())
          64  +
    }
          65  +
}
          66  +
impl UnsupportedOperationException {
          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(&UNSUPPORTEDOPERATIONEXCEPTION_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 UnsupportedOperationException {
          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 UnsupportedOperationException {
         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 UnsupportedOperationException {
         117  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         118  +
        ::std::write!(f, "UnsupportedOperationException")?;
         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 UnsupportedOperationException {}
         128  +
impl ::aws_types::request_id::RequestId for crate::types::error::UnsupportedOperationException {
         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 UnsupportedOperationException {
         135  +
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         136  +
        &self.meta
         137  +
    }
         138  +
}
         139  +
impl UnsupportedOperationException {
         140  +
    /// Creates a new builder-style object to manufacture [`UnsupportedOperationException`](crate::types::error::UnsupportedOperationException).
         141  +
    pub fn builder() -> crate::types::error::builders::UnsupportedOperationExceptionBuilder {
         142  +
        crate::types::error::builders::UnsupportedOperationExceptionBuilder::default()
         143  +
    }
         144  +
}
         145  +
         146  +
/// A builder for [`UnsupportedOperationException`](crate::types::error::UnsupportedOperationException).
         147  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         148  +
#[non_exhaustive]
         149  +
pub struct UnsupportedOperationExceptionBuilder {
         150  +
    pub(crate) message: ::std::option::Option<::std::string::String>,
         151  +
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
         152  +
}
         153  +
impl UnsupportedOperationExceptionBuilder {
         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 [`UnsupportedOperationException`](crate::types::error::UnsupportedOperationException).
         180  +
    pub fn build(self) -> crate::types::error::UnsupportedOperationException {
         181  +
        crate::types::error::UnsupportedOperationException {
         182  +
            message: self.message,
         183  +
            meta: self.meta.unwrap_or_default(),
         184  +
        }
         185  +
    }
         186  +
}

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

@@ -0,1 +0,186 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>The parameter type isn't supported.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct UnsupportedParameterType {
           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 UNSUPPORTEDPARAMETERTYPE_MEMBER_MESSAGE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          12  +
    ::aws_smithy_schema::ShapeId::from_parts(
          13  +
        "com.amazonaws.ssm#UnsupportedParameterType$message",
          14  +
        "com.amazonaws.ssm",
          15  +
        "UnsupportedParameterType",
          16  +
    ),
          17  +
    ::aws_smithy_schema::ShapeType::String,
          18  +
    "message",
          19  +
    0,
          20  +
);
          21  +
static UNSUPPORTEDPARAMETERTYPE_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("UnsupportedParameterType".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 UNSUPPORTEDPARAMETERTYPE_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          41  +
    ::aws_smithy_schema::ShapeId::from_parts(
          42  +
        "com.amazonaws.ssm#UnsupportedParameterType",
          43  +
        "com.amazonaws.ssm",
          44  +
        "UnsupportedParameterType",
          45  +
    ),
          46  +
    ::aws_smithy_schema::ShapeType::Structure,
          47  +
    &[&UNSUPPORTEDPARAMETERTYPE_MEMBER_MESSAGE],
          48  +
)
          49  +
.with_traits(&UNSUPPORTEDPARAMETERTYPE_TRAITS);
          50  +
impl UnsupportedParameterType {
          51  +
    /// The schema for this shape.
          52  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &UNSUPPORTEDPARAMETERTYPE_SCHEMA;
          53  +
}
          54  +
impl ::aws_smithy_schema::serde::SerializableStruct for UnsupportedParameterType {
          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(&UNSUPPORTEDPARAMETERTYPE_MEMBER_MESSAGE, val)?;
          62  +
        }
          63  +
        Ok(())
          64  +
    }
          65  +
}
          66  +
impl UnsupportedParameterType {
          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(&UNSUPPORTEDPARAMETERTYPE_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 UnsupportedParameterType {
          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 UnsupportedParameterType {
         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 UnsupportedParameterType {
         117  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         118  +
        ::std::write!(f, "UnsupportedParameterType")?;
         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 UnsupportedParameterType {}
         128  +
impl ::aws_types::request_id::RequestId for crate::types::error::UnsupportedParameterType {
         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 UnsupportedParameterType {
         135  +
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         136  +
        &self.meta
         137  +
    }
         138  +
}
         139  +
impl UnsupportedParameterType {
         140  +
    /// Creates a new builder-style object to manufacture [`UnsupportedParameterType`](crate::types::error::UnsupportedParameterType).
         141  +
    pub fn builder() -> crate::types::error::builders::UnsupportedParameterTypeBuilder {
         142  +
        crate::types::error::builders::UnsupportedParameterTypeBuilder::default()
         143  +
    }
         144  +
}
         145  +
         146  +
/// A builder for [`UnsupportedParameterType`](crate::types::error::UnsupportedParameterType).
         147  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         148  +
#[non_exhaustive]
         149  +
pub struct UnsupportedParameterTypeBuilder {
         150  +
    pub(crate) message: ::std::option::Option<::std::string::String>,
         151  +
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
         152  +
}
         153  +
impl UnsupportedParameterTypeBuilder {
         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 [`UnsupportedParameterType`](crate::types::error::UnsupportedParameterType).
         180  +
    pub fn build(self) -> crate::types::error::UnsupportedParameterType {
         181  +
        crate::types::error::UnsupportedParameterType {
         182  +
            message: self.message,
         183  +
            meta: self.meta.unwrap_or_default(),
         184  +
        }
         185  +
    }
         186  +
}

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

@@ -0,1 +0,186 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>The document doesn't support the platform type of the given managed node IDs. For example, you sent an document for a Windows managed node to a Linux node.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct UnsupportedPlatformType {
           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 UNSUPPORTEDPLATFORMTYPE_MEMBER_MESSAGE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          12  +
    ::aws_smithy_schema::ShapeId::from_parts(
          13  +
        "com.amazonaws.ssm#UnsupportedPlatformType$Message",
          14  +
        "com.amazonaws.ssm",
          15  +
        "UnsupportedPlatformType",
          16  +
    ),
          17  +
    ::aws_smithy_schema::ShapeType::String,
          18  +
    "Message",
          19  +
    0,
          20  +
);
          21  +
static UNSUPPORTEDPLATFORMTYPE_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("UnsupportedPlatformType".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 UNSUPPORTEDPLATFORMTYPE_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          41  +
    ::aws_smithy_schema::ShapeId::from_parts(
          42  +
        "com.amazonaws.ssm#UnsupportedPlatformType",
          43  +
        "com.amazonaws.ssm",
          44  +
        "UnsupportedPlatformType",
          45  +
    ),
          46  +
    ::aws_smithy_schema::ShapeType::Structure,
          47  +
    &[&UNSUPPORTEDPLATFORMTYPE_MEMBER_MESSAGE],
          48  +
)
          49  +
.with_traits(&UNSUPPORTEDPLATFORMTYPE_TRAITS);
          50  +
impl UnsupportedPlatformType {
          51  +
    /// The schema for this shape.
          52  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &UNSUPPORTEDPLATFORMTYPE_SCHEMA;
          53  +
}
          54  +
impl ::aws_smithy_schema::serde::SerializableStruct for UnsupportedPlatformType {
          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(&UNSUPPORTEDPLATFORMTYPE_MEMBER_MESSAGE, val)?;
          62  +
        }
          63  +
        Ok(())
          64  +
    }
          65  +
}
          66  +
impl UnsupportedPlatformType {
          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(&UNSUPPORTEDPLATFORMTYPE_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 UnsupportedPlatformType {
          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 UnsupportedPlatformType {
         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 UnsupportedPlatformType {
         117  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         118  +
        ::std::write!(f, "UnsupportedPlatformType")?;
         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 UnsupportedPlatformType {}
         128  +
impl ::aws_types::request_id::RequestId for crate::types::error::UnsupportedPlatformType {
         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 UnsupportedPlatformType {
         135  +
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         136  +
        &self.meta
         137  +
    }
         138  +
}
         139  +
impl UnsupportedPlatformType {
         140  +
    /// Creates a new builder-style object to manufacture [`UnsupportedPlatformType`](crate::types::error::UnsupportedPlatformType).
         141  +
    pub fn builder() -> crate::types::error::builders::UnsupportedPlatformTypeBuilder {
         142  +
        crate::types::error::builders::UnsupportedPlatformTypeBuilder::default()
         143  +
    }
         144  +
}
         145  +
         146  +
/// A builder for [`UnsupportedPlatformType`](crate::types::error::UnsupportedPlatformType).
         147  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         148  +
#[non_exhaustive]
         149  +
pub struct UnsupportedPlatformTypeBuilder {
         150  +
    pub(crate) message: ::std::option::Option<::std::string::String>,
         151  +
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
         152  +
}
         153  +
impl UnsupportedPlatformTypeBuilder {
         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 [`UnsupportedPlatformType`](crate::types::error::UnsupportedPlatformType).
         180  +
    pub fn build(self) -> crate::types::error::UnsupportedPlatformType {
         181  +
        crate::types::error::UnsupportedPlatformType {
         182  +
            message: self.message,
         183  +
            meta: self.meta.unwrap_or_default(),
         184  +
        }
         185  +
    }
         186  +
}

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

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

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

@@ -0,1 +0,280 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub use crate::types::error::_internal_server_error::InternalServerErrorBuilder;
           3  +
           4  +
pub use crate::types::error::_invalid_resource_id::InvalidResourceIdBuilder;
           5  +
           6  +
pub use crate::types::error::_invalid_resource_type::InvalidResourceTypeBuilder;
           7  +
           8  +
pub use crate::types::error::_too_many_tags_error::TooManyTagsErrorBuilder;
           9  +
          10  +
pub use crate::types::error::_too_many_updates::TooManyUpdatesBuilder;
          11  +
          12  +
pub use crate::types::error::_ops_item_conflict_exception::OpsItemConflictExceptionBuilder;
          13  +
          14  +
pub use crate::types::error::_ops_item_invalid_parameter_exception::OpsItemInvalidParameterExceptionBuilder;
          15  +
          16  +
pub use crate::types::error::_ops_item_limit_exceeded_exception::OpsItemLimitExceededExceptionBuilder;
          17  +
          18  +
pub use crate::types::error::_ops_item_not_found_exception::OpsItemNotFoundExceptionBuilder;
          19  +
          20  +
pub use crate::types::error::_ops_item_related_item_already_exists_exception::OpsItemRelatedItemAlreadyExistsExceptionBuilder;
          21  +
          22  +
pub use crate::types::error::_duplicate_instance_id::DuplicateInstanceIdBuilder;
          23  +
          24  +
pub use crate::types::error::_invalid_command_id::InvalidCommandIdBuilder;
          25  +
          26  +
pub use crate::types::error::_invalid_instance_id::InvalidInstanceIdBuilder;
          27  +
          28  +
pub use crate::types::error::_does_not_exist_exception::DoesNotExistExceptionBuilder;
          29  +
          30  +
pub use crate::types::error::_invalid_parameters::InvalidParametersBuilder;
          31  +
          32  +
pub use crate::types::error::_association_already_exists::AssociationAlreadyExistsBuilder;
          33  +
          34  +
pub use crate::types::error::_association_limit_exceeded::AssociationLimitExceededBuilder;
          35  +
          36  +
pub use crate::types::error::_invalid_document::InvalidDocumentBuilder;
          37  +
          38  +
pub use crate::types::error::_invalid_document_version::InvalidDocumentVersionBuilder;
          39  +
          40  +
pub use crate::types::error::_invalid_output_location::InvalidOutputLocationBuilder;
          41  +
          42  +
pub use crate::types::error::_invalid_schedule::InvalidScheduleBuilder;
          43  +
          44  +
pub use crate::types::error::_invalid_tag::InvalidTagBuilder;
          45  +
          46  +
pub use crate::types::error::_invalid_target::InvalidTargetBuilder;
          47  +
          48  +
pub use crate::types::error::_invalid_target_maps::InvalidTargetMapsBuilder;
          49  +
          50  +
pub use crate::types::error::_unsupported_platform_type::UnsupportedPlatformTypeBuilder;
          51  +
          52  +
pub use crate::types::error::_conflict_exception::ConflictExceptionBuilder;
          53  +
          54  +
pub use crate::types::error::_service_quota_exceeded_exception::ServiceQuotaExceededExceptionBuilder;
          55  +
          56  +
pub use crate::types::error::_document_already_exists::DocumentAlreadyExistsBuilder;
          57  +
          58  +
pub use crate::types::error::_document_limit_exceeded::DocumentLimitExceededBuilder;
          59  +
          60  +
pub use crate::types::error::_invalid_document_content::InvalidDocumentContentBuilder;
          61  +
          62  +
pub use crate::types::error::_invalid_document_schema_version::InvalidDocumentSchemaVersionBuilder;
          63  +
          64  +
pub use crate::types::error::_max_document_size_exceeded::MaxDocumentSizeExceededBuilder;
          65  +
          66  +
pub use crate::types::error::_no_longer_supported_exception::NoLongerSupportedExceptionBuilder;
          67  +
          68  +
pub use crate::types::error::_idempotent_parameter_mismatch::IdempotentParameterMismatchBuilder;
          69  +
          70  +
pub use crate::types::error::_resource_limit_exceeded_exception::ResourceLimitExceededExceptionBuilder;
          71  +
          72  +
pub use crate::types::error::_ops_item_access_denied_exception::OpsItemAccessDeniedExceptionBuilder;
          73  +
          74  +
pub use crate::types::error::_ops_item_already_exists_exception::OpsItemAlreadyExistsExceptionBuilder;
          75  +
          76  +
pub use crate::types::error::_ops_metadata_already_exists_exception::OpsMetadataAlreadyExistsExceptionBuilder;
          77  +
          78  +
pub use crate::types::error::_ops_metadata_invalid_argument_exception::OpsMetadataInvalidArgumentExceptionBuilder;
          79  +
          80  +
pub use crate::types::error::_ops_metadata_limit_exceeded_exception::OpsMetadataLimitExceededExceptionBuilder;
          81  +
          82  +
pub use crate::types::error::_ops_metadata_too_many_updates_exception::OpsMetadataTooManyUpdatesExceptionBuilder;
          83  +
          84  +
pub use crate::types::error::_resource_data_sync_already_exists_exception::ResourceDataSyncAlreadyExistsExceptionBuilder;
          85  +
          86  +
pub use crate::types::error::_resource_data_sync_count_exceeded_exception::ResourceDataSyncCountExceededExceptionBuilder;
          87  +
          88  +
pub use crate::types::error::_resource_data_sync_invalid_configuration_exception::ResourceDataSyncInvalidConfigurationExceptionBuilder;
          89  +
          90  +
pub use crate::types::error::_invalid_activation::InvalidActivationBuilder;
          91  +
          92  +
pub use crate::types::error::_invalid_activation_id::InvalidActivationIdBuilder;
          93  +
          94  +
pub use crate::types::error::_association_does_not_exist::AssociationDoesNotExistBuilder;
          95  +
          96  +
pub use crate::types::error::_resource_not_found_exception::ResourceNotFoundExceptionBuilder;
          97  +
          98  +
pub use crate::types::error::_associated_instances::AssociatedInstancesBuilder;
          99  +
         100  +
pub use crate::types::error::_invalid_document_operation::InvalidDocumentOperationBuilder;
         101  +
         102  +
pub use crate::types::error::_invalid_delete_inventory_parameters_exception::InvalidDeleteInventoryParametersExceptionBuilder;
         103  +
         104  +
pub use crate::types::error::_invalid_inventory_request_exception::InvalidInventoryRequestExceptionBuilder;
         105  +
         106  +
pub use crate::types::error::_invalid_option_exception::InvalidOptionExceptionBuilder;
         107  +
         108  +
pub use crate::types::error::_invalid_type_name_exception::InvalidTypeNameExceptionBuilder;
         109  +
         110  +
pub use crate::types::error::_ops_metadata_not_found_exception::OpsMetadataNotFoundExceptionBuilder;
         111  +
         112  +
pub use crate::types::error::_parameter_not_found::ParameterNotFoundBuilder;
         113  +
         114  +
pub use crate::types::error::_resource_in_use_exception::ResourceInUseExceptionBuilder;
         115  +
         116  +
pub use crate::types::error::_resource_data_sync_not_found_exception::ResourceDataSyncNotFoundExceptionBuilder;
         117  +
         118  +
pub use crate::types::error::_malformed_resource_policy_document_exception::MalformedResourcePolicyDocumentExceptionBuilder;
         119  +
         120  +
pub use crate::types::error::_resource_policy_conflict_exception::ResourcePolicyConflictExceptionBuilder;
         121  +
         122  +
pub use crate::types::error::_resource_policy_invalid_parameter_exception::ResourcePolicyInvalidParameterExceptionBuilder;
         123  +
         124  +
pub use crate::types::error::_resource_policy_not_found_exception::ResourcePolicyNotFoundExceptionBuilder;
         125  +
         126  +
pub use crate::types::error::_target_in_use_exception::TargetInUseExceptionBuilder;
         127  +
         128  +
pub use crate::types::error::_invalid_filter::InvalidFilterBuilder;
         129  +
         130  +
pub use crate::types::error::_invalid_next_token::InvalidNextTokenBuilder;
         131  +
         132  +
pub use crate::types::error::_invalid_association_version::InvalidAssociationVersionBuilder;
         133  +
         134  +
pub use crate::types::error::_association_execution_does_not_exist::AssociationExecutionDoesNotExistBuilder;
         135  +
         136  +
pub use crate::types::error::_invalid_filter_key::InvalidFilterKeyBuilder;
         137  +
         138  +
pub use crate::types::error::_invalid_filter_value::InvalidFilterValueBuilder;
         139  +
         140  +
pub use crate::types::error::_automation_execution_not_found_exception::AutomationExecutionNotFoundExceptionBuilder;
         141  +
         142  +
pub use crate::types::error::_invalid_permission_type::InvalidPermissionTypeBuilder;
         143  +
         144  +
pub use crate::types::error::_unsupported_operating_system::UnsupportedOperatingSystemBuilder;
         145  +
         146  +
pub use crate::types::error::_invalid_instance_information_filter_value::InvalidInstanceInformationFilterValueBuilder;
         147  +
         148  +
pub use crate::types::error::_invalid_instance_property_filter_value::InvalidInstancePropertyFilterValueBuilder;
         149  +
         150  +
pub use crate::types::error::_invalid_deletion_id_exception::InvalidDeletionIdExceptionBuilder;
         151  +
         152  +
pub use crate::types::error::_invalid_filter_option::InvalidFilterOptionBuilder;
         153  +
         154  +
pub use crate::types::error::_ops_item_related_item_association_not_found_exception::OpsItemRelatedItemAssociationNotFoundExceptionBuilder;
         155  +
         156  +
pub use crate::types::error::_access_denied_exception::AccessDeniedExceptionBuilder;
         157  +
         158  +
pub use crate::types::error::_throttling_exception::ThrottlingExceptionBuilder;
         159  +
         160  +
pub use crate::types::error::_validation_exception::ValidationExceptionBuilder;
         161  +
         162  +
pub use crate::types::error::_invalid_document_type::InvalidDocumentTypeBuilder;
         163  +
         164  +
pub use crate::types::error::_unsupported_calendar_exception::UnsupportedCalendarExceptionBuilder;
         165  +
         166  +
pub use crate::types::error::_invalid_plugin_name::InvalidPluginNameBuilder;
         167  +
         168  +
pub use crate::types::error::_invocation_does_not_exist::InvocationDoesNotExistBuilder;
         169  +
         170  +
pub use crate::types::error::_unsupported_feature_required_exception::UnsupportedFeatureRequiredExceptionBuilder;
         171  +
         172  +
pub use crate::types::error::_invalid_aggregator_exception::InvalidAggregatorExceptionBuilder;
         173  +
         174  +
pub use crate::types::error::_invalid_inventory_group_exception::InvalidInventoryGroupExceptionBuilder;
         175  +
         176  +
pub use crate::types::error::_invalid_result_attribute_exception::InvalidResultAttributeExceptionBuilder;
         177  +
         178  +
pub use crate::types::error::_invalid_key_id::InvalidKeyIdBuilder;
         179  +
         180  +
pub use crate::types::error::_parameter_version_not_found::ParameterVersionNotFoundBuilder;
         181  +
         182  +
pub use crate::types::error::_service_setting_not_found::ServiceSettingNotFoundBuilder;
         183  +
         184  +
pub use crate::types::error::_parameter_version_label_limit_exceeded::ParameterVersionLabelLimitExceededBuilder;
         185  +
         186  +
pub use crate::types::error::_unsupported_operation_exception::UnsupportedOperationExceptionBuilder;
         187  +
         188  +
pub use crate::types::error::_document_permission_limit::DocumentPermissionLimitBuilder;
         189  +
         190  +
pub use crate::types::error::_compliance_type_count_limit_exceeded_exception::ComplianceTypeCountLimitExceededExceptionBuilder;
         191  +
         192  +
pub use crate::types::error::_invalid_item_content_exception::InvalidItemContentExceptionBuilder;
         193  +
         194  +
pub use crate::types::error::_item_size_limit_exceeded_exception::ItemSizeLimitExceededExceptionBuilder;
         195  +
         196  +
pub use crate::types::error::_total_size_limit_exceeded_exception::TotalSizeLimitExceededExceptionBuilder;
         197  +
         198  +
pub use crate::types::error::_custom_schema_count_limit_exceeded_exception::CustomSchemaCountLimitExceededExceptionBuilder;
         199  +
         200  +
pub use crate::types::error::_invalid_inventory_item_context_exception::InvalidInventoryItemContextExceptionBuilder;
         201  +
         202  +
pub use crate::types::error::_item_content_mismatch_exception::ItemContentMismatchExceptionBuilder;
         203  +
         204  +
pub use crate::types::error::_sub_type_count_limit_exceeded_exception::SubTypeCountLimitExceededExceptionBuilder;
         205  +
         206  +
pub use crate::types::error::_unsupported_inventory_item_context_exception::UnsupportedInventoryItemContextExceptionBuilder;
         207  +
         208  +
pub use crate::types::error::_unsupported_inventory_schema_version_exception::UnsupportedInventorySchemaVersionExceptionBuilder;
         209  +
         210  +
pub use crate::types::error::_hierarchy_level_limit_exceeded_exception::HierarchyLevelLimitExceededExceptionBuilder;
         211  +
         212  +
pub use crate::types::error::_hierarchy_type_mismatch_exception::HierarchyTypeMismatchExceptionBuilder;
         213  +
         214  +
pub use crate::types::error::_incompatible_policy_exception::IncompatiblePolicyExceptionBuilder;
         215  +
         216  +
pub use crate::types::error::_invalid_allowed_pattern_exception::InvalidAllowedPatternExceptionBuilder;
         217  +
         218  +
pub use crate::types::error::_invalid_policy_attribute_exception::InvalidPolicyAttributeExceptionBuilder;
         219  +
         220  +
pub use crate::types::error::_invalid_policy_type_exception::InvalidPolicyTypeExceptionBuilder;
         221  +
         222  +
pub use crate::types::error::_parameter_already_exists::ParameterAlreadyExistsBuilder;
         223  +
         224  +
pub use crate::types::error::_parameter_limit_exceeded::ParameterLimitExceededBuilder;
         225  +
         226  +
pub use crate::types::error::_parameter_max_version_limit_exceeded::ParameterMaxVersionLimitExceededBuilder;
         227  +
         228  +
pub use crate::types::error::_parameter_pattern_mismatch_exception::ParameterPatternMismatchExceptionBuilder;
         229  +
         230  +
pub use crate::types::error::_policies_limit_exceeded_exception::PoliciesLimitExceededExceptionBuilder;
         231  +
         232  +
pub use crate::types::error::_unsupported_parameter_type::UnsupportedParameterTypeBuilder;
         233  +
         234  +
pub use crate::types::error::_resource_policy_limit_exceeded_exception::ResourcePolicyLimitExceededExceptionBuilder;
         235  +
         236  +
pub use crate::types::error::_already_exists_exception::AlreadyExistsExceptionBuilder;
         237  +
         238  +
pub use crate::types::error::_feature_not_available_exception::FeatureNotAvailableExceptionBuilder;
         239  +
         240  +
pub use crate::types::error::_automation_step_not_found_exception::AutomationStepNotFoundExceptionBuilder;
         241  +
         242  +
pub use crate::types::error::_invalid_automation_signal_exception::InvalidAutomationSignalExceptionBuilder;
         243  +
         244  +
pub use crate::types::error::_invalid_notification_config::InvalidNotificationConfigBuilder;
         245  +
         246  +
pub use crate::types::error::_invalid_output_folder::InvalidOutputFolderBuilder;
         247  +
         248  +
pub use crate::types::error::_invalid_role::InvalidRoleBuilder;
         249  +
         250  +
pub use crate::types::error::_invalid_association::InvalidAssociationBuilder;
         251  +
         252  +
pub use crate::types::error::_automation_definition_not_found_exception::AutomationDefinitionNotFoundExceptionBuilder;
         253  +
         254  +
pub use crate::types::error::_automation_definition_version_not_found_exception::AutomationDefinitionVersionNotFoundExceptionBuilder;
         255  +
         256  +
pub use crate::types::error::_automation_execution_limit_exceeded_exception::AutomationExecutionLimitExceededExceptionBuilder;
         257  +
         258  +
pub use crate::types::error::_invalid_automation_execution_parameters_exception::InvalidAutomationExecutionParametersExceptionBuilder;
         259  +
         260  +
pub use crate::types::error::_automation_definition_not_approved_exception::AutomationDefinitionNotApprovedExceptionBuilder;
         261  +
         262  +
pub use crate::types::error::_target_not_connected::TargetNotConnectedBuilder;
         263  +
         264  +
pub use crate::types::error::_invalid_automation_status_update_exception::InvalidAutomationStatusUpdateExceptionBuilder;
         265  +
         266  +
pub use crate::types::error::_association_version_limit_exceeded::AssociationVersionLimitExceededBuilder;
         267  +
         268  +
pub use crate::types::error::_invalid_update::InvalidUpdateBuilder;
         269  +
         270  +
pub use crate::types::error::_status_unchanged::StatusUnchangedBuilder;
         271  +
         272  +
pub use crate::types::error::_document_version_limit_exceeded::DocumentVersionLimitExceededBuilder;
         273  +
         274  +
pub use crate::types::error::_duplicate_document_content::DuplicateDocumentContentBuilder;
         275  +
         276  +
pub use crate::types::error::_duplicate_document_version_name::DuplicateDocumentVersionNameBuilder;
         277  +
         278  +
pub use crate::types::error::_ops_metadata_key_limit_exceeded_exception::OpsMetadataKeyLimitExceededExceptionBuilder;
         279  +
         280  +
pub use crate::types::error::_resource_data_sync_conflict_exception::ResourceDataSyncConflictExceptionBuilder;