AWS SDK

AWS SDK

rev. bbca34fa2eddb4be623fbbc6b6df1a2401de0029 (ignoring whitespace)

Files changed:

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

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

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

@@ -0,1 +0,186 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>You don't have permission to view OpsItems in the specified account. Verify that your account is configured either as a Systems Manager delegated administrator or that you are logged into the Organizations management account.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct OpsItemAccessDeniedException {
           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 OPSITEMACCESSDENIEDEXCEPTION_MEMBER_MESSAGE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          12  +
    ::aws_smithy_schema::ShapeId::from_parts(
          13  +
        "com.amazonaws.ssm#OpsItemAccessDeniedException$Message",
          14  +
        "com.amazonaws.ssm",
          15  +
        "OpsItemAccessDeniedException",
          16  +
    ),
          17  +
    ::aws_smithy_schema::ShapeType::String,
          18  +
    "Message",
          19  +
    0,
          20  +
);
          21  +
static OPSITEMACCESSDENIEDEXCEPTION_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("OpsItemAccessDeniedException".to_string()),
          30  +
            );
          31  +
            obj.insert(
          32  +
                "httpResponseCode".to_string(),
          33  +
                ::aws_smithy_types::Document::Number(::aws_smithy_types::Number::PosInt(403u64)),
          34  +
            );
          35  +
            ::aws_smithy_types::Document::Object(obj)
          36  +
        },
          37  +
    )));
          38  +
    map
          39  +
});
          40  +
static OPSITEMACCESSDENIEDEXCEPTION_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          41  +
    ::aws_smithy_schema::ShapeId::from_parts(
          42  +
        "com.amazonaws.ssm#OpsItemAccessDeniedException",
          43  +
        "com.amazonaws.ssm",
          44  +
        "OpsItemAccessDeniedException",
          45  +
    ),
          46  +
    ::aws_smithy_schema::ShapeType::Structure,
          47  +
    &[&OPSITEMACCESSDENIEDEXCEPTION_MEMBER_MESSAGE],
          48  +
)
          49  +
.with_traits(&OPSITEMACCESSDENIEDEXCEPTION_TRAITS);
          50  +
impl OpsItemAccessDeniedException {
          51  +
    /// The schema for this shape.
          52  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &OPSITEMACCESSDENIEDEXCEPTION_SCHEMA;
          53  +
}
          54  +
impl ::aws_smithy_schema::serde::SerializableStruct for OpsItemAccessDeniedException {
          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(&OPSITEMACCESSDENIEDEXCEPTION_MEMBER_MESSAGE, val)?;
          62  +
        }
          63  +
        Ok(())
          64  +
    }
          65  +
}
          66  +
impl OpsItemAccessDeniedException {
          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(&OPSITEMACCESSDENIEDEXCEPTION_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 OpsItemAccessDeniedException {
          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 OpsItemAccessDeniedException {
         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 OpsItemAccessDeniedException {
         117  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         118  +
        ::std::write!(f, "OpsItemAccessDeniedException")?;
         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 OpsItemAccessDeniedException {}
         128  +
impl ::aws_types::request_id::RequestId for crate::types::error::OpsItemAccessDeniedException {
         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 OpsItemAccessDeniedException {
         135  +
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         136  +
        &self.meta
         137  +
    }
         138  +
}
         139  +
impl OpsItemAccessDeniedException {
         140  +
    /// Creates a new builder-style object to manufacture [`OpsItemAccessDeniedException`](crate::types::error::OpsItemAccessDeniedException).
         141  +
    pub fn builder() -> crate::types::error::builders::OpsItemAccessDeniedExceptionBuilder {
         142  +
        crate::types::error::builders::OpsItemAccessDeniedExceptionBuilder::default()
         143  +
    }
         144  +
}
         145  +
         146  +
/// A builder for [`OpsItemAccessDeniedException`](crate::types::error::OpsItemAccessDeniedException).
         147  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         148  +
#[non_exhaustive]
         149  +
pub struct OpsItemAccessDeniedExceptionBuilder {
         150  +
    pub(crate) message: ::std::option::Option<::std::string::String>,
         151  +
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
         152  +
}
         153  +
impl OpsItemAccessDeniedExceptionBuilder {
         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 [`OpsItemAccessDeniedException`](crate::types::error::OpsItemAccessDeniedException).
         180  +
    pub fn build(self) -> crate::types::error::OpsItemAccessDeniedException {
         181  +
        crate::types::error::OpsItemAccessDeniedException {
         182  +
            message: self.message,
         183  +
            meta: self.meta.unwrap_or_default(),
         184  +
        }
         185  +
    }
         186  +
}

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

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

tmp-codegen-diff/aws-sdk/sdk/ssm/src/types/error/_ops_item_conflict_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 OpsItem is in the process of being deleted.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct OpsItemConflictException {
           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 OPSITEMCONFLICTEXCEPTION_MEMBER_MESSAGE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          12  +
    ::aws_smithy_schema::ShapeId::from_parts(
          13  +
        "com.amazonaws.ssm#OpsItemConflictException$Message",
          14  +
        "com.amazonaws.ssm",
          15  +
        "OpsItemConflictException",
          16  +
    ),
          17  +
    ::aws_smithy_schema::ShapeType::String,
          18  +
    "Message",
          19  +
    0,
          20  +
);
          21  +
static OPSITEMCONFLICTEXCEPTION_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("OpsItemConflictException".to_string()),
          30  +
            );
          31  +
            obj.insert(
          32  +
                "httpResponseCode".to_string(),
          33  +
                ::aws_smithy_types::Document::Number(::aws_smithy_types::Number::PosInt(409u64)),
          34  +
            );
          35  +
            ::aws_smithy_types::Document::Object(obj)
          36  +
        },
          37  +
    )));
          38  +
    map
          39  +
});
          40  +
