Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943

Files changed:

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/types/_replica_global_secondary_index_settings_update.rs

@@ -1,1 +108,170 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>Represents the settings of a global secondary index for a global table that will be modified.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>Represents the settings of a global secondary index for a global table that will be modified.</p>
           4  +
/* RustType.kt:516 */
    4      5   
#[non_exhaustive]
           6  +
/* RustType.kt:516 */
    5      7   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    6         -
pub struct ReplicaGlobalSecondaryIndexSettingsUpdate {
    7         -
    /// <p>The name of the global secondary index. The name must be unique among all other indexes on this table.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct ReplicaGlobalSecondaryIndexSettingsUpdate {
           9  +
    /// /* StructureGenerator.kt:231 */<p>The name of the global secondary index. The name must be unique among all other indexes on this table.</p>
    8     10   
    pub index_name: ::std::string::String,
    9         -
    /// <p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>.</p>
          11  +
    /// /* StructureGenerator.kt:231 */<p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>.</p>
   10     12   
    pub provisioned_read_capacity_units: ::std::option::Option<i64>,
   11         -
    /// <p>Auto scaling settings for managing a global secondary index replica's read capacity units.</p>
          13  +
    /// /* StructureGenerator.kt:231 */<p>Auto scaling settings for managing a global secondary index replica's read capacity units.</p>
   12     14   
    pub provisioned_read_capacity_auto_scaling_settings_update: ::std::option::Option<crate::types::AutoScalingSettingsUpdate>,
          15  +
    /* StructureGenerator.kt:201 */
   13     16   
}
          17  +
/* StructureGenerator.kt:135 */
   14     18   
impl ReplicaGlobalSecondaryIndexSettingsUpdate {
   15         -
    /// <p>The name of the global secondary index. The name must be unique among all other indexes on this table.</p>
          19  +
    /// /* StructureGenerator.kt:231 */<p>The name of the global secondary index. The name must be unique among all other indexes on this table.</p>
          20  +
    /* StructureGenerator.kt:166 */
   16     21   
    pub fn index_name(&self) -> &str {
          22  +
        /* StructureGenerator.kt:171 */
   17     23   
        use std::ops::Deref;
   18     24   
        self.index_name.deref()
          25  +
        /* StructureGenerator.kt:166 */
   19     26   
    }
   20         -
    /// <p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>.</p>
          27  +
    /// /* StructureGenerator.kt:231 */<p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>.</p>
          28  +
    /* StructureGenerator.kt:166 */
   21     29   
    pub fn provisioned_read_capacity_units(&self) -> ::std::option::Option<i64> {
          30  +
        /* StructureGenerator.kt:168 */
   22     31   
        self.provisioned_read_capacity_units
          32  +
        /* StructureGenerator.kt:166 */
   23     33   
    }
   24         -
    /// <p>Auto scaling settings for managing a global secondary index replica's read capacity units.</p>
          34  +
    /// /* StructureGenerator.kt:231 */<p>Auto scaling settings for managing a global secondary index replica's read capacity units.</p>
          35  +
    /* StructureGenerator.kt:166 */
   25     36   
    pub fn provisioned_read_capacity_auto_scaling_settings_update(&self) -> ::std::option::Option<&crate::types::AutoScalingSettingsUpdate> {
          37  +
        /* StructureGenerator.kt:170 */
   26     38   
        self.provisioned_read_capacity_auto_scaling_settings_update.as_ref()
          39  +
        /* StructureGenerator.kt:166 */
   27     40   
    }
          41  +
    /* StructureGenerator.kt:135 */
   28     42   
}
          43  +
/* ClientCodegenVisitor.kt:237 */
   29     44   
impl ReplicaGlobalSecondaryIndexSettingsUpdate {
   30         -
    /// Creates a new builder-style object to manufacture [`ReplicaGlobalSecondaryIndexSettingsUpdate`](crate::types::ReplicaGlobalSecondaryIndexSettingsUpdate).
          45  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ReplicaGlobalSecondaryIndexSettingsUpdate`](crate::types::ReplicaGlobalSecondaryIndexSettingsUpdate).
          46  +
    /* BuilderGenerator.kt:175 */
   31     47   
    pub fn builder() -> crate::types::builders::ReplicaGlobalSecondaryIndexSettingsUpdateBuilder {
          48  +
        /* BuilderGenerator.kt:176 */
   32     49   
        crate::types::builders::ReplicaGlobalSecondaryIndexSettingsUpdateBuilder::default()
          50  +
        /* BuilderGenerator.kt:175 */
   33     51   
    }
          52  +
    /* ClientCodegenVisitor.kt:237 */
   34     53   
}
   35     54   
   36         -
/// A builder for [`ReplicaGlobalSecondaryIndexSettingsUpdate`](crate::types::ReplicaGlobalSecondaryIndexSettingsUpdate).
          55  +
/// /* BuilderGenerator.kt:342 */A builder for [`ReplicaGlobalSecondaryIndexSettingsUpdate`](crate::types::ReplicaGlobalSecondaryIndexSettingsUpdate).
          56  +
/* RustType.kt:516 */
   37     57   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          58  +
/* RustType.kt:516 */
   38     59   
#[non_exhaustive]
          60  +
/* BuilderGenerator.kt:345 */
   39     61   
pub struct ReplicaGlobalSecondaryIndexSettingsUpdateBuilder {
   40         -
    pub(crate) index_name: ::std::option::Option<::std::string::String>,
   41         -
    pub(crate) provisioned_read_capacity_units: ::std::option::Option<i64>,
          62  +
    /* BuilderGenerator.kt:275 */ pub(crate) index_name: ::std::option::Option<::std::string::String>,
          63  +
    /* BuilderGenerator.kt:275 */ pub(crate) provisioned_read_capacity_units: ::std::option::Option<i64>,
          64  +
    /* BuilderGenerator.kt:275 */
   42     65   
    pub(crate) provisioned_read_capacity_auto_scaling_settings_update: ::std::option::Option<crate::types::AutoScalingSettingsUpdate>,
          66  +
    /* BuilderGenerator.kt:345 */
   43     67   
}
          68  +
/* BuilderGenerator.kt:355 */
   44     69   
impl ReplicaGlobalSecondaryIndexSettingsUpdateBuilder {
   45         -
    /// <p>The name of the global secondary index. The name must be unique among all other indexes on this table.</p>
   46         -
    /// This field is required.
          70  +
    /// /* BuilderGenerator.kt:286 */<p>The name of the global secondary index. The name must be unique among all other indexes on this table.</p>
          71  +
    /// /* BuilderGenerator.kt:288 */This field is required.
          72  +
    /* BuilderGenerator.kt:291 */
   47     73   
    pub fn index_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          74  +
        /* BuilderGenerator.kt:292 */
   48     75   
        self.index_name = ::std::option::Option::Some(input.into());
          76  +
        /* BuilderGenerator.kt:293 */
   49     77   
        self
          78  +
        /* BuilderGenerator.kt:291 */
   50     79   
    }
   51         -
    /// <p>The name of the global secondary index. The name must be unique among all other indexes on this table.</p>
          80  +
    /// /* BuilderGenerator.kt:312 */<p>The name of the global secondary index. The name must be unique among all other indexes on this table.</p>
          81  +
    /* BuilderGenerator.kt:314 */
   52     82   
    pub fn set_index_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          83  +
        /* BuilderGenerator.kt:315 */
   53     84   
        self.index_name = input;
   54     85   
        self
          86  +
        /* BuilderGenerator.kt:314 */
   55     87   
    }
   56         -
    /// <p>The name of the global secondary index. The name must be unique among all other indexes on this table.</p>
          88  +
    /// /* BuilderGenerator.kt:334 */<p>The name of the global secondary index. The name must be unique among all other indexes on this table.</p>
          89  +
    /* BuilderGenerator.kt:336 */
   57     90   
    pub fn get_index_name(&self) -> &::std::option::Option<::std::string::String> {
          91  +
        /* BuilderGenerator.kt:337 */
   58     92   
        &self.index_name
          93  +
        /* BuilderGenerator.kt:336 */
   59     94   
    }
   60         -
    /// <p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>.</p>
          95  +
    /// /* BuilderGenerator.kt:286 */<p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>.</p>
          96  +
    /* BuilderGenerator.kt:291 */
   61     97   
    pub fn provisioned_read_capacity_units(mut self, input: i64) -> Self {
          98  +
        /* BuilderGenerator.kt:292 */
   62     99   
        self.provisioned_read_capacity_units = ::std::option::Option::Some(input);
         100  +
        /* BuilderGenerator.kt:293 */
   63    101   
        self
         102  +
        /* BuilderGenerator.kt:291 */
   64    103   
    }
   65         -
    /// <p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>.</p>
         104  +
    /// /* BuilderGenerator.kt:312 */<p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>.</p>
         105  +
    /* BuilderGenerator.kt:314 */
   66    106   
    pub fn set_provisioned_read_capacity_units(mut self, input: ::std::option::Option<i64>) -> Self {
         107  +
        /* BuilderGenerator.kt:315 */
   67    108   
        self.provisioned_read_capacity_units = input;
   68    109   
        self
         110  +
        /* BuilderGenerator.kt:314 */
   69    111   
    }
   70         -
    /// <p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>.</p>
         112  +
    /// /* BuilderGenerator.kt:334 */<p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>.</p>
         113  +
    /* BuilderGenerator.kt:336 */
   71    114   
    pub fn get_provisioned_read_capacity_units(&self) -> &::std::option::Option<i64> {
         115  +
        /* BuilderGenerator.kt:337 */
   72    116   
        &self.provisioned_read_capacity_units
         117  +
        /* BuilderGenerator.kt:336 */
   73    118   
    }
   74         -
    /// <p>Auto scaling settings for managing a global secondary index replica's read capacity units.</p>
         119  +
    /// /* BuilderGenerator.kt:286 */<p>Auto scaling settings for managing a global secondary index replica's read capacity units.</p>
         120  +
    /* BuilderGenerator.kt:291 */
   75    121   
    pub fn provisioned_read_capacity_auto_scaling_settings_update(mut self, input: crate::types::AutoScalingSettingsUpdate) -> Self {
         122  +
        /* BuilderGenerator.kt:292 */
   76    123   
        self.provisioned_read_capacity_auto_scaling_settings_update = ::std::option::Option::Some(input);
         124  +
        /* BuilderGenerator.kt:293 */
   77    125   
        self
         126  +
        /* BuilderGenerator.kt:291 */
   78    127   
    }
   79         -
    /// <p>Auto scaling settings for managing a global secondary index replica's read capacity units.</p>
         128  +
    /// /* BuilderGenerator.kt:312 */<p>Auto scaling settings for managing a global secondary index replica's read capacity units.</p>
         129  +
    /* BuilderGenerator.kt:314 */
   80    130   
    pub fn set_provisioned_read_capacity_auto_scaling_settings_update(
   81    131   
        mut self,
   82    132   
        input: ::std::option::Option<crate::types::AutoScalingSettingsUpdate>,
   83    133   
    ) -> Self {
         134  +
        /* BuilderGenerator.kt:315 */
   84    135   
        self.provisioned_read_capacity_auto_scaling_settings_update = input;
   85    136   
        self
         137  +
        /* BuilderGenerator.kt:314 */
   86    138   
    }
   87         -
    /// <p>Auto scaling settings for managing a global secondary index replica's read capacity units.</p>
         139  +
    /// /* BuilderGenerator.kt:334 */<p>Auto scaling settings for managing a global secondary index replica's read capacity units.</p>
         140  +
    /* BuilderGenerator.kt:336 */
   88    141   
    pub fn get_provisioned_read_capacity_auto_scaling_settings_update(&self) -> &::std::option::Option<crate::types::AutoScalingSettingsUpdate> {
         142  +
        /* BuilderGenerator.kt:337 */
   89    143   
        &self.provisioned_read_capacity_auto_scaling_settings_update
         144  +
        /* BuilderGenerator.kt:336 */
   90    145   
    }
   91         -
    /// Consumes the builder and constructs a [`ReplicaGlobalSecondaryIndexSettingsUpdate`](crate::types::ReplicaGlobalSecondaryIndexSettingsUpdate).
   92         -
    /// This method will fail if any of the following fields are not set:
   93         -
    /// - [`index_name`](crate::types::builders::ReplicaGlobalSecondaryIndexSettingsUpdateBuilder::index_name)
         146  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ReplicaGlobalSecondaryIndexSettingsUpdate`](crate::types::ReplicaGlobalSecondaryIndexSettingsUpdate).
         147  +
    /// /* BuilderGenerator.kt:243 */This method will fail if any of the following fields are not set:
         148  +
    /// /* BuilderGenerator.kt:246 */- [`index_name`](crate::types::builders::ReplicaGlobalSecondaryIndexSettingsUpdateBuilder::index_name)
         149  +
    /* BuilderGenerator.kt:253 */
   94    150   
    pub fn build(
   95    151   
        self,
   96    152   
    ) -> ::std::result::Result<crate::types::ReplicaGlobalSecondaryIndexSettingsUpdate, ::aws_smithy_types::error::operation::BuildError> {
   97         -
        ::std::result::Result::Ok(crate::types::ReplicaGlobalSecondaryIndexSettingsUpdate {
   98         -
            index_name: self.index_name.ok_or_else(|| {
   99         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
  100         -
                    "index_name",
  101         -
                    "index_name was not specified but it is required when building ReplicaGlobalSecondaryIndexSettingsUpdate",
  102         -
                )
  103         -
            })?,
  104         -
            provisioned_read_capacity_units: self.provisioned_read_capacity_units,
  105         -
            provisioned_read_capacity_auto_scaling_settings_update: self.provisioned_read_capacity_auto_scaling_settings_update,
  106         -
        })
         153  +
        /* BuilderGenerator.kt:254 */
         154  +
        ::std::result::Result::Ok(
         155  +
            /* BuilderGenerator.kt:477 */crate::types::ReplicaGlobalSecondaryIndexSettingsUpdate {
         156  +
                /* BuilderGenerator.kt:481 */index_name: self.index_name
         157  +
                    /* BuilderGenerator.kt:494 */.ok_or_else(||
         158  +
                        /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("index_name", "index_name was not specified but it is required when building ReplicaGlobalSecondaryIndexSettingsUpdate")
         159  +
                    /* BuilderGenerator.kt:494 */)?
         160  +
                ,
         161  +
                /* BuilderGenerator.kt:481 */provisioned_read_capacity_units: self.provisioned_read_capacity_units
         162  +
                ,
         163  +
                /* BuilderGenerator.kt:481 */provisioned_read_capacity_auto_scaling_settings_update: self.provisioned_read_capacity_auto_scaling_settings_update
         164  +
                ,
         165  +
            /* BuilderGenerator.kt:477 */}
         166  +
        /* BuilderGenerator.kt:254 */)
         167  +
        /* BuilderGenerator.kt:253 */
  107    168   
    }
         169  +
    /* BuilderGenerator.kt:355 */
  108    170   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/types/_replica_settings_description.rs

