Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

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

@@ -1,1 +211,308 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>Represents the auto scaling settings of the replica.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>Represents the auto scaling settings of the 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 ReplicaAutoScalingDescription {
    7         -
    /// <p>The Region where the replica exists.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct ReplicaAutoScalingDescription {
           9  +
    /// /* StructureGenerator.kt:231 */<p>The Region where the replica exists.</p>
    8     10   
    pub region_name: ::std::option::Option<::std::string::String>,
    9         -
    /// <p>Replica-specific global secondary index auto scaling settings.</p>
          11  +
    /// /* StructureGenerator.kt:231 */<p>Replica-specific global secondary index auto scaling settings.</p>
   10     12   
    pub global_secondary_indexes: ::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndexAutoScalingDescription>>,
   11         -
    /// <p>Represents the auto scaling settings for a global table or global secondary index.</p>
          13  +
    /// /* StructureGenerator.kt:231 */<p>Represents the auto scaling settings for a global table or global secondary index.</p>
   12     14   
    pub replica_provisioned_read_capacity_auto_scaling_settings: ::std::option::Option<crate::types::AutoScalingSettingsDescription>,
   13         -
    /// <p>Represents the auto scaling settings for a global table or global secondary index.</p>
          15  +
    /// /* StructureGenerator.kt:231 */<p>Represents the auto scaling settings for a global table or global secondary index.</p>
   14     16   
    pub replica_provisioned_write_capacity_auto_scaling_settings: ::std::option::Option<crate::types::AutoScalingSettingsDescription>,
   15         -
    /// <p>The current state of the replica:</p>
          17  +
    /// /* StructureGenerator.kt:231 */<p>The current state of the replica:</p>
   16     18   
    /// <ul>
   17     19   
    /// <li>
   18     20   
    /// <p><code>CREATING</code> - The replica is being created.</p></li>
   19     21   
    /// <li>
   20     22   
    /// <p><code>UPDATING</code> - The replica is being updated.</p></li>
   21     23   
    /// <li>
   22     24   
    /// <p><code>DELETING</code> - The replica is being deleted.</p></li>
   23     25   
    /// <li>
   24     26   
    /// <p><code>ACTIVE</code> - The replica is ready for use.</p></li>
   25     27   
    /// </ul>
   26     28   
    pub replica_status: ::std::option::Option<crate::types::ReplicaStatus>,
          29  +
    /* StructureGenerator.kt:201 */
   27     30   
}
          31  +
/* StructureGenerator.kt:135 */
   28     32   
impl ReplicaAutoScalingDescription {
   29         -
    /// <p>The Region where the replica exists.</p>
          33  +
    /// /* StructureGenerator.kt:231 */<p>The Region where the replica exists.</p>
          34  +
    /* StructureGenerator.kt:166 */
   30     35   
    pub fn region_name(&self) -> ::std::option::Option<&str> {
          36  +
        /* StructureGenerator.kt:169 */
   31     37   
        self.region_name.as_deref()
          38  +
        /* StructureGenerator.kt:166 */
   32     39   
    }
   33         -
    /// <p>Replica-specific global secondary index auto scaling settings.</p>
   34         -
    ///
   35         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.global_secondary_indexes.is_none()`.
          40  +
    /// /* StructureGenerator.kt:231 */<p>Replica-specific global secondary index auto scaling settings.</p>
          41  +
    /// /* StructureGenerator.kt:162 */
          42  +
    /// /* 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 `.global_secondary_indexes.is_none()`.
          43  +
    /* StructureGenerator.kt:166 */
   36     44   
    pub fn global_secondary_indexes(&self) -> &[crate::types::ReplicaGlobalSecondaryIndexAutoScalingDescription] {
   37         -
        self.global_secondary_indexes.as_deref().unwrap_or_default()
          45  +
        /* StructureGenerator.kt:169 */
          46  +
        self.global_secondary_indexes
          47  +
            .as_deref()
          48  +
            /* StructureGenerator.kt:175 */
          49  +
            .unwrap_or_default()
          50  +
        /* StructureGenerator.kt:166 */
   38     51   
    }
   39         -
    /// <p>Represents the auto scaling settings for a global table or global secondary index.</p>
          52  +
    /// /* StructureGenerator.kt:231 */<p>Represents the auto scaling settings for a global table or global secondary index.</p>
          53  +
    /* StructureGenerator.kt:166 */
   40     54   
    pub fn replica_provisioned_read_capacity_auto_scaling_settings(&self) -> ::std::option::Option<&crate::types::AutoScalingSettingsDescription> {
          55  +
        /* StructureGenerator.kt:170 */
   41     56   
        self.replica_provisioned_read_capacity_auto_scaling_settings.as_ref()
          57  +
        /* StructureGenerator.kt:166 */
   42     58   
    }
   43         -
    /// <p>Represents the auto scaling settings for a global table or global secondary index.</p>
          59  +
    /// /* StructureGenerator.kt:231 */<p>Represents the auto scaling settings for a global table or global secondary index.</p>
          60  +
    /* StructureGenerator.kt:166 */
   44     61   
    pub fn replica_provisioned_write_capacity_auto_scaling_settings(&self) -> ::std::option::Option<&crate::types::AutoScalingSettingsDescription> {
          62  +
        /* StructureGenerator.kt:170 */
   45     63   
        self.replica_provisioned_write_capacity_auto_scaling_settings.as_ref()
          64  +
        /* StructureGenerator.kt:166 */
   46     65   
    }
   47         -
    /// <p>The current state of the replica:</p>
          66  +
    /// /* StructureGenerator.kt:231 */<p>The current state of the replica:</p>
   48     67   
    /// <ul>
   49     68   
    /// <li>
   50     69   
    /// <p><code>CREATING</code> - The replica is being created.</p></li>
   51     70   
    /// <li>
   52     71   
    /// <p><code>UPDATING</code> - The replica is being updated.</p></li>
   53     72   
    /// <li>
   54     73   
    /// <p><code>DELETING</code> - The replica is being deleted.</p></li>
   55     74   
    /// <li>
   56     75   
    /// <p><code>ACTIVE</code> - The replica is ready for use.</p></li>
   57     76   
    /// </ul>
          77  +
    /* StructureGenerator.kt:166 */
   58     78   
    pub fn replica_status(&self) -> ::std::option::Option<&crate::types::ReplicaStatus> {
          79  +
        /* StructureGenerator.kt:170 */
   59     80   
        self.replica_status.as_ref()
          81  +
        /* StructureGenerator.kt:166 */
   60     82   
    }
          83  +
    /* StructureGenerator.kt:135 */
   61     84   
}
          85  +
/* ClientCodegenVisitor.kt:237 */
   62     86   
impl ReplicaAutoScalingDescription {
   63         -
    /// Creates a new builder-style object to manufacture [`ReplicaAutoScalingDescription`](crate::types::ReplicaAutoScalingDescription).
          87  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ReplicaAutoScalingDescription`](crate::types::ReplicaAutoScalingDescription).
          88  +
    /* BuilderGenerator.kt:175 */
   64     89   
    pub fn builder() -> crate::types::builders::ReplicaAutoScalingDescriptionBuilder {
          90  +
        /* BuilderGenerator.kt:176 */
   65     91   
        crate::types::builders::ReplicaAutoScalingDescriptionBuilder::default()
          92  +
        /* BuilderGenerator.kt:175 */
   66     93   
    }
          94  +
    /* ClientCodegenVisitor.kt:237 */
   67     95   
}
   68     96   
   69         -
/// A builder for [`ReplicaAutoScalingDescription`](crate::types::ReplicaAutoScalingDescription).
          97  +
/// /* BuilderGenerator.kt:342 */A builder for [`ReplicaAutoScalingDescription`](crate::types::ReplicaAutoScalingDescription).
          98  +
/* RustType.kt:516 */
   70     99   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         100  +
/* RustType.kt:516 */
   71    101   
#[non_exhaustive]
         102  +
/* BuilderGenerator.kt:345 */
   72    103   
pub struct ReplicaAutoScalingDescriptionBuilder {
   73         -
    pub(crate) region_name: ::std::option::Option<::std::string::String>,
         104  +
    /* BuilderGenerator.kt:275 */ pub(crate) region_name: ::std::option::Option<::std::string::String>,
         105  +
    /* BuilderGenerator.kt:275 */
   74    106   
    pub(crate) global_secondary_indexes: ::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndexAutoScalingDescription>>,
         107  +
    /* BuilderGenerator.kt:275 */
   75    108   
    pub(crate) replica_provisioned_read_capacity_auto_scaling_settings: ::std::option::Option<crate::types::AutoScalingSettingsDescription>,
         109  +
    /* BuilderGenerator.kt:275 */
   76    110   
    pub(crate) replica_provisioned_write_capacity_auto_scaling_settings: ::std::option::Option<crate::types::AutoScalingSettingsDescription>,
         111  +
    /* BuilderGenerator.kt:275 */
   77    112   
    pub(crate) replica_status: ::std::option::Option<crate::types::ReplicaStatus>,
         113  +
    /* BuilderGenerator.kt:345 */
   78    114   
}
         115  +
/* BuilderGenerator.kt:355 */
   79    116   
impl ReplicaAutoScalingDescriptionBuilder {
   80         -
    /// <p>The Region where the replica exists.</p>
         117  +
    /// /* BuilderGenerator.kt:286 */<p>The Region where the replica exists.</p>
         118  +
    /* BuilderGenerator.kt:291 */
   81    119   
    pub fn region_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         120  +
        /* BuilderGenerator.kt:292 */
   82    121   
        self.region_name = ::std::option::Option::Some(input.into());
         122  +
        /* BuilderGenerator.kt:293 */
   83    123   
        self
         124  +
        /* BuilderGenerator.kt:291 */
   84    125   
    }
   85         -
    /// <p>The Region where the replica exists.</p>
         126  +
    /// /* BuilderGenerator.kt:312 */<p>The Region where the replica exists.</p>
         127  +
    /* BuilderGenerator.kt:314 */
   86    128   
    pub fn set_region_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         129  +
        /* BuilderGenerator.kt:315 */
   87    130   
        self.region_name = input;
   88    131   
        self
         132  +
        /* BuilderGenerator.kt:314 */
   89    133   
    }
   90         -
    /// <p>The Region where the replica exists.</p>
         134  +
    /// /* BuilderGenerator.kt:334 */<p>The Region where the replica exists.</p>
         135  +
    /* BuilderGenerator.kt:336 */
   91    136   
    pub fn get_region_name(&self) -> &::std::option::Option<::std::string::String> {
         137  +
        /* BuilderGenerator.kt:337 */
   92    138   
        &self.region_name
         139  +
        /* BuilderGenerator.kt:336 */
   93    140   
    }
   94         -
    /// Appends an item to `global_secondary_indexes`.
         141  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `global_secondary_indexes`.
         142  +
    /* BuilderGenerator.kt:411 */
   95    143   
    ///
   96         -
    /// To override the contents of this collection use [`set_global_secondary_indexes`](Self::set_global_secondary_indexes).
         144  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_global_secondary_indexes`](Self::set_global_secondary_indexes).
         145  +
    /* BuilderGenerator.kt:413 */
   97    146   
    ///
   98         -
    /// <p>Replica-specific global secondary index auto scaling settings.</p>
         147  +
    /// /* BuilderGenerator.kt:414 */<p>Replica-specific global secondary index auto scaling settings.</p>
         148  +
    /* BuilderGenerator.kt:418 */
   99    149   
    pub fn global_secondary_indexes(mut self, input: crate::types::ReplicaGlobalSecondaryIndexAutoScalingDescription) -> Self {
         150  +
        /* BuilderGenerator.kt:419 */
  100    151   
        let mut v = self.global_secondary_indexes.unwrap_or_default();
  101    152   
        v.push(input);
  102    153   
        self.global_secondary_indexes = ::std::option::Option::Some(v);
  103    154   
        self
         155  +
        /* BuilderGenerator.kt:418 */
  104    156   
    }
  105         -
    /// <p>Replica-specific global secondary index auto scaling settings.</p>
         157  +
    /// /* BuilderGenerator.kt:312 */<p>Replica-specific global secondary index auto scaling settings.</p>
         158  +
    /* BuilderGenerator.kt:314 */
  106    159   
    pub fn set_global_secondary_indexes(
  107    160   
        mut self,
  108    161   
        input: ::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndexAutoScalingDescription>>,
  109    162   
    ) -> Self {
         163  +
        /* BuilderGenerator.kt:315 */
  110    164   
        self.global_secondary_indexes = input;
  111    165   
        self
         166  +
        /* BuilderGenerator.kt:314 */
  112    167   
    }
  113         -
    /// <p>Replica-specific global secondary index auto scaling settings.</p>
         168  +
    /// /* BuilderGenerator.kt:334 */<p>Replica-specific global secondary index auto scaling settings.</p>
         169  +
    /* BuilderGenerator.kt:336 */
  114    170   
    pub fn get_global_secondary_indexes(
  115    171   
        &self,
  116    172   
    ) -> &::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndexAutoScalingDescription>> {
         173  +
        /* BuilderGenerator.kt:337 */
  117    174   
        &self.global_secondary_indexes
         175  +
        /* BuilderGenerator.kt:336 */
  118    176   
    }
  119         -
    /// <p>Represents the auto scaling settings for a global table or global secondary index.</p>
         177  +
    /// /* BuilderGenerator.kt:286 */<p>Represents the auto scaling settings for a global table or global secondary index.</p>
         178  +
    /* BuilderGenerator.kt:291 */
  120    179   
    pub fn replica_provisioned_read_capacity_auto_scaling_settings(mut self, input: crate::types::AutoScalingSettingsDescription) -> Self {
         180  +
        /* BuilderGenerator.kt:292 */
  121    181   
        self.replica_provisioned_read_capacity_auto_scaling_settings = ::std::option::Option::Some(input);
         182  +
        /* BuilderGenerator.kt:293 */
  122    183   
        self
         184  +
        /* BuilderGenerator.kt:291 */
  123    185   
    }
  124         -
    /// <p>Represents the auto scaling settings for a global table or global secondary index.</p>
         186  +
    /// /* BuilderGenerator.kt:312 */<p>Represents the auto scaling settings for a global table or global secondary index.</p>
         187  +
    /* BuilderGenerator.kt:314 */
  125    188   
    pub fn set_replica_provisioned_read_capacity_auto_scaling_settings(
  126    189   
        mut self,
  127    190   
        input: ::std::option::Option<crate::types::AutoScalingSettingsDescription>,
  128    191   
    ) -> Self {
         192  +
        /* BuilderGenerator.kt:315 */
  129    193   
        self.replica_provisioned_read_capacity_auto_scaling_settings = input;
  130    194   
        self
         195  +
        /* BuilderGenerator.kt:314 */
  131    196   
    }
  132         -
    /// <p>Represents the auto scaling settings for a global table or global secondary index.</p>
         197  +
    /// /* BuilderGenerator.kt:334 */<p>Represents the auto scaling settings for a global table or global secondary index.</p>
         198  +
    /* BuilderGenerator.kt:336 */
  133    199   
    pub fn get_replica_provisioned_read_capacity_auto_scaling_settings(
  134    200   
        &self,
  135    201   
    ) -> &::std::option::Option<crate::types::AutoScalingSettingsDescription> {
         202  +
        /* BuilderGenerator.kt:337 */
  136    203   
        &self.replica_provisioned_read_capacity_auto_scaling_settings
         204  +
        /* BuilderGenerator.kt:336 */
  137    205   
    }
  138         -
    /// <p>Represents the auto scaling settings for a global table or global secondary index.</p>
         206  +
    /// /* BuilderGenerator.kt:286 */<p>Represents the auto scaling settings for a global table or global secondary index.</p>
         207  +
    /* BuilderGenerator.kt:291 */
  139    208   
    pub fn replica_provisioned_write_capacity_auto_scaling_settings(mut self, input: crate::types::AutoScalingSettingsDescription) -> Self {
         209  +
        /* BuilderGenerator.kt:292 */
  140    210   
        self.replica_provisioned_write_capacity_auto_scaling_settings = ::std::option::Option::Some(input);
         211  +
        /* BuilderGenerator.kt:293 */
  141    212   
        self
         213  +
        /* BuilderGenerator.kt:291 */
  142    214   
    }
  143         -
    /// <p>Represents the auto scaling settings for a global table or global secondary index.</p>
         215  +
    /// /* BuilderGenerator.kt:312 */<p>Represents the auto scaling settings for a global table or global secondary index.</p>
         216  +
    /* BuilderGenerator.kt:314 */
  144    217   
    pub fn set_replica_provisioned_write_capacity_auto_scaling_settings(
  145    218   
        mut self,
  146    219   
        input: ::std::option::Option<crate::types::AutoScalingSettingsDescription>,
  147    220   
    ) -> Self {
         221  +
        /* BuilderGenerator.kt:315 */
  148    222   
        self.replica_provisioned_write_capacity_auto_scaling_settings = input;
  149    223   
        self
         224  +
        /* BuilderGenerator.kt:314 */
  150    225   
    }
  151         -
    /// <p>Represents the auto scaling settings for a global table or global secondary index.</p>
         226  +
    /// /* BuilderGenerator.kt:334 */<p>Represents the auto scaling settings for a global table or global secondary index.</p>
         227  +
    /* BuilderGenerator.kt:336 */
  152    228   
    pub fn get_replica_provisioned_write_capacity_auto_scaling_settings(
  153    229   
        &self,
  154    230   
    ) -> &::std::option::Option<crate::types::AutoScalingSettingsDescription> {
         231  +
        /* BuilderGenerator.kt:337 */
  155    232   
        &self.replica_provisioned_write_capacity_auto_scaling_settings
         233  +
        /* BuilderGenerator.kt:336 */
  156    234   
    }
  157         -
    /// <p>The current state of the replica:</p>
         235  +
    /// /* BuilderGenerator.kt:286 */<p>The current state of the replica:</p>
  158    236   
    /// <ul>
  159    237   
    /// <li>
  160    238   
    /// <p><code>CREATING</code> - The replica is being created.</p></li>
  161    239   
    /// <li>
  162    240   
    /// <p><code>UPDATING</code> - The replica is being updated.</p></li>
  163    241   
    /// <li>
  164    242   
    /// <p><code>DELETING</code> - The replica is being deleted.</p></li>
  165    243   
    /// <li>
  166    244   
    /// <p><code>ACTIVE</code> - The replica is ready for use.</p></li>
  167    245   
    /// </ul>
         246  +
    /* BuilderGenerator.kt:291 */
  168    247   
    pub fn replica_status(mut self, input: crate::types::ReplicaStatus) -> Self {
         248  +
        /* BuilderGenerator.kt:292 */
  169    249   
        self.replica_status = ::std::option::Option::Some(input);
         250  +
        /* BuilderGenerator.kt:293 */
  170    251   
        self
         252  +
        /* BuilderGenerator.kt:291 */
  171    253   
    }
  172         -
    /// <p>The current state of the replica:</p>
         254  +
    /// /* BuilderGenerator.kt:312 */<p>The current state of the replica:</p>
  173    255   
    /// <ul>
  174    256   
    /// <li>
  175    257   
    /// <p><code>CREATING</code> - The replica is being created.</p></li>
  176    258   
    /// <li>
  177    259   
    /// <p><code>UPDATING</code> - The replica is being updated.</p></li>
  178    260   
    /// <li>
  179    261   
    /// <p><code>DELETING</code> - The replica is being deleted.</p></li>
  180    262   
    /// <li>
  181    263   
    /// <p><code>ACTIVE</code> - The replica is ready for use.</p></li>
  182    264   
    /// </ul>
         265  +
    /* BuilderGenerator.kt:314 */
  183    266   
    pub fn set_replica_status(mut self, input: ::std::option::Option<crate::types::ReplicaStatus>) -> Self {
         267  +
        /* BuilderGenerator.kt:315 */
  184    268   
        self.replica_status = input;
  185    269   
        self
         270  +
        /* BuilderGenerator.kt:314 */
  186    271   
    }
  187         -
    /// <p>The current state of the replica:</p>
         272  +
    /// /* BuilderGenerator.kt:334 */<p>The current state of the replica:</p>
  188    273   
    /// <ul>
  189    274   
    /// <li>
  190    275   
    /// <p><code>CREATING</code> - The replica is being created.</p></li>
  191    276   
    /// <li>
  192    277   
    /// <p><code>UPDATING</code> - The replica is being updated.</p></li>
  193    278   
    /// <li>
  194    279   
    /// <p><code>DELETING</code> - The replica is being deleted.</p></li>
  195    280   
    /// <li>
  196    281   
    /// <p><code>ACTIVE</code> - The replica is ready for use.</p></li>
  197    282   
    /// </ul>
         283  +
    /* BuilderGenerator.kt:336 */
  198    284   
    pub fn get_replica_status(&self) -> &::std::option::Option<crate::types::ReplicaStatus> {
         285  +
        /* BuilderGenerator.kt:337 */
  199    286   
        &self.replica_status
         287  +
        /* BuilderGenerator.kt:336 */
  200    288   
    }
  201         -
    /// Consumes the builder and constructs a [`ReplicaAutoScalingDescription`](crate::types::ReplicaAutoScalingDescription).
         289  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ReplicaAutoScalingDescription`](crate::types::ReplicaAutoScalingDescription).
         290  +
    /* BuilderGenerator.kt:253 */
  202    291   
    pub fn build(self) -> crate::types::ReplicaAutoScalingDescription {
         292  +
        /* BuilderGenerator.kt:477 */
  203    293   
        crate::types::ReplicaAutoScalingDescription {
  204         -
            region_name: self.region_name,
         294  +
            /* BuilderGenerator.kt:481 */ region_name: self.region_name,
         295  +
            /* BuilderGenerator.kt:481 */
  205    296   
            global_secondary_indexes: self.global_secondary_indexes,
         297  +
            /* BuilderGenerator.kt:481 */
  206    298   
            replica_provisioned_read_capacity_auto_scaling_settings: self.replica_provisioned_read_capacity_auto_scaling_settings,
         299  +
            /* BuilderGenerator.kt:481 */
  207    300   
            replica_provisioned_write_capacity_auto_scaling_settings: self.replica_provisioned_write_capacity_auto_scaling_settings,
         301  +
            /* BuilderGenerator.kt:481 */
  208    302   
            replica_status: self.replica_status,
         303  +
            /* BuilderGenerator.kt:477 */
  209    304   
        }
         305  +
        /* BuilderGenerator.kt:253 */
  210    306   
    }
         307  +
    /* BuilderGenerator.kt:355 */
  211    308   
}

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

