Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

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

@@ -1,1 +146,240 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>Represents the auto scaling settings for a global table or global secondary index.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>Represents the auto scaling settings for a global table or 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 AutoScalingSettingsDescription {
    7         -
    /// <p>The minimum capacity units that a global table or global secondary index should be scaled down to.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct AutoScalingSettingsDescription {
           9  +
    /// /* StructureGenerator.kt:231 */<p>The minimum capacity units that a global table or global secondary index should be scaled down to.</p>
    8     10   
    pub minimum_units: ::std::option::Option<i64>,
    9         -
    /// <p>The maximum capacity units that a global table or global secondary index should be scaled up to.</p>
          11  +
    /// /* StructureGenerator.kt:231 */<p>The maximum capacity units that a global table or global secondary index should be scaled up to.</p>
   10     12   
    pub maximum_units: ::std::option::Option<i64>,
   11         -
    /// <p>Disabled auto scaling for this global table or global secondary index.</p>
          13  +
    /// /* StructureGenerator.kt:231 */<p>Disabled auto scaling for this global table or global secondary index.</p>
   12     14   
    pub auto_scaling_disabled: ::std::option::Option<bool>,
   13         -
    /// <p>Role ARN used for configuring the auto scaling policy.</p>
          15  +
    /// /* StructureGenerator.kt:231 */<p>Role ARN used for configuring the auto scaling policy.</p>
   14     16   
    pub auto_scaling_role_arn: ::std::option::Option<::std::string::String>,
   15         -
    /// <p>Information about the scaling policies.</p>
          17  +
    /// /* StructureGenerator.kt:231 */<p>Information about the scaling policies.</p>
   16     18   
    pub scaling_policies: ::std::option::Option<::std::vec::Vec<crate::types::AutoScalingPolicyDescription>>,
          19  +
    /* StructureGenerator.kt:201 */
   17     20   
}
          21  +
/* StructureGenerator.kt:135 */
   18     22   
impl AutoScalingSettingsDescription {
   19         -
    /// <p>The minimum capacity units that a global table or global secondary index should be scaled down to.</p>
          23  +
    /// /* StructureGenerator.kt:231 */<p>The minimum capacity units that a global table or global secondary index should be scaled down to.</p>
          24  +
    /* StructureGenerator.kt:166 */
   20     25   
    pub fn minimum_units(&self) -> ::std::option::Option<i64> {
          26  +
        /* StructureGenerator.kt:168 */
   21     27   
        self.minimum_units
          28  +
        /* StructureGenerator.kt:166 */
   22     29   
    }
   23         -
    /// <p>The maximum capacity units that a global table or global secondary index should be scaled up to.</p>
          30  +
    /// /* StructureGenerator.kt:231 */<p>The maximum capacity units that a global table or global secondary index should be scaled up to.</p>
          31  +
    /* StructureGenerator.kt:166 */
   24     32   
    pub fn maximum_units(&self) -> ::std::option::Option<i64> {
          33  +
        /* StructureGenerator.kt:168 */
   25     34   
        self.maximum_units
          35  +
        /* StructureGenerator.kt:166 */
   26     36   
    }
   27         -
    /// <p>Disabled auto scaling for this global table or global secondary index.</p>
          37  +
    /// /* StructureGenerator.kt:231 */<p>Disabled auto scaling for this global table or global secondary index.</p>
          38  +
    /* StructureGenerator.kt:166 */
   28     39   
    pub fn auto_scaling_disabled(&self) -> ::std::option::Option<bool> {
          40  +
        /* StructureGenerator.kt:168 */
   29     41   
        self.auto_scaling_disabled
          42  +
        /* StructureGenerator.kt:166 */
   30     43   
    }
   31         -
    /// <p>Role ARN used for configuring the auto scaling policy.</p>
          44  +
    /// /* StructureGenerator.kt:231 */<p>Role ARN used for configuring the auto scaling policy.</p>
          45  +
    /* StructureGenerator.kt:166 */
   32     46   
    pub fn auto_scaling_role_arn(&self) -> ::std::option::Option<&str> {
          47  +
        /* StructureGenerator.kt:169 */
   33     48   
        self.auto_scaling_role_arn.as_deref()
          49  +
        /* StructureGenerator.kt:166 */
   34     50   
    }
   35         -
    /// <p>Information about the scaling policies.</p>
   36         -
    ///
   37         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.scaling_policies.is_none()`.
          51  +
    /// /* StructureGenerator.kt:231 */<p>Information about the scaling policies.</p>
          52  +
    /// /* StructureGenerator.kt:162 */
          53  +
    /// /* 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 `.scaling_policies.is_none()`.
          54  +
    /* StructureGenerator.kt:166 */
   38     55   
    pub fn scaling_policies(&self) -> &[crate::types::AutoScalingPolicyDescription] {
   39         -
        self.scaling_policies.as_deref().unwrap_or_default()
   40         -
    }
          56  +
        /* StructureGenerator.kt:169 */
          57  +
        self.scaling_policies
          58  +
            .as_deref()
          59  +
            /* StructureGenerator.kt:175 */
          60  +
            .unwrap_or_default()
          61  +
        /* StructureGenerator.kt:166 */
          62  +
    }
          63  +
    /* StructureGenerator.kt:135 */
   41     64   
}
          65  +
/* ClientCodegenVisitor.kt:237 */
   42     66   
impl AutoScalingSettingsDescription {
   43         -
    /// Creates a new builder-style object to manufacture [`AutoScalingSettingsDescription`](crate::types::AutoScalingSettingsDescription).
          67  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`AutoScalingSettingsDescription`](crate::types::AutoScalingSettingsDescription).
          68  +
    /* BuilderGenerator.kt:175 */
   44     69   
    pub fn builder() -> crate::types::builders::AutoScalingSettingsDescriptionBuilder {
          70  +
        /* BuilderGenerator.kt:176 */
   45     71   
        crate::types::builders::AutoScalingSettingsDescriptionBuilder::default()
          72  +
        /* BuilderGenerator.kt:175 */
   46     73   
    }
          74  +
    /* ClientCodegenVisitor.kt:237 */
   47     75   
}
   48     76   
   49         -
/// A builder for [`AutoScalingSettingsDescription`](crate::types::AutoScalingSettingsDescription).
          77  +
/// /* BuilderGenerator.kt:342 */A builder for [`AutoScalingSettingsDescription`](crate::types::AutoScalingSettingsDescription).
          78  +
/* RustType.kt:516 */
   50     79   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          80  +
/* RustType.kt:516 */
   51     81   
#[non_exhaustive]
          82  +
/* BuilderGenerator.kt:345 */
   52     83   
pub struct AutoScalingSettingsDescriptionBuilder {
   53         -
    pub(crate) minimum_units: ::std::option::Option<i64>,
   54         -
    pub(crate) maximum_units: ::std::option::Option<i64>,
   55         -
    pub(crate) auto_scaling_disabled: ::std::option::Option<bool>,
   56         -
    pub(crate) auto_scaling_role_arn: ::std::option::Option<::std::string::String>,
          84  +
    /* BuilderGenerator.kt:275 */ pub(crate) minimum_units: ::std::option::Option<i64>,
          85  +
    /* BuilderGenerator.kt:275 */ pub(crate) maximum_units: ::std::option::Option<i64>,
          86  +
    /* BuilderGenerator.kt:275 */ pub(crate) auto_scaling_disabled: ::std::option::Option<bool>,
          87  +
    /* BuilderGenerator.kt:275 */ pub(crate) auto_scaling_role_arn: ::std::option::Option<::std::string::String>,
          88  +
    /* BuilderGenerator.kt:275 */
   57     89   
    pub(crate) scaling_policies: ::std::option::Option<::std::vec::Vec<crate::types::AutoScalingPolicyDescription>>,
          90  +
    /* BuilderGenerator.kt:345 */
   58     91   
}
          92  +
/* BuilderGenerator.kt:355 */
   59     93   
impl AutoScalingSettingsDescriptionBuilder {
   60         -
    /// <p>The minimum capacity units that a global table or global secondary index should be scaled down to.</p>
          94  +
    /// /* BuilderGenerator.kt:286 */<p>The minimum capacity units that a global table or global secondary index should be scaled down to.</p>
          95  +
    /* BuilderGenerator.kt:291 */
   61     96   
    pub fn minimum_units(mut self, input: i64) -> Self {
          97  +
        /* BuilderGenerator.kt:292 */
   62     98   
        self.minimum_units = ::std::option::Option::Some(input);
          99  +
        /* BuilderGenerator.kt:293 */
   63    100   
        self
         101  +
        /* BuilderGenerator.kt:291 */
   64    102   
    }
   65         -
    /// <p>The minimum capacity units that a global table or global secondary index should be scaled down to.</p>
         103  +
    /// /* BuilderGenerator.kt:312 */<p>The minimum capacity units that a global table or global secondary index should be scaled down to.</p>
         104  +
    /* BuilderGenerator.kt:314 */
   66    105   
    pub fn set_minimum_units(mut self, input: ::std::option::Option<i64>) -> Self {
         106  +
        /* BuilderGenerator.kt:315 */
   67    107   
        self.minimum_units = input;
   68    108   
        self
         109  +
        /* BuilderGenerator.kt:314 */
   69    110   
    }
   70         -
    /// <p>The minimum capacity units that a global table or global secondary index should be scaled down to.</p>
         111  +
    /// /* BuilderGenerator.kt:334 */<p>The minimum capacity units that a global table or global secondary index should be scaled down to.</p>
         112  +
    /* BuilderGenerator.kt:336 */
   71    113   
    pub fn get_minimum_units(&self) -> &::std::option::Option<i64> {
         114  +
        /* BuilderGenerator.kt:337 */
   72    115   
        &self.minimum_units
         116  +
        /* BuilderGenerator.kt:336 */
   73    117   
    }
   74         -
    /// <p>The maximum capacity units that a global table or global secondary index should be scaled up to.</p>
         118  +
    /// /* BuilderGenerator.kt:286 */<p>The maximum capacity units that a global table or global secondary index should be scaled up to.</p>
         119  +
    /* BuilderGenerator.kt:291 */
   75    120   
    pub fn maximum_units(mut self, input: i64) -> Self {
         121  +
        /* BuilderGenerator.kt:292 */
   76    122   
        self.maximum_units = ::std::option::Option::Some(input);
         123  +
        /* BuilderGenerator.kt:293 */
   77    124   
        self
         125  +
        /* BuilderGenerator.kt:291 */
   78    126   
    }
   79         -
    /// <p>The maximum capacity units that a global table or global secondary index should be scaled up to.</p>
         127  +
    /// /* BuilderGenerator.kt:312 */<p>The maximum capacity units that a global table or global secondary index should be scaled up to.</p>
         128  +
    /* BuilderGenerator.kt:314 */
   80    129   
    pub fn set_maximum_units(mut self, input: ::std::option::Option<i64>) -> Self {
         130  +
        /* BuilderGenerator.kt:315 */
   81    131   
        self.maximum_units = input;
   82    132   
        self
         133  +
        /* BuilderGenerator.kt:314 */
   83    134   
    }
   84         -
    /// <p>The maximum capacity units that a global table or global secondary index should be scaled up to.</p>
         135  +
    /// /* BuilderGenerator.kt:334 */<p>The maximum capacity units that a global table or global secondary index should be scaled up to.</p>
         136  +
    /* BuilderGenerator.kt:336 */
   85    137   
    pub fn get_maximum_units(&self) -> &::std::option::Option<i64> {
         138  +
        /* BuilderGenerator.kt:337 */
   86    139   
        &self.maximum_units
         140  +
        /* BuilderGenerator.kt:336 */
   87    141   
    }
   88         -
    /// <p>Disabled auto scaling for this global table or global secondary index.</p>
         142  +
    /// /* BuilderGenerator.kt:286 */<p>Disabled auto scaling for this global table or global secondary index.</p>
         143  +
    /* BuilderGenerator.kt:291 */
   89    144   
    pub fn auto_scaling_disabled(mut self, input: bool) -> Self {
         145  +
        /* BuilderGenerator.kt:292 */
   90    146   
        self.auto_scaling_disabled = ::std::option::Option::Some(input);
         147  +
        /* BuilderGenerator.kt:293 */
   91    148   
        self
         149  +
        /* BuilderGenerator.kt:291 */
   92    150   
    }
   93         -
    /// <p>Disabled auto scaling for this global table or global secondary index.</p>
         151  +
    /// /* BuilderGenerator.kt:312 */<p>Disabled auto scaling for this global table or global secondary index.</p>
         152  +
    /* BuilderGenerator.kt:314 */
   94    153   
    pub fn set_auto_scaling_disabled(mut self, input: ::std::option::Option<bool>) -> Self {
         154  +
        /* BuilderGenerator.kt:315 */
   95    155   
        self.auto_scaling_disabled = input;
   96    156   
        self
         157  +
        /* BuilderGenerator.kt:314 */
   97    158   
    }
   98         -
    /// <p>Disabled auto scaling for this global table or global secondary index.</p>
         159  +
    /// /* BuilderGenerator.kt:334 */<p>Disabled auto scaling for this global table or global secondary index.</p>
         160  +
    /* BuilderGenerator.kt:336 */
   99    161   
    pub fn get_auto_scaling_disabled(&self) -> &::std::option::Option<bool> {
         162  +
        /* BuilderGenerator.kt:337 */
  100    163   
        &self.auto_scaling_disabled
         164  +
        /* BuilderGenerator.kt:336 */
  101    165   
    }
  102         -
    /// <p>Role ARN used for configuring the auto scaling policy.</p>
         166  +
    /// /* BuilderGenerator.kt:286 */<p>Role ARN used for configuring the auto scaling policy.</p>
         167  +
    /* BuilderGenerator.kt:291 */
  103    168   
    pub fn auto_scaling_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         169  +
        /* BuilderGenerator.kt:292 */
  104    170   
        self.auto_scaling_role_arn = ::std::option::Option::Some(input.into());
         171  +
        /* BuilderGenerator.kt:293 */
  105    172   
        self
         173  +
        /* BuilderGenerator.kt:291 */
  106    174   
    }
  107         -
    /// <p>Role ARN used for configuring the auto scaling policy.</p>
         175  +
    /// /* BuilderGenerator.kt:312 */<p>Role ARN used for configuring the auto scaling policy.</p>
         176  +
    /* BuilderGenerator.kt:314 */
  108    177   
    pub fn set_auto_scaling_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         178  +
        /* BuilderGenerator.kt:315 */
  109    179   
        self.auto_scaling_role_arn = input;
  110    180   
        self
         181  +
        /* BuilderGenerator.kt:314 */
  111    182   
    }
  112         -
    /// <p>Role ARN used for configuring the auto scaling policy.</p>
         183  +
    /// /* BuilderGenerator.kt:334 */<p>Role ARN used for configuring the auto scaling policy.</p>
         184  +
    /* BuilderGenerator.kt:336 */
  113    185   
    pub fn get_auto_scaling_role_arn(&self) -> &::std::option::Option<::std::string::String> {
         186  +
        /* BuilderGenerator.kt:337 */
  114    187   
        &self.auto_scaling_role_arn
         188  +
        /* BuilderGenerator.kt:336 */
  115    189   
    }
  116         -
    /// Appends an item to `scaling_policies`.
         190  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `scaling_policies`.
         191  +
    /* BuilderGenerator.kt:411 */
  117    192   
    ///
  118         -
    /// To override the contents of this collection use [`set_scaling_policies`](Self::set_scaling_policies).
         193  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_scaling_policies`](Self::set_scaling_policies).
         194  +
    /* BuilderGenerator.kt:413 */
  119    195   
    ///
  120         -
    /// <p>Information about the scaling policies.</p>
         196  +
    /// /* BuilderGenerator.kt:414 */<p>Information about the scaling policies.</p>
         197  +
    /* BuilderGenerator.kt:418 */
  121    198   
    pub fn scaling_policies(mut self, input: crate::types::AutoScalingPolicyDescription) -> Self {
         199  +
        /* BuilderGenerator.kt:419 */
  122    200   
        let mut v = self.scaling_policies.unwrap_or_default();
  123    201   
        v.push(input);
  124    202   
        self.scaling_policies = ::std::option::Option::Some(v);
  125    203   
        self
         204  +
        /* BuilderGenerator.kt:418 */
  126    205   
    }
  127         -
    /// <p>Information about the scaling policies.</p>
         206  +
    /// /* BuilderGenerator.kt:312 */<p>Information about the scaling policies.</p>
         207  +
    /* BuilderGenerator.kt:314 */
  128    208   
    pub fn set_scaling_policies(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::AutoScalingPolicyDescription>>) -> Self {
         209  +
        /* BuilderGenerator.kt:315 */
  129    210   
        self.scaling_policies = input;
  130    211   
        self
         212  +
        /* BuilderGenerator.kt:314 */
  131    213   
    }
  132         -
    /// <p>Information about the scaling policies.</p>
         214  +
    /// /* BuilderGenerator.kt:334 */<p>Information about the scaling policies.</p>
         215  +
    /* BuilderGenerator.kt:336 */
  133    216   
    pub fn get_scaling_policies(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::AutoScalingPolicyDescription>> {
         217  +
        /* BuilderGenerator.kt:337 */
  134    218   
        &self.scaling_policies
         219  +
        /* BuilderGenerator.kt:336 */
  135    220   
    }
  136         -
    /// Consumes the builder and constructs a [`AutoScalingSettingsDescription`](crate::types::AutoScalingSettingsDescription).
         221  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`AutoScalingSettingsDescription`](crate::types::AutoScalingSettingsDescription).
         222  +
    /* BuilderGenerator.kt:253 */
  137    223   
    pub fn build(self) -> crate::types::AutoScalingSettingsDescription {
         224  +
        /* BuilderGenerator.kt:477 */
  138    225   
        crate::types::AutoScalingSettingsDescription {
  139         -
            minimum_units: self.minimum_units,
         226  +
            /* BuilderGenerator.kt:481 */ minimum_units: self.minimum_units,
         227  +
            /* BuilderGenerator.kt:481 */
  140    228   
            maximum_units: self.maximum_units,
         229  +
            /* BuilderGenerator.kt:481 */
  141    230   
            auto_scaling_disabled: self.auto_scaling_disabled,
         231  +
            /* BuilderGenerator.kt:481 */
  142    232   
            auto_scaling_role_arn: self.auto_scaling_role_arn,
         233  +
            /* BuilderGenerator.kt:481 */
  143    234   
            scaling_policies: self.scaling_policies,
         235  +
            /* BuilderGenerator.kt:477 */
  144    236   
        }
         237  +
        /* BuilderGenerator.kt:253 */
  145    238   
    }
         239  +
    /* BuilderGenerator.kt:355 */
  146    240   
}

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

