AWS SDK

AWS SDK

rev. 163d4d6410694aaf071424777ecbecd050925f36

Files changed:

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_sses3.rs

@@ -1,1 +63,74 @@
   16     16   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   17     17   
    fn serialize_members(
   18     18   
        &self,
   19     19   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   20     20   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   21     21   
        Ok(())
   22     22   
    }
   23     23   
}
   24     24   
impl Sses3 {
   25     25   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   26         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   27         -
        deserializer: &mut D,
          26  +
    pub fn deserialize(
          27  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   28     28   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   29     29   
        #[allow(unused_variables, unused_mut)]
   30     30   
        let mut builder = Self::builder();
   31     31   
        #[allow(
   32     32   
            unused_variables,
   33     33   
            unreachable_code,
   34     34   
            clippy::single_match,
   35     35   
            clippy::match_single_binding,
   36     36   
            clippy::diverging_sub_expression
   37     37   
        )]
   38         -
        deserializer.read_struct(&SSES3_SCHEMA, (), |_, member, deser| {
          38  +
        deserializer.read_struct(&SSES3_SCHEMA, &mut |member, deser| {
   39     39   
            match member.member_index() {
   40     40   
                _ => {}
   41     41   
            }
   42     42   
            Ok(())
   43     43   
        })?;
   44     44   
        Ok(builder.build())
   45     45   
    }
   46     46   
}
          47  +
impl Sses3 {
          48  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          49  +
    pub fn deserialize_with_response(
          50  +
        _deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          51  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          52  +
        _status: u16,
          53  +
        _body: &[u8],
          54  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          55  +
        Ok(Self::builder().build())
          56  +
    }
          57  +
}
   47     58   
impl Sses3 {
   48     59   
    /// Creates a new builder-style object to manufacture [`Sses3`](crate::types::Sses3).
   49     60   
    pub fn builder() -> crate::types::builders::Sses3Builder {
   50     61   
        crate::types::builders::Sses3Builder::default()
   51     62   
    }
   52     63   
}
   53     64   
   54     65   
/// A builder for [`Sses3`](crate::types::Sses3).
   55     66   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   56     67   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_stats.rs

@@ -3,3 +136,147 @@
   23     23   
    /// <p>The total number of bytes of records payload data returned.</p>
   24     24   
    pub fn bytes_returned(&self) -> ::std::option::Option<i64> {
   25     25   
        self.bytes_returned
   26     26   
    }
   27     27   
}
   28     28   
static STATS_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   29     29   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#Stats", "com.amazonaws.s3", "Stats");
   30     30   
static STATS_MEMBER_BYTES_SCANNED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   31     31   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#Stats$BytesScanned", "com.amazonaws.s3", "Stats"),
   32     32   
    ::aws_smithy_schema::ShapeType::Long,
   33         -
    "bytes_scanned",
          33  +
    "BytesScanned",
   34     34   
    0,
   35     35   
);
   36     36   
static STATS_MEMBER_BYTES_PROCESSED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   37     37   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#Stats$BytesProcessed", "com.amazonaws.s3", "Stats"),
   38     38   
    ::aws_smithy_schema::ShapeType::Long,
   39         -
    "bytes_processed",
          39  +
    "BytesProcessed",
   40     40   
    1,
   41     41   
);
   42     42   
static STATS_MEMBER_BYTES_RETURNED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   43     43   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#Stats$BytesReturned", "com.amazonaws.s3", "Stats"),
   44     44   
    ::aws_smithy_schema::ShapeType::Long,
   45         -
    "bytes_returned",
          45  +
    "BytesReturned",
   46     46   
    2,
   47     47   
);
   48     48   
static STATS_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   49     49   
    STATS_SCHEMA_ID,
   50     50   
    ::aws_smithy_schema::ShapeType::Structure,
   51     51   
    &[&STATS_MEMBER_BYTES_SCANNED, &STATS_MEMBER_BYTES_PROCESSED, &STATS_MEMBER_BYTES_RETURNED],
   52     52   
);
   53     53   
impl Stats {
   54     54   
    /// The schema for this shape.
   55     55   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &STATS_SCHEMA;
   56     56   
}
   57     57   
impl ::aws_smithy_schema::serde::SerializableStruct for Stats {
   58     58   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   59     59   
    fn serialize_members(
   60     60   
        &self,
   61     61   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   62     62   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   63     63   
        if let Some(ref val) = self.bytes_scanned {
   64     64   
            ser.write_long(&STATS_MEMBER_BYTES_SCANNED, *val)?;
   65     65   
        }
   66     66   
        if let Some(ref val) = self.bytes_processed {
   67     67   
            ser.write_long(&STATS_MEMBER_BYTES_PROCESSED, *val)?;
   68     68   
        }
   69     69   
        if let Some(ref val) = self.bytes_returned {
   70     70   
            ser.write_long(&STATS_MEMBER_BYTES_RETURNED, *val)?;
   71     71   
        }
   72     72   
        Ok(())
   73     73   
    }
   74     74   
}
   75     75   
impl Stats {
   76     76   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   77         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   78         -
        deserializer: &mut D,
          77  +
    pub fn deserialize(
          78  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   79     79   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   80     80   
        #[allow(unused_variables, unused_mut)]
   81     81   
        let mut builder = Self::builder();
   82     82   
        #[allow(
   83     83   
            unused_variables,
   84     84   
            unreachable_code,
   85     85   
            clippy::single_match,
   86     86   
            clippy::match_single_binding,
   87     87   
            clippy::diverging_sub_expression
   88     88   
        )]
   89         -
        deserializer.read_struct(&STATS_SCHEMA, (), |_, member, deser| {
          89  +
        deserializer.read_struct(&STATS_SCHEMA, &mut |member, deser| {
   90     90   
            match member.member_index() {
   91     91   
                Some(0) => {
   92     92   
                    builder.bytes_scanned = Some(deser.read_long(member)?);
   93     93   
                }
   94     94   
                Some(1) => {
   95     95   
                    builder.bytes_processed = Some(deser.read_long(member)?);
   96     96   
                }
   97     97   
                Some(2) => {
   98     98   
                    builder.bytes_returned = Some(deser.read_long(member)?);
   99     99   
                }
  100    100   
                _ => {}
  101    101   
            }
  102    102   
            Ok(())
  103    103   
        })?;
  104    104   
        Ok(builder.build())
  105    105   
    }
  106    106   
}
         107  +
impl Stats {
         108  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         109  +
    pub fn deserialize_with_response(
         110  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         111  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         112  +
        _status: u16,
         113  +
        _body: &[u8],
         114  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         115  +
        Self::deserialize(deserializer)
         116  +
    }
         117  +
}
  107    118   
impl Stats {
  108    119   
    /// Creates a new builder-style object to manufacture [`Stats`](crate::types::Stats).
  109    120   
    pub fn builder() -> crate::types::builders::StatsBuilder {
  110    121   
        crate::types::builders::StatsBuilder::default()
  111    122   
    }
  112    123   
}
  113    124   
  114    125   
/// A builder for [`Stats`](crate::types::Stats).
  115    126   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  116    127   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_stats_event.rs

@@ -1,1 +101,112 @@
   11     11   
    /// <p>The Stats event details.</p>
   12     12   
    pub fn details(&self) -> ::std::option::Option<&crate::types::Stats> {
   13     13   
        self.details.as_ref()
   14     14   
    }
   15     15   
}
   16     16   
static STATSEVENT_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   17     17   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#StatsEvent", "com.amazonaws.s3", "StatsEvent");
   18     18   
static STATSEVENT_MEMBER_DETAILS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   19     19   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#StatsEvent$Details", "com.amazonaws.s3", "StatsEvent"),
   20     20   
    ::aws_smithy_schema::ShapeType::Structure,
   21         -
    "details",
          21  +
    "Details",
   22     22   
    0,
   23     23   
)
   24     24   
.with_event_payload();
   25     25   
static STATSEVENT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   26     26   
    STATSEVENT_SCHEMA_ID,
   27     27   
    ::aws_smithy_schema::ShapeType::Structure,
   28     28   
    &[&STATSEVENT_MEMBER_DETAILS],
   29     29   
);
   30     30   
impl StatsEvent {
   31     31   
    /// The schema for this shape.
   32     32   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &STATSEVENT_SCHEMA;
   33     33   
}
   34     34   
impl ::aws_smithy_schema::serde::SerializableStruct for StatsEvent {
   35     35   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   36     36   
    fn serialize_members(
   37     37   
        &self,
   38     38   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   39     39   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   40     40   
        if let Some(ref val) = self.details {
   41     41   
            ser.write_struct(&STATSEVENT_MEMBER_DETAILS, val)?;
   42     42   
        }
   43     43   
        Ok(())
   44     44   
    }
   45     45   
}
   46     46   
impl StatsEvent {
   47     47   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   48         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   49         -
        deserializer: &mut D,
          48  +
    pub fn deserialize(
          49  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   50     50   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   51     51   
        #[allow(unused_variables, unused_mut)]
   52     52   
        let mut builder = Self::builder();
   53     53   
        #[allow(
   54     54   
            unused_variables,
   55     55   
            unreachable_code,
   56     56   
            clippy::single_match,
   57     57   
            clippy::match_single_binding,
   58     58   
            clippy::diverging_sub_expression
   59     59   
        )]
   60         -
        deserializer.read_struct(&STATSEVENT_SCHEMA, (), |_, member, deser| {
          60  +
        deserializer.read_struct(&STATSEVENT_SCHEMA, &mut |member, deser| {
   61     61   
            match member.member_index() {
   62     62   
                Some(0) => {
   63     63   
                    builder.details = Some(crate::types::Stats::deserialize(deser)?);
   64     64   
                }
   65     65   
                _ => {}
   66     66   
            }
   67     67   
            Ok(())
   68     68   
        })?;
   69     69   
        Ok(builder.build())
   70     70   
    }
   71     71   
}
          72  +