@@ -1,1 +120,187 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>Represents the auto scaling settings of a replica that will be modified.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>Represents the auto scaling settings of a replica 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 ReplicaAutoScalingUpdate {
    7         -
    /// <p>The Region where the replica exists.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct ReplicaAutoScalingUpdate {
           9  +
    /// /* StructureGenerator.kt:231 */<p>The Region where the replica exists.</p>
    8     10   
    pub region_name: ::std::string::String,
    9         -
    /// <p>Represents the auto scaling settings of global secondary indexes that will be modified.</p>
          11  +
    /// /* StructureGenerator.kt:231 */<p>Represents the auto scaling settings of global secondary indexes that will be modified.</p>
   10     12   
    pub replica_global_secondary_index_updates: ::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndexAutoScalingUpdate>>,
   11         -
    /// <p>Represents the auto scaling settings to be modified for a global table or global secondary index.</p>
          13  +
    /// /* StructureGenerator.kt:231 */<p>Represents the auto scaling settings to be modified for a global table or global secondary index.</p>
   12     14   
    pub replica_provisioned_read_capacity_auto_scaling_update: ::std::option::Option<crate::types::AutoScalingSettingsUpdate>,
          15  +
    /* StructureGenerator.kt:201 */
   13     16   
}
          17  +
/* StructureGenerator.kt:135 */
   14     18   
impl ReplicaAutoScalingUpdate {
   15         -
    /// <p>The Region where the replica exists.</p>
          19  +
    /// /* StructureGenerator.kt:231 */<p>The Region where the replica exists.</p>
          20  +
    /* StructureGenerator.kt:166 */
   16     21   
    pub fn region_name(&self) -> &str {
          22  +
        /* StructureGenerator.kt:171 */
   17     23   
        use std::ops::Deref;
   18     24   
        self.region_name.deref()
          25  +
        /* StructureGenerator.kt:166 */
   19     26   
    }
   20         -
    /// <p>Represents the auto scaling settings of global secondary indexes that will be modified.</p>
   21         -
    ///
   22         -
    /// 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_updates.is_none()`.
          27  +
    /// /* StructureGenerator.kt:231 */<p>Represents the auto scaling settings of global secondary indexes that will be modified.</p>
          28  +
    /// /* StructureGenerator.kt:162 */
          29  +
    /// /* 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_updates.is_none()`.
          30  +
    /* StructureGenerator.kt:166 */
   23     31   
    pub fn replica_global_secondary_index_updates(&self) -> &[crate::types::ReplicaGlobalSecondaryIndexAutoScalingUpdate] {
   24         -
        self.replica_global_secondary_index_updates.as_deref().unwrap_or_default()
          32  +
        /* StructureGenerator.kt:169 */
          33  +
        self.replica_global_secondary_index_updates
          34  +
            .as_deref()
          35  +
            /* StructureGenerator.kt:175 */
          36  +
            .unwrap_or_default()
          37  +
        /* StructureGenerator.kt:166 */
   25     38   
    }
   26         -
    /// <p>Represents the auto scaling settings to be modified for a global table or global secondary index.</p>
          39  +
    /// /* StructureGenerator.kt:231 */<p>Represents the auto scaling settings to be modified for a global table or global secondary index.</p>
          40  +
    /* StructureGenerator.kt:166 */
   27     41   
    pub fn replica_provisioned_read_capacity_auto_scaling_update(&self) -> ::std::option::Option<&crate::types::AutoScalingSettingsUpdate> {
          42  +
        /* StructureGenerator.kt:170 */
   28     43   
        self.replica_provisioned_read_capacity_auto_scaling_update.as_ref()
          44  +
        /* StructureGenerator.kt:166 */
   29     45   
    }
          46  +
    /* StructureGenerator.kt:135 */
   30     47   
}
          48  +
/* ClientCodegenVisitor.kt:237 */
   31     49   