@@ -1,1 +138,228 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>Represents the auto scaling settings to be modified for a global table or global secondary index.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>Represents the auto scaling settings to be modified for a global table or 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 AutoScalingSettingsUpdate {
    7         -
    /// <p>The minimum capacity units that a global table or global secondary index should be scaled down to.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct AutoScalingSettingsUpdate {
           9  +
    /// /* StructureGenerator.kt:231 */<p>The minimum capacity units that a global table or global secondary index should be scaled down to.</p>
    8     10   
    pub minimum_units: ::std::option::Option<i64>,
    9         -
    /// <p>The maximum capacity units that a global table or global secondary index should be scaled up to.</p>
          11  +
    /// /* StructureGenerator.kt:231 */<p>The maximum capacity units that a global table or global secondary index should be scaled up to.</p>
   10     12   
    pub maximum_units: ::std::option::Option<i64>,
   11         -
    /// <p>Disabled auto scaling for this global table or global secondary index.</p>
          13  +
    /// /* StructureGenerator.kt:231 */<p>Disabled auto scaling for this global table or global secondary index.</p>
   12     14   
    pub auto_scaling_disabled: ::std::option::Option<bool>,
   13         -
    /// <p>Role ARN used for configuring auto scaling policy.</p>
          15  +
    /// /* StructureGenerator.kt:231 */<p>Role ARN used for configuring auto scaling policy.</p>
   14     16   
    pub auto_scaling_role_arn: ::std::option::Option<::std::string::String>,
   15         -
    /// <p>The scaling policy to apply for scaling target global table or global secondary index capacity units.</p>
          17  +
    /// /* StructureGenerator.kt:231 */<p>The scaling policy to apply for scaling target global table or global secondary index capacity units.</p>
   16     18   
    pub scaling_policy_update: ::std::option::Option<crate::types::AutoScalingPolicyUpdate>,
          19  +
    /* StructureGenerator.kt:201 */
   17     20   
}
          21  +
/* StructureGenerator.kt:135 */
   18     22   
impl AutoScalingSettingsUpdate {
   19         -
    /// <p>The minimum capacity units that a global table or global secondary index should be scaled down to.</p>
          23  +
    /// /* StructureGenerator.kt:231 */<p>The minimum capacity units that a global table or global secondary index should be scaled down to.</p>
          24  +
    /* StructureGenerator.kt:166 */
   20     25   
    pub fn minimum_units(&self) -> ::std::option::Option<i64> {
          26  +
        /* StructureGenerator.kt:168 */
   21     27   
        self.minimum_units
          28  +
        /* StructureGenerator.kt:166 */
   22     29   
    }
   23         -
    /// <p>The maximum capacity units that a global table or global secondary index should be scaled up to.</p>
          30  +
    /// /* StructureGenerator.kt:231 */<p>The maximum capacity units that a global table or global secondary index should be scaled up to.</p>
          31  +
    /* StructureGenerator.kt:166 */
   24     32   
    pub fn maximum_units(&self) -> ::std::option::Option<i64> {
          33  +
        /* StructureGenerator.kt:168 */
   25     34   
        self.maximum_units
          35  +
        /* StructureGenerator.kt:166 */
   26     36   
    }
   27         -
    /// <p>Disabled auto scaling for this global table or global secondary index.</p>
          37  +
    /// /* StructureGenerator.kt:231 */<p>Disabled auto scaling for this global table or global secondary index.</p>
          38  +
    /* StructureGenerator.kt:166 */
   28     39   
    pub fn auto_scaling_disabled(&self) -> ::std::option::Option<bool> {
          40  +
        /* StructureGenerator.kt:168 */
   29     41   
        self.auto_scaling_disabled
          42  +
        /* StructureGenerator.kt:166 */
   30     43   
    }
   31         -
    /// <p>Role ARN used for configuring auto scaling policy.</p>
          44  +
    /// /* StructureGenerator.kt:231 */<p>Role ARN used for configuring auto scaling policy.</p>
          45  +
    /* StructureGenerator.kt:166 */
   32     46   
    pub fn auto_scaling_role_arn(&self) -> ::std::option::Option<&str> {
          47  +
        /* StructureGenerator.kt:169 */
   33     48   
        self.auto_scaling_role_arn.as_deref()
          49  +
        /* StructureGenerator.kt:166 */
   34     50   
    }
   35         -
    /// <p>The scaling policy to apply for scaling target global table or global secondary index capacity units.</p>
          51  +
    /// /* StructureGenerator.kt:231 */<p>The scaling policy to apply for scaling target global table or global secondary index capacity units.</p>
          52  +
    /* StructureGenerator.kt:166 */
   36     53   
    pub fn scaling_policy_update(&self) -> ::std::option::Option<&crate::types::AutoScalingPolicyUpdate> {
          54  +
        /* StructureGenerator.kt:170 */
   37     55   
        self.scaling_policy_update.as_ref()
          56  +
        /* StructureGenerator.kt:166 */
   38     57   
    }
          58  +
    /* StructureGenerator.kt:135 */
   39     59   
}
          60  +
/* ClientCodegenVisitor.kt:237 */
   40     61   
impl AutoScalingSettingsUpdate {
   41         -
    /// Creates a new builder-style object to manufacture [`AutoScalingSettingsUpdate`](crate::types::AutoScalingSettingsUpdate).
          62  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`AutoScalingSettingsUpdate`](crate::types::AutoScalingSettingsUpdate).
          63  +
    /* BuilderGenerator.kt:175 */
   42     64   
    pub fn builder() -> crate::types::builders::AutoScalingSettingsUpdateBuilder {
          65  +
        /* BuilderGenerator.kt:176 */
   43     66   
        crate::types::builders::AutoScalingSettingsUpdateBuilder::default()
          67  +
        /* BuilderGenerator.kt:175 */
   44     68   
    }
          69  +
    /* ClientCodegenVisitor.kt:237 */
   45     70   
}
   46     71   
   47         -
/// A builder for [`AutoScalingSettingsUpdate`](crate::types::AutoScalingSettingsUpdate).
          72  +
/// /* BuilderGenerator.kt:342 */A builder for [`AutoScalingSettingsUpdate`](crate::types::AutoScalingSettingsUpdate).
          73  +
/* RustType.kt:516 */
   48     74   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          75  +
/* RustType.kt:516 */
   49     76   
#[non_exhaustive]
          77  +
/* BuilderGenerator.kt:345 */
   50     78   
pub struct AutoScalingSettingsUpdateBuilder {
   51         -
    pub(crate) minimum_units: ::std::option::Option<i64>,
   52         -
    pub(crate) maximum_units: ::std::option::Option<i64>,
   53         -
    pub(crate) auto_scaling_disabled: ::std::option::Option<bool>,
   54         -
    pub(crate) auto_scaling_role_arn: ::std::option::Option<::std::string::String>,
          79  +
    /* BuilderGenerator.kt:275 */ pub(crate) minimum_units: ::std::option::Option<i64>,
          80  +
    /* BuilderGenerator.kt:275 */ pub(crate) maximum_units: ::std::option::Option<i64>,
          81  +
    /* BuilderGenerator.kt:275 */ pub(crate) auto_scaling_disabled: ::std::option::Option<bool>,
          82  +
    /* BuilderGenerator.kt:275 */ pub(crate) auto_scaling_role_arn: ::std::option::Option<::std::string::String>,
          83  +
    /* BuilderGenerator.kt:275 */
   55     84   
    pub(crate) scaling_policy_update: ::std::option::Option<crate::types::AutoScalingPolicyUpdate>,
          85  +
    /* BuilderGenerator.kt:345 */
   56     86   
}
          87  +
/* BuilderGenerator.kt:355 */
   57     88   