impl StatsEvent {
          73  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          74  +
    pub fn deserialize_with_response(
          75  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          76  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          77  +
        _status: u16,
          78  +
        _body: &[u8],
          79  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          80  +
        Self::deserialize(deserializer)
          81  +
    }
          82  +
}
   72     83   
impl StatsEvent {
   73     84   
    /// Creates a new builder-style object to manufacture [`StatsEvent`](crate::types::StatsEvent).
   74     85   
    pub fn builder() -> crate::types::builders::StatsEventBuilder {
   75     86   
        crate::types::builders::StatsEventBuilder::default()
   76     87   
    }
   77     88   
}
   78     89   
   79     90   
/// A builder for [`StatsEvent`](crate::types::StatsEvent).
   80     91   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   81     92   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_storage_class_analysis.rs

@@ -1,1 +104,115 @@
   15     15   
}
   16     16   
static STORAGECLASSANALYSIS_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   17     17   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#StorageClassAnalysis", "com.amazonaws.s3", "StorageClassAnalysis");
   18     18   
static STORAGECLASSANALYSIS_MEMBER_DATA_EXPORT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   19     19   
    ::aws_smithy_schema::ShapeId::from_static(
   20     20   
        "com.amazonaws.s3#StorageClassAnalysis$DataExport",
   21     21   
        "com.amazonaws.s3",
   22     22   
        "StorageClassAnalysis",
   23     23   
    ),
   24     24   
    ::aws_smithy_schema::ShapeType::Structure,
   25         -
    "data_export",
          25  +
    "DataExport",
   26     26   
    0,
   27     27   
);
   28     28   
static STORAGECLASSANALYSIS_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   29     29   
    STORAGECLASSANALYSIS_SCHEMA_ID,
   30     30   
    ::aws_smithy_schema::ShapeType::Structure,
   31     31   
    &[&STORAGECLASSANALYSIS_MEMBER_DATA_EXPORT],
   32     32   
);
   33     33   
impl StorageClassAnalysis {
   34     34   
    /// The schema for this shape.
   35     35   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &STORAGECLASSANALYSIS_SCHEMA;
   36     36   
}
   37     37   
impl ::aws_smithy_schema::serde::SerializableStruct for StorageClassAnalysis {
   38     38   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   39     39   
    fn serialize_members(
   40     40   
        &self,
   41     41   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   42     42   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   43     43   
        if let Some(ref val) = self.data_export {
   44     44   
            ser.write_struct(&STORAGECLASSANALYSIS_MEMBER_DATA_EXPORT, val)?;
   45     45   
        }
   46     46   
        Ok(())
   47     47   
    }
   48     48   
}
   49     49   
impl StorageClassAnalysis {
   50     50   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   51         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   52         -
        deserializer: &mut D,
          51  +
    pub fn deserialize(
          52  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   53     53   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   54     54   
        #[allow(unused_variables, unused_mut)]
   55     55   
        let mut builder = Self::builder();
   56     56   
        #[allow(
   57     57   
            unused_variables,
   58     58   
            unreachable_code,
   59     59   
            clippy::single_match,
   60     60   
            clippy::match_single_binding,
   61     61   
            clippy::diverging_sub_expression
   62     62   
        )]
   63         -
        deserializer.read_struct(&STORAGECLASSANALYSIS_SCHEMA, (), |_, member, deser| {
          63  +
        deserializer.read_struct(&STORAGECLASSANALYSIS_SCHEMA, &mut |member, deser| {
   64     64   
            match member.member_index() {
   65     65   
                Some(0) => {
   66     66   
                    builder.data_export = Some(crate::types::StorageClassAnalysisDataExport::deserialize(deser)?);
   67     67   
                }
   68     68   
                _ => {}
   69     69   
            }
   70     70   
            Ok(())
   71     71   
        })?;
   72     72   
        Ok(builder.build())
   73     73   
    }
   74     74   
}
          75  +
impl StorageClassAnalysis {
          76  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          77  +
    pub fn deserialize_with_response(
          78  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          79  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          80  +
        _status: u16,
          81  +
        _body: &[u8],
          82  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          83  +
        Self::deserialize(deserializer)
          84  +
    }
          85  +
}
   75     86   
impl StorageClassAnalysis {
   76     87   
    /// Creates a new builder-style object to manufacture [`StorageClassAnalysis`](crate::types::StorageClassAnalysis).
   77     88   
    pub fn builder() -> crate::types::builders::StorageClassAnalysisBuilder {
   78     89   
        crate::types::builders::StorageClassAnalysisBuilder::default()
   79     90   
    }
   80     91   
}
   81     92   
   82     93   
/// A builder for [`StorageClassAnalysis`](crate::types::StorageClassAnalysis).
   83     94   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   84     95   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_storage_class_analysis_data_export.rs

@@ -4,4 +135,146 @@
   24     24   
    "com.amazonaws.s3",
   25     25   
    "StorageClassAnalysisDataExport",
   26     26   
);
   27     27   
static STORAGECLASSANALYSISDATAEXPORT_MEMBER_OUTPUT_SCHEMA_VERSION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   28     28   
    ::aws_smithy_schema::ShapeId::from_static(
   29     29   
        "com.amazonaws.s3#StorageClassAnalysisDataExport$OutputSchemaVersion",
   30     30   
        "com.amazonaws.s3",
   31     31   
        "StorageClassAnalysisDataExport",
   32     32   
    ),
   33     33   
    ::aws_smithy_schema::ShapeType::String,
   34         -
    "output_schema_version",
          34  +
    "OutputSchemaVersion",
   35     35   
    0,
   36     36   
);
   37     37   
static STORAGECLASSANALYSISDATAEXPORT_MEMBER_DESTINATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   38     38   
    ::aws_smithy_schema::ShapeId::from_static(
   39     39   
        "com.amazonaws.s3#StorageClassAnalysisDataExport$Destination",
   40     40   
        "com.amazonaws.s3",
   41     41   
        "StorageClassAnalysisDataExport",
   42     42   
    ),
   43     43   
    ::aws_smithy_schema::ShapeType::Structure,
   44         -
    "destination",
          44  +
    "Destination",
   45     45   
    1,
   46     46   
);
   47     47   
static STORAGECLASSANALYSISDATAEXPORT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   48     48   
    STORAGECLASSANALYSISDATAEXPORT_SCHEMA_ID,
   49     49   
    ::aws_smithy_schema::ShapeType::Structure,
   50     50   
    &[
   51     51   
        &STORAGECLASSANALYSISDATAEXPORT_MEMBER_OUTPUT_SCHEMA_VERSION,
   52     52   
        &STORAGECLASSANALYSISDATAEXPORT_MEMBER_DESTINATION,
   53     53   
    ],
   54     54   
);
   55     55   
impl StorageClassAnalysisDataExport {
   56     56   
    /// The schema for this shape.
   57     57   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &STORAGECLASSANALYSISDATAEXPORT_SCHEMA;
   58     58   
}
   59     59   
impl ::aws_smithy_schema::serde::SerializableStruct for StorageClassAnalysisDataExport {
   60     60   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   61     61   
    fn serialize_members(
   62     62   
        &self,
   63     63   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   64     64   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   65     65   
        {
   66     66   
            let val = &self.output_schema_version;
   67     67   
            ser.write_string(&STORAGECLASSANALYSISDATAEXPORT_MEMBER_OUTPUT_SCHEMA_VERSION, val.as_str())?;
   68     68   
        }
   69     69   
        if let Some(ref val) = self.destination {
   70     70   
            ser.write_struct(&STORAGECLASSANALYSISDATAEXPORT_MEMBER_DESTINATION, val)?;
   71     71   
        }
   72     72   
        Ok(())
   73     73   
    }
   74     74   
}
   75     75   
impl StorageClassAnalysisDataExport {
   76     76   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   77         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   78         -
        deserializer: &mut D,
          77  +
    pub fn deserialize(
          78  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   79     79   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   80     80   
        #[allow(unused_variables, unused_mut)]
   81     81   
        let mut builder = Self::builder();
   82     82   
        #[allow(
   83     83   
            unused_variables,
   84     84   
            unreachable_code,
   85     85   
            clippy::single_match,
   86     86   
            clippy::match_single_binding,
   87     87   
            clippy::diverging_sub_expression
   88     88   
        )]
   89         -
        deserializer.read_struct(&STORAGECLASSANALYSISDATAEXPORT_SCHEMA, (), |_, member, deser| {
          89  +
        deserializer.read_struct(&STORAGECLASSANALYSISDATAEXPORT_SCHEMA, &mut |member, deser| {
   90     90   
            match member.member_index() {
   91     91   
                Some(0) => {
   92     92   
                    builder.output_schema_version = Some(crate::types::StorageClassAnalysisSchemaVersion::from(deser.read_string(member)?.as_str()));
   93     93   
                }
   94     94   
                Some(1) => {
   95     95   
                    builder.destination = Some(crate::types::AnalyticsExportDestination::deserialize(deser)?);
   96     96   
                }
   97     97   
                _ => {}
   98     98   
            }
   99     99   
            Ok(())
  100    100   
        })?;
  101    101   
        builder
  102    102   
            .build()
  103    103   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  104    104   
    }
  105    105   
}
         106  +