@@ -1,1 +287,425 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>Represents the properties of a replica.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>Represents the properties of a replica.</p>
           4  +
/* RustType.kt:516 */
    4      5   
#[non_exhaustive]
           6  +
/* RustType.kt:516 */
    5      7   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    6         -
pub struct ReplicaSettingsDescription {
    7         -
    /// <p>The Region name of the replica.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct ReplicaSettingsDescription {
           9  +
    /// /* StructureGenerator.kt:231 */<p>The Region name of the replica.</p>
    8     10   
    pub region_name: ::std::string::String,
    9         -
    /// <p>The current state of the Region:</p>
          11  +
    /// /* StructureGenerator.kt:231 */<p>The current state of the Region:</p>
   10     12   
    /// <ul>
   11     13   
    /// <li>
   12     14   
    /// <p><code>CREATING</code> - The Region is being created.</p></li>
   13     15   
    /// <li>
   14     16   
    /// <p><code>UPDATING</code> - The Region is being updated.</p></li>
   15     17   
    /// <li>
   16     18   
    /// <p><code>DELETING</code> - The Region is being deleted.</p></li>
   17     19   
    /// <li>
   18     20   
    /// <p><code>ACTIVE</code> - The Region is ready for use.</p></li>
   19     21   
    /// </ul>
   20     22   
    pub replica_status: ::std::option::Option<crate::types::ReplicaStatus>,
   21         -
    /// <p>The read/write capacity mode of the replica.</p>
          23  +
    /// /* StructureGenerator.kt:231 */<p>The read/write capacity mode of the replica.</p>
   22     24   
    pub replica_billing_mode_summary: ::std::option::Option<crate::types::BillingModeSummary>,
   23         -
    /// <p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
          25  +
    /// /* StructureGenerator.kt:231 */<p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
   24     26   
    pub replica_provisioned_read_capacity_units: ::std::option::Option<i64>,
   25         -
    /// <p>Auto scaling settings for a global table replica's read capacity units.</p>
          27  +
    /// /* StructureGenerator.kt:231 */<p>Auto scaling settings for a global table replica's read capacity units.</p>
   26     28   
    pub replica_provisioned_read_capacity_auto_scaling_settings: ::std::option::Option<crate::types::AutoScalingSettingsDescription>,
   27         -
    /// <p>The maximum number of writes consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
          29  +
    /// /* StructureGenerator.kt:231 */<p>The maximum number of writes consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
   28     30   
    pub replica_provisioned_write_capacity_units: ::std::option::Option<i64>,
   29         -
    /// <p>Auto scaling settings for a global table replica's write capacity units.</p>
          31  +
    /// /* StructureGenerator.kt:231 */<p>Auto scaling settings for a global table replica's write capacity units.</p>
   30     32   
    pub replica_provisioned_write_capacity_auto_scaling_settings: ::std::option::Option<crate::types::AutoScalingSettingsDescription>,
   31         -
    /// <p>Replica global secondary index settings for the global table.</p>
          33  +
    /// /* StructureGenerator.kt:231 */<p>Replica global secondary index settings for the global table.</p>
   32     34   
    pub replica_global_secondary_index_settings: ::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndexSettingsDescription>>,
          35  +
    /* StructureGenerator.kt:201 */
   33     36   
}
          37  +
/* StructureGenerator.kt:135 */
   34     38   
impl ReplicaSettingsDescription {
   35         -
    /// <p>The Region name of the replica.</p>
          39  +
    /// /* StructureGenerator.kt:231 */<p>The Region name of the replica.</p>
          40  +
    /* StructureGenerator.kt:166 */
   36     41   
    pub fn region_name(&self) -> &str {
          42  +
        /* StructureGenerator.kt:171 */
   37     43   
        use std::ops::Deref;
   38     44   
        self.region_name.deref()
          45  +
        /* StructureGenerator.kt:166 */
   39     46   
    }
   40         -
    /// <p>The current state of the Region:</p>
          47  +
    /// /* StructureGenerator.kt:231 */<p>The current state of the Region:</p>
   41     48   
    /// <ul>
   42     49   
    /// <li>
   43     50   
    /// <p><code>CREATING</code> - The Region is being created.</p></li>
   44     51   
    /// <li>
   45     52   
    /// <p><code>UPDATING</code> - The Region is being updated.</p></li>
   46     53   
    /// <li>
   47     54   
    /// <p><code>DELETING</code> - The Region is being deleted.</p></li>
   48     55   
    /// <li>
   49     56   
    /// <p><code>ACTIVE</code> - The Region is ready for use.</p></li>
   50     57   
    /// </ul>
          58  +
    /* StructureGenerator.kt:166 */
   51     59   
    pub fn replica_status(&self) -> ::std::option::Option<&crate::types::ReplicaStatus> {
          60  +
        /* StructureGenerator.kt:170 */
   52     61   
        self.replica_status.as_ref()
          62  +
        /* StructureGenerator.kt:166 */
   53     63   
    }
   54         -
    /// <p>The read/write capacity mode of the replica.</p>
          64  +
    /// /* StructureGenerator.kt:231 */<p>The read/write capacity mode of the replica.</p>
          65  +
    /* StructureGenerator.kt:166 */
   55     66   
    pub fn replica_billing_mode_summary(&self) -> ::std::option::Option<&crate::types::BillingModeSummary> {
          67  +
        /* StructureGenerator.kt:170 */
   56     68   
        self.replica_billing_mode_summary.as_ref()
          69  +
        /* StructureGenerator.kt:166 */
   57     70   
    }
   58         -
    /// <p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
          71  +
    /// /* StructureGenerator.kt:231 */<p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
          72  +
    /* StructureGenerator.kt:166 */
   59     73   
    pub fn replica_provisioned_read_capacity_units(&self) -> ::std::option::Option<i64> {
          74  +
        /* StructureGenerator.kt:168 */
   60     75   
        self.replica_provisioned_read_capacity_units
          76  +
        /* StructureGenerator.kt:166 */
   61     77   
    }
   62         -
    /// <p>Auto scaling settings for a global table replica's read capacity units.</p>
          78  +
    /// /* StructureGenerator.kt:231 */<p>Auto scaling settings for a global table replica's read capacity units.</p>
          79  +
    /* StructureGenerator.kt:166 */
   63     80   
    pub fn replica_provisioned_read_capacity_auto_scaling_settings(&self) -> ::std::option::Option<&crate::types::AutoScalingSettingsDescription> {
          81  +
        /* StructureGenerator.kt:170 */
   64     82   
        self.replica_provisioned_read_capacity_auto_scaling_settings.as_ref()
          83  +
        /* StructureGenerator.kt:166 */
   65     84   
    }
   66         -
    /// <p>The maximum number of writes consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
          85  +
    /// /* StructureGenerator.kt:231 */<p>The maximum number of writes consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
          86  +
    /* StructureGenerator.kt:166 */
   67     87   
    pub fn replica_provisioned_write_capacity_units(&self) -> ::std::option::Option<i64> {
          88  +
        /* StructureGenerator.kt:168 */
   68     89   
        self.replica_provisioned_write_capacity_units
          90  +
        /* StructureGenerator.kt:166 */
   69     91   
    }
   70         -
    /// <p>Auto scaling settings for a global table replica's write capacity units.</p>
          92  +
    /// /* StructureGenerator.kt:231 */<p>Auto scaling settings for a global table replica's write capacity units.</p>
          93  +
    /* StructureGenerator.kt:166 */
   71     94   
    pub fn replica_provisioned_write_capacity_auto_scaling_settings(&self) -> ::std::option::Option<&crate::types::AutoScalingSettingsDescription> {
          95  +
        /* StructureGenerator.kt:170 */
   72     96   
        self.replica_provisioned_write_capacity_auto_scaling_settings.as_ref()
          97  +
        /* StructureGenerator.kt:166 */
   73     98   
    }
   74         -
    /// <p>Replica global secondary index settings for the global table.</p>
   75         -
    ///
   76         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.replica_global_secondary_index_settings.is_none()`.
          99  +
    /// /* StructureGenerator.kt:231 */<p>Replica global secondary index settings for the global table.</p>
         100  +
    /// /* StructureGenerator.kt:162 */
         101  +
    /// /* StructureGenerator.kt:163 */If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.replica_global_secondary_index_settings.is_none()`.
         102  +
    /* StructureGenerator.kt:166 */
   77    103   
    pub fn replica_global_secondary_index_settings(&self) -> &[crate::types::ReplicaGlobalSecondaryIndexSettingsDescription] {
   78         -
        self.replica_global_secondary_index_settings.as_deref().unwrap_or_default()
   79         -
    }
         104  +
        /* StructureGenerator.kt:169 */
         105  +
        self.replica_global_secondary_index_settings
         106  +
            .as_deref()
         107  +
            /* StructureGenerator.kt:175 */
         108  +
            .unwrap_or_default()
         109  +
        /* StructureGenerator.kt:166 */
         110  +
    }
         111  +
    /* StructureGenerator.kt:135 */
   80    112   
}
         113  +
/* ClientCodegenVisitor.kt:237 */
   81    114   