impl AutoScalingSettingsUpdateBuilder {
   58         -
    /// <p>The minimum capacity units that a global table or global secondary index should be scaled down to.</p>
          89  +
    /// /* BuilderGenerator.kt:286 */<p>The minimum capacity units that a global table or global secondary index should be scaled down to.</p>
          90  +
    /* BuilderGenerator.kt:291 */
   59     91   
    pub fn minimum_units(mut self, input: i64) -> Self {
          92  +
        /* BuilderGenerator.kt:292 */
   60     93   
        self.minimum_units = ::std::option::Option::Some(input);
          94  +
        /* BuilderGenerator.kt:293 */
   61     95   
        self
          96  +
        /* BuilderGenerator.kt:291 */
   62     97   
    }
   63         -
    /// <p>The minimum capacity units that a global table or global secondary index should be scaled down to.</p>
          98  +
    /// /* BuilderGenerator.kt:312 */<p>The minimum capacity units that a global table or global secondary index should be scaled down to.</p>
          99  +
    /* BuilderGenerator.kt:314 */
   64    100   
    pub fn set_minimum_units(mut self, input: ::std::option::Option<i64>) -> Self {
         101  +
        /* BuilderGenerator.kt:315 */
   65    102   
        self.minimum_units = input;
   66    103   
        self
         104  +
        /* BuilderGenerator.kt:314 */
   67    105   
    }
   68         -
    /// <p>The minimum capacity units that a global table or global secondary index should be scaled down to.</p>
         106  +
    /// /* BuilderGenerator.kt:334 */<p>The minimum capacity units that a global table or global secondary index should be scaled down to.</p>
         107  +
    /* BuilderGenerator.kt:336 */
   69    108   
    pub fn get_minimum_units(&self) -> &::std::option::Option<i64> {
         109  +
        /* BuilderGenerator.kt:337 */
   70    110   
        &self.minimum_units
         111  +
        /* BuilderGenerator.kt:336 */
   71    112   
    }
   72         -
    /// <p>The maximum capacity units that a global table or global secondary index should be scaled up to.</p>
         113  +
    /// /* BuilderGenerator.kt:286 */<p>The maximum capacity units that a global table or global secondary index should be scaled up to.</p>
         114  +
    /* BuilderGenerator.kt:291 */
   73    115   
    pub fn maximum_units(mut self, input: i64) -> Self {
         116  +
        /* BuilderGenerator.kt:292 */
   74    117   
        self.maximum_units = ::std::option::Option::Some(input);
         118  +
        /* BuilderGenerator.kt:293 */
   75    119   
        self
         120  +
        /* BuilderGenerator.kt:291 */
   76    121   
    }
   77         -
    /// <p>The maximum capacity units that a global table or global secondary index should be scaled up to.</p>
         122  +
    /// /* BuilderGenerator.kt:312 */<p>The maximum capacity units that a global table or global secondary index should be scaled up to.</p>
         123  +
    /* BuilderGenerator.kt:314 */
   78    124   
    pub fn set_maximum_units(mut self, input: ::std::option::Option<i64>) -> Self {
         125  +
        /* BuilderGenerator.kt:315 */
   79    126   
        self.maximum_units = input;
   80    127   
        self
         128  +
        /* BuilderGenerator.kt:314 */
   81    129   
    }
   82         -
    /// <p>The maximum capacity units that a global table or global secondary index should be scaled up to.</p>
         130  +
    /// /* BuilderGenerator.kt:334 */<p>The maximum capacity units that a global table or global secondary index should be scaled up to.</p>
         131  +
    /* BuilderGenerator.kt:336 */
   83    132   
    pub fn get_maximum_units(&self) -> &::std::option::Option<i64> {
         133  +
        /* BuilderGenerator.kt:337 */
   84    134   
        &self.maximum_units
         135  +
        /* BuilderGenerator.kt:336 */
   85    136   
    }
   86         -
    /// <p>Disabled auto scaling for this global table or global secondary index.</p>
         137  +
    /// /* BuilderGenerator.kt:286 */<p>Disabled auto scaling for this global table or global secondary index.</p>
         138  +
    /* BuilderGenerator.kt:291 */
   87    139   
    pub fn auto_scaling_disabled(mut self, input: bool) -> Self {
         140  +
        /* BuilderGenerator.kt:292 */
   88    141   
        self.auto_scaling_disabled = ::std::option::Option::Some(input);
         142  +
        /* BuilderGenerator.kt:293 */
   89    143   
        self
         144  +
        /* BuilderGenerator.kt:291 */
   90    145   
    }
   91         -
    /// <p>Disabled auto scaling for this global table or global secondary index.</p>
         146  +
    /// /* BuilderGenerator.kt:312 */<p>Disabled auto scaling for this global table or global secondary index.</p>
         147  +
    /* BuilderGenerator.kt:314 */
   92    148   
    pub fn set_auto_scaling_disabled(mut self, input: ::std::option::Option<bool>) -> Self {
         149  +
        /* BuilderGenerator.kt:315 */
   93    150   
        self.auto_scaling_disabled = input;
   94    151   
        self
         152  +
        /* BuilderGenerator.kt:314 */
   95    153   
    }
   96         -
    /// <p>Disabled auto scaling for this global table or global secondary index.</p>
         154  +
    /// /* BuilderGenerator.kt:334 */<p>Disabled auto scaling for this global table or global secondary index.</p>
         155  +
    /* BuilderGenerator.kt:336 */
   97    156   
    pub fn get_auto_scaling_disabled(&self) -> &::std::option::Option<bool> {
         157  +
        /* BuilderGenerator.kt:337 */
   98    158   
        &self.auto_scaling_disabled
         159  +
        /* BuilderGenerator.kt:336 */
   99    160   
    }
  100         -
    /// <p>Role ARN used for configuring auto scaling policy.</p>
         161  +
    /// /* BuilderGenerator.kt:286 */<p>Role ARN used for configuring auto scaling policy.</p>
         162  +
    /* BuilderGenerator.kt:291 */
  101    163   
    pub fn auto_scaling_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         164  +
        /* BuilderGenerator.kt:292 */
  102    165   
        self.auto_scaling_role_arn = ::std::option::Option::Some(input.into());
         166  +
        /* BuilderGenerator.kt:293 */
  103    167   
        self
         168  +
        /* BuilderGenerator.kt:291 */
  104    169   
    }
  105         -
    /// <p>Role ARN used for configuring auto scaling policy.</p>
         170  +
    /// /* BuilderGenerator.kt:312 */<p>Role ARN used for configuring auto scaling policy.</p>
         171  +
    /* BuilderGenerator.kt:314 */
  106    172   
    pub fn set_auto_scaling_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         173  +
        /* BuilderGenerator.kt:315 */
  107    174   
        self.auto_scaling_role_arn = input;
  108    175   
        self
         176  +
        /* BuilderGenerator.kt:314 */
  109    177   
    }
  110         -
    /// <p>Role ARN used for configuring auto scaling policy.</p>
         178  +
    /// /* BuilderGenerator.kt:334 */<p>Role ARN used for configuring auto scaling policy.</p>
         179  +
    /* BuilderGenerator.kt:336 */
  111    180   
    pub fn get_auto_scaling_role_arn(&self) -> &::std::option::Option<::std::string::String> {
         181  +
        /* BuilderGenerator.kt:337 */
  112    182   
        &self.auto_scaling_role_arn
         183  +
        /* BuilderGenerator.kt:336 */
  113    184   
    }
  114         -
    /// <p>The scaling policy to apply for scaling target global table or global secondary index capacity units.</p>
         185  +
    /// /* BuilderGenerator.kt:286 */<p>The scaling policy to apply for scaling target global table or global secondary index capacity units.</p>
         186  +
    /* BuilderGenerator.kt:291 */
  115    187   
    pub fn scaling_policy_update(mut self, input: crate::types::AutoScalingPolicyUpdate) -> Self {
         188  +
        /* BuilderGenerator.kt:292 */
  116    189   
        self.scaling_policy_update = ::std::option::Option::Some(input);
         190  +
        /* BuilderGenerator.kt:293 */
  117    191   
        self
         192  +
        /* BuilderGenerator.kt:291 */
  118    193   
    }
  119         -
    /// <p>The scaling policy to apply for scaling target global table or global secondary index capacity units.</p>
         194  +
    /// /* BuilderGenerator.kt:312 */<p>The scaling policy to apply for scaling target global table or global secondary index capacity units.</p>
         195  +
    /* BuilderGenerator.kt:314 */
  120    196   
    pub fn set_scaling_policy_update(mut self, input: ::std::option::Option<crate::types::AutoScalingPolicyUpdate>) -> Self {
         197  +
        /* BuilderGenerator.kt:315 */
  121    198   
        self.scaling_policy_update = input;
  122    199   
        self
         200  +
        /* BuilderGenerator.kt:314 */
  123    201   
    }
  124         -
    /// <p>The scaling policy to apply for scaling target global table or global secondary index capacity units.</p>
         202  +
    /// /* BuilderGenerator.kt:334 */<p>The scaling policy to apply for scaling target global table or global secondary index capacity units.</p>
         203  +
    /* BuilderGenerator.kt:336 */
  125    204   
    pub fn get_scaling_policy_update(&self) -> &::std::option::Option<crate::types::AutoScalingPolicyUpdate> {
         205  +
        /* BuilderGenerator.kt:337 */
  126    206   
        &self.scaling_policy_update
         207  +
        /* BuilderGenerator.kt:336 */
  127    208   
    }
  128         -
    /// Consumes the builder and constructs a [`AutoScalingSettingsUpdate`](crate::types::AutoScalingSettingsUpdate).
         209  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`AutoScalingSettingsUpdate`](crate::types::AutoScalingSettingsUpdate).
         210  +
    /* BuilderGenerator.kt:253 */
  129    211   
    pub fn build(self) -> crate::types::AutoScalingSettingsUpdate {
         212  +
        /* BuilderGenerator.kt:477 */
  130    213   
        crate::types::AutoScalingSettingsUpdate {
  131         -
            minimum_units: self.minimum_units,
         214  +
            /* BuilderGenerator.kt:481 */ minimum_units: self.minimum_units,
         215  +
            /* BuilderGenerator.kt:481 */
  132    216   
            maximum_units: self.maximum_units,
         217  +
            /* BuilderGenerator.kt:481 */
  133    218   
            auto_scaling_disabled: self.auto_scaling_disabled,
         219  +
            /* BuilderGenerator.kt:481 */
  134    220   
            auto_scaling_role_arn: self.auto_scaling_role_arn,
         221  +
            /* BuilderGenerator.kt:481 */
  135    222   
            scaling_policy_update: self.scaling_policy_update,
         223  +
            /* BuilderGenerator.kt:477 */
  136    224   
        }
         225  +
        /* BuilderGenerator.kt:253 */
  137    226   
    }
         227  +
    /* BuilderGenerator.kt:355 */
  138    228   
}

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

@@ -1,1 +129,204 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>Represents the properties of a target tracking scaling policy.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>Represents the properties of a target tracking scaling policy.</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 AutoScalingTargetTrackingScalingPolicyConfigurationDescription {
    7         -
    /// <p>Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct AutoScalingTargetTrackingScalingPolicyConfigurationDescription {
           9  +
    /// /* StructureGenerator.kt:231 */<p>Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.</p>
    8     10   
    pub disable_scale_in: ::std::option::Option<bool>,
    9         -
    /// <p>The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application auto scaling scales out your scalable target immediately.</p>
          11  +
    /// /* StructureGenerator.kt:231 */<p>The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application auto scaling scales out your scalable target immediately.</p>
   10     12   
    pub scale_in_cooldown: ::std::option::Option<i32>,
   11         -
    /// <p>The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out.</p>
          13  +
    /// /* StructureGenerator.kt:231 */<p>The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out.</p>
   12     14   
    pub scale_out_cooldown: ::std::option::Option<i32>,
   13         -
    /// <p>The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).</p>
          15  +
    /// /* StructureGenerator.kt:231 */<p>The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).</p>
   14     16   
    pub target_value: f64,
          17  +
    /* StructureGenerator.kt:201 */
   15     18   
}
          19  +
/* StructureGenerator.kt:135 */
   16     20   
impl AutoScalingTargetTrackingScalingPolicyConfigurationDescription {
   17         -
    /// <p>Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.</p>
          21  +
    /// /* StructureGenerator.kt:231 */<p>Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.</p>
          22  +
    /* StructureGenerator.kt:166 */
   18     23   
    pub fn disable_scale_in(&self) -> ::std::option::Option<bool> {
          24  +
        /* StructureGenerator.kt:168 */
   19     25   
        self.disable_scale_in
          26  +
        /* StructureGenerator.kt:166 */
   20     27   
    }
   21         -
    /// <p>The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application auto scaling scales out your scalable target immediately.</p>
          28  +
    /// /* StructureGenerator.kt:231 */<p>The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application auto scaling scales out your scalable target immediately.</p>
          29  +
    /* StructureGenerator.kt:166 */
   22     30   
    pub fn scale_in_cooldown(&self) -> ::std::option::Option<i32> {
          31  +
        /* StructureGenerator.kt:168 */
   23     32   
        self.scale_in_cooldown
          33  +
        /* StructureGenerator.kt:166 */
   24     34   
    }
   25         -
    /// <p>The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out.</p>
          35  +
    /// /* StructureGenerator.kt:231 */<p>The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out.</p>
          36  +
    /* StructureGenerator.kt:166 */
   26     37   
    pub fn scale_out_cooldown(&self) -> ::std::option::Option<i32> {
          38  +
        /* StructureGenerator.kt:168 */
   27     39   
        self.scale_out_cooldown
          40  +
        /* StructureGenerator.kt:166 */
   28     41   
    }
   29         -
    /// <p>The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).</p>
          42  +
    /// /* StructureGenerator.kt:231 */<p>The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).</p>
          43  +
    /* StructureGenerator.kt:166 */
   30     44   
    pub fn target_value(&self) -> f64 {
          45  +
        /* StructureGenerator.kt:168 */
   31     46   
        self.target_value
          47  +
        /* StructureGenerator.kt:166 */
   32     48   
    }
          49  +
    /* StructureGenerator.kt:135 */
   33     50   
}
          51  +
/* ClientCodegenVisitor.kt:237 */
   34     52   
impl AutoScalingTargetTrackingScalingPolicyConfigurationDescription {
   35         -
    /// Creates a new builder-style object to manufacture [`AutoScalingTargetTrackingScalingPolicyConfigurationDescription`](crate::types::AutoScalingTargetTrackingScalingPolicyConfigurationDescription).
          53  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`AutoScalingTargetTrackingScalingPolicyConfigurationDescription`](crate::types::AutoScalingTargetTrackingScalingPolicyConfigurationDescription).
          54  +
    /* BuilderGenerator.kt:175 */
   36     55   
    pub fn builder() -> crate::types::builders::AutoScalingTargetTrackingScalingPolicyConfigurationDescriptionBuilder {
          56  +
        /* BuilderGenerator.kt:176 */
   37     57   
        crate::types::builders::AutoScalingTargetTrackingScalingPolicyConfigurationDescriptionBuilder::default()
          58  +
        /* BuilderGenerator.kt:175 */
   38     59   
    }
          60  +
    /* ClientCodegenVisitor.kt:237 */
   39     61   
}
   40     62   
   41         -
/// A builder for [`AutoScalingTargetTrackingScalingPolicyConfigurationDescription`](crate::types::AutoScalingTargetTrackingScalingPolicyConfigurationDescription).
          63  +
/// /* BuilderGenerator.kt:342 */A builder for [`AutoScalingTargetTrackingScalingPolicyConfigurationDescription`](crate::types::AutoScalingTargetTrackingScalingPolicyConfigurationDescription).
          64  +
/* RustType.kt:516 */
   42     65   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          66  +