impl StorageClassAnalysisDataExport {
         107  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         108  +
    pub fn deserialize_with_response(
         109  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         110  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         111  +
        _status: u16,
         112  +
        _body: &[u8],
         113  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         114  +
        Self::deserialize(deserializer)
         115  +
    }
         116  +
}
  106    117   
impl StorageClassAnalysisDataExport {
  107    118   
    /// Creates a new builder-style object to manufacture [`StorageClassAnalysisDataExport`](crate::types::StorageClassAnalysisDataExport).
  108    119   
    pub fn builder() -> crate::types::builders::StorageClassAnalysisDataExportBuilder {
  109    120   
        crate::types::builders::StorageClassAnalysisDataExportBuilder::default()
  110    121   
    }
  111    122   
}
  112    123   
  113    124   
/// A builder for [`StorageClassAnalysisDataExport`](crate::types::StorageClassAnalysisDataExport).
  114    125   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  115    126   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_tag.rs

@@ -1,1 +123,136 @@
   18     18   
    /// <p>Value of the tag.</p>
   19     19   
    pub fn value(&self) -> &str {
   20     20   
        use std::ops::Deref;
   21     21   
        self.value.deref()
   22     22   
    }
   23     23   
}
   24     24   
static TAG_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#Tag", "com.amazonaws.s3", "Tag");
   25     25   
static TAG_MEMBER_KEY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   26     26   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#Tag$Key", "com.amazonaws.s3", "Tag"),
   27     27   
    ::aws_smithy_schema::ShapeType::String,
   28         -
    "key",
          28  +
    "Key",
   29     29   
    0,
   30     30   
);
   31     31   
static TAG_MEMBER_VALUE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   32     32   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#Tag$Value", "com.amazonaws.s3", "Tag"),
   33     33   
    ::aws_smithy_schema::ShapeType::String,
   34         -
    "value",
          34  +
    "Value",
   35     35   
    1,
   36     36   
);
   37     37   
static TAG_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   38     38   
    TAG_SCHEMA_ID,
   39     39   
    ::aws_smithy_schema::ShapeType::Structure,
   40     40   
    &[&TAG_MEMBER_KEY, &TAG_MEMBER_VALUE],
   41     41   
);
   42     42   
impl Tag {
   43     43   
    /// The schema for this shape.
   44     44   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &TAG_SCHEMA;
   45     45   
}
   46     46   
impl ::aws_smithy_schema::serde::SerializableStruct for Tag {
   47     47   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   48     48   
    fn serialize_members(
   49     49   
        &self,
   50     50   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   51     51   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   52     52   
        {
   53     53   
            let val = &self.key;
   54     54   
            ser.write_string(&TAG_MEMBER_KEY, val)?;
   55     55   
        }
   56     56   
        {
   57     57   
            let val = &self.value;
   58     58   
            ser.write_string(&TAG_MEMBER_VALUE, val)?;
   59     59   
        }
   60     60   
        Ok(())
   61     61   
    }
   62     62   
}
   63     63   
impl Tag {
   64     64   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   65         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   66         -
        deserializer: &mut D,
          65  +
    pub fn deserialize(
          66  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   67     67   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   68     68   
        #[allow(unused_variables, unused_mut)]
   69     69   
        let mut builder = Self::builder();
   70     70   
        #[allow(
   71     71   
            unused_variables,
   72     72   
            unreachable_code,
   73     73   
            clippy::single_match,
   74     74   
            clippy::match_single_binding,
   75     75   
            clippy::diverging_sub_expression
   76     76   
        )]
   77         -
        deserializer.read_struct(&TAG_SCHEMA, (), |_, member, deser| {
          77  +
        deserializer.read_struct(&TAG_SCHEMA, &mut |member, deser| {
   78     78   
            match member.member_index() {
   79     79   
                Some(0) => {
   80     80   
                    builder.key = Some(deser.read_string(member)?);
   81     81   
                }
   82     82   
                Some(1) => {
   83     83   
                    builder.value = Some(deser.read_string(member)?);
   84     84   
                }
   85     85   
                _ => {}
   86     86   
            }
   87     87   
            Ok(())
   88     88   
        })?;
          89  +
        builder.key = builder.key.or(Some(String::new()));
          90  +
        builder.value = builder.value.or(Some(String::new()));
   89     91   
        builder
   90     92   
            .build()
   91     93   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
   92     94   
    }
   93     95   
}
          96  +
impl Tag {
          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  +
        Self::deserialize(deserializer)
         105  +
    }
         106  +
}
   94    107   
impl Tag {
   95    108   
    /// Creates a new builder-style object to manufacture [`Tag`](crate::types::Tag).
   96    109   
    pub fn builder() -> crate::types::builders::TagBuilder {
   97    110   
        crate::types::builders::TagBuilder::default()
   98    111   
    }
   99    112   
}
  100    113   
  101    114   
/// A builder for [`Tag`](crate::types::Tag).
  102    115   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  103    116   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_tagging.rs

@@ -1,1 +117,126 @@
   12     12   
    pub fn tag_set(&self) -> &[crate::types::Tag] {
   13     13   
        use std::ops::Deref;
   14     14   
        self.tag_set.deref()
   15     15   
    }
   16     16   
}
   17     17   
static TAGGING_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   18     18   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#Tagging", "com.amazonaws.s3", "Tagging");
   19     19   
static TAGGING_MEMBER_TAG_SET: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   20     20   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#Tagging$TagSet", "com.amazonaws.s3", "Tagging"),
   21     21   
    ::aws_smithy_schema::ShapeType::List,
   22         -
    "tag_set",
          22  +
    "TagSet",
   23     23   
    0,
   24     24   
);
   25     25   
static TAGGING_SCHEMA: ::aws_smithy_schema::Schema =
   26     26   
    ::aws_smithy_schema::Schema::new_struct(TAGGING_SCHEMA_ID, ::aws_smithy_schema::ShapeType::Structure, &[&TAGGING_MEMBER_TAG_SET]);
   27     27   
impl Tagging {
   28     28   
    /// The schema for this shape.
   29     29   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &TAGGING_SCHEMA;
   30     30   
}
   31     31   
impl ::aws_smithy_schema::serde::SerializableStruct for Tagging {
   32     32   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   33     33   
    fn serialize_members(
   34     34   
        &self,
   35     35   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   36     36   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   37     37   
        {
   38     38   
            let val = &self.tag_set;
   39     39   
   40     40   
            ser.write_list(&TAGGING_MEMBER_TAG_SET, &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   41     41   
                for item in val {
   42     42   
                    ser.write_struct(crate::types::Tag::SCHEMA, item)?;
   43     43   
                }
   44     44   
                Ok(())
   45     45   
            })?;
   46     46   
        }
   47     47   
        Ok(())
   48     48   
    }
   49     49   
}
   50     50   
impl Tagging {
   51     51   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   52         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   53         -
        deserializer: &mut D,
          52  +
    pub fn deserialize(
          53  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   54     54   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   55     55   
        #[allow(unused_variables, unused_mut)]
   56     56   
        let mut builder = Self::builder();
   57     57   
        #[allow(
   58     58   
            unused_variables,
   59     59   
            unreachable_code,
   60     60   
            clippy::single_match,
   61     61   
            clippy::match_single_binding,
   62     62   
            clippy::diverging_sub_expression
   63     63   
        )]
   64         -
        deserializer.read_struct(&TAGGING_SCHEMA, (), |_, member, deser| {
          64  +
        deserializer.read_struct(&TAGGING_SCHEMA, &mut |member, deser| {
   65     65   
            match member.member_index() {
   66     66   
                Some(0) => {
   67     67   
                    builder.tag_set = Some({
   68         -
                        let container = if let Some(cap) = deser.container_size() {
   69         -
                            Vec::with_capacity(cap)
   70         -
                        } else {
   71         -
                            Vec::new()
   72         -
                        };
   73         -
                        deser.read_list(member, container, |mut list, deser| {
   74         -
                            list.push(crate::types::Tag::deserialize(deser)?);
   75         -
                            Ok(list)
   76         -
                        })?
          68  +
                        let mut container = Vec::new();
          69  +
                        deser.read_list(member, &mut |deser| {
          70  +
                            container.push(crate::types::Tag::deserialize(deser)?);
          71  +
                            Ok(())
          72  +
                        })?;
          73  +
                        container
   77     74   
                    });
   78     75   
                }
   79     76   
                _ => {}
   80     77   
            }
   81     78   
            Ok(())
   82     79   
        })?;
          80  +
        builder.tag_set = builder.tag_set.or(Some(Vec::new()));
   83     81   
        builder
   84     82   
            .build()
   85     83   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
   86     84   
    }
   87     85   
}
          86  +
impl Tagging {
          87  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          88  +
    pub fn deserialize_with_response(
          89  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          90  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          91  +
        _status: u16,
          92  +
        _body: &[u8],
          93  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          94  +
        Self::deserialize(deserializer)
          95  +
    }
          96  +
}
   88     97   
impl Tagging {
   89     98   
    /// Creates a new builder-style object to manufacture [`Tagging`](crate::types::Tagging).
   90     99   
    pub fn builder() -> crate::types::builders::TaggingBuilder {
   91    100   
        crate::types::builders::TaggingBuilder::default()
   92    101   
    }
   93    102   
}
   94    103   
   95    104   
/// A builder for [`Tagging`](crate::types::Tagging).
   96    105   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   97    106   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_target_grant.rs

@@ -1,1 +120,131 @@
   18     18   
    /// <p>Logging permissions assigned to the grantee for the bucket.</p>
   19     19   
    pub fn permission(&self) -> ::std::option::Option<&crate::types::BucketLogsPermission> {
   20     20   
        self.permission.as_ref()
   21     21   
    }
   22     22   
}
   23     23   