impl ReplicaSettingsDescription {
   82         -
    /// Creates a new builder-style object to manufacture [`ReplicaSettingsDescription`](crate::types::ReplicaSettingsDescription).
         115  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ReplicaSettingsDescription`](crate::types::ReplicaSettingsDescription).
         116  +
    /* BuilderGenerator.kt:175 */
   83    117   
    pub fn builder() -> crate::types::builders::ReplicaSettingsDescriptionBuilder {
         118  +
        /* BuilderGenerator.kt:176 */
   84    119   
        crate::types::builders::ReplicaSettingsDescriptionBuilder::default()
         120  +
        /* BuilderGenerator.kt:175 */
   85    121   
    }
         122  +
    /* ClientCodegenVisitor.kt:237 */
   86    123   
}
   87    124   
   88         -
/// A builder for [`ReplicaSettingsDescription`](crate::types::ReplicaSettingsDescription).
         125  +
/// /* BuilderGenerator.kt:342 */A builder for [`ReplicaSettingsDescription`](crate::types::ReplicaSettingsDescription).
         126  +
/* RustType.kt:516 */
   89    127   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         128  +
/* RustType.kt:516 */
   90    129   
#[non_exhaustive]
         130  +
/* BuilderGenerator.kt:345 */
   91    131   
pub struct ReplicaSettingsDescriptionBuilder {
   92         -
    pub(crate) region_name: ::std::option::Option<::std::string::String>,
   93         -
    pub(crate) replica_status: ::std::option::Option<crate::types::ReplicaStatus>,
   94         -
    pub(crate) replica_billing_mode_summary: ::std::option::Option<crate::types::BillingModeSummary>,
   95         -
    pub(crate) replica_provisioned_read_capacity_units: ::std::option::Option<i64>,
         132  +
    /* BuilderGenerator.kt:275 */ pub(crate) region_name: ::std::option::Option<::std::string::String>,
         133  +
    /* BuilderGenerator.kt:275 */ pub(crate) replica_status: ::std::option::Option<crate::types::ReplicaStatus>,
         134  +
    /* BuilderGenerator.kt:275 */ pub(crate) replica_billing_mode_summary: ::std::option::Option<crate::types::BillingModeSummary>,
         135  +
    /* BuilderGenerator.kt:275 */ pub(crate) replica_provisioned_read_capacity_units: ::std::option::Option<i64>,
         136  +
    /* BuilderGenerator.kt:275 */
   96    137   
    pub(crate) replica_provisioned_read_capacity_auto_scaling_settings: ::std::option::Option<crate::types::AutoScalingSettingsDescription>,
   97         -
    pub(crate) replica_provisioned_write_capacity_units: ::std::option::Option<i64>,
         138  +
    /* BuilderGenerator.kt:275 */ pub(crate) replica_provisioned_write_capacity_units: ::std::option::Option<i64>,
         139  +
    /* BuilderGenerator.kt:275 */
   98    140   
    pub(crate) replica_provisioned_write_capacity_auto_scaling_settings: ::std::option::Option<crate::types::AutoScalingSettingsDescription>,
         141  +
    /* BuilderGenerator.kt:275 */
   99    142   
    pub(crate) replica_global_secondary_index_settings:
  100    143   
        ::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndexSettingsDescription>>,
         144  +
    /* BuilderGenerator.kt:345 */
  101    145   
}
         146  +
/* BuilderGenerator.kt:355 */
  102    147   
impl ReplicaSettingsDescriptionBuilder {
  103         -
    /// <p>The Region name of the replica.</p>
  104         -
    /// This field is required.
         148  +
    /// /* BuilderGenerator.kt:286 */<p>The Region name of the replica.</p>
         149  +
    /// /* BuilderGenerator.kt:288 */This field is required.
         150  +
    /* BuilderGenerator.kt:291 */
  105    151   
    pub fn region_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         152  +
        /* BuilderGenerator.kt:292 */
  106    153   
        self.region_name = ::std::option::Option::Some(input.into());
         154  +
        /* BuilderGenerator.kt:293 */
  107    155   
        self
         156  +
        /* BuilderGenerator.kt:291 */
  108    157   
    }
  109         -
    /// <p>The Region name of the replica.</p>
         158  +
    /// /* BuilderGenerator.kt:312 */<p>The Region name of the replica.</p>
         159  +
    /* BuilderGenerator.kt:314 */
  110    160   
    pub fn set_region_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         161  +
        /* BuilderGenerator.kt:315 */
  111    162   
        self.region_name = input;
  112    163   
        self
         164  +
        /* BuilderGenerator.kt:314 */
  113    165   
    }
  114         -
    /// <p>The Region name of the replica.</p>
         166  +
    /// /* BuilderGenerator.kt:334 */<p>The Region name of the replica.</p>
         167  +
    /* BuilderGenerator.kt:336 */
  115    168   
    pub fn get_region_name(&self) -> &::std::option::Option<::std::string::String> {
         169  +
        /* BuilderGenerator.kt:337 */
  116    170   
        &self.region_name
         171  +
        /* BuilderGenerator.kt:336 */
  117    172   
    }
  118         -
    /// <p>The current state of the Region:</p>
         173  +
    /// /* BuilderGenerator.kt:286 */<p>The current state of the Region:</p>
  119    174   
    /// <ul>
  120    175   
    /// <li>
  121    176   
    /// <p><code>CREATING</code> - The Region is being created.</p></li>
  122    177   
    /// <li>
  123    178   
    /// <p><code>UPDATING</code> - The Region is being updated.</p></li>
  124    179   
    /// <li>
  125    180   
    /// <p><code>DELETING</code> - The Region is being deleted.</p></li>
  126    181   
    /// <li>
  127    182   
    /// <p><code>ACTIVE</code> - The Region is ready for use.</p></li>
  128    183   
    /// </ul>
         184  +
    /* BuilderGenerator.kt:291 */
  129    185   
    pub fn replica_status(mut self, input: crate::types::ReplicaStatus) -> Self {
         186  +
        /* BuilderGenerator.kt:292 */
  130    187   
        self.replica_status = ::std::option::Option::Some(input);
         188  +
        /* BuilderGenerator.kt:293 */
  131    189   
        self
         190  +
        /* BuilderGenerator.kt:291 */
  132    191   
    }
  133         -
    /// <p>The current state of the Region:</p>
         192  +
    /// /* BuilderGenerator.kt:312 */<p>The current state of the Region:</p>
  134    193   
    /// <ul>
  135    194   
    /// <li>
  136    195   
    /// <p><code>CREATING</code> - The Region is being created.</p></li>
  137    196   
    /// <li>
  138    197   
    /// <p><code>UPDATING</code> - The Region is being updated.</p></li>
  139    198   
    /// <li>
  140    199   
    /// <p><code>DELETING</code> - The Region is being deleted.</p></li>
  141    200   
    /// <li>
  142    201   
    /// <p><code>ACTIVE</code> - The Region is ready for use.</p></li>
  143    202   
    /// </ul>
         203  +
    /* BuilderGenerator.kt:314 */
  144    204   
    pub fn set_replica_status(mut self, input: ::std::option::Option<crate::types::ReplicaStatus>) -> Self {
         205  +
        /* BuilderGenerator.kt:315 */
  145    206   
        self.replica_status = input;
  146    207   
        self
         208  +
        /* BuilderGenerator.kt:314 */
  147    209   
    }
  148         -
    /// <p>The current state of the Region:</p>
         210  +
    /// /* BuilderGenerator.kt:334 */<p>The current state of the Region:</p>
  149    211   
    /// <ul>
  150    212   
    /// <li>
  151    213   
    /// <p><code>CREATING</code> - The Region is being created.</p></li>
  152    214   
    /// <li>
  153    215   
    /// <p><code>UPDATING</code> - The Region is being updated.</p></li>
  154    216   
    /// <li>
  155    217   
    /// <p><code>DELETING</code> - The Region is being deleted.</p></li>
  156    218   
    /// <li>
  157    219   
    /// <p><code>ACTIVE</code> - The Region is ready for use.</p></li>
  158    220   
    /// </ul>
         221  +
    /* BuilderGenerator.kt:336 */
  159    222   
    pub fn get_replica_status(&self) -> &::std::option::Option<crate::types::ReplicaStatus> {
         223  +
        /* BuilderGenerator.kt:337 */
  160    224   
        &self.replica_status
         225  +
        /* BuilderGenerator.kt:336 */
  161    226   
    }
  162         -
    /// <p>The read/write capacity mode of the replica.</p>
         227  +
    /// /* BuilderGenerator.kt:286 */<p>The read/write capacity mode of the replica.</p>
         228  +
    /* BuilderGenerator.kt:291 */
  163    229   
    pub fn replica_billing_mode_summary(mut self, input: crate::types::BillingModeSummary) -> Self {
         230  +
        /* BuilderGenerator.kt:292 */
  164    231   
        self.replica_billing_mode_summary = ::std::option::Option::Some(input);
         232  +
        /* BuilderGenerator.kt:293 */
  165    233   
        self
         234  +
        /* BuilderGenerator.kt:291 */
  166    235   
    }
  167         -
    /// <p>The read/write capacity mode of the replica.</p>
         236  +
    /// /* BuilderGenerator.kt:312 */<p>The read/write capacity mode of the replica.</p>
         237  +
    /* BuilderGenerator.kt:314 */
  168    238   
    pub fn set_replica_billing_mode_summary(mut self, input: ::std::option::Option<crate::types::BillingModeSummary>) -> Self {
         239  +
        /* BuilderGenerator.kt:315 */
  169    240   
        self.replica_billing_mode_summary = input;
  170    241   
        self
         242  +
        /* BuilderGenerator.kt:314 */
  171    243   
    }
  172         -
    /// <p>The read/write capacity mode of the replica.</p>
         244  +
    /// /* BuilderGenerator.kt:334 */<p>The read/write capacity mode of the replica.</p>
         245  +
    /* BuilderGenerator.kt:336 */
  173    246   
    pub fn get_replica_billing_mode_summary(&self) -> &::std::option::Option<crate::types::BillingModeSummary> {
         247  +
        /* BuilderGenerator.kt:337 */
  174    248   
        &self.replica_billing_mode_summary
         249  +
        /* BuilderGenerator.kt:336 */
  175    250   
    }
  176         -
    /// <p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
         251  +
    /// /* BuilderGenerator.kt:286 */<p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
         252  +
    /* BuilderGenerator.kt:291 */
  177    253   
    pub fn replica_provisioned_read_capacity_units(mut self, input: i64) -> Self {
         254  +
        /* BuilderGenerator.kt:292 */
  178    255   
        self.replica_provisioned_read_capacity_units = ::std::option::Option::Some(input);
         256  +
        /* BuilderGenerator.kt:293 */
  179    257   
        self
         258  +
        /* BuilderGenerator.kt:291 */
  180    259   
    }
  181         -
    /// <p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
         260  +
    /// /* BuilderGenerator.kt:312 */<p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
         261  +
    /* BuilderGenerator.kt:314 */
  182    262   
    pub fn set_replica_provisioned_read_capacity_units(mut self, input: ::std::option::Option<i64>) -> Self {
         263  +
        /* BuilderGenerator.kt:315 */
  183    264   
        self.replica_provisioned_read_capacity_units = input;
  184    265   
        self
         266  +
        /* BuilderGenerator.kt:314 */
  185    267   
    }
  186         -
    /// <p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
         268  +
    /// /* BuilderGenerator.kt:334 */<p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
         269  +
    /* BuilderGenerator.kt:336 */
  187    270   
    pub fn get_replica_provisioned_read_capacity_units(&self) -> &::std::option::Option<i64> {
         271  +
        /* BuilderGenerator.kt:337 */
  188    272   
        &self.replica_provisioned_read_capacity_units
         273  +
        /* BuilderGenerator.kt:336 */
  189    274   
    }
  190         -
    /// <p>Auto scaling settings for a global table replica's read capacity units.</p>
         275  +
    /// /* BuilderGenerator.kt:286 */<p>Auto scaling settings for a global table replica's read capacity units.</p>
         276  +
    /* BuilderGenerator.kt:291 */
  191    277   
    pub fn replica_provisioned_read_capacity_auto_scaling_settings(mut self, input: crate::types::AutoScalingSettingsDescription) -> Self {
         278  +
        /* BuilderGenerator.kt:292 */
  192    279   
        self.replica_provisioned_read_capacity_auto_scaling_settings = ::std::option::Option::Some(input);
         280  +
        /* BuilderGenerator.kt:293 */
  193    281   
        self
         282  +
        /* BuilderGenerator.kt:291 */
  194    283   
    }
  195         -
    /// <p>Auto scaling settings for a global table replica's read capacity units.</p>
         284  +
    /// /* BuilderGenerator.kt:312 */<p>Auto scaling settings for a global table replica's read capacity units.</p>
         285  +
    /* BuilderGenerator.kt:314 */
  196    286   
    pub fn set_replica_provisioned_read_capacity_auto_scaling_settings(
  197    287   
        mut self,
  198    288   
        input: ::std::option::Option<crate::types::AutoScalingSettingsDescription>,
  199    289   
    ) -> Self {
         290  +
        /* BuilderGenerator.kt:315 */
  200    291   
        self.replica_provisioned_read_capacity_auto_scaling_settings = input;
  201    292   
        self
         293  +
        /* BuilderGenerator.kt:314 */
  202    294   
    }
  203         -
    /// <p>Auto scaling settings for a global table replica's read capacity units.</p>
         295  +
    /// /* BuilderGenerator.kt:334 */<p>Auto scaling settings for a global table replica's read capacity units.</p>
         296  +
    /* BuilderGenerator.kt:336 */
  204    297   
    pub fn get_replica_provisioned_read_capacity_auto_scaling_settings(
  205    298   
        &self,
  206    299   
    ) -> &::std::option::Option<crate::types::AutoScalingSettingsDescription> {
         300  +
        /* BuilderGenerator.kt:337 */
  207    301   
        &self.replica_provisioned_read_capacity_auto_scaling_settings
         302  +
        /* BuilderGenerator.kt:336 */
  208    303   
    }
  209         -
    /// <p>The maximum number of writes consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
         304  +
    /// /* BuilderGenerator.kt:286 */<p>The maximum number of writes consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
         305  +
    /* BuilderGenerator.kt:291 */
  210    306   
    pub fn replica_provisioned_write_capacity_units(mut self, input: i64) -> Self {
         307  +
        /* BuilderGenerator.kt:292 */
  211    308   
        self.replica_provisioned_write_capacity_units = ::std::option::Option::Some(input);
         309  +
        /* BuilderGenerator.kt:293 */
  212    310   
        self
         311  +
        /* BuilderGenerator.kt:291 */
  213    312   
    }
  214         -
    /// <p>The maximum number of writes consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
         313  +
    /// /* BuilderGenerator.kt:312 */<p>The maximum number of writes consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
         314  +
    /* BuilderGenerator.kt:314 */
  215    315   
    pub fn set_replica_provisioned_write_capacity_units(mut self, input: ::std::option::Option<i64>) -> Self {
         316  +
        /* BuilderGenerator.kt:315 */
  216    317   
        self.replica_provisioned_write_capacity_units = input;
  217    318   
        self
         319  +
        /* BuilderGenerator.kt:314 */
  218    320   
    }
  219         -
    /// <p>The maximum number of writes consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
         321  +
    /// /* BuilderGenerator.kt:334 */<p>The maximum number of writes consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
         322  +
    /* BuilderGenerator.kt:336 */
  220    323   
    pub fn get_replica_provisioned_write_capacity_units(&self) -> &::std::option::Option<i64> {
         324  +
        /* BuilderGenerator.kt:337 */
  221    325   
        &self.replica_provisioned_write_capacity_units
         326  +
        /* BuilderGenerator.kt:336 */
  222    327   
    }
  223         -
    /// <p>Auto scaling settings for a global table replica's write capacity units.</p>
         328  +
    /// /* BuilderGenerator.kt:286 */<p>Auto scaling settings for a global table replica's write capacity units.</p>
         329  +
    /* BuilderGenerator.kt:291 */
  224    330   
    pub fn replica_provisioned_write_capacity_auto_scaling_settings(mut self, input: crate::types::AutoScalingSettingsDescription) -> Self {
         331  +
        /* BuilderGenerator.kt:292 */
  225    332   
        self.replica_provisioned_write_capacity_auto_scaling_settings = ::std::option::Option::Some(input);
         333  +
        /* BuilderGenerator.kt:293 */
  226    334   
        self
         335  +
        /* BuilderGenerator.kt:291 */
  227    336   
    }
  228         -
    /// <p>Auto scaling settings for a global table replica's write capacity units.</p>
         337  +
    /// /* BuilderGenerator.kt:312 */<p>Auto scaling settings for a global table replica's write capacity units.</p>
         338  +
    /* BuilderGenerator.kt:314 */
  229    339   
    pub fn set_replica_provisioned_write_capacity_auto_scaling_settings(
  230    340   
        mut self,
  231    341   
        input: ::std::option::Option<crate::types::AutoScalingSettingsDescription>,
  232    342   
    ) -> Self {
         343  +
        /* BuilderGenerator.kt:315 */
  233    344   
        self.replica_provisioned_write_capacity_auto_scaling_settings = input;
  234    345   
        self
         346  +
        /* BuilderGenerator.kt:314 */
  235    347   
    }
  236         -
    /// <p>Auto scaling settings for a global table replica's write capacity units.</p>
         348  +
    /// /* BuilderGenerator.kt:334 */<p>Auto scaling settings for a global table replica's write capacity units.</p>
         349  +
    /* BuilderGenerator.kt:336 */
  237    350   
    pub fn get_replica_provisioned_write_capacity_auto_scaling_settings(
  238    351   
        &self,
  239    352   
    ) -> &::std::option::Option<crate::types::AutoScalingSettingsDescription> {
         353  +
        /* BuilderGenerator.kt:337 */
  240    354   
        &self.replica_provisioned_write_capacity_auto_scaling_settings
         355  +
        /* BuilderGenerator.kt:336 */
  241    356   
    }
  242         -
    /// Appends an item to `replica_global_secondary_index_settings`.
         357  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `replica_global_secondary_index_settings`.
         358  +
    /* BuilderGenerator.kt:411 */
  243    359   
    ///
  244         -
    /// To override the contents of this collection use [`set_replica_global_secondary_index_settings`](Self::set_replica_global_secondary_index_settings).
         360  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_replica_global_secondary_index_settings`](Self::set_replica_global_secondary_index_settings).
         361  +
    /* BuilderGenerator.kt:413 */
  245    362   
    ///
  246         -
    /// <p>Replica global secondary index settings for the global table.</p>
         363  +
    /// /* BuilderGenerator.kt:414 */<p>Replica global secondary index settings for the global table.</p>
         364  +
    /* BuilderGenerator.kt:418 */
  247    365   
    pub fn replica_global_secondary_index_settings(mut self, input: crate::types::ReplicaGlobalSecondaryIndexSettingsDescription) -> Self {
         366  +
        /* BuilderGenerator.kt:419 */
  248    367   
        let mut v = self.replica_global_secondary_index_settings.unwrap_or_default();
  249    368   
        v.push(input);
  250    369   
        self.replica_global_secondary_index_settings = ::std::option::Option::Some(v);
  251    370   
        self
         371  +
        /* BuilderGenerator.kt:418 */
  252    372   
    }
  253         -
    /// <p>Replica global secondary index settings for the global table.</p>
         373  +
    /// /* BuilderGenerator.kt:312 */<p>Replica global secondary index settings for the global table.</p>
         374  +
    /* BuilderGenerator.kt:314 */
  254    375   
    pub fn set_replica_global_secondary_index_settings(
  255    376   
        mut self,
  256    377   
        input: ::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndexSettingsDescription>>,
  257    378   
    ) -> Self {
         379  +
        /* BuilderGenerator.kt:315 */
  258    380   
        self.replica_global_secondary_index_settings = input;
  259    381   
        self
         382  +
        /* BuilderGenerator.kt:314 */
  260    383   
    }
  261         -
    /// <p>Replica global secondary index settings for the global table.</p>
         384  +
    /// /* BuilderGenerator.kt:334 */<p>Replica global secondary index settings for the global table.</p>
         385  +
    /* BuilderGenerator.kt:336 */
  262    386   
    pub fn get_replica_global_secondary_index_settings(
  263    387   
        &self,
  264    388   
    ) -> &::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndexSettingsDescription>> {
         389  +
        /* BuilderGenerator.kt:337 */
  265    390   
        &self.replica_global_secondary_index_settings
         391  +
        /* BuilderGenerator.kt:336 */
  266    392   
    }
  267         -
    /// Consumes the builder and constructs a [`ReplicaSettingsDescription`](crate::types::ReplicaSettingsDescription).
  268         -
    /// This method will fail if any of the following fields are not set:
  269         -
    /// - [`region_name`](crate::types::builders::ReplicaSettingsDescriptionBuilder::region_name)
         393  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ReplicaSettingsDescription`](crate::types::ReplicaSettingsDescription).
         394  +
    /// /* BuilderGenerator.kt:243 */This method will fail if any of the following fields are not set:
         395  +
    /// /* BuilderGenerator.kt:246 */- [`region_name`](crate::types::builders::ReplicaSettingsDescriptionBuilder::region_name)
         396  +
    /* BuilderGenerator.kt:253 */
  270    397   
    pub fn build(self) -> ::std::result::Result<crate::types::ReplicaSettingsDescription, ::aws_smithy_types::error::operation::BuildError> {
  271         -
        ::std::result::Result::Ok(crate::types::ReplicaSettingsDescription {
  272         -
            region_name: self.region_name.ok_or_else(|| {
  273         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
  274         -
                    "region_name",
  275         -
                    "region_name was not specified but it is required when building ReplicaSettingsDescription",
  276         -
                )
  277         -
            })?,
  278         -
            replica_status: self.replica_status,
  279         -
            replica_billing_mode_summary: self.replica_billing_mode_summary,
  280         -
            replica_provisioned_read_capacity_units: self.replica_provisioned_read_capacity_units,
  281         -
            replica_provisioned_read_capacity_auto_scaling_settings: self.replica_provisioned_read_capacity_auto_scaling_settings,
  282         -
            replica_provisioned_write_capacity_units: self.replica_provisioned_write_capacity_units,
  283         -
            replica_provisioned_write_capacity_auto_scaling_settings: self.replica_provisioned_write_capacity_auto_scaling_settings,
  284         -
            replica_global_secondary_index_settings: self.replica_global_secondary_index_settings,
  285         -
        })
  286         -
    }
         398  +
        /* BuilderGenerator.kt:254 */
         399  +
        ::std::result::Result::Ok(
         400  +
            /* BuilderGenerator.kt:477 */crate::types::ReplicaSettingsDescription {
         401  +
                /* BuilderGenerator.kt:481 */region_name: self.region_name
         402  +
                    /* BuilderGenerator.kt:494 */.ok_or_else(||
         403  +
                        /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("region_name", "region_name was not specified but it is required when building ReplicaSettingsDescription")
         404  +
                    /* BuilderGenerator.kt:494 */)?
         405  +
                ,
         406  +
                /* BuilderGenerator.kt:481 */replica_status: self.replica_status
         407  +
                ,
         408  +
                /* BuilderGenerator.kt:481 */replica_billing_mode_summary: self.replica_billing_mode_summary
         409  +
                ,
         410  +
                /* BuilderGenerator.kt:481 */replica_provisioned_read_capacity_units: self.replica_provisioned_read_capacity_units
         411  +
                ,
         412  +
                /* BuilderGenerator.kt:481 */replica_provisioned_read_capacity_auto_scaling_settings: self.replica_provisioned_read_capacity_auto_scaling_settings
         413  +
                ,
         414  +
                /* BuilderGenerator.kt:481 */replica_provisioned_write_capacity_units: self.replica_provisioned_write_capacity_units
         415  +
                ,
         416  +
                /* BuilderGenerator.kt:481 */replica_provisioned_write_capacity_auto_scaling_settings: self.replica_provisioned_write_capacity_auto_scaling_settings
         417  +
                ,
         418  +
                /* BuilderGenerator.kt:481 */replica_global_secondary_index_settings: self.replica_global_secondary_index_settings
         419  +
                ,
         420  +
            /* BuilderGenerator.kt:477 */}
         421  +
        /* BuilderGenerator.kt:254 */)
         422  +
        /* BuilderGenerator.kt:253 */
         423  +
    }
         424  +
    /* BuilderGenerator.kt:355 */
  287    425   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/types/_replica_settings_update.rs

@@ -1,1 +145,226 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>Represents the settings for a global table in a Region that will be modified.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>Represents the settings for a global table in a Region that will be modified.</p>
           4  +
/* RustType.kt:516 */
    4      5   
#[non_exhaustive]
           6  +
/* RustType.kt:516 */
    5      7   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    6         -
pub struct ReplicaSettingsUpdate {
    7         -
    /// <p>The Region of the replica to be added.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct ReplicaSettingsUpdate {
           9  +
    /// /* StructureGenerator.kt:231 */<p>The Region of the replica to be added.</p>
    8     10   
    pub region_name: ::std::string::String,
    9         -
    /// <p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
          11  +
    /// /* StructureGenerator.kt:231 */<p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
   10     12   
    pub replica_provisioned_read_capacity_units: ::std::option::Option<i64>,
   11         -
    /// <p>Auto scaling settings for managing a global table replica's read capacity units.</p>
          13  +
    /// /* StructureGenerator.kt:231 */<p>Auto scaling settings for managing a global table replica's read capacity units.</p>
   12     14   
    pub replica_provisioned_read_capacity_auto_scaling_settings_update: ::std::option::Option<crate::types::AutoScalingSettingsUpdate>,
   13         -
    /// <p>Represents the settings of a global secondary index for a global table that will be modified.</p>
          15  +
    /// /* StructureGenerator.kt:231 */<p>Represents the settings of a global secondary index for a global table that will be modified.</p>
   14     16   
    pub replica_global_secondary_index_settings_update:
   15     17   
        ::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndexSettingsUpdate>>,
          18  +
    /* StructureGenerator.kt:201 */
   16     19   
}
          20  +
/* StructureGenerator.kt:135 */
   17     21   
impl ReplicaSettingsUpdate {
   18         -
    /// <p>The Region of the replica to be added.</p>
          22  +
    /// /* StructureGenerator.kt:231 */<p>The Region of the replica to be added.</p>
          23  +
    /* StructureGenerator.kt:166 */
   19     24   
    pub fn region_name(&self) -> &str {
          25  +
        /* StructureGenerator.kt:171 */
   20     26   
        use std::ops::Deref;
   21     27   
        self.region_name.deref()
          28  +
        /* StructureGenerator.kt:166 */
   22     29   
    }
   23         -
    /// <p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
          30  +
    /// /* StructureGenerator.kt:231 */<p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
          31  +
    /* StructureGenerator.kt:166 */
   24     32   
    pub fn replica_provisioned_read_capacity_units(&self) -> ::std::option::Option<i64> {
          33  +
        /* StructureGenerator.kt:168 */
   25     34   
        self.replica_provisioned_read_capacity_units
          35  +
        /* StructureGenerator.kt:166 */
   26     36   
    }
   27         -
    /// <p>Auto scaling settings for managing a global table replica's read capacity units.</p>
          37  +
    /// /* StructureGenerator.kt:231 */<p>Auto scaling settings for managing a global table replica's read capacity units.</p>
          38  +
    /* StructureGenerator.kt:166 */
   28     39   
    pub fn replica_provisioned_read_capacity_auto_scaling_settings_update(&self) -> ::std::option::Option<&crate::types::AutoScalingSettingsUpdate> {
          40  +
        /* StructureGenerator.kt:170 */
   29     41   
        self.replica_provisioned_read_capacity_auto_scaling_settings_update.as_ref()
          42  +
        /* StructureGenerator.kt:166 */
   30     43   
    }
   31         -
    /// <p>Represents the settings of a global secondary index for a global table that will be modified.</p>
   32         -
    ///
   33         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.replica_global_secondary_index_settings_update.is_none()`.
          44  +
    /// /* StructureGenerator.kt:231 */<p>Represents the settings of a global secondary index for a global table that will be modified.</p>
          45  +
    /// /* StructureGenerator.kt:162 */
          46  +
    /// /* StructureGenerator.kt:163 */If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.replica_global_secondary_index_settings_update.is_none()`.
          47  +
    /* StructureGenerator.kt:166 */
   34     48   
    pub fn replica_global_secondary_index_settings_update(&self) -> &[crate::types::ReplicaGlobalSecondaryIndexSettingsUpdate] {
   35         -
        self.replica_global_secondary_index_settings_update.as_deref().unwrap_or_default()
   36         -
    }
          49  +
        /* StructureGenerator.kt:169 */
          50  +
        self.replica_global_secondary_index_settings_update
          51  +
            .as_deref()
          52  +
            /* StructureGenerator.kt:175 */
          53  +
            .unwrap_or_default()
          54  +
        /* StructureGenerator.kt:166 */
          55  +
    }
          56  +
    /* StructureGenerator.kt:135 */
   37     57   
}
          58  +