/* RustType.kt:516 */
   43     67   
#[non_exhaustive]
          68  +
/* BuilderGenerator.kt:345 */
   44     69   
pub struct AutoScalingTargetTrackingScalingPolicyConfigurationDescriptionBuilder {
   45         -
    pub(crate) disable_scale_in: ::std::option::Option<bool>,
   46         -
    pub(crate) scale_in_cooldown: ::std::option::Option<i32>,
   47         -
    pub(crate) scale_out_cooldown: ::std::option::Option<i32>,
   48         -
    pub(crate) target_value: ::std::option::Option<f64>,
          70  +
    /* BuilderGenerator.kt:275 */ pub(crate) disable_scale_in: ::std::option::Option<bool>,
          71  +
    /* BuilderGenerator.kt:275 */ pub(crate) scale_in_cooldown: ::std::option::Option<i32>,
          72  +
    /* BuilderGenerator.kt:275 */ pub(crate) scale_out_cooldown: ::std::option::Option<i32>,
          73  +
    /* BuilderGenerator.kt:275 */ pub(crate) target_value: ::std::option::Option<f64>,
          74  +
    /* BuilderGenerator.kt:345 */
   49     75   
}
          76  +
/* BuilderGenerator.kt:355 */
   50     77   
impl AutoScalingTargetTrackingScalingPolicyConfigurationDescriptionBuilder {
   51         -
    /// <p>Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.</p>
          78  +
    /// /* BuilderGenerator.kt:286 */<p>Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.</p>
          79  +
    /* BuilderGenerator.kt:291 */
   52     80   
    pub fn disable_scale_in(mut self, input: bool) -> Self {
          81  +
        /* BuilderGenerator.kt:292 */
   53     82   
        self.disable_scale_in = ::std::option::Option::Some(input);
          83  +
        /* BuilderGenerator.kt:293 */
   54     84   
        self
          85  +
        /* BuilderGenerator.kt:291 */
   55     86   
    }
   56         -
    /// <p>Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.</p>
          87  +
    /// /* BuilderGenerator.kt:312 */<p>Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.</p>
          88  +
    /* BuilderGenerator.kt:314 */
   57     89   
    pub fn set_disable_scale_in(mut self, input: ::std::option::Option<bool>) -> Self {
          90  +
        /* BuilderGenerator.kt:315 */
   58     91   
        self.disable_scale_in = input;
   59     92   
        self
          93  +
        /* BuilderGenerator.kt:314 */
   60     94   
    }
   61         -
    /// <p>Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.</p>
          95  +
    /// /* BuilderGenerator.kt:334 */<p>Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.</p>
          96  +
    /* BuilderGenerator.kt:336 */
   62     97   
    pub fn get_disable_scale_in(&self) -> &::std::option::Option<bool> {
          98  +
        /* BuilderGenerator.kt:337 */
   63     99   
        &self.disable_scale_in
         100  +
        /* BuilderGenerator.kt:336 */
   64    101   
    }
   65         -
    /// <p>The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application auto scaling scales out your scalable target immediately.</p>
         102  +
    /// /* BuilderGenerator.kt:286 */<p>The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application auto scaling scales out your scalable target immediately.</p>
         103  +
    /* BuilderGenerator.kt:291 */
   66    104   
    pub fn scale_in_cooldown(mut self, input: i32) -> Self {
         105  +
        /* BuilderGenerator.kt:292 */
   67    106   
        self.scale_in_cooldown = ::std::option::Option::Some(input);
         107  +
        /* BuilderGenerator.kt:293 */
   68    108   
        self
         109  +
        /* BuilderGenerator.kt:291 */
   69    110   
    }
   70         -
    /// <p>The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application auto scaling scales out your scalable target immediately.</p>
         111  +
    /// /* BuilderGenerator.kt:312 */<p>The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application auto scaling scales out your scalable target immediately.</p>
         112  +
    /* BuilderGenerator.kt:314 */
   71    113   
    pub fn set_scale_in_cooldown(mut self, input: ::std::option::Option<i32>) -> Self {
         114  +
        /* BuilderGenerator.kt:315 */
   72    115   
        self.scale_in_cooldown = input;
   73    116   
        self
         117  +
        /* BuilderGenerator.kt:314 */
   74    118   
    }
   75         -
    /// <p>The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application auto scaling scales out your scalable target immediately.</p>
         119  +
    /// /* BuilderGenerator.kt:334 */<p>The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application auto scaling scales out your scalable target immediately.</p>
         120  +
    /* BuilderGenerator.kt:336 */
   76    121   
    pub fn get_scale_in_cooldown(&self) -> &::std::option::Option<i32> {
         122  +
        /* BuilderGenerator.kt:337 */
   77    123   
        &self.scale_in_cooldown
         124  +
        /* BuilderGenerator.kt:336 */
   78    125   
    }
   79         -
    /// <p>The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out.</p>
         126  +
    /// /* BuilderGenerator.kt:286 */<p>The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out.</p>
         127  +
    /* BuilderGenerator.kt:291 */
   80    128   
    pub fn scale_out_cooldown(mut self, input: i32) -> Self {
         129  +
        /* BuilderGenerator.kt:292 */
   81    130   
        self.scale_out_cooldown = ::std::option::Option::Some(input);
         131  +
        /* BuilderGenerator.kt:293 */
   82    132   
        self
         133  +
        /* BuilderGenerator.kt:291 */
   83    134   
    }
   84         -
    /// <p>The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out.</p>
         135  +
    /// /* BuilderGenerator.kt:312 */<p>The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out.</p>
         136  +
    /* BuilderGenerator.kt:314 */
   85    137   
    pub fn set_scale_out_cooldown(mut self, input: ::std::option::Option<i32>) -> Self {
         138  +
        /* BuilderGenerator.kt:315 */
   86    139   
        self.scale_out_cooldown = input;
   87    140   
        self
         141  +
        /* BuilderGenerator.kt:314 */
   88    142   
    }
   89         -
    /// <p>The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out.</p>
         143  +
    /// /* BuilderGenerator.kt:334 */<p>The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out.</p>
         144  +
    /* BuilderGenerator.kt:336 */
   90    145   
    pub fn get_scale_out_cooldown(&self) -> &::std::option::Option<i32> {
         146  +
        /* BuilderGenerator.kt:337 */
   91    147   
        &self.scale_out_cooldown
         148  +
        /* BuilderGenerator.kt:336 */
   92    149   
    }
   93         -
    /// <p>The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).</p>
   94         -
    /// This field is required.
         150  +
    /// /* BuilderGenerator.kt:286 */<p>The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).</p>
         151  +
    /// /* BuilderGenerator.kt:288 */This field is required.
         152  +
    /* BuilderGenerator.kt:291 */
   95    153   
    pub fn target_value(mut self, input: f64) -> Self {
         154  +
        /* BuilderGenerator.kt:292 */
   96    155   
        self.target_value = ::std::option::Option::Some(input);
         156  +
        /* BuilderGenerator.kt:293 */
   97    157   
        self
         158  +
        /* BuilderGenerator.kt:291 */
   98    159   
    }
   99         -
    /// <p>The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).</p>
         160  +
    /// /* BuilderGenerator.kt:312 */<p>The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).</p>
         161  +
    /* BuilderGenerator.kt:314 */
  100    162   
    pub fn set_target_value(mut self, input: ::std::option::Option<f64>) -> Self {
         163  +
        /* BuilderGenerator.kt:315 */
  101    164   
        self.target_value = input;
  102    165   
        self
         166  +
        /* BuilderGenerator.kt:314 */
  103    167   
    }
  104         -
    /// <p>The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).</p>
         168  +
    /// /* BuilderGenerator.kt:334 */<p>The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).</p>
         169  +
    /* BuilderGenerator.kt:336 */
  105    170   
    pub fn get_target_value(&self) -> &::std::option::Option<f64> {
         171  +
        /* BuilderGenerator.kt:337 */
  106    172   
        &self.target_value
         173  +
        /* BuilderGenerator.kt:336 */
  107    174   
    }
  108         -
    /// Consumes the builder and constructs a [`AutoScalingTargetTrackingScalingPolicyConfigurationDescription`](crate::types::AutoScalingTargetTrackingScalingPolicyConfigurationDescription).
  109         -
    /// This method will fail if any of the following fields are not set:
  110         -
    /// - [`target_value`](crate::types::builders::AutoScalingTargetTrackingScalingPolicyConfigurationDescriptionBuilder::target_value)
         175  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`AutoScalingTargetTrackingScalingPolicyConfigurationDescription`](crate::types::AutoScalingTargetTrackingScalingPolicyConfigurationDescription).
         176  +
    /// /* BuilderGenerator.kt:243 */This method will fail if any of the following fields are not set:
         177  +
    /// /* BuilderGenerator.kt:246 */- [`target_value`](crate::types::builders::AutoScalingTargetTrackingScalingPolicyConfigurationDescriptionBuilder::target_value)
         178  +
    /* BuilderGenerator.kt:253 */
  111    179   
    pub fn build(
  112    180   
        self,
  113    181   
    ) -> ::std::result::Result<
  114    182   
        crate::types::AutoScalingTargetTrackingScalingPolicyConfigurationDescription,
  115    183   
        ::aws_smithy_types::error::operation::BuildError,
  116    184   
    > {
  117         -
        ::std::result::Result::Ok(crate::types::AutoScalingTargetTrackingScalingPolicyConfigurationDescription {
  118         -
            disable_scale_in: self.disable_scale_in,
  119         -
            scale_in_cooldown: self.scale_in_cooldown,
  120         -
            scale_out_cooldown: self.scale_out_cooldown,
  121         -
            target_value: self.target_value.ok_or_else(|| {
  122         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
  123         -
                    "target_value",
  124         -
                    "target_value was not specified but it is required when building AutoScalingTargetTrackingScalingPolicyConfigurationDescription",
  125         -
                )
  126         -
            })?,
  127         -
        })
  128         -
    }
         185  +
        /* BuilderGenerator.kt:254 */
         186  +
        ::std::result::Result::Ok(
         187  +
            /* BuilderGenerator.kt:477 */crate::types::AutoScalingTargetTrackingScalingPolicyConfigurationDescription {
         188  +
                /* BuilderGenerator.kt:481 */disable_scale_in: self.disable_scale_in
         189  +
                ,
         190  +
                /* BuilderGenerator.kt:481 */scale_in_cooldown: self.scale_in_cooldown
         191  +
                ,
         192  +
                /* BuilderGenerator.kt:481 */scale_out_cooldown: self.scale_out_cooldown
         193  +
                ,
         194  +
                /* BuilderGenerator.kt:481 */target_value: self.target_value
         195  +
                    /* BuilderGenerator.kt:494 */.ok_or_else(||
         196  +
                        /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("target_value", "target_value was not specified but it is required when building AutoScalingTargetTrackingScalingPolicyConfigurationDescription")
         197  +
                    /* BuilderGenerator.kt:494 */)?
         198  +
                ,
         199  +
            /* BuilderGenerator.kt:477 */}
         200  +
        /* BuilderGenerator.kt:254 */)
         201  +
        /* BuilderGenerator.kt:253 */
         202  +
    }
         203  +
    /* BuilderGenerator.kt:355 */
  129    204   
}

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

@@ -1,1 +129,204 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>Represents the settings of a target tracking scaling policy that will be modified.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>Represents the settings of a target tracking scaling policy 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 AutoScalingTargetTrackingScalingPolicyConfigurationUpdate {
    7         -
    /// <p>Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct AutoScalingTargetTrackingScalingPolicyConfigurationUpdate {
           9  +
    /// /* StructureGenerator.kt:231 */<p>Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.</p>
    8     10   
    pub disable_scale_in: ::std::option::Option<bool>,
    9         -
    /// <p>The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application auto scaling scales out your scalable target immediately.</p>
          11  +
    /// /* StructureGenerator.kt:231 */<p>The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application auto scaling scales out your scalable target immediately.</p>
   10     12   
    pub scale_in_cooldown: ::std::option::Option<i32>,
   11         -
    /// <p>The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out.</p>
          13  +
    /// /* StructureGenerator.kt:231 */<p>The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out.</p>
   12     14   
    pub scale_out_cooldown: ::std::option::Option<i32>,
   13         -
    /// <p>The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).</p>
          15  +
    /// /* StructureGenerator.kt:231 */<p>The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).</p>
   14     16   
    pub target_value: f64,
          17  +
    /* StructureGenerator.kt:201 */
   15     18   
}
          19  +
/* StructureGenerator.kt:135 */
   16     20   
impl AutoScalingTargetTrackingScalingPolicyConfigurationUpdate {
   17         -
    /// <p>Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.</p>
          21  +
    /// /* StructureGenerator.kt:231 */<p>Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.</p>
          22  +
    /* StructureGenerator.kt:166 */
   18     23   
    pub fn disable_scale_in(&self) -> ::std::option::Option<bool> {
          24  +
        /* StructureGenerator.kt:168 */
   19     25   
        self.disable_scale_in
          26  +
        /* StructureGenerator.kt:166 */
   20     27   
    }
   21         -
    /// <p>The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application auto scaling scales out your scalable target immediately.</p>
          28  +
    /// /* StructureGenerator.kt:231 */<p>The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application auto scaling scales out your scalable target immediately.</p>
          29  +
    /* StructureGenerator.kt:166 */
   22     30   
    pub fn scale_in_cooldown(&self) -> ::std::option::Option<i32> {
          31  +
        /* StructureGenerator.kt:168 */
   23     32   
        self.scale_in_cooldown
          33  +
        /* StructureGenerator.kt:166 */
   24     34   
    }
   25         -
    /// <p>The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out.</p>
          35  +
    /// /* StructureGenerator.kt:231 */<p>The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out.</p>
          36  +
    /* StructureGenerator.kt:166 */
   26     37   
    pub fn scale_out_cooldown(&self) -> ::std::option::Option<i32> {
          38  +
        /* StructureGenerator.kt:168 */
   27     39   
        self.scale_out_cooldown
          40  +
        /* StructureGenerator.kt:166 */
   28     41   
    }
   29         -
    /// <p>The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).</p>
          42  +
    /// /* StructureGenerator.kt:231 */<p>The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).</p>
          43  +
    /* StructureGenerator.kt:166 */
   30     44   
    pub fn target_value(&self) -> f64 {
          45  +
        /* StructureGenerator.kt:168 */
   31     46   
        self.target_value
          47  +
        /* StructureGenerator.kt:166 */
   32     48   
    }
          49  +
    /* StructureGenerator.kt:135 */
   33     50   
}
          51  +