static TARGETGRANT_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   24     24   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#TargetGrant", "com.amazonaws.s3", "TargetGrant");
   25     25   
static TARGETGRANT_MEMBER_GRANTEE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   26     26   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#TargetGrant$Grantee", "com.amazonaws.s3", "TargetGrant"),
   27     27   
    ::aws_smithy_schema::ShapeType::Structure,
   28         -
    "grantee",
          28  +
    "Grantee",
   29     29   
    0,
   30     30   
)
   31     31   
.with_xml_namespace();
   32     32   
static TARGETGRANT_MEMBER_PERMISSION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   33     33   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#TargetGrant$Permission", "com.amazonaws.s3", "TargetGrant"),
   34     34   
    ::aws_smithy_schema::ShapeType::String,
   35         -
    "permission",
          35  +
    "Permission",
   36     36   
    1,
   37     37   
);
   38     38   
static TARGETGRANT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   39     39   
    TARGETGRANT_SCHEMA_ID,
   40     40   
    ::aws_smithy_schema::ShapeType::Structure,
   41     41   
    &[&TARGETGRANT_MEMBER_GRANTEE, &TARGETGRANT_MEMBER_PERMISSION],
   42     42   
);
   43     43   
impl TargetGrant {
   44     44   
    /// The schema for this shape.
   45     45   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &TARGETGRANT_SCHEMA;
   46     46   
}
   47     47   
impl ::aws_smithy_schema::serde::SerializableStruct for TargetGrant {
   48     48   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   49     49   
    fn serialize_members(
   50     50   
        &self,
   51     51   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   52     52   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   53     53   
        if let Some(ref val) = self.grantee {
   54     54   
            ser.write_struct(&TARGETGRANT_MEMBER_GRANTEE, val)?;
   55     55   
        }
   56     56   
        if let Some(ref val) = self.permission {
   57     57   
            ser.write_string(&TARGETGRANT_MEMBER_PERMISSION, val.as_str())?;
   58     58   
        }
   59     59   
        Ok(())
   60     60   
    }
   61     61   
}
   62     62   
impl TargetGrant {
   63     63   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   64         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   65         -
        deserializer: &mut D,
          64  +
    pub fn deserialize(
          65  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   66     66   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   67     67   
        #[allow(unused_variables, unused_mut)]
   68     68   
        let mut builder = Self::builder();
   69     69   
        #[allow(
   70     70   
            unused_variables,
   71     71   
            unreachable_code,
   72     72   
            clippy::single_match,
   73     73   
            clippy::match_single_binding,
   74     74   
            clippy::diverging_sub_expression
   75     75   
        )]
   76         -
        deserializer.read_struct(&TARGETGRANT_SCHEMA, (), |_, member, deser| {
          76  +
        deserializer.read_struct(&TARGETGRANT_SCHEMA, &mut |member, deser| {
   77     77   
            match member.member_index() {
   78     78   
                Some(0) => {
   79     79   
                    builder.grantee = Some(crate::types::Grantee::deserialize(deser)?);
   80     80   
                }
   81     81   
                Some(1) => {
   82     82   
                    builder.permission = Some(crate::types::BucketLogsPermission::from(deser.read_string(member)?.as_str()));
   83     83   
                }
   84     84   
                _ => {}
   85     85   
            }
   86     86   
            Ok(())
   87     87   
        })?;
   88     88   
        Ok(builder.build())
   89     89   
    }
   90     90   
}
          91  +
impl TargetGrant {
          92  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          93  +
    pub fn deserialize_with_response(
          94  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          95  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          96  +
        _status: u16,
          97  +
        _body: &[u8],
          98  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          99  +
        Self::deserialize(deserializer)
         100  +
    }
         101  +
}
   91    102   
impl TargetGrant {
   92    103   
    /// Creates a new builder-style object to manufacture [`TargetGrant`](crate::types::TargetGrant).
   93    104   
    pub fn builder() -> crate::types::builders::TargetGrantBuilder {
   94    105   
        crate::types::builders::TargetGrantBuilder::default()
   95    106   
    }
   96    107   
}
   97    108   
   98    109   
/// A builder for [`TargetGrant`](crate::types::TargetGrant).
   99    110   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  100    111   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_target_object_key_format.rs

@@ -1,1 +131,142 @@
   21     21   
}
   22     22   
static TARGETOBJECTKEYFORMAT_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   23     23   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#TargetObjectKeyFormat", "com.amazonaws.s3", "TargetObjectKeyFormat");
   24     24   
static TARGETOBJECTKEYFORMAT_MEMBER_SIMPLE_PREFIX: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   25     25   
    ::aws_smithy_schema::ShapeId::from_static(
   26     26   
        "com.amazonaws.s3#TargetObjectKeyFormat$SimplePrefix",
   27     27   
        "com.amazonaws.s3",
   28     28   
        "TargetObjectKeyFormat",
   29     29   
    ),
   30     30   
    ::aws_smithy_schema::ShapeType::Structure,
   31         -
    "simple_prefix",
          31  +
    "SimplePrefix",
   32     32   
    0,
   33     33   
)
   34     34   
.with_xml_name("SimplePrefix");
   35     35   
static TARGETOBJECTKEYFORMAT_MEMBER_PARTITIONED_PREFIX: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   36     36   
    ::aws_smithy_schema::ShapeId::from_static(
   37     37   
        "com.amazonaws.s3#TargetObjectKeyFormat$PartitionedPrefix",
   38     38   
        "com.amazonaws.s3",
   39     39   
        "TargetObjectKeyFormat",
   40     40   
    ),
   41     41   
    ::aws_smithy_schema::ShapeType::Structure,
   42         -
    "partitioned_prefix",
          42  +
    "PartitionedPrefix",
   43     43   
    1,
   44     44   
)
   45     45   
.with_xml_name("PartitionedPrefix");
   46     46   
static TARGETOBJECTKEYFORMAT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   47     47   
    TARGETOBJECTKEYFORMAT_SCHEMA_ID,
   48     48   
    ::aws_smithy_schema::ShapeType::Structure,
   49     49   
    &[
   50     50   
        &TARGETOBJECTKEYFORMAT_MEMBER_SIMPLE_PREFIX,
   51     51   
        &TARGETOBJECTKEYFORMAT_MEMBER_PARTITIONED_PREFIX,
   52     52   
    ],
   53     53   
);
   54     54   
impl TargetObjectKeyFormat {
   55     55   
    /// The schema for this shape.
   56     56   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &TARGETOBJECTKEYFORMAT_SCHEMA;
   57     57   
}
   58     58   
impl ::aws_smithy_schema::serde::SerializableStruct for TargetObjectKeyFormat {
   59     59   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   60     60   
    fn serialize_members(
   61     61   
        &self,
   62     62   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   63     63   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   64     64   
        if let Some(ref val) = self.simple_prefix {
   65     65   
            ser.write_struct(&TARGETOBJECTKEYFORMAT_MEMBER_SIMPLE_PREFIX, val)?;
   66     66   
        }
   67     67   
        if let Some(ref val) = self.partitioned_prefix {
   68     68   
            ser.write_struct(&TARGETOBJECTKEYFORMAT_MEMBER_PARTITIONED_PREFIX, val)?;
   69     69   
        }
   70     70   
        Ok(())
   71     71   
    }
   72     72   
}
   73     73   
impl TargetObjectKeyFormat {
   74     74   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   75         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   76         -
        deserializer: &mut D,
          75  +
    pub fn deserialize(
          76  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   77     77   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   78     78   
        #[allow(unused_variables, unused_mut)]
   79     79   
        let mut builder = Self::builder();
   80     80   
        #[allow(
   81     81   
            unused_variables,
   82     82   
            unreachable_code,
   83     83   
            clippy::single_match,
   84     84   
            clippy::match_single_binding,
   85     85   
            clippy::diverging_sub_expression
   86     86   
        )]
   87         -
        deserializer.read_struct(&TARGETOBJECTKEYFORMAT_SCHEMA, (), |_, member, deser| {
          87  +
        deserializer.read_struct(&TARGETOBJECTKEYFORMAT_SCHEMA, &mut |member, deser| {
   88     88   
            match member.member_index() {
   89     89   
                Some(0) => {
   90     90   
                    builder.simple_prefix = Some(crate::types::SimplePrefix::deserialize(deser)?);
   91     91   
                }
   92     92   
                Some(1) => {
   93     93   
                    builder.partitioned_prefix = Some(crate::types::PartitionedPrefix::deserialize(deser)?);
   94     94   
                }
   95     95   
                _ => {}
   96     96   
            }
   97     97   
            Ok(())
   98     98   
        })?;
   99     99   
        Ok(builder.build())
  100    100   
    }
  101    101   
}
         102  +
impl TargetObjectKeyFormat {
         103  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         104  +
    pub fn deserialize_with_response(
         105  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         106  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         107  +
        _status: u16,
         108  +
        _body: &[u8],
         109  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         110  +
        Self::deserialize(deserializer)
         111  +
    }
         112  +
}
  102    113   
impl TargetObjectKeyFormat {
  103    114   
    /// Creates a new builder-style object to manufacture [`TargetObjectKeyFormat`](crate::types::TargetObjectKeyFormat).
  104    115   
    pub fn builder() -> crate::types::builders::TargetObjectKeyFormatBuilder {
  105    116   
        crate::types::builders::TargetObjectKeyFormatBuilder::default()
  106    117   
    }
  107    118   
}
  108    119   
  109    120   