/* ClientCodegenVisitor.kt:237 */
   38     59   
impl ReplicaSettingsUpdate {
   39         -
    /// Creates a new builder-style object to manufacture [`ReplicaSettingsUpdate`](crate::types::ReplicaSettingsUpdate).
          60  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ReplicaSettingsUpdate`](crate::types::ReplicaSettingsUpdate).
          61  +
    /* BuilderGenerator.kt:175 */
   40     62   
    pub fn builder() -> crate::types::builders::ReplicaSettingsUpdateBuilder {
          63  +
        /* BuilderGenerator.kt:176 */
   41     64   
        crate::types::builders::ReplicaSettingsUpdateBuilder::default()
          65  +
        /* BuilderGenerator.kt:175 */
   42     66   
    }
          67  +
    /* ClientCodegenVisitor.kt:237 */
   43     68   
}
   44     69   
   45         -
/// A builder for [`ReplicaSettingsUpdate`](crate::types::ReplicaSettingsUpdate).
          70  +
/// /* BuilderGenerator.kt:342 */A builder for [`ReplicaSettingsUpdate`](crate::types::ReplicaSettingsUpdate).
          71  +
/* RustType.kt:516 */
   46     72   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          73  +
/* RustType.kt:516 */
   47     74   
#[non_exhaustive]
          75  +
/* BuilderGenerator.kt:345 */
   48     76   
pub struct ReplicaSettingsUpdateBuilder {
   49         -
    pub(crate) region_name: ::std::option::Option<::std::string::String>,
   50         -
    pub(crate) replica_provisioned_read_capacity_units: ::std::option::Option<i64>,
          77  +
    /* BuilderGenerator.kt:275 */ pub(crate) region_name: ::std::option::Option<::std::string::String>,
          78  +
    /* BuilderGenerator.kt:275 */ pub(crate) replica_provisioned_read_capacity_units: ::std::option::Option<i64>,
          79  +
    /* BuilderGenerator.kt:275 */
   51     80   
    pub(crate) replica_provisioned_read_capacity_auto_scaling_settings_update: ::std::option::Option<crate::types::AutoScalingSettingsUpdate>,
          81  +
    /* BuilderGenerator.kt:275 */
   52     82   
    pub(crate) replica_global_secondary_index_settings_update:
   53     83   
        ::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndexSettingsUpdate>>,
          84  +
    /* BuilderGenerator.kt:345 */
   54     85   
}
          86  +
/* BuilderGenerator.kt:355 */
   55     87   
impl ReplicaSettingsUpdateBuilder {
   56         -
    /// <p>The Region of the replica to be added.</p>
   57         -
    /// This field is required.
          88  +
    /// /* BuilderGenerator.kt:286 */<p>The Region of the replica to be added.</p>
          89  +
    /// /* BuilderGenerator.kt:288 */This field is required.
          90  +
    /* BuilderGenerator.kt:291 */
   58     91   
    pub fn region_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          92  +
        /* BuilderGenerator.kt:292 */
   59     93   
        self.region_name = ::std::option::Option::Some(input.into());
          94  +
        /* BuilderGenerator.kt:293 */
   60     95   
        self
          96  +
        /* BuilderGenerator.kt:291 */
   61     97   
    }
   62         -
    /// <p>The Region of the replica to be added.</p>
          98  +
    /// /* BuilderGenerator.kt:312 */<p>The Region of the replica to be added.</p>
          99  +
    /* BuilderGenerator.kt:314 */
   63    100   
    pub fn set_region_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         101  +
        /* BuilderGenerator.kt:315 */
   64    102   
        self.region_name = input;
   65    103   
        self
         104  +
        /* BuilderGenerator.kt:314 */
   66    105   
    }
   67         -
    /// <p>The Region of the replica to be added.</p>
         106  +
    /// /* BuilderGenerator.kt:334 */<p>The Region of the replica to be added.</p>
         107  +
    /* BuilderGenerator.kt:336 */
   68    108   
    pub fn get_region_name(&self) -> &::std::option::Option<::std::string::String> {
         109  +
        /* BuilderGenerator.kt:337 */
   69    110   
        &self.region_name
         111  +
        /* BuilderGenerator.kt:336 */
   70    112   
    }
   71         -
    /// <p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
         113  +
    /// /* BuilderGenerator.kt:286 */<p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
         114  +
    /* BuilderGenerator.kt:291 */
   72    115   
    pub fn replica_provisioned_read_capacity_units(mut self, input: i64) -> Self {
         116  +
        /* BuilderGenerator.kt:292 */
   73    117   
        self.replica_provisioned_read_capacity_units = ::std::option::Option::Some(input);
         118  +
        /* BuilderGenerator.kt:293 */
   74    119   
        self
         120  +
        /* BuilderGenerator.kt:291 */
   75    121   
    }
   76         -
    /// <p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
         122  +
    /// /* BuilderGenerator.kt:312 */<p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
         123  +
    /* BuilderGenerator.kt:314 */
   77    124   
    pub fn set_replica_provisioned_read_capacity_units(mut self, input: ::std::option::Option<i64>) -> Self {
         125  +
        /* BuilderGenerator.kt:315 */
   78    126   
        self.replica_provisioned_read_capacity_units = input;
   79    127   
        self
         128  +
        /* BuilderGenerator.kt:314 */
   80    129   
    }
   81         -
    /// <p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
         130  +
    /// /* BuilderGenerator.kt:334 */<p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
         131  +
    /* BuilderGenerator.kt:336 */
   82    132   
    pub fn get_replica_provisioned_read_capacity_units(&self) -> &::std::option::Option<i64> {
         133  +
        /* BuilderGenerator.kt:337 */
   83    134   
        &self.replica_provisioned_read_capacity_units
         135  +
        /* BuilderGenerator.kt:336 */
   84    136   
    }
   85         -
    /// <p>Auto scaling settings for managing a global table replica's read capacity units.</p>
         137  +
    /// /* BuilderGenerator.kt:286 */<p>Auto scaling settings for managing a global table replica's read capacity units.</p>
         138  +
    /* BuilderGenerator.kt:291 */
   86    139   
    pub fn replica_provisioned_read_capacity_auto_scaling_settings_update(mut self, input: crate::types::AutoScalingSettingsUpdate) -> Self {
         140  +
        /* BuilderGenerator.kt:292 */
   87    141   
        self.replica_provisioned_read_capacity_auto_scaling_settings_update = ::std::option::Option::Some(input);
         142  +
        /* BuilderGenerator.kt:293 */
   88    143   
        self
         144  +
        /* BuilderGenerator.kt:291 */
   89    145   
    }
   90         -
    /// <p>Auto scaling settings for managing a global table replica's read capacity units.</p>
         146  +
    /// /* BuilderGenerator.kt:312 */<p>Auto scaling settings for managing a global table replica's read capacity units.</p>
         147  +
    /* BuilderGenerator.kt:314 */
   91    148   
    pub fn set_replica_provisioned_read_capacity_auto_scaling_settings_update(
   92    149   
        mut self,
   93    150   
        input: ::std::option::Option<crate::types::AutoScalingSettingsUpdate>,
   94    151   
    ) -> Self {
         152  +
        /* BuilderGenerator.kt:315 */
   95    153   
        self.replica_provisioned_read_capacity_auto_scaling_settings_update = input;
   96    154   
        self
         155  +
        /* BuilderGenerator.kt:314 */
   97    156   
    }
   98         -
    /// <p>Auto scaling settings for managing a global table replica's read capacity units.</p>
         157  +
    /// /* BuilderGenerator.kt:334 */<p>Auto scaling settings for managing a global table replica's read capacity units.</p>
         158  +
    /* BuilderGenerator.kt:336 */
   99    159   
    pub fn get_replica_provisioned_read_capacity_auto_scaling_settings_update(
  100    160   
        &self,
  101    161   
    ) -> &::std::option::Option<crate::types::AutoScalingSettingsUpdate> {
         162  +
        /* BuilderGenerator.kt:337 */
  102    163   
        &self.replica_provisioned_read_capacity_auto_scaling_settings_update
         164  +
        /* BuilderGenerator.kt:336 */
  103    165   
    }
  104         -
    /// Appends an item to `replica_global_secondary_index_settings_update`.
         166  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `replica_global_secondary_index_settings_update`.
         167  +
    /* BuilderGenerator.kt:411 */
  105    168   
    ///
  106         -
    /// To override the contents of this collection use [`set_replica_global_secondary_index_settings_update`](Self::set_replica_global_secondary_index_settings_update).
         169  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_replica_global_secondary_index_settings_update`](Self::set_replica_global_secondary_index_settings_update).
         170  +
    /* BuilderGenerator.kt:413 */
  107    171   
    ///
  108         -
    /// <p>Represents the settings of a global secondary index for a global table that will be modified.</p>
         172  +
    /// /* BuilderGenerator.kt:414 */<p>Represents the settings of a global secondary index for a global table that will be modified.</p>
         173  +
    /* BuilderGenerator.kt:418 */
  109    174   
    pub fn replica_global_secondary_index_settings_update(mut self, input: crate::types::ReplicaGlobalSecondaryIndexSettingsUpdate) -> Self {
         175  +
        /* BuilderGenerator.kt:419 */
  110    176   
        let mut v = self.replica_global_secondary_index_settings_update.unwrap_or_default();
  111    177   
        v.push(input);
  112    178   
        self.replica_global_secondary_index_settings_update = ::std::option::Option::Some(v);
  113    179   
        self
         180  +
        /* BuilderGenerator.kt:418 */
  114    181   
    }
  115         -
    /// <p>Represents the settings of a global secondary index for a global table that will be modified.</p>
         182  +
    /// /* BuilderGenerator.kt:312 */<p>Represents the settings of a global secondary index for a global table that will be modified.</p>
         183  +
    /* BuilderGenerator.kt:314 */
  116    184   
    pub fn set_replica_global_secondary_index_settings_update(
  117    185   
        mut self,
  118    186   
        input: ::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndexSettingsUpdate>>,
  119    187   
    ) -> Self {
         188  +
        /* BuilderGenerator.kt:315 */
  120    189   
        self.replica_global_secondary_index_settings_update = input;
  121    190   
        self
         191  +
        /* BuilderGenerator.kt:314 */
  122    192   
    }
  123         -
    /// <p>Represents the settings of a global secondary index for a global table that will be modified.</p>
         193  +
    /// /* BuilderGenerator.kt:334 */<p>Represents the settings of a global secondary index for a global table that will be modified.</p>
         194  +
    /* BuilderGenerator.kt:336 */
  124    195   
    pub fn get_replica_global_secondary_index_settings_update(
  125    196   
        &self,
  126    197   
    ) -> &::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndexSettingsUpdate>> {
         198  +
        /* BuilderGenerator.kt:337 */
  127    199   
        &self.replica_global_secondary_index_settings_update
         200  +
        /* BuilderGenerator.kt:336 */
  128    201   
    }
  129         -
    /// Consumes the builder and constructs a [`ReplicaSettingsUpdate`](crate::types::ReplicaSettingsUpdate).
  130         -
    /// This method will fail if any of the following fields are not set:
  131         -
    /// - [`region_name`](crate::types::builders::ReplicaSettingsUpdateBuilder::region_name)
         202  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ReplicaSettingsUpdate`](crate::types::ReplicaSettingsUpdate).
         203  +
    /// /* BuilderGenerator.kt:243 */This method will fail if any of the following fields are not set:
         204  +
    /// /* BuilderGenerator.kt:246 */- [`region_name`](crate::types::builders::ReplicaSettingsUpdateBuilder::region_name)
         205  +
    /* BuilderGenerator.kt:253 */
  132    206   
    pub fn build(self) -> ::std::result::Result<crate::types::ReplicaSettingsUpdate, ::aws_smithy_types::error::operation::BuildError> {
  133         -
        ::std::result::Result::Ok(crate::types::ReplicaSettingsUpdate {
  134         -
            region_name: self.region_name.ok_or_else(|| {
  135         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
  136         -
                    "region_name",
  137         -
                    "region_name was not specified but it is required when building ReplicaSettingsUpdate",
  138         -
                )
  139         -
            })?,
  140         -
            replica_provisioned_read_capacity_units: self.replica_provisioned_read_capacity_units,
  141         -
            replica_provisioned_read_capacity_auto_scaling_settings_update: self.replica_provisioned_read_capacity_auto_scaling_settings_update,
  142         -
            replica_global_secondary_index_settings_update: self.replica_global_secondary_index_settings_update,
  143         -
        })
  144         -
    }
         207  +
        /* BuilderGenerator.kt:254 */
         208  +
        ::std::result::Result::Ok(
         209  +
            /* BuilderGenerator.kt:477 */crate::types::ReplicaSettingsUpdate {
         210  +
                /* BuilderGenerator.kt:481 */region_name: self.region_name
         211  +
                    /* BuilderGenerator.kt:494 */.ok_or_else(||
         212  +
                        /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("region_name", "region_name was not specified but it is required when building ReplicaSettingsUpdate")
         213  +
                    /* BuilderGenerator.kt:494 */)?
         214  +
                ,
         215  +
                /* BuilderGenerator.kt:481 */replica_provisioned_read_capacity_units: self.replica_provisioned_read_capacity_units
         216  +
                ,
         217  +
                /* BuilderGenerator.kt:481 */replica_provisioned_read_capacity_auto_scaling_settings_update: self.replica_provisioned_read_capacity_auto_scaling_settings_update
         218  +
                ,
         219  +
                /* BuilderGenerator.kt:481 */replica_global_secondary_index_settings_update: self.replica_global_secondary_index_settings_update
         220  +
                ,
         221  +
            /* BuilderGenerator.kt:477 */}
         222  +
        /* BuilderGenerator.kt:254 */)
         223  +
        /* BuilderGenerator.kt:253 */
         224  +
    }
         225  +
    /* BuilderGenerator.kt:355 */
  145    226   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/types/_replica_status.rs

@@ -1,1 +146,177 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// When writing a match expression against `ReplicaStatus`, it is important to ensure
           2  +
/* ClientEnumGenerator.kt:234 */
           3  +
/// /* ClientEnumGenerator.kt:234 */When writing a match expression against `ReplicaStatus`, it is important to ensure
    4      4   
/// your code is forward-compatible. That is, if a match arm handles a case for a
    5      5   
/// feature that is supported by the service but has not been represented as an enum
    6      6   
/// variant in a current version of SDK, your code should continue to work when you
    7      7   
/// upgrade SDK to a future version in which the enum does include a variant for that
    8      8   
/// feature.
    9         -
///
   10         -
/// Here is an example of how you can make a match expression forward-compatible:
   11         -
///
   12         -
/// ```text
           9  +