static OPSITEMCONFLICTEXCEPTION_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          41  +
    ::aws_smithy_schema::ShapeId::from_parts(
          42  +
        "com.amazonaws.ssm#OpsItemConflictException",
          43  +
        "com.amazonaws.ssm",
          44  +
        "OpsItemConflictException",
          45  +
    ),
          46  +
    ::aws_smithy_schema::ShapeType::Structure,
          47  +
    &[&OPSITEMCONFLICTEXCEPTION_MEMBER_MESSAGE],
          48  +
)
          49  +
.with_traits(&OPSITEMCONFLICTEXCEPTION_TRAITS);
          50  +
impl OpsItemConflictException {
          51  +
    /// The schema for this shape.
          52  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &OPSITEMCONFLICTEXCEPTION_SCHEMA;
          53  +
}
          54  +
impl ::aws_smithy_schema::serde::SerializableStruct for OpsItemConflictException {
          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(&OPSITEMCONFLICTEXCEPTION_MEMBER_MESSAGE, val)?;
          62  +
        }
          63  +
        Ok(())
          64  +
    }
          65  +
}
          66  +
impl OpsItemConflictException {
          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(&OPSITEMCONFLICTEXCEPTION_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 OpsItemConflictException {
          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 OpsItemConflictException {
         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 OpsItemConflictException {
         117  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         118  +
        ::std::write!(f, "OpsItemConflictException")?;
         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 OpsItemConflictException {}
         128  +
impl ::aws_types::request_id::RequestId for crate::types::error::OpsItemConflictException {
         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 OpsItemConflictException {
         135  +
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         136  +
        &self.meta
         137  +
    }
         138  +
}
         139  +
impl OpsItemConflictException {
         140  +
    /// Creates a new builder-style object to manufacture [`OpsItemConflictException`](crate::types::error::OpsItemConflictException).
         141  +
    pub fn builder() -> crate::types::error::builders::OpsItemConflictExceptionBuilder {
         142  +
        crate::types::error::builders::OpsItemConflictExceptionBuilder::default()
         143  +
    }
         144  +
}
         145  +
         146  +
/// A builder for [`OpsItemConflictException`](crate::types::error::OpsItemConflictException).
         147  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         148  +
#[non_exhaustive]
         149  +
pub struct OpsItemConflictExceptionBuilder {
         150  +
    pub(crate) message: ::std::option::Option<::std::string::String>,
         151  +
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
         152  +
}
         153  +
impl OpsItemConflictExceptionBuilder {
         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 [`OpsItemConflictException`](crate::types::error::OpsItemConflictException).
         180  +
    pub fn build(self) -> crate::types::error::OpsItemConflictException {
         181  +
        crate::types::error::OpsItemConflictException {
         182  +
            message: self.message,
         183  +
            meta: self.meta.unwrap_or_default(),
         184  +
        }
         185  +
    }
         186  +
}

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

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