impl ReplicaAutoScalingUpdate {
   32         -
    /// Creates a new builder-style object to manufacture [`ReplicaAutoScalingUpdate`](crate::types::ReplicaAutoScalingUpdate).
          50  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ReplicaAutoScalingUpdate`](crate::types::ReplicaAutoScalingUpdate).
          51  +
    /* BuilderGenerator.kt:175 */
   33     52   
    pub fn builder() -> crate::types::builders::ReplicaAutoScalingUpdateBuilder {
          53  +
        /* BuilderGenerator.kt:176 */
   34     54   
        crate::types::builders::ReplicaAutoScalingUpdateBuilder::default()
          55  +
        /* BuilderGenerator.kt:175 */
   35     56   
    }
          57  +
    /* ClientCodegenVisitor.kt:237 */
   36     58   
}
   37     59   
   38         -
/// A builder for [`ReplicaAutoScalingUpdate`](crate::types::ReplicaAutoScalingUpdate).
          60  +
/// /* BuilderGenerator.kt:342 */A builder for [`ReplicaAutoScalingUpdate`](crate::types::ReplicaAutoScalingUpdate).
          61  +
/* RustType.kt:516 */
   39     62   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          63  +
/* RustType.kt:516 */
   40     64   
#[non_exhaustive]
          65  +
/* BuilderGenerator.kt:345 */
   41     66   
pub struct ReplicaAutoScalingUpdateBuilder {
   42         -
    pub(crate) region_name: ::std::option::Option<::std::string::String>,
          67  +
    /* BuilderGenerator.kt:275 */ pub(crate) region_name: ::std::option::Option<::std::string::String>,
          68  +
    /* BuilderGenerator.kt:275 */
   43     69   
    pub(crate) replica_global_secondary_index_updates:
   44     70   
        ::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndexAutoScalingUpdate>>,
          71  +
    /* BuilderGenerator.kt:275 */
   45     72   
    pub(crate) replica_provisioned_read_capacity_auto_scaling_update: ::std::option::Option<crate::types::AutoScalingSettingsUpdate>,
          73  +
    /* BuilderGenerator.kt:345 */
   46     74   
}
          75  +
/* BuilderGenerator.kt:355 */
   47     76   
impl ReplicaAutoScalingUpdateBuilder {
   48         -
    /// <p>The Region where the replica exists.</p>
   49         -
    /// This field is required.
          77  +
    /// /* BuilderGenerator.kt:286 */<p>The Region where the replica exists.</p>
          78  +
    /// /* BuilderGenerator.kt:288 */This field is required.
          79  +
    /* BuilderGenerator.kt:291 */
   50     80   
    pub fn region_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          81  +
        /* BuilderGenerator.kt:292 */
   51     82   
        self.region_name = ::std::option::Option::Some(input.into());
          83  +
        /* BuilderGenerator.kt:293 */
   52     84   
        self
          85  +
        /* BuilderGenerator.kt:291 */
   53     86   
    }
   54         -
    /// <p>The Region where the replica exists.</p>
          87  +
    /// /* BuilderGenerator.kt:312 */<p>The Region where the replica exists.</p>
          88  +
    /* BuilderGenerator.kt:314 */
   55     89   
    pub fn set_region_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          90  +
        /* BuilderGenerator.kt:315 */
   56     91   
        self.region_name = input;
   57     92   
        self
          93  +
        /* BuilderGenerator.kt:314 */
   58     94   
    }
   59         -
    /// <p>The Region where the replica exists.</p>
          95  +
    /// /* BuilderGenerator.kt:334 */<p>The Region where the replica exists.</p>
          96  +
    /* BuilderGenerator.kt:336 */
   60     97   
    pub fn get_region_name(&self) -> &::std::option::Option<::std::string::String> {
          98  +
        /* BuilderGenerator.kt:337 */
   61     99   
        &self.region_name
         100  +
        /* BuilderGenerator.kt:336 */
   62    101   
    }
   63         -
    /// Appends an item to `replica_global_secondary_index_updates`.
         102  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `replica_global_secondary_index_updates`.
         103  +
    /* BuilderGenerator.kt:411 */
   64    104   
    ///
   65         -
    /// To override the contents of this collection use [`set_replica_global_secondary_index_updates`](Self::set_replica_global_secondary_index_updates).
         105  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_replica_global_secondary_index_updates`](Self::set_replica_global_secondary_index_updates).
         106  +
    /* BuilderGenerator.kt:413 */
   66    107   
    ///
   67         -
    /// <p>Represents the auto scaling settings of global secondary indexes that will be modified.</p>
         108  +
    /// /* BuilderGenerator.kt:414 */<p>Represents the auto scaling settings of global secondary indexes that will be modified.</p>
         109  +
    /* BuilderGenerator.kt:418 */
   68    110   
    pub fn replica_global_secondary_index_updates(mut self, input: crate::types::ReplicaGlobalSecondaryIndexAutoScalingUpdate) -> Self {
         111  +
        /* BuilderGenerator.kt:419 */
   69    112   
        let mut v = self.replica_global_secondary_index_updates.unwrap_or_default();
   70    113   
        v.push(input);
   71    114   
        self.replica_global_secondary_index_updates = ::std::option::Option::Some(v);
   72    115   
        self
         116  +
        /* BuilderGenerator.kt:418 */
   73    117   
    }
   74         -
    /// <p>Represents the auto scaling settings of global secondary indexes that will be modified.</p>
         118  +
    /// /* BuilderGenerator.kt:312 */<p>Represents the auto scaling settings of global secondary indexes that will be modified.</p>
         119  +
    /* BuilderGenerator.kt:314 */
   75    120   
    pub fn set_replica_global_secondary_index_updates(
   76    121   
        mut self,
   77    122   
        input: ::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndexAutoScalingUpdate>>,
   78    123   
    ) -> Self {
         124  +
        /* BuilderGenerator.kt:315 */
   79    125   
        self.replica_global_secondary_index_updates = input;
   80    126   
        self
         127  +
        /* BuilderGenerator.kt:314 */
   81    128   
    }
   82         -
    /// <p>Represents the auto scaling settings of global secondary indexes that will be modified.</p>
         129  +
    /// /* BuilderGenerator.kt:334 */<p>Represents the auto scaling settings of global secondary indexes that will be modified.</p>
         130  +
    /* BuilderGenerator.kt:336 */
   83    131   
    pub fn get_replica_global_secondary_index_updates(
   84    132   
        &self,
   85    133   
    ) -> &::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndexAutoScalingUpdate>> {
         134  +
        /* BuilderGenerator.kt:337 */
   86    135   
        &self.replica_global_secondary_index_updates
         136  +
        /* BuilderGenerator.kt:336 */
   87    137   
    }
   88         -
    /// <p>Represents the auto scaling settings to be modified for a global table or global secondary index.</p>
         138  +
    /// /* BuilderGenerator.kt:286 */<p>Represents the auto scaling settings to be modified for a global table or global secondary index.</p>
         139  +
    /* BuilderGenerator.kt:291 */
   89    140   
    pub fn replica_provisioned_read_capacity_auto_scaling_update(mut self, input: crate::types::AutoScalingSettingsUpdate) -> Self {
         141  +
        /* BuilderGenerator.kt:292 */
   90    142   
        self.replica_provisioned_read_capacity_auto_scaling_update = ::std::option::Option::Some(input);
         143  +
        /* BuilderGenerator.kt:293 */
   91    144   
        self
         145  +
        /* BuilderGenerator.kt:291 */
   92    146   
    }
   93         -
    /// <p>Represents the auto scaling settings to be modified for a global table or global secondary index.</p>
         147  +
    /// /* BuilderGenerator.kt:312 */<p>Represents the auto scaling settings to be modified for a global table or global secondary index.</p>
         148  +
    /* BuilderGenerator.kt:314 */
   94    149   
    pub fn set_replica_provisioned_read_capacity_auto_scaling_update(
   95    150   
        mut self,
   96    151   
        input: ::std::option::Option<crate::types::AutoScalingSettingsUpdate>,
   97    152   
    ) -> Self {
         153  +
        /* BuilderGenerator.kt:315 */
   98    154   
        self.replica_provisioned_read_capacity_auto_scaling_update = input;
   99    155   
        self
         156  +
        /* BuilderGenerator.kt:314 */
  100    157   
    }
  101         -
    /// <p>Represents the auto scaling settings to be modified for a global table or global secondary index.</p>
         158  +
    /// /* BuilderGenerator.kt:334 */<p>Represents the auto scaling settings to be modified for a global table or global secondary index.</p>
         159  +
    /* BuilderGenerator.kt:336 */
  102    160   
    pub fn get_replica_provisioned_read_capacity_auto_scaling_update(&self) -> &::std::option::Option<crate::types::AutoScalingSettingsUpdate> {
         161  +
        /* BuilderGenerator.kt:337 */
  103    162   
        &self.replica_provisioned_read_capacity_auto_scaling_update
         163  +
        /* BuilderGenerator.kt:336 */
  104    164   
    }
  105         -
    /// Consumes the builder and constructs a [`ReplicaAutoScalingUpdate`](crate::types::ReplicaAutoScalingUpdate).
  106         -
    /// This method will fail if any of the following fields are not set:
  107         -
    /// - [`region_name`](crate::types::builders::ReplicaAutoScalingUpdateBuilder::region_name)
         165  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ReplicaAutoScalingUpdate`](crate::types::ReplicaAutoScalingUpdate).
         166  +
    /// /* BuilderGenerator.kt:243 */This method will fail if any of the following fields are not set:
         167  +
    /// /* BuilderGenerator.kt:246 */- [`region_name`](crate::types::builders::ReplicaAutoScalingUpdateBuilder::region_name)
         168  +
    /* BuilderGenerator.kt:253 */
  108    169   
    pub fn build(self) -> ::std::result::Result<crate::types::ReplicaAutoScalingUpdate, ::aws_smithy_types::error::operation::BuildError> {
  109         -
        ::std::result::Result::Ok(crate::types::ReplicaAutoScalingUpdate {
  110         -
            region_name: self.region_name.ok_or_else(|| {
  111         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
  112         -
                    "region_name",
  113         -
                    "region_name was not specified but it is required when building ReplicaAutoScalingUpdate",
  114         -
                )
  115         -
            })?,
  116         -
            replica_global_secondary_index_updates: self.replica_global_secondary_index_updates,
  117         -
            replica_provisioned_read_capacity_auto_scaling_update: self.replica_provisioned_read_capacity_auto_scaling_update,
  118         -
        })
         170  +
        /* BuilderGenerator.kt:254 */
         171  +
        ::std::result::Result::Ok(
         172  +
            /* BuilderGenerator.kt:477 */crate::types::ReplicaAutoScalingUpdate {
         173  +
                /* BuilderGenerator.kt:481 */region_name: self.region_name
         174  +
                    /* BuilderGenerator.kt:494 */.ok_or_else(||
         175  +
                        /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("region_name", "region_name was not specified but it is required when building ReplicaAutoScalingUpdate")
         176  +
                    /* BuilderGenerator.kt:494 */)?
         177  +
                ,
         178  +
                /* BuilderGenerator.kt:481 */replica_global_secondary_index_updates: self.replica_global_secondary_index_updates
         179  +
                ,
         180  +
                /* BuilderGenerator.kt:481 */replica_provisioned_read_capacity_auto_scaling_update: self.replica_provisioned_read_capacity_auto_scaling_update
         181  +
                ,
         182  +
            /* BuilderGenerator.kt:477 */}
         183  +
        /* BuilderGenerator.kt:254 */)
         184  +
        /* BuilderGenerator.kt:253 */
  119    185   
    }
         186  +
    /* BuilderGenerator.kt:355 */
  120    187   
}

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

@@ -1,1 +305,443 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>Contains the details of the replica.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>Contains the details of the 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 ReplicaDescription {
    7         -
    /// <p>The name of the Region.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct ReplicaDescription {
           9  +
    /// /* StructureGenerator.kt:231 */<p>The name of the Region.</p>
    8     10   
    pub region_name: ::std::option::Option<::std::string::String>,
    9         -
    /// <p>The current state of the replica:</p>
          11  +
    /// /* StructureGenerator.kt:231 */<p>The current state of the replica:</p>
   10     12   
    /// <ul>
   11     13   
    /// <li>
   12     14   
    /// <p><code>CREATING</code> - The replica is being created.</p></li>
   13     15   
    /// <li>
   14     16   
    /// <p><code>UPDATING</code> - The replica is being updated.</p></li>
   15     17   
    /// <li>
   16     18   
    /// <p><code>DELETING</code> - The replica is being deleted.</p></li>
   17     19   
    /// <li>
   18     20   
    /// <p><code>ACTIVE</code> - The replica is ready for use.</p></li>
   19     21   
    /// <li>
   20     22   
    /// <p><code>REGION_DISABLED</code> - The replica is inaccessible because the AWS Region has been disabled.</p><note>
   21     23   
    /// <p>If the AWS Region remains inaccessible for more than 20 hours, DynamoDB will remove this replica from the replication group. The replica will not be deleted and replication will stop from and to this region.</p>
   22     24   
    /// </note></li>
   23     25   
    /// <li>
   24     26   
    /// <p><code>INACCESSIBLE_ENCRYPTION_CREDENTIALS </code> - The AWS KMS key used to encrypt the table is inaccessible.</p><note>
   25     27   
    /// <p>If the AWS KMS key remains inaccessible for more than 20 hours, DynamoDB will remove this replica from the replication group. The replica will not be deleted and replication will stop from and to this region.</p>
   26     28   
    /// </note></li>
   27     29   
    /// </ul>
   28     30   
    pub replica_status: ::std::option::Option<crate::types::ReplicaStatus>,
   29         -
    /// <p>Detailed information about the replica status.</p>
          31  +
    /// /* StructureGenerator.kt:231 */<p>Detailed information about the replica status.</p>
   30     32   
    pub replica_status_description: ::std::option::Option<::std::string::String>,
   31         -
    /// <p>Specifies the progress of a Create, Update, or Delete action on the replica as a percentage.</p>
          33  +
    /// /* StructureGenerator.kt:231 */<p>Specifies the progress of a Create, Update, or Delete action on the replica as a percentage.</p>
   32     34   
    pub replica_status_percent_progress: ::std::option::Option<::std::string::String>,
   33         -
    /// <p>The AWS KMS customer master key (CMK) of the replica that will be used for AWS KMS encryption.</p>
          35  +
    /// /* StructureGenerator.kt:231 */<p>The AWS KMS customer master key (CMK) of the replica that will be used for AWS KMS encryption.</p>
   34     36   
    pub kms_master_key_id: ::std::option::Option<::std::string::String>,
   35         -
    /// <p>Replica-specific provisioned throughput. If not described, uses the source table's provisioned throughput settings.</p>
          37  +
    /// /* StructureGenerator.kt:231 */<p>Replica-specific provisioned throughput. If not described, uses the source table's provisioned throughput settings.</p>
   36     38   
    pub provisioned_throughput_override: ::std::option::Option<crate::types::ProvisionedThroughputOverride>,
   37         -
    /// <p>Replica-specific global secondary index settings.</p>
          39  +
    /// /* StructureGenerator.kt:231 */<p>Replica-specific global secondary index settings.</p>
   38     40   
    pub global_secondary_indexes: ::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndexDescription>>,
   39         -
    /// <p>The time at which the replica was first detected as inaccessible. To determine cause of inaccessibility check the <code>ReplicaStatus</code> property.</p>
          41  +
    /// /* StructureGenerator.kt:231 */<p>The time at which the replica was first detected as inaccessible. To determine cause of inaccessibility check the <code>ReplicaStatus</code> property.</p>
   40     42   
    pub replica_inaccessible_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
          43  +
    /* StructureGenerator.kt:201 */
   41     44   
}
          45  +
/* StructureGenerator.kt:135 */
   42     46   
impl ReplicaDescription {
   43         -
    /// <p>The name of the Region.</p>
          47  +
    /// /* StructureGenerator.kt:231 */<p>The name of the Region.</p>
          48  +
    /* StructureGenerator.kt:166 */
   44     49   
    pub fn region_name(&self) -> ::std::option::Option<&str> {
          50  +
        /* StructureGenerator.kt:169 */
   45     51   
        self.region_name.as_deref()
          52  +
        /* StructureGenerator.kt:166 */
   46     53   
    }
   47         -
    /// <p>The current state of the replica:</p>
          54  +
    /// /* StructureGenerator.kt:231 */<p>The current state of the replica:</p>
   48     55   
    /// <ul>
   49     56   
    /// <li>
   50     57   
    /// <p><code>CREATING</code> - The replica is being created.</p></li>
   51     58   
    /// <li>
   52     59   
    /// <p><code>UPDATING</code> - The replica is being updated.</p></li>
   53     60   
    /// <li>
   54     61   
    /// <p><code>DELETING</code> - The replica is being deleted.</p></li>
   55     62   
    /// <li>
   56     63   
    /// <p><code>ACTIVE</code> - The replica is ready for use.</p></li>
   57     64   
    /// <li>
   58     65   
    /// <p><code>REGION_DISABLED</code> - The replica is inaccessible because the AWS Region has been disabled.</p><note>
   59     66   
    /// <p>If the AWS Region remains inaccessible for more than 20 hours, DynamoDB will remove this replica from the replication group. The replica will not be deleted and replication will stop from and to this region.</p>
   60     67   
    /// </note></li>
   61     68   
    /// <li>
   62     69   
    /// <p><code>INACCESSIBLE_ENCRYPTION_CREDENTIALS </code> - The AWS KMS key used to encrypt the table is inaccessible.</p><note>
   63     70   
    /// <p>If the AWS KMS key remains inaccessible for more than 20 hours, DynamoDB will remove this replica from the replication group. The replica will not be deleted and replication will stop from and to this region.</p>
   64     71   
    /// </note></li>
   65     72   
    /// </ul>
          73  +
    /* StructureGenerator.kt:166 */
   66     74   
    pub fn replica_status(&self) -> ::std::option::Option<&crate::types::ReplicaStatus> {
          75  +
        /* StructureGenerator.kt:170 */
   67     76   
        self.replica_status.as_ref()
          77  +
        /* StructureGenerator.kt:166 */
   68     78   
    }
   69         -
    /// <p>Detailed information about the replica status.</p>
          79  +
    /// /* StructureGenerator.kt:231 */<p>Detailed information about the replica status.</p>
          80  +
    /* StructureGenerator.kt:166 */
   70     81   
    pub fn replica_status_description(&self) -> ::std::option::Option<&str> {
          82  +
        /* StructureGenerator.kt:169 */
   71     83   
        self.replica_status_description.as_deref()
          84  +
        /* StructureGenerator.kt:166 */
   72     85   
    }
   73         -
    /// <p>Specifies the progress of a Create, Update, or Delete action on the replica as a percentage.</p>
          86  +
    /// /* StructureGenerator.kt:231 */<p>Specifies the progress of a Create, Update, or Delete action on the replica as a percentage.</p>
          87  +
    /* StructureGenerator.kt:166 */
   74     88   
    pub fn replica_status_percent_progress(&self) -> ::std::option::Option<&str> {
          89  +
        /* StructureGenerator.kt:169 */
   75     90   
        self.replica_status_percent_progress.as_deref()
          91  +
        /* StructureGenerator.kt:166 */
   76     92   
    }
   77         -
    /// <p>The AWS KMS customer master key (CMK) of the replica that will be used for AWS KMS encryption.</p>
          93  +
    /// /* StructureGenerator.kt:231 */<p>The AWS KMS customer master key (CMK) of the replica that will be used for AWS KMS encryption.</p>
          94  +
    /* StructureGenerator.kt:166 */
   78     95   
    pub fn kms_master_key_id(&self) -> ::std::option::Option<&str> {
          96  +
        /* StructureGenerator.kt:169 */
   79     97   
        self.kms_master_key_id.as_deref()
          98  +
        /* StructureGenerator.kt:166 */
   80     99   
    }
   81         -
    /// <p>Replica-specific provisioned throughput. If not described, uses the source table's provisioned throughput settings.</p>
         100  +
    /// /* StructureGenerator.kt:231 */<p>Replica-specific provisioned throughput. If not described, uses the source table's provisioned throughput settings.</p>
         101  +
    /* StructureGenerator.kt:166 */
   82    102   
    pub fn provisioned_throughput_override(&self) -> ::std::option::Option<&crate::types::ProvisionedThroughputOverride> {
         103  +
        /* StructureGenerator.kt:170 */
   83    104   
        self.provisioned_throughput_override.as_ref()
         105  +
        /* StructureGenerator.kt:166 */
   84    106   
    }
   85         -
    /// <p>Replica-specific global secondary index settings.</p>
   86         -
    ///
   87         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.global_secondary_indexes.is_none()`.
         107  +
    /// /* StructureGenerator.kt:231 */<p>Replica-specific global secondary index settings.</p>
         108  +
    /// /* StructureGenerator.kt:162 */
         109  +
    /// /* 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 `.global_secondary_indexes.is_none()`.
         110  +
    /* StructureGenerator.kt:166 */
   88    111   
    pub fn global_secondary_indexes(&self) -> &[crate::types::ReplicaGlobalSecondaryIndexDescription] {
   89         -
        self.global_secondary_indexes.as_deref().unwrap_or_default()
   90         -
    }
   91         -
    /// <p>The time at which the replica was first detected as inaccessible. To determine cause of inaccessibility check the <code>ReplicaStatus</code> property.</p>
         112  +
        /* StructureGenerator.kt:169 */
         113  +
        self.global_secondary_indexes
         114  +
            .as_deref()
         115  +
            /* StructureGenerator.kt:175 */
         116  +
            .unwrap_or_default()
         117  +
        /* StructureGenerator.kt:166 */
         118  +
    }
         119  +
    /// /* StructureGenerator.kt:231 */<p>The time at which the replica was first detected as inaccessible. To determine cause of inaccessibility check the <code>ReplicaStatus</code> property.</p>
         120  +
    /* StructureGenerator.kt:166 */
   92    121   
    pub fn replica_inaccessible_date_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
         122  +
        /* StructureGenerator.kt:170 */
   93    123   
        self.replica_inaccessible_date_time.as_ref()
         124  +
        /* StructureGenerator.kt:166 */
   94    125   
    }
         126  +
    /* StructureGenerator.kt:135 */
   95    127   
}
         128  +
/* ClientCodegenVisitor.kt:237 */
   96    129   