/// /* ClientEnumGenerator.kt:244 */
          10  +
/// /* ClientEnumGenerator.kt:245 */Here is an example of how you can make a match expression forward-compatible:
          11  +
/// /* ClientEnumGenerator.kt:246 */
          12  +
/// /* ClientEnumGenerator.kt:247 */```text
          13  +
/* ClientEnumGenerator.kt:248 */
   13     14   
/// # let replicastatus = unimplemented!();
          15  +
/* ClientEnumGenerator.kt:249 */
   14     16   
/// match replicastatus {
          17  +
/* ClientEnumGenerator.kt:251 */
   15     18   
///     ReplicaStatus::Active => { /* ... */ },
          19  +
/* ClientEnumGenerator.kt:251 */
   16     20   
///     ReplicaStatus::Creating => { /* ... */ },
          21  +
/* ClientEnumGenerator.kt:251 */
   17     22   
///     ReplicaStatus::CreationFailed => { /* ... */ },
          23  +
/* ClientEnumGenerator.kt:251 */
   18     24   
///     ReplicaStatus::Deleting => { /* ... */ },
          25  +
/* ClientEnumGenerator.kt:251 */
   19     26   
///     ReplicaStatus::InaccessibleEncryptionCredentials => { /* ... */ },
          27  +
/* ClientEnumGenerator.kt:251 */
   20     28   
///     ReplicaStatus::RegionDisabled => { /* ... */ },
          29  +
/* ClientEnumGenerator.kt:251 */
   21     30   
///     ReplicaStatus::Updating => { /* ... */ },
          31  +
/* ClientEnumGenerator.kt:253 */
   22     32   
///     other @ _ if other.as_str() == "NewFeature" => { /* handles a case for `NewFeature` */ },
          33  +
/* ClientEnumGenerator.kt:254 */
   23     34   
///     _ => { /* ... */ },
          35  +
/* ClientEnumGenerator.kt:255 */
   24     36   
/// }
   25         -
/// ```
   26         -
/// The above code demonstrates that when `replicastatus` represents
          37  +
/// /* ClientEnumGenerator.kt:256 */```
          38  +
/// /* ClientEnumGenerator.kt:257 */The above code demonstrates that when `replicastatus` represents
   27     39   
/// `NewFeature`, the execution path will lead to the second last match arm,
   28     40   
/// even though the enum does not contain a variant `ReplicaStatus::NewFeature`
   29     41   
/// in the current version of SDK. The reason is that the variable `other`,
   30     42   
/// created by the `@` operator, is bound to
   31     43   
/// `ReplicaStatus::Unknown(UnknownVariantValue("NewFeature".to_owned()))`
   32     44   
/// and calling `as_str` on it yields `"NewFeature"`.
   33     45   
/// This match expression is forward-compatible when executed with a newer
   34     46   
/// version of SDK where the variant `ReplicaStatus::NewFeature` is defined.
   35     47   
/// Specifically, when `replicastatus` represents `NewFeature`,
   36     48   
/// the execution path will hit the second last match arm as before by virtue of
   37     49   
/// calling `as_str` on `ReplicaStatus::NewFeature` also yielding `"NewFeature"`.
   38         -
///
   39         -
/// Explicitly matching on the `Unknown` variant should
          50  +
/// /* ClientEnumGenerator.kt:273 */
          51  +
/// /* ClientEnumGenerator.kt:274 */Explicitly matching on the `Unknown` variant should
   40     52   
/// be avoided for two reasons:
   41     53   
/// - The inner data `UnknownVariantValue` is opaque, and no further information can be extracted.
   42     54   
/// - It might inadvertently shadow other intended match arms.
   43         -
///
          55  +
/// /* ClientEnumGenerator.kt:282 */
          56  +
/* EnumGenerator.kt:154 */
   44     57   
#[allow(missing_docs)] // documentation missing in model
          58  +
/* RustType.kt:516 */
   45     59   
#[non_exhaustive]
          60  +
/* RustType.kt:516 */
   46     61   
#[derive(
   47     62   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::Ord, ::std::cmp::PartialEq, ::std::cmp::PartialOrd, ::std::fmt::Debug, ::std::hash::Hash,
   48     63   
)]
   49         -