/// A builder for [`TargetObjectKeyFormat`](crate::types::TargetObjectKeyFormat).
  110    121   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  111    122   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_tiering.rs

@@ -1,1 +122,134 @@
   17     17   
    /// <p>S3 Intelligent-Tiering access tier. See <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html#sc-dynamic-data-access">Storage class for automatically optimizing frequently and infrequently accessed objects</a> for a list of access tiers in the S3 Intelligent-Tiering storage class.</p>
   18     18   
    pub fn access_tier(&self) -> &crate::types::IntelligentTieringAccessTier {
   19     19   
        &self.access_tier
   20     20   
    }
   21     21   
}
   22     22   
static TIERING_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   23     23   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#Tiering", "com.amazonaws.s3", "Tiering");
   24     24   
static TIERING_MEMBER_DAYS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   25     25   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#Tiering$Days", "com.amazonaws.s3", "Tiering"),
   26     26   
    ::aws_smithy_schema::ShapeType::Integer,
   27         -
    "days",
          27  +
    "Days",
   28     28   
    0,
   29     29   
);
   30     30   
static TIERING_MEMBER_ACCESS_TIER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   31     31   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#Tiering$AccessTier", "com.amazonaws.s3", "Tiering"),
   32     32   
    ::aws_smithy_schema::ShapeType::String,
   33         -
    "access_tier",
          33  +
    "AccessTier",
   34     34   
    1,
   35     35   
);
   36     36   
static TIERING_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   37     37   
    TIERING_SCHEMA_ID,
   38     38   
    ::aws_smithy_schema::ShapeType::Structure,
   39     39   
    &[&TIERING_MEMBER_DAYS, &TIERING_MEMBER_ACCESS_TIER],
   40     40   
);
   41     41   
impl Tiering {
   42     42   
    /// The schema for this shape.
   43     43   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &TIERING_SCHEMA;
   44     44   
}
   45     45   
impl ::aws_smithy_schema::serde::SerializableStruct for Tiering {
   46     46   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   47     47   
    fn serialize_members(
   48     48   
        &self,
   49     49   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   50     50   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   51     51   
        {
   52     52   
            let val = &self.days;
   53     53   
            ser.write_integer(&TIERING_MEMBER_DAYS, *val)?;
   54     54   
        }
   55     55   
        {
   56     56   
            let val = &self.access_tier;
   57     57   
            ser.write_string(&TIERING_MEMBER_ACCESS_TIER, val.as_str())?;
   58     58   
        }
   59     59   
        Ok(())
   60     60   
    }
   61     61   
}
   62     62   
impl Tiering {
   63     63   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   64         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   65         -
        deserializer: &mut D,
          64  +
    pub fn deserialize(
          65  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   66     66   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   67     67   
        #[allow(unused_variables, unused_mut)]
   68     68   
        let mut builder = Self::builder();
   69     69   
        #[allow(
   70     70   
            unused_variables,
   71     71   
            unreachable_code,
   72     72   
            clippy::single_match,
   73     73   
            clippy::match_single_binding,
   74     74   
            clippy::diverging_sub_expression
   75     75   
        )]
   76         -
        deserializer.read_struct(&TIERING_SCHEMA, (), |_, member, deser| {
          76  +
        deserializer.read_struct(&TIERING_SCHEMA, &mut |member, deser| {
   77     77   
            match member.member_index() {
   78     78   
                Some(0) => {
   79     79   
                    builder.days = Some(deser.read_integer(member)?);
   80     80   
                }
   81     81   
                Some(1) => {
   82     82   
                    builder.access_tier = Some(crate::types::IntelligentTieringAccessTier::from(deser.read_string(member)?.as_str()));
   83     83   
                }
   84     84   
                _ => {}
   85     85   
            }
   86     86   
            Ok(())
   87     87   
        })?;
          88  +
        builder.days = builder.days.or(Some(0i32));
   88     89   
        builder
   89     90   
            .build()
   90     91   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
   91     92   
    }
   92     93   
}
          94  +
impl Tiering {
          95  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          96  +
    pub fn deserialize_with_response(
          97  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          98  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          99  +
        _status: u16,
         100  +
        _body: &[u8],
         101  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         102  +
        Self::deserialize(deserializer)
         103  +
    }
         104  +
}
   93    105   
impl Tiering {
   94    106   
    /// Creates a new builder-style object to manufacture [`Tiering`](crate::types::Tiering).
   95    107   
    pub fn builder() -> crate::types::builders::TieringBuilder {
   96    108   
        crate::types::builders::TieringBuilder::default()
   97    109   
    }
   98    110   
}
   99    111   
  100    112   
/// A builder for [`Tiering`](crate::types::Tiering).
  101    113   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  102    114   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_topic_configuration.rs

@@ -11,11 +187,197 @@
   31     31   
    /// <p>Specifies object key name filtering rules. For information about key name filtering, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/notification-how-to-filtering.html">Configuring event notifications using object key name filtering</a> in the <i>Amazon S3 User Guide</i>.</p>
   32     32   
    pub fn filter(&self) -> ::std::option::Option<&crate::types::NotificationConfigurationFilter> {
   33     33   
        self.filter.as_ref()
   34     34   
    }
   35     35   
}
   36     36   
static TOPICCONFIGURATION_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   37     37   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#TopicConfiguration", "com.amazonaws.s3", "TopicConfiguration");
   38     38   
static TOPICCONFIGURATION_MEMBER_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   39     39   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#TopicConfiguration$Id", "com.amazonaws.s3", "TopicConfiguration"),
   40     40   
    ::aws_smithy_schema::ShapeType::String,
   41         -
    "id",
          41  +
    "Id",
   42     42   
    0,
   43     43   
);
   44     44   
static TOPICCONFIGURATION_MEMBER_TOPIC_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   45     45   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#TopicConfiguration$TopicArn", "com.amazonaws.s3", "TopicConfiguration"),
   46     46   
    ::aws_smithy_schema::ShapeType::String,
   47         -
    "topic_arn",
          47  +
    "TopicArn",
   48     48   
    1,
   49     49   
)
   50     50   
.with_xml_name("Topic");
   51     51   
static TOPICCONFIGURATION_MEMBER_EVENTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   52     52   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#TopicConfiguration$Events", "com.amazonaws.s3", "TopicConfiguration"),
   53     53   
    ::aws_smithy_schema::ShapeType::List,
   54         -
    "events",
          54  +
    "Events",
   55     55   
    2,
   56     56   
)
   57     57   
.with_xml_name("Event")
   58     58   
.with_xml_flattened();
   59     59   
static TOPICCONFIGURATION_MEMBER_FILTER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   60     60   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#TopicConfiguration$Filter", "com.amazonaws.s3", "TopicConfiguration"),
   61     61   
    ::aws_smithy_schema::ShapeType::Structure,
   62         -
    "filter",
          62  +
    "Filter",
   63     63   
    3,
   64     64   
);
   65     65   
static TOPICCONFIGURATION_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   66     66   
    TOPICCONFIGURATION_SCHEMA_ID,
   67     67   
    ::aws_smithy_schema::ShapeType::Structure,
   68     68   
    &[
   69     69   
        &TOPICCONFIGURATION_MEMBER_ID,
   70     70   
        &TOPICCONFIGURATION_MEMBER_TOPIC_ARN,
   71     71   
        &TOPICCONFIGURATION_MEMBER_EVENTS,
   72     72   
        &TOPICCONFIGURATION_MEMBER_FILTER,
   73     73   
    ],
   74     74   
);
   75     75   
impl TopicConfiguration {
   76     76   
    /// The schema for this shape.
   77     77   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &TOPICCONFIGURATION_SCHEMA;
   78     78   
}
   79     79   
impl ::aws_smithy_schema::serde::SerializableStruct for TopicConfiguration {
   80     80   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   81     81   
    fn serialize_members(
   82     82   
        &self,
   83     83   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   84     84   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   85     85   
        if let Some(ref val) = self.id {
   86     86   
            ser.write_string(&TOPICCONFIGURATION_MEMBER_ID, val)?;
   87     87   
        }
   88     88   
        {
   89     89   
            let val = &self.topic_arn;
   90     90   
            ser.write_string(&TOPICCONFIGURATION_MEMBER_TOPIC_ARN, val)?;
   91     91   
        }
   92     92   
        {
   93     93   
            let val = &self.events;
   94     94   
   95     95   
            ser.write_list(
   96     96   
                &TOPICCONFIGURATION_MEMBER_EVENTS,
   97     97   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   98     98   
                    for item in val {
   99     99   
                        ser.write_string(&aws_smithy_schema::prelude::STRING, item.as_str())?;
  100    100   
                    }
  101    101   
                    Ok(())
  102    102   
                },
  103    103   
            )?;
  104    104   
        }
  105    105   
        if let Some(ref val) = self.filter {
  106    106   
            ser.write_struct(&TOPICCONFIGURATION_MEMBER_FILTER, val)?;
  107    107   
        }
  108    108   
        Ok(())
  109    109   
    }
  110    110   
}
  111    111   