/* ClientCodegenVisitor.kt:237 */
   34     52   
impl AutoScalingTargetTrackingScalingPolicyConfigurationUpdate {
   35         -
    /// Creates a new builder-style object to manufacture [`AutoScalingTargetTrackingScalingPolicyConfigurationUpdate`](crate::types::AutoScalingTargetTrackingScalingPolicyConfigurationUpdate).
          53  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`AutoScalingTargetTrackingScalingPolicyConfigurationUpdate`](crate::types::AutoScalingTargetTrackingScalingPolicyConfigurationUpdate).
          54  +
    /* BuilderGenerator.kt:175 */
   36     55   
    pub fn builder() -> crate::types::builders::AutoScalingTargetTrackingScalingPolicyConfigurationUpdateBuilder {
          56  +
        /* BuilderGenerator.kt:176 */
   37     57   
        crate::types::builders::AutoScalingTargetTrackingScalingPolicyConfigurationUpdateBuilder::default()
          58  +
        /* BuilderGenerator.kt:175 */
   38     59   
    }
          60  +
    /* ClientCodegenVisitor.kt:237 */
   39     61   
}
   40     62   
   41         -
/// A builder for [`AutoScalingTargetTrackingScalingPolicyConfigurationUpdate`](crate::types::AutoScalingTargetTrackingScalingPolicyConfigurationUpdate).
          63  +
/// /* BuilderGenerator.kt:342 */A builder for [`AutoScalingTargetTrackingScalingPolicyConfigurationUpdate`](crate::types::AutoScalingTargetTrackingScalingPolicyConfigurationUpdate).
          64  +
/* RustType.kt:516 */
   42     65   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          66  +
/* RustType.kt:516 */
   43     67   
#[non_exhaustive]
          68  +
/* BuilderGenerator.kt:345 */
   44     69   
pub struct AutoScalingTargetTrackingScalingPolicyConfigurationUpdateBuilder {
   45         -
    pub(crate) disable_scale_in: ::std::option::Option<bool>,
   46         -
    pub(crate) scale_in_cooldown: ::std::option::Option<i32>,
   47         -
    pub(crate) scale_out_cooldown: ::std::option::Option<i32>,
   48         -
    pub(crate) target_value: ::std::option::Option<f64>,
          70  +
    /* BuilderGenerator.kt:275 */ pub(crate) disable_scale_in: ::std::option::Option<bool>,
          71  +
    /* BuilderGenerator.kt:275 */ pub(crate) scale_in_cooldown: ::std::option::Option<i32>,
          72  +
    /* BuilderGenerator.kt:275 */ pub(crate) scale_out_cooldown: ::std::option::Option<i32>,
          73  +
    /* BuilderGenerator.kt:275 */ pub(crate) target_value: ::std::option::Option<f64>,
          74  +
    /* BuilderGenerator.kt:345 */
   49     75   
}
          76  +
/* BuilderGenerator.kt:355 */
   50     77   
impl AutoScalingTargetTrackingScalingPolicyConfigurationUpdateBuilder {
   51         -
    /// <p>Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.</p>
          78  +
    /// /* BuilderGenerator.kt:286 */<p>Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.</p>
          79  +
    /* BuilderGenerator.kt:291 */
   52     80   
    pub fn disable_scale_in(mut self, input: bool) -> Self {
          81  +
        /* BuilderGenerator.kt:292 */
   53     82   
        self.disable_scale_in = ::std::option::Option::Some(input);
          83  +
        /* BuilderGenerator.kt:293 */
   54     84   
        self
          85  +
        /* BuilderGenerator.kt:291 */
   55     86   
    }
   56         -
    /// <p>Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.</p>
          87  +
    /// /* BuilderGenerator.kt:312 */<p>Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.</p>
          88  +
    /* BuilderGenerator.kt:314 */
   57     89   
    pub fn set_disable_scale_in(mut self, input: ::std::option::Option<bool>) -> Self {
          90  +
        /* BuilderGenerator.kt:315 */
   58     91   
        self.disable_scale_in = input;
   59     92   
        self
          93  +
        /* BuilderGenerator.kt:314 */
   60     94   
    }
   61         -
    /// <p>Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.</p>
          95  +
    /// /* BuilderGenerator.kt:334 */<p>Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.</p>
          96  +
    /* BuilderGenerator.kt:336 */
   62     97   
    pub fn get_disable_scale_in(&self) -> &::std::option::Option<bool> {
          98  +
        /* BuilderGenerator.kt:337 */
   63     99   
        &self.disable_scale_in
         100  +
        /* BuilderGenerator.kt:336 */
   64    101   
    }
   65         -
    /// <p>The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application auto scaling scales out your scalable target immediately.</p>
         102  +
    /// /* BuilderGenerator.kt:286 */<p>The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application auto scaling scales out your scalable target immediately.</p>
         103  +
    /* BuilderGenerator.kt:291 */
   66    104   
    pub fn scale_in_cooldown(mut self, input: i32) -> Self {
         105  +
        /* BuilderGenerator.kt:292 */
   67    106   
        self.scale_in_cooldown = ::std::option::Option::Some(input);
         107  +
        /* BuilderGenerator.kt:293 */
   68    108   
        self
         109  +
        /* BuilderGenerator.kt:291 */
   69    110   
    }
   70         -
    /// <p>The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application auto scaling scales out your scalable target immediately.</p>
         111  +
    /// /* BuilderGenerator.kt:312 */<p>The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application auto scaling scales out your scalable target immediately.</p>
         112  +
    /* BuilderGenerator.kt:314 */
   71    113   
    pub fn set_scale_in_cooldown(mut self, input: ::std::option::Option<i32>) -> Self {
         114  +
        /* BuilderGenerator.kt:315 */
   72    115   
        self.scale_in_cooldown = input;
   73    116   
        self
         117  +
        /* BuilderGenerator.kt:314 */
   74    118   
    }
   75         -
    /// <p>The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application auto scaling scales out your scalable target immediately.</p>
         119  +
    /// /* BuilderGenerator.kt:334 */<p>The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application auto scaling scales out your scalable target immediately.</p>
         120  +
    /* BuilderGenerator.kt:336 */
   76    121   
    pub fn get_scale_in_cooldown(&self) -> &::std::option::Option<i32> {
         122  +
        /* BuilderGenerator.kt:337 */
   77    123   
        &self.scale_in_cooldown
         124  +
        /* BuilderGenerator.kt:336 */
   78    125   
    }
   79         -
    /// <p>The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out.</p>
         126  +
    /// /* BuilderGenerator.kt:286 */<p>The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out.</p>
         127  +
    /* BuilderGenerator.kt:291 */
   80    128   
    pub fn scale_out_cooldown(mut self, input: i32) -> Self {
         129  +
        /* BuilderGenerator.kt:292 */
   81    130   
        self.scale_out_cooldown = ::std::option::Option::Some(input);
         131  +
        /* BuilderGenerator.kt:293 */
   82    132   
        self
         133  +
        /* BuilderGenerator.kt:291 */
   83    134   
    }
   84         -
    /// <p>The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out.</p>
         135  +
    /// /* BuilderGenerator.kt:312 */<p>The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out.</p>
         136  +
    /* BuilderGenerator.kt:314 */
   85    137   
    pub fn set_scale_out_cooldown(mut self, input: ::std::option::Option<i32>) -> Self {
         138  +
        /* BuilderGenerator.kt:315 */
   86    139   
        self.scale_out_cooldown = input;
   87    140   
        self
         141  +
        /* BuilderGenerator.kt:314 */
   88    142   
    }
   89         -
    /// <p>The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out.</p>
         143  +
    /// /* BuilderGenerator.kt:334 */<p>The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out.</p>
         144  +
    /* BuilderGenerator.kt:336 */
   90    145   
    pub fn get_scale_out_cooldown(&self) -> &::std::option::Option<i32> {
         146  +
        /* BuilderGenerator.kt:337 */
   91    147   
        &self.scale_out_cooldown
         148  +
        /* BuilderGenerator.kt:336 */
   92    149   
    }
   93         -
    /// <p>The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).</p>
   94         -
    /// This field is required.
         150  +
    /// /* BuilderGenerator.kt:286 */<p>The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).</p>
         151  +
    /// /* BuilderGenerator.kt:288 */This field is required.
         152  +
    /* BuilderGenerator.kt:291 */
   95    153   
    pub fn target_value(mut self, input: f64) -> Self {
         154  +
        /* BuilderGenerator.kt:292 */
   96    155   
        self.target_value = ::std::option::Option::Some(input);
         156  +
        /* BuilderGenerator.kt:293 */
   97    157   
        self
         158  +
        /* BuilderGenerator.kt:291 */
   98    159   
    }
   99         -
    /// <p>The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).</p>
         160  +
    /// /* BuilderGenerator.kt:312 */<p>The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).</p>
         161  +
    /* BuilderGenerator.kt:314 */
  100    162   
    pub fn set_target_value(mut self, input: ::std::option::Option<f64>) -> Self {
         163  +
        /* BuilderGenerator.kt:315 */
  101    164   
        self.target_value = input;
  102    165   
        self
         166  +
        /* BuilderGenerator.kt:314 */
  103    167   
    }
  104         -
    /// <p>The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).</p>
         168  +
    /// /* BuilderGenerator.kt:334 */<p>The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).</p>
         169  +
    /* BuilderGenerator.kt:336 */
  105    170   
    pub fn get_target_value(&self) -> &::std::option::Option<f64> {
         171  +
        /* BuilderGenerator.kt:337 */
  106    172   
        &self.target_value
         173  +
        /* BuilderGenerator.kt:336 */
  107    174   
    }
  108         -
    /// Consumes the builder and constructs a [`AutoScalingTargetTrackingScalingPolicyConfigurationUpdate`](crate::types::AutoScalingTargetTrackingScalingPolicyConfigurationUpdate).
  109         -
    /// This method will fail if any of the following fields are not set:
  110         -
    /// - [`target_value`](crate::types::builders::AutoScalingTargetTrackingScalingPolicyConfigurationUpdateBuilder::target_value)
         175  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`AutoScalingTargetTrackingScalingPolicyConfigurationUpdate`](crate::types::AutoScalingTargetTrackingScalingPolicyConfigurationUpdate).
         176  +
    /// /* BuilderGenerator.kt:243 */This method will fail if any of the following fields are not set:
         177  +
    /// /* BuilderGenerator.kt:246 */- [`target_value`](crate::types::builders::AutoScalingTargetTrackingScalingPolicyConfigurationUpdateBuilder::target_value)
         178  +
    /* BuilderGenerator.kt:253 */
  111    179   
    pub fn build(
  112    180   
        self,
  113    181   
    ) -> ::std::result::Result<
  114    182   
        crate::types::AutoScalingTargetTrackingScalingPolicyConfigurationUpdate,
  115    183   
        ::aws_smithy_types::error::operation::BuildError,
  116    184   
    > {
  117         -
        ::std::result::Result::Ok(crate::types::AutoScalingTargetTrackingScalingPolicyConfigurationUpdate {
  118         -
            disable_scale_in: self.disable_scale_in,
  119         -
            scale_in_cooldown: self.scale_in_cooldown,
  120         -
            scale_out_cooldown: self.scale_out_cooldown,
  121         -
            target_value: self.target_value.ok_or_else(|| {
  122         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
  123         -
                    "target_value",
  124         -
                    "target_value was not specified but it is required when building AutoScalingTargetTrackingScalingPolicyConfigurationUpdate",
  125         -
                )
  126         -
            })?,
  127         -
        })
  128         -
    }
         185  +
        /* BuilderGenerator.kt:254 */
         186  +
        ::std::result::Result::Ok(
         187  +
            /* BuilderGenerator.kt:477 */crate::types::AutoScalingTargetTrackingScalingPolicyConfigurationUpdate {
         188  +
                /* BuilderGenerator.kt:481 */disable_scale_in: self.disable_scale_in
         189  +
                ,
         190  +
                /* BuilderGenerator.kt:481 */scale_in_cooldown: self.scale_in_cooldown
         191  +
                ,
         192  +
                /* BuilderGenerator.kt:481 */scale_out_cooldown: self.scale_out_cooldown
         193  +
                ,
         194  +
                /* BuilderGenerator.kt:481 */target_value: self.target_value
         195  +
                    /* BuilderGenerator.kt:494 */.ok_or_else(||
         196  +
                        /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("target_value", "target_value was not specified but it is required when building AutoScalingTargetTrackingScalingPolicyConfigurationUpdate")
         197  +
                    /* BuilderGenerator.kt:494 */)?
         198  +
                ,
         199  +
            /* BuilderGenerator.kt:477 */}
         200  +
        /* BuilderGenerator.kt:254 */)
         201  +
        /* BuilderGenerator.kt:253 */
         202  +
    }
         203  +
    /* BuilderGenerator.kt:355 */
  129    204   
}

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

@@ -1,1 +94,156 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>Contains the description of the backup created for the table.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>Contains the description of the backup created for the table.</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 BackupDescription {
    7         -
    /// <p>Contains the details of the backup created for the table.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct BackupDescription {
           9  +
    /// /* StructureGenerator.kt:231 */<p>Contains the details of the backup created for the table.</p>
    8     10   
    pub backup_details: ::std::option::Option<crate::types::BackupDetails>,
    9         -
    /// <p>Contains the details of the table when the backup was created.</p>
          11  +
    /// /* StructureGenerator.kt:231 */<p>Contains the details of the table when the backup was created.</p>
   10     12   
    pub source_table_details: ::std::option::Option<crate::types::SourceTableDetails>,
   11         -
    /// <p>Contains the details of the features enabled on the table when the backup was created. For example, LSIs, GSIs, streams, TTL.</p>
          13  +
    /// /* StructureGenerator.kt:231 */<p>Contains the details of the features enabled on the table when the backup was created. For example, LSIs, GSIs, streams, TTL.</p>
   12     14   
    pub source_table_feature_details: ::std::option::Option<crate::types::SourceTableFeatureDetails>,
          15  +
    /* StructureGenerator.kt:201 */
   13     16   
}
          17  +