pub enum ReplicaStatus {
   50         -
    #[allow(missing_docs)] // documentation missing in model
          64  +
pub /* EnumGenerator.kt:267 */ enum ReplicaStatus {
          65  +
    /* EnumGenerator.kt:154 */ #[allow(missing_docs)] // documentation missing in model
          66  +
    /* EnumGenerator.kt:143 */
   51     67   
    Active,
   52         -
    #[allow(missing_docs)] // documentation missing in model
          68  +
    /* EnumGenerator.kt:154 */ #[allow(missing_docs)] // documentation missing in model
          69  +
    /* EnumGenerator.kt:143 */
   53     70   
    Creating,
   54         -
    #[allow(missing_docs)] // documentation missing in model
          71  +
    /* EnumGenerator.kt:154 */ #[allow(missing_docs)] // documentation missing in model
          72  +
    /* EnumGenerator.kt:143 */
   55     73   
    CreationFailed,
   56         -
    #[allow(missing_docs)] // documentation missing in model
          74  +
    /* EnumGenerator.kt:154 */ #[allow(missing_docs)] // documentation missing in model
          75  +
    /* EnumGenerator.kt:143 */
   57     76   
    Deleting,
          77  +
    /* EnumGenerator.kt:154 */
   58     78   
    #[allow(missing_docs)] // documentation missing in model
          79  +
    /* EnumGenerator.kt:143 */
   59     80   
    InaccessibleEncryptionCredentials,
   60         -
    #[allow(missing_docs)] // documentation missing in model
          81  +
    /* EnumGenerator.kt:154 */ #[allow(missing_docs)] // documentation missing in model
          82  +
    /* EnumGenerator.kt:143 */
   61     83   
    RegionDisabled,
   62         -
    #[allow(missing_docs)] // documentation missing in model
          84  +
    /* EnumGenerator.kt:154 */ #[allow(missing_docs)] // documentation missing in model
          85  +
    /* EnumGenerator.kt:143 */
   63     86   
    Updating,
   64         -
    /// `Unknown` contains new variants that have been added since this code was generated.
          87  +
    /// /* ClientEnumGenerator.kt:175 */`Unknown` contains new variants that have been added since this code was generated.
          88  +
    /* ClientEnumGenerator.kt:176 */
   65     89   
    #[deprecated(note = "Don't directly match on `Unknown`. See the docs on this enum for the correct way to handle unknown variants.")]
   66         -
    Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue),
          90  +
    /* ClientEnumGenerator.kt:179 */
          91  +
    Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue), /* EnumGenerator.kt:267 */
   67     92   
}
          93  +
/* ClientEnumGenerator.kt:42 */
   68     94   
impl ::std::convert::From<&str> for ReplicaStatus {
   69     95   
    fn from(s: &str) -> Self {
   70     96   
        match s {
   71     97   
            "ACTIVE" => ReplicaStatus::Active,
   72     98   
            "CREATING" => ReplicaStatus::Creating,
   73     99   
            "CREATION_FAILED" => ReplicaStatus::CreationFailed,
   74    100   
            "DELETING" => ReplicaStatus::Deleting,
   75    101   
            "INACCESSIBLE_ENCRYPTION_CREDENTIALS" => ReplicaStatus::InaccessibleEncryptionCredentials,
   76    102   
            "REGION_DISABLED" => ReplicaStatus::RegionDisabled,
   77    103   
            "UPDATING" => ReplicaStatus::Updating,
   78    104   
            other => ReplicaStatus::Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue(other.to_owned())),
   79    105   
        }
   80    106   
    }
   81    107   
}
         108  +
/* ClientEnumGenerator.kt:68 */
   82    109   
impl ::std::str::FromStr for ReplicaStatus {
   83    110   
    type Err = ::std::convert::Infallible;
   84    111   
   85    112   
    fn from_str(s: &str) -> ::std::result::Result<Self, <Self as ::std::str::FromStr>::Err> {
   86    113   
        ::std::result::Result::Ok(ReplicaStatus::from(s))
   87    114   
    }
   88    115   
}
         116  +
/* EnumGenerator.kt:274 */
   89    117   
impl ReplicaStatus {
   90    118   
    /// Returns the `&str` value of the enum member.
   91    119   
    pub fn as_str(&self) -> &str {
   92    120   
        match self {
   93    121   
            ReplicaStatus::Active => "ACTIVE",
   94    122   
            ReplicaStatus::Creating => "CREATING",
   95    123   
            ReplicaStatus::CreationFailed => "CREATION_FAILED",
   96    124   
            ReplicaStatus::Deleting => "DELETING",
   97    125   
            ReplicaStatus::InaccessibleEncryptionCredentials => "INACCESSIBLE_ENCRYPTION_CREDENTIALS",
   98    126   
            ReplicaStatus::RegionDisabled => "REGION_DISABLED",
   99    127   
            ReplicaStatus::Updating => "UPDATING",
  100    128   
            ReplicaStatus::Unknown(value) => value.as_str(),
  101    129   
        }
  102    130   
    }
  103    131   
    /// Returns all the `&str` representations of the enum members.
  104    132   
    pub const fn values() -> &'static [&'static str] {
  105    133   
        &[
  106    134   
            "ACTIVE",
  107    135   
            "CREATING",
  108    136   
            "CREATION_FAILED",
  109    137   
            "DELETING",
  110    138   
            "INACCESSIBLE_ENCRYPTION_CREDENTIALS",
  111    139   
            "REGION_DISABLED",
  112    140   
            "UPDATING",
  113    141   
        ]
  114    142   
    }
  115    143   
}
         144  +
/* EnumGenerator.kt:223 */
  116    145   
impl ::std::convert::AsRef<str> for ReplicaStatus {
  117    146   
    fn as_ref(&self) -> &str {
  118    147   
        self.as_str()
  119    148   
    }
  120    149   
}
         150  +
/* ClientEnumGenerator.kt:117 */
  121    151   
impl ReplicaStatus {
  122    152   
    /// Parses the enum value while disallowing unknown variants.
  123    153   
    ///
  124    154   
    /// Unknown variants will result in an error.
  125    155   
    pub fn try_parse(value: &str) -> ::std::result::Result<Self, crate::error::UnknownVariantError> {
  126    156   
        match Self::from(value) {
  127    157   
            #[allow(deprecated)]
  128    158   
            Self::Unknown(_) => ::std::result::Result::Err(crate::error::UnknownVariantError::new(value)),
  129    159   
            known => Ok(known),
  130    160   
        }
  131    161   
    }
  132    162   
}
         163  +
/* ClientEnumGenerator.kt:136 */
  133    164   