impl ReplicaDescription {
   97         -
    /// Creates a new builder-style object to manufacture [`ReplicaDescription`](crate::types::ReplicaDescription).
         130  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ReplicaDescription`](crate::types::ReplicaDescription).
         131  +
    /* BuilderGenerator.kt:175 */
   98    132   
    pub fn builder() -> crate::types::builders::ReplicaDescriptionBuilder {
         133  +
        /* BuilderGenerator.kt:176 */
   99    134   
        crate::types::builders::ReplicaDescriptionBuilder::default()
         135  +
        /* BuilderGenerator.kt:175 */
  100    136   
    }
         137  +
    /* ClientCodegenVisitor.kt:237 */
  101    138   
}
  102    139   
  103         -
/// A builder for [`ReplicaDescription`](crate::types::ReplicaDescription).
         140  +
/// /* BuilderGenerator.kt:342 */A builder for [`ReplicaDescription`](crate::types::ReplicaDescription).
         141  +
/* RustType.kt:516 */
  104    142   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         143  +
/* RustType.kt:516 */
  105    144   
#[non_exhaustive]
         145  +
/* BuilderGenerator.kt:345 */
  106    146   
pub struct ReplicaDescriptionBuilder {
  107         -
    pub(crate) region_name: ::std::option::Option<::std::string::String>,
  108         -
    pub(crate) replica_status: ::std::option::Option<crate::types::ReplicaStatus>,
  109         -
    pub(crate) replica_status_description: ::std::option::Option<::std::string::String>,
  110         -
    pub(crate) replica_status_percent_progress: ::std::option::Option<::std::string::String>,
  111         -
    pub(crate) kms_master_key_id: ::std::option::Option<::std::string::String>,
         147  +
    /* BuilderGenerator.kt:275 */ pub(crate) region_name: ::std::option::Option<::std::string::String>,
         148  +
    /* BuilderGenerator.kt:275 */ pub(crate) replica_status: ::std::option::Option<crate::types::ReplicaStatus>,
         149  +
    /* BuilderGenerator.kt:275 */ pub(crate) replica_status_description: ::std::option::Option<::std::string::String>,
         150  +
    /* BuilderGenerator.kt:275 */ pub(crate) replica_status_percent_progress: ::std::option::Option<::std::string::String>,
         151  +
    /* BuilderGenerator.kt:275 */ pub(crate) kms_master_key_id: ::std::option::Option<::std::string::String>,
         152  +
    /* BuilderGenerator.kt:275 */
  112    153   
    pub(crate) provisioned_throughput_override: ::std::option::Option<crate::types::ProvisionedThroughputOverride>,
         154  +
    /* BuilderGenerator.kt:275 */
  113    155   
    pub(crate) global_secondary_indexes: ::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndexDescription>>,
         156  +
    /* BuilderGenerator.kt:275 */
  114    157   
    pub(crate) replica_inaccessible_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
         158  +
    /* BuilderGenerator.kt:345 */
  115    159   
}
         160  +
/* BuilderGenerator.kt:355 */
  116    161   
impl ReplicaDescriptionBuilder {
  117         -
    /// <p>The name of the Region.</p>
         162  +
    /// /* BuilderGenerator.kt:286 */<p>The name of the Region.</p>
         163  +
    /* BuilderGenerator.kt:291 */
  118    164   
    pub fn region_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         165  +
        /* BuilderGenerator.kt:292 */
  119    166   
        self.region_name = ::std::option::Option::Some(input.into());
         167  +
        /* BuilderGenerator.kt:293 */
  120    168   
        self
         169  +
        /* BuilderGenerator.kt:291 */
  121    170   
    }
  122         -
    /// <p>The name of the Region.</p>
         171  +
    /// /* BuilderGenerator.kt:312 */<p>The name of the Region.</p>
         172  +
    /* BuilderGenerator.kt:314 */
  123    173   
    pub fn set_region_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         174  +
        /* BuilderGenerator.kt:315 */
  124    175   
        self.region_name = input;
  125    176   
        self
         177  +
        /* BuilderGenerator.kt:314 */
  126    178   
    }
  127         -
    /// <p>The name of the Region.</p>
         179  +
    /// /* BuilderGenerator.kt:334 */<p>The name of the Region.</p>
         180  +
    /* BuilderGenerator.kt:336 */
  128    181   
    pub fn get_region_name(&self) -> &::std::option::Option<::std::string::String> {
         182  +
        /* BuilderGenerator.kt:337 */
  129    183   
        &self.region_name
         184  +
        /* BuilderGenerator.kt:336 */
  130    185   
    }
  131         -
    /// <p>The current state of the replica:</p>
         186  +
    /// /* BuilderGenerator.kt:286 */<p>The current state of the replica:</p>
  132    187   
    /// <ul>
  133    188   
    /// <li>
  134    189   
    /// <p><code>CREATING</code> - The replica is being created.</p></li>
  135    190   
    /// <li>
  136    191   
    /// <p><code>UPDATING</code> - The replica is being updated.</p></li>
  137    192   
    /// <li>
  138    193   
    /// <p><code>DELETING</code> - The replica is being deleted.</p></li>
  139    194   
    /// <li>
  140    195   
    /// <p><code>ACTIVE</code> - The replica is ready for use.</p></li>
  141    196   
    /// <li>
  142    197   
    /// <p><code>REGION_DISABLED</code> - The replica is inaccessible because the AWS Region has been disabled.</p><note>
  143    198   
    /// <p>If the AWS Region remains inaccessible for more than 20 hours, DynamoDB will remove this replica from the replication group. The replica will not be deleted and replication will stop from and to this region.</p>
  144    199   
    /// </note></li>
  145    200   
    /// <li>
  146    201   
    /// <p><code>INACCESSIBLE_ENCRYPTION_CREDENTIALS </code> - The AWS KMS key used to encrypt the table is inaccessible.</p><note>
  147    202   
    /// <p>If the AWS KMS key remains inaccessible for more than 20 hours, DynamoDB will remove this replica from the replication group. The replica will not be deleted and replication will stop from and to this region.</p>
  148    203   
    /// </note></li>
  149    204   
    /// </ul>
         205  +
    /* BuilderGenerator.kt:291 */
  150    206   
    pub fn replica_status(mut self, input: crate::types::ReplicaStatus) -> Self {
         207  +
        /* BuilderGenerator.kt:292 */
  151    208   
        self.replica_status = ::std::option::Option::Some(input);
         209  +
        /* BuilderGenerator.kt:293 */
  152    210   
        self
         211  +
        /* BuilderGenerator.kt:291 */
  153    212   
    }
  154         -
    /// <p>The current state of the replica:</p>
         213  +
    /// /* BuilderGenerator.kt:312 */<p>The current state of the replica:</p>
  155    214   
    /// <ul>
  156    215   
    /// <li>
  157    216   
    /// <p><code>CREATING</code> - The replica is being created.</p></li>
  158    217   
    /// <li>
  159    218   
    /// <p><code>UPDATING</code> - The replica is being updated.</p></li>
  160    219   
    /// <li>
  161    220   
    /// <p><code>DELETING</code> - The replica is being deleted.</p></li>
  162    221   
    /// <li>
  163    222   
    /// <p><code>ACTIVE</code> - The replica is ready for use.</p></li>
  164    223   
    /// <li>
  165    224   
    /// <p><code>REGION_DISABLED</code> - The replica is inaccessible because the AWS Region has been disabled.</p><note>
  166    225   
    /// <p>If the AWS Region remains inaccessible for more than 20 hours, DynamoDB will remove this replica from the replication group. The replica will not be deleted and replication will stop from and to this region.</p>
  167    226   
    /// </note></li>
  168    227   
    /// <li>
  169    228   
    /// <p><code>INACCESSIBLE_ENCRYPTION_CREDENTIALS </code> - The AWS KMS key used to encrypt the table is inaccessible.</p><note>
  170    229   
    /// <p>If the AWS KMS key remains inaccessible for more than 20 hours, DynamoDB will remove this replica from the replication group. The replica will not be deleted and replication will stop from and to this region.</p>
  171    230   
    /// </note></li>
  172    231   
    /// </ul>
         232  +
    /* BuilderGenerator.kt:314 */
  173    233   
    pub fn set_replica_status(mut self, input: ::std::option::Option<crate::types::ReplicaStatus>) -> Self {
         234  +
        /* BuilderGenerator.kt:315 */
  174    235   
        self.replica_status = input;
  175    236   
        self
         237  +
        /* BuilderGenerator.kt:314 */
  176    238   
    }
  177         -
    /// <p>The current state of the replica:</p>
         239  +
    /// /* BuilderGenerator.kt:334 */<p>The current state of the replica:</p>
  178    240   
    /// <ul>
  179    241   
    /// <li>
  180    242   
    /// <p><code>CREATING</code> - The replica is being created.</p></li>
  181    243   
    /// <li>
  182    244   
    /// <p><code>UPDATING</code> - The replica is being updated.</p></li>
  183    245   
    /// <li>
  184    246   
    /// <p><code>DELETING</code> - The replica is being deleted.</p></li>
  185    247   
    /// <li>
  186    248   
    /// <p><code>ACTIVE</code> - The replica is ready for use.</p></li>
  187    249   
    /// <li>
  188    250   
    /// <p><code>REGION_DISABLED</code> - The replica is inaccessible because the AWS Region has been disabled.</p><note>
  189    251   
    /// <p>If the AWS Region remains inaccessible for more than 20 hours, DynamoDB will remove this replica from the replication group. The replica will not be deleted and replication will stop from and to this region.</p>
  190    252   
    /// </note></li>
  191    253   
    /// <li>
  192    254   
    /// <p><code>INACCESSIBLE_ENCRYPTION_CREDENTIALS </code> - The AWS KMS key used to encrypt the table is inaccessible.</p><note>
  193    255   
    /// <p>If the AWS KMS key remains inaccessible for more than 20 hours, DynamoDB will remove this replica from the replication group. The replica will not be deleted and replication will stop from and to this region.</p>
  194    256   
    /// </note></li>
  195    257   
    /// </ul>
         258  +
    /* BuilderGenerator.kt:336 */
  196    259   
    pub fn get_replica_status(&self) -> &::std::option::Option<crate::types::ReplicaStatus> {
         260  +
        /* BuilderGenerator.kt:337 */
  197    261   
        &self.replica_status
         262  +
        /* BuilderGenerator.kt:336 */
  198    263   
    }
  199         -
    /// <p>Detailed information about the replica status.</p>
         264  +
    /// /* BuilderGenerator.kt:286 */<p>Detailed information about the replica status.</p>
         265  +
    /* BuilderGenerator.kt:291 */
  200    266   
    pub fn replica_status_description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         267  +
        /* BuilderGenerator.kt:292 */
  201    268   
        self.replica_status_description = ::std::option::Option::Some(input.into());
         269  +
        /* BuilderGenerator.kt:293 */
  202    270   
        self
         271  +
        /* BuilderGenerator.kt:291 */
  203    272   
    }
  204         -
    /// <p>Detailed information about the replica status.</p>
         273  +
    /// /* BuilderGenerator.kt:312 */<p>Detailed information about the replica status.</p>
         274  +
    /* BuilderGenerator.kt:314 */
  205    275   
    pub fn set_replica_status_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         276  +
        /* BuilderGenerator.kt:315 */
  206    277   
        self.replica_status_description = input;
  207    278   
        self
         279  +
        /* BuilderGenerator.kt:314 */
  208    280   
    }
  209         -
    /// <p>Detailed information about the replica status.</p>
         281  +
    /// /* BuilderGenerator.kt:334 */<p>Detailed information about the replica status.</p>
         282  +
    /* BuilderGenerator.kt:336 */
  210    283   
    pub fn get_replica_status_description(&self) -> &::std::option::Option<::std::string::String> {
         284  +
        /* BuilderGenerator.kt:337 */
  211    285   
        &self.replica_status_description
         286  +
        /* BuilderGenerator.kt:336 */
  212    287   
    }
  213         -
    /// <p>Specifies the progress of a Create, Update, or Delete action on the replica as a percentage.</p>
         288  +
    /// /* BuilderGenerator.kt:286 */<p>Specifies the progress of a Create, Update, or Delete action on the replica as a percentage.</p>
         289  +
    /* BuilderGenerator.kt:291 */
  214    290   
    pub fn replica_status_percent_progress(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         291  +
        /* BuilderGenerator.kt:292 */
  215    292   
        self.replica_status_percent_progress = ::std::option::Option::Some(input.into());
         293  +
        /* BuilderGenerator.kt:293 */
  216    294   
        self
         295  +
        /* BuilderGenerator.kt:291 */
  217    296   
    }
  218         -
    /// <p>Specifies the progress of a Create, Update, or Delete action on the replica as a percentage.</p>
         297  +
    /// /* BuilderGenerator.kt:312 */<p>Specifies the progress of a Create, Update, or Delete action on the replica as a percentage.</p>
         298  +
    /* BuilderGenerator.kt:314 */
  219    299   
    pub fn set_replica_status_percent_progress(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         300  +
        /* BuilderGenerator.kt:315 */
  220    301   
        self.replica_status_percent_progress = input;
  221    302   
        self
         303  +
        /* BuilderGenerator.kt:314 */
  222    304   
    }
  223         -
    /// <p>Specifies the progress of a Create, Update, or Delete action on the replica as a percentage.</p>
         305  +
    /// /* BuilderGenerator.kt:334 */<p>Specifies the progress of a Create, Update, or Delete action on the replica as a percentage.</p>
         306  +
    /* BuilderGenerator.kt:336 */
  224    307   
    pub fn get_replica_status_percent_progress(&self) -> &::std::option::Option<::std::string::String> {
         308  +
        /* BuilderGenerator.kt:337 */
  225    309   
        &self.replica_status_percent_progress
         310  +
        /* BuilderGenerator.kt:336 */
  226    311   
    }
  227         -
    /// <p>The AWS KMS customer master key (CMK) of the replica that will be used for AWS KMS encryption.</p>
         312  +
    /// /* BuilderGenerator.kt:286 */<p>The AWS KMS customer master key (CMK) of the replica that will be used for AWS KMS encryption.</p>
         313  +
    /* BuilderGenerator.kt:291 */
  228    314   
    pub fn kms_master_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         315  +
        /* BuilderGenerator.kt:292 */
  229    316   
        self.kms_master_key_id = ::std::option::Option::Some(input.into());
         317  +
        /* BuilderGenerator.kt:293 */
  230    318   
        self
         319  +
        /* BuilderGenerator.kt:291 */
  231    320   
    }
  232         -
    /// <p>The AWS KMS customer master key (CMK) of the replica that will be used for AWS KMS encryption.</p>
         321  +
    /// /* BuilderGenerator.kt:312 */<p>The AWS KMS customer master key (CMK) of the replica that will be used for AWS KMS encryption.</p>
         322  +
    /* BuilderGenerator.kt:314 */
  233    323   
    pub fn set_kms_master_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         324  +
        /* BuilderGenerator.kt:315 */
  234    325   
        self.kms_master_key_id = input;
  235    326   
        self
         327  +
        /* BuilderGenerator.kt:314 */
  236    328   
    }
  237         -
    /// <p>The AWS KMS customer master key (CMK) of the replica that will be used for AWS KMS encryption.</p>
         329  +
    /// /* BuilderGenerator.kt:334 */<p>The AWS KMS customer master key (CMK) of the replica that will be used for AWS KMS encryption.</p>
         330  +
    /* BuilderGenerator.kt:336 */
  238    331   
    pub fn get_kms_master_key_id(&self) -> &::std::option::Option<::std::string::String> {
         332  +
        /* BuilderGenerator.kt:337 */
  239    333   
        &self.kms_master_key_id
         334  +
        /* BuilderGenerator.kt:336 */
  240    335   
    }
  241         -
    /// <p>Replica-specific provisioned throughput. If not described, uses the source table's provisioned throughput settings.</p>
         336  +
    /// /* BuilderGenerator.kt:286 */<p>Replica-specific provisioned throughput. If not described, uses the source table's provisioned throughput settings.</p>
         337  +
    /* BuilderGenerator.kt:291 */
  242    338   
    pub fn provisioned_throughput_override(mut self, input: crate::types::ProvisionedThroughputOverride) -> Self {
         339  +
        /* BuilderGenerator.kt:292 */
  243    340   
        self.provisioned_throughput_override = ::std::option::Option::Some(input);
         341  +
        /* BuilderGenerator.kt:293 */
  244    342   
        self
         343  +
        /* BuilderGenerator.kt:291 */
  245    344   
    }
  246         -
    /// <p>Replica-specific provisioned throughput. If not described, uses the source table's provisioned throughput settings.</p>
         345  +
    /// /* BuilderGenerator.kt:312 */<p>Replica-specific provisioned throughput. If not described, uses the source table's provisioned throughput settings.</p>
         346  +
    /* BuilderGenerator.kt:314 */
  247    347   
    pub fn set_provisioned_throughput_override(mut self, input: ::std::option::Option<crate::types::ProvisionedThroughputOverride>) -> Self {
         348  +
        /* BuilderGenerator.kt:315 */
  248    349   
        self.provisioned_throughput_override = input;
  249    350   
        self
         351  +
        /* BuilderGenerator.kt:314 */
  250    352   
    }
  251         -
    /// <p>Replica-specific provisioned throughput. If not described, uses the source table's provisioned throughput settings.</p>
         353  +
    /// /* BuilderGenerator.kt:334 */<p>Replica-specific provisioned throughput. If not described, uses the source table's provisioned throughput settings.</p>
         354  +
    /* BuilderGenerator.kt:336 */
  252    355   
    pub fn get_provisioned_throughput_override(&self) -> &::std::option::Option<crate::types::ProvisionedThroughputOverride> {
         356  +
        /* BuilderGenerator.kt:337 */
  253    357   
        &self.provisioned_throughput_override
         358  +
        /* BuilderGenerator.kt:336 */
  254    359   
    }
  255         -
    /// Appends an item to `global_secondary_indexes`.
         360  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `global_secondary_indexes`.
         361  +
    /* BuilderGenerator.kt:411 */
  256    362   
    ///
  257         -
    /// To override the contents of this collection use [`set_global_secondary_indexes`](Self::set_global_secondary_indexes).
         363  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_global_secondary_indexes`](Self::set_global_secondary_indexes).
         364  +
    /* BuilderGenerator.kt:413 */
  258    365   
    ///
  259         -
    /// <p>Replica-specific global secondary index settings.</p>
         366  +
    /// /* BuilderGenerator.kt:414 */<p>Replica-specific global secondary index settings.</p>
         367  +
    /* BuilderGenerator.kt:418 */
  260    368   
    pub fn global_secondary_indexes(mut self, input: crate::types::ReplicaGlobalSecondaryIndexDescription) -> Self {
         369  +
        /* BuilderGenerator.kt:419 */
  261    370   
        let mut v = self.global_secondary_indexes.unwrap_or_default();
  262    371   
        v.push(input);
  263    372   
        self.global_secondary_indexes = ::std::option::Option::Some(v);
  264    373   
        self
         374  +
        /* BuilderGenerator.kt:418 */
  265    375   
    }
  266         -
    /// <p>Replica-specific global secondary index settings.</p>
         376  +
    /// /* BuilderGenerator.kt:312 */<p>Replica-specific global secondary index settings.</p>
         377  +
    /* BuilderGenerator.kt:314 */
  267    378   
    pub fn set_global_secondary_indexes(
  268    379   
        mut self,
  269    380   
        input: ::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndexDescription>>,
  270    381   
    ) -> Self {
         382  +
        /* BuilderGenerator.kt:315 */
  271    383   
        self.global_secondary_indexes = input;
  272    384   
        self
         385  +
        /* BuilderGenerator.kt:314 */
  273    386   
    }
  274         -
    /// <p>Replica-specific global secondary index settings.</p>
         387  +
    /// /* BuilderGenerator.kt:334 */<p>Replica-specific global secondary index settings.</p>
         388  +
    /* BuilderGenerator.kt:336 */
  275    389   
    pub fn get_global_secondary_indexes(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndexDescription>> {
         390  +
        /* BuilderGenerator.kt:337 */
  276    391   
        &self.global_secondary_indexes
         392  +
        /* BuilderGenerator.kt:336 */
  277    393   
    }
  278         -
    /// <p>The time at which the replica was first detected as inaccessible. To determine cause of inaccessibility check the <code>ReplicaStatus</code> property.</p>
         394  +
    /// /* BuilderGenerator.kt:286 */<p>The time at which the replica was first detected as inaccessible. To determine cause of inaccessibility check the <code>ReplicaStatus</code> property.</p>
         395  +
    /* BuilderGenerator.kt:291 */
  279    396   
    pub fn replica_inaccessible_date_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
         397  +
        /* BuilderGenerator.kt:292 */
  280    398   
        self.replica_inaccessible_date_time = ::std::option::Option::Some(input);
         399  +
        /* BuilderGenerator.kt:293 */
  281    400   
        self
         401  +
        /* BuilderGenerator.kt:291 */
  282    402   
    }
  283         -
    /// <p>The time at which the replica was first detected as inaccessible. To determine cause of inaccessibility check the <code>ReplicaStatus</code> property.</p>
         403  +
    /// /* BuilderGenerator.kt:312 */<p>The time at which the replica was first detected as inaccessible. To determine cause of inaccessibility check the <code>ReplicaStatus</code> property.</p>
         404  +
    /* BuilderGenerator.kt:314 */
  284    405   
    pub fn set_replica_inaccessible_date_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
         406  +
        /* BuilderGenerator.kt:315 */
  285    407   
        self.replica_inaccessible_date_time = input;
  286    408   
        self
         409  +
        /* BuilderGenerator.kt:314 */
  287    410   
    }
  288         -
    /// <p>The time at which the replica was first detected as inaccessible. To determine cause of inaccessibility check the <code>ReplicaStatus</code> property.</p>
         411  +
    /// /* BuilderGenerator.kt:334 */<p>The time at which the replica was first detected as inaccessible. To determine cause of inaccessibility check the <code>ReplicaStatus</code> property.</p>
         412  +
    /* BuilderGenerator.kt:336 */
  289    413   
    pub fn get_replica_inaccessible_date_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
         414  +
        /* BuilderGenerator.kt:337 */
  290    415   
        &self.replica_inaccessible_date_time
         416  +
        /* BuilderGenerator.kt:336 */
  291    417   
    }
  292         -
    /// Consumes the builder and constructs a [`ReplicaDescription`](crate::types::ReplicaDescription).
         418  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ReplicaDescription`](crate::types::ReplicaDescription).
         419  +
    /* BuilderGenerator.kt:253 */
  293    420   
    pub fn build(self) -> crate::types::ReplicaDescription {
         421  +
        /* BuilderGenerator.kt:477 */
  294    422   
        crate::types::ReplicaDescription {
  295         -
            region_name: self.region_name,
         423  +
            /* BuilderGenerator.kt:481 */ region_name: self.region_name,
         424  +
            /* BuilderGenerator.kt:481 */
  296    425   
            replica_status: self.replica_status,
         426  +
            /* BuilderGenerator.kt:481 */
  297    427   
            replica_status_description: self.replica_status_description,
         428  +
            /* BuilderGenerator.kt:481 */
  298    429   
            replica_status_percent_progress: self.replica_status_percent_progress,
         430  +
            /* BuilderGenerator.kt:481 */
  299    431   
            kms_master_key_id: self.kms_master_key_id,
         432  +
            /* BuilderGenerator.kt:481 */
  300    433   
            provisioned_throughput_override: self.provisioned_throughput_override,
         434  +
            /* BuilderGenerator.kt:481 */
  301    435   
            global_secondary_indexes: self.global_secondary_indexes,
         436  +
            /* BuilderGenerator.kt:481 */
  302    437   
            replica_inaccessible_date_time: self.replica_inaccessible_date_time,
         438  +
            /* BuilderGenerator.kt:477 */
  303    439   
        }
         440  +
        /* BuilderGenerator.kt:253 */
  304    441   
    }
         442  +
    /* BuilderGenerator.kt:355 */
  305    443   
}

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

@@ -1,1 +81,129 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>Represents the properties of a replica global secondary index.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>Represents the properties of a replica global secondary index.</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 ReplicaGlobalSecondaryIndex {
    7         -
    /// <p>The name of the global secondary index.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct ReplicaGlobalSecondaryIndex {
           9  +
    /// /* StructureGenerator.kt:231 */<p>The name of the global secondary index.</p>
    8     10   
    pub index_name: ::std::string::String,
    9         -
    /// <p>Replica table GSI-specific provisioned throughput. If not specified, uses the source table GSI's read capacity settings.</p>
          11  +
    /// /* StructureGenerator.kt:231 */<p>Replica table GSI-specific provisioned throughput. If not specified, uses the source table GSI's read capacity settings.</p>
   10     12   
    pub provisioned_throughput_override: ::std::option::Option<crate::types::ProvisionedThroughputOverride>,
          13  +
    /* StructureGenerator.kt:201 */
   11     14   
}
          15  +
/* StructureGenerator.kt:135 */
   12     16   
impl ReplicaGlobalSecondaryIndex {
   13         -
    /// <p>The name of the global secondary index.</p>
          17  +
    /// /* StructureGenerator.kt:231 */<p>The name of the global secondary index.</p>
          18  +
    /* StructureGenerator.kt:166 */
   14     19   
    pub fn index_name(&self) -> &str {
          20  +
        /* StructureGenerator.kt:171 */
   15     21   
        use std::ops::Deref;
   16     22   
        self.index_name.deref()
          23  +
        /* StructureGenerator.kt:166 */
   17     24   
    }
   18         -
    /// <p>Replica table GSI-specific provisioned throughput. If not specified, uses the source table GSI's read capacity settings.</p>
          25  +
    /// /* StructureGenerator.kt:231 */<p>Replica table GSI-specific provisioned throughput. If not specified, uses the source table GSI's read capacity settings.</p>
          26  +
    /* StructureGenerator.kt:166 */
   19     27   
    pub fn provisioned_throughput_override(&self) -> ::std::option::Option<&crate::types::ProvisionedThroughputOverride> {
          28  +
        /* StructureGenerator.kt:170 */
   20     29   
        self.provisioned_throughput_override.as_ref()
          30  +
        /* StructureGenerator.kt:166 */
   21     31   
    }
          32  +
    /* StructureGenerator.kt:135 */
   22     33   
}
          34  +
/* ClientCodegenVisitor.kt:237 */
   23     35   
impl ReplicaGlobalSecondaryIndex {
   24         -
    /// Creates a new builder-style object to manufacture [`ReplicaGlobalSecondaryIndex`](crate::types::ReplicaGlobalSecondaryIndex).
          36  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ReplicaGlobalSecondaryIndex`](crate::types::ReplicaGlobalSecondaryIndex).
          37  +
    /* BuilderGenerator.kt:175 */
   25     38   
    pub fn builder() -> crate::types::builders::ReplicaGlobalSecondaryIndexBuilder {
          39  +
        /* BuilderGenerator.kt:176 */
   26     40   
        crate::types::builders::ReplicaGlobalSecondaryIndexBuilder::default()
          41  +
        /* BuilderGenerator.kt:175 */
   27     42   
    }
          43  +
    /* ClientCodegenVisitor.kt:237 */
   28     44   
}
   29     45   
   30         -