impl TopicConfiguration {
  112    112   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  113         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  114         -
        deserializer: &mut D,
         113  +
    pub fn deserialize(
         114  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  115    115   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  116    116   
        #[allow(unused_variables, unused_mut)]
  117    117   
        let mut builder = Self::builder();
  118    118   
        #[allow(
  119    119   
            unused_variables,
  120    120   
            unreachable_code,
  121    121   
            clippy::single_match,
  122    122   
            clippy::match_single_binding,
  123    123   
            clippy::diverging_sub_expression
  124    124   
        )]
  125         -
        deserializer.read_struct(&TOPICCONFIGURATION_SCHEMA, (), |_, member, deser| {
         125  +
        deserializer.read_struct(&TOPICCONFIGURATION_SCHEMA, &mut |member, deser| {
  126    126   
            match member.member_index() {
  127    127   
                Some(0) => {
  128    128   
                    builder.id = Some(deser.read_string(member)?);
  129    129   
                }
  130    130   
                Some(1) => {
  131    131   
                    builder.topic_arn = Some(deser.read_string(member)?);
  132    132   
                }
  133    133   
                Some(2) => {
  134    134   
                    builder.events = Some({
  135         -
                        let container = if let Some(cap) = deser.container_size() {
  136         -
                            Vec::with_capacity(cap)
  137         -
                        } else {
  138         -
                            Vec::new()
  139         -
                        };
  140         -
                        deser.read_list(member, container, |mut list, deser| {
  141         -
                            list.push(crate::types::Event::from(deser.read_string(member)?.as_str()));
  142         -
                            Ok(list)
  143         -
                        })?
         135  +
                        let mut container = Vec::new();
         136  +
                        deser.read_list(member, &mut |deser| {
         137  +
                            container.push(crate::types::Event::from(deser.read_string(member)?.as_str()));
         138  +
                            Ok(())
         139  +
                        })?;
         140  +
                        container
  144    141   
                    });
  145    142   
                }
  146    143   
                Some(3) => {
  147    144   
                    builder.filter = Some(crate::types::NotificationConfigurationFilter::deserialize(deser)?);
  148    145   
                }
  149    146   
                _ => {}
  150    147   
            }
  151    148   
            Ok(())
  152    149   
        })?;
         150  +
        builder.topic_arn = builder.topic_arn.or(Some(String::new()));
         151  +
        builder.events = builder.events.or(Some(Vec::new()));
  153    152   
        builder
  154    153   
            .build()
  155    154   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  156    155   
    }
  157    156   
}
         157  +
impl TopicConfiguration {
         158  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         159  +
    pub fn deserialize_with_response(
         160  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         161  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         162  +
        _status: u16,
         163  +
        _body: &[u8],
         164  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         165  +
        Self::deserialize(deserializer)
         166  +
    }
         167  +
}
  158    168   
impl TopicConfiguration {
  159    169   
    /// Creates a new builder-style object to manufacture [`TopicConfiguration`](crate::types::TopicConfiguration).
  160    170   
    pub fn builder() -> crate::types::builders::TopicConfigurationBuilder {
  161    171   
        crate::types::builders::TopicConfigurationBuilder::default()
  162    172   
    }
  163    173   
}
  164    174   
  165    175   
/// A builder for [`TopicConfiguration`](crate::types::TopicConfiguration).
  166    176   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  167    177   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_transition.rs

@@ -3,3 +136,148 @@
   23     23   
    /// <p>The storage class to which you want the object to transition.</p>
   24     24   
    pub fn storage_class(&self) -> ::std::option::Option<&crate::types::TransitionStorageClass> {
   25     25   
        self.storage_class.as_ref()
   26     26   
    }
   27     27   
}
   28     28   
static TRANSITION_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   29     29   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#Transition", "com.amazonaws.s3", "Transition");
   30     30   
static TRANSITION_MEMBER_DATE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   31     31   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#Transition$Date", "com.amazonaws.s3", "Transition"),
   32     32   
    ::aws_smithy_schema::ShapeType::Timestamp,
   33         -
    "date",
          33  +
    "Date",
   34     34   
    0,
   35         -
);
          35  +
)
          36  +
.with_timestamp_format(aws_smithy_schema::traits::TimestampFormat::DateTime);
   36     37   
static TRANSITION_MEMBER_DAYS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   37     38   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#Transition$Days", "com.amazonaws.s3", "Transition"),
   38     39   
    ::aws_smithy_schema::ShapeType::Integer,
   39         -
    "days",
          40  +
    "Days",
   40     41   
    1,
   41     42   
);
   42     43   
static TRANSITION_MEMBER_STORAGE_CLASS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   43     44   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#Transition$StorageClass", "com.amazonaws.s3", "Transition"),
   44     45   
    ::aws_smithy_schema::ShapeType::String,
   45         -
    "storage_class",
          46  +
    "StorageClass",
   46     47   
    2,
   47     48   
);
   48     49   
static TRANSITION_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   49     50   
    TRANSITION_SCHEMA_ID,
   50     51   
    ::aws_smithy_schema::ShapeType::Structure,
   51     52   
    &[&TRANSITION_MEMBER_DATE, &TRANSITION_MEMBER_DAYS, &TRANSITION_MEMBER_STORAGE_CLASS],
   52     53   
);
   53     54   
impl Transition {
   54     55   
    /// The schema for this shape.
   55     56   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &TRANSITION_SCHEMA;
   56     57   
}
   57     58   
impl ::aws_smithy_schema::serde::SerializableStruct for Transition {
   58     59   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   59     60   
    fn serialize_members(
   60     61   
        &self,
   61     62   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   62     63   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   63     64   
        if let Some(ref val) = self.date {
   64     65   
            ser.write_timestamp(&TRANSITION_MEMBER_DATE, val)?;
   65     66   
        }
   66     67   
        if let Some(ref val) = self.days {
   67     68   
            ser.write_integer(&TRANSITION_MEMBER_DAYS, *val)?;
   68     69   
        }
   69     70   
        if let Some(ref val) = self.storage_class {
   70     71   
            ser.write_string(&TRANSITION_MEMBER_STORAGE_CLASS, val.as_str())?;
   71     72   
        }
   72     73   
        Ok(())
   73     74   
    }
   74     75   
}
   75     76   
impl Transition {
   76     77   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   77         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   78         -
        deserializer: &mut D,
          78  +
    pub fn deserialize(
          79  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   79     80   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   80     81   
        #[allow(unused_variables, unused_mut)]
   81     82   
        let mut builder = Self::builder();
   82     83   
        #[allow(
   83     84   
            unused_variables,
   84     85   
            unreachable_code,
   85     86   
            clippy::single_match,
   86     87   
            clippy::match_single_binding,
   87     88   
            clippy::diverging_sub_expression
   88     89   
        )]
   89         -
        deserializer.read_struct(&TRANSITION_SCHEMA, (), |_, member, deser| {
          90  +
        deserializer.read_struct(&TRANSITION_SCHEMA, &mut |member, deser| {
   90     91   
            match member.member_index() {
   91     92   
                Some(0) => {
   92     93   
                    builder.date = Some(deser.read_timestamp(member)?);
   93     94   
                }
   94     95   
                Some(1) => {
   95     96   
                    builder.days = Some(deser.read_integer(member)?);
   96     97   
                }
   97     98   
                Some(2) => {
   98     99   
                    builder.storage_class = Some(crate::types::TransitionStorageClass::from(deser.read_string(member)?.as_str()));
   99    100   
                }
  100    101   
                _ => {}
  101    102   
            }
  102    103   
            Ok(())
  103    104   
        })?;
  104    105   
        Ok(builder.build())
  105    106   
    }
  106    107   
}
         108  +
impl Transition {
         109  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         110  +
    pub fn deserialize_with_response(
         111  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         112  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         113  +
        _status: u16,
         114  +
        _body: &[u8],
         115  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         116  +
        Self::deserialize(deserializer)
         117  +
    }
         118  +
}
  107    119   
impl Transition {
  108    120   
    /// Creates a new builder-style object to manufacture [`Transition`](crate::types::Transition).
  109    121   
    pub fn builder() -> crate::types::builders::TransitionBuilder {
  110    122   
        crate::types::builders::TransitionBuilder::default()
  111    123   
    }
  112    124   
}
  113    125   
  114    126   
/// A builder for [`Transition`](crate::types::Transition).
  115    127   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  116    128   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_versioning_configuration.rs

@@ -1,1 +127,138 @@
   21     21   
}
   22     22   
static VERSIONINGCONFIGURATION_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   23     23   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#VersioningConfiguration", "com.amazonaws.s3", "VersioningConfiguration");
   24     24   
static VERSIONINGCONFIGURATION_MEMBER_MFA_DELETE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   25     25   
    ::aws_smithy_schema::ShapeId::from_static(
   26     26   
        "com.amazonaws.s3#VersioningConfiguration$MFADelete",
   27     27   
        "com.amazonaws.s3",
   28     28   
        "VersioningConfiguration",
   29     29   
    ),
   30     30   
    ::aws_smithy_schema::ShapeType::String,
   31         -
    "mfa_delete",
          31  +
    "MFADelete",
   32     32   
    0,
   33     33   
)
   34     34   
.with_xml_name("MfaDelete");
   35     35   
static VERSIONINGCONFIGURATION_MEMBER_STATUS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   36     36   
    ::aws_smithy_schema::ShapeId::from_static(
   37     37   
        "com.amazonaws.s3#VersioningConfiguration$Status",
   38     38   
        "com.amazonaws.s3",
   39     39   
        "VersioningConfiguration",
   40     40   
    ),
   41     41   
    ::aws_smithy_schema::ShapeType::String,
   42         -
    "status",
          42  +
    "Status",
   43     43   
    1,
   44     44   
);
   45     45   
static VERSIONINGCONFIGURATION_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   46     46   
    VERSIONINGCONFIGURATION_SCHEMA_ID,
   47     47   
    ::aws_smithy_schema::ShapeType::Structure,
   48     48   
    &[&VERSIONINGCONFIGURATION_MEMBER_MFA_DELETE, &VERSIONINGCONFIGURATION_MEMBER_STATUS],
   49     49   
);
   50     50   