impl ::std::fmt::Display for ReplicaStatus {
  134    165   
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  135    166   
        match self {
  136    167   
            ReplicaStatus::Active => write!(f, "ACTIVE"),
  137    168   
            ReplicaStatus::Creating => write!(f, "CREATING"),
  138    169   
            ReplicaStatus::CreationFailed => write!(f, "CREATION_FAILED"),
  139    170   
            ReplicaStatus::Deleting => write!(f, "DELETING"),
  140    171   
            ReplicaStatus::InaccessibleEncryptionCredentials => write!(f, "INACCESSIBLE_ENCRYPTION_CREDENTIALS"),
  141    172   
            ReplicaStatus::RegionDisabled => write!(f, "REGION_DISABLED"),
  142    173   
            ReplicaStatus::Updating => write!(f, "UPDATING"),

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/types/_replica_update.rs

@@ -1,1 +80,128 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>Represents one of the following:</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>Represents one of the following:</p>
    4      4   
/// <ul>
    5      5   
/// <li>
    6      6   
/// <p>A new replica to be added to an existing global table.</p></li>
    7      7   
/// <li>
    8      8   
/// <p>New parameters for an existing replica.</p></li>
    9      9   
/// <li>
   10     10   
/// <p>An existing replica to be removed from an existing global table.</p></li>
   11     11   
/// </ul>
          12  +
/* RustType.kt:516 */
   12     13   
#[non_exhaustive]
          14  +
/* RustType.kt:516 */
   13     15   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
   14         -
pub struct ReplicaUpdate {
   15         -
    /// <p>The parameters required for creating a replica on an existing global table.</p>
          16  +
pub /* StructureGenerator.kt:201 */ struct ReplicaUpdate {
          17  +
    /// /* StructureGenerator.kt:231 */<p>The parameters required for creating a replica on an existing global table.</p>
   16     18   
    pub create: ::std::option::Option<crate::types::CreateReplicaAction>,
   17         -
    /// <p>The name of the existing replica to be removed.</p>
          19  +
    /// /* StructureGenerator.kt:231 */<p>The name of the existing replica to be removed.</p>
   18     20   
    pub delete: ::std::option::Option<crate::types::DeleteReplicaAction>,
          21  +
    /* StructureGenerator.kt:201 */
   19     22   
}
          23  +
/* StructureGenerator.kt:135 */
   20     24   
impl ReplicaUpdate {
   21         -
    /// <p>The parameters required for creating a replica on an existing global table.</p>
          25  +
    /// /* StructureGenerator.kt:231 */<p>The parameters required for creating a replica on an existing global table.</p>
          26  +
    /* StructureGenerator.kt:166 */
   22     27   
    pub fn create(&self) -> ::std::option::Option<&crate::types::CreateReplicaAction> {
          28  +
        /* StructureGenerator.kt:170 */
   23     29   
        self.create.as_ref()
          30  +
        /* StructureGenerator.kt:166 */
   24     31   
    }
   25         -
    /// <p>The name of the existing replica to be removed.</p>
          32  +
    /// /* StructureGenerator.kt:231 */<p>The name of the existing replica to be removed.</p>
          33  +
    /* StructureGenerator.kt:166 */
   26     34   
    pub fn delete(&self) -> ::std::option::Option<&crate::types::DeleteReplicaAction> {
          35  +
        /* StructureGenerator.kt:170 */
   27     36   
        self.delete.as_ref()
          37  +
        /* StructureGenerator.kt:166 */
   28     38   
    }
          39  +
    /* StructureGenerator.kt:135 */
   29     40   
}
          41  +
/* ClientCodegenVisitor.kt:237 */
   30     42   
impl ReplicaUpdate {
   31         -
    /// Creates a new builder-style object to manufacture [`ReplicaUpdate`](crate::types::ReplicaUpdate).
          43  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ReplicaUpdate`](crate::types::ReplicaUpdate).
          44  +
    /* BuilderGenerator.kt:175 */
   32     45   
    pub fn builder() -> crate::types::builders::ReplicaUpdateBuilder {
          46  +
        /* BuilderGenerator.kt:176 */
   33     47   
        crate::types::builders::ReplicaUpdateBuilder::default()
          48  +
        /* BuilderGenerator.kt:175 */
   34     49   
    }
          50  +
    /* ClientCodegenVisitor.kt:237 */
   35     51   
}
   36     52   
   37         -
/// A builder for [`ReplicaUpdate`](crate::types::ReplicaUpdate).
          53  +
/// /* BuilderGenerator.kt:342 */A builder for [`ReplicaUpdate`](crate::types::ReplicaUpdate).
          54  +
/* RustType.kt:516 */
   38     55   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          56  +
/* RustType.kt:516 */
   39     57   
#[non_exhaustive]
          58  +
/* BuilderGenerator.kt:345 */
   40     59   
pub struct ReplicaUpdateBuilder {
   41         -
    pub(crate) create: ::std::option::Option<crate::types::CreateReplicaAction>,
          60  +
    /* BuilderGenerator.kt:275 */ pub(crate) create: ::std::option::Option<crate::types::CreateReplicaAction>,
          61  +
    /* BuilderGenerator.kt:275 */
   42     62   
    pub(crate) delete: ::std::option::Option<crate::types::DeleteReplicaAction>,
          63  +
    /* BuilderGenerator.kt:345 */
   43     64   
}
          65  +
/* BuilderGenerator.kt:355 */
   44     66   
impl ReplicaUpdateBuilder {
   45         -
    /// <p>The parameters required for creating a replica on an existing global table.</p>
          67  +
    /// /* BuilderGenerator.kt:286 */<p>The parameters required for creating a replica on an existing global table.</p>
          68  +
    /* BuilderGenerator.kt:291 */
   46     69   
    pub fn create(mut self, input: crate::types::CreateReplicaAction) -> Self {
          70  +
        /* BuilderGenerator.kt:292 */
   47     71   
        self.create = ::std::option::Option::Some(input);
          72  +
        /* BuilderGenerator.kt:293 */
   48     73   
        self
          74  +
        /* BuilderGenerator.kt:291 */
   49     75   
    }
   50         -
    /// <p>The parameters required for creating a replica on an existing global table.</p>
          76  +
    /// /* BuilderGenerator.kt:312 */<p>The parameters required for creating a replica on an existing global table.</p>
          77  +
    /* BuilderGenerator.kt:314 */
   51     78   
    pub fn set_create(mut self, input: ::std::option::Option<crate::types::CreateReplicaAction>) -> Self {
          79  +
        /* BuilderGenerator.kt:315 */
   52     80   
        self.create = input;
   53     81   
        self
          82  +
        /* BuilderGenerator.kt:314 */
   54     83   
    }
   55         -
    /// <p>The parameters required for creating a replica on an existing global table.</p>
          84  +
    /// /* BuilderGenerator.kt:334 */<p>The parameters required for creating a replica on an existing global table.</p>
          85  +
    /* BuilderGenerator.kt:336 */
   56     86   
    pub fn get_create(&self) -> &::std::option::Option<crate::types::CreateReplicaAction> {
          87  +
        /* BuilderGenerator.kt:337 */
   57     88   
        &self.create
          89  +
        /* BuilderGenerator.kt:336 */
   58     90   
    }
   59         -
    /// <p>The name of the existing replica to be removed.</p>
          91  +
    /// /* BuilderGenerator.kt:286 */<p>The name of the existing replica to be removed.</p>
          92  +
    /* BuilderGenerator.kt:291 */
   60     93   
    pub fn delete(mut self, input: crate::types::DeleteReplicaAction) -> Self {
          94  +
        /* BuilderGenerator.kt:292 */
   61     95   
        self.delete = ::std::option::Option::Some(input);
          96  +
        /* BuilderGenerator.kt:293 */
   62     97   
        self
          98  +
        /* BuilderGenerator.kt:291 */
   63     99   
    }
   64         -
    /// <p>The name of the existing replica to be removed.</p>
         100  +
    /// /* BuilderGenerator.kt:312 */<p>The name of the existing replica to be removed.</p>
         101  +
    /* BuilderGenerator.kt:314 */
   65    102   
    pub fn set_delete(mut self, input: ::std::option::Option<crate::types::DeleteReplicaAction>) -> Self {
         103  +
        /* BuilderGenerator.kt:315 */
   66    104   
        self.delete = input;
   67    105   
        self
         106  +
        /* BuilderGenerator.kt:314 */
   68    107   
    }
   69         -
    /// <p>The name of the existing replica to be removed.</p>
         108  +
    /// /* BuilderGenerator.kt:334 */<p>The name of the existing replica to be removed.</p>
         109  +
    /* BuilderGenerator.kt:336 */
   70    110   
    pub fn get_delete(&self) -> &::std::option::Option<crate::types::DeleteReplicaAction> {
         111  +
        /* BuilderGenerator.kt:337 */
   71    112   
        &self.delete
         113  +
        /* BuilderGenerator.kt:336 */
   72    114   
    }
   73         -
    /// Consumes the builder and constructs a [`ReplicaUpdate`](crate::types::ReplicaUpdate).
         115  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ReplicaUpdate`](crate::types::ReplicaUpdate).
         116  +
    /* BuilderGenerator.kt:253 */
   74    117   
    pub fn build(self) -> crate::types::ReplicaUpdate {
         118  +
        /* BuilderGenerator.kt:477 */
   75    119   
        crate::types::ReplicaUpdate {
   76         -
            create: self.create,
         120  +
            /* BuilderGenerator.kt:481 */ create: self.create,
         121  +
            /* BuilderGenerator.kt:481 */
   77    122   
            delete: self.delete,
         123  +
            /* BuilderGenerator.kt:477 */
   78    124   
        }
         125  +
        /* BuilderGenerator.kt:253 */
   79    126   
    }
         127  +
    /* BuilderGenerator.kt:355 */
   80    128   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/types/_replication_group_update.rs

@@ -1,1 +102,164 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>Represents one of the following:</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>Represents one of the following:</p>
    4      4   
/// <ul>
    5      5   
/// <li>
    6      6   
/// <p>A new replica to be added to an existing regional table or global table. This request invokes the <code>CreateTableReplica</code> action in the destination Region.</p></li>
    7      7   
/// <li>
    8      8   
/// <p>New parameters for an existing replica. This request invokes the <code>UpdateTable</code> action in the destination Region.</p></li>
    9      9   
/// <li>
   10     10   
/// <p>An existing replica to be deleted. The request invokes the <code>DeleteTableReplica</code> action in the destination Region, deleting the replica and all if its items in the destination Region.</p></li>
   11     11   
/// </ul>
          12  +
/* RustType.kt:516 */
   12     13   
#[non_exhaustive]
          14  +
/* RustType.kt:516 */
   13     15   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
   14         -
pub struct ReplicationGroupUpdate {
   15         -
    /// <p>The parameters required for creating a replica for the table.</p>
          16  +
pub /* StructureGenerator.kt:201 */ struct ReplicationGroupUpdate {
          17  +
    /// /* StructureGenerator.kt:231 */<p>The parameters required for creating a replica for the table.</p>
   16     18   
    pub create: ::std::option::Option<crate::types::CreateReplicationGroupMemberAction>,
   17         -
    /// <p>The parameters required for updating a replica for the table.</p>
          19  +
    /// /* StructureGenerator.kt:231 */<p>The parameters required for updating a replica for the table.</p>
   18     20   
    pub update: ::std::option::Option<crate::types::UpdateReplicationGroupMemberAction>,
   19         -
    /// <p>The parameters required for deleting a replica for the table.</p>
          21  +
    /// /* StructureGenerator.kt:231 */<p>The parameters required for deleting a replica for the table.</p>
   20     22   
    pub delete: ::std::option::Option<crate::types::DeleteReplicationGroupMemberAction>,
          23  +
    /* StructureGenerator.kt:201 */
   21     24   
}
          25  +
/* StructureGenerator.kt:135 */
   22     26   
impl ReplicationGroupUpdate {
   23         -
    /// <p>The parameters required for creating a replica for the table.</p>
          27  +
    /// /* StructureGenerator.kt:231 */<p>The parameters required for creating a replica for the table.</p>
          28  +
    /* StructureGenerator.kt:166 */
   24     29   
    pub fn create(&self) -> ::std::option::Option<&crate::types::CreateReplicationGroupMemberAction> {
          30  +
        /* StructureGenerator.kt:170 */
   25     31   
        self.create.as_ref()
          32  +
        /* StructureGenerator.kt:166 */
   26     33   
    }
   27         -
    /// <p>The parameters required for updating a replica for the table.</p>
          34  +
    /// /* StructureGenerator.kt:231 */<p>The parameters required for updating a replica for the table.</p>
          35  +
    /* StructureGenerator.kt:166 */
   28     36   
    pub fn update(&self) -> ::std::option::Option<&crate::types::UpdateReplicationGroupMemberAction> {
          37  +
        /* StructureGenerator.kt:170 */
   29     38   
        self.update.as_ref()
          39  +
        /* StructureGenerator.kt:166 */
   30     40   
    }
   31         -
    /// <p>The parameters required for deleting a replica for the table.</p>
          41  +
    /// /* StructureGenerator.kt:231 */<p>The parameters required for deleting a replica for the table.</p>
          42  +
    /* StructureGenerator.kt:166 */
   32     43   
    pub fn delete(&self) -> ::std::option::Option<&crate::types::DeleteReplicationGroupMemberAction> {
          44  +
        /* StructureGenerator.kt:170 */
   33     45   
        self.delete.as_ref()
          46  +
        /* StructureGenerator.kt:166 */
   34     47   
    }
          48  +
    /* StructureGenerator.kt:135 */
   35     49   
}
          50  +
/* ClientCodegenVisitor.kt:237 */
   36     51   
impl ReplicationGroupUpdate {
   37         -
    /// Creates a new builder-style object to manufacture [`ReplicationGroupUpdate`](crate::types::ReplicationGroupUpdate).
          52  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ReplicationGroupUpdate`](crate::types::ReplicationGroupUpdate).
          53  +
    /* BuilderGenerator.kt:175 */
   38     54   
    pub fn builder() -> crate::types::builders::ReplicationGroupUpdateBuilder {
          55  +
        /* BuilderGenerator.kt:176 */
   39     56   
        crate::types::builders::ReplicationGroupUpdateBuilder::default()
          57  +
        /* BuilderGenerator.kt:175 */
   40     58   
    }
          59  +
    /* ClientCodegenVisitor.kt:237 */
   41     60   
}
   42     61   
   43         -
/// A builder for [`ReplicationGroupUpdate`](crate::types::ReplicationGroupUpdate).
          62  +
/// /* BuilderGenerator.kt:342 */A builder for [`ReplicationGroupUpdate`](crate::types::ReplicationGroupUpdate).
          63  +
/* RustType.kt:516 */
   44     64   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          65  +
/* RustType.kt:516 */
   45     66   
#[non_exhaustive]
          67  +
/* BuilderGenerator.kt:345 */
   46     68   
pub struct ReplicationGroupUpdateBuilder {
   47         -
    pub(crate) create: ::std::option::Option<crate::types::CreateReplicationGroupMemberAction>,
   48         -
    pub(crate) update: ::std::option::Option<crate::types::UpdateReplicationGroupMemberAction>,
          69  +
    /* BuilderGenerator.kt:275 */ pub(crate) create: ::std::option::Option<crate::types::CreateReplicationGroupMemberAction>,
          70  +
    /* BuilderGenerator.kt:275 */ pub(crate) update: ::std::option::Option<crate::types::UpdateReplicationGroupMemberAction>,
          71  +
    /* BuilderGenerator.kt:275 */
   49     72   
    pub(crate) delete: ::std::option::Option<crate::types::DeleteReplicationGroupMemberAction>,
          73  +
    /* BuilderGenerator.kt:345 */
   50     74   
}
          75  +
/* BuilderGenerator.kt:355 */
   51     76   
impl ReplicationGroupUpdateBuilder {
   52         -
    /// <p>The parameters required for creating a replica for the table.</p>
          77  +
    /// /* BuilderGenerator.kt:286 */<p>The parameters required for creating a replica for the table.</p>
          78  +
    /* BuilderGenerator.kt:291 */
   53     79   
    pub fn create(mut self, input: crate::types::CreateReplicationGroupMemberAction) -> Self {
          80  +
        /* BuilderGenerator.kt:292 */
   54     81   
        self.create = ::std::option::Option::Some(input);
          82  +
        /* BuilderGenerator.kt:293 */
   55     83   
        self
          84  +
        /* BuilderGenerator.kt:291 */
   56     85   
    }
   57         -
    /// <p>The parameters required for creating a replica for the table.</p>
          86  +
    /// /* BuilderGenerator.kt:312 */<p>The parameters required for creating a replica for the table.</p>
          87  +
    /* BuilderGenerator.kt:314 */
   58     88   
    pub fn set_create(mut self, input: ::std::option::Option<crate::types::CreateReplicationGroupMemberAction>) -> Self {
          89  +
        /* BuilderGenerator.kt:315 */
   59     90   
        self.create = input;
   60     91   
        self
          92  +
        /* BuilderGenerator.kt:314 */
   61     93   
    }
   62         -
    /// <p>The parameters required for creating a replica for the table.</p>
          94  +
    /// /* BuilderGenerator.kt:334 */<p>The parameters required for creating a replica for the table.</p>
          95  +
    /* BuilderGenerator.kt:336 */
   63     96   
    pub fn get_create(&self) -> &::std::option::Option<crate::types::CreateReplicationGroupMemberAction> {
          97  +
        /* BuilderGenerator.kt:337 */
   64     98   
        &self.create
          99  +
        /* BuilderGenerator.kt:336 */
   65    100   
    }
   66         -
    /// <p>The parameters required for updating a replica for the table.</p>
         101  +
    /// /* BuilderGenerator.kt:286 */<p>The parameters required for updating a replica for the table.</p>
         102  +
    /* BuilderGenerator.kt:291 */
   67    103   
    pub fn update(mut self, input: crate::types::UpdateReplicationGroupMemberAction) -> Self {
         104  +
        /* BuilderGenerator.kt:292 */
   68    105   
        self.update = ::std::option::Option::Some(input);
         106  +
        /* BuilderGenerator.kt:293 */
   69    107   
        self
         108  +
        /* BuilderGenerator.kt:291 */
   70    109   
    }
   71         -
    /// <p>The parameters required for updating a replica for the table.</p>
         110  +
    /// /* BuilderGenerator.kt:312 */<p>The parameters required for updating a replica for the table.</p>
         111  +
    /* BuilderGenerator.kt:314 */
   72    112   
    pub fn set_update(mut self, input: ::std::option::Option<crate::types::UpdateReplicationGroupMemberAction>) -> Self {
         113  +
        /* BuilderGenerator.kt:315 */
   73    114   
        self.update = input;
   74    115   
        self
         116  +
        /* BuilderGenerator.kt:314 */
   75    117   
    }
   76         -
    /// <p>The parameters required for updating a replica for the table.</p>
         118  +
    /// /* BuilderGenerator.kt:334 */<p>The parameters required for updating a replica for the table.</p>
         119  +
    /* BuilderGenerator.kt:336 */
   77    120   
    pub fn get_update(&self) -> &::std::option::Option<crate::types::UpdateReplicationGroupMemberAction> {
         121  +
        /* BuilderGenerator.kt:337 */
   78    122   
        &self.update
         123  +
        /* BuilderGenerator.kt:336 */
   79    124   
    }
   80         -
    /// <p>The parameters required for deleting a replica for the table.</p>
         125  +
    /// /* BuilderGenerator.kt:286 */<p>The parameters required for deleting a replica for the table.</p>
         126  +
    /* BuilderGenerator.kt:291 */
   81    127   
    pub fn delete(mut self, input: crate::types::DeleteReplicationGroupMemberAction) -> Self {
         128  +
        /* BuilderGenerator.kt:292 */
   82    129   
        self.delete = ::std::option::Option::Some(input);
         130  +
        /* BuilderGenerator.kt:293 */
   83    131   
        self
         132  +
        /* BuilderGenerator.kt:291 */
   84    133   
    }
   85         -
    /// <p>The parameters required for deleting a replica for the table.</p>
         134  +
    /// /* BuilderGenerator.kt:312 */<p>The parameters required for deleting a replica for the table.</p>
         135  +
    /* BuilderGenerator.kt:314 */
   86    136   
    pub fn set_delete(mut self, input: ::std::option::Option<crate::types::DeleteReplicationGroupMemberAction>) -> Self {
         137  +
        /* BuilderGenerator.kt:315 */
   87    138   
        self.delete = input;
   88    139   
        self
         140  +
        /* BuilderGenerator.kt:314 */
   89    141   
    }
   90         -
    /// <p>The parameters required for deleting a replica for the table.</p>
         142  +
    /// /* BuilderGenerator.kt:334 */<p>The parameters required for deleting a replica for the table.</p>
         143  +
    /* BuilderGenerator.kt:336 */
   91    144   
    pub fn get_delete(&self) -> &::std::option::Option<crate::types::DeleteReplicationGroupMemberAction> {
         145  +
        /* BuilderGenerator.kt:337 */
   92    146   
        &self.delete
         147  +
        /* BuilderGenerator.kt:336 */
   93    148   
    }
   94         -
    /// Consumes the builder and constructs a [`ReplicationGroupUpdate`](crate::types::ReplicationGroupUpdate).
         149  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ReplicationGroupUpdate`](crate::types::ReplicationGroupUpdate).
         150  +
    /* BuilderGenerator.kt:253 */
   95    151   
    pub fn build(self) -> crate::types::ReplicationGroupUpdate {
         152  +
        /* BuilderGenerator.kt:477 */
   96    153   
        crate::types::ReplicationGroupUpdate {
   97         -
            create: self.create,
         154  +
            /* BuilderGenerator.kt:481 */ create: self.create,
         155  +
            /* BuilderGenerator.kt:481 */
   98    156   
            update: self.update,
         157  +
            /* BuilderGenerator.kt:481 */
   99    158   
            delete: self.delete,
         159  +
            /* BuilderGenerator.kt:477 */
  100    160   
        }
         161  +
        /* BuilderGenerator.kt:253 */
  101    162   
    }
         163  +
    /* BuilderGenerator.kt:355 */
  102    164   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/types/_restore_summary.rs

@@ -1,1 +131,204 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>Contains details for the restore.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>Contains details for the restore.</p>
           4  +
/* RustType.kt:516 */
    4      5   
#[non_exhaustive]
           6  +
/* RustType.kt:516 */
    5      7   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    6         -
pub struct RestoreSummary {
    7         -
    /// <p>The Amazon Resource Name (ARN) of the backup from which the table was restored.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct RestoreSummary {
           9  +
    /// /* StructureGenerator.kt:231 */<p>The Amazon Resource Name (ARN) of the backup from which the table was restored.</p>
    8     10   
    pub source_backup_arn: ::std::option::Option<::std::string::String>,
    9         -
    /// <p>The ARN of the source table of the backup that is being restored.</p>
          11  +
    /// /* StructureGenerator.kt:231 */<p>The ARN of the source table of the backup that is being restored.</p>
   10     12   
    pub source_table_arn: ::std::option::Option<::std::string::String>,
   11         -
    /// <p>Point in time or source backup time.</p>
          13  +
    /// /* StructureGenerator.kt:231 */<p>Point in time or source backup time.</p>
   12     14   
    pub restore_date_time: ::aws_smithy_types::DateTime,
   13         -
    /// <p>Indicates if a restore is in progress or not.</p>
          15  +
    /// /* StructureGenerator.kt:231 */<p>Indicates if a restore is in progress or not.</p>
   14     16   
    pub restore_in_progress: bool,
          17  +
    /* StructureGenerator.kt:201 */
   15     18   
}
          19  +
/* StructureGenerator.kt:135 */
   16     20   
impl RestoreSummary {
   17         -
    /// <p>The Amazon Resource Name (ARN) of the backup from which the table was restored.</p>
          21  +
    /// /* StructureGenerator.kt:231 */<p>The Amazon Resource Name (ARN) of the backup from which the table was restored.</p>
          22  +
    /* StructureGenerator.kt:166 */
   18     23   
    pub fn source_backup_arn(&self) -> ::std::option::Option<&str> {
          24  +
        /* StructureGenerator.kt:169 */
   19     25   
        self.source_backup_arn.as_deref()
          26  +
        /* StructureGenerator.kt:166 */
   20     27   
    }
   21         -
    /// <p>The ARN of the source table of the backup that is being restored.</p>
          28  +
    /// /* StructureGenerator.kt:231 */<p>The ARN of the source table of the backup that is being restored.</p>
          29  +
    /* StructureGenerator.kt:166 */
   22     30   
    pub fn source_table_arn(&self) -> ::std::option::Option<&str> {
          31  +
        /* StructureGenerator.kt:169 */
   23     32   
        self.source_table_arn.as_deref()
          33  +
        /* StructureGenerator.kt:166 */
   24     34   
    }
   25         -
    /// <p>Point in time or source backup time.</p>
          35  +
    /// /* StructureGenerator.kt:231 */<p>Point in time or source backup time.</p>
          36  +
    /* StructureGenerator.kt:166 */
   26     37   
    pub fn restore_date_time(&self) -> &::aws_smithy_types::DateTime {
          38  +
        /* StructureGenerator.kt:172 */
   27     39   
        &self.restore_date_time
          40  +
        /* StructureGenerator.kt:166 */
   28     41   
    }
   29         -
    /// <p>Indicates if a restore is in progress or not.</p>
          42  +
    /// /* StructureGenerator.kt:231 */<p>Indicates if a restore is in progress or not.</p>
          43  +
    /* StructureGenerator.kt:166 */
   30     44   
    pub fn restore_in_progress(&self) -> bool {
          45  +
        /* StructureGenerator.kt:168 */
   31     46   
        self.restore_in_progress
          47  +
        /* StructureGenerator.kt:166 */
   32     48   
    }
          49  +
    /* StructureGenerator.kt:135 */
   33     50   
}
          51  +
/* ClientCodegenVisitor.kt:237 */
   34     52   
impl RestoreSummary {
   35         -
    /// Creates a new builder-style object to manufacture [`RestoreSummary`](crate::types::RestoreSummary).
          53  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`RestoreSummary`](crate::types::RestoreSummary).
          54  +
    /* BuilderGenerator.kt:175 */
   36     55   
    pub fn builder() -> crate::types::builders::RestoreSummaryBuilder {
          56  +
        /* BuilderGenerator.kt:176 */
   37     57   
        crate::types::builders::RestoreSummaryBuilder::default()
          58  +
        /* BuilderGenerator.kt:175 */
   38     59   
    }
          60  +
    /* ClientCodegenVisitor.kt:237 */
   39     61   
}
   40     62   
   41         -
/// A builder for [`RestoreSummary`](crate::types::RestoreSummary).
          63  +
/// /* BuilderGenerator.kt:342 */A builder for [`RestoreSummary`](crate::types::RestoreSummary).
          64  +
/* RustType.kt:516 */
   42     65   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          66  +
/* RustType.kt:516 */
   43     67   
#[non_exhaustive]
          68  +
/* BuilderGenerator.kt:345 */
   44     69   
pub struct RestoreSummaryBuilder {
   45         -
    pub(crate) source_backup_arn: ::std::option::Option<::std::string::String>,
   46         -
    pub(crate) source_table_arn: ::std::option::Option<::std::string::String>,
   47         -
    pub(crate) restore_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
   48         -
    pub(crate) restore_in_progress: ::std::option::Option<bool>,
          70  +
    /* BuilderGenerator.kt:275 */ pub(crate) source_backup_arn: ::std::option::Option<::std::string::String>,
          71  +
    /* BuilderGenerator.kt:275 */ pub(crate) source_table_arn: ::std::option::Option<::std::string::String>,
          72  +
    /* BuilderGenerator.kt:275 */ pub(crate) restore_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
          73  +
    /* BuilderGenerator.kt:275 */ pub(crate) restore_in_progress: ::std::option::Option<bool>,
          74  +
    /* BuilderGenerator.kt:345 */
   49     75   
}
          76  +
/* BuilderGenerator.kt:355 */
   50     77   
impl RestoreSummaryBuilder {
   51         -
    /// <p>The Amazon Resource Name (ARN) of the backup from which the table was restored.</p>
          78  +
    /// /* BuilderGenerator.kt:286 */<p>The Amazon Resource Name (ARN) of the backup from which the table was restored.</p>
          79  +
    /* BuilderGenerator.kt:291 */
   52     80   
    pub fn source_backup_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          81  +
        /* BuilderGenerator.kt:292 */
   53     82   
        self.source_backup_arn = ::std::option::Option::Some(input.into());
          83  +
        /* BuilderGenerator.kt:293 */
   54     84   
        self
          85  +
        /* BuilderGenerator.kt:291 */
   55     86   
    }
   56         -
    /// <p>The Amazon Resource Name (ARN) of the backup from which the table was restored.</p>
          87  +
    /// /* BuilderGenerator.kt:312 */<p>The Amazon Resource Name (ARN) of the backup from which the table was restored.</p>
          88  +
    /* BuilderGenerator.kt:314 */
   57     89   
    pub fn set_source_backup_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          90  +
        /* BuilderGenerator.kt:315 */
   58     91   
        self.source_backup_arn = input;
   59     92   
        self
          93  +
        /* BuilderGenerator.kt:314 */
   60     94   
    }
   61         -
    /// <p>The Amazon Resource Name (ARN) of the backup from which the table was restored.</p>
          95  +
    /// /* BuilderGenerator.kt:334 */<p>The Amazon Resource Name (ARN) of the backup from which the table was restored.</p>
          96  +
    /* BuilderGenerator.kt:336 */
   62     97   
    pub fn get_source_backup_arn(&self) -> &::std::option::Option<::std::string::String> {
          98  +
        /* BuilderGenerator.kt:337 */
   63     99   
        &self.source_backup_arn
         100  +
        /* BuilderGenerator.kt:336 */
   64    101   
    }
   65         -
    /// <p>The ARN of the source table of the backup that is being restored.</p>
         102  +
    /// /* BuilderGenerator.kt:286 */<p>The ARN of the source table of the backup that is being restored.</p>
         103  +
    /* BuilderGenerator.kt:291 */
   66    104   
    pub fn source_table_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         105  +
        /* BuilderGenerator.kt:292 */
   67    106   
        self.source_table_arn = ::std::option::Option::Some(input.into());
         107  +
        /* BuilderGenerator.kt:293 */
   68    108   
        self
         109  +
        /* BuilderGenerator.kt:291 */
   69    110   
    }
   70         -
    /// <p>The ARN of the source table of the backup that is being restored.</p>
         111  +
    /// /* BuilderGenerator.kt:312 */<p>The ARN of the source table of the backup that is being restored.</p>
         112  +
    /* BuilderGenerator.kt:314 */
   71    113   
    pub fn set_source_table_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         114  +
        /* BuilderGenerator.kt:315 */
   72    115   
        self.source_table_arn = input;
   73    116   
        self
         117  +
        /* BuilderGenerator.kt:314 */
   74    118   
    }
   75         -
    /// <p>The ARN of the source table of the backup that is being restored.</p>
         119  +
    /// /* BuilderGenerator.kt:334 */<p>The ARN of the source table of the backup that is being restored.</p>
         120  +
    /* BuilderGenerator.kt:336 */
   76    121   
    pub fn get_source_table_arn(&self) -> &::std::option::Option<::std::string::String> {
         122  +
        /* BuilderGenerator.kt:337 */
   77    123   
        &self.source_table_arn
         124  +
        /* BuilderGenerator.kt:336 */
   78    125   
    }
   79         -
    /// <p>Point in time or source backup time.</p>
   80         -
    /// This field is required.
         126  +
    /// /* BuilderGenerator.kt:286 */<p>Point in time or source backup time.</p>
         127  +
    /// /* BuilderGenerator.kt:288 */This field is required.
         128  +
    /* BuilderGenerator.kt:291 */
   81    129   
    pub fn restore_date_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
         130  +
        /* BuilderGenerator.kt:292 */
   82    131   
        self.restore_date_time = ::std::option::Option::Some(input);
         132  +
        /* BuilderGenerator.kt:293 */
   83    133   
        self
         134  +
        /* BuilderGenerator.kt:291 */
   84    135   
    }
   85         -
    /// <p>Point in time or source backup time.</p>
         136  +
    /// /* BuilderGenerator.kt:312 */<p>Point in time or source backup time.</p>
         137  +
    /* BuilderGenerator.kt:314 */
   86    138   
    pub fn set_restore_date_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
         139  +
        /* BuilderGenerator.kt:315 */
   87    140   
        self.restore_date_time = input;
   88    141   
        self
         142  +
        /* BuilderGenerator.kt:314 */
   89    143   
    }
   90         -
    /// <p>Point in time or source backup time.</p>
         144  +
    /// /* BuilderGenerator.kt:334 */<p>Point in time or source backup time.</p>
         145  +
    /* BuilderGenerator.kt:336 */
   91    146   
    pub fn get_restore_date_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
         147  +
        /* BuilderGenerator.kt:337 */
   92    148   
        &self.restore_date_time
         149  +
        /* BuilderGenerator.kt:336 */
   93    150   
    }
   94         -
    /// <p>Indicates if a restore is in progress or not.</p>
   95         -
    /// This field is required.
         151  +
    /// /* BuilderGenerator.kt:286 */<p>Indicates if a restore is in progress or not.</p>
         152  +
    /// /* BuilderGenerator.kt:288 */This field is required.
         153  +
    /* BuilderGenerator.kt:291 */
   96    154   
    pub fn restore_in_progress(mut self, input: bool) -> Self {
         155  +
        /* BuilderGenerator.kt:292 */
   97    156   
        self.restore_in_progress = ::std::option::Option::Some(input);
         157  +
        /* BuilderGenerator.kt:293 */
   98    158   
        self
         159  +
        /* BuilderGenerator.kt:291 */
   99    160   
    }
  100         -
    /// <p>Indicates if a restore is in progress or not.</p>
         161  +
    /// /* BuilderGenerator.kt:312 */<p>Indicates if a restore is in progress or not.</p>
         162  +
    /* BuilderGenerator.kt:314 */
  101    163   
    pub fn set_restore_in_progress(mut self, input: ::std::option::Option<bool>) -> Self {
         164  +
        /* BuilderGenerator.kt:315 */
  102    165   
        self.restore_in_progress = input;
  103    166   
        self
         167  +
        /* BuilderGenerator.kt:314 */
  104    168   
    }
  105         -
    /// <p>Indicates if a restore is in progress or not.</p>
         169  +
    /// /* BuilderGenerator.kt:334 */<p>Indicates if a restore is in progress or not.</p>
         170  +
    /* BuilderGenerator.kt:336 */
  106    171   
    pub fn get_restore_in_progress(&self) -> &::std::option::Option<bool> {
         172  +
        /* BuilderGenerator.kt:337 */
  107    173   
        &self.restore_in_progress
         174  +
        /* BuilderGenerator.kt:336 */
  108    175   
    }
  109         -
    /// Consumes the builder and constructs a [`RestoreSummary`](crate::types::RestoreSummary).
  110         -
    /// This method will fail if any of the following fields are not set:
  111         -
    /// - [`restore_date_time`](crate::types::builders::RestoreSummaryBuilder::restore_date_time)
  112         -
    /// - [`restore_in_progress`](crate::types::builders::RestoreSummaryBuilder::restore_in_progress)
         176  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`RestoreSummary`](crate::types::RestoreSummary).
         177  +
    /// /* BuilderGenerator.kt:243 */This method will fail if any of the following fields are not set:
         178  +
    /// /* BuilderGenerator.kt:246 */- [`restore_date_time`](crate::types::builders::RestoreSummaryBuilder::restore_date_time)
         179  +
    /// /* BuilderGenerator.kt:246 */- [`restore_in_progress`](crate::types::builders::RestoreSummaryBuilder::restore_in_progress)
         180  +
    /* BuilderGenerator.kt:253 */
  113    181   
    pub fn build(self) -> ::std::result::Result<crate::types::RestoreSummary, ::aws_smithy_types::error::operation::BuildError> {
  114         -
        ::std::result::Result::Ok(crate::types::RestoreSummary {
  115         -
            source_backup_arn: self.source_backup_arn,
  116         -
            source_table_arn: self.source_table_arn,
  117         -
            restore_date_time: self.restore_date_time.ok_or_else(|| {
  118         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
  119         -
                    "restore_date_time",
  120         -
                    "restore_date_time was not specified but it is required when building RestoreSummary",
  121         -
                )
  122         -
            })?,
  123         -
            restore_in_progress: self.restore_in_progress.ok_or_else(|| {
  124         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
  125         -
                    "restore_in_progress",
  126         -
                    "restore_in_progress was not specified but it is required when building RestoreSummary",
  127         -
                )
  128         -
            })?,
  129         -
        })
  130         -
    }
         182  +
        /* BuilderGenerator.kt:254 */
         183  +
        ::std::result::Result::Ok(
         184  +
            /* BuilderGenerator.kt:477 */crate::types::RestoreSummary {
         185  +
                /* BuilderGenerator.kt:481 */source_backup_arn: self.source_backup_arn
         186  +
                ,
         187  +
                /* BuilderGenerator.kt:481 */source_table_arn: self.source_table_arn
         188  +
                ,
         189  +
                /* BuilderGenerator.kt:481 */restore_date_time: self.restore_date_time
         190  +
                    /* BuilderGenerator.kt:494 */.ok_or_else(||
         191  +
                        /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("restore_date_time", "restore_date_time was not specified but it is required when building RestoreSummary")
         192  +
                    /* BuilderGenerator.kt:494 */)?
         193  +
                ,
         194  +
                /* BuilderGenerator.kt:481 */restore_in_progress: self.restore_in_progress
         195  +
                    /* BuilderGenerator.kt:494 */.ok_or_else(||
         196  +
                        /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("restore_in_progress", "restore_in_progress was not specified but it is required when building RestoreSummary")
         197  +
                    /* BuilderGenerator.kt:494 */)?
         198  +
                ,
         199  +
            /* BuilderGenerator.kt:477 */}
         200  +
        /* BuilderGenerator.kt:254 */)
         201  +
        /* BuilderGenerator.kt:253 */
         202  +
    }
         203  +
    /* BuilderGenerator.kt:355 */
  131    204   
}