/* StructureGenerator.kt:135 */
   14     18   
impl BackupDescription {
   15         -
    /// <p>Contains the details of the backup created for the table.</p>
          19  +
    /// /* StructureGenerator.kt:231 */<p>Contains the details of the backup created for the table.</p>
          20  +
    /* StructureGenerator.kt:166 */
   16     21   
    pub fn backup_details(&self) -> ::std::option::Option<&crate::types::BackupDetails> {
          22  +
        /* StructureGenerator.kt:170 */
   17     23   
        self.backup_details.as_ref()
          24  +
        /* StructureGenerator.kt:166 */
   18     25   
    }
   19         -
    /// <p>Contains the details of the table when the backup was created.</p>
          26  +
    /// /* StructureGenerator.kt:231 */<p>Contains the details of the table when the backup was created.</p>
          27  +
    /* StructureGenerator.kt:166 */
   20     28   
    pub fn source_table_details(&self) -> ::std::option::Option<&crate::types::SourceTableDetails> {
          29  +
        /* StructureGenerator.kt:170 */
   21     30   
        self.source_table_details.as_ref()
          31  +
        /* StructureGenerator.kt:166 */
   22     32   
    }
   23         -
    /// <p>Contains the details of the features enabled on the table when the backup was created. For example, LSIs, GSIs, streams, TTL.</p>
          33  +
    /// /* StructureGenerator.kt:231 */<p>Contains the details of the features enabled on the table when the backup was created. For example, LSIs, GSIs, streams, TTL.</p>
          34  +
    /* StructureGenerator.kt:166 */
   24     35   
    pub fn source_table_feature_details(&self) -> ::std::option::Option<&crate::types::SourceTableFeatureDetails> {
          36  +
        /* StructureGenerator.kt:170 */
   25     37   
        self.source_table_feature_details.as_ref()
          38  +
        /* StructureGenerator.kt:166 */
   26     39   
    }
          40  +
    /* StructureGenerator.kt:135 */
   27     41   
}
          42  +
/* ClientCodegenVisitor.kt:237 */
   28     43   
impl BackupDescription {
   29         -
    /// Creates a new builder-style object to manufacture [`BackupDescription`](crate::types::BackupDescription).
          44  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`BackupDescription`](crate::types::BackupDescription).
          45  +
    /* BuilderGenerator.kt:175 */
   30     46   
    pub fn builder() -> crate::types::builders::BackupDescriptionBuilder {
          47  +
        /* BuilderGenerator.kt:176 */
   31     48   
        crate::types::builders::BackupDescriptionBuilder::default()
          49  +
        /* BuilderGenerator.kt:175 */
   32     50   
    }
          51  +
    /* ClientCodegenVisitor.kt:237 */
   33     52   
}
   34     53   
   35         -
/// A builder for [`BackupDescription`](crate::types::BackupDescription).
          54  +
/// /* BuilderGenerator.kt:342 */A builder for [`BackupDescription`](crate::types::BackupDescription).
          55  +
/* RustType.kt:516 */
   36     56   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          57  +
/* RustType.kt:516 */
   37     58   
#[non_exhaustive]
          59  +
/* BuilderGenerator.kt:345 */
   38     60   
pub struct BackupDescriptionBuilder {
   39         -
    pub(crate) backup_details: ::std::option::Option<crate::types::BackupDetails>,
   40         -
    pub(crate) source_table_details: ::std::option::Option<crate::types::SourceTableDetails>,
          61  +
    /* BuilderGenerator.kt:275 */ pub(crate) backup_details: ::std::option::Option<crate::types::BackupDetails>,
          62  +
    /* BuilderGenerator.kt:275 */ pub(crate) source_table_details: ::std::option::Option<crate::types::SourceTableDetails>,
          63  +
    /* BuilderGenerator.kt:275 */
   41     64   
    pub(crate) source_table_feature_details: ::std::option::Option<crate::types::SourceTableFeatureDetails>,
          65  +
    /* BuilderGenerator.kt:345 */
   42     66   
}
          67  +
/* BuilderGenerator.kt:355 */
   43     68   
impl BackupDescriptionBuilder {
   44         -
    /// <p>Contains the details of the backup created for the table.</p>
          69  +
    /// /* BuilderGenerator.kt:286 */<p>Contains the details of the backup created for the table.</p>
          70  +
    /* BuilderGenerator.kt:291 */
   45     71   
    pub fn backup_details(mut self, input: crate::types::BackupDetails) -> Self {
          72  +
        /* BuilderGenerator.kt:292 */
   46     73   
        self.backup_details = ::std::option::Option::Some(input);
          74  +
        /* BuilderGenerator.kt:293 */
   47     75   
        self
          76  +
        /* BuilderGenerator.kt:291 */
   48     77   
    }
   49         -
    /// <p>Contains the details of the backup created for the table.</p>
          78  +
    /// /* BuilderGenerator.kt:312 */<p>Contains the details of the backup created for the table.</p>
          79  +
    /* BuilderGenerator.kt:314 */
   50     80   
    pub fn set_backup_details(mut self, input: ::std::option::Option<crate::types::BackupDetails>) -> Self {
          81  +
        /* BuilderGenerator.kt:315 */
   51     82   
        self.backup_details = input;
   52     83   
        self
          84  +
        /* BuilderGenerator.kt:314 */
   53     85   
    }
   54         -
    /// <p>Contains the details of the backup created for the table.</p>
          86  +
    /// /* BuilderGenerator.kt:334 */<p>Contains the details of the backup created for the table.</p>
          87  +
    /* BuilderGenerator.kt:336 */
   55     88   
    pub fn get_backup_details(&self) -> &::std::option::Option<crate::types::BackupDetails> {
          89  +
        /* BuilderGenerator.kt:337 */
   56     90   
        &self.backup_details
          91  +
        /* BuilderGenerator.kt:336 */
   57     92   
    }
   58         -
    /// <p>Contains the details of the table when the backup was created.</p>
          93  +
    /// /* BuilderGenerator.kt:286 */<p>Contains the details of the table when the backup was created.</p>
          94  +
    /* BuilderGenerator.kt:291 */
   59     95   
    pub fn source_table_details(mut self, input: crate::types::SourceTableDetails) -> Self {
          96  +
        /* BuilderGenerator.kt:292 */
   60     97   
        self.source_table_details = ::std::option::Option::Some(input);
          98  +
        /* BuilderGenerator.kt:293 */
   61     99   
        self
         100  +
        /* BuilderGenerator.kt:291 */
   62    101   
    }
   63         -
    /// <p>Contains the details of the table when the backup was created.</p>
         102  +
    /// /* BuilderGenerator.kt:312 */<p>Contains the details of the table when the backup was created.</p>
         103  +
    /* BuilderGenerator.kt:314 */
   64    104   
    pub fn set_source_table_details(mut self, input: ::std::option::Option<crate::types::SourceTableDetails>) -> Self {
         105  +
        /* BuilderGenerator.kt:315 */
   65    106   
        self.source_table_details = input;
   66    107   
        self
         108  +
        /* BuilderGenerator.kt:314 */
   67    109   
    }
   68         -
    /// <p>Contains the details of the table when the backup was created.</p>
         110  +
    /// /* BuilderGenerator.kt:334 */<p>Contains the details of the table when the backup was created.</p>
         111  +
    /* BuilderGenerator.kt:336 */
   69    112   
    pub fn get_source_table_details(&self) -> &::std::option::Option<crate::types::SourceTableDetails> {
         113  +
        /* BuilderGenerator.kt:337 */
   70    114   
        &self.source_table_details
         115  +
        /* BuilderGenerator.kt:336 */
   71    116   
    }
   72         -
    /// <p>Contains the details of the features enabled on the table when the backup was created. For example, LSIs, GSIs, streams, TTL.</p>
         117  +
    /// /* BuilderGenerator.kt:286 */<p>Contains the details of the features enabled on the table when the backup was created. For example, LSIs, GSIs, streams, TTL.</p>
         118  +
    /* BuilderGenerator.kt:291 */
   73    119   
    pub fn source_table_feature_details(mut self, input: crate::types::SourceTableFeatureDetails) -> Self {
         120  +
        /* BuilderGenerator.kt:292 */
   74    121   
        self.source_table_feature_details = ::std::option::Option::Some(input);
         122  +
        /* BuilderGenerator.kt:293 */
   75    123   
        self
         124  +
        /* BuilderGenerator.kt:291 */
   76    125   
    }
   77         -
    /// <p>Contains the details of the features enabled on the table when the backup was created. For example, LSIs, GSIs, streams, TTL.</p>
         126  +
    /// /* BuilderGenerator.kt:312 */<p>Contains the details of the features enabled on the table when the backup was created. For example, LSIs, GSIs, streams, TTL.</p>
         127  +
    /* BuilderGenerator.kt:314 */
   78    128   
    pub fn set_source_table_feature_details(mut self, input: ::std::option::Option<crate::types::SourceTableFeatureDetails>) -> Self {
         129  +
        /* BuilderGenerator.kt:315 */
   79    130   
        self.source_table_feature_details = input;
   80    131   
        self
         132  +
        /* BuilderGenerator.kt:314 */
   81    133   
    }
   82         -
    /// <p>Contains the details of the features enabled on the table when the backup was created. For example, LSIs, GSIs, streams, TTL.</p>
         134  +
    /// /* BuilderGenerator.kt:334 */<p>Contains the details of the features enabled on the table when the backup was created. For example, LSIs, GSIs, streams, TTL.</p>
         135  +
    /* BuilderGenerator.kt:336 */
   83    136   
    pub fn get_source_table_feature_details(&self) -> &::std::option::Option<crate::types::SourceTableFeatureDetails> {
         137  +
        /* BuilderGenerator.kt:337 */
   84    138   
        &self.source_table_feature_details
         139  +
        /* BuilderGenerator.kt:336 */
   85    140   
    }
   86         -
    /// Consumes the builder and constructs a [`BackupDescription`](crate::types::BackupDescription).
         141  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`BackupDescription`](crate::types::BackupDescription).
         142  +
    /* BuilderGenerator.kt:253 */
   87    143   
    pub fn build(self) -> crate::types::BackupDescription {
         144  +
        /* BuilderGenerator.kt:477 */
   88    145   
        crate::types::BackupDescription {
   89         -
            backup_details: self.backup_details,
         146  +
            /* BuilderGenerator.kt:481 */ backup_details: self.backup_details,
         147  +
            /* BuilderGenerator.kt:481 */
   90    148   
            source_table_details: self.source_table_details,
         149  +
            /* BuilderGenerator.kt:481 */
   91    150   
            source_table_feature_details: self.source_table_feature_details,
         151  +
            /* BuilderGenerator.kt:477 */
   92    152   
        }
         153  +
        /* BuilderGenerator.kt:253 */
   93    154   
    }
         155  +
    /* BuilderGenerator.kt:355 */
   94    156   
}

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

@@ -1,1 +260,370 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>Contains the details of the backup created for the table.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>Contains the details of the backup created for the table.</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 BackupDetails {
    7         -
    /// <p>ARN associated with the backup.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct BackupDetails {
           9  +
    /// /* StructureGenerator.kt:231 */<p>ARN associated with the backup.</p>
    8     10   
    pub backup_arn: ::std::string::String,
    9         -
    /// <p>Name of the requested backup.</p>
          11  +
    /// /* StructureGenerator.kt:231 */<p>Name of the requested backup.</p>
   10     12   
    pub backup_name: ::std::string::String,
   11         -
    /// <p>Size of the backup in bytes.</p>
          13  +
    /// /* StructureGenerator.kt:231 */<p>Size of the backup in bytes.</p>
   12     14   
    pub backup_size_bytes: ::std::option::Option<i64>,
   13         -
    /// <p>Backup can be in one of the following states: CREATING, ACTIVE, DELETED.</p>
          15  +
    /// /* StructureGenerator.kt:231 */<p>Backup can be in one of the following states: CREATING, ACTIVE, DELETED.</p>
   14     16   
    pub backup_status: crate::types::BackupStatus,
   15         -
    /// <p>BackupType:</p>
          17  +
    /// /* StructureGenerator.kt:231 */<p>BackupType:</p>
   16     18   
    /// <ul>
   17     19   
    /// <li>
   18     20   
    /// <p><code>USER</code> - You create and manage these using the on-demand backup feature.</p></li>
   19     21   
    /// <li>
   20     22   
    /// <p><code>SYSTEM</code> - If you delete a table with point-in-time recovery enabled, a <code>SYSTEM</code> backup is automatically created and is retained for 35 days (at no additional cost). System backups allow you to restore the deleted table to the state it was in just before the point of deletion.</p></li>
   21     23   
    /// <li>
   22     24   
    /// <p><code>AWS_BACKUP</code> - On-demand backup created by you from AWS Backup service.</p></li>
   23     25   
    /// </ul>
   24     26   
    pub backup_type: crate::types::BackupType,
   25         -
    /// <p>Time at which the backup was created. This is the request time of the backup.</p>
          27  +
    /// /* StructureGenerator.kt:231 */<p>Time at which the backup was created. This is the request time of the backup.</p>
   26     28   
    pub backup_creation_date_time: ::aws_smithy_types::DateTime,
   27         -
    /// <p>Time at which the automatic on-demand backup created by DynamoDB will expire. This <code>SYSTEM</code> on-demand backup expires automatically 35 days after its creation.</p>
          29  +
    /// /* StructureGenerator.kt:231 */<p>Time at which the automatic on-demand backup created by DynamoDB will expire. This <code>SYSTEM</code> on-demand backup expires automatically 35 days after its creation.</p>
   28     30   
    pub backup_expiry_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
          31  +
    /* StructureGenerator.kt:201 */
   29     32   
}
          33  +