impl VersioningConfiguration {
   51     51   
    /// The schema for this shape.
   52     52   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &VERSIONINGCONFIGURATION_SCHEMA;
   53     53   
}
   54     54   
impl ::aws_smithy_schema::serde::SerializableStruct for VersioningConfiguration {
   55     55   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   56     56   
    fn serialize_members(
   57     57   
        &self,
   58     58   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   59     59   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   60     60   
        if let Some(ref val) = self.mfa_delete {
   61     61   
            ser.write_string(&VERSIONINGCONFIGURATION_MEMBER_MFA_DELETE, val.as_str())?;
   62     62   
        }
   63     63   
        if let Some(ref val) = self.status {
   64     64   
            ser.write_string(&VERSIONINGCONFIGURATION_MEMBER_STATUS, val.as_str())?;
   65     65   
        }
   66     66   
        Ok(())
   67     67   
    }
   68     68   
}
   69     69   
impl VersioningConfiguration {
   70     70   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   71         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   72         -
        deserializer: &mut D,
          71  +
    pub fn deserialize(
          72  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   73     73   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   74     74   
        #[allow(unused_variables, unused_mut)]
   75     75   
        let mut builder = Self::builder();
   76     76   
        #[allow(
   77     77   
            unused_variables,
   78     78   
            unreachable_code,
   79     79   
            clippy::single_match,
   80     80   
            clippy::match_single_binding,
   81     81   
            clippy::diverging_sub_expression
   82     82   
        )]
   83         -
        deserializer.read_struct(&VERSIONINGCONFIGURATION_SCHEMA, (), |_, member, deser| {
          83  +
        deserializer.read_struct(&VERSIONINGCONFIGURATION_SCHEMA, &mut |member, deser| {
   84     84   
            match member.member_index() {
   85     85   
                Some(0) => {
   86     86   
                    builder.mfa_delete = Some(crate::types::MfaDelete::from(deser.read_string(member)?.as_str()));
   87     87   
                }
   88     88   
                Some(1) => {
   89     89   
                    builder.status = Some(crate::types::BucketVersioningStatus::from(deser.read_string(member)?.as_str()));
   90     90   
                }
   91     91   
                _ => {}
   92     92   
            }
   93     93   
            Ok(())
   94     94   
        })?;
   95     95   
        Ok(builder.build())
   96     96   
    }
   97     97   
}
          98  +
impl VersioningConfiguration {
          99  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         100  +
    pub fn deserialize_with_response(
         101  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         102  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         103  +
        _status: u16,
         104  +
        _body: &[u8],
         105  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         106  +
        Self::deserialize(deserializer)
         107  +
    }
         108  +
}
   98    109   
impl VersioningConfiguration {
   99    110   
    /// Creates a new builder-style object to manufacture [`VersioningConfiguration`](crate::types::VersioningConfiguration).
  100    111   
    pub fn builder() -> crate::types::builders::VersioningConfigurationBuilder {
  101    112   
        crate::types::builders::VersioningConfigurationBuilder::default()
  102    113   
    }
  103    114   
}
  104    115   
  105    116   
/// A builder for [`VersioningConfiguration`](crate::types::VersioningConfiguration).
  106    117   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  107    118   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_website_configuration.rs

@@ -19,19 +199,207 @@
   39     39   
}
   40     40   
static WEBSITECONFIGURATION_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   41     41   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#WebsiteConfiguration", "com.amazonaws.s3", "WebsiteConfiguration");
   42     42   
static WEBSITECONFIGURATION_MEMBER_ERROR_DOCUMENT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   43     43   
    ::aws_smithy_schema::ShapeId::from_static(
   44     44   
        "com.amazonaws.s3#WebsiteConfiguration$ErrorDocument",
   45     45   
        "com.amazonaws.s3",
   46     46   
        "WebsiteConfiguration",
   47     47   
    ),
   48     48   
    ::aws_smithy_schema::ShapeType::Structure,
   49         -
    "error_document",
          49  +
    "ErrorDocument",
   50     50   
    0,
   51     51   
);
   52     52   
static WEBSITECONFIGURATION_MEMBER_INDEX_DOCUMENT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   53     53   
    ::aws_smithy_schema::ShapeId::from_static(
   54     54   
        "com.amazonaws.s3#WebsiteConfiguration$IndexDocument",
   55     55   
        "com.amazonaws.s3",
   56     56   
        "WebsiteConfiguration",
   57     57   
    ),
   58     58   
    ::aws_smithy_schema::ShapeType::Structure,
   59         -
    "index_document",
          59  +
    "IndexDocument",
   60     60   
    1,
   61     61   
);
   62     62   
static WEBSITECONFIGURATION_MEMBER_REDIRECT_ALL_REQUESTS_TO: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   63     63   
    ::aws_smithy_schema::ShapeId::from_static(
   64     64   
        "com.amazonaws.s3#WebsiteConfiguration$RedirectAllRequestsTo",
   65     65   
        "com.amazonaws.s3",
   66     66   
        "WebsiteConfiguration",
   67     67   
    ),
   68     68   
    ::aws_smithy_schema::ShapeType::Structure,
   69         -
    "redirect_all_requests_to",
          69  +
    "RedirectAllRequestsTo",
   70     70   
    2,
   71     71   
);
   72     72   
static WEBSITECONFIGURATION_MEMBER_ROUTING_RULES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   73     73   
    ::aws_smithy_schema::ShapeId::from_static(
   74     74   
        "com.amazonaws.s3#WebsiteConfiguration$RoutingRules",
   75     75   
        "com.amazonaws.s3",
   76     76   
        "WebsiteConfiguration",
   77     77   
    ),
   78     78   
    ::aws_smithy_schema::ShapeType::List,
   79         -
    "routing_rules",
          79  +
    "RoutingRules",
   80     80   
    3,
   81     81   
);
   82     82   
static WEBSITECONFIGURATION_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   83     83   
    WEBSITECONFIGURATION_SCHEMA_ID,
   84     84   
    ::aws_smithy_schema::ShapeType::Structure,
   85     85   
    &[
   86     86   
        &WEBSITECONFIGURATION_MEMBER_ERROR_DOCUMENT,
   87     87   
        &WEBSITECONFIGURATION_MEMBER_INDEX_DOCUMENT,
   88     88   
        &WEBSITECONFIGURATION_MEMBER_REDIRECT_ALL_REQUESTS_TO,
   89     89   
        &WEBSITECONFIGURATION_MEMBER_ROUTING_RULES,
   90     90   
    ],
   91     91   
);
   92     92   
impl WebsiteConfiguration {
   93     93   
    /// The schema for this shape.
   94     94   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &WEBSITECONFIGURATION_SCHEMA;
   95     95   
}
   96     96   
impl ::aws_smithy_schema::serde::SerializableStruct for WebsiteConfiguration {
   97     97   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   98     98   
    fn serialize_members(
   99     99   
        &self,
  100    100   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  101    101   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  102    102   
        if let Some(ref val) = self.error_document {
  103    103   
            ser.write_struct(&WEBSITECONFIGURATION_MEMBER_ERROR_DOCUMENT, val)?;
  104    104   
        }
  105    105   
        if let Some(ref val) = self.index_document {
  106    106   
            ser.write_struct(&WEBSITECONFIGURATION_MEMBER_INDEX_DOCUMENT, val)?;
  107    107   
        }
  108    108   
        if let Some(ref val) = self.redirect_all_requests_to {
  109    109   
            ser.write_struct(&WEBSITECONFIGURATION_MEMBER_REDIRECT_ALL_REQUESTS_TO, val)?;
  110    110   
        }
  111    111   
        if let Some(ref val) = self.routing_rules {
  112    112   
            ser.write_list(
  113    113   
                &WEBSITECONFIGURATION_MEMBER_ROUTING_RULES,
  114    114   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  115    115   
                    for item in val {
  116    116   
                        ser.write_struct(crate::types::RoutingRule::SCHEMA, item)?;
  117    117   
                    }
  118    118   
                    Ok(())
  119    119   
                },
  120    120   
            )?;
  121    121   
        }
  122    122   
        Ok(())
  123    123   
    }
  124    124   
}
  125    125   
impl WebsiteConfiguration {
  126    126   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  127         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  128         -
        deserializer: &mut D,
         127  +
    pub fn deserialize(
         128  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  129    129   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  130    130   
        #[allow(unused_variables, unused_mut)]
  131    131   
        let mut builder = Self::builder();
  132    132   
        #[allow(
  133    133   
            unused_variables,
  134    134   
            unreachable_code,
  135    135   
            clippy::single_match,
  136    136   
            clippy::match_single_binding,
  137    137   
            clippy::diverging_sub_expression
  138    138   
        )]
  139         -
        deserializer.read_struct(&WEBSITECONFIGURATION_SCHEMA, (), |_, member, deser| {
         139  +
        deserializer.read_struct(&WEBSITECONFIGURATION_SCHEMA, &mut |member, deser| {
  140    140   
            match member.member_index() {
  141    141   
                Some(0) => {
  142    142   
                    builder.error_document = Some(crate::types::ErrorDocument::deserialize(deser)?);
  143    143   
                }
  144    144   
                Some(1) => {
  145    145   
                    builder.index_document = Some(crate::types::IndexDocument::deserialize(deser)?);
  146    146   
                }
  147    147   
                Some(2) => {
  148    148   
                    builder.redirect_all_requests_to = Some(crate::types::RedirectAllRequestsTo::deserialize(deser)?);
  149    149   
                }
  150    150   
                Some(3) => {
  151    151   
                    builder.routing_rules = Some({
  152         -
                        let container = if let Some(cap) = deser.container_size() {
  153         -
                            Vec::with_capacity(cap)
  154         -
                        } else {
  155         -
                            Vec::new()
  156         -
                        };
  157         -
                        deser.read_list(member, container, |mut list, deser| {
  158         -
                            list.push(crate::types::RoutingRule::deserialize(deser)?);
  159         -
                            Ok(list)
  160         -
                        })?
         152  +
                        let mut container = Vec::new();
         153  +
                        deser.read_list(member, &mut |deser| {
         154  +
                            container.push(crate::types::RoutingRule::deserialize(deser)?);
         155  +
                            Ok(())
         156  +
                        })?;
         157  +
                        container
  161    158   
                    });
  162    159   
                }
  163    160   
                _ => {}
  164    161   
            }
  165    162   
            Ok(())
  166    163   
        })?;
  167    164   
        Ok(builder.build())
  168    165   
    }
  169    166   
}
         167  +