/// A builder for [`ReplicaGlobalSecondaryIndex`](crate::types::ReplicaGlobalSecondaryIndex).
          46  +
/// /* BuilderGenerator.kt:342 */A builder for [`ReplicaGlobalSecondaryIndex`](crate::types::ReplicaGlobalSecondaryIndex).
          47  +
/* RustType.kt:516 */
   31     48   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          49  +
/* RustType.kt:516 */
   32     50   
#[non_exhaustive]
          51  +
/* BuilderGenerator.kt:345 */
   33     52   
pub struct ReplicaGlobalSecondaryIndexBuilder {
   34         -
    pub(crate) index_name: ::std::option::Option<::std::string::String>,
          53  +
    /* BuilderGenerator.kt:275 */ pub(crate) index_name: ::std::option::Option<::std::string::String>,
          54  +
    /* BuilderGenerator.kt:275 */
   35     55   
    pub(crate) provisioned_throughput_override: ::std::option::Option<crate::types::ProvisionedThroughputOverride>,
          56  +
    /* BuilderGenerator.kt:345 */
   36     57   
}
          58  +
/* BuilderGenerator.kt:355 */
   37     59   
impl ReplicaGlobalSecondaryIndexBuilder {
   38         -
    /// <p>The name of the global secondary index.</p>
   39         -
    /// This field is required.
          60  +
    /// /* BuilderGenerator.kt:286 */<p>The name of the global secondary index.</p>
          61  +
    /// /* BuilderGenerator.kt:288 */This field is required.
          62  +
    /* BuilderGenerator.kt:291 */
   40     63   
    pub fn index_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          64  +
        /* BuilderGenerator.kt:292 */
   41     65   
        self.index_name = ::std::option::Option::Some(input.into());
          66  +
        /* BuilderGenerator.kt:293 */
   42     67   
        self
          68  +
        /* BuilderGenerator.kt:291 */
   43     69   
    }
   44         -
    /// <p>The name of the global secondary index.</p>
          70  +
    /// /* BuilderGenerator.kt:312 */<p>The name of the global secondary index.</p>
          71  +
    /* BuilderGenerator.kt:314 */
   45     72   
    pub fn set_index_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          73  +
        /* BuilderGenerator.kt:315 */
   46     74   
        self.index_name = input;
   47     75   
        self
          76  +
        /* BuilderGenerator.kt:314 */
   48     77   
    }
   49         -
    /// <p>The name of the global secondary index.</p>
          78  +
    /// /* BuilderGenerator.kt:334 */<p>The name of the global secondary index.</p>
          79  +
    /* BuilderGenerator.kt:336 */
   50     80   
    pub fn get_index_name(&self) -> &::std::option::Option<::std::string::String> {
          81  +
        /* BuilderGenerator.kt:337 */
   51     82   
        &self.index_name
          83  +
        /* BuilderGenerator.kt:336 */
   52     84   
    }
   53         -
    /// <p>Replica table GSI-specific provisioned throughput. If not specified, uses the source table GSI's read capacity settings.</p>
          85  +
    /// /* BuilderGenerator.kt:286 */<p>Replica table GSI-specific provisioned throughput. If not specified, uses the source table GSI's read capacity settings.</p>
          86  +
    /* BuilderGenerator.kt:291 */
   54     87   
    pub fn provisioned_throughput_override(mut self, input: crate::types::ProvisionedThroughputOverride) -> Self {
          88  +
        /* BuilderGenerator.kt:292 */
   55     89   
        self.provisioned_throughput_override = ::std::option::Option::Some(input);
          90  +
        /* BuilderGenerator.kt:293 */
   56     91   
        self
          92  +
        /* BuilderGenerator.kt:291 */
   57     93   
    }
   58         -
    /// <p>Replica table GSI-specific provisioned throughput. If not specified, uses the source table GSI's read capacity settings.</p>
          94  +
    /// /* BuilderGenerator.kt:312 */<p>Replica table GSI-specific provisioned throughput. If not specified, uses the source table GSI's read capacity settings.</p>
          95  +
    /* BuilderGenerator.kt:314 */
   59     96   
    pub fn set_provisioned_throughput_override(mut self, input: ::std::option::Option<crate::types::ProvisionedThroughputOverride>) -> Self {
          97  +
        /* BuilderGenerator.kt:315 */
   60     98   
        self.provisioned_throughput_override = input;
   61     99   
        self
         100  +
        /* BuilderGenerator.kt:314 */
   62    101   
    }
   63         -
    /// <p>Replica table GSI-specific provisioned throughput. If not specified, uses the source table GSI's read capacity settings.</p>
         102  +
    /// /* BuilderGenerator.kt:334 */<p>Replica table GSI-specific provisioned throughput. If not specified, uses the source table GSI's read capacity settings.</p>
         103  +
    /* BuilderGenerator.kt:336 */
   64    104   
    pub fn get_provisioned_throughput_override(&self) -> &::std::option::Option<crate::types::ProvisionedThroughputOverride> {
         105  +
        /* BuilderGenerator.kt:337 */
   65    106   
        &self.provisioned_throughput_override
         107  +
        /* BuilderGenerator.kt:336 */
   66    108   
    }
   67         -
    /// Consumes the builder and constructs a [`ReplicaGlobalSecondaryIndex`](crate::types::ReplicaGlobalSecondaryIndex).
   68         -
    /// This method will fail if any of the following fields are not set:
   69         -
    /// - [`index_name`](crate::types::builders::ReplicaGlobalSecondaryIndexBuilder::index_name)
         109  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ReplicaGlobalSecondaryIndex`](crate::types::ReplicaGlobalSecondaryIndex).
         110  +
    /// /* BuilderGenerator.kt:243 */This method will fail if any of the following fields are not set:
         111  +
    /// /* BuilderGenerator.kt:246 */- [`index_name`](crate::types::builders::ReplicaGlobalSecondaryIndexBuilder::index_name)
         112  +
    /* BuilderGenerator.kt:253 */
   70    113   
    pub fn build(self) -> ::std::result::Result<crate::types::ReplicaGlobalSecondaryIndex, ::aws_smithy_types::error::operation::BuildError> {
   71         -
        ::std::result::Result::Ok(crate::types::ReplicaGlobalSecondaryIndex {
   72         -
            index_name: self.index_name.ok_or_else(|| {
   73         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
   74         -
                    "index_name",
   75         -
                    "index_name was not specified but it is required when building ReplicaGlobalSecondaryIndex",
   76         -
                )
   77         -
            })?,
   78         -
            provisioned_throughput_override: self.provisioned_throughput_override,
   79         -
        })
         114  +
        /* BuilderGenerator.kt:254 */
         115  +
        ::std::result::Result::Ok(
         116  +
            /* BuilderGenerator.kt:477 */crate::types::ReplicaGlobalSecondaryIndex {
         117  +
                /* BuilderGenerator.kt:481 */index_name: self.index_name
         118  +
                    /* BuilderGenerator.kt:494 */.ok_or_else(||
         119  +
                        /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("index_name", "index_name was not specified but it is required when building ReplicaGlobalSecondaryIndex")
         120  +
                    /* BuilderGenerator.kt:494 */)?
         121  +
                ,
         122  +
                /* BuilderGenerator.kt:481 */provisioned_throughput_override: self.provisioned_throughput_override
         123  +
                ,
         124  +
            /* BuilderGenerator.kt:477 */}
         125  +
        /* BuilderGenerator.kt:254 */)
         126  +
        /* BuilderGenerator.kt:253 */
   80    127   
    }
         128  +
    /* BuilderGenerator.kt:355 */
   81    129   
}

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

@@ -1,1 +172,249 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>Represents the auto scaling configuration for a replica global secondary index.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>Represents the auto scaling configuration for a replica global secondary index.</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 ReplicaGlobalSecondaryIndexAutoScalingDescription {
    7         -
    /// <p>The name of the global secondary index.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct ReplicaGlobalSecondaryIndexAutoScalingDescription {
           9  +
    /// /* StructureGenerator.kt:231 */<p>The name of the global secondary index.</p>
    8     10   
    pub index_name: ::std::option::Option<::std::string::String>,
    9         -
    /// <p>The current state of the replica global secondary index:</p>
          11  +
    /// /* StructureGenerator.kt:231 */<p>The current state of the replica global secondary index:</p>
   10     12   
    /// <ul>
   11     13   
    /// <li>
   12     14   
    /// <p><code>CREATING</code> - The index is being created.</p></li>
   13     15   
    /// <li>
   14     16   
    /// <p><code>UPDATING</code> - The index is being updated.</p></li>
   15     17   
    /// <li>
   16     18   
    /// <p><code>DELETING</code> - The index is being deleted.</p></li>
   17     19   
    /// <li>
   18     20   
    /// <p><code>ACTIVE</code> - The index is ready for use.</p></li>
   19     21   
    /// </ul>
   20     22   
    pub index_status: ::std::option::Option<crate::types::IndexStatus>,
   21         -
    /// <p>Represents the auto scaling settings for a global table or global secondary index.</p>
          23  +
    /// /* StructureGenerator.kt:231 */<p>Represents the auto scaling settings for a global table or global secondary index.</p>
   22     24   
    pub provisioned_read_capacity_auto_scaling_settings: ::std::option::Option<crate::types::AutoScalingSettingsDescription>,
   23         -
    /// <p>Represents the auto scaling settings for a global table or global secondary index.</p>
          25  +
    /// /* StructureGenerator.kt:231 */<p>Represents the auto scaling settings for a global table or global secondary index.</p>
   24     26   
    pub provisioned_write_capacity_auto_scaling_settings: ::std::option::Option<crate::types::AutoScalingSettingsDescription>,
          27  +
    /* StructureGenerator.kt:201 */
   25     28   
}
          29  +
/* StructureGenerator.kt:135 */
   26     30   
impl ReplicaGlobalSecondaryIndexAutoScalingDescription {
   27         -
    /// <p>The name of the global secondary index.</p>
          31  +
    /// /* StructureGenerator.kt:231 */<p>The name of the global secondary index.</p>
          32  +
    /* StructureGenerator.kt:166 */
   28     33   
    pub fn index_name(&self) -> ::std::option::Option<&str> {
          34  +
        /* StructureGenerator.kt:169 */
   29     35   
        self.index_name.as_deref()
          36  +
        /* StructureGenerator.kt:166 */
   30     37   
    }
   31         -
    /// <p>The current state of the replica global secondary index:</p>
          38  +
    /// /* StructureGenerator.kt:231 */<p>The current state of the replica global secondary index:</p>
   32     39   
    /// <ul>
   33     40   
    /// <li>
   34     41   
    /// <p><code>CREATING</code> - The index is being created.</p></li>
   35     42   
    /// <li>
   36     43   
    /// <p><code>UPDATING</code> - The index is being updated.</p></li>
   37     44   
    /// <li>
   38     45   
    /// <p><code>DELETING</code> - The index is being deleted.</p></li>
   39     46   
    /// <li>
   40     47   
    /// <p><code>ACTIVE</code> - The index is ready for use.</p></li>
   41     48   
    /// </ul>
          49  +
    /* StructureGenerator.kt:166 */
   42     50   
    pub fn index_status(&self) -> ::std::option::Option<&crate::types::IndexStatus> {
          51  +
        /* StructureGenerator.kt:170 */
   43     52   
        self.index_status.as_ref()
          53  +
        /* StructureGenerator.kt:166 */
   44     54   
    }
   45         -
    /// <p>Represents the auto scaling settings for a global table or global secondary index.</p>
          55  +
    /// /* StructureGenerator.kt:231 */<p>Represents the auto scaling settings for a global table or global secondary index.</p>
          56  +
    /* StructureGenerator.kt:166 */
   46     57   
    pub fn provisioned_read_capacity_auto_scaling_settings(&self) -> ::std::option::Option<&crate::types::AutoScalingSettingsDescription> {
          58  +
        /* StructureGenerator.kt:170 */
   47     59   
        self.provisioned_read_capacity_auto_scaling_settings.as_ref()
          60  +
        /* StructureGenerator.kt:166 */
   48     61   
    }
   49         -
    /// <p>Represents the auto scaling settings for a global table or global secondary index.</p>
          62  +
    /// /* StructureGenerator.kt:231 */<p>Represents the auto scaling settings for a global table or global secondary index.</p>
          63  +
    /* StructureGenerator.kt:166 */
   50     64   
    pub fn provisioned_write_capacity_auto_scaling_settings(&self) -> ::std::option::Option<&crate::types::AutoScalingSettingsDescription> {
          65  +
        /* StructureGenerator.kt:170 */
   51     66   
        self.provisioned_write_capacity_auto_scaling_settings.as_ref()
          67  +
        /* StructureGenerator.kt:166 */
   52     68   
    }
          69  +
    /* StructureGenerator.kt:135 */
   53     70   
}
          71  +
/* ClientCodegenVisitor.kt:237 */
   54     72   
impl ReplicaGlobalSecondaryIndexAutoScalingDescription {
   55         -
    /// Creates a new builder-style object to manufacture [`ReplicaGlobalSecondaryIndexAutoScalingDescription`](crate::types::ReplicaGlobalSecondaryIndexAutoScalingDescription).
          73  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ReplicaGlobalSecondaryIndexAutoScalingDescription`](crate::types::ReplicaGlobalSecondaryIndexAutoScalingDescription).
          74  +
    /* BuilderGenerator.kt:175 */
   56     75   
    pub fn builder() -> crate::types::builders::ReplicaGlobalSecondaryIndexAutoScalingDescriptionBuilder {
          76  +
        /* BuilderGenerator.kt:176 */
   57     77   
        crate::types::builders::ReplicaGlobalSecondaryIndexAutoScalingDescriptionBuilder::default()
          78  +
        /* BuilderGenerator.kt:175 */
   58     79   
    }
          80  +
    /* ClientCodegenVisitor.kt:237 */
   59     81   
}
   60     82   
   61         -
/// A builder for [`ReplicaGlobalSecondaryIndexAutoScalingDescription`](crate::types::ReplicaGlobalSecondaryIndexAutoScalingDescription).
          83  +
/// /* BuilderGenerator.kt:342 */A builder for [`ReplicaGlobalSecondaryIndexAutoScalingDescription`](crate::types::ReplicaGlobalSecondaryIndexAutoScalingDescription).
          84  +
/* RustType.kt:516 */
   62     85   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          86  +
/* RustType.kt:516 */
   63     87   
#[non_exhaustive]
          88  +
/* BuilderGenerator.kt:345 */
   64     89   
pub struct ReplicaGlobalSecondaryIndexAutoScalingDescriptionBuilder {
   65         -
    pub(crate) index_name: ::std::option::Option<::std::string::String>,
   66         -
    pub(crate) index_status: ::std::option::Option<crate::types::IndexStatus>,
          90  +
    /* BuilderGenerator.kt:275 */ pub(crate) index_name: ::std::option::Option<::std::string::String>,
          91  +
    /* BuilderGenerator.kt:275 */ pub(crate) index_status: ::std::option::Option<crate::types::IndexStatus>,
          92  +
    /* BuilderGenerator.kt:275 */
   67     93   
    pub(crate) provisioned_read_capacity_auto_scaling_settings: ::std::option::Option<crate::types::AutoScalingSettingsDescription>,
          94  +
    /* BuilderGenerator.kt:275 */
   68     95   
    pub(crate) provisioned_write_capacity_auto_scaling_settings: ::std::option::Option<crate::types::AutoScalingSettingsDescription>,
          96  +
    /* BuilderGenerator.kt:345 */
   69     97   
}
          98  +
/* BuilderGenerator.kt:355 */
   70     99   