/* StructureGenerator.kt:135 */
   30     34   
impl BackupDetails {
   31         -
    /// <p>ARN associated with the backup.</p>
          35  +
    /// /* StructureGenerator.kt:231 */<p>ARN associated with the backup.</p>
          36  +
    /* StructureGenerator.kt:166 */
   32     37   
    pub fn backup_arn(&self) -> &str {
          38  +
        /* StructureGenerator.kt:171 */
   33     39   
        use std::ops::Deref;
   34     40   
        self.backup_arn.deref()
          41  +
        /* StructureGenerator.kt:166 */
   35     42   
    }
   36         -
    /// <p>Name of the requested backup.</p>
          43  +
    /// /* StructureGenerator.kt:231 */<p>Name of the requested backup.</p>
          44  +
    /* StructureGenerator.kt:166 */
   37     45   
    pub fn backup_name(&self) -> &str {
          46  +
        /* StructureGenerator.kt:171 */
   38     47   
        use std::ops::Deref;
   39     48   
        self.backup_name.deref()
          49  +
        /* StructureGenerator.kt:166 */
   40     50   
    }
   41         -
    /// <p>Size of the backup in bytes.</p>
          51  +
    /// /* StructureGenerator.kt:231 */<p>Size of the backup in bytes.</p>
          52  +
    /* StructureGenerator.kt:166 */
   42     53   
    pub fn backup_size_bytes(&self) -> ::std::option::Option<i64> {
          54  +
        /* StructureGenerator.kt:168 */
   43     55   
        self.backup_size_bytes
          56  +
        /* StructureGenerator.kt:166 */
   44     57   
    }
   45         -
    /// <p>Backup can be in one of the following states: CREATING, ACTIVE, DELETED.</p>
          58  +
    /// /* StructureGenerator.kt:231 */<p>Backup can be in one of the following states: CREATING, ACTIVE, DELETED.</p>
          59  +
    /* StructureGenerator.kt:166 */
   46     60   
    pub fn backup_status(&self) -> &crate::types::BackupStatus {
          61  +
        /* StructureGenerator.kt:172 */
   47     62   
        &self.backup_status
          63  +
        /* StructureGenerator.kt:166 */
   48     64   
    }
   49         -
    /// <p>BackupType:</p>
          65  +
    /// /* StructureGenerator.kt:231 */<p>BackupType:</p>
   50     66   
    /// <ul>
   51     67   
    /// <li>
   52     68   
    /// <p><code>USER</code> - You create and manage these using the on-demand backup feature.</p></li>
   53     69   
    /// <li>
   54     70   
    /// <p><code>SYSTEM</code> - If you delete a table with point-in-time recovery enabled, a <code>SYSTEM</code> backup is automatically created and is retained for 35 days (at no additional cost). System backups allow you to restore the deleted table to the state it was in just before the point of deletion.</p></li>
   55     71   
    /// <li>
   56     72   
    /// <p><code>AWS_BACKUP</code> - On-demand backup created by you from AWS Backup service.</p></li>
   57     73   
    /// </ul>
          74  +
    /* StructureGenerator.kt:166 */
   58     75   
    pub fn backup_type(&self) -> &crate::types::BackupType {
          76  +
        /* StructureGenerator.kt:172 */
   59     77   
        &self.backup_type
          78  +
        /* StructureGenerator.kt:166 */
   60     79   
    }
   61         -
    /// <p>Time at which the backup was created. This is the request time of the backup.</p>
          80  +
    /// /* StructureGenerator.kt:231 */<p>Time at which the backup was created. This is the request time of the backup.</p>
          81  +
    /* StructureGenerator.kt:166 */
   62     82   
    pub fn backup_creation_date_time(&self) -> &::aws_smithy_types::DateTime {
          83  +
        /* StructureGenerator.kt:172 */
   63     84   
        &self.backup_creation_date_time
          85  +
        /* StructureGenerator.kt:166 */
   64     86   
    }
   65         -
    /// <p>Time at which the automatic on-demand backup created by DynamoDB will expire. This <code>SYSTEM</code> on-demand backup expires automatically 35 days after its creation.</p>
          87  +
    /// /* StructureGenerator.kt:231 */<p>Time at which the automatic on-demand backup created by DynamoDB will expire. This <code>SYSTEM</code> on-demand backup expires automatically 35 days after its creation.</p>
          88  +
    /* StructureGenerator.kt:166 */
   66     89   
    pub fn backup_expiry_date_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
          90  +
        /* StructureGenerator.kt:170 */
   67     91   
        self.backup_expiry_date_time.as_ref()
          92  +
        /* StructureGenerator.kt:166 */
   68     93   
    }
          94  +
    /* StructureGenerator.kt:135 */
   69     95   
}
          96  +
/* ClientCodegenVisitor.kt:237 */
   70     97   
impl BackupDetails {
   71         -
    /// Creates a new builder-style object to manufacture [`BackupDetails`](crate::types::BackupDetails).
          98  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`BackupDetails`](crate::types::BackupDetails).
          99  +
    /* BuilderGenerator.kt:175 */
   72    100   
    pub fn builder() -> crate::types::builders::BackupDetailsBuilder {
         101  +
        /* BuilderGenerator.kt:176 */
   73    102   
        crate::types::builders::BackupDetailsBuilder::default()
         103  +
        /* BuilderGenerator.kt:175 */
   74    104   
    }
         105  +
    /* ClientCodegenVisitor.kt:237 */
   75    106   
}
   76    107   
   77         -
/// A builder for [`BackupDetails`](crate::types::BackupDetails).
         108  +
/// /* BuilderGenerator.kt:342 */A builder for [`BackupDetails`](crate::types::BackupDetails).
         109  +
/* RustType.kt:516 */
   78    110   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         111  +
/* RustType.kt:516 */
   79    112   
#[non_exhaustive]
         113  +
/* BuilderGenerator.kt:345 */
   80    114   
pub struct BackupDetailsBuilder {
   81         -
    pub(crate) backup_arn: ::std::option::Option<::std::string::String>,
   82         -
    pub(crate) backup_name: ::std::option::Option<::std::string::String>,
   83         -
    pub(crate) backup_size_bytes: ::std::option::Option<i64>,
   84         -
    pub(crate) backup_status: ::std::option::Option<crate::types::BackupStatus>,
   85         -
    pub(crate) backup_type: ::std::option::Option<crate::types::BackupType>,
   86         -
    pub(crate) backup_creation_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
         115  +
    /* BuilderGenerator.kt:275 */ pub(crate) backup_arn: ::std::option::Option<::std::string::String>,
         116  +
    /* BuilderGenerator.kt:275 */ pub(crate) backup_name: ::std::option::Option<::std::string::String>,
         117  +
    /* BuilderGenerator.kt:275 */ pub(crate) backup_size_bytes: ::std::option::Option<i64>,
         118  +
    /* BuilderGenerator.kt:275 */ pub(crate) backup_status: ::std::option::Option<crate::types::BackupStatus>,
         119  +
    /* BuilderGenerator.kt:275 */ pub(crate) backup_type: ::std::option::Option<crate::types::BackupType>,
         120  +
    /* BuilderGenerator.kt:275 */ pub(crate) backup_creation_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
         121  +
    /* BuilderGenerator.kt:275 */
   87    122   
    pub(crate) backup_expiry_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
         123  +
    /* BuilderGenerator.kt:345 */
   88    124   
}
         125  +
/* BuilderGenerator.kt:355 */
   89    126   