impl WebsiteConfiguration {
         168  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         169  +
    pub fn deserialize_with_response(
         170  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         171  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         172  +
        _status: u16,
         173  +
        _body: &[u8],
         174  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         175  +
        Self::deserialize(deserializer)
         176  +
    }
         177  +
}
  170    178   
impl WebsiteConfiguration {
  171    179   
    /// Creates a new builder-style object to manufacture [`WebsiteConfiguration`](crate::types::WebsiteConfiguration).
  172    180   
    pub fn builder() -> crate::types::builders::WebsiteConfigurationBuilder {
  173    181   
        crate::types::builders::WebsiteConfigurationBuilder::default()
  174    182   
    }
  175    183   
}
  176    184   
  177    185   
/// A builder for [`WebsiteConfiguration`](crate::types::WebsiteConfiguration).
  178    186   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  179    187   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/error/_bucket_already_exists.rs

@@ -1,1 +95,106 @@
    6      6   
pub struct BucketAlreadyExists {
    7      7   
    #[allow(missing_docs)] // documentation missing in model
    8      8   
    pub message: ::std::option::Option<::std::string::String>,
    9      9   
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
   10     10   
}
   11     11   
static BUCKETALREADYEXISTS_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   12     12   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#BucketAlreadyExists", "com.amazonaws.s3", "BucketAlreadyExists");
   13     13   
static BUCKETALREADYEXISTS_MEMBER_MESSAGE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   14     14   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#BucketAlreadyExists$Message", "com.amazonaws.s3", "BucketAlreadyExists"),
   15     15   
    ::aws_smithy_schema::ShapeType::String,
   16         -
    "message",
          16  +
    "Message",
   17     17   
    0,
   18     18   
);
   19     19   
static BUCKETALREADYEXISTS_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   20     20   
    BUCKETALREADYEXISTS_SCHEMA_ID,
   21     21   
    ::aws_smithy_schema::ShapeType::Structure,
   22     22   
    &[&BUCKETALREADYEXISTS_MEMBER_MESSAGE],
   23     23   
);
   24     24   
impl BucketAlreadyExists {
   25     25   
    /// The schema for this shape.
   26     26   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &BUCKETALREADYEXISTS_SCHEMA;
   27     27   
}
   28     28   
impl ::aws_smithy_schema::serde::SerializableStruct for BucketAlreadyExists {
   29     29   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   30     30   
    fn serialize_members(
   31     31   
        &self,
   32     32   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   33     33   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   34     34   
        if let Some(ref val) = self.message {
   35     35   
            ser.write_string(&BUCKETALREADYEXISTS_MEMBER_MESSAGE, val)?;
   36     36   
        }
   37     37   
        Ok(())
   38     38   
    }
   39     39   
}
   40     40   
impl BucketAlreadyExists {
   41     41   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   42         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   43         -
        deserializer: &mut D,
          42  +
    pub fn deserialize(
          43  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   44     44   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   45     45   
        #[allow(unused_variables, unused_mut)]
   46     46   
        let mut builder = Self::builder();
   47     47   
        #[allow(
   48     48   
            unused_variables,
   49     49   
            unreachable_code,
   50     50   
            clippy::single_match,
   51     51   
            clippy::match_single_binding,
   52     52   
            clippy::diverging_sub_expression
   53     53   
        )]
   54         -
        deserializer.read_struct(&BUCKETALREADYEXISTS_SCHEMA, (), |_, member, deser| {
          54  +
        deserializer.read_struct(&BUCKETALREADYEXISTS_SCHEMA, &mut |member, deser| {
   55     55   
            match member.member_index() {
   56     56   
                Some(0) => {
   57     57   
                    builder.message = Some(deser.read_string(member)?);
   58     58   
                }
   59     59   
                _ => {}
   60     60   
            }
   61     61   
            Ok(())
   62     62   
        })?;
   63     63   
        Ok(builder.build())
   64     64   
    }
   65     65   
}
          66  +
impl BucketAlreadyExists {
          67  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          68  +
    pub fn deserialize_with_response(
          69  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          70  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          71  +
        _status: u16,
          72  +
        _body: &[u8],
          73  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          74  +
        Self::deserialize(deserializer)
          75  +
    }
          76  +
}
   66     77   
impl BucketAlreadyExists {
   67     78   
    /// Returns the error message.
   68     79   
    pub fn message(&self) -> ::std::option::Option<&str> {
   69     80   
        self.message.as_deref()
   70     81   
    }
   71     82   
}
   72     83   
impl ::std::fmt::Display for BucketAlreadyExists {
   73     84   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
   74     85   
        ::std::write!(f, "BucketAlreadyExists")?;
   75     86   
        if let ::std::option::Option::Some(inner_1) = &self.message {

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/error/_bucket_already_owned_by_you.rs

@@ -1,1 +99,110 @@
   10     10   
}
   11     11   
static BUCKETALREADYOWNEDBYYOU_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   12     12   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#BucketAlreadyOwnedByYou", "com.amazonaws.s3", "BucketAlreadyOwnedByYou");
   13     13   
static BUCKETALREADYOWNEDBYYOU_MEMBER_MESSAGE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   14     14   
    ::aws_smithy_schema::ShapeId::from_static(
   15     15   
        "com.amazonaws.s3#BucketAlreadyOwnedByYou$Message",
   16     16   
        "com.amazonaws.s3",
   17     17   
        "BucketAlreadyOwnedByYou",
   18     18   
    ),
   19     19   
    ::aws_smithy_schema::ShapeType::String,
   20         -
    "message",
          20  +
    "Message",
   21     21   
    0,
   22     22   
);
   23     23   
static BUCKETALREADYOWNEDBYYOU_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   24     24   
    BUCKETALREADYOWNEDBYYOU_SCHEMA_ID,
   25     25   
    ::aws_smithy_schema::ShapeType::Structure,
   26     26   
    &[&BUCKETALREADYOWNEDBYYOU_MEMBER_MESSAGE],
   27     27   
);
   28     28   
impl BucketAlreadyOwnedByYou {
   29     29   
    /// The schema for this shape.
   30     30   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &BUCKETALREADYOWNEDBYYOU_SCHEMA;
   31     31   
}
   32     32   
impl ::aws_smithy_schema::serde::SerializableStruct for BucketAlreadyOwnedByYou {
   33     33   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   34     34   
    fn serialize_members(
   35     35   
        &self,
   36     36   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   37     37   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   38     38   
        if let Some(ref val) = self.message {
   39     39   
            ser.write_string(&BUCKETALREADYOWNEDBYYOU_MEMBER_MESSAGE, val)?;
   40     40   
        }
   41     41   
        Ok(())
   42     42   
    }
   43     43   
}
   44     44   
impl BucketAlreadyOwnedByYou {
   45     45   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   46         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   47         -
        deserializer: &mut D,
          46  +
    pub fn deserialize(
          47  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   48     48   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   49     49   
        #[allow(unused_variables, unused_mut)]
   50     50   
        let mut builder = Self::builder();
   51     51   
        #[allow(
   52     52   
            unused_variables,
   53     53   
            unreachable_code,
   54     54   
            clippy::single_match,
   55     55   
            clippy::match_single_binding,
   56     56   
            clippy::diverging_sub_expression
   57     57   
        )]
   58         -
        deserializer.read_struct(&BUCKETALREADYOWNEDBYYOU_SCHEMA, (), |_, member, deser| {
          58  +
        deserializer.read_struct(&BUCKETALREADYOWNEDBYYOU_SCHEMA, &mut |member, deser| {
   59     59   
            match member.member_index() {
   60     60   
                Some(0) => {
   61     61   
                    builder.message = Some(deser.read_string(member)?);
   62     62   
                }
   63     63   
                _ => {}
   64     64   
            }
   65     65   
            Ok(())
   66     66   
        })?;
   67     67   
        Ok(builder.build())
   68     68   
    }
   69     69   
}
          70  +
impl BucketAlreadyOwnedByYou {
          71  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          72  +
    pub fn deserialize_with_response(
          73  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          74  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          75  +
        _status: u16,
          76  +
        _body: &[u8],
          77  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          78  +
        Self::deserialize(deserializer)
          79  +
    }
          80  +
}
   70     81   
impl BucketAlreadyOwnedByYou {
   71     82   
    /// Returns the error message.
   72     83   
    pub fn message(&self) -> ::std::option::Option<&str> {
   73     84   
        self.message.as_deref()
   74     85   
    }
   75     86   
}
   76     87   
impl ::std::fmt::Display for BucketAlreadyOwnedByYou {
   77     88   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
   78     89   
        ::std::write!(f, "BucketAlreadyOwnedByYou")?;
   79     90   
        if let ::std::option::Option::Some(inner_1) = &self.message {