AWS SDK

AWS SDK

rev. 163d4d6410694aaf071424777ecbecd050925f36 (ignoring whitespace)

Files changed:

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

@@ -1,1 +118,129 @@
   17     17   
    /// <p>Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can specify a different error code to return.</p>
   18     18   
    pub fn redirect(&self) -> ::std::option::Option<&crate::types::Redirect> {
   19     19   
        self.redirect.as_ref()
   20     20   
    }
   21     21   
}
   22     22   
static ROUTINGRULE_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   23     23   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#RoutingRule", "com.amazonaws.s3", "RoutingRule");
   24     24   
static ROUTINGRULE_MEMBER_CONDITION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   25     25   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#RoutingRule$Condition", "com.amazonaws.s3", "RoutingRule"),
   26     26   
    ::aws_smithy_schema::ShapeType::Structure,
   27         -
    "condition",
          27  +
    "Condition",
   28     28   
    0,
   29     29   
);
   30     30   
static ROUTINGRULE_MEMBER_REDIRECT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   31     31   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#RoutingRule$Redirect", "com.amazonaws.s3", "RoutingRule"),
   32     32   
    ::aws_smithy_schema::ShapeType::Structure,
   33         -
    "redirect",
          33  +
    "Redirect",
   34     34   
    1,
   35     35   
);
   36     36   
static ROUTINGRULE_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   37     37   
    ROUTINGRULE_SCHEMA_ID,
   38     38   
    ::aws_smithy_schema::ShapeType::Structure,
   39     39   
    &[&ROUTINGRULE_MEMBER_CONDITION, &ROUTINGRULE_MEMBER_REDIRECT],
   40     40   
);
   41     41   
impl RoutingRule {
   42     42   
    /// The schema for this shape.
   43     43   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &ROUTINGRULE_SCHEMA;
   44     44   
}
   45     45   
impl ::aws_smithy_schema::serde::SerializableStruct for RoutingRule {
   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   
        if let Some(ref val) = self.condition {
   52     52   
            ser.write_struct(&ROUTINGRULE_MEMBER_CONDITION, val)?;
   53     53   
        }
   54     54   
        if let Some(ref val) = self.redirect {
   55     55   
            ser.write_struct(&ROUTINGRULE_MEMBER_REDIRECT, val)?;
   56     56   
        }
   57     57   
        Ok(())
   58     58   
    }
   59     59   
}
   60     60   
impl RoutingRule {
   61     61   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   62         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   63         -
        deserializer: &mut D,
          62  +
    pub fn deserialize(
          63  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   64     64   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   65     65   
        #[allow(unused_variables, unused_mut)]
   66     66   
        let mut builder = Self::builder();
   67     67   
        #[allow(
   68     68   
            unused_variables,
   69     69   
            unreachable_code,
   70     70   
            clippy::single_match,
   71     71   
            clippy::match_single_binding,
   72     72   
            clippy::diverging_sub_expression
   73     73   
        )]
   74         -
        deserializer.read_struct(&ROUTINGRULE_SCHEMA, (), |_, member, deser| {
          74  +
        deserializer.read_struct(&ROUTINGRULE_SCHEMA, &mut |member, deser| {
   75     75   
            match member.member_index() {
   76     76   
                Some(0) => {
   77     77   
                    builder.condition = Some(crate::types::Condition::deserialize(deser)?);
   78     78   
                }
   79     79   
                Some(1) => {
   80     80   
                    builder.redirect = Some(crate::types::Redirect::deserialize(deser)?);
   81     81   
                }
   82     82   
                _ => {}
   83     83   
            }
   84     84   
            Ok(())
   85     85   
        })?;
   86     86   
        Ok(builder.build())
   87     87   
    }
   88     88   
}
          89  +
impl RoutingRule {
          90  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          91  +
    pub fn deserialize_with_response(
          92  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          93  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          94  +
        _status: u16,
          95  +
        _body: &[u8],
          96  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          97  +
        Self::deserialize(deserializer)
          98  +
    }
          99  +
}
   89    100   
impl RoutingRule {
   90    101   
    /// Creates a new builder-style object to manufacture [`RoutingRule`](crate::types::RoutingRule).
   91    102   
    pub fn builder() -> crate::types::builders::RoutingRuleBuilder {
   92    103   
        crate::types::builders::RoutingRuleBuilder::default()
   93    104   
    }
   94    105   
}
   95    106   
   96    107   
/// A builder for [`RoutingRule`](crate::types::RoutingRule).
   97    108   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   98    109   
#[non_exhaustive]

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