impl ReplicaGlobalSecondaryIndexAutoScalingDescriptionBuilder {
   71         -
    /// <p>The name of the global secondary index.</p>
         100  +
    /// /* BuilderGenerator.kt:286 */<p>The name of the global secondary index.</p>
         101  +
    /* BuilderGenerator.kt:291 */
   72    102   
    pub fn index_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         103  +
        /* BuilderGenerator.kt:292 */
   73    104   
        self.index_name = ::std::option::Option::Some(input.into());
         105  +
        /* BuilderGenerator.kt:293 */
   74    106   
        self
         107  +
        /* BuilderGenerator.kt:291 */
   75    108   
    }
   76         -
    /// <p>The name of the global secondary index.</p>
         109  +
    /// /* BuilderGenerator.kt:312 */<p>The name of the global secondary index.</p>
         110  +
    /* BuilderGenerator.kt:314 */
   77    111   
    pub fn set_index_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         112  +
        /* BuilderGenerator.kt:315 */
   78    113   
        self.index_name = input;
   79    114   
        self
         115  +
        /* BuilderGenerator.kt:314 */
   80    116   
    }
   81         -
    /// <p>The name of the global secondary index.</p>
         117  +
    /// /* BuilderGenerator.kt:334 */<p>The name of the global secondary index.</p>
         118  +
    /* BuilderGenerator.kt:336 */
   82    119   
    pub fn get_index_name(&self) -> &::std::option::Option<::std::string::String> {
         120  +
        /* BuilderGenerator.kt:337 */
   83    121   
        &self.index_name
         122  +
        /* BuilderGenerator.kt:336 */
   84    123   
    }
   85         -
    /// <p>The current state of the replica global secondary index:</p>
         124  +
    /// /* BuilderGenerator.kt:286 */<p>The current state of the replica global secondary index:</p>
   86    125   
    /// <ul>
   87    126   
    /// <li>
   88    127   
    /// <p><code>CREATING</code> - The index is being created.</p></li>
   89    128   
    /// <li>
   90    129   
    /// <p><code>UPDATING</code> - The index is being updated.</p></li>
   91    130   
    /// <li>
   92    131   
    /// <p><code>DELETING</code> - The index is being deleted.</p></li>
   93    132   
    /// <li>
   94    133   
    /// <p><code>ACTIVE</code> - The index is ready for use.</p></li>
   95    134   
    /// </ul>
         135  +
    /* BuilderGenerator.kt:291 */
   96    136   
    pub fn index_status(mut self, input: crate::types::IndexStatus) -> Self {
         137  +
        /* BuilderGenerator.kt:292 */
   97    138   
        self.index_status = ::std::option::Option::Some(input);
         139  +
        /* BuilderGenerator.kt:293 */
   98    140   
        self
         141  +
        /* BuilderGenerator.kt:291 */
   99    142   
    }
  100         -
    /// <p>The current state of the replica global secondary index:</p>
         143  +
    /// /* BuilderGenerator.kt:312 */<p>The current state of the replica global secondary index:</p>
  101    144   
    /// <ul>
  102    145   
    /// <li>
  103    146   
    /// <p><code>CREATING</code> - The index is being created.</p></li>
  104    147   
    /// <li>
  105    148   
    /// <p><code>UPDATING</code> - The index is being updated.</p></li>
  106    149   
    /// <li>
  107    150   
    /// <p><code>DELETING</code> - The index is being deleted.</p></li>
  108    151   
    /// <li>
  109    152   
    /// <p><code>ACTIVE</code> - The index is ready for use.</p></li>
  110    153   
    /// </ul>
         154  +
    /* BuilderGenerator.kt:314 */
  111    155   
    pub fn set_index_status(mut self, input: ::std::option::Option<crate::types::IndexStatus>) -> Self {
         156  +
        /* BuilderGenerator.kt:315 */
  112    157   
        self.index_status = input;
  113    158   
        self
         159  +
        /* BuilderGenerator.kt:314 */
  114    160   
    }
  115         -
    /// <p>The current state of the replica global secondary index:</p>
         161  +
    /// /* BuilderGenerator.kt:334 */<p>The current state of the replica global secondary index:</p>
  116    162   
    /// <ul>
  117    163   
    /// <li>
  118    164   
    /// <p><code>CREATING</code> - The index is being created.</p></li>
  119    165   
    /// <li>
  120    166   
    /// <p><code>UPDATING</code> - The index is being updated.</p></li>
  121    167   
    /// <li>
  122    168   
    /// <p><code>DELETING</code> - The index is being deleted.</p></li>
  123    169   
    /// <li>
  124    170   
    /// <p><code>ACTIVE</code> - The index is ready for use.</p></li>
  125    171   
    /// </ul>
         172  +
    /* BuilderGenerator.kt:336 */
  126    173   
    pub fn get_index_status(&self) -> &::std::option::Option<crate::types::IndexStatus> {
         174  +
        /* BuilderGenerator.kt:337 */
  127    175   
        &self.index_status
         176  +
        /* BuilderGenerator.kt:336 */
  128    177   
    }
  129         -
    /// <p>Represents the auto scaling settings for a global table or global secondary index.</p>
         178  +
    /// /* BuilderGenerator.kt:286 */<p>Represents the auto scaling settings for a global table or global secondary index.</p>
         179  +
    /* BuilderGenerator.kt:291 */
  130    180   
    pub fn provisioned_read_capacity_auto_scaling_settings(mut self, input: crate::types::AutoScalingSettingsDescription) -> Self {
         181  +
        /* BuilderGenerator.kt:292 */
  131    182   
        self.provisioned_read_capacity_auto_scaling_settings = ::std::option::Option::Some(input);
         183  +
        /* BuilderGenerator.kt:293 */
  132    184   
        self
         185  +
        /* BuilderGenerator.kt:291 */
  133    186   
    }
  134         -
    /// <p>Represents the auto scaling settings for a global table or global secondary index.</p>
         187  +
    /// /* BuilderGenerator.kt:312 */<p>Represents the auto scaling settings for a global table or global secondary index.</p>
         188  +
    /* BuilderGenerator.kt:314 */
  135    189   
    pub fn set_provisioned_read_capacity_auto_scaling_settings(
  136    190   
        mut self,
  137    191   
        input: ::std::option::Option<crate::types::AutoScalingSettingsDescription>,
  138    192   
    ) -> Self {
         193  +
        /* BuilderGenerator.kt:315 */
  139    194   
        self.provisioned_read_capacity_auto_scaling_settings = input;
  140    195   
        self
         196  +
        /* BuilderGenerator.kt:314 */
  141    197   
    }
  142         -
    /// <p>Represents the auto scaling settings for a global table or global secondary index.</p>
         198  +
    /// /* BuilderGenerator.kt:334 */<p>Represents the auto scaling settings for a global table or global secondary index.</p>
         199  +
    /* BuilderGenerator.kt:336 */
  143    200   
    pub fn get_provisioned_read_capacity_auto_scaling_settings(&self) -> &::std::option::Option<crate::types::AutoScalingSettingsDescription> {
         201  +
        /* BuilderGenerator.kt:337 */
  144    202   
        &self.provisioned_read_capacity_auto_scaling_settings
         203  +
        /* BuilderGenerator.kt:336 */
  145    204   
    }
  146         -
    /// <p>Represents the auto scaling settings for a global table or global secondary index.</p>
         205  +
    /// /* BuilderGenerator.kt:286 */<p>Represents the auto scaling settings for a global table or global secondary index.</p>
         206  +
    /* BuilderGenerator.kt:291 */
  147    207   
    pub fn provisioned_write_capacity_auto_scaling_settings(mut self, input: crate::types::AutoScalingSettingsDescription) -> Self {
         208  +
        /* BuilderGenerator.kt:292 */
  148    209   
        self.provisioned_write_capacity_auto_scaling_settings = ::std::option::Option::Some(input);
         210  +
        /* BuilderGenerator.kt:293 */
  149    211   
        self
         212  +
        /* BuilderGenerator.kt:291 */
  150    213   
    }
  151         -
    /// <p>Represents the auto scaling settings for a global table or global secondary index.</p>
         214  +
    /// /* BuilderGenerator.kt:312 */<p>Represents the auto scaling settings for a global table or global secondary index.</p>
         215  +
    /* BuilderGenerator.kt:314 */
  152    216   
    pub fn set_provisioned_write_capacity_auto_scaling_settings(
  153    217   
        mut self,
  154    218   
        input: ::std::option::Option<crate::types::AutoScalingSettingsDescription>,
  155    219   
    ) -> Self {
         220  +
        /* BuilderGenerator.kt:315 */
  156    221   
        self.provisioned_write_capacity_auto_scaling_settings = input;
  157    222   
        self
         223  +
        /* BuilderGenerator.kt:314 */
  158    224   
    }
  159         -
    /// <p>Represents the auto scaling settings for a global table or global secondary index.</p>
         225  +
    /// /* BuilderGenerator.kt:334 */<p>Represents the auto scaling settings for a global table or global secondary index.</p>
         226  +
    /* BuilderGenerator.kt:336 */
  160    227   
    pub fn get_provisioned_write_capacity_auto_scaling_settings(&self) -> &::std::option::Option<crate::types::AutoScalingSettingsDescription> {
         228  +
        /* BuilderGenerator.kt:337 */
  161    229   
        &self.provisioned_write_capacity_auto_scaling_settings
         230  +
        /* BuilderGenerator.kt:336 */
  162    231   
    }
  163         -
    /// Consumes the builder and constructs a [`ReplicaGlobalSecondaryIndexAutoScalingDescription`](crate::types::ReplicaGlobalSecondaryIndexAutoScalingDescription).
         232  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ReplicaGlobalSecondaryIndexAutoScalingDescription`](crate::types::ReplicaGlobalSecondaryIndexAutoScalingDescription).
         233  +
    /* BuilderGenerator.kt:253 */
  164    234   
    pub fn build(self) -> crate::types::ReplicaGlobalSecondaryIndexAutoScalingDescription {
         235  +
        /* BuilderGenerator.kt:477 */
  165    236   
        crate::types::ReplicaGlobalSecondaryIndexAutoScalingDescription {
  166         -
            index_name: self.index_name,
         237  +
            /* BuilderGenerator.kt:481 */ index_name: self.index_name,
         238  +
            /* BuilderGenerator.kt:481 */
  167    239   
            index_status: self.index_status,
         240  +
            /* BuilderGenerator.kt:481 */
  168    241   
            provisioned_read_capacity_auto_scaling_settings: self.provisioned_read_capacity_auto_scaling_settings,
         242  +
            /* BuilderGenerator.kt:481 */
  169    243   
            provisioned_write_capacity_auto_scaling_settings: self.provisioned_write_capacity_auto_scaling_settings,
         244  +
            /* BuilderGenerator.kt:477 */
  170    245   
        }
         246  +
        /* BuilderGenerator.kt:253 */
  171    247   
    }
         248  +
    /* BuilderGenerator.kt:355 */
  172    249   
}

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

@@ -1,1 +75,123 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>Represents the auto scaling settings of a global secondary index for a replica that will be modified.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>Represents the auto scaling settings of a global secondary index for a replica 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 ReplicaGlobalSecondaryIndexAutoScalingUpdate {
    7         -
    /// <p>The name of the global secondary index.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct ReplicaGlobalSecondaryIndexAutoScalingUpdate {
           9  +
    /// /* StructureGenerator.kt:231 */<p>The name of the global secondary index.</p>
    8     10   
    pub index_name: ::std::option::Option<::std::string::String>,
    9         -
    /// <p>Represents the auto scaling settings to be modified for a global table or global secondary index.</p>
          11  +
    /// /* StructureGenerator.kt:231 */<p>Represents the auto scaling settings to be modified for a global table or global secondary index.</p>
   10     12   
    pub provisioned_read_capacity_auto_scaling_update: ::std::option::Option<crate::types::AutoScalingSettingsUpdate>,
          13  +
    /* StructureGenerator.kt:201 */
   11     14   
}
          15  +
/* StructureGenerator.kt:135 */
   12     16   
impl ReplicaGlobalSecondaryIndexAutoScalingUpdate {
   13         -
    /// <p>The name of the global secondary index.</p>
          17  +
    /// /* StructureGenerator.kt:231 */<p>The name of the global secondary index.</p>
          18  +
    /* StructureGenerator.kt:166 */
   14     19   
    pub fn index_name(&self) -> ::std::option::Option<&str> {
          20  +
        /* StructureGenerator.kt:169 */
   15     21   
        self.index_name.as_deref()
          22  +
        /* StructureGenerator.kt:166 */
   16     23   
    }
   17         -
    /// <p>Represents the auto scaling settings to be modified for a global table or global secondary index.</p>
          24  +
    /// /* StructureGenerator.kt:231 */<p>Represents the auto scaling settings to be modified for a global table or global secondary index.</p>
          25  +
    /* StructureGenerator.kt:166 */
   18     26   
    pub fn provisioned_read_capacity_auto_scaling_update(&self) -> ::std::option::Option<&crate::types::AutoScalingSettingsUpdate> {
          27  +
        /* StructureGenerator.kt:170 */
   19     28   
        self.provisioned_read_capacity_auto_scaling_update.as_ref()
          29  +
        /* StructureGenerator.kt:166 */
   20     30   
    }
          31  +
    /* StructureGenerator.kt:135 */
   21     32   
}
          33  +
/* ClientCodegenVisitor.kt:237 */
   22     34   
impl ReplicaGlobalSecondaryIndexAutoScalingUpdate {
   23         -
    /// Creates a new builder-style object to manufacture [`ReplicaGlobalSecondaryIndexAutoScalingUpdate`](crate::types::ReplicaGlobalSecondaryIndexAutoScalingUpdate).
          35  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ReplicaGlobalSecondaryIndexAutoScalingUpdate`](crate::types::ReplicaGlobalSecondaryIndexAutoScalingUpdate).
          36  +
    /* BuilderGenerator.kt:175 */
   24     37   
    pub fn builder() -> crate::types::builders::ReplicaGlobalSecondaryIndexAutoScalingUpdateBuilder {
          38  +
        /* BuilderGenerator.kt:176 */
   25     39   
        crate::types::builders::ReplicaGlobalSecondaryIndexAutoScalingUpdateBuilder::default()
          40  +
        /* BuilderGenerator.kt:175 */
   26     41   
    }
          42  +
    /* ClientCodegenVisitor.kt:237 */
   27     43   
}
   28     44   
   29         -
/// A builder for [`ReplicaGlobalSecondaryIndexAutoScalingUpdate`](crate::types::ReplicaGlobalSecondaryIndexAutoScalingUpdate).
          45  +
/// /* BuilderGenerator.kt:342 */A builder for [`ReplicaGlobalSecondaryIndexAutoScalingUpdate`](crate::types::ReplicaGlobalSecondaryIndexAutoScalingUpdate).
          46  +
/* RustType.kt:516 */
   30     47   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          48  +
/* RustType.kt:516 */
   31     49   
#[non_exhaustive]
          50  +
/* BuilderGenerator.kt:345 */
   32     51   
pub struct ReplicaGlobalSecondaryIndexAutoScalingUpdateBuilder {
   33         -
    pub(crate) index_name: ::std::option::Option<::std::string::String>,
          52  +
    /* BuilderGenerator.kt:275 */ pub(crate) index_name: ::std::option::Option<::std::string::String>,
          53  +
    /* BuilderGenerator.kt:275 */
   34     54   
    pub(crate) provisioned_read_capacity_auto_scaling_update: ::std::option::Option<crate::types::AutoScalingSettingsUpdate>,
          55  +
    /* BuilderGenerator.kt:345 */
   35     56   
}
          57  +
/* BuilderGenerator.kt:355 */
   36     58   