impl BackupDetailsBuilder {
   90         -
    /// <p>ARN associated with the backup.</p>
   91         -
    /// This field is required.
         127  +
    /// /* BuilderGenerator.kt:286 */<p>ARN associated with the backup.</p>
         128  +
    /// /* BuilderGenerator.kt:288 */This field is required.
         129  +
    /* BuilderGenerator.kt:291 */
   92    130   
    pub fn backup_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         131  +
        /* BuilderGenerator.kt:292 */
   93    132   
        self.backup_arn = ::std::option::Option::Some(input.into());
         133  +
        /* BuilderGenerator.kt:293 */
   94    134   
        self
         135  +
        /* BuilderGenerator.kt:291 */
   95    136   
    }
   96         -
    /// <p>ARN associated with the backup.</p>
         137  +
    /// /* BuilderGenerator.kt:312 */<p>ARN associated with the backup.</p>
         138  +
    /* BuilderGenerator.kt:314 */
   97    139   
    pub fn set_backup_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         140  +
        /* BuilderGenerator.kt:315 */
   98    141   
        self.backup_arn = input;
   99    142   
        self
         143  +
        /* BuilderGenerator.kt:314 */
  100    144   
    }
  101         -
    /// <p>ARN associated with the backup.</p>
         145  +
    /// /* BuilderGenerator.kt:334 */<p>ARN associated with the backup.</p>
         146  +
    /* BuilderGenerator.kt:336 */
  102    147   
    pub fn get_backup_arn(&self) -> &::std::option::Option<::std::string::String> {
         148  +
        /* BuilderGenerator.kt:337 */
  103    149   
        &self.backup_arn
         150  +
        /* BuilderGenerator.kt:336 */
  104    151   
    }
  105         -
    /// <p>Name of the requested backup.</p>
  106         -
    /// This field is required.
         152  +
    /// /* BuilderGenerator.kt:286 */<p>Name of the requested backup.</p>
         153  +
    /// /* BuilderGenerator.kt:288 */This field is required.
         154  +
    /* BuilderGenerator.kt:291 */
  107    155   
    pub fn backup_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         156  +
        /* BuilderGenerator.kt:292 */
  108    157   
        self.backup_name = ::std::option::Option::Some(input.into());
         158  +
        /* BuilderGenerator.kt:293 */
  109    159   
        self
         160  +
        /* BuilderGenerator.kt:291 */
  110    161   
    }
  111         -
    /// <p>Name of the requested backup.</p>
         162  +
    /// /* BuilderGenerator.kt:312 */<p>Name of the requested backup.</p>
         163  +
    /* BuilderGenerator.kt:314 */
  112    164   
    pub fn set_backup_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         165  +
        /* BuilderGenerator.kt:315 */
  113    166   
        self.backup_name = input;
  114    167   
        self
         168  +
        /* BuilderGenerator.kt:314 */
  115    169   
    }
  116         -
    /// <p>Name of the requested backup.</p>
         170  +
    /// /* BuilderGenerator.kt:334 */<p>Name of the requested backup.</p>
         171  +
    /* BuilderGenerator.kt:336 */
  117    172   
    pub fn get_backup_name(&self) -> &::std::option::Option<::std::string::String> {
         173  +
        /* BuilderGenerator.kt:337 */
  118    174   
        &self.backup_name
         175  +
        /* BuilderGenerator.kt:336 */
  119    176   
    }
  120         -
    /// <p>Size of the backup in bytes.</p>
         177  +
    /// /* BuilderGenerator.kt:286 */<p>Size of the backup in bytes.</p>
         178  +
    /* BuilderGenerator.kt:291 */
  121    179   
    pub fn backup_size_bytes(mut self, input: i64) -> Self {
         180  +
        /* BuilderGenerator.kt:292 */
  122    181   
        self.backup_size_bytes = ::std::option::Option::Some(input);
         182  +
        /* BuilderGenerator.kt:293 */
  123    183   
        self
         184  +
        /* BuilderGenerator.kt:291 */
  124    185   
    }
  125         -
    /// <p>Size of the backup in bytes.</p>
         186  +
    /// /* BuilderGenerator.kt:312 */<p>Size of the backup in bytes.</p>
         187  +
    /* BuilderGenerator.kt:314 */
  126    188   
    pub fn set_backup_size_bytes(mut self, input: ::std::option::Option<i64>) -> Self {
         189  +
        /* BuilderGenerator.kt:315 */
  127    190   
        self.backup_size_bytes = input;
  128    191   
        self
         192  +
        /* BuilderGenerator.kt:314 */
  129    193   
    }
  130         -
    /// <p>Size of the backup in bytes.</p>
         194  +
    /// /* BuilderGenerator.kt:334 */<p>Size of the backup in bytes.</p>
         195  +
    /* BuilderGenerator.kt:336 */
  131    196   
    pub fn get_backup_size_bytes(&self) -> &::std::option::Option<i64> {
         197  +
        /* BuilderGenerator.kt:337 */
  132    198   
        &self.backup_size_bytes
         199  +
        /* BuilderGenerator.kt:336 */
  133    200   
    }
  134         -
    /// <p>Backup can be in one of the following states: CREATING, ACTIVE, DELETED.</p>
  135         -
    /// This field is required.
         201  +
    /// /* BuilderGenerator.kt:286 */<p>Backup can be in one of the following states: CREATING, ACTIVE, DELETED.</p>
         202  +
    /// /* BuilderGenerator.kt:288 */This field is required.
         203  +
    /* BuilderGenerator.kt:291 */
  136    204   
    pub fn backup_status(mut self, input: crate::types::BackupStatus) -> Self {
         205  +
        /* BuilderGenerator.kt:292 */
  137    206   
        self.backup_status = ::std::option::Option::Some(input);
         207  +
        /* BuilderGenerator.kt:293 */
  138    208   
        self
         209  +
        /* BuilderGenerator.kt:291 */
  139    210   
    }
  140         -
    /// <p>Backup can be in one of the following states: CREATING, ACTIVE, DELETED.</p>
         211  +
    /// /* BuilderGenerator.kt:312 */<p>Backup can be in one of the following states: CREATING, ACTIVE, DELETED.</p>
         212  +
    /* BuilderGenerator.kt:314 */
  141    213   
    pub fn set_backup_status(mut self, input: ::std::option::Option<crate::types::BackupStatus>) -> Self {
         214  +
        /* BuilderGenerator.kt:315 */
  142    215   
        self.backup_status = input;
  143    216   
        self
         217  +
        /* BuilderGenerator.kt:314 */
  144    218   
    }
  145         -
    /// <p>Backup can be in one of the following states: CREATING, ACTIVE, DELETED.</p>
         219  +
    /// /* BuilderGenerator.kt:334 */<p>Backup can be in one of the following states: CREATING, ACTIVE, DELETED.</p>
         220  +
    /* BuilderGenerator.kt:336 */
  146    221   
    pub fn get_backup_status(&self) -> &::std::option::Option<crate::types::BackupStatus> {
         222  +
        /* BuilderGenerator.kt:337 */
  147    223   
        &self.backup_status
         224  +
        /* BuilderGenerator.kt:336 */
  148    225   
    }
  149         -
    /// <p>BackupType:</p>
         226  +
    /// /* BuilderGenerator.kt:286 */<p>BackupType:</p>
  150    227   
    /// <ul>
  151    228   
    /// <li>
  152    229   
    /// <p><code>USER</code> - You create and manage these using the on-demand backup feature.</p></li>
  153    230   
    /// <li>
  154    231   
    /// <p><code>SYSTEM</code> - If you delete a table with point-in-time recovery enabled, a <code>SYSTEM</code> backup is automatically created and is retained for 35 days (at no additional cost). System backups allow you to restore the deleted table to the state it was in just before the point of deletion.</p></li>
  155    232   
    /// <li>
  156    233   
    /// <p><code>AWS_BACKUP</code> - On-demand backup created by you from AWS Backup service.</p></li>
  157    234   
    /// </ul>
  158         -
    /// This field is required.
         235  +
    /// /* BuilderGenerator.kt:288 */This field is required.
         236  +
    /* BuilderGenerator.kt:291 */
  159    237   
    pub fn backup_type(mut self, input: crate::types::BackupType) -> Self {
         238  +
        /* BuilderGenerator.kt:292 */
  160    239   
        self.backup_type = ::std::option::Option::Some(input);
         240  +
        /* BuilderGenerator.kt:293 */
  161    241   
        self
         242  +
        /* BuilderGenerator.kt:291 */
  162    243   
    }
  163         -
    /// <p>BackupType:</p>
         244  +
    /// /* BuilderGenerator.kt:312 */<p>BackupType:</p>
  164    245   
    /// <ul>
  165    246   
    /// <li>
  166    247   
    /// <p><code>USER</code> - You create and manage these using the on-demand backup feature.</p></li>
  167    248   
    /// <li>
  168    249   
    /// <p><code>SYSTEM</code> - If you delete a table with point-in-time recovery enabled, a <code>SYSTEM</code> backup is automatically created and is retained for 35 days (at no additional cost). System backups allow you to restore the deleted table to the state it was in just before the point of deletion.</p></li>
  169    250   
    /// <li>
  170    251   
    /// <p><code>AWS_BACKUP</code> - On-demand backup created by you from AWS Backup service.</p></li>
  171    252   
    /// </ul>
         253  +
    /* BuilderGenerator.kt:314 */
  172    254   
    pub fn set_backup_type(mut self, input: ::std::option::Option<crate::types::BackupType>) -> Self {
         255  +
        /* BuilderGenerator.kt:315 */
  173    256   
        self.backup_type = input;
  174    257   
        self
         258  +
        /* BuilderGenerator.kt:314 */
  175    259   
    }
  176         -
    /// <p>BackupType:</p>
         260  +
    /// /* BuilderGenerator.kt:334 */<p>BackupType:</p>
  177    261   
    /// <ul>
  178    262   
    /// <li>
  179    263   
    /// <p><code>USER</code> - You create and manage these using the on-demand backup feature.</p></li>
  180    264   
    /// <li>
  181    265   
    /// <p><code>SYSTEM</code> - If you delete a table with point-in-time recovery enabled, a <code>SYSTEM</code> backup is automatically created and is retained for 35 days (at no additional cost). System backups allow you to restore the deleted table to the state it was in just before the point of deletion.</p></li>
  182    266   
    /// <li>
  183    267   
    /// <p><code>AWS_BACKUP</code> - On-demand backup created by you from AWS Backup service.</p></li>
  184    268   
    /// </ul>
         269  +
    /* BuilderGenerator.kt:336 */
  185    270   
    pub fn get_backup_type(&self) -> &::std::option::Option<crate::types::BackupType> {
         271  +
        /* BuilderGenerator.kt:337 */
  186    272   
        &self.backup_type
         273  +
        /* BuilderGenerator.kt:336 */
  187    274   
    }
  188         -
    /// <p>Time at which the backup was created. This is the request time of the backup.</p>
  189         -
    /// This field is required.
         275  +
    /// /* BuilderGenerator.kt:286 */<p>Time at which the backup was created. This is the request time of the backup.</p>
         276  +
    /// /* BuilderGenerator.kt:288 */This field is required.
         277  +
    /* BuilderGenerator.kt:291 */
  190    278   
    pub fn backup_creation_date_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
         279  +
        /* BuilderGenerator.kt:292 */
  191    280   
        self.backup_creation_date_time = ::std::option::Option::Some(input);
         281  +
        /* BuilderGenerator.kt:293 */
  192    282   
        self
         283  +
        /* BuilderGenerator.kt:291 */
  193    284   
    }
  194         -
    /// <p>Time at which the backup was created. This is the request time of the backup.</p>
         285  +
    /// /* BuilderGenerator.kt:312 */<p>Time at which the backup was created. This is the request time of the backup.</p>
         286  +
    /* BuilderGenerator.kt:314 */
  195    287   
    pub fn set_backup_creation_date_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
         288  +
        /* BuilderGenerator.kt:315 */
  196    289   
        self.backup_creation_date_time = input;
  197    290   
        self
         291  +
        /* BuilderGenerator.kt:314 */
  198    292   
    }
  199         -
    /// <p>Time at which the backup was created. This is the request time of the backup.</p>
         293  +
    /// /* BuilderGenerator.kt:334 */<p>Time at which the backup was created. This is the request time of the backup.</p>
         294  +
    /* BuilderGenerator.kt:336 */
  200    295   
    pub fn get_backup_creation_date_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
         296  +
        /* BuilderGenerator.kt:337 */
  201    297   
        &self.backup_creation_date_time
         298  +
        /* BuilderGenerator.kt:336 */
  202    299   
    }
  203         -
    /// <p>Time at which the automatic on-demand backup created by DynamoDB will expire. This <code>SYSTEM</code> on-demand backup expires automatically 35 days after its creation.</p>
         300  +
    /// /* BuilderGenerator.kt:286 */<p>Time at which the automatic on-demand backup created by DynamoDB will expire. This <code>SYSTEM</code> on-demand backup expires automatically 35 days after its creation.</p>
         301  +
    /* BuilderGenerator.kt:291 */
  204    302   
    pub fn backup_expiry_date_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
         303  +
        /* BuilderGenerator.kt:292 */
  205    304   
        self.backup_expiry_date_time = ::std::option::Option::Some(input);
         305  +
        /* BuilderGenerator.kt:293 */
  206    306   
        self
         307  +
        /* BuilderGenerator.kt:291 */
  207    308   
    }
  208         -
    /// <p>Time at which the automatic on-demand backup created by DynamoDB will expire. This <code>SYSTEM</code> on-demand backup expires automatically 35 days after its creation.</p>
         309  +
    /// /* BuilderGenerator.kt:312 */<p>Time at which the automatic on-demand backup created by DynamoDB will expire. This <code>SYSTEM</code> on-demand backup expires automatically 35 days after its creation.</p>
         310  +
    /* BuilderGenerator.kt:314 */
  209    311   
    pub fn set_backup_expiry_date_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
         312  +
        /* BuilderGenerator.kt:315 */
  210    313   
        self.backup_expiry_date_time = input;
  211    314   
        self
         315  +
        /* BuilderGenerator.kt:314 */
  212    316   
    }
  213         -
    /// <p>Time at which the automatic on-demand backup created by DynamoDB will expire. This <code>SYSTEM</code> on-demand backup expires automatically 35 days after its creation.</p>
         317  +
    /// /* BuilderGenerator.kt:334 */<p>Time at which the automatic on-demand backup created by DynamoDB will expire. This <code>SYSTEM</code> on-demand backup expires automatically 35 days after its creation.</p>
         318  +
    /* BuilderGenerator.kt:336 */
  214    319   
    pub fn get_backup_expiry_date_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
         320  +
        /* BuilderGenerator.kt:337 */
  215    321   
        &self.backup_expiry_date_time
         322  +
        /* BuilderGenerator.kt:336 */
  216    323   
    }
  217         -
    /// Consumes the builder and constructs a [`BackupDetails`](crate::types::BackupDetails).
  218         -
    /// This method will fail if any of the following fields are not set:
  219         -
    /// - [`backup_arn`](crate::types::builders::BackupDetailsBuilder::backup_arn)
  220         -
    /// - [`backup_name`](crate::types::builders::BackupDetailsBuilder::backup_name)
  221         -
    /// - [`backup_status`](crate::types::builders::BackupDetailsBuilder::backup_status)
  222         -
    /// - [`backup_type`](crate::types::builders::BackupDetailsBuilder::backup_type)
  223         -
    /// - [`backup_creation_date_time`](crate::types::builders::BackupDetailsBuilder::backup_creation_date_time)
         324  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`BackupDetails`](crate::types::BackupDetails).
         325  +
    /// /* BuilderGenerator.kt:243 */This method will fail if any of the following fields are not set:
         326  +
    /// /* BuilderGenerator.kt:246 */- [`backup_arn`](crate::types::builders::BackupDetailsBuilder::backup_arn)
         327  +
    /// /* BuilderGenerator.kt:246 */- [`backup_name`](crate::types::builders::BackupDetailsBuilder::backup_name)
         328  +
    /// /* BuilderGenerator.kt:246 */- [`backup_status`](crate::types::builders::BackupDetailsBuilder::backup_status)
         329  +
    /// /* BuilderGenerator.kt:246 */- [`backup_type`](crate::types::builders::BackupDetailsBuilder::backup_type)
         330  +
    /// /* BuilderGenerator.kt:246 */- [`backup_creation_date_time`](crate::types::builders::BackupDetailsBuilder::backup_creation_date_time)
         331  +
    /* BuilderGenerator.kt:253 */
  224    332   
    pub fn build(self) -> ::std::result::Result<crate::types::BackupDetails, ::aws_smithy_types::error::operation::BuildError> {
  225         -
        ::std::result::Result::Ok(crate::types::BackupDetails {
  226         -
            backup_arn: self.backup_arn.ok_or_else(|| {
  227         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
  228         -
                    "backup_arn",
  229         -
                    "backup_arn was not specified but it is required when building BackupDetails",
  230         -
                )
  231         -
            })?,
  232         -
            backup_name: self.backup_name.ok_or_else(|| {
  233         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
  234         -
                    "backup_name",
  235         -
                    "backup_name was not specified but it is required when building BackupDetails",
  236         -
                )
  237         -
            })?,
  238         -
            backup_size_bytes: self.backup_size_bytes,
  239         -
            backup_status: self.backup_status.ok_or_else(|| {
  240         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
  241         -
                    "backup_status",
  242         -
                    "backup_status was not specified but it is required when building BackupDetails",
  243         -
                )
  244         -
            })?,
  245         -
            backup_type: self.backup_type.ok_or_else(|| {
  246         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
  247         -
                    "backup_type",
  248         -
                    "backup_type was not specified but it is required when building BackupDetails",
  249         -
                )
  250         -
            })?,
  251         -
            backup_creation_date_time: self.backup_creation_date_time.ok_or_else(|| {
  252         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
  253         -
                    "backup_creation_date_time",
  254         -
                    "backup_creation_date_time was not specified but it is required when building BackupDetails",
  255         -
                )
  256         -
            })?,
  257         -
            backup_expiry_date_time: self.backup_expiry_date_time,
  258         -
        })
         333  +
        /* BuilderGenerator.kt:254 */
         334  +
        ::std::result::Result::Ok(
         335  +
            /* BuilderGenerator.kt:477 */crate::types::BackupDetails {
         336  +
                /* BuilderGenerator.kt:481 */backup_arn: self.backup_arn
         337  +
                    /* BuilderGenerator.kt:494 */.ok_or_else(||
         338  +
                        /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("backup_arn", "backup_arn was not specified but it is required when building BackupDetails")
         339  +
                    /* BuilderGenerator.kt:494 */)?
         340  +
                ,
         341  +
                /* BuilderGenerator.kt:481 */backup_name: self.backup_name
         342  +
                    /* BuilderGenerator.kt:494 */.ok_or_else(||
         343  +
                        /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("backup_name", "backup_name was not specified but it is required when building BackupDetails")
         344  +
                    /* BuilderGenerator.kt:494 */)?
         345  +
                ,
         346  +
                /* BuilderGenerator.kt:481 */backup_size_bytes: self.backup_size_bytes
         347  +
                ,
         348  +
                /* BuilderGenerator.kt:481 */backup_status: self.backup_status
         349  +
                    /* BuilderGenerator.kt:494 */.ok_or_else(||
         350  +
                        /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("backup_status", "backup_status was not specified but it is required when building BackupDetails")
         351  +
                    /* BuilderGenerator.kt:494 */)?
         352  +
                ,
         353  +
                /* BuilderGenerator.kt:481 */backup_type: self.backup_type
         354  +
                    /* BuilderGenerator.kt:494 */.ok_or_else(||
         355  +
                        /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("backup_type", "backup_type was not specified but it is required when building BackupDetails")
         356  +
                    /* BuilderGenerator.kt:494 */)?
         357  +
                ,
         358  +
                /* BuilderGenerator.kt:481 */backup_creation_date_time: self.backup_creation_date_time
         359  +
                    /* BuilderGenerator.kt:494 */.ok_or_else(||
         360  +
                        /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("backup_creation_date_time", "backup_creation_date_time was not specified but it is required when building BackupDetails")
         361  +
                    /* BuilderGenerator.kt:494 */)?
         362  +
                ,
         363  +
                /* BuilderGenerator.kt:481 */backup_expiry_date_time: self.backup_expiry_date_time
         364  +
                ,
         365  +
            /* BuilderGenerator.kt:477 */}
         366  +
        /* BuilderGenerator.kt:254 */)
         367  +
        /* BuilderGenerator.kt:253 */
  259    368   
    }
         369  +
    /* BuilderGenerator.kt:355 */
  260    370   
}