@@ -1,1 +122,130 @@
   13     13   
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.filter_rules.is_none()`.
   14     14   
    pub fn filter_rules(&self) -> &[crate::types::FilterRule] {
   15     15   
        self.filter_rules.as_deref().unwrap_or_default()
   16     16   
    }
   17     17   
}
   18     18   
static S3KEYFILTER_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   19     19   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#S3KeyFilter", "com.amazonaws.s3", "S3KeyFilter");
   20     20   
static S3KEYFILTER_MEMBER_FILTER_RULES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   21     21   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#S3KeyFilter$FilterRules", "com.amazonaws.s3", "S3KeyFilter"),
   22     22   
    ::aws_smithy_schema::ShapeType::List,
   23         -
    "filter_rules",
          23  +
    "FilterRules",
   24     24   
    0,
   25     25   
)
   26     26   
.with_xml_name("FilterRule")
   27     27   
.with_xml_flattened();
   28     28   
static S3KEYFILTER_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   29     29   
    S3KEYFILTER_SCHEMA_ID,
   30     30   
    ::aws_smithy_schema::ShapeType::Structure,
   31     31   
    &[&S3KEYFILTER_MEMBER_FILTER_RULES],
   32     32   
);
   33     33   
impl S3KeyFilter {
   34     34   
    /// The schema for this shape.
   35     35   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &S3KEYFILTER_SCHEMA;
   36     36   
}
   37     37   
impl ::aws_smithy_schema::serde::SerializableStruct for S3KeyFilter {
   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.filter_rules {
   44     44   
            ser.write_list(
   45     45   
                &S3KEYFILTER_MEMBER_FILTER_RULES,
   46     46   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   47     47   
                    for item in val {
   48     48   
                        ser.write_struct(crate::types::FilterRule::SCHEMA, item)?;
   49     49   
                    }
   50     50   
                    Ok(())
   51     51   
                },
   52     52   
            )?;
   53     53   
        }
   54     54   
        Ok(())
   55     55   
    }
   56     56   
}
   57     57   
impl S3KeyFilter {
   58     58   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   59         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   60         -
        deserializer: &mut D,
          59  +
    pub fn deserialize(
          60  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   61     61   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   62     62   
        #[allow(unused_variables, unused_mut)]
   63     63   
        let mut builder = Self::builder();
   64     64   
        #[allow(
   65     65   
            unused_variables,
   66     66   
            unreachable_code,
   67     67   
            clippy::single_match,
   68     68   
            clippy::match_single_binding,
   69     69   
            clippy::diverging_sub_expression
   70     70   
        )]
   71         -
        deserializer.read_struct(&S3KEYFILTER_SCHEMA, (), |_, member, deser| {
          71  +
        deserializer.read_struct(&S3KEYFILTER_SCHEMA, &mut |member, deser| {
   72     72   
            match member.member_index() {
   73     73   
                Some(0) => {
   74     74   
                    builder.filter_rules = Some({
   75         -
                        let container = if let Some(cap) = deser.container_size() {
   76         -
                            Vec::with_capacity(cap)
   77         -
                        } else {
   78         -
                            Vec::new()
   79         -
                        };
   80         -
                        deser.read_list(member, container, |mut list, deser| {
   81         -
                            list.push(crate::types::FilterRule::deserialize(deser)?);
   82         -
                            Ok(list)
   83         -
                        })?
          75  +
                        let mut container = Vec::new();
          76  +
                        deser.read_list(member, &mut |deser| {
          77  +
                            container.push(crate::types::FilterRule::deserialize(deser)?);
          78  +
                            Ok(())
          79  +
                        })?;
          80  +
                        container
   84     81   
                    });
   85     82   
                }
   86     83   
                _ => {}
   87     84   
            }
   88     85   
            Ok(())
   89     86   
        })?;
   90     87   
        Ok(builder.build())
   91     88   
    }
   92     89   
}
          90  +
impl S3KeyFilter {
          91  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          92  +
    pub fn deserialize_with_response(
          93  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          94  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          95  +
        _status: u16,
          96  +
        _body: &[u8],
          97  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          98  +
        Self::deserialize(deserializer)
          99  +
    }
         100  +
}
   93    101   
impl S3KeyFilter {
   94    102   
    /// Creates a new builder-style object to manufacture [`S3KeyFilter`](crate::types::S3KeyFilter).
   95    103   
    pub fn builder() -> crate::types::builders::S3KeyFilterBuilder {
   96    104   
        crate::types::builders::S3KeyFilterBuilder::default()
   97    105   
    }
   98    106   
}
   99    107   
  100    108   
/// A builder for [`S3KeyFilter`](crate::types::S3KeyFilter).
  101    109   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  102    110   
#[non_exhaustive]

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

@@ -39,39 +141,141 @@
   59     59   
    /// <p>The class of storage used to store the restore results.</p>
   60     60   
    pub fn storage_class(&self) -> ::std::option::Option<&crate::types::StorageClass> {
   61     61   
        self.storage_class.as_ref()
   62     62   
    }
   63     63   
}
   64     64   
static S3LOCATION_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   65     65   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#S3Location", "com.amazonaws.s3", "S3Location");
   66     66   
static S3LOCATION_MEMBER_BUCKET_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   67     67   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#S3Location$BucketName", "com.amazonaws.s3", "S3Location"),
   68     68   
    ::aws_smithy_schema::ShapeType::String,
   69         -
    "bucket_name",
          69  +
    "BucketName",
   70     70   
    0,
   71     71   
);
   72     72   
static S3LOCATION_MEMBER_PREFIX: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   73     73   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#S3Location$Prefix", "com.amazonaws.s3", "S3Location"),
   74     74   
    ::aws_smithy_schema::ShapeType::String,
   75         -
    "prefix",
          75  +
    "Prefix",
   76     76   
    1,
   77     77   
);
   78     78   
static S3LOCATION_MEMBER_ENCRYPTION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   79     79   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#S3Location$Encryption", "com.amazonaws.s3", "S3Location"),
   80     80   
    ::aws_smithy_schema::ShapeType::Structure,
   81         -
    "encryption",
          81  +
    "Encryption",
   82     82   
    2,
   83     83   
);
   84     84   
static S3LOCATION_MEMBER_CANNED_ACL: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   85     85   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#S3Location$CannedACL", "com.amazonaws.s3", "S3Location"),
   86     86   
    ::aws_smithy_schema::ShapeType::String,
   87         -
    "canned_acl",
          87  +
    "CannedACL",
   88     88   
    3,
   89     89   
);
   90     90   
static S3LOCATION_MEMBER_ACCESS_CONTROL_LIST: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   91     91   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#S3Location$AccessControlList", "com.amazonaws.s3", "S3Location"),
   92     92   
    ::aws_smithy_schema::ShapeType::List,
   93         -
    "access_control_list",
          93  +
    "AccessControlList",
   94     94   
    4,
   95     95   
);
   96     96   
static S3LOCATION_MEMBER_TAGGING: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   97     97   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#S3Location$Tagging", "com.amazonaws.s3", "S3Location"),
   98     98   
    ::aws_smithy_schema::ShapeType::Structure,
   99         -
    "tagging",
          99  +
    "Tagging",
  100    100   
    5,
  101    101   
);
  102    102   
static S3LOCATION_MEMBER_USER_METADATA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  103    103   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#S3Location$UserMetadata", "com.amazonaws.s3", "S3Location"),
  104    104   
    ::aws_smithy_schema::ShapeType::List,
  105         -
    "user_metadata",
         105  +
    "UserMetadata",
  106    106   
    6,
  107    107   
);
  108    108   
static S3LOCATION_MEMBER_STORAGE_CLASS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  109    109   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#S3Location$StorageClass", "com.amazonaws.s3", "S3Location"),
  110    110   
    ::aws_smithy_schema::ShapeType::String,
  111         -
    "storage_class",
         111  +
    "StorageClass",
  112    112   
    7,
  113    113   
);
  114    114   
static S3LOCATION_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  115    115   
    S3LOCATION_SCHEMA_ID,
  116    116   
    ::aws_smithy_schema::ShapeType::Structure,
  117    117   
    &[
  118    118   
        &S3LOCATION_MEMBER_BUCKET_NAME,
  119    119   
        &S3LOCATION_MEMBER_PREFIX,
  120    120   
        &S3LOCATION_MEMBER_ENCRYPTION,
  121    121   
        &S3LOCATION_MEMBER_CANNED_ACL,
@@ -155,155 +281,288 @@
  175    175   
            )?;
  176    176   
        }
  177    177   
        if let Some(ref val) = self.storage_class {
  178    178   
            ser.write_string(&S3LOCATION_MEMBER_STORAGE_CLASS, val.as_str())?;
  179    179   
        }
  180    180   
        Ok(())
  181    181   
    }
  182    182   
}
  183    183   
impl S3Location {
  184    184   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  185         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  186         -
        deserializer: &mut D,
         185  +
    pub fn deserialize(
         186  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  187    187   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  188    188   
        #[allow(unused_variables, unused_mut)]
  189    189   
        let mut builder = Self::builder();
  190    190   
        #[allow(
  191    191   
            unused_variables,
  192    192   
            unreachable_code,
  193    193   
            clippy::single_match,
  194    194   
            clippy::match_single_binding,
  195    195   
            clippy::diverging_sub_expression
  196    196   
        )]
  197         -
        deserializer.read_struct(&S3LOCATION_SCHEMA, (), |_, member, deser| {
         197  +
        deserializer.read_struct(&S3LOCATION_SCHEMA, &mut |member, deser| {
  198    198   
            match member.member_index() {
  199    199   
                Some(0) => {
  200    200   
                    builder.bucket_name = Some(deser.read_string(member)?);
  201    201   
                }
  202    202   
                Some(1) => {
  203    203   
                    builder.prefix = Some(deser.read_string(member)?);
  204    204   
                }
  205    205   
                Some(2) => {
  206    206   
                    builder.encryption = Some(crate::types::Encryption::deserialize(deser)?);
  207    207   
                }
  208    208   
                Some(3) => {
  209    209   
                    builder.canned_acl = Some(crate::types::ObjectCannedAcl::from(deser.read_string(member)?.as_str()));
  210    210   
                }
  211    211   
                Some(4) => {
  212    212   
                    builder.access_control_list = Some({
  213         -
                        let container = if let Some(cap) = deser.container_size() {
  214         -
                            Vec::with_capacity(cap)
  215         -
                        } else {
  216         -
                            Vec::new()
  217         -
                        };
  218         -
                        deser.read_list(member, container, |mut list, deser| {
  219         -
                            list.push(crate::types::Grant::deserialize(deser)?);
  220         -
                            Ok(list)
  221         -
                        })?
         213  +
                        let mut container = Vec::new();
         214  +
                        deser.read_list(member, &mut |deser| {
         215  +
                            container.push(crate::types::Grant::deserialize(deser)?);
         216  +
                            Ok(())
         217  +
                        })?;
         218  +
                        container
  222    219   
                    });
  223    220   
                }
  224    221   
                Some(5) => {
  225    222   
                    builder.tagging = Some(crate::types::Tagging::deserialize(deser)?);
  226    223   
                }
  227    224   
                Some(6) => {
  228    225   
                    builder.user_metadata = Some({
  229         -
                        let container = if let Some(cap) = deser.container_size() {
  230         -
                            Vec::with_capacity(cap)
  231         -
                        } else {
  232         -
                            Vec::new()
  233         -
                        };
  234         -
                        deser.read_list(member, container, |mut list, deser| {
  235         -
                            list.push(crate::types::MetadataEntry::deserialize(deser)?);
  236         -
                            Ok(list)
  237         -
                        })?
         226  +
                        let mut container = Vec::new();
         227  +
                        deser.read_list(member, &mut |deser| {
         228  +
                            container.push(crate::types::MetadataEntry::deserialize(deser)?);
         229  +
                            Ok(())
         230  +
                        })?;
         231  +
                        container
  238    232   
                    });
  239    233   
                }
  240    234   
                Some(7) => {
  241    235   
                    builder.storage_class = Some(crate::types::StorageClass::from(deser.read_string(member)?.as_str()));
  242    236   
                }
  243    237   
                _ => {}
  244    238   
            }
  245    239   
            Ok(())
  246    240   
        })?;
         241  +
        builder.bucket_name = builder.bucket_name.or(Some(String::new()));
         242  +
        builder.prefix = builder.prefix.or(Some(String::new()));
  247    243   
        builder
  248    244   
            .build()
  249    245   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  250    246   
    }
  251    247   
}
         248  +
impl S3Location {
         249  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         250  +
    pub fn deserialize_with_response(
         251  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         252  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         253  +
        _status: u16,
         254  +
        _body: &[u8],
         255  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         256  +
        Self::deserialize(deserializer)
         257  +
    }
         258  +
}
  252    259   
impl S3Location {
  253    260   
    /// Creates a new builder-style object to manufacture [`S3Location`](crate::types::S3Location).
  254    261   
    pub fn builder() -> crate::types::builders::S3LocationBuilder {
  255    262   
        crate::types::builders::S3LocationBuilder::default()
  256    263   
    }
  257    264   
}
  258    265   
  259    266   
/// A builder for [`S3Location`](crate::types::S3Location).
  260    267   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  261    268   
#[non_exhaustive]

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

@@ -5,5 +134,147 @@
   25     25   
}
   26     26   
static S3TABLESDESTINATION_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   27     27   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#S3TablesDestination", "com.amazonaws.s3", "S3TablesDestination");
   28     28   
static S3TABLESDESTINATION_MEMBER_TABLE_BUCKET_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   29     29   
    ::aws_smithy_schema::ShapeId::from_static(
   30     30   
        "com.amazonaws.s3#S3TablesDestination$TableBucketArn",
   31     31   
        "com.amazonaws.s3",
   32     32   
        "S3TablesDestination",
   33     33   
    ),
   34     34   
    ::aws_smithy_schema::ShapeType::String,
   35         -
    "table_bucket_arn",
          35  +
    "TableBucketArn",
   36     36   
    0,
   37     37   
);
   38     38   
static S3TABLESDESTINATION_MEMBER_TABLE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   39     39   
    ::aws_smithy_schema::ShapeId::from_static(
   40     40   
        "com.amazonaws.s3#S3TablesDestination$TableName",
   41     41   
        "com.amazonaws.s3",
   42     42   
        "S3TablesDestination",
   43     43   
    ),
   44     44   
    ::aws_smithy_schema::ShapeType::String,
   45         -
    "table_name",
          45  +
    "TableName",
   46     46   
    1,
   47     47   
);
   48     48   
static S3TABLESDESTINATION_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   49     49   
    S3TABLESDESTINATION_SCHEMA_ID,
   50     50   
    ::aws_smithy_schema::ShapeType::Structure,
   51     51   
    &[&S3TABLESDESTINATION_MEMBER_TABLE_BUCKET_ARN, &S3TABLESDESTINATION_MEMBER_TABLE_NAME],
   52     52   
);
   53     53   
impl S3TablesDestination {
   54     54   
    /// The schema for this shape.
   55     55   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &S3TABLESDESTINATION_SCHEMA;
   56     56   
}
   57     57   
impl ::aws_smithy_schema::serde::SerializableStruct for S3TablesDestination {
   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   
        {
   64     64   
            let val = &self.table_bucket_arn;
   65     65   
            ser.write_string(&S3TABLESDESTINATION_MEMBER_TABLE_BUCKET_ARN, val)?;
   66     66   
        }
   67     67   
        {
   68     68   
            let val = &self.table_name;
   69     69   
            ser.write_string(&S3TABLESDESTINATION_MEMBER_TABLE_NAME, val)?;
   70     70   
        }
   71     71   
        Ok(())
   72     72   
    }
   73     73   
}
   74     74   
impl S3TablesDestination {
   75     75   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   76         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   77         -
        deserializer: &mut D,
          76  +
    pub fn deserialize(
          77  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   78     78   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   79     79   
        #[allow(unused_variables, unused_mut)]
   80     80   
        let mut builder = Self::builder();
   81     81   
        #[allow(
   82     82   
            unused_variables,
   83     83   
            unreachable_code,
   84     84   
            clippy::single_match,
   85     85   
            clippy::match_single_binding,
   86     86   
            clippy::diverging_sub_expression
   87     87   
        )]
   88         -
        deserializer.read_struct(&S3TABLESDESTINATION_SCHEMA, (), |_, member, deser| {
          88  +
        deserializer.read_struct(&S3TABLESDESTINATION_SCHEMA, &mut |member, deser| {
   89     89   
            match member.member_index() {
   90     90   
                Some(0) => {
   91     91   
                    builder.table_bucket_arn = Some(deser.read_string(member)?);
   92     92   
                }
   93     93   
                Some(1) => {
   94     94   
                    builder.table_name = Some(deser.read_string(member)?);
   95     95   
                }
   96     96   
                _ => {}
   97     97   
            }
   98     98   
            Ok(())
   99     99   
        })?;
         100  +
        builder.table_bucket_arn = builder.table_bucket_arn.or(Some(String::new()));
         101  +
        builder.table_name = builder.table_name.or(Some(String::new()));
  100    102   
        builder
  101    103   
            .build()
  102    104   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  103    105   
    }
  104    106   
}
         107  +
impl S3TablesDestination {
         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  +
}
  105    118   
impl S3TablesDestination {
  106    119   
    /// Creates a new builder-style object to manufacture [`S3TablesDestination`](crate::types::S3TablesDestination).
  107    120   
    pub fn builder() -> crate::types::builders::S3TablesDestinationBuilder {
  108    121   
        crate::types::builders::S3TablesDestinationBuilder::default()
  109    122   
    }
  110    123   
}
  111    124   
  112    125   
/// A builder for [`S3TablesDestination`](crate::types::S3TablesDestination).
  113    126   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  114    127   
#[non_exhaustive]

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

@@ -22,22 +190,205 @@
   42     42   
    "com.amazonaws.s3",
   43     43   
    "S3TablesDestinationResult",
   44     44   
);
   45     45   
static S3TABLESDESTINATIONRESULT_MEMBER_TABLE_BUCKET_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   46     46   
    ::aws_smithy_schema::ShapeId::from_static(
   47     47   
        "com.amazonaws.s3#S3TablesDestinationResult$TableBucketArn",
   48     48   
        "com.amazonaws.s3",
   49     49   
        "S3TablesDestinationResult",
   50     50   
    ),
   51     51   
    ::aws_smithy_schema::ShapeType::String,
   52         -
    "table_bucket_arn",
          52  +
    "TableBucketArn",
   53     53   
    0,
   54     54   
);
   55     55   
static S3TABLESDESTINATIONRESULT_MEMBER_TABLE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   56     56   
    ::aws_smithy_schema::ShapeId::from_static(
   57     57   
        "com.amazonaws.s3#S3TablesDestinationResult$TableName",
   58     58   
        "com.amazonaws.s3",
   59     59   
        "S3TablesDestinationResult",
   60     60   
    ),
   61     61   
    ::aws_smithy_schema::ShapeType::String,
   62         -
    "table_name",
          62  +
    "TableName",
   63     63   
    1,
   64     64   
);
   65     65   
static S3TABLESDESTINATIONRESULT_MEMBER_TABLE_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   66     66   
    ::aws_smithy_schema::ShapeId::from_static(
   67     67   
        "com.amazonaws.s3#S3TablesDestinationResult$TableArn",
   68     68   
        "com.amazonaws.s3",
   69     69   
        "S3TablesDestinationResult",
   70     70   
    ),
   71     71   
    ::aws_smithy_schema::ShapeType::String,
   72         -
    "table_arn",
          72  +
    "TableArn",
   73     73   
    2,
   74     74   
);
   75     75   
static S3TABLESDESTINATIONRESULT_MEMBER_TABLE_NAMESPACE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   76     76   
    ::aws_smithy_schema::ShapeId::from_static(
   77     77   
        "com.amazonaws.s3#S3TablesDestinationResult$TableNamespace",
   78     78   
        "com.amazonaws.s3",
   79     79   
        "S3TablesDestinationResult",
   80     80   
    ),
   81     81   
    ::aws_smithy_schema::ShapeType::String,
   82         -
    "table_namespace",
          82  +
    "TableNamespace",
   83     83   
    3,
   84     84   
);
   85     85   
static S3TABLESDESTINATIONRESULT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   86     86   
    S3TABLESDESTINATIONRESULT_SCHEMA_ID,
   87     87   
    ::aws_smithy_schema::ShapeType::Structure,
   88     88   
    &[
   89     89   
        &S3TABLESDESTINATIONRESULT_MEMBER_TABLE_BUCKET_ARN,
   90     90   
        &S3TABLESDESTINATIONRESULT_MEMBER_TABLE_NAME,
   91     91   
        &S3TABLESDESTINATIONRESULT_MEMBER_TABLE_ARN,
   92     92   
        &S3TABLESDESTINATIONRESULT_MEMBER_TABLE_NAMESPACE,
   93     93   
    ],
   94     94   
);
   95     95   
impl S3TablesDestinationResult {
   96     96   
    /// The schema for this shape.
   97     97   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &S3TABLESDESTINATIONRESULT_SCHEMA;
   98     98   
}
   99     99   
impl ::aws_smithy_schema::serde::SerializableStruct for S3TablesDestinationResult {
  100    100   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  101    101   
    fn serialize_members(
  102    102   
        &self,
  103    103   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  104    104   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  105    105   
        {
  106    106   
            let val = &self.table_bucket_arn;
  107    107   
            ser.write_string(&S3TABLESDESTINATIONRESULT_MEMBER_TABLE_BUCKET_ARN, val)?;
  108    108   
        }
  109    109   
        {
  110    110   
            let val = &self.table_name;
  111    111   
            ser.write_string(&S3TABLESDESTINATIONRESULT_MEMBER_TABLE_NAME, val)?;
  112    112   
        }
  113    113   
        {
  114    114   
            let val = &self.table_arn;
  115    115   
            ser.write_string(&S3TABLESDESTINATIONRESULT_MEMBER_TABLE_ARN, val)?;
  116    116   
        }
  117    117   
        {
  118    118   
            let val = &self.table_namespace;
  119    119   
            ser.write_string(&S3TABLESDESTINATIONRESULT_MEMBER_TABLE_NAMESPACE, val)?;
  120    120   
        }
  121    121   
        Ok(())
  122    122   
    }
  123    123   
}
  124    124   
impl S3TablesDestinationResult {
  125    125   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  126         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  127         -
        deserializer: &mut D,
         126  +
    pub fn deserialize(
         127  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  128    128   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  129    129   
        #[allow(unused_variables, unused_mut)]
  130    130   
        let mut builder = Self::builder();
  131    131   
        #[allow(
  132    132   
            unused_variables,
  133    133   
            unreachable_code,
  134    134   
            clippy::single_match,
  135    135   
            clippy::match_single_binding,
  136    136   
            clippy::diverging_sub_expression
  137    137   
        )]
  138         -
        deserializer.read_struct(&S3TABLESDESTINATIONRESULT_SCHEMA, (), |_, member, deser| {
         138  +
        deserializer.read_struct(&S3TABLESDESTINATIONRESULT_SCHEMA, &mut |member, deser| {
  139    139   
            match member.member_index() {
  140    140   
                Some(0) => {
  141    141   
                    builder.table_bucket_arn = Some(deser.read_string(member)?);
  142    142   
                }
  143    143   
                Some(1) => {
  144    144   
                    builder.table_name = Some(deser.read_string(member)?);
  145    145   
                }
  146    146   
                Some(2) => {
  147    147   
                    builder.table_arn = Some(deser.read_string(member)?);
  148    148   
                }
  149    149   
                Some(3) => {
  150    150   
                    builder.table_namespace = Some(deser.read_string(member)?);
  151    151   
                }
  152    152   
                _ => {}
  153    153   
            }
  154    154   
            Ok(())
  155    155   
        })?;
         156  +
        builder.table_bucket_arn = builder.table_bucket_arn.or(Some(String::new()));
         157  +
        builder.table_name = builder.table_name.or(Some(String::new()));
         158  +
        builder.table_arn = builder.table_arn.or(Some(String::new()));
         159  +
        builder.table_namespace = builder.table_namespace.or(Some(String::new()));
  156    160   
        builder
  157    161   
            .build()
  158    162   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  159    163   
    }
  160    164   
}
         165  +
impl S3TablesDestinationResult {
         166  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         167  +
    pub fn deserialize_with_response(
         168  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         169  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         170  +
        _status: u16,
         171  +
        _body: &[u8],
         172  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         173  +
        Self::deserialize(deserializer)
         174  +
    }
         175  +
}
  161    176   
impl S3TablesDestinationResult {
  162    177   
    /// Creates a new builder-style object to manufacture [`S3TablesDestinationResult`](crate::types::S3TablesDestinationResult).
  163    178   
    pub fn builder() -> crate::types::builders::S3TablesDestinationResultBuilder {
  164    179   
        crate::types::builders::S3TablesDestinationResultBuilder::default()
  165    180   
    }
  166    181   
}
  167    182   
  168    183   
/// A builder for [`S3TablesDestinationResult`](crate::types::S3TablesDestinationResult).
  169    184   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  170    185   
#[non_exhaustive]

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

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

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

@@ -68,68 +0,216 @@
   88     88   
    }
   89     89   
    /// Returns true if this is a [`Stats`](crate::types::SelectObjectContentEventStream::Stats).
   90     90   
    pub fn is_stats(&self) -> bool {
   91     91   
        self.as_stats().is_ok()
   92     92   
    }
   93     93   
    /// Returns true if the enum instance is the `Unknown` variant.
   94     94   
    pub fn is_unknown(&self) -> bool {
   95     95   
        matches!(self, Self::Unknown)
   96     96   
    }
   97     97   
}
          98  +
static SELECTOBJECTCONTENTEVENTSTREAM_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
          99  +
    "com.amazonaws.s3#SelectObjectContentEventStream",
         100  +
    "com.amazonaws.s3",
         101  +
    "SelectObjectContentEventStream",
         102  +
);
         103  +
static SELECTOBJECTCONTENTEVENTSTREAM_MEMBER_RECORDS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
         104  +
    ::aws_smithy_schema::ShapeId::from_static(
         105  +
        "com.amazonaws.s3#SelectObjectContentEventStream$Records",
         106  +
        "com.amazonaws.s3",
         107  +
        "SelectObjectContentEventStream",
         108  +
    ),
         109  +
    ::aws_smithy_schema::ShapeType::Structure,
         110  +
    "Records",
         111  +
    0,
         112  +
);
         113  +
static SELECTOBJECTCONTENTEVENTSTREAM_MEMBER_STATS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
         114  +
    ::aws_smithy_schema::ShapeId::from_static(
         115  +
        "com.amazonaws.s3#SelectObjectContentEventStream$Stats",
         116  +
        "com.amazonaws.s3",
         117  +
        "SelectObjectContentEventStream",
         118  +
    ),
         119  +
    ::aws_smithy_schema::ShapeType::Structure,
         120  +
    "Stats",
         121  +
    1,
         122  +
);
         123  +
static SELECTOBJECTCONTENTEVENTSTREAM_MEMBER_PROGRESS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
         124  +
    ::aws_smithy_schema::ShapeId::from_static(
         125  +
        "com.amazonaws.s3#SelectObjectContentEventStream$Progress",
         126  +
        "com.amazonaws.s3",
         127  +
        "SelectObjectContentEventStream",
         128  +
    ),
         129  +
    ::aws_smithy_schema::ShapeType::Structure,
         130  +
    "Progress",
         131  +
    2,
         132  +
);
         133  +
static SELECTOBJECTCONTENTEVENTSTREAM_MEMBER_CONT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
         134  +
    ::aws_smithy_schema::ShapeId::from_static(
         135  +
        "com.amazonaws.s3#SelectObjectContentEventStream$Cont",
         136  +
        "com.amazonaws.s3",
         137  +
        "SelectObjectContentEventStream",
         138  +
    ),
         139  +
    ::aws_smithy_schema::ShapeType::Structure,
         140  +
    "Cont",
         141  +
    3,
         142  +
);
         143  +
static SELECTOBJECTCONTENTEVENTSTREAM_MEMBER_END: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
         144  +
    ::aws_smithy_schema::ShapeId::from_static(
         145  +
        "com.amazonaws.s3#SelectObjectContentEventStream$End",
         146  +
        "com.amazonaws.s3",
         147  +
        "SelectObjectContentEventStream",
         148  +
    ),
         149  +
    ::aws_smithy_schema::ShapeType::Structure,
         150  +
    "End",
         151  +
    4,
         152  +
);
         153  +
static SELECTOBJECTCONTENTEVENTSTREAM_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
         154  +
    SELECTOBJECTCONTENTEVENTSTREAM_SCHEMA_ID,
         155  +
    ::aws_smithy_schema::ShapeType::Union,
         156  +
    &[
         157  +
        &SELECTOBJECTCONTENTEVENTSTREAM_MEMBER_RECORDS,
         158  +
        &SELECTOBJECTCONTENTEVENTSTREAM_MEMBER_STATS,
         159  +
        &SELECTOBJECTCONTENTEVENTSTREAM_MEMBER_PROGRESS,
         160  +
        &SELECTOBJECTCONTENTEVENTSTREAM_MEMBER_CONT,
         161  +
        &SELECTOBJECTCONTENTEVENTSTREAM_MEMBER_END,
         162  +
    ],
         163  +
)
         164  +
.with_streaming();
         165  +
impl SelectObjectContentEventStream {
         166  +
    /// The schema for this shape.
         167  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &SELECTOBJECTCONTENTEVENTSTREAM_SCHEMA;
         168  +
}
         169  +
impl ::aws_smithy_schema::serde::SerializableStruct for SelectObjectContentEventStream {
         170  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
         171  +
    fn serialize_members(
         172  +
        &self,
         173  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
         174  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
         175  +
        match self {
         176  +
            Self::Records(val) => {
         177  +
                ser.write_struct(&SELECTOBJECTCONTENTEVENTSTREAM_MEMBER_RECORDS, val)?;
         178  +
            }
         179  +
            Self::Stats(val) => {
         180  +
                ser.write_struct(&SELECTOBJECTCONTENTEVENTSTREAM_MEMBER_STATS, val)?;
         181  +
            }
         182  +
            Self::Progress(val) => {
         183  +
                ser.write_struct(&SELECTOBJECTCONTENTEVENTSTREAM_MEMBER_PROGRESS, val)?;
         184  +
            }
         185  +
            Self::Cont(val) => {
         186  +
                ser.write_struct(&SELECTOBJECTCONTENTEVENTSTREAM_MEMBER_CONT, val)?;
         187  +
            }
         188  +
            Self::End(val) => {
         189  +
                ser.write_struct(&SELECTOBJECTCONTENTEVENTSTREAM_MEMBER_END, val)?;
         190  +
            }
         191  +
            Self::Unknown => return Err(::aws_smithy_schema::serde::SerdeError::custom("cannot serialize unknown union variant")),
         192  +
        }
         193  +
        Ok(())
         194  +
    }
         195  +
}
         196  +
impl SelectObjectContentEventStream {
         197  +
    /// Deserializes this union from a [`ShapeDeserializer`].
         198  +
    pub fn deserialize(
         199  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         200  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         201  +
        let mut result: ::std::option::Option<Self> = ::std::option::Option::None;
         202  +
        #[allow(unused_variables, unreachable_code, clippy::single_match, clippy::match_single_binding)]
         203  +
        deserializer.read_struct(&SELECTOBJECTCONTENTEVENTSTREAM_SCHEMA, &mut |member, deser| {
         204  +
            result = ::std::option::Option::Some(match member.member_index() {
         205  +
                Some(0) => Self::Records(crate::types::RecordsEvent::deserialize(deser)?),
         206  +
                Some(1) => Self::Stats(crate::types::StatsEvent::deserialize(deser)?),
         207  +
                Some(2) => Self::Progress(crate::types::ProgressEvent::deserialize(deser)?),
         208  +
                Some(3) => Self::Cont(crate::types::ContinuationEvent::deserialize(deser)?),
         209  +
                Some(4) => Self::End(crate::types::EndEvent::deserialize(deser)?),
         210  +
                _ => Self::Unknown,
         211  +
            });
         212  +
            Ok(())
         213  +
        })?;
         214  +
        result.ok_or_else(|| ::aws_smithy_schema::serde::SerdeError::custom("expected a union variant"))
         215  +
    }
         216  +
}

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

@@ -24,24 +182,194 @@
   44     44   
}
   45     45   
static SELECTPARAMETERS_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   46     46   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#SelectParameters", "com.amazonaws.s3", "SelectParameters");
   47     47   
static SELECTPARAMETERS_MEMBER_INPUT_SERIALIZATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   48     48   
    ::aws_smithy_schema::ShapeId::from_static(
   49     49   
        "com.amazonaws.s3#SelectParameters$InputSerialization",
   50     50   
        "com.amazonaws.s3",
   51     51   
        "SelectParameters",
   52     52   
    ),
   53     53   
    ::aws_smithy_schema::ShapeType::Structure,
   54         -
    "input_serialization",
          54  +
    "InputSerialization",
   55     55   
    0,
   56     56   
);
   57     57   
static SELECTPARAMETERS_MEMBER_EXPRESSION_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   58     58   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#SelectParameters$ExpressionType", "com.amazonaws.s3", "SelectParameters"),
   59     59   
    ::aws_smithy_schema::ShapeType::String,
   60         -
    "expression_type",
          60  +
    "ExpressionType",
   61     61   
    1,
   62     62   
);
   63     63   
static SELECTPARAMETERS_MEMBER_EXPRESSION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   64     64   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#SelectParameters$Expression", "com.amazonaws.s3", "SelectParameters"),
   65     65   
    ::aws_smithy_schema::ShapeType::String,
   66         -
    "expression",
          66  +
    "Expression",
   67     67   
    2,
   68     68   
);
   69     69   
static SELECTPARAMETERS_MEMBER_OUTPUT_SERIALIZATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   70     70   
    ::aws_smithy_schema::ShapeId::from_static(
   71     71   
        "com.amazonaws.s3#SelectParameters$OutputSerialization",
   72     72   
        "com.amazonaws.s3",
   73     73   
        "SelectParameters",
   74     74   
    ),
   75     75   
    ::aws_smithy_schema::ShapeType::Structure,
   76         -
    "output_serialization",
          76  +
    "OutputSerialization",
   77     77   
    3,
   78     78   
);
   79     79   
static SELECTPARAMETERS_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   80     80   
    SELECTPARAMETERS_SCHEMA_ID,
   81     81   
    ::aws_smithy_schema::ShapeType::Structure,
   82     82   
    &[
   83     83   
        &SELECTPARAMETERS_MEMBER_INPUT_SERIALIZATION,
   84     84   
        &SELECTPARAMETERS_MEMBER_EXPRESSION_TYPE,
   85     85   
        &SELECTPARAMETERS_MEMBER_EXPRESSION,
   86     86   
        &SELECTPARAMETERS_MEMBER_OUTPUT_SERIALIZATION,
   87     87   
    ],
   88     88   
);
   89     89   
impl SelectParameters {
   90     90   
    /// The schema for this shape.
   91     91   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &SELECTPARAMETERS_SCHEMA;
   92     92   
}
   93     93   
impl ::aws_smithy_schema::serde::SerializableStruct for SelectParameters {
   94     94   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   95     95   
    fn serialize_members(
   96     96   
        &self,
   97     97   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   98     98   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   99     99   
        if let Some(ref val) = self.input_serialization {
  100    100   
            ser.write_struct(&SELECTPARAMETERS_MEMBER_INPUT_SERIALIZATION, val)?;
  101    101   
        }
  102    102   
        {
  103    103   
            let val = &self.expression_type;
  104    104   
            ser.write_string(&SELECTPARAMETERS_MEMBER_EXPRESSION_TYPE, val.as_str())?;
  105    105   
        }
  106    106   
        {
  107    107   
            let val = &self.expression;
  108    108   
            ser.write_string(&SELECTPARAMETERS_MEMBER_EXPRESSION, val)?;
  109    109   
        }
  110    110   
        if let Some(ref val) = self.output_serialization {
  111    111   
            ser.write_struct(&SELECTPARAMETERS_MEMBER_OUTPUT_SERIALIZATION, val)?;
  112    112   
        }
  113    113   
        Ok(())
  114    114   
    }
  115    115   
}
  116    116   
impl SelectParameters {
  117    117   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  118         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  119         -
        deserializer: &mut D,
         118  +
    pub fn deserialize(
         119  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  120    120   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  121    121   
        #[allow(unused_variables, unused_mut)]
  122    122   
        let mut builder = Self::builder();
  123    123   
        #[allow(
  124    124   
            unused_variables,
  125    125   
            unreachable_code,
  126    126   
            clippy::single_match,
  127    127   
            clippy::match_single_binding,
  128    128   
            clippy::diverging_sub_expression
  129    129   
        )]
  130         -
        deserializer.read_struct(&SELECTPARAMETERS_SCHEMA, (), |_, member, deser| {
         130  +
        deserializer.read_struct(&SELECTPARAMETERS_SCHEMA, &mut |member, deser| {
  131    131   
            match member.member_index() {
  132    132   
                Some(0) => {
  133    133   
                    builder.input_serialization = Some(crate::types::InputSerialization::deserialize(deser)?);
  134    134   
                }
  135    135   
                Some(1) => {
  136    136   
                    builder.expression_type = Some(crate::types::ExpressionType::from(deser.read_string(member)?.as_str()));
  137    137   
                }
  138    138   
                Some(2) => {
  139    139   
                    builder.expression = Some(deser.read_string(member)?);
  140    140   
                }
  141    141   
                Some(3) => {
  142    142   
                    builder.output_serialization = Some(crate::types::OutputSerialization::deserialize(deser)?);
  143    143   
                }
  144    144   
                _ => {}
  145    145   
            }
  146    146   
            Ok(())
  147    147   
        })?;
         148  +
        builder.expression = builder.expression.or(Some(String::new()));
  148    149   
        builder
  149    150   
            .build()
  150    151   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  151    152   
    }
  152    153   
}
         154  +
impl SelectParameters {
         155  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         156  +
    pub fn deserialize_with_response(
         157  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         158  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         159  +
        _status: u16,
         160  +
        _body: &[u8],
         161  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         162  +
        Self::deserialize(deserializer)
         163  +
    }
         164  +
}
  153    165   
impl SelectParameters {
  154    166   
    /// Creates a new builder-style object to manufacture [`SelectParameters`](crate::types::SelectParameters).
  155    167   
    pub fn builder() -> crate::types::builders::SelectParametersBuilder {
  156    168   
        crate::types::builders::SelectParametersBuilder::default()
  157    169   
    }
  158    170   
}
  159    171   
  160    172   
/// A builder for [`SelectParameters`](crate::types::SelectParameters).
  161    173   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  162    174   
#[non_exhaustive]

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

@@ -77,77 +208,219 @@
   97     97   
    "com.amazonaws.s3",
   98     98   
    "ServerSideEncryptionByDefault",
   99     99   
);
  100    100   
static SERVERSIDEENCRYPTIONBYDEFAULT_MEMBER_SSE_ALGORITHM: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  101    101   
    ::aws_smithy_schema::ShapeId::from_static(
  102    102   
        "com.amazonaws.s3#ServerSideEncryptionByDefault$SSEAlgorithm",
  103    103   
        "com.amazonaws.s3",
  104    104   
        "ServerSideEncryptionByDefault",
  105    105   
    ),
  106    106   
    ::aws_smithy_schema::ShapeType::String,
  107         -
    "sse_algorithm",
         107  +
    "SSEAlgorithm",
  108    108   
    0,
  109    109   
);
  110    110   
static SERVERSIDEENCRYPTIONBYDEFAULT_MEMBER_KMS_MASTER_KEY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  111    111   
    ::aws_smithy_schema::ShapeId::from_static(
  112    112   
        "com.amazonaws.s3#ServerSideEncryptionByDefault$KMSMasterKeyID",
  113    113   
        "com.amazonaws.s3",
  114    114   
        "ServerSideEncryptionByDefault",
  115    115   
    ),
  116    116   
    ::aws_smithy_schema::ShapeType::String,
  117         -
    "kms_master_key_id",
         117  +
    "KMSMasterKeyID",
  118    118   
    1,
  119    119   
);
  120    120   
static SERVERSIDEENCRYPTIONBYDEFAULT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  121    121   
    SERVERSIDEENCRYPTIONBYDEFAULT_SCHEMA_ID,
  122    122   
    ::aws_smithy_schema::ShapeType::Structure,
  123    123   
    &[
  124    124   
        &SERVERSIDEENCRYPTIONBYDEFAULT_MEMBER_SSE_ALGORITHM,
  125    125   
        &SERVERSIDEENCRYPTIONBYDEFAULT_MEMBER_KMS_MASTER_KEY_ID,
  126    126   
    ],
  127    127   
);
  128    128   
impl ServerSideEncryptionByDefault {
  129    129   
    /// The schema for this shape.
  130    130   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &SERVERSIDEENCRYPTIONBYDEFAULT_SCHEMA;
  131    131   
}
  132    132   
impl ::aws_smithy_schema::serde::SerializableStruct for ServerSideEncryptionByDefault {
  133    133   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  134    134   
    fn serialize_members(
  135    135   
        &self,
  136    136   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  137    137   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  138    138   
        {
  139    139   
            let val = &self.sse_algorithm;
  140    140   
            ser.write_string(&SERVERSIDEENCRYPTIONBYDEFAULT_MEMBER_SSE_ALGORITHM, val.as_str())?;
  141    141   
        }
  142    142   
        if let Some(ref val) = self.kms_master_key_id {
  143    143   
            ser.write_string(&SERVERSIDEENCRYPTIONBYDEFAULT_MEMBER_KMS_MASTER_KEY_ID, val)?;
  144    144   
        }
  145    145   
        Ok(())
  146    146   
    }
  147    147   
}
  148    148   
impl ServerSideEncryptionByDefault {
  149    149   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  150         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  151         -
        deserializer: &mut D,
         150  +
    pub fn deserialize(
         151  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  152    152   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  153    153   
        #[allow(unused_variables, unused_mut)]
  154    154   
        let mut builder = Self::builder();
  155    155   
        #[allow(
  156    156   
            unused_variables,
  157    157   
            unreachable_code,
  158    158   
            clippy::single_match,
  159    159   
            clippy::match_single_binding,
  160    160   
            clippy::diverging_sub_expression
  161    161   
        )]
  162         -
        deserializer.read_struct(&SERVERSIDEENCRYPTIONBYDEFAULT_SCHEMA, (), |_, member, deser| {
         162  +
        deserializer.read_struct(&SERVERSIDEENCRYPTIONBYDEFAULT_SCHEMA, &mut |member, deser| {
  163    163   
            match member.member_index() {
  164    164   
                Some(0) => {
  165    165   
                    builder.sse_algorithm = Some(crate::types::ServerSideEncryption::from(deser.read_string(member)?.as_str()));
  166    166   
                }
  167    167   
                Some(1) => {
  168    168   
                    builder.kms_master_key_id = Some(deser.read_string(member)?);
  169    169   
                }
  170    170   
                _ => {}
  171    171   
            }
  172    172   
            Ok(())
  173    173   
        })?;
  174    174   
        builder
  175    175   
            .build()
  176    176   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  177    177   
    }
  178    178   
}
         179  +
impl ServerSideEncryptionByDefault {
         180  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         181  +
    pub fn deserialize_with_response(
         182  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         183  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         184  +
        _status: u16,
         185  +
        _body: &[u8],
         186  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         187  +
        Self::deserialize(deserializer)
         188  +
    }
         189  +
}
  179    190   
impl ServerSideEncryptionByDefault {
  180    191   
    /// Creates a new builder-style object to manufacture [`ServerSideEncryptionByDefault`](crate::types::ServerSideEncryptionByDefault).
  181    192   
    pub fn builder() -> crate::types::builders::ServerSideEncryptionByDefaultBuilder {
  182    193   
        crate::types::builders::ServerSideEncryptionByDefaultBuilder::default()
  183    194   
    }
  184    195   
}
  185    196   
  186    197   
/// A builder for [`ServerSideEncryptionByDefault`](crate::types::ServerSideEncryptionByDefault).
  187    198   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
  188    199   
#[non_exhaustive]

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

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

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

@@ -35,35 +180,191 @@
   55     55   
    "com.amazonaws.s3",
   56     56   
    "ServerSideEncryptionRule",
   57     57   
);
   58     58   
static SERVERSIDEENCRYPTIONRULE_MEMBER_APPLY_SERVER_SIDE_ENCRYPTION_BY_DEFAULT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   59     59   
    ::aws_smithy_schema::ShapeId::from_static(
   60     60   
        "com.amazonaws.s3#ServerSideEncryptionRule$ApplyServerSideEncryptionByDefault",
   61     61   
        "com.amazonaws.s3",
   62     62   
        "ServerSideEncryptionRule",
   63     63   
    ),
   64     64   
    ::aws_smithy_schema::ShapeType::Structure,
   65         -
    "apply_server_side_encryption_by_default",
          65  +
    "ApplyServerSideEncryptionByDefault",
   66     66   
    0,
   67     67   
);
   68     68   
static SERVERSIDEENCRYPTIONRULE_MEMBER_BUCKET_KEY_ENABLED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   69     69   
    ::aws_smithy_schema::ShapeId::from_static(
   70     70   
        "com.amazonaws.s3#ServerSideEncryptionRule$BucketKeyEnabled",
   71     71   
        "com.amazonaws.s3",
   72     72   
        "ServerSideEncryptionRule",
   73     73   
    ),
   74     74   
    ::aws_smithy_schema::ShapeType::Boolean,
   75         -
    "bucket_key_enabled",
          75  +
    "BucketKeyEnabled",
   76     76   
    1,
   77     77   
);
   78     78   
static SERVERSIDEENCRYPTIONRULE_MEMBER_BLOCKED_ENCRYPTION_TYPES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   79     79   
    ::aws_smithy_schema::ShapeId::from_static(
   80     80   
        "com.amazonaws.s3#ServerSideEncryptionRule$BlockedEncryptionTypes",
   81     81   
        "com.amazonaws.s3",
   82     82   
        "ServerSideEncryptionRule",
   83     83   
    ),
   84     84   
    ::aws_smithy_schema::ShapeType::Structure,
   85         -
    "blocked_encryption_types",
          85  +
    "BlockedEncryptionTypes",
   86     86   
    2,
   87     87   
);
   88     88   
static SERVERSIDEENCRYPTIONRULE_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   89     89   
    SERVERSIDEENCRYPTIONRULE_SCHEMA_ID,
   90     90   
    ::aws_smithy_schema::ShapeType::Structure,
   91     91   
    &[
   92     92   
        &SERVERSIDEENCRYPTIONRULE_MEMBER_APPLY_SERVER_SIDE_ENCRYPTION_BY_DEFAULT,
   93     93   
        &SERVERSIDEENCRYPTIONRULE_MEMBER_BUCKET_KEY_ENABLED,
   94     94   
        &SERVERSIDEENCRYPTIONRULE_MEMBER_BLOCKED_ENCRYPTION_TYPES,
   95     95   
    ],
   96     96   
);
   97     97   
impl ServerSideEncryptionRule {
   98     98   
    /// The schema for this shape.
   99     99   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &SERVERSIDEENCRYPTIONRULE_SCHEMA;
  100    100   
}
  101    101   
impl ::aws_smithy_schema::serde::SerializableStruct for ServerSideEncryptionRule {
  102    102   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  103    103   
    fn serialize_members(
  104    104   
        &self,
  105    105   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  106    106   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  107    107   
        if let Some(ref val) = self.apply_server_side_encryption_by_default {
  108    108   
            ser.write_struct(&SERVERSIDEENCRYPTIONRULE_MEMBER_APPLY_SERVER_SIDE_ENCRYPTION_BY_DEFAULT, val)?;
  109    109   
        }
  110    110   
        if let Some(ref val) = self.bucket_key_enabled {
  111    111   
            ser.write_boolean(&SERVERSIDEENCRYPTIONRULE_MEMBER_BUCKET_KEY_ENABLED, *val)?;
  112    112   
        }
  113    113   
        if let Some(ref val) = self.blocked_encryption_types {
  114    114   
            ser.write_struct(&SERVERSIDEENCRYPTIONRULE_MEMBER_BLOCKED_ENCRYPTION_TYPES, val)?;
  115    115   
        }
  116    116   
        Ok(())
  117    117   
    }
  118    118   
}
  119    119   
impl ServerSideEncryptionRule {
  120    120   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  121         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  122         -
        deserializer: &mut D,
         121  +
    pub fn deserialize(
         122  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  123    123   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  124    124   
        #[allow(unused_variables, unused_mut)]
  125    125   
        let mut builder = Self::builder();
  126    126   
        #[allow(
  127    127   
            unused_variables,
  128    128   
            unreachable_code,
  129    129   
            clippy::single_match,
  130    130   
            clippy::match_single_binding,
  131    131   
            clippy::diverging_sub_expression
  132    132   
        )]
  133         -
        deserializer.read_struct(&SERVERSIDEENCRYPTIONRULE_SCHEMA, (), |_, member, deser| {
         133  +
        deserializer.read_struct(&SERVERSIDEENCRYPTIONRULE_SCHEMA, &mut |member, deser| {
  134    134   
            match member.member_index() {
  135    135   
                Some(0) => {
  136    136   
                    builder.apply_server_side_encryption_by_default = Some(crate::types::ServerSideEncryptionByDefault::deserialize(deser)?);
  137    137   
                }
  138    138   
                Some(1) => {
  139    139   
                    builder.bucket_key_enabled = Some(deser.read_boolean(member)?);
  140    140   
                }
  141    141   
                Some(2) => {
  142    142   
                    builder.blocked_encryption_types = Some(crate::types::BlockedEncryptionTypes::deserialize(deser)?);
  143    143   
                }
  144    144   
                _ => {}
  145    145   
            }
  146    146   
            Ok(())
  147    147   
        })?;
  148    148   
        Ok(builder.build())
  149    149   
    }
  150    150   
}
         151  +
impl ServerSideEncryptionRule {
         152  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         153  +
    pub fn deserialize_with_response(
         154  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         155  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         156  +
        _status: u16,
         157  +
        _body: &[u8],
         158  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         159  +
        Self::deserialize(deserializer)
         160  +
    }
         161  +
}
  151    162   
impl ServerSideEncryptionRule {
  152    163   
    /// Creates a new builder-style object to manufacture [`ServerSideEncryptionRule`](crate::types::ServerSideEncryptionRule).
  153    164   
    pub fn builder() -> crate::types::builders::ServerSideEncryptionRuleBuilder {
  154    165   
        crate::types::builders::ServerSideEncryptionRuleBuilder::default()
  155    166   
    }
  156    167   
}
  157    168   
  158    169   
/// A builder for [`ServerSideEncryptionRule`](crate::types::ServerSideEncryptionRule).
  159    170   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  160    171   
#[non_exhaustive]

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

@@ -28,28 +196,211 @@
   48     48   
}
   49     49   
static SESSIONCREDENTIALS_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   50     50   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#SessionCredentials", "com.amazonaws.s3", "SessionCredentials");
   51     51   
static SESSIONCREDENTIALS_MEMBER_ACCESS_KEY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   52     52   
    ::aws_smithy_schema::ShapeId::from_static(
   53     53   
        "com.amazonaws.s3#SessionCredentials$AccessKeyId",
   54     54   
        "com.amazonaws.s3",
   55     55   
        "SessionCredentials",
   56     56   
    ),
   57     57   
    ::aws_smithy_schema::ShapeType::String,
   58         -
    "access_key_id",
          58  +
    "AccessKeyId",
   59     59   
    0,
   60     60   
)
   61     61   
.with_xml_name("AccessKeyId");
   62     62   
static SESSIONCREDENTIALS_MEMBER_SECRET_ACCESS_KEY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   63     63   
    ::aws_smithy_schema::ShapeId::from_static(
   64     64   
        "com.amazonaws.s3#SessionCredentials$SecretAccessKey",
   65     65   
        "com.amazonaws.s3",
   66     66   
        "SessionCredentials",
   67     67   
    ),
   68     68   
    ::aws_smithy_schema::ShapeType::String,
   69         -
    "secret_access_key",
          69  +
    "SecretAccessKey",
   70     70   
    1,
   71     71   
)
   72     72   
.with_xml_name("SecretAccessKey");
   73     73   
static SESSIONCREDENTIALS_MEMBER_SESSION_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   74     74   
    ::aws_smithy_schema::ShapeId::from_static(
   75     75   
        "com.amazonaws.s3#SessionCredentials$SessionToken",
   76     76   
        "com.amazonaws.s3",
   77     77   
        "SessionCredentials",
   78     78   
    ),
   79     79   
    ::aws_smithy_schema::ShapeType::String,
   80         -
    "session_token",
          80  +
    "SessionToken",
   81     81   
    2,
   82     82   
)
   83     83   
.with_xml_name("SessionToken");
   84     84   
static SESSIONCREDENTIALS_MEMBER_EXPIRATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   85     85   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#SessionCredentials$Expiration", "com.amazonaws.s3", "SessionCredentials"),
   86     86   
    ::aws_smithy_schema::ShapeType::Timestamp,
   87         -
    "expiration",
          87  +
    "Expiration",
   88     88   
    3,
   89     89   
)
   90     90   
.with_xml_name("Expiration");
   91     91   
static SESSIONCREDENTIALS_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   92     92   
    SESSIONCREDENTIALS_SCHEMA_ID,
   93     93   
    ::aws_smithy_schema::ShapeType::Structure,
   94     94   
    &[
   95     95   
        &SESSIONCREDENTIALS_MEMBER_ACCESS_KEY_ID,
   96     96   
        &SESSIONCREDENTIALS_MEMBER_SECRET_ACCESS_KEY,
   97     97   
        &SESSIONCREDENTIALS_MEMBER_SESSION_TOKEN,
   98     98   
        &SESSIONCREDENTIALS_MEMBER_EXPIRATION,
   99     99   
    ],
  100    100   
);
  101    101   
impl SessionCredentials {
  102    102   
    /// The schema for this shape.
  103    103   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &SESSIONCREDENTIALS_SCHEMA;
  104    104   
}
  105    105   
impl ::aws_smithy_schema::serde::SerializableStruct for SessionCredentials {
  106    106   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  107    107   
    fn serialize_members(
  108    108   
        &self,
  109    109   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  110    110   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  111    111   
        {
  112    112   
            let val = &self.access_key_id;
  113    113   
            ser.write_string(&SESSIONCREDENTIALS_MEMBER_ACCESS_KEY_ID, val)?;
  114    114   
        }
  115    115   
        {
  116    116   
            let val = &self.secret_access_key;
  117    117   
            ser.write_string(&SESSIONCREDENTIALS_MEMBER_SECRET_ACCESS_KEY, val)?;
  118    118   
        }
  119    119   
        {
  120    120   
            let val = &self.session_token;
  121    121   
            ser.write_string(&SESSIONCREDENTIALS_MEMBER_SESSION_TOKEN, val)?;
  122    122   
        }
  123    123   
        {
  124    124   
            let val = &self.expiration;
  125    125   
            ser.write_timestamp(&SESSIONCREDENTIALS_MEMBER_EXPIRATION, val)?;
  126    126   
        }
  127    127   
        Ok(())
  128    128   
    }
  129    129   
}
  130    130   
impl SessionCredentials {
  131    131   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  132         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  133         -
        deserializer: &mut D,
         132  +
    pub fn deserialize(
         133  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  134    134   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  135    135   
        #[allow(unused_variables, unused_mut)]
  136    136   
        let mut builder = Self::builder();
  137    137   
        #[allow(
  138    138   
            unused_variables,
  139    139   
            unreachable_code,
  140    140   
            clippy::single_match,
  141    141   
            clippy::match_single_binding,
  142    142   
            clippy::diverging_sub_expression
  143    143   
        )]
  144         -
        deserializer.read_struct(&SESSIONCREDENTIALS_SCHEMA, (), |_, member, deser| {
         144  +
        deserializer.read_struct(&SESSIONCREDENTIALS_SCHEMA, &mut |member, deser| {
  145    145   
            match member.member_index() {
  146    146   
                Some(0) => {
  147    147   
                    builder.access_key_id = Some(deser.read_string(member)?);
  148    148   
                }
  149    149   
                Some(1) => {
  150    150   
                    builder.secret_access_key = Some(deser.read_string(member)?);
  151    151   
                }
  152    152   
                Some(2) => {
  153    153   
                    builder.session_token = Some(deser.read_string(member)?);
  154    154   
                }
  155    155   
                Some(3) => {
  156    156   
                    builder.expiration = Some(deser.read_timestamp(member)?);
  157    157   
                }
  158    158   
                _ => {}
  159    159   
            }
  160    160   
            Ok(())
  161    161   
        })?;
         162  +
        builder.access_key_id = builder.access_key_id.or(Some(String::new()));
         163  +
        builder.secret_access_key = builder.secret_access_key.or(Some(String::new()));
         164  +
        builder.session_token = builder.session_token.or(Some(String::new()));
         165  +
        builder.expiration = builder.expiration.or(Some(::aws_smithy_types::DateTime::from_secs(0)));
  162    166   
        builder
  163    167   
            .build()
  164    168   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  165    169   
    }
  166    170   
}
         171  +
impl SessionCredentials {
         172  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         173  +
    pub fn deserialize_with_response(
         174  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         175  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         176  +
        _status: u16,
         177  +
        _body: &[u8],
         178  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         179  +
        Self::deserialize(deserializer)
         180  +
    }
         181  +
}
  167    182   
impl SessionCredentials {
  168    183   
    /// Creates a new builder-style object to manufacture [`SessionCredentials`](crate::types::SessionCredentials).
  169    184   
    pub fn builder() -> crate::types::builders::SessionCredentialsBuilder {
  170    185   
        crate::types::builders::SessionCredentialsBuilder::default()
  171    186   
    }
  172    187   
}
  173    188   
  174    189   
/// A builder for [`SessionCredentials`](crate::types::SessionCredentials).
  175    190   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
  176    191   
#[non_exhaustive]

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

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

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

@@ -5,5 +133,144 @@
   25     25   
}
   26     26   
static SOURCESELECTIONCRITERIA_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   27     27   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#SourceSelectionCriteria", "com.amazonaws.s3", "SourceSelectionCriteria");
   28     28   
static SOURCESELECTIONCRITERIA_MEMBER_SSE_KMS_ENCRYPTED_OBJECTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   29     29   
    ::aws_smithy_schema::ShapeId::from_static(
   30     30   
        "com.amazonaws.s3#SourceSelectionCriteria$SseKmsEncryptedObjects",
   31     31   
        "com.amazonaws.s3",
   32     32   
        "SourceSelectionCriteria",
   33     33   
    ),
   34     34   
    ::aws_smithy_schema::ShapeType::Structure,
   35         -
    "sse_kms_encrypted_objects",
          35  +
    "SseKmsEncryptedObjects",
   36     36   
    0,
   37     37   
);
   38     38   
static SOURCESELECTIONCRITERIA_MEMBER_REPLICA_MODIFICATIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   39     39   
    ::aws_smithy_schema::ShapeId::from_static(
   40     40   
        "com.amazonaws.s3#SourceSelectionCriteria$ReplicaModifications",
   41     41   
        "com.amazonaws.s3",
   42     42   
        "SourceSelectionCriteria",
   43     43   
    ),
   44     44   
    ::aws_smithy_schema::ShapeType::Structure,
   45         -
    "replica_modifications",
          45  +
    "ReplicaModifications",
   46     46   
    1,
   47     47   
);
   48     48   
static SOURCESELECTIONCRITERIA_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   49     49   
    SOURCESELECTIONCRITERIA_SCHEMA_ID,
   50     50   
    ::aws_smithy_schema::ShapeType::Structure,
   51     51   
    &[
   52     52   
        &SOURCESELECTIONCRITERIA_MEMBER_SSE_KMS_ENCRYPTED_OBJECTS,
   53     53   
        &SOURCESELECTIONCRITERIA_MEMBER_REPLICA_MODIFICATIONS,
   54     54   
    ],
   55     55   
);
   56     56   
impl SourceSelectionCriteria {
   57     57   
    /// The schema for this shape.
   58     58   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &SOURCESELECTIONCRITERIA_SCHEMA;
   59     59   
}
   60     60   
impl ::aws_smithy_schema::serde::SerializableStruct for SourceSelectionCriteria {
   61     61   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   62     62   
    fn serialize_members(
   63     63   
        &self,
   64     64   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   65     65   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   66     66   
        if let Some(ref val) = self.sse_kms_encrypted_objects {
   67     67   
            ser.write_struct(&SOURCESELECTIONCRITERIA_MEMBER_SSE_KMS_ENCRYPTED_OBJECTS, val)?;
   68     68   
        }
   69     69   
        if let Some(ref val) = self.replica_modifications {
   70     70   
            ser.write_struct(&SOURCESELECTIONCRITERIA_MEMBER_REPLICA_MODIFICATIONS, val)?;
   71     71   
        }
   72     72   
        Ok(())
   73     73   
    }
   74     74   
}
   75     75   
impl SourceSelectionCriteria {
   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(&SOURCESELECTIONCRITERIA_SCHEMA, (), |_, member, deser| {
          89  +
        deserializer.read_struct(&SOURCESELECTIONCRITERIA_SCHEMA, &mut |member, deser| {
   90     90   
            match member.member_index() {
   91     91   
                Some(0) => {
   92     92   
                    builder.sse_kms_encrypted_objects = Some(crate::types::SseKmsEncryptedObjects::deserialize(deser)?);
   93     93   
                }
   94     94   
                Some(1) => {
   95     95   
                    builder.replica_modifications = Some(crate::types::ReplicaModifications::deserialize(deser)?);
   96     96   
                }
   97     97   
                _ => {}
   98     98   
            }
   99     99   
            Ok(())
  100    100   
        })?;
  101    101   
        Ok(builder.build())
  102    102   
    }
  103    103   
}
         104  +
impl SourceSelectionCriteria {
         105  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         106  +
    pub fn deserialize_with_response(
         107  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         108  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         109  +
        _status: u16,
         110  +
        _body: &[u8],
         111  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         112  +
        Self::deserialize(deserializer)
         113  +
    }
         114  +
}
  104    115   
impl SourceSelectionCriteria {
  105    116   
    /// Creates a new builder-style object to manufacture [`SourceSelectionCriteria`](crate::types::SourceSelectionCriteria).
  106    117   
    pub fn builder() -> crate::types::builders::SourceSelectionCriteriaBuilder {
  107    118   
        crate::types::builders::SourceSelectionCriteriaBuilder::default()
  108    119   
    }
  109    120   
}
  110    121   
  111    122   
/// A builder for [`SourceSelectionCriteria`](crate::types::SourceSelectionCriteria).
  112    123   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  113    124   
#[non_exhaustive]

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

@@ -1,1 +107,118 @@
   15     15   
}
   16     16   
static SSEKMSENCRYPTEDOBJECTS_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   17     17   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#SseKmsEncryptedObjects", "com.amazonaws.s3", "SseKmsEncryptedObjects");
   18     18   
static SSEKMSENCRYPTEDOBJECTS_MEMBER_STATUS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   19     19   
    ::aws_smithy_schema::ShapeId::from_static(
   20     20   
        "com.amazonaws.s3#SseKmsEncryptedObjects$Status",
   21     21   
        "com.amazonaws.s3",
   22     22   
        "SseKmsEncryptedObjects",
   23     23   
    ),
   24     24   
    ::aws_smithy_schema::ShapeType::String,
   25         -
    "status",
          25  +
    "Status",
   26     26   
    0,
   27     27   
);
   28     28   
static SSEKMSENCRYPTEDOBJECTS_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   29     29   
    SSEKMSENCRYPTEDOBJECTS_SCHEMA_ID,
   30     30   
    ::aws_smithy_schema::ShapeType::Structure,
   31     31   
    &[&SSEKMSENCRYPTEDOBJECTS_MEMBER_STATUS],
   32     32   
);
   33     33   
impl SseKmsEncryptedObjects {
   34     34   
    /// The schema for this shape.
   35     35   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &SSEKMSENCRYPTEDOBJECTS_SCHEMA;
   36     36   
}
   37     37   
impl ::aws_smithy_schema::serde::SerializableStruct for SseKmsEncryptedObjects {
   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   
        {
   44     44   
            let val = &self.status;
   45     45   
            ser.write_string(&SSEKMSENCRYPTEDOBJECTS_MEMBER_STATUS, val.as_str())?;
   46     46   
        }
   47     47   
        Ok(())
   48     48   
    }
   49     49   
}
   50     50   
impl SseKmsEncryptedObjects {
   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(&SSEKMSENCRYPTEDOBJECTS_SCHEMA, (), |_, member, deser| {
          64  +
        deserializer.read_struct(&SSEKMSENCRYPTEDOBJECTS_SCHEMA, &mut |member, deser| {
   65     65   
            match member.member_index() {
   66     66   
                Some(0) => {
   67     67   
                    builder.status = Some(crate::types::SseKmsEncryptedObjectsStatus::from(deser.read_string(member)?.as_str()));
   68     68   
                }
   69     69   
                _ => {}
   70     70   
            }
   71     71   
            Ok(())
   72     72   
        })?;
   73     73   
        builder
   74     74   
            .build()
   75     75   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
   76     76   
    }
   77     77   
}
          78  +
impl SseKmsEncryptedObjects {
          79  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          80  +
    pub fn deserialize_with_response(
          81  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          82  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          83  +
        _status: u16,
          84  +
        _body: &[u8],
          85  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          86  +
        Self::deserialize(deserializer)
          87  +
    }
          88  +
}
   78     89   
impl SseKmsEncryptedObjects {
   79     90   
    /// Creates a new builder-style object to manufacture [`SseKmsEncryptedObjects`](crate::types::SseKmsEncryptedObjects).
   80     91   
    pub fn builder() -> crate::types::builders::SseKmsEncryptedObjectsBuilder {
   81     92   
        crate::types::builders::SseKmsEncryptedObjectsBuilder::default()
   82     93   
    }
   83     94   
}
   84     95   
   85     96   
/// A builder for [`SseKmsEncryptedObjects`](crate::types::SseKmsEncryptedObjects).
   86     97   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   87     98   
#[non_exhaustive]

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

@@ -1,1 +109,121 @@
   19     19   
        let mut formatter = f.debug_struct("Ssekms");
   20     20   
        formatter.field("key_id", &"*** Sensitive Data Redacted ***");
   21     21   
        formatter.finish()
   22     22   
    }
   23     23   
}
   24     24   
static SSEKMS_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   25     25   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#SSEKMS", "com.amazonaws.s3", "SSEKMS");
   26     26   
static SSEKMS_MEMBER_KEY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   27     27   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#SSEKMS$KeyId", "com.amazonaws.s3", "SSEKMS"),
   28     28   
    ::aws_smithy_schema::ShapeType::String,
   29         -
    "key_id",
          29  +
    "KeyId",
   30     30   
    0,
   31     31   
);
   32     32   
static SSEKMS_SCHEMA: ::aws_smithy_schema::Schema =
   33     33   
    ::aws_smithy_schema::Schema::new_struct(SSEKMS_SCHEMA_ID, ::aws_smithy_schema::ShapeType::Structure, &[&SSEKMS_MEMBER_KEY_ID])
   34     34   
        .with_xml_name("SSE-KMS");
   35     35   
impl Ssekms {
   36     36   
    /// The schema for this shape.
   37     37   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &SSEKMS_SCHEMA;
   38     38   
}
   39     39   
impl ::aws_smithy_schema::serde::SerializableStruct for Ssekms {
   40     40   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   41     41   
    fn serialize_members(
   42     42   
        &self,
   43     43   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   44     44   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   45     45   
        {
   46     46   
            let val = &self.key_id;
   47     47   
            ser.write_string(&SSEKMS_MEMBER_KEY_ID, val)?;
   48     48   
        }
   49     49   
        Ok(())
   50     50   
    }
   51     51   
}
   52     52   
impl Ssekms {
   53     53   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   54         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   55         -
        deserializer: &mut D,
          54  +
    pub fn deserialize(
          55  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   56     56   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   57     57   
        #[allow(unused_variables, unused_mut)]
   58     58   
        let mut builder = Self::builder();
   59     59   
        #[allow(
   60     60   
            unused_variables,
   61     61   
            unreachable_code,
   62     62   
            clippy::single_match,
   63     63   
            clippy::match_single_binding,
   64     64   
            clippy::diverging_sub_expression
   65     65   
        )]
   66         -
        deserializer.read_struct(&SSEKMS_SCHEMA, (), |_, member, deser| {
          66  +
        deserializer.read_struct(&SSEKMS_SCHEMA, &mut |member, deser| {
   67     67   
            match member.member_index() {
   68     68   
                Some(0) => {
   69     69   
                    builder.key_id = Some(deser.read_string(member)?);
   70     70   
                }
   71     71   
                _ => {}
   72     72   
            }
   73     73   
            Ok(())
   74     74   
        })?;
          75  +
        builder.key_id = builder.key_id.or(Some(String::new()));
   75     76   
        builder
   76     77   
            .build()
   77     78   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
   78     79   
    }
   79     80   
}
          81  +
impl Ssekms {
          82  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          83  +
    pub fn deserialize_with_response(
          84  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          85  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          86  +
        _status: u16,
          87  +
        _body: &[u8],
          88  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          89  +
        Self::deserialize(deserializer)
          90  +
    }
          91  +
}
   80     92   
impl Ssekms {
   81     93   
    /// Creates a new builder-style object to manufacture [`Ssekms`](crate::types::Ssekms).
   82     94   
    pub fn builder() -> crate::types::builders::SsekmsBuilder {
   83     95   
        crate::types::builders::SsekmsBuilder::default()
   84     96   
    }
   85     97   
}
   86     98   
   87     99   
/// A builder for [`Ssekms`](crate::types::Ssekms).
   88    100   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
   89    101   
#[non_exhaustive]