impl ReplicaGlobalSecondaryIndexAutoScalingUpdateBuilder {
   37         -
    /// <p>The name of the global secondary index.</p>
          59  +
    /// /* BuilderGenerator.kt:286 */<p>The name of the global secondary index.</p>
          60  +
    /* BuilderGenerator.kt:291 */
   38     61   
    pub fn index_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          62  +
        /* BuilderGenerator.kt:292 */
   39     63   
        self.index_name = ::std::option::Option::Some(input.into());
          64  +
        /* BuilderGenerator.kt:293 */
   40     65   
        self
          66  +
        /* BuilderGenerator.kt:291 */
   41     67   
    }
   42         -
    /// <p>The name of the global secondary index.</p>
          68  +
    /// /* BuilderGenerator.kt:312 */<p>The name of the global secondary index.</p>
          69  +
    /* BuilderGenerator.kt:314 */
   43     70   
    pub fn set_index_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          71  +
        /* BuilderGenerator.kt:315 */
   44     72   
        self.index_name = input;
   45     73   
        self
          74  +
        /* BuilderGenerator.kt:314 */
   46     75   
    }
   47         -
    /// <p>The name of the global secondary index.</p>
          76  +
    /// /* BuilderGenerator.kt:334 */<p>The name of the global secondary index.</p>
          77  +
    /* BuilderGenerator.kt:336 */
   48     78   
    pub fn get_index_name(&self) -> &::std::option::Option<::std::string::String> {
          79  +
        /* BuilderGenerator.kt:337 */
   49     80   
        &self.index_name
          81  +
        /* BuilderGenerator.kt:336 */
   50     82   
    }
   51         -
    /// <p>Represents the auto scaling settings to be modified for a global table or global secondary index.</p>
          83  +
    /// /* BuilderGenerator.kt:286 */<p>Represents the auto scaling settings to be modified for a global table or global secondary index.</p>
          84  +
    /* BuilderGenerator.kt:291 */
   52     85   
    pub fn provisioned_read_capacity_auto_scaling_update(mut self, input: crate::types::AutoScalingSettingsUpdate) -> Self {
          86  +
        /* BuilderGenerator.kt:292 */
   53     87   
        self.provisioned_read_capacity_auto_scaling_update = ::std::option::Option::Some(input);
          88  +
        /* BuilderGenerator.kt:293 */
   54     89   
        self
          90  +
        /* BuilderGenerator.kt:291 */
   55     91   
    }
   56         -
    /// <p>Represents the auto scaling settings to be modified for a global table or global secondary index.</p>
          92  +
    /// /* BuilderGenerator.kt:312 */<p>Represents the auto scaling settings to be modified for a global table or global secondary index.</p>
          93  +
    /* BuilderGenerator.kt:314 */
   57     94   
    pub fn set_provisioned_read_capacity_auto_scaling_update(
   58     95   
        mut self,
   59     96   
        input: ::std::option::Option<crate::types::AutoScalingSettingsUpdate>,
   60     97   
    ) -> Self {
          98  +
        /* BuilderGenerator.kt:315 */
   61     99   
        self.provisioned_read_capacity_auto_scaling_update = input;
   62    100   
        self
         101  +
        /* BuilderGenerator.kt:314 */
   63    102   
    }
   64         -
    /// <p>Represents the auto scaling settings to be modified for a global table or global secondary index.</p>
         103  +
    /// /* BuilderGenerator.kt:334 */<p>Represents the auto scaling settings to be modified for a global table or global secondary index.</p>
         104  +
    /* BuilderGenerator.kt:336 */
   65    105   
    pub fn get_provisioned_read_capacity_auto_scaling_update(&self) -> &::std::option::Option<crate::types::AutoScalingSettingsUpdate> {
         106  +
        /* BuilderGenerator.kt:337 */
   66    107   
        &self.provisioned_read_capacity_auto_scaling_update
         108  +
        /* BuilderGenerator.kt:336 */
   67    109   
    }
   68         -
    /// Consumes the builder and constructs a [`ReplicaGlobalSecondaryIndexAutoScalingUpdate`](crate::types::ReplicaGlobalSecondaryIndexAutoScalingUpdate).
         110  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ReplicaGlobalSecondaryIndexAutoScalingUpdate`](crate::types::ReplicaGlobalSecondaryIndexAutoScalingUpdate).
         111  +
    /* BuilderGenerator.kt:253 */
   69    112   
    pub fn build(self) -> crate::types::ReplicaGlobalSecondaryIndexAutoScalingUpdate {
         113  +
        /* BuilderGenerator.kt:477 */
   70    114   
        crate::types::ReplicaGlobalSecondaryIndexAutoScalingUpdate {
   71         -
            index_name: self.index_name,
         115  +
            /* BuilderGenerator.kt:481 */ index_name: self.index_name,
         116  +
            /* BuilderGenerator.kt:481 */
   72    117   
            provisioned_read_capacity_auto_scaling_update: self.provisioned_read_capacity_auto_scaling_update,
         118  +
            /* BuilderGenerator.kt:477 */
   73    119   
        }
         120  +
        /* BuilderGenerator.kt:253 */
   74    121   
    }
         122  +
    /* BuilderGenerator.kt:355 */
   75    123   
}

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

@@ -1,1 +72,120 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>Represents the properties of a replica global secondary index.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>Represents the properties of a replica global secondary index.</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 ReplicaGlobalSecondaryIndexDescription {
    7         -
    /// <p>The name of the global secondary index.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct ReplicaGlobalSecondaryIndexDescription {
           9  +
    /// /* StructureGenerator.kt:231 */<p>The name of the global secondary index.</p>
    8     10   
    pub index_name: ::std::option::Option<::std::string::String>,
    9         -
    /// <p>If not described, uses the source table GSI's read capacity settings.</p>
          11  +
    /// /* StructureGenerator.kt:231 */<p>If not described, uses the source table GSI's read capacity settings.</p>
   10     12   
    pub provisioned_throughput_override: ::std::option::Option<crate::types::ProvisionedThroughputOverride>,
          13  +
    /* StructureGenerator.kt:201 */
   11     14   
}
          15  +
/* StructureGenerator.kt:135 */
   12     16   
impl ReplicaGlobalSecondaryIndexDescription {
   13         -
    /// <p>The name of the global secondary index.</p>
          17  +
    /// /* StructureGenerator.kt:231 */<p>The name of the global secondary index.</p>
          18  +
    /* StructureGenerator.kt:166 */
   14     19   
    pub fn index_name(&self) -> ::std::option::Option<&str> {
          20  +
        /* StructureGenerator.kt:169 */
   15     21   
        self.index_name.as_deref()
          22  +
        /* StructureGenerator.kt:166 */
   16     23   
    }
   17         -
    /// <p>If not described, uses the source table GSI's read capacity settings.</p>
          24  +
    /// /* StructureGenerator.kt:231 */<p>If not described, uses the source table GSI's read capacity settings.</p>
          25  +
    /* StructureGenerator.kt:166 */
   18     26   
    pub fn provisioned_throughput_override(&self) -> ::std::option::Option<&crate::types::ProvisionedThroughputOverride> {
          27  +
        /* StructureGenerator.kt:170 */
   19     28   
        self.provisioned_throughput_override.as_ref()
          29  +
        /* StructureGenerator.kt:166 */
   20     30   
    }
          31  +
    /* StructureGenerator.kt:135 */
   21     32   
}
          33  +
/* ClientCodegenVisitor.kt:237 */
   22     34   
impl ReplicaGlobalSecondaryIndexDescription {
   23         -
    /// Creates a new builder-style object to manufacture [`ReplicaGlobalSecondaryIndexDescription`](crate::types::ReplicaGlobalSecondaryIndexDescription).
          35  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ReplicaGlobalSecondaryIndexDescription`](crate::types::ReplicaGlobalSecondaryIndexDescription).
          36  +
    /* BuilderGenerator.kt:175 */
   24     37   
    pub fn builder() -> crate::types::builders::ReplicaGlobalSecondaryIndexDescriptionBuilder {
          38  +
        /* BuilderGenerator.kt:176 */
   25     39   
        crate::types::builders::ReplicaGlobalSecondaryIndexDescriptionBuilder::default()
          40  +
        /* BuilderGenerator.kt:175 */
   26     41   
    }
          42  +
    /* ClientCodegenVisitor.kt:237 */
   27     43   
}
   28     44   
   29         -
/// A builder for [`ReplicaGlobalSecondaryIndexDescription`](crate::types::ReplicaGlobalSecondaryIndexDescription).
          45  +
/// /* BuilderGenerator.kt:342 */A builder for [`ReplicaGlobalSecondaryIndexDescription`](crate::types::ReplicaGlobalSecondaryIndexDescription).
          46  +
/* RustType.kt:516 */
   30     47   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          48  +
/* RustType.kt:516 */
   31     49   
#[non_exhaustive]
          50  +
/* BuilderGenerator.kt:345 */
   32     51   
pub struct ReplicaGlobalSecondaryIndexDescriptionBuilder {
   33         -
    pub(crate) index_name: ::std::option::Option<::std::string::String>,
          52  +
    /* BuilderGenerator.kt:275 */ pub(crate) index_name: ::std::option::Option<::std::string::String>,
          53  +
    /* BuilderGenerator.kt:275 */
   34     54   
    pub(crate) provisioned_throughput_override: ::std::option::Option<crate::types::ProvisionedThroughputOverride>,
          55  +
    /* BuilderGenerator.kt:345 */
   35     56   
}
          57  +
/* BuilderGenerator.kt:355 */
   36     58   
impl ReplicaGlobalSecondaryIndexDescriptionBuilder {
   37         -
    /// <p>The name of the global secondary index.</p>
          59  +
    /// /* BuilderGenerator.kt:286 */<p>The name of the global secondary index.</p>
          60  +
    /* BuilderGenerator.kt:291 */
   38     61   
    pub fn index_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          62  +
        /* BuilderGenerator.kt:292 */
   39     63   
        self.index_name = ::std::option::Option::Some(input.into());
          64  +
        /* BuilderGenerator.kt:293 */
   40     65   
        self
          66  +
        /* BuilderGenerator.kt:291 */
   41     67   
    }
   42         -
    /// <p>The name of the global secondary index.</p>
          68  +
    /// /* BuilderGenerator.kt:312 */<p>The name of the global secondary index.</p>
          69  +
    /* BuilderGenerator.kt:314 */
   43     70   
    pub fn set_index_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          71  +
        /* BuilderGenerator.kt:315 */
   44     72   
        self.index_name = input;
   45     73   
        self
          74  +
        /* BuilderGenerator.kt:314 */
   46     75   
    }
   47         -
    /// <p>The name of the global secondary index.</p>
          76  +
    /// /* BuilderGenerator.kt:334 */<p>The name of the global secondary index.</p>
          77  +
    /* BuilderGenerator.kt:336 */
   48     78   
    pub fn get_index_name(&self) -> &::std::option::Option<::std::string::String> {
          79  +
        /* BuilderGenerator.kt:337 */
   49     80   
        &self.index_name
          81  +
        /* BuilderGenerator.kt:336 */
   50     82   
    }
   51         -
    /// <p>If not described, uses the source table GSI's read capacity settings.</p>
          83  +
    /// /* BuilderGenerator.kt:286 */<p>If not described, uses the source table GSI's read capacity settings.</p>
          84  +
    /* BuilderGenerator.kt:291 */
   52     85   
    pub fn provisioned_throughput_override(mut self, input: crate::types::ProvisionedThroughputOverride) -> Self {
          86  +
        /* BuilderGenerator.kt:292 */
   53     87   
        self.provisioned_throughput_override = ::std::option::Option::Some(input);
          88  +
        /* BuilderGenerator.kt:293 */
   54     89   
        self
          90  +
        /* BuilderGenerator.kt:291 */
   55     91   
    }
   56         -
    /// <p>If not described, uses the source table GSI's read capacity settings.</p>
          92  +
    /// /* BuilderGenerator.kt:312 */<p>If not described, uses the source table GSI's read capacity settings.</p>
          93  +
    /* BuilderGenerator.kt:314 */
   57     94   
    pub fn set_provisioned_throughput_override(mut self, input: ::std::option::Option<crate::types::ProvisionedThroughputOverride>) -> Self {
          95  +
        /* BuilderGenerator.kt:315 */
   58     96   
        self.provisioned_throughput_override = input;
   59     97   
        self
          98  +
        /* BuilderGenerator.kt:314 */
   60     99   
    }
   61         -
    /// <p>If not described, uses the source table GSI's read capacity settings.</p>
         100  +
    /// /* BuilderGenerator.kt:334 */<p>If not described, uses the source table GSI's read capacity settings.</p>
         101  +
    /* BuilderGenerator.kt:336 */
   62    102   
    pub fn get_provisioned_throughput_override(&self) -> &::std::option::Option<crate::types::ProvisionedThroughputOverride> {
         103  +
        /* BuilderGenerator.kt:337 */
   63    104   
        &self.provisioned_throughput_override
         105  +
        /* BuilderGenerator.kt:336 */
   64    106   
    }
   65         -
    /// Consumes the builder and constructs a [`ReplicaGlobalSecondaryIndexDescription`](crate::types::ReplicaGlobalSecondaryIndexDescription).
         107  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ReplicaGlobalSecondaryIndexDescription`](crate::types::ReplicaGlobalSecondaryIndexDescription).
         108  +
    /* BuilderGenerator.kt:253 */
   66    109   
    pub fn build(self) -> crate::types::ReplicaGlobalSecondaryIndexDescription {
         110  +
        /* BuilderGenerator.kt:477 */
   67    111   
        crate::types::ReplicaGlobalSecondaryIndexDescription {
   68         -
            index_name: self.index_name,
         112  +
            /* BuilderGenerator.kt:481 */ index_name: self.index_name,
         113  +
            /* BuilderGenerator.kt:481 */
   69    114   
            provisioned_throughput_override: self.provisioned_throughput_override,
         115  +
            /* BuilderGenerator.kt:477 */
   70    116   
        }
         117  +
        /* BuilderGenerator.kt:253 */
   71    118   
    }
         119  +
    /* BuilderGenerator.kt:355 */
   72    120   
}

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

@@ -1,1 +227,332 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>Represents the properties of a global secondary index.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>Represents the properties of a global secondary index.</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 ReplicaGlobalSecondaryIndexSettingsDescription {
    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 ReplicaGlobalSecondaryIndexSettingsDescription {
           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 current status of the global secondary index:</p>
          11  +
    /// /* StructureGenerator.kt:231 */<p>The current status of the global secondary index:</p>
   10     12   
    /// <ul>
   11     13   
    /// <li>
   12     14   
    /// <p><code>CREATING</code> - The global secondary index is being created.</p></li>
   13     15   
    /// <li>
   14     16   
    /// <p><code>UPDATING</code> - The global secondary index is being updated.</p></li>
   15     17   
    /// <li>
   16     18   
    /// <p><code>DELETING</code> - The global secondary index is being deleted.</p></li>
   17     19   
    /// <li>
   18     20   
    /// <p><code>ACTIVE</code> - The global secondary index is ready for use.</p></li>
   19     21   
    /// </ul>
   20     22   
    pub index_status: ::std::option::Option<crate::types::IndexStatus>,
   21         -
    /// <p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>.</p>
          23  +
    /// /* StructureGenerator.kt:231 */<p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>.</p>
   22     24   
    pub provisioned_read_capacity_units: ::std::option::Option<i64>,
   23         -
    /// <p>Auto scaling settings for a global secondary index replica's read capacity units.</p>
          25  +
    /// /* StructureGenerator.kt:231 */<p>Auto scaling settings for a global secondary index replica's read capacity units.</p>
   24     26   
    pub provisioned_read_capacity_auto_scaling_settings: ::std::option::Option<crate::types::AutoScalingSettingsDescription>,
   25         -
    /// <p>The maximum number of writes consumed per second before DynamoDB returns a <code>ThrottlingException</code>.</p>
          27  +
    /// /* StructureGenerator.kt:231 */<p>The maximum number of writes consumed per second before DynamoDB returns a <code>ThrottlingException</code>.</p>
   26     28   
    pub provisioned_write_capacity_units: ::std::option::Option<i64>,
   27         -
    /// <p>Auto scaling settings for a global secondary index replica's write capacity units.</p>
          29  +
    /// /* StructureGenerator.kt:231 */<p>Auto scaling settings for a global secondary index replica's write capacity units.</p>
   28     30   
    pub provisioned_write_capacity_auto_scaling_settings: ::std::option::Option<crate::types::AutoScalingSettingsDescription>,
          31  +
    /* StructureGenerator.kt:201 */
   29     32   
}
          33  +
/* StructureGenerator.kt:135 */
   30     34   
impl ReplicaGlobalSecondaryIndexSettingsDescription {
   31         -
    /// <p>The name of the global secondary index. The name must be unique among all other indexes on this table.</p>
          35  +
    /// /* StructureGenerator.kt:231 */<p>The name of the global secondary index. The name must be unique among all other indexes on this table.</p>
          36  +
    /* StructureGenerator.kt:166 */
   32     37   
    pub fn index_name(&self) -> &str {
          38  +
        /* StructureGenerator.kt:171 */
   33     39   
        use std::ops::Deref;
   34     40   
        self.index_name.deref()
          41  +
        /* StructureGenerator.kt:166 */
   35     42   
    }
   36         -
    /// <p>The current status of the global secondary index:</p>
          43  +
    /// /* StructureGenerator.kt:231 */<p>The current status of the global secondary index:</p>
   37     44   
    /// <ul>
   38     45   
    /// <li>
   39     46   
    /// <p><code>CREATING</code> - The global secondary index is being created.</p></li>
   40     47   
    /// <li>
   41     48   
    /// <p><code>UPDATING</code> - The global secondary index is being updated.</p></li>
   42     49   
    /// <li>
   43     50   
    /// <p><code>DELETING</code> - The global secondary index is being deleted.</p></li>
   44     51   
    /// <li>
   45     52   
    /// <p><code>ACTIVE</code> - The global secondary index is ready for use.</p></li>
   46     53   
    /// </ul>
          54  +
    /* StructureGenerator.kt:166 */
   47     55   
    pub fn index_status(&self) -> ::std::option::Option<&crate::types::IndexStatus> {
          56  +
        /* StructureGenerator.kt:170 */
   48     57   
        self.index_status.as_ref()
          58  +
        /* StructureGenerator.kt:166 */
   49     59   
    }
   50         -
    /// <p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>.</p>
          60  +
    /// /* StructureGenerator.kt:231 */<p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>.</p>
          61  +
    /* StructureGenerator.kt:166 */
   51     62   
    pub fn provisioned_read_capacity_units(&self) -> ::std::option::Option<i64> {
          63  +
        /* StructureGenerator.kt:168 */
   52     64   
        self.provisioned_read_capacity_units
          65  +
        /* StructureGenerator.kt:166 */
   53     66   
    }
   54         -
    /// <p>Auto scaling settings for a global secondary index replica's read capacity units.</p>
          67  +
    /// /* StructureGenerator.kt:231 */<p>Auto scaling settings for a global secondary index replica's read capacity units.</p>
          68  +
    /* StructureGenerator.kt:166 */
   55     69   
    pub fn provisioned_read_capacity_auto_scaling_settings(&self) -> ::std::option::Option<&crate::types::AutoScalingSettingsDescription> {
          70  +
        /* StructureGenerator.kt:170 */
   56     71   
        self.provisioned_read_capacity_auto_scaling_settings.as_ref()
          72  +
        /* StructureGenerator.kt:166 */
   57     73   
    }
   58         -
    /// <p>The maximum number of writes consumed per second before DynamoDB returns a <code>ThrottlingException</code>.</p>
          74  +
    /// /* StructureGenerator.kt:231 */<p>The maximum number of writes consumed per second before DynamoDB returns a <code>ThrottlingException</code>.</p>
          75  +
    /* StructureGenerator.kt:166 */
   59     76   
    pub fn provisioned_write_capacity_units(&self) -> ::std::option::Option<i64> {
          77  +
        /* StructureGenerator.kt:168 */
   60     78   
        self.provisioned_write_capacity_units
          79  +
        /* StructureGenerator.kt:166 */
   61     80   
    }
   62         -
    /// <p>Auto scaling settings for a global secondary index replica's write capacity units.</p>
          81  +
    /// /* StructureGenerator.kt:231 */<p>Auto scaling settings for a global secondary index replica's write capacity units.</p>
          82  +
    /* StructureGenerator.kt:166 */
   63     83   
    pub fn provisioned_write_capacity_auto_scaling_settings(&self) -> ::std::option::Option<&crate::types::AutoScalingSettingsDescription> {
          84  +
        /* StructureGenerator.kt:170 */
   64     85   
        self.provisioned_write_capacity_auto_scaling_settings.as_ref()
          86  +
        /* StructureGenerator.kt:166 */
   65     87   
    }
          88  +
    /* StructureGenerator.kt:135 */
   66     89   
}
          90  +
/* ClientCodegenVisitor.kt:237 */
   67     91   
impl ReplicaGlobalSecondaryIndexSettingsDescription {
   68         -
    /// Creates a new builder-style object to manufacture [`ReplicaGlobalSecondaryIndexSettingsDescription`](crate::types::ReplicaGlobalSecondaryIndexSettingsDescription).
          92  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ReplicaGlobalSecondaryIndexSettingsDescription`](crate::types::ReplicaGlobalSecondaryIndexSettingsDescription).
          93  +
    /* BuilderGenerator.kt:175 */
   69     94   
    pub fn builder() -> crate::types::builders::ReplicaGlobalSecondaryIndexSettingsDescriptionBuilder {
          95  +
        /* BuilderGenerator.kt:176 */
   70     96   
        crate::types::builders::ReplicaGlobalSecondaryIndexSettingsDescriptionBuilder::default()
          97  +
        /* BuilderGenerator.kt:175 */
   71     98   
    }
          99  +
    /* ClientCodegenVisitor.kt:237 */
   72    100   
}
   73    101   
   74         -
/// A builder for [`ReplicaGlobalSecondaryIndexSettingsDescription`](crate::types::ReplicaGlobalSecondaryIndexSettingsDescription).
         102  +
/// /* BuilderGenerator.kt:342 */A builder for [`ReplicaGlobalSecondaryIndexSettingsDescription`](crate::types::ReplicaGlobalSecondaryIndexSettingsDescription).
         103  +
/* RustType.kt:516 */
   75    104   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         105  +
/* RustType.kt:516 */
   76    106   
#[non_exhaustive]
         107  +
/* BuilderGenerator.kt:345 */
   77    108   
pub struct ReplicaGlobalSecondaryIndexSettingsDescriptionBuilder {
   78         -
    pub(crate) index_name: ::std::option::Option<::std::string::String>,
   79         -
    pub(crate) index_status: ::std::option::Option<crate::types::IndexStatus>,
   80         -
    pub(crate) provisioned_read_capacity_units: ::std::option::Option<i64>,
         109  +
    /* BuilderGenerator.kt:275 */ pub(crate) index_name: ::std::option::Option<::std::string::String>,
         110  +
    /* BuilderGenerator.kt:275 */ pub(crate) index_status: ::std::option::Option<crate::types::IndexStatus>,
         111  +
    /* BuilderGenerator.kt:275 */ pub(crate) provisioned_read_capacity_units: ::std::option::Option<i64>,
         112  +
    /* BuilderGenerator.kt:275 */
   81    113   
    pub(crate) provisioned_read_capacity_auto_scaling_settings: ::std::option::Option<crate::types::AutoScalingSettingsDescription>,
   82         -
    pub(crate) provisioned_write_capacity_units: ::std::option::Option<i64>,
         114  +
    /* BuilderGenerator.kt:275 */ pub(crate) provisioned_write_capacity_units: ::std::option::Option<i64>,
         115  +
    /* BuilderGenerator.kt:275 */
   83    116   
    pub(crate) provisioned_write_capacity_auto_scaling_settings: ::std::option::Option<crate::types::AutoScalingSettingsDescription>,
         117  +
    /* BuilderGenerator.kt:345 */
   84    118   
}
         119  +
/* BuilderGenerator.kt:355 */
   85    120   
impl ReplicaGlobalSecondaryIndexSettingsDescriptionBuilder {
   86         -
    /// <p>The name of the global secondary index. The name must be unique among all other indexes on this table.</p>
   87         -
    /// This field is required.
         121  +
    /// /* BuilderGenerator.kt:286 */<p>The name of the global secondary index. The name must be unique among all other indexes on this table.</p>
         122  +
    /// /* BuilderGenerator.kt:288 */This field is required.
         123  +
    /* BuilderGenerator.kt:291 */
   88    124   
    pub fn index_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         125  +
        /* BuilderGenerator.kt:292 */
   89    126   
        self.index_name = ::std::option::Option::Some(input.into());
         127  +
        /* BuilderGenerator.kt:293 */
   90    128   
        self
         129  +
        /* BuilderGenerator.kt:291 */
   91    130   
    }
   92         -
    /// <p>The name of the global secondary index. The name must be unique among all other indexes on this table.</p>
         131  +
    /// /* BuilderGenerator.kt:312 */<p>The name of the global secondary index. The name must be unique among all other indexes on this table.</p>
         132  +
    /* BuilderGenerator.kt:314 */
   93    133   
    pub fn set_index_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         134  +
        /* BuilderGenerator.kt:315 */
   94    135   
        self.index_name = input;
   95    136   
        self
         137  +
        /* BuilderGenerator.kt:314 */
   96    138   
    }
   97         -
    /// <p>The name of the global secondary index. The name must be unique among all other indexes on this table.</p>
         139  +
    /// /* BuilderGenerator.kt:334 */<p>The name of the global secondary index. The name must be unique among all other indexes on this table.</p>
         140  +
    /* BuilderGenerator.kt:336 */
   98    141   
    pub fn get_index_name(&self) -> &::std::option::Option<::std::string::String> {
         142  +
        /* BuilderGenerator.kt:337 */
   99    143   
        &self.index_name
         144  +
        /* BuilderGenerator.kt:336 */
  100    145   
    }
  101         -
    /// <p>The current status of the global secondary index:</p>
         146  +
    /// /* BuilderGenerator.kt:286 */<p>The current status of the global secondary index:</p>
  102    147   
    /// <ul>
  103    148   
    /// <li>
  104    149   
    /// <p><code>CREATING</code> - The global secondary index is being created.</p></li>
  105    150   
    /// <li>
  106    151   
    /// <p><code>UPDATING</code> - The global secondary index is being updated.</p></li>
  107    152   
    /// <li>
  108    153   
    /// <p><code>DELETING</code> - The global secondary index is being deleted.</p></li>
  109    154   
    /// <li>
  110    155   
    /// <p><code>ACTIVE</code> - The global secondary index is ready for use.</p></li>
  111    156   
    /// </ul>
         157  +
    /* BuilderGenerator.kt:291 */
  112    158   
    pub fn index_status(mut self, input: crate::types::IndexStatus) -> Self {
         159  +
        /* BuilderGenerator.kt:292 */
  113    160   
        self.index_status = ::std::option::Option::Some(input);
         161  +
        /* BuilderGenerator.kt:293 */
  114    162   
        self
         163  +
        /* BuilderGenerator.kt:291 */
  115    164   
    }
  116         -
    /// <p>The current status of the global secondary index:</p>
         165  +
    /// /* BuilderGenerator.kt:312 */<p>The current status of the global secondary index:</p>
  117    166   
    /// <ul>
  118    167   
    /// <li>
  119    168   
    /// <p><code>CREATING</code> - The global secondary index is being created.</p></li>
  120    169   
    /// <li>
  121    170   
    /// <p><code>UPDATING</code> - The global secondary index is being updated.</p></li>
  122    171   
    /// <li>
  123    172   
    /// <p><code>DELETING</code> - The global secondary index is being deleted.</p></li>
  124    173   
    /// <li>
  125    174   
    /// <p><code>ACTIVE</code> - The global secondary index is ready for use.</p></li>
  126    175   
    /// </ul>
         176  +
    /* BuilderGenerator.kt:314 */
  127    177   
    pub fn set_index_status(mut self, input: ::std::option::Option<crate::types::IndexStatus>) -> Self {
         178  +
        /* BuilderGenerator.kt:315 */
  128    179   
        self.index_status = input;
  129    180   
        self
         181  +
        /* BuilderGenerator.kt:314 */
  130    182   
    }
  131         -
    /// <p>The current status of the global secondary index:</p>
         183  +
    /// /* BuilderGenerator.kt:334 */<p>The current status of the global secondary index:</p>
  132    184   
    /// <ul>
  133    185   
    /// <li>
  134    186   
    /// <p><code>CREATING</code> - The global secondary index is being created.</p></li>
  135    187   
    /// <li>
  136    188   
    /// <p><code>UPDATING</code> - The global secondary index is being updated.</p></li>
  137    189   
    /// <li>
  138    190   
    /// <p><code>DELETING</code> - The global secondary index is being deleted.</p></li>
  139    191   
    /// <li>
  140    192   
    /// <p><code>ACTIVE</code> - The global secondary index is ready for use.</p></li>
  141    193   
    /// </ul>
         194  +
    /* BuilderGenerator.kt:336 */
  142    195   
    pub fn get_index_status(&self) -> &::std::option::Option<crate::types::IndexStatus> {
         196  +
        /* BuilderGenerator.kt:337 */
  143    197   
        &self.index_status
         198  +
        /* BuilderGenerator.kt:336 */
  144    199   
    }
  145         -
    /// <p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>.</p>
         200  +
    /// /* BuilderGenerator.kt:286 */<p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>.</p>
         201  +
    /* BuilderGenerator.kt:291 */
  146    202   
    pub fn provisioned_read_capacity_units(mut self, input: i64) -> Self {
         203  +
        /* BuilderGenerator.kt:292 */
  147    204   
        self.provisioned_read_capacity_units = ::std::option::Option::Some(input);
         205  +
        /* BuilderGenerator.kt:293 */
  148    206   
        self
         207  +
        /* BuilderGenerator.kt:291 */
  149    208   
    }
  150         -
    /// <p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>.</p>
         209  +
    /// /* BuilderGenerator.kt:312 */<p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>.</p>
         210  +
    /* BuilderGenerator.kt:314 */
  151    211   
    pub fn set_provisioned_read_capacity_units(mut self, input: ::std::option::Option<i64>) -> Self {
         212  +
        /* BuilderGenerator.kt:315 */
  152    213   
        self.provisioned_read_capacity_units = input;
  153    214   
        self
         215  +
        /* BuilderGenerator.kt:314 */
  154    216   
    }
  155         -
    /// <p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>.</p>
         217  +
    /// /* BuilderGenerator.kt:334 */<p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>.</p>
         218  +
    /* BuilderGenerator.kt:336 */
  156    219   
    pub fn get_provisioned_read_capacity_units(&self) -> &::std::option::Option<i64> {
         220  +
        /* BuilderGenerator.kt:337 */
  157    221   
        &self.provisioned_read_capacity_units
         222  +
        /* BuilderGenerator.kt:336 */
  158    223   
    }
  159         -
    /// <p>Auto scaling settings for a global secondary index replica's read capacity units.</p>
         224  +
    /// /* BuilderGenerator.kt:286 */<p>Auto scaling settings for a global secondary index replica's read capacity units.</p>
         225  +
    /* BuilderGenerator.kt:291 */
  160    226   
    pub fn provisioned_read_capacity_auto_scaling_settings(mut self, input: crate::types::AutoScalingSettingsDescription) -> Self {
         227  +
        /* BuilderGenerator.kt:292 */
  161    228   
        self.provisioned_read_capacity_auto_scaling_settings = ::std::option::Option::Some(input);
         229  +
        /* BuilderGenerator.kt:293 */
  162    230   
        self
         231  +
        /* BuilderGenerator.kt:291 */
  163    232   
    }
  164         -
    /// <p>Auto scaling settings for a global secondary index replica's read capacity units.</p>
         233  +
    /// /* BuilderGenerator.kt:312 */<p>Auto scaling settings for a global secondary index replica's read capacity units.</p>
         234  +
    /* BuilderGenerator.kt:314 */
  165    235   
    pub fn set_provisioned_read_capacity_auto_scaling_settings(
  166    236   
        mut self,
  167    237   
        input: ::std::option::Option<crate::types::AutoScalingSettingsDescription>,
  168    238   
    ) -> Self {
         239  +
        /* BuilderGenerator.kt:315 */
  169    240   
        self.provisioned_read_capacity_auto_scaling_settings = input;
  170    241   
        self
         242  +
        /* BuilderGenerator.kt:314 */
  171    243   
    }
  172         -
    /// <p>Auto scaling settings for a global secondary index replica's read capacity units.</p>
         244  +
    /// /* BuilderGenerator.kt:334 */<p>Auto scaling settings for a global secondary index replica's read capacity units.</p>
         245  +
    /* BuilderGenerator.kt:336 */
  173    246   
    pub fn get_provisioned_read_capacity_auto_scaling_settings(&self) -> &::std::option::Option<crate::types::AutoScalingSettingsDescription> {
         247  +
        /* BuilderGenerator.kt:337 */
  174    248   
        &self.provisioned_read_capacity_auto_scaling_settings
         249  +
        /* BuilderGenerator.kt:336 */
  175    250   
    }
  176         -
    /// <p>The maximum number of writes consumed per second before DynamoDB returns a <code>ThrottlingException</code>.</p>
         251  +
    /// /* BuilderGenerator.kt:286 */<p>The maximum number of writes consumed per second before DynamoDB returns a <code>ThrottlingException</code>.</p>
         252  +
    /* BuilderGenerator.kt:291 */
  177    253   
    pub fn provisioned_write_capacity_units(mut self, input: i64) -> Self {
         254  +
        /* BuilderGenerator.kt:292 */
  178    255   
        self.provisioned_write_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 writes consumed per second before DynamoDB returns a <code>ThrottlingException</code>.</p>
         260  +
    /// /* BuilderGenerator.kt:312 */<p>The maximum number of writes consumed per second before DynamoDB returns a <code>ThrottlingException</code>.</p>
         261  +
    /* BuilderGenerator.kt:314 */
  182    262   
    pub fn set_provisioned_write_capacity_units(mut self, input: ::std::option::Option<i64>) -> Self {
         263  +
        /* BuilderGenerator.kt:315 */
  183    264   
        self.provisioned_write_capacity_units = input;
  184    265   
        self
         266  +
        /* BuilderGenerator.kt:314 */
  185    267   
    }
  186         -
    /// <p>The maximum number of writes consumed per second before DynamoDB returns a <code>ThrottlingException</code>.</p>
         268  +
    /// /* BuilderGenerator.kt:334 */<p>The maximum number of writes consumed per second before DynamoDB returns a <code>ThrottlingException</code>.</p>
         269  +
    /* BuilderGenerator.kt:336 */
  187    270   
    pub fn get_provisioned_write_capacity_units(&self) -> &::std::option::Option<i64> {
         271  +
        /* BuilderGenerator.kt:337 */
  188    272   
        &self.provisioned_write_capacity_units
         273  +
        /* BuilderGenerator.kt:336 */
  189    274   
    }
  190         -
    /// <p>Auto scaling settings for a global secondary index replica's write capacity units.</p>
         275  +
    /// /* BuilderGenerator.kt:286 */<p>Auto scaling settings for a global secondary index replica's write capacity units.</p>
         276  +
    /* BuilderGenerator.kt:291 */
  191    277   
    pub fn provisioned_write_capacity_auto_scaling_settings(mut self, input: crate::types::AutoScalingSettingsDescription) -> Self {
         278  +
        /* BuilderGenerator.kt:292 */
  192    279   
        self.provisioned_write_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 secondary index replica's write capacity units.</p>
         284  +
    /// /* BuilderGenerator.kt:312 */<p>Auto scaling settings for a global secondary index replica's write capacity units.</p>
         285  +
    /* BuilderGenerator.kt:314 */
  196    286   
    pub fn set_provisioned_write_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.provisioned_write_capacity_auto_scaling_settings = input;
  201    292   
        self
         293  +
        /* BuilderGenerator.kt:314 */
  202    294   
    }
  203         -
    /// <p>Auto scaling settings for a global secondary index replica's write capacity units.</p>
         295  +
    /// /* BuilderGenerator.kt:334 */<p>Auto scaling settings for a global secondary index replica's write capacity units.</p>
         296  +
    /* BuilderGenerator.kt:336 */
  204    297   
    pub fn get_provisioned_write_capacity_auto_scaling_settings(&self) -> &::std::option::Option<crate::types::AutoScalingSettingsDescription> {
         298  +
        /* BuilderGenerator.kt:337 */
  205    299   
        &self.provisioned_write_capacity_auto_scaling_settings
         300  +
        /* BuilderGenerator.kt:336 */
  206    301   
    }
  207         -
    /// Consumes the builder and constructs a [`ReplicaGlobalSecondaryIndexSettingsDescription`](crate::types::ReplicaGlobalSecondaryIndexSettingsDescription).
  208         -
    /// This method will fail if any of the following fields are not set:
  209         -
    /// - [`index_name`](crate::types::builders::ReplicaGlobalSecondaryIndexSettingsDescriptionBuilder::index_name)
         302  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ReplicaGlobalSecondaryIndexSettingsDescription`](crate::types::ReplicaGlobalSecondaryIndexSettingsDescription).
         303  +
    /// /* BuilderGenerator.kt:243 */This method will fail if any of the following fields are not set:
         304  +
    /// /* BuilderGenerator.kt:246 */- [`index_name`](crate::types::builders::ReplicaGlobalSecondaryIndexSettingsDescriptionBuilder::index_name)
         305  +
    /* BuilderGenerator.kt:253 */
  210    306   
    pub fn build(
  211    307   
        self,
  212    308   
    ) -> ::std::result::Result<crate::types::ReplicaGlobalSecondaryIndexSettingsDescription, ::aws_smithy_types::error::operation::BuildError> {
  213         -
        ::std::result::Result::Ok(crate::types::ReplicaGlobalSecondaryIndexSettingsDescription {
  214         -
            index_name: self.index_name.ok_or_else(|| {
  215         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
  216         -
                    "index_name",
  217         -
                    "index_name was not specified but it is required when building ReplicaGlobalSecondaryIndexSettingsDescription",
  218         -
                )
  219         -
            })?,
  220         -
            index_status: self.index_status,
  221         -
            provisioned_read_capacity_units: self.provisioned_read_capacity_units,
  222         -
            provisioned_read_capacity_auto_scaling_settings: self.provisioned_read_capacity_auto_scaling_settings,
  223         -
            provisioned_write_capacity_units: self.provisioned_write_capacity_units,
  224         -
            provisioned_write_capacity_auto_scaling_settings: self.provisioned_write_capacity_auto_scaling_settings,
  225         -
        })
         309  +
        /* BuilderGenerator.kt:254 */
         310  +
        ::std::result::Result::Ok(
         311  +
            /* BuilderGenerator.kt:477 */crate::types::ReplicaGlobalSecondaryIndexSettingsDescription {
         312  +
                /* BuilderGenerator.kt:481 */index_name: self.index_name
         313  +
                    /* BuilderGenerator.kt:494 */.ok_or_else(||
         314  +
                        /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("index_name", "index_name was not specified but it is required when building ReplicaGlobalSecondaryIndexSettingsDescription")
         315  +
                    /* BuilderGenerator.kt:494 */)?
         316  +
                ,
         317  +
                /* BuilderGenerator.kt:481 */index_status: self.index_status
         318  +
                ,
         319  +
                /* BuilderGenerator.kt:481 */provisioned_read_capacity_units: self.provisioned_read_capacity_units
         320  +
                ,
         321  +
                /* BuilderGenerator.kt:481 */provisioned_read_capacity_auto_scaling_settings: self.provisioned_read_capacity_auto_scaling_settings
         322  +
                ,
         323  +
                /* BuilderGenerator.kt:481 */provisioned_write_capacity_units: self.provisioned_write_capacity_units
         324  +
                ,
         325  +
                /* BuilderGenerator.kt:481 */provisioned_write_capacity_auto_scaling_settings: self.provisioned_write_capacity_auto_scaling_settings
         326  +
                ,
         327  +
            /* BuilderGenerator.kt:477 */}
         328  +
        /* BuilderGenerator.kt:254 */)
         329  +
        /* BuilderGenerator.kt:253 */
  226    330   
    }
         331  +
    /* BuilderGenerator.kt:355 */
  227    332   
}