Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-client-test/json_rpc11/rust-client-codegen/src/types/_foo_enum.rs

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

tmp-codegen-diff/codegen-client-test/json_rpc11/rust-client-codegen/src/types/_greeting_struct.rs

@@ -1,1 +47,88 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* StructureGenerator.kt:197 */
    2      3   
#[allow(missing_docs)] // documentation missing in model
           4  +
/* RustType.kt:516 */
    3      5   
#[non_exhaustive]
           6  +
/* RustType.kt:516 */
    4      7   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    5         -
pub struct GreetingStruct {
           8  +
pub /* StructureGenerator.kt:201 */ struct GreetingStruct {
           9  +
    /* StructureGenerator.kt:231 */
    6     10   
    #[allow(missing_docs)] // documentation missing in model
    7     11   
    pub hi: ::std::option::Option<::std::string::String>,
          12  +
    /* StructureGenerator.kt:201 */
    8     13   
}
          14  +
/* StructureGenerator.kt:135 */
    9     15   
impl GreetingStruct {
          16  +
    /* StructureGenerator.kt:231 */
   10     17   
    #[allow(missing_docs)] // documentation missing in model
          18  +
                           /* StructureGenerator.kt:166 */
   11     19   
    pub fn hi(&self) -> ::std::option::Option<&str> {
          20  +
        /* StructureGenerator.kt:169 */
   12     21   
        self.hi.as_deref()
          22  +
        /* StructureGenerator.kt:166 */
   13     23   
    }
          24  +
    /* StructureGenerator.kt:135 */
   14     25   
}
          26  +
/* ClientCodegenVisitor.kt:237 */
   15     27   
impl GreetingStruct {
   16         -
    /// Creates a new builder-style object to manufacture [`GreetingStruct`](crate::types::GreetingStruct).
          28  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`GreetingStruct`](crate::types::GreetingStruct).
          29  +
    /* BuilderGenerator.kt:175 */
   17     30   
    pub fn builder() -> crate::types::builders::GreetingStructBuilder {
          31  +
        /* BuilderGenerator.kt:176 */
   18     32   
        crate::types::builders::GreetingStructBuilder::default()
          33  +
        /* BuilderGenerator.kt:175 */
   19     34   
    }
          35  +
    /* ClientCodegenVisitor.kt:237 */
   20     36   
}
   21     37   
   22         -
/// A builder for [`GreetingStruct`](crate::types::GreetingStruct).
          38  +
/// /* BuilderGenerator.kt:342 */A builder for [`GreetingStruct`](crate::types::GreetingStruct).
          39  +
/* RustType.kt:516 */
   23     40   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          41  +
/* RustType.kt:516 */
   24     42   
#[non_exhaustive]
          43  +
/* BuilderGenerator.kt:345 */
   25     44   
pub struct GreetingStructBuilder {
   26         -
    pub(crate) hi: ::std::option::Option<::std::string::String>,
          45  +
    /* BuilderGenerator.kt:275 */ pub(crate) hi: ::std::option::Option<::std::string::String>,
          46  +
    /* BuilderGenerator.kt:345 */
   27     47   
}
          48  +
/* BuilderGenerator.kt:355 */
   28     49   
impl GreetingStructBuilder {
          50  +
    /* BuilderGenerator.kt:286 */
   29     51   
    #[allow(missing_docs)] // documentation missing in model
          52  +
                           /* BuilderGenerator.kt:291 */
   30     53   
    pub fn hi(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          54  +
        /* BuilderGenerator.kt:292 */
   31     55   
        self.hi = ::std::option::Option::Some(input.into());
          56  +
        /* BuilderGenerator.kt:293 */
   32     57   
        self
          58  +
        /* BuilderGenerator.kt:291 */
   33     59   
    }
          60  +
    /* BuilderGenerator.kt:312 */
   34     61   
    #[allow(missing_docs)] // documentation missing in model
          62  +
                           /* BuilderGenerator.kt:314 */
   35     63   
    pub fn set_hi(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          64  +
        /* BuilderGenerator.kt:315 */
   36     65   
        self.hi = input;
   37     66   
        self
          67  +
        /* BuilderGenerator.kt:314 */
   38     68   
    }
          69  +
    /* BuilderGenerator.kt:334 */
   39     70   
    #[allow(missing_docs)] // documentation missing in model
          71  +
                           /* BuilderGenerator.kt:336 */
   40     72   
    pub fn get_hi(&self) -> &::std::option::Option<::std::string::String> {
          73  +
        /* BuilderGenerator.kt:337 */
   41     74   
        &self.hi
          75  +
        /* BuilderGenerator.kt:336 */
   42     76   
    }
   43         -
    /// Consumes the builder and constructs a [`GreetingStruct`](crate::types::GreetingStruct).
          77  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`GreetingStruct`](crate::types::GreetingStruct).
          78  +
    /* BuilderGenerator.kt:253 */
   44     79   
    pub fn build(self) -> crate::types::GreetingStruct {
   45         -
        crate::types::GreetingStruct { hi: self.hi }
          80  +
        /* BuilderGenerator.kt:477 */
          81  +
        crate::types::GreetingStruct {
          82  +
            /* BuilderGenerator.kt:481 */ hi: self.hi,
          83  +
            /* BuilderGenerator.kt:477 */
   46     84   
        }
          85  +
        /* BuilderGenerator.kt:253 */
          86  +
    }
          87  +
    /* BuilderGenerator.kt:355 */
   47     88   
}

tmp-codegen-diff/codegen-client-test/json_rpc11/rust-client-codegen/src/types/_kitchen_sink.rs

@@ -1,1 +707,1238 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* StructureGenerator.kt:197 */
    2      3   
#[allow(missing_docs)] // documentation missing in model
           4  +
/* RustType.kt:516 */
    3      5   
#[non_exhaustive]
           6  +
/* RustType.kt:516 */
    4      7   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    5         -
pub struct KitchenSink {
           8  +
pub /* StructureGenerator.kt:201 */ struct KitchenSink {
           9  +
    /* StructureGenerator.kt:231 */
    6     10   
    #[allow(missing_docs)] // documentation missing in model
    7     11   
    pub blob: ::std::option::Option<::aws_smithy_types::Blob>,
    8         -
    #[allow(missing_docs)] // documentation missing in model
          12  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
    9     13   
    pub boolean: ::std::option::Option<bool>,
   10         -
    #[allow(missing_docs)] // documentation missing in model
          14  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   11     15   
    pub double: ::std::option::Option<f64>,
          16  +
    /* StructureGenerator.kt:231 */
   12     17   
    #[allow(missing_docs)] // documentation missing in model
   13     18   
    pub empty_struct: ::std::option::Option<crate::types::EmptyStruct>,
   14         -
    #[allow(missing_docs)] // documentation missing in model
          19  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   15     20   
    pub float: ::std::option::Option<f32>,
          21  +
    /* StructureGenerator.kt:231 */
   16     22   
    #[allow(missing_docs)] // documentation missing in model
   17     23   
    pub httpdate_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
   18         -
    #[allow(missing_docs)] // documentation missing in model
          24  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   19     25   
    pub integer: ::std::option::Option<i32>,
          26  +
    /* StructureGenerator.kt:231 */
   20     27   
    #[allow(missing_docs)] // documentation missing in model
   21     28   
    pub iso8601_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
          29  +
    /* StructureGenerator.kt:231 */
   22     30   
    #[allow(missing_docs)] // documentation missing in model
   23     31   
    pub json_value: ::std::option::Option<::std::string::String>,
          32  +
    /* StructureGenerator.kt:231 */
   24     33   
    #[allow(missing_docs)] // documentation missing in model
   25     34   
    pub list_of_lists: ::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>,
          35  +
    /* StructureGenerator.kt:231 */
   26     36   
    #[allow(missing_docs)] // documentation missing in model
   27     37   
    pub list_of_maps_of_strings: ::std::option::Option<::std::vec::Vec<::std::collections::HashMap<::std::string::String, ::std::string::String>>>,
          38  +
    /* StructureGenerator.kt:231 */
   28     39   
    #[allow(missing_docs)] // documentation missing in model
   29     40   
    pub list_of_strings: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
          41  +
    /* StructureGenerator.kt:231 */
   30     42   
    #[allow(missing_docs)] // documentation missing in model
   31     43   
    pub list_of_structs: ::std::option::Option<::std::vec::Vec<crate::types::SimpleStruct>>,
   32         -
    #[allow(missing_docs)] // documentation missing in model
          44  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   33     45   
    pub long: ::std::option::Option<i64>,
          46  +
    /* StructureGenerator.kt:231 */
   34     47   
    #[allow(missing_docs)] // documentation missing in model
   35     48   
    pub map_of_lists_of_strings: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>>,
          49  +
    /* StructureGenerator.kt:231 */
   36     50   
    #[allow(missing_docs)] // documentation missing in model
   37     51   
    pub map_of_maps: ::std::option::Option<
   38     52   
        ::std::collections::HashMap<::std::string::String, ::std::collections::HashMap<::std::string::String, ::std::string::String>>,
   39     53   
    >,
          54  +
    /* StructureGenerator.kt:231 */
   40     55   
    #[allow(missing_docs)] // documentation missing in model
   41     56   
    pub map_of_strings: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
          57  +
    /* StructureGenerator.kt:231 */
   42     58   
    #[allow(missing_docs)] // documentation missing in model
   43     59   
    pub map_of_structs: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::SimpleStruct>>,
          60  +
    /* StructureGenerator.kt:231 */
   44     61   
    #[allow(missing_docs)] // documentation missing in model
   45     62   
    pub recursive_list: ::std::option::Option<::std::vec::Vec<crate::types::KitchenSink>>,
          63  +
    /* StructureGenerator.kt:231 */
   46     64   
    #[allow(missing_docs)] // documentation missing in model
   47     65   
    pub recursive_map: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::KitchenSink>>,
          66  +
    /* StructureGenerator.kt:231 */
   48     67   
    #[allow(missing_docs)] // documentation missing in model
   49     68   
    pub recursive_struct: ::std::option::Option<::std::boxed::Box<crate::types::KitchenSink>>,
          69  +
    /* StructureGenerator.kt:231 */
   50     70   
    #[allow(missing_docs)] // documentation missing in model
   51     71   
    pub simple_struct: ::std::option::Option<crate::types::SimpleStruct>,
          72  +
    /* StructureGenerator.kt:231 */
   52     73   
    #[allow(missing_docs)] // documentation missing in model
   53     74   
    pub string: ::std::option::Option<::std::string::String>,
          75  +
    /* StructureGenerator.kt:231 */
   54     76   
    #[allow(missing_docs)] // documentation missing in model
   55     77   
    pub struct_with_json_name: ::std::option::Option<crate::types::StructWithJsonName>,
          78  +
    /* StructureGenerator.kt:231 */
   56     79   
    #[allow(missing_docs)] // documentation missing in model
   57     80   
    pub timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
          81  +
    /* StructureGenerator.kt:231 */
   58     82   
    #[allow(missing_docs)] // documentation missing in model
   59     83   
    pub unix_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
          84  +
    /* StructureGenerator.kt:201 */
   60     85   
}
          86  +
/* StructureGenerator.kt:135 */
   61     87   
impl KitchenSink {
          88  +
    /* StructureGenerator.kt:231 */
   62     89   
    #[allow(missing_docs)] // documentation missing in model
          90  +
                           /* StructureGenerator.kt:166 */
   63     91   
    pub fn blob(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
          92  +
        /* StructureGenerator.kt:170 */
   64     93   
        self.blob.as_ref()
          94  +
        /* StructureGenerator.kt:166 */
   65     95   
    }
          96  +
    /* StructureGenerator.kt:231 */
   66     97   
    #[allow(missing_docs)] // documentation missing in model
          98  +
                           /* StructureGenerator.kt:166 */
   67     99   
    pub fn boolean(&self) -> ::std::option::Option<bool> {
         100  +
        /* StructureGenerator.kt:168 */
   68    101   
        self.boolean
         102  +
        /* StructureGenerator.kt:166 */
   69    103   
    }
         104  +
    /* StructureGenerator.kt:231 */
   70    105   
    #[allow(missing_docs)] // documentation missing in model
         106  +
                           /* StructureGenerator.kt:166 */
   71    107   
    pub fn double(&self) -> ::std::option::Option<f64> {
         108  +
        /* StructureGenerator.kt:168 */
   72    109   
        self.double
         110  +
        /* StructureGenerator.kt:166 */
   73    111   
    }
         112  +
    /* StructureGenerator.kt:231 */
   74    113   
    #[allow(missing_docs)] // documentation missing in model
         114  +
                           /* StructureGenerator.kt:166 */
   75    115   
    pub fn empty_struct(&self) -> ::std::option::Option<&crate::types::EmptyStruct> {
         116  +
        /* StructureGenerator.kt:170 */
   76    117   
        self.empty_struct.as_ref()
         118  +
        /* StructureGenerator.kt:166 */
   77    119   
    }
         120  +
    /* StructureGenerator.kt:231 */
   78    121   
    #[allow(missing_docs)] // documentation missing in model
         122  +
                           /* StructureGenerator.kt:166 */
   79    123   
    pub fn float(&self) -> ::std::option::Option<f32> {
         124  +
        /* StructureGenerator.kt:168 */
   80    125   
        self.float
         126  +
        /* StructureGenerator.kt:166 */
   81    127   
    }
         128  +
    /* StructureGenerator.kt:231 */
   82    129   
    #[allow(missing_docs)] // documentation missing in model
         130  +
                           /* StructureGenerator.kt:166 */
   83    131   
    pub fn httpdate_timestamp(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
         132  +
        /* StructureGenerator.kt:170 */
   84    133   
        self.httpdate_timestamp.as_ref()
         134  +
        /* StructureGenerator.kt:166 */
   85    135   
    }
         136  +
    /* StructureGenerator.kt:231 */
   86    137   
    #[allow(missing_docs)] // documentation missing in model
         138  +
                           /* StructureGenerator.kt:166 */
   87    139   
    pub fn integer(&self) -> ::std::option::Option<i32> {
         140  +
        /* StructureGenerator.kt:168 */
   88    141   
        self.integer
         142  +
        /* StructureGenerator.kt:166 */
   89    143   
    }
         144  +
    /* StructureGenerator.kt:231 */
   90    145   
    #[allow(missing_docs)] // documentation missing in model
         146  +
                           /* StructureGenerator.kt:166 */
   91    147   
    pub fn iso8601_timestamp(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
         148  +
        /* StructureGenerator.kt:170 */
   92    149   
        self.iso8601_timestamp.as_ref()
         150  +
        /* StructureGenerator.kt:166 */
   93    151   
    }
         152  +
    /* StructureGenerator.kt:231 */
   94    153   
    #[allow(missing_docs)] // documentation missing in model
         154  +
                           /* StructureGenerator.kt:166 */
   95    155   
    pub fn json_value(&self) -> ::std::option::Option<&str> {
         156  +
        /* StructureGenerator.kt:169 */
   96    157   
        self.json_value.as_deref()
         158  +
        /* StructureGenerator.kt:166 */
   97    159   
    }
         160  +
    /* StructureGenerator.kt:231 */
   98    161   
    #[allow(missing_docs)] // documentation missing in model
   99         -
    ///
  100         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.list_of_lists.is_none()`.
         162  +
    /// /* StructureGenerator.kt:162 */
         163  +
    /// /* 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 `.list_of_lists.is_none()`.
         164  +
    /* StructureGenerator.kt:166 */
  101    165   
    pub fn list_of_lists(&self) -> &[::std::vec::Vec<::std::string::String>] {
  102         -
        self.list_of_lists.as_deref().unwrap_or_default()
  103         -
    }
  104         -
    #[allow(missing_docs)] // documentation missing in model
  105         -
    ///
  106         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.list_of_maps_of_strings.is_none()`.
         166  +
        /* StructureGenerator.kt:169 */
         167  +
        self.list_of_lists
         168  +
            .as_deref()
         169  +
            /* StructureGenerator.kt:175 */
         170  +
            .unwrap_or_default()
         171  +
        /* StructureGenerator.kt:166 */
         172  +
    }
         173  +
    /* StructureGenerator.kt:231 */
         174  +
    #[allow(missing_docs)] // documentation missing in model
         175  +
    /// /* StructureGenerator.kt:162 */
         176  +
    /// /* 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 `.list_of_maps_of_strings.is_none()`.
         177  +
    /* StructureGenerator.kt:166 */
  107    178   
    pub fn list_of_maps_of_strings(&self) -> &[::std::collections::HashMap<::std::string::String, ::std::string::String>] {
  108         -
        self.list_of_maps_of_strings.as_deref().unwrap_or_default()
  109         -
    }
  110         -
    #[allow(missing_docs)] // documentation missing in model
  111         -
    ///
  112         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.list_of_strings.is_none()`.
         179  +
        /* StructureGenerator.kt:169 */
         180  +
        self.list_of_maps_of_strings
         181  +
            .as_deref()
         182  +
            /* StructureGenerator.kt:175 */
         183  +
            .unwrap_or_default()
         184  +
        /* StructureGenerator.kt:166 */
         185  +
    }
         186  +
    /* StructureGenerator.kt:231 */
         187  +
    #[allow(missing_docs)] // documentation missing in model
         188  +
    /// /* StructureGenerator.kt:162 */
         189  +
    /// /* 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 `.list_of_strings.is_none()`.
         190  +
    /* StructureGenerator.kt:166 */
  113    191   
    pub fn list_of_strings(&self) -> &[::std::string::String] {
  114         -
        self.list_of_strings.as_deref().unwrap_or_default()
  115         -
    }
  116         -
    #[allow(missing_docs)] // documentation missing in model
  117         -
    ///
  118         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.list_of_structs.is_none()`.
         192  +
        /* StructureGenerator.kt:169 */
         193  +
        self.list_of_strings
         194  +
            .as_deref()
         195  +
            /* StructureGenerator.kt:175 */
         196  +
            .unwrap_or_default()
         197  +
        /* StructureGenerator.kt:166 */
         198  +
    }
         199  +
    /* StructureGenerator.kt:231 */
         200  +
    #[allow(missing_docs)] // documentation missing in model
         201  +
    /// /* StructureGenerator.kt:162 */
         202  +
    /// /* 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 `.list_of_structs.is_none()`.
         203  +
    /* StructureGenerator.kt:166 */
  119    204   
    pub fn list_of_structs(&self) -> &[crate::types::SimpleStruct] {
  120         -
        self.list_of_structs.as_deref().unwrap_or_default()
         205  +
        /* StructureGenerator.kt:169 */
         206  +
        self.list_of_structs
         207  +
            .as_deref()
         208  +
            /* StructureGenerator.kt:175 */
         209  +
            .unwrap_or_default()
         210  +
        /* StructureGenerator.kt:166 */
  121    211   
    }
         212  +
    /* StructureGenerator.kt:231 */
  122    213   
    #[allow(missing_docs)] // documentation missing in model
         214  +
                           /* StructureGenerator.kt:166 */
  123    215   
    pub fn long(&self) -> ::std::option::Option<i64> {
         216  +
        /* StructureGenerator.kt:168 */
  124    217   
        self.long
         218  +
        /* StructureGenerator.kt:166 */
  125    219   
    }
         220  +
    /* StructureGenerator.kt:231 */
  126    221   
    #[allow(missing_docs)] // documentation missing in model
         222  +
                           /* StructureGenerator.kt:166 */
  127    223   
    pub fn map_of_lists_of_strings(
  128    224   
        &self,
  129    225   
    ) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>> {
         226  +
        /* StructureGenerator.kt:170 */
  130    227   
        self.map_of_lists_of_strings.as_ref()
         228  +
        /* StructureGenerator.kt:166 */
  131    229   
    }
         230  +
    /* StructureGenerator.kt:231 */
  132    231   
    #[allow(missing_docs)] // documentation missing in model
         232  +
                           /* StructureGenerator.kt:166 */
  133    233   
    pub fn map_of_maps(
  134    234   
        &self,
  135    235   
    ) -> ::std::option::Option<
  136    236   
        &::std::collections::HashMap<::std::string::String, ::std::collections::HashMap<::std::string::String, ::std::string::String>>,
  137    237   
    > {
         238  +
        /* StructureGenerator.kt:170 */
  138    239   
        self.map_of_maps.as_ref()
         240  +
        /* StructureGenerator.kt:166 */
  139    241   
    }
         242  +
    /* StructureGenerator.kt:231 */
  140    243   
    #[allow(missing_docs)] // documentation missing in model
         244  +
                           /* StructureGenerator.kt:166 */
  141    245   
    pub fn map_of_strings(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
         246  +
        /* StructureGenerator.kt:170 */
  142    247   
        self.map_of_strings.as_ref()
         248  +
        /* StructureGenerator.kt:166 */
  143    249   
    }
         250  +
    /* StructureGenerator.kt:231 */
  144    251   
    #[allow(missing_docs)] // documentation missing in model
         252  +
                           /* StructureGenerator.kt:166 */
  145    253   
    pub fn map_of_structs(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, crate::types::SimpleStruct>> {
         254  +
        /* StructureGenerator.kt:170 */
  146    255   
        self.map_of_structs.as_ref()
         256  +
        /* StructureGenerator.kt:166 */
  147    257   
    }
         258  +
    /* StructureGenerator.kt:231 */
  148    259   
    #[allow(missing_docs)] // documentation missing in model
  149         -
    ///
  150         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.recursive_list.is_none()`.
         260  +
    /// /* StructureGenerator.kt:162 */
         261  +
    /// /* 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 `.recursive_list.is_none()`.
         262  +
    /* StructureGenerator.kt:166 */
  151    263   
    pub fn recursive_list(&self) -> &[crate::types::KitchenSink] {
  152         -
        self.recursive_list.as_deref().unwrap_or_default()
         264  +
        /* StructureGenerator.kt:169 */
         265  +
        self.recursive_list
         266  +
            .as_deref()
         267  +
            /* StructureGenerator.kt:175 */
         268  +
            .unwrap_or_default()
         269  +
        /* StructureGenerator.kt:166 */
  153    270   
    }
         271  +
    /* StructureGenerator.kt:231 */
  154    272   
    #[allow(missing_docs)] // documentation missing in model
         273  +
                           /* StructureGenerator.kt:166 */
  155    274   
    pub fn recursive_map(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, crate::types::KitchenSink>> {
         275  +
        /* StructureGenerator.kt:170 */
  156    276   
        self.recursive_map.as_ref()
         277  +
        /* StructureGenerator.kt:166 */
  157    278   
    }
         279  +
    /* StructureGenerator.kt:231 */
  158    280   
    #[allow(missing_docs)] // documentation missing in model
         281  +
                           /* StructureGenerator.kt:166 */
  159    282   
    pub fn recursive_struct(&self) -> ::std::option::Option<&crate::types::KitchenSink> {
         283  +
        /* StructureGenerator.kt:169 */
  160    284   
        self.recursive_struct.as_deref()
         285  +
        /* StructureGenerator.kt:166 */
  161    286   
    }
         287  +
    /* StructureGenerator.kt:231 */
  162    288   
    #[allow(missing_docs)] // documentation missing in model
         289  +
                           /* StructureGenerator.kt:166 */
  163    290   
    pub fn simple_struct(&self) -> ::std::option::Option<&crate::types::SimpleStruct> {
         291  +
        /* StructureGenerator.kt:170 */
  164    292   
        self.simple_struct.as_ref()
         293  +
        /* StructureGenerator.kt:166 */
  165    294   
    }
         295  +
    /* StructureGenerator.kt:231 */
  166    296   
    #[allow(missing_docs)] // documentation missing in model
         297  +
                           /* StructureGenerator.kt:166 */
  167    298   
    pub fn string(&self) -> ::std::option::Option<&str> {
         299  +
        /* StructureGenerator.kt:169 */
  168    300   
        self.string.as_deref()
         301  +
        /* StructureGenerator.kt:166 */
  169    302   
    }
         303  +
    /* StructureGenerator.kt:231 */
  170    304   
    #[allow(missing_docs)] // documentation missing in model
         305  +
                           /* StructureGenerator.kt:166 */
  171    306   
    pub fn struct_with_json_name(&self) -> ::std::option::Option<&crate::types::StructWithJsonName> {
         307  +
        /* StructureGenerator.kt:170 */
  172    308   
        self.struct_with_json_name.as_ref()
         309  +
        /* StructureGenerator.kt:166 */
  173    310   
    }
         311  +
    /* StructureGenerator.kt:231 */
  174    312   
    #[allow(missing_docs)] // documentation missing in model
         313  +
                           /* StructureGenerator.kt:166 */
  175    314   
    pub fn timestamp(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
         315  +
        /* StructureGenerator.kt:170 */
  176    316   
        self.timestamp.as_ref()
         317  +
        /* StructureGenerator.kt:166 */
  177    318   
    }
         319  +
    /* StructureGenerator.kt:231 */
  178    320   
    #[allow(missing_docs)] // documentation missing in model
         321  +
                           /* StructureGenerator.kt:166 */
  179    322   
    pub fn unix_timestamp(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
         323  +
        /* StructureGenerator.kt:170 */
  180    324   
        self.unix_timestamp.as_ref()
         325  +
        /* StructureGenerator.kt:166 */
  181    326   
    }
         327  +
    /* StructureGenerator.kt:135 */
  182    328   
}
         329  +
/* ClientCodegenVisitor.kt:237 */
  183    330   
impl KitchenSink {
  184         -
    /// Creates a new builder-style object to manufacture [`KitchenSink`](crate::types::KitchenSink).
         331  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`KitchenSink`](crate::types::KitchenSink).
         332  +
    /* BuilderGenerator.kt:175 */
  185    333   
    pub fn builder() -> crate::types::builders::KitchenSinkBuilder {
         334  +
        /* BuilderGenerator.kt:176 */
  186    335   
        crate::types::builders::KitchenSinkBuilder::default()
         336  +
        /* BuilderGenerator.kt:175 */
  187    337   
    }
         338  +
    /* ClientCodegenVisitor.kt:237 */
  188    339   
}
  189    340   
  190         -
/// A builder for [`KitchenSink`](crate::types::KitchenSink).
         341  +
/// /* BuilderGenerator.kt:342 */A builder for [`KitchenSink`](crate::types::KitchenSink).
         342  +
/* RustType.kt:516 */
  191    343   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         344  +
/* RustType.kt:516 */
  192    345   
#[non_exhaustive]
         346  +
/* BuilderGenerator.kt:345 */
  193    347   
pub struct KitchenSinkBuilder {
  194         -
    pub(crate) blob: ::std::option::Option<::aws_smithy_types::Blob>,
  195         -
    pub(crate) boolean: ::std::option::Option<bool>,
  196         -
    pub(crate) double: ::std::option::Option<f64>,
  197         -
    pub(crate) empty_struct: ::std::option::Option<crate::types::EmptyStruct>,
  198         -
    pub(crate) float: ::std::option::Option<f32>,
  199         -
    pub(crate) httpdate_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
  200         -
    pub(crate) integer: ::std::option::Option<i32>,
  201         -
    pub(crate) iso8601_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
  202         -
    pub(crate) json_value: ::std::option::Option<::std::string::String>,
  203         -
    pub(crate) list_of_lists: ::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>,
         348  +
    /* BuilderGenerator.kt:275 */ pub(crate) blob: ::std::option::Option<::aws_smithy_types::Blob>,
         349  +
    /* BuilderGenerator.kt:275 */ pub(crate) boolean: ::std::option::Option<bool>,
         350  +
    /* BuilderGenerator.kt:275 */ pub(crate) double: ::std::option::Option<f64>,
         351  +
    /* BuilderGenerator.kt:275 */ pub(crate) empty_struct: ::std::option::Option<crate::types::EmptyStruct>,
         352  +
    /* BuilderGenerator.kt:275 */ pub(crate) float: ::std::option::Option<f32>,
         353  +
    /* BuilderGenerator.kt:275 */ pub(crate) httpdate_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
         354  +
    /* BuilderGenerator.kt:275 */ pub(crate) integer: ::std::option::Option<i32>,
         355  +
    /* BuilderGenerator.kt:275 */ pub(crate) iso8601_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
         356  +
    /* BuilderGenerator.kt:275 */ pub(crate) json_value: ::std::option::Option<::std::string::String>,
         357  +
    /* BuilderGenerator.kt:275 */ pub(crate) list_of_lists: ::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>,
         358  +
    /* BuilderGenerator.kt:275 */
  204    359   
    pub(crate) list_of_maps_of_strings:
  205    360   
        ::std::option::Option<::std::vec::Vec<::std::collections::HashMap<::std::string::String, ::std::string::String>>>,
  206         -
    pub(crate) list_of_strings: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
  207         -
    pub(crate) list_of_structs: ::std::option::Option<::std::vec::Vec<crate::types::SimpleStruct>>,
  208         -
    pub(crate) long: ::std::option::Option<i64>,
         361  +
    /* BuilderGenerator.kt:275 */ pub(crate) list_of_strings: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
         362  +
    /* BuilderGenerator.kt:275 */ pub(crate) list_of_structs: ::std::option::Option<::std::vec::Vec<crate::types::SimpleStruct>>,
         363  +
    /* BuilderGenerator.kt:275 */ pub(crate) long: ::std::option::Option<i64>,
         364  +
    /* BuilderGenerator.kt:275 */
  209    365   
    pub(crate) map_of_lists_of_strings:
  210    366   
        ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>>,
         367  +
    /* BuilderGenerator.kt:275 */
  211    368   
    pub(crate) map_of_maps: ::std::option::Option<
  212    369   
        ::std::collections::HashMap<::std::string::String, ::std::collections::HashMap<::std::string::String, ::std::string::String>>,
  213    370   
    >,
         371  +
    /* BuilderGenerator.kt:275 */
  214    372   
    pub(crate) map_of_strings: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
         373  +
    /* BuilderGenerator.kt:275 */
  215    374   
    pub(crate) map_of_structs: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::SimpleStruct>>,
  216         -
    pub(crate) recursive_list: ::std::option::Option<::std::vec::Vec<crate::types::KitchenSink>>,
         375  +
    /* BuilderGenerator.kt:275 */ pub(crate) recursive_list: ::std::option::Option<::std::vec::Vec<crate::types::KitchenSink>>,
         376  +
    /* BuilderGenerator.kt:275 */
  217    377   
    pub(crate) recursive_map: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::KitchenSink>>,
  218         -
    pub(crate) recursive_struct: ::std::option::Option<::std::boxed::Box<crate::types::KitchenSink>>,
  219         -
    pub(crate) simple_struct: ::std::option::Option<crate::types::SimpleStruct>,
  220         -
    pub(crate) string: ::std::option::Option<::std::string::String>,
  221         -
    pub(crate) struct_with_json_name: ::std::option::Option<crate::types::StructWithJsonName>,
  222         -
    pub(crate) timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
         378  +
    /* BuilderGenerator.kt:275 */ pub(crate) recursive_struct: ::std::option::Option<::std::boxed::Box<crate::types::KitchenSink>>,
         379  +
    /* BuilderGenerator.kt:275 */ pub(crate) simple_struct: ::std::option::Option<crate::types::SimpleStruct>,
         380  +
    /* BuilderGenerator.kt:275 */ pub(crate) string: ::std::option::Option<::std::string::String>,
         381  +
    /* BuilderGenerator.kt:275 */ pub(crate) struct_with_json_name: ::std::option::Option<crate::types::StructWithJsonName>,
         382  +
    /* BuilderGenerator.kt:275 */ pub(crate) timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
         383  +
    /* BuilderGenerator.kt:275 */
  223    384   
    pub(crate) unix_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
         385  +
    /* BuilderGenerator.kt:345 */
  224    386   
}
         387  +
/* BuilderGenerator.kt:355 */
  225    388   
impl KitchenSinkBuilder {
         389  +
    /* BuilderGenerator.kt:286 */
  226    390   
    #[allow(missing_docs)] // documentation missing in model
         391  +
                           /* BuilderGenerator.kt:291 */
  227    392   
    pub fn blob(mut self, input: ::aws_smithy_types::Blob) -> Self {
         393  +
        /* BuilderGenerator.kt:292 */
  228    394   
        self.blob = ::std::option::Option::Some(input);
         395  +
        /* BuilderGenerator.kt:293 */
  229    396   
        self
         397  +
        /* BuilderGenerator.kt:291 */
  230    398   
    }
         399  +
    /* BuilderGenerator.kt:312 */
  231    400   
    #[allow(missing_docs)] // documentation missing in model
         401  +
                           /* BuilderGenerator.kt:314 */
  232    402   
    pub fn set_blob(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
         403  +
        /* BuilderGenerator.kt:315 */
  233    404   
        self.blob = input;
  234    405   
        self
         406  +
        /* BuilderGenerator.kt:314 */
  235    407   
    }
         408  +
    /* BuilderGenerator.kt:334 */
  236    409   
    #[allow(missing_docs)] // documentation missing in model
         410  +
                           /* BuilderGenerator.kt:336 */
  237    411   
    pub fn get_blob(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
         412  +
        /* BuilderGenerator.kt:337 */
  238    413   
        &self.blob
         414  +
        /* BuilderGenerator.kt:336 */
  239    415   
    }
         416  +
    /* BuilderGenerator.kt:286 */
  240    417   
    #[allow(missing_docs)] // documentation missing in model
         418  +
                           /* BuilderGenerator.kt:291 */
  241    419   
    pub fn boolean(mut self, input: bool) -> Self {
         420  +
        /* BuilderGenerator.kt:292 */
  242    421   
        self.boolean = ::std::option::Option::Some(input);
         422  +
        /* BuilderGenerator.kt:293 */
  243    423   
        self
         424  +
        /* BuilderGenerator.kt:291 */
  244    425   
    }
         426  +
    /* BuilderGenerator.kt:312 */
  245    427   
    #[allow(missing_docs)] // documentation missing in model
         428  +
                           /* BuilderGenerator.kt:314 */
  246    429   
    pub fn set_boolean(mut self, input: ::std::option::Option<bool>) -> Self {
         430  +
        /* BuilderGenerator.kt:315 */
  247    431   
        self.boolean = input;
  248    432   
        self
         433  +
        /* BuilderGenerator.kt:314 */
  249    434   
    }
         435  +
    /* BuilderGenerator.kt:334 */
  250    436   
    #[allow(missing_docs)] // documentation missing in model
         437  +
                           /* BuilderGenerator.kt:336 */
  251    438   
    pub fn get_boolean(&self) -> &::std::option::Option<bool> {
         439  +
        /* BuilderGenerator.kt:337 */
  252    440   
        &self.boolean
         441  +
        /* BuilderGenerator.kt:336 */
  253    442   
    }
         443  +
    /* BuilderGenerator.kt:286 */
  254    444   
    #[allow(missing_docs)] // documentation missing in model
         445  +
                           /* BuilderGenerator.kt:291 */
  255    446   
    pub fn double(mut self, input: f64) -> Self {
         447  +
        /* BuilderGenerator.kt:292 */
  256    448   
        self.double = ::std::option::Option::Some(input);
         449  +
        /* BuilderGenerator.kt:293 */
  257    450   
        self
         451  +
        /* BuilderGenerator.kt:291 */
  258    452   
    }
         453  +
    /* BuilderGenerator.kt:312 */
  259    454   
    #[allow(missing_docs)] // documentation missing in model
         455  +
                           /* BuilderGenerator.kt:314 */
  260    456   
    pub fn set_double(mut self, input: ::std::option::Option<f64>) -> Self {
         457  +
        /* BuilderGenerator.kt:315 */
  261    458   
        self.double = input;
  262    459   
        self
         460  +
        /* BuilderGenerator.kt:314 */
  263    461   
    }
         462  +
    /* BuilderGenerator.kt:334 */
  264    463   
    #[allow(missing_docs)] // documentation missing in model
         464  +
                           /* BuilderGenerator.kt:336 */
  265    465   
    pub fn get_double(&self) -> &::std::option::Option<f64> {
         466  +
        /* BuilderGenerator.kt:337 */
  266    467   
        &self.double
         468  +
        /* BuilderGenerator.kt:336 */
  267    469   
    }
         470  +
    /* BuilderGenerator.kt:286 */
  268    471   
    #[allow(missing_docs)] // documentation missing in model
         472  +
                           /* BuilderGenerator.kt:291 */
  269    473   
    pub fn empty_struct(mut self, input: crate::types::EmptyStruct) -> Self {
         474  +
        /* BuilderGenerator.kt:292 */
  270    475   
        self.empty_struct = ::std::option::Option::Some(input);
         476  +
        /* BuilderGenerator.kt:293 */
  271    477   
        self
         478  +
        /* BuilderGenerator.kt:291 */
  272    479   
    }
         480  +
    /* BuilderGenerator.kt:312 */
  273    481   
    #[allow(missing_docs)] // documentation missing in model
         482  +
                           /* BuilderGenerator.kt:314 */
  274    483   
    pub fn set_empty_struct(mut self, input: ::std::option::Option<crate::types::EmptyStruct>) -> Self {
         484  +
        /* BuilderGenerator.kt:315 */
  275    485   
        self.empty_struct = input;
  276    486   
        self
         487  +
        /* BuilderGenerator.kt:314 */
  277    488   
    }
         489  +
    /* BuilderGenerator.kt:334 */
  278    490   
    #[allow(missing_docs)] // documentation missing in model
         491  +
                           /* BuilderGenerator.kt:336 */
  279    492   
    pub fn get_empty_struct(&self) -> &::std::option::Option<crate::types::EmptyStruct> {
         493  +
        /* BuilderGenerator.kt:337 */
  280    494   
        &self.empty_struct
         495  +
        /* BuilderGenerator.kt:336 */
  281    496   
    }
         497  +
    /* BuilderGenerator.kt:286 */
  282    498   
    #[allow(missing_docs)] // documentation missing in model
         499  +
                           /* BuilderGenerator.kt:291 */
  283    500   
    pub fn float(mut self, input: f32) -> Self {
         501  +
        /* BuilderGenerator.kt:292 */
  284    502   
        self.float = ::std::option::Option::Some(input);
         503  +
        /* BuilderGenerator.kt:293 */
  285    504   
        self
         505  +
        /* BuilderGenerator.kt:291 */
  286    506   
    }
         507  +
    /* BuilderGenerator.kt:312 */
  287    508   
    #[allow(missing_docs)] // documentation missing in model
         509  +
                           /* BuilderGenerator.kt:314 */
  288    510   
    pub fn set_float(mut self, input: ::std::option::Option<f32>) -> Self {
         511  +
        /* BuilderGenerator.kt:315 */
  289    512   
        self.float = input;
  290    513   
        self
         514  +
        /* BuilderGenerator.kt:314 */
  291    515   
    }
         516  +
    /* BuilderGenerator.kt:334 */
  292    517   
    #[allow(missing_docs)] // documentation missing in model
         518  +
                           /* BuilderGenerator.kt:336 */
  293    519   
    pub fn get_float(&self) -> &::std::option::Option<f32> {
         520  +
        /* BuilderGenerator.kt:337 */
  294    521   
        &self.float
         522  +
        /* BuilderGenerator.kt:336 */
  295    523   
    }
         524  +
    /* BuilderGenerator.kt:286 */
  296    525   
    #[allow(missing_docs)] // documentation missing in model
         526  +
                           /* BuilderGenerator.kt:291 */
  297    527   
    pub fn httpdate_timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
         528  +
        /* BuilderGenerator.kt:292 */
  298    529   
        self.httpdate_timestamp = ::std::option::Option::Some(input);
         530  +
        /* BuilderGenerator.kt:293 */
  299    531   
        self
         532  +
        /* BuilderGenerator.kt:291 */
  300    533   
    }
         534  +
    /* BuilderGenerator.kt:312 */
  301    535   
    #[allow(missing_docs)] // documentation missing in model
         536  +
                           /* BuilderGenerator.kt:314 */
  302    537   
    pub fn set_httpdate_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
         538  +
        /* BuilderGenerator.kt:315 */
  303    539   
        self.httpdate_timestamp = input;
  304    540   
        self
         541  +
        /* BuilderGenerator.kt:314 */
  305    542   
    }
         543  +
    /* BuilderGenerator.kt:334 */
  306    544   
    #[allow(missing_docs)] // documentation missing in model
         545  +
                           /* BuilderGenerator.kt:336 */
  307    546   
    pub fn get_httpdate_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
         547  +
        /* BuilderGenerator.kt:337 */
  308    548   
        &self.httpdate_timestamp
         549  +
        /* BuilderGenerator.kt:336 */
  309    550   
    }
         551  +
    /* BuilderGenerator.kt:286 */
  310    552   
    #[allow(missing_docs)] // documentation missing in model
         553  +
                           /* BuilderGenerator.kt:291 */
  311    554   
    pub fn integer(mut self, input: i32) -> Self {
         555  +
        /* BuilderGenerator.kt:292 */
  312    556   
        self.integer = ::std::option::Option::Some(input);
         557  +
        /* BuilderGenerator.kt:293 */
  313    558   
        self
         559  +
        /* BuilderGenerator.kt:291 */
  314    560   
    }
         561  +
    /* BuilderGenerator.kt:312 */
  315    562   
    #[allow(missing_docs)] // documentation missing in model
         563  +
                           /* BuilderGenerator.kt:314 */
  316    564   
    pub fn set_integer(mut self, input: ::std::option::Option<i32>) -> Self {
         565  +
        /* BuilderGenerator.kt:315 */
  317    566   
        self.integer = input;
  318    567   
        self
         568  +
        /* BuilderGenerator.kt:314 */
  319    569   
    }
         570  +
    /* BuilderGenerator.kt:334 */
  320    571   
    #[allow(missing_docs)] // documentation missing in model
         572  +
                           /* BuilderGenerator.kt:336 */
  321    573   
    pub fn get_integer(&self) -> &::std::option::Option<i32> {
         574  +
        /* BuilderGenerator.kt:337 */
  322    575   
        &self.integer
         576  +
        /* BuilderGenerator.kt:336 */
  323    577   
    }
         578  +
    /* BuilderGenerator.kt:286 */
  324    579   
    #[allow(missing_docs)] // documentation missing in model
         580  +
                           /* BuilderGenerator.kt:291 */
  325    581   
    pub fn iso8601_timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
         582  +
        /* BuilderGenerator.kt:292 */
  326    583   
        self.iso8601_timestamp = ::std::option::Option::Some(input);
         584  +
        /* BuilderGenerator.kt:293 */
  327    585   
        self
         586  +
        /* BuilderGenerator.kt:291 */
  328    587   
    }
         588  +
    /* BuilderGenerator.kt:312 */
  329    589   
    #[allow(missing_docs)] // documentation missing in model
         590  +
                           /* BuilderGenerator.kt:314 */
  330    591   
    pub fn set_iso8601_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
         592  +
        /* BuilderGenerator.kt:315 */
  331    593   
        self.iso8601_timestamp = input;
  332    594   
        self
         595  +
        /* BuilderGenerator.kt:314 */
  333    596   
    }
         597  +
    /* BuilderGenerator.kt:334 */
  334    598   
    #[allow(missing_docs)] // documentation missing in model
         599  +
                           /* BuilderGenerator.kt:336 */
  335    600   
    pub fn get_iso8601_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
         601  +
        /* BuilderGenerator.kt:337 */
  336    602   
        &self.iso8601_timestamp
         603  +
        /* BuilderGenerator.kt:336 */
  337    604   
    }
         605  +
    /* BuilderGenerator.kt:286 */
  338    606   
    #[allow(missing_docs)] // documentation missing in model
         607  +
                           /* BuilderGenerator.kt:291 */
  339    608   
    pub fn json_value(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         609  +
        /* BuilderGenerator.kt:292 */
  340    610   
        self.json_value = ::std::option::Option::Some(input.into());
         611  +
        /* BuilderGenerator.kt:293 */
  341    612   
        self
         613  +
        /* BuilderGenerator.kt:291 */
  342    614   
    }
         615  +
    /* BuilderGenerator.kt:312 */
  343    616   
    #[allow(missing_docs)] // documentation missing in model
         617  +
                           /* BuilderGenerator.kt:314 */
  344    618   
    pub fn set_json_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         619  +
        /* BuilderGenerator.kt:315 */
  345    620   
        self.json_value = input;
  346    621   
        self
         622  +
        /* BuilderGenerator.kt:314 */
  347    623   
    }
         624  +
    /* BuilderGenerator.kt:334 */
  348    625   
    #[allow(missing_docs)] // documentation missing in model
         626  +
                           /* BuilderGenerator.kt:336 */
  349    627   
    pub fn get_json_value(&self) -> &::std::option::Option<::std::string::String> {
         628  +
        /* BuilderGenerator.kt:337 */
  350    629   
        &self.json_value
         630  +
        /* BuilderGenerator.kt:336 */
  351    631   
    }
  352         -
    /// Appends an item to `list_of_lists`.
         632  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `list_of_lists`.
         633  +
    /* BuilderGenerator.kt:411 */
  353    634   
    ///
  354         -
    /// To override the contents of this collection use [`set_list_of_lists`](Self::set_list_of_lists).
         635  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_list_of_lists`](Self::set_list_of_lists).
         636  +
    /* BuilderGenerator.kt:413 */
  355    637   
    ///
         638  +
    /* BuilderGenerator.kt:418 */
  356    639   
    pub fn list_of_lists(mut self, input: ::std::vec::Vec<::std::string::String>) -> Self {
         640  +
        /* BuilderGenerator.kt:419 */
  357    641   
        let mut v = self.list_of_lists.unwrap_or_default();
  358    642   
        v.push(input);
  359    643   
        self.list_of_lists = ::std::option::Option::Some(v);
  360    644   
        self
         645  +
        /* BuilderGenerator.kt:418 */
  361    646   
    }
         647  +
    /* BuilderGenerator.kt:312 */
  362    648   
    #[allow(missing_docs)] // documentation missing in model
         649  +
                           /* BuilderGenerator.kt:314 */
  363    650   
    pub fn set_list_of_lists(mut self, input: ::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>) -> Self {
         651  +
        /* BuilderGenerator.kt:315 */
  364    652   
        self.list_of_lists = input;
  365    653   
        self
         654  +
        /* BuilderGenerator.kt:314 */
  366    655   
    }
         656  +
    /* BuilderGenerator.kt:334 */
  367    657   
    #[allow(missing_docs)] // documentation missing in model
         658  +
                           /* BuilderGenerator.kt:336 */
  368    659   
    pub fn get_list_of_lists(&self) -> &::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>> {
         660  +
        /* BuilderGenerator.kt:337 */
  369    661   
        &self.list_of_lists
         662  +
        /* BuilderGenerator.kt:336 */
  370    663   
    }
  371         -
    /// Appends an item to `list_of_maps_of_strings`.
         664  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `list_of_maps_of_strings`.
         665  +
    /* BuilderGenerator.kt:411 */
  372    666   
    ///
  373         -
    /// To override the contents of this collection use [`set_list_of_maps_of_strings`](Self::set_list_of_maps_of_strings).
         667  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_list_of_maps_of_strings`](Self::set_list_of_maps_of_strings).
         668  +
    /* BuilderGenerator.kt:413 */
  374    669   
    ///
         670  +
    /* BuilderGenerator.kt:418 */
  375    671   
    pub fn list_of_maps_of_strings(mut self, input: ::std::collections::HashMap<::std::string::String, ::std::string::String>) -> Self {
         672  +
        /* BuilderGenerator.kt:419 */
  376    673   
        let mut v = self.list_of_maps_of_strings.unwrap_or_default();
  377    674   
        v.push(input);
  378    675   
        self.list_of_maps_of_strings = ::std::option::Option::Some(v);
  379    676   
        self
         677  +
        /* BuilderGenerator.kt:418 */
  380    678   
    }
         679  +
    /* BuilderGenerator.kt:312 */
  381    680   
    #[allow(missing_docs)] // documentation missing in model
         681  +
                           /* BuilderGenerator.kt:314 */
  382    682   
    pub fn set_list_of_maps_of_strings(
  383    683   
        mut self,
  384    684   
        input: ::std::option::Option<::std::vec::Vec<::std::collections::HashMap<::std::string::String, ::std::string::String>>>,
  385    685   
    ) -> Self {
         686  +
        /* BuilderGenerator.kt:315 */
  386    687   
        self.list_of_maps_of_strings = input;
  387    688   
        self
         689  +
        /* BuilderGenerator.kt:314 */
  388    690   
    }
         691  +
    /* BuilderGenerator.kt:334 */
  389    692   
    #[allow(missing_docs)] // documentation missing in model
         693  +
                           /* BuilderGenerator.kt:336 */
  390    694   
    pub fn get_list_of_maps_of_strings(
  391    695   
        &self,
  392    696   
    ) -> &::std::option::Option<::std::vec::Vec<::std::collections::HashMap<::std::string::String, ::std::string::String>>> {
         697  +
        /* BuilderGenerator.kt:337 */
  393    698   
        &self.list_of_maps_of_strings
         699  +
        /* BuilderGenerator.kt:336 */
  394    700   
    }
  395         -
    /// Appends an item to `list_of_strings`.
         701  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `list_of_strings`.
         702  +
    /* BuilderGenerator.kt:411 */
  396    703   
    ///
  397         -
    /// To override the contents of this collection use [`set_list_of_strings`](Self::set_list_of_strings).
         704  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_list_of_strings`](Self::set_list_of_strings).
         705  +
    /* BuilderGenerator.kt:413 */
  398    706   
    ///
         707  +
    /* BuilderGenerator.kt:418 */
  399    708   
    pub fn list_of_strings(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         709  +
        /* BuilderGenerator.kt:419 */
  400    710   
        let mut v = self.list_of_strings.unwrap_or_default();
  401    711   
        v.push(input.into());
  402    712   
        self.list_of_strings = ::std::option::Option::Some(v);
  403    713   
        self
         714  +
        /* BuilderGenerator.kt:418 */
  404    715   
    }
         716  +
    /* BuilderGenerator.kt:312 */
  405    717   
    #[allow(missing_docs)] // documentation missing in model
         718  +
                           /* BuilderGenerator.kt:314 */
  406    719   
    pub fn set_list_of_strings(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
         720  +
        /* BuilderGenerator.kt:315 */
  407    721   
        self.list_of_strings = input;
  408    722   
        self
         723  +
        /* BuilderGenerator.kt:314 */
  409    724   
    }
         725  +
    /* BuilderGenerator.kt:334 */
  410    726   
    #[allow(missing_docs)] // documentation missing in model
         727  +
                           /* BuilderGenerator.kt:336 */
  411    728   
    pub fn get_list_of_strings(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
         729  +
        /* BuilderGenerator.kt:337 */
  412    730   
        &self.list_of_strings
         731  +
        /* BuilderGenerator.kt:336 */
  413    732   
    }
  414         -
    /// Appends an item to `list_of_structs`.
         733  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `list_of_structs`.
         734  +
    /* BuilderGenerator.kt:411 */
  415    735   
    ///
  416         -
    /// To override the contents of this collection use [`set_list_of_structs`](Self::set_list_of_structs).
         736  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_list_of_structs`](Self::set_list_of_structs).
         737  +
    /* BuilderGenerator.kt:413 */
  417    738   
    ///
         739  +
    /* BuilderGenerator.kt:418 */
  418    740   
    pub fn list_of_structs(mut self, input: crate::types::SimpleStruct) -> Self {
         741  +
        /* BuilderGenerator.kt:419 */
  419    742   
        let mut v = self.list_of_structs.unwrap_or_default();
  420    743   
        v.push(input);
  421    744   
        self.list_of_structs = ::std::option::Option::Some(v);
  422    745   
        self
         746  +
        /* BuilderGenerator.kt:418 */
  423    747   
    }
         748  +
    /* BuilderGenerator.kt:312 */
  424    749   
    #[allow(missing_docs)] // documentation missing in model
         750  +
                           /* BuilderGenerator.kt:314 */
  425    751   
    pub fn set_list_of_structs(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::SimpleStruct>>) -> Self {
         752  +
        /* BuilderGenerator.kt:315 */
  426    753   
        self.list_of_structs = input;
  427    754   
        self
         755  +
        /* BuilderGenerator.kt:314 */
  428    756   
    }
         757  +
    /* BuilderGenerator.kt:334 */
  429    758   
    #[allow(missing_docs)] // documentation missing in model
         759  +
                           /* BuilderGenerator.kt:336 */
  430    760   
    pub fn get_list_of_structs(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::SimpleStruct>> {
         761  +
        /* BuilderGenerator.kt:337 */
  431    762   
        &self.list_of_structs
         763  +
        /* BuilderGenerator.kt:336 */
  432    764   
    }
         765  +
    /* BuilderGenerator.kt:286 */
  433    766   
    #[allow(missing_docs)] // documentation missing in model
         767  +
                           /* BuilderGenerator.kt:291 */
  434    768   
    pub fn long(mut self, input: i64) -> Self {
         769  +
        /* BuilderGenerator.kt:292 */
  435    770   
        self.long = ::std::option::Option::Some(input);
         771  +
        /* BuilderGenerator.kt:293 */
  436    772   
        self
         773  +
        /* BuilderGenerator.kt:291 */
  437    774   
    }
         775  +
    /* BuilderGenerator.kt:312 */
  438    776   
    #[allow(missing_docs)] // documentation missing in model
         777  +
                           /* BuilderGenerator.kt:314 */
  439    778   
    pub fn set_long(mut self, input: ::std::option::Option<i64>) -> Self {
         779  +
        /* BuilderGenerator.kt:315 */
  440    780   
        self.long = input;
  441    781   
        self
         782  +
        /* BuilderGenerator.kt:314 */
  442    783   
    }
         784  +
    /* BuilderGenerator.kt:334 */
  443    785   
    #[allow(missing_docs)] // documentation missing in model
         786  +
                           /* BuilderGenerator.kt:336 */
  444    787   
    pub fn get_long(&self) -> &::std::option::Option<i64> {
         788  +
        /* BuilderGenerator.kt:337 */
  445    789   
        &self.long
         790  +
        /* BuilderGenerator.kt:336 */
  446    791   
    }
  447         -
    /// Adds a key-value pair to `map_of_lists_of_strings`.
         792  +
    /// /* BuilderGenerator.kt:436 */Adds a key-value pair to `map_of_lists_of_strings`.
         793  +
    /* BuilderGenerator.kt:437 */
  448    794   
    ///
  449         -
    /// To override the contents of this collection use [`set_map_of_lists_of_strings`](Self::set_map_of_lists_of_strings).
         795  +
    /// /* BuilderGenerator.kt:438 */To override the contents of this collection use [`set_map_of_lists_of_strings`](Self::set_map_of_lists_of_strings).
         796  +
    /* BuilderGenerator.kt:439 */
  450    797   
    ///
         798  +
    /* BuilderGenerator.kt:445 */
  451    799   
    pub fn map_of_lists_of_strings(mut self, k: impl ::std::convert::Into<::std::string::String>, v: ::std::vec::Vec<::std::string::String>) -> Self {
         800  +
        /* BuilderGenerator.kt:448 */
  452    801   
        let mut hash_map = self.map_of_lists_of_strings.unwrap_or_default();
  453    802   
        hash_map.insert(k.into(), v);
  454    803   
        self.map_of_lists_of_strings = ::std::option::Option::Some(hash_map);
  455    804   
        self
         805  +
        /* BuilderGenerator.kt:445 */
  456    806   
    }
         807  +
    /* BuilderGenerator.kt:312 */
  457    808   
    #[allow(missing_docs)] // documentation missing in model
         809  +
                           /* BuilderGenerator.kt:314 */
  458    810   
    pub fn set_map_of_lists_of_strings(
  459    811   
        mut self,
  460    812   
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>>,
  461    813   
    ) -> Self {
         814  +
        /* BuilderGenerator.kt:315 */
  462    815   
        self.map_of_lists_of_strings = input;
  463    816   
        self
         817  +
        /* BuilderGenerator.kt:314 */
  464    818   
    }
         819  +
    /* BuilderGenerator.kt:334 */
  465    820   
    #[allow(missing_docs)] // documentation missing in model
         821  +
                           /* BuilderGenerator.kt:336 */
  466    822   
    pub fn get_map_of_lists_of_strings(
  467    823   
        &self,
  468    824   
    ) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>> {
         825  +
        /* BuilderGenerator.kt:337 */
  469    826   
        &self.map_of_lists_of_strings
         827  +
        /* BuilderGenerator.kt:336 */
  470    828   
    }
  471         -
    /// Adds a key-value pair to `map_of_maps`.
         829  +
    /// /* BuilderGenerator.kt:436 */Adds a key-value pair to `map_of_maps`.
         830  +
    /* BuilderGenerator.kt:437 */
  472    831   
    ///
  473         -
    /// To override the contents of this collection use [`set_map_of_maps`](Self::set_map_of_maps).
         832  +
    /// /* BuilderGenerator.kt:438 */To override the contents of this collection use [`set_map_of_maps`](Self::set_map_of_maps).
         833  +
    /* BuilderGenerator.kt:439 */
  474    834   
    ///
         835  +
    /* BuilderGenerator.kt:445 */
  475    836   
    pub fn map_of_maps(
  476    837   
        mut self,
  477    838   
        k: impl ::std::convert::Into<::std::string::String>,
  478    839   
        v: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
  479    840   
    ) -> Self {
         841  +
        /* BuilderGenerator.kt:448 */
  480    842   
        let mut hash_map = self.map_of_maps.unwrap_or_default();
  481    843   
        hash_map.insert(k.into(), v);
  482    844   
        self.map_of_maps = ::std::option::Option::Some(hash_map);
  483    845   
        self
         846  +
        /* BuilderGenerator.kt:445 */
  484    847   
    }
         848  +
    /* BuilderGenerator.kt:312 */
  485    849   
    #[allow(missing_docs)] // documentation missing in model
         850  +
                           /* BuilderGenerator.kt:314 */
  486    851   
    pub fn set_map_of_maps(
  487    852   
        mut self,
  488    853   
        input: ::std::option::Option<
  489    854   
            ::std::collections::HashMap<::std::string::String, ::std::collections::HashMap<::std::string::String, ::std::string::String>>,
  490    855   
        >,
  491    856   
    ) -> Self {
         857  +
        /* BuilderGenerator.kt:315 */
  492    858   
        self.map_of_maps = input;
  493    859   
        self
         860  +
        /* BuilderGenerator.kt:314 */
  494    861   
    }
         862  +
    /* BuilderGenerator.kt:334 */
  495    863   
    #[allow(missing_docs)] // documentation missing in model
         864  +
                           /* BuilderGenerator.kt:336 */
  496    865   
    pub fn get_map_of_maps(
  497    866   
        &self,
  498    867   
    ) -> &::std::option::Option<
  499    868   
        ::std::collections::HashMap<::std::string::String, ::std::collections::HashMap<::std::string::String, ::std::string::String>>,
  500    869   
    > {
         870  +
        /* BuilderGenerator.kt:337 */
  501    871   
        &self.map_of_maps
         872  +
        /* BuilderGenerator.kt:336 */
  502    873   
    }
  503         -
    /// Adds a key-value pair to `map_of_strings`.
         874  +
    /// /* BuilderGenerator.kt:436 */Adds a key-value pair to `map_of_strings`.
         875  +
    /* BuilderGenerator.kt:437 */
  504    876   
    ///
  505         -
    /// To override the contents of this collection use [`set_map_of_strings`](Self::set_map_of_strings).
         877  +
    /// /* BuilderGenerator.kt:438 */To override the contents of this collection use [`set_map_of_strings`](Self::set_map_of_strings).
         878  +
    /* BuilderGenerator.kt:439 */
  506    879   
    ///
         880  +
    /* BuilderGenerator.kt:445 */
  507    881   
    pub fn map_of_strings(
  508    882   
        mut self,
  509    883   
        k: impl ::std::convert::Into<::std::string::String>,
  510    884   
        v: impl ::std::convert::Into<::std::string::String>,
  511    885   
    ) -> Self {
         886  +
        /* BuilderGenerator.kt:448 */
  512    887   
        let mut hash_map = self.map_of_strings.unwrap_or_default();
  513    888   
        hash_map.insert(k.into(), v.into());
  514    889   
        self.map_of_strings = ::std::option::Option::Some(hash_map);
  515    890   
        self
         891  +
        /* BuilderGenerator.kt:445 */
  516    892   
    }
         893  +
    /* BuilderGenerator.kt:312 */
  517    894   
    #[allow(missing_docs)] // documentation missing in model
         895  +
                           /* BuilderGenerator.kt:314 */
  518    896   
    pub fn set_map_of_strings(
  519    897   
        mut self,
  520    898   
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
  521    899   
    ) -> Self {
         900  +
        /* BuilderGenerator.kt:315 */
  522    901   
        self.map_of_strings = input;
  523    902   
        self
         903  +
        /* BuilderGenerator.kt:314 */
  524    904   
    }
         905  +
    /* BuilderGenerator.kt:334 */
  525    906   
    #[allow(missing_docs)] // documentation missing in model
         907  +
                           /* BuilderGenerator.kt:336 */
  526    908   
    pub fn get_map_of_strings(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
         909  +
        /* BuilderGenerator.kt:337 */
  527    910   
        &self.map_of_strings
         911  +
        /* BuilderGenerator.kt:336 */
  528    912   
    }
  529         -
    /// Adds a key-value pair to `map_of_structs`.
         913  +
    /// /* BuilderGenerator.kt:436 */Adds a key-value pair to `map_of_structs`.
         914  +
    /* BuilderGenerator.kt:437 */
  530    915   
    ///
  531         -
    /// To override the contents of this collection use [`set_map_of_structs`](Self::set_map_of_structs).
         916  +
    /// /* BuilderGenerator.kt:438 */To override the contents of this collection use [`set_map_of_structs`](Self::set_map_of_structs).
         917  +
    /* BuilderGenerator.kt:439 */
  532    918   
    ///
         919  +
    /* BuilderGenerator.kt:445 */
  533    920   
    pub fn map_of_structs(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::SimpleStruct) -> Self {
         921  +
        /* BuilderGenerator.kt:448 */
  534    922   
        let mut hash_map = self.map_of_structs.unwrap_or_default();
  535    923   
        hash_map.insert(k.into(), v);
  536    924   
        self.map_of_structs = ::std::option::Option::Some(hash_map);
  537    925   
        self
         926  +
        /* BuilderGenerator.kt:445 */
  538    927   
    }
         928  +
    /* BuilderGenerator.kt:312 */
  539    929   
    #[allow(missing_docs)] // documentation missing in model
         930  +
                           /* BuilderGenerator.kt:314 */
  540    931   
    pub fn set_map_of_structs(
  541    932   
        mut self,
  542    933   
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::SimpleStruct>>,
  543    934   
    ) -> Self {
         935  +
        /* BuilderGenerator.kt:315 */
  544    936   
        self.map_of_structs = input;
  545    937   
        self
         938  +
        /* BuilderGenerator.kt:314 */
  546    939   
    }
         940  +
    /* BuilderGenerator.kt:334 */
  547    941   
    #[allow(missing_docs)] // documentation missing in model
         942  +
                           /* BuilderGenerator.kt:336 */
  548    943   
    pub fn get_map_of_structs(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::SimpleStruct>> {
         944  +
        /* BuilderGenerator.kt:337 */
  549    945   
        &self.map_of_structs
         946  +
        /* BuilderGenerator.kt:336 */
  550    947   
    }
  551         -
    /// Appends an item to `recursive_list`.
         948  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `recursive_list`.
         949  +
    /* BuilderGenerator.kt:411 */
  552    950   
    ///
  553         -
    /// To override the contents of this collection use [`set_recursive_list`](Self::set_recursive_list).
         951  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_recursive_list`](Self::set_recursive_list).
         952  +
    /* BuilderGenerator.kt:413 */
  554    953   
    ///
         954  +
    /* BuilderGenerator.kt:418 */
  555    955   
    pub fn recursive_list(mut self, input: crate::types::KitchenSink) -> Self {
         956  +
        /* BuilderGenerator.kt:419 */
  556    957   
        let mut v = self.recursive_list.unwrap_or_default();
  557    958   
        v.push(input);
  558    959   
        self.recursive_list = ::std::option::Option::Some(v);
  559    960   
        self
         961  +
        /* BuilderGenerator.kt:418 */
  560    962   
    }
         963  +
    /* BuilderGenerator.kt:312 */
  561    964   
    #[allow(missing_docs)] // documentation missing in model
         965  +
                           /* BuilderGenerator.kt:314 */
  562    966   
    pub fn set_recursive_list(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::KitchenSink>>) -> Self {
         967  +
        /* BuilderGenerator.kt:315 */
  563    968   
        self.recursive_list = input;
  564    969   
        self
         970  +
        /* BuilderGenerator.kt:314 */
  565    971   
    }
         972  +
    /* BuilderGenerator.kt:334 */
  566    973   
    #[allow(missing_docs)] // documentation missing in model
         974  +
                           /* BuilderGenerator.kt:336 */
  567    975   
    pub fn get_recursive_list(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::KitchenSink>> {
         976  +
        /* BuilderGenerator.kt:337 */
  568    977   
        &self.recursive_list
         978  +
        /* BuilderGenerator.kt:336 */
  569    979   
    }
  570         -
    /// Adds a key-value pair to `recursive_map`.
         980  +
    /// /* BuilderGenerator.kt:436 */Adds a key-value pair to `recursive_map`.
         981  +
    /* BuilderGenerator.kt:437 */
  571    982   
    ///
  572         -
    /// To override the contents of this collection use [`set_recursive_map`](Self::set_recursive_map).
         983  +
    /// /* BuilderGenerator.kt:438 */To override the contents of this collection use [`set_recursive_map`](Self::set_recursive_map).
         984  +
    /* BuilderGenerator.kt:439 */
  573    985   
    ///
         986  +
    /* BuilderGenerator.kt:445 */
  574    987   
    pub fn recursive_map(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::KitchenSink) -> Self {
         988  +
        /* BuilderGenerator.kt:448 */
  575    989   
        let mut hash_map = self.recursive_map.unwrap_or_default();
  576    990   
        hash_map.insert(k.into(), v);
  577    991   
        self.recursive_map = ::std::option::Option::Some(hash_map);
  578    992   
        self
         993  +
        /* BuilderGenerator.kt:445 */
  579    994   
    }
         995  +
    /* BuilderGenerator.kt:312 */
  580    996   
    #[allow(missing_docs)] // documentation missing in model
         997  +
                           /* BuilderGenerator.kt:314 */
  581    998   
    pub fn set_recursive_map(
  582    999   
        mut self,
  583   1000   
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::KitchenSink>>,
  584   1001   
    ) -> Self {
        1002  +
        /* BuilderGenerator.kt:315 */
  585   1003   
        self.recursive_map = input;
  586   1004   
        self
        1005  +
        /* BuilderGenerator.kt:314 */
  587   1006   
    }
        1007  +
    /* BuilderGenerator.kt:334 */
  588   1008   
    #[allow(missing_docs)] // documentation missing in model
        1009  +
                           /* BuilderGenerator.kt:336 */
  589   1010   
    pub fn get_recursive_map(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::KitchenSink>> {
        1011  +
        /* BuilderGenerator.kt:337 */
  590   1012   
        &self.recursive_map
        1013  +
        /* BuilderGenerator.kt:336 */
  591   1014   
    }
        1015  +
    /* BuilderGenerator.kt:286 */
  592   1016   
    #[allow(missing_docs)] // documentation missing in model
        1017  +
                           /* BuilderGenerator.kt:291 */
  593   1018   
    pub fn recursive_struct(mut self, input: impl ::std::convert::Into<::std::boxed::Box<crate::types::KitchenSink>>) -> Self {
        1019  +
        /* BuilderGenerator.kt:292 */
  594   1020   
        self.recursive_struct = ::std::option::Option::Some(input.into());
        1021  +
        /* BuilderGenerator.kt:293 */
  595   1022   
        self
        1023  +
        /* BuilderGenerator.kt:291 */
  596   1024   
    }
        1025  +
    /* BuilderGenerator.kt:312 */
  597   1026   
    #[allow(missing_docs)] // documentation missing in model
        1027  +
                           /* BuilderGenerator.kt:314 */
  598   1028   
    pub fn set_recursive_struct(mut self, input: ::std::option::Option<::std::boxed::Box<crate::types::KitchenSink>>) -> Self {
        1029  +
        /* BuilderGenerator.kt:315 */
  599   1030   
        self.recursive_struct = input;
  600   1031   
        self
        1032  +
        /* BuilderGenerator.kt:314 */
  601   1033   
    }
        1034  +
    /* BuilderGenerator.kt:334 */
  602   1035   
    #[allow(missing_docs)] // documentation missing in model
        1036  +
                           /* BuilderGenerator.kt:336 */
  603   1037   
    pub fn get_recursive_struct(&self) -> &::std::option::Option<::std::boxed::Box<crate::types::KitchenSink>> {
        1038  +
        /* BuilderGenerator.kt:337 */
  604   1039   
        &self.recursive_struct
        1040  +
        /* BuilderGenerator.kt:336 */
  605   1041   
    }
        1042  +
    /* BuilderGenerator.kt:286 */
  606   1043   
    #[allow(missing_docs)] // documentation missing in model
        1044  +
                           /* BuilderGenerator.kt:291 */
  607   1045   
    pub fn simple_struct(mut self, input: crate::types::SimpleStruct) -> Self {
        1046  +
        /* BuilderGenerator.kt:292 */
  608   1047   
        self.simple_struct = ::std::option::Option::Some(input);
        1048  +
        /* BuilderGenerator.kt:293 */
  609   1049   
        self
        1050  +
        /* BuilderGenerator.kt:291 */
  610   1051   
    }
        1052  +
    /* BuilderGenerator.kt:312 */
  611   1053   
    #[allow(missing_docs)] // documentation missing in model
        1054  +
                           /* BuilderGenerator.kt:314 */
  612   1055   
    pub fn set_simple_struct(mut self, input: ::std::option::Option<crate::types::SimpleStruct>) -> Self {
        1056  +
        /* BuilderGenerator.kt:315 */
  613   1057   
        self.simple_struct = input;
  614   1058   
        self
        1059  +
        /* BuilderGenerator.kt:314 */
  615   1060   
    }
        1061  +
    /* BuilderGenerator.kt:334 */
  616   1062   
    #[allow(missing_docs)] // documentation missing in model
        1063  +
                           /* BuilderGenerator.kt:336 */
  617   1064   
    pub fn get_simple_struct(&self) -> &::std::option::Option<crate::types::SimpleStruct> {
        1065  +
        /* BuilderGenerator.kt:337 */
  618   1066   
        &self.simple_struct
        1067  +
        /* BuilderGenerator.kt:336 */
  619   1068   
    }
        1069  +
    /* BuilderGenerator.kt:286 */
  620   1070   
    #[allow(missing_docs)] // documentation missing in model
        1071  +
                           /* BuilderGenerator.kt:291 */
  621   1072   
    pub fn string(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        1073  +
        /* BuilderGenerator.kt:292 */
  622   1074   
        self.string = ::std::option::Option::Some(input.into());
        1075  +
        /* BuilderGenerator.kt:293 */
  623   1076   
        self
        1077  +
        /* BuilderGenerator.kt:291 */
  624   1078   
    }
        1079  +
    /* BuilderGenerator.kt:312 */
  625   1080   
    #[allow(missing_docs)] // documentation missing in model
        1081  +
                           /* BuilderGenerator.kt:314 */
  626   1082   
    pub fn set_string(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        1083  +
        /* BuilderGenerator.kt:315 */
  627   1084   
        self.string = input;
  628   1085   
        self
        1086  +
        /* BuilderGenerator.kt:314 */
  629   1087   
    }
        1088  +
    /* BuilderGenerator.kt:334 */
  630   1089   
    #[allow(missing_docs)] // documentation missing in model
        1090  +
                           /* BuilderGenerator.kt:336 */
  631   1091   
    pub fn get_string(&self) -> &::std::option::Option<::std::string::String> {
        1092  +
        /* BuilderGenerator.kt:337 */
  632   1093   
        &self.string
        1094  +
        /* BuilderGenerator.kt:336 */
  633   1095   
    }
        1096  +
    /* BuilderGenerator.kt:286 */
  634   1097   
    #[allow(missing_docs)] // documentation missing in model
        1098  +
                           /* BuilderGenerator.kt:291 */
  635   1099   
    pub fn struct_with_json_name(mut self, input: crate::types::StructWithJsonName) -> Self {
        1100  +
        /* BuilderGenerator.kt:292 */
  636   1101   
        self.struct_with_json_name = ::std::option::Option::Some(input);
        1102  +
        /* BuilderGenerator.kt:293 */
  637   1103   
        self
        1104  +
        /* BuilderGenerator.kt:291 */
  638   1105   
    }
        1106  +
    /* BuilderGenerator.kt:312 */
  639   1107   
    #[allow(missing_docs)] // documentation missing in model
        1108  +
                           /* BuilderGenerator.kt:314 */
  640   1109   
    pub fn set_struct_with_json_name(mut self, input: ::std::option::Option<crate::types::StructWithJsonName>) -> Self {
        1110  +
        /* BuilderGenerator.kt:315 */
  641   1111   
        self.struct_with_json_name = input;
  642   1112   
        self
        1113  +
        /* BuilderGenerator.kt:314 */
  643   1114   
    }
        1115  +
    /* BuilderGenerator.kt:334 */
  644   1116   
    #[allow(missing_docs)] // documentation missing in model
        1117  +
                           /* BuilderGenerator.kt:336 */
  645   1118   
    pub fn get_struct_with_json_name(&self) -> &::std::option::Option<crate::types::StructWithJsonName> {
        1119  +
        /* BuilderGenerator.kt:337 */
  646   1120   
        &self.struct_with_json_name
        1121  +
        /* BuilderGenerator.kt:336 */
  647   1122   
    }
        1123  +
    /* BuilderGenerator.kt:286 */
  648   1124   
    #[allow(missing_docs)] // documentation missing in model
        1125  +
                           /* BuilderGenerator.kt:291 */
  649   1126   
    pub fn timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        1127  +
        /* BuilderGenerator.kt:292 */
  650   1128   
        self.timestamp = ::std::option::Option::Some(input);
        1129  +
        /* BuilderGenerator.kt:293 */
  651   1130   
        self
        1131  +
        /* BuilderGenerator.kt:291 */
  652   1132   
    }
        1133  +
    /* BuilderGenerator.kt:312 */
  653   1134   
    #[allow(missing_docs)] // documentation missing in model
        1135  +
                           /* BuilderGenerator.kt:314 */
  654   1136   
    pub fn set_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        1137  +
        /* BuilderGenerator.kt:315 */
  655   1138   
        self.timestamp = input;
  656   1139   
        self
        1140  +
        /* BuilderGenerator.kt:314 */
  657   1141   
    }
        1142  +
    /* BuilderGenerator.kt:334 */
  658   1143   
    #[allow(missing_docs)] // documentation missing in model
        1144  +
                           /* BuilderGenerator.kt:336 */
  659   1145   
    pub fn get_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        1146  +
        /* BuilderGenerator.kt:337 */
  660   1147   
        &self.timestamp
        1148  +
        /* BuilderGenerator.kt:336 */
  661   1149   
    }
        1150  +
    /* BuilderGenerator.kt:286 */
  662   1151   
    #[allow(missing_docs)] // documentation missing in model
        1152  +
                           /* BuilderGenerator.kt:291 */
  663   1153   
    pub fn unix_timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        1154  +
        /* BuilderGenerator.kt:292 */
  664   1155   
        self.unix_timestamp = ::std::option::Option::Some(input);
        1156  +
        /* BuilderGenerator.kt:293 */
  665   1157   
        self
        1158  +
        /* BuilderGenerator.kt:291 */
  666   1159   
    }
        1160  +
    /* BuilderGenerator.kt:312 */
  667   1161   
    #[allow(missing_docs)] // documentation missing in model
        1162  +
                           /* BuilderGenerator.kt:314 */
  668   1163   
    pub fn set_unix_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        1164  +
        /* BuilderGenerator.kt:315 */
  669   1165   
        self.unix_timestamp = input;
  670   1166   
        self
        1167  +
        /* BuilderGenerator.kt:314 */
  671   1168   
    }
        1169  +
    /* BuilderGenerator.kt:334 */
  672   1170   
    #[allow(missing_docs)] // documentation missing in model
        1171  +
                           /* BuilderGenerator.kt:336 */
  673   1172   
    pub fn get_unix_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        1173  +
        /* BuilderGenerator.kt:337 */
  674   1174   
        &self.unix_timestamp
        1175  +
        /* BuilderGenerator.kt:336 */
  675   1176   
    }
  676         -
    /// Consumes the builder and constructs a [`KitchenSink`](crate::types::KitchenSink).
        1177  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`KitchenSink`](crate::types::KitchenSink).
        1178  +
    /* BuilderGenerator.kt:253 */
  677   1179   
    pub fn build(self) -> crate::types::KitchenSink {
        1180  +
        /* BuilderGenerator.kt:477 */
  678   1181   
        crate::types::KitchenSink {
  679         -
            blob: self.blob,
        1182  +
            /* BuilderGenerator.kt:481 */ blob: self.blob,
        1183  +
            /* BuilderGenerator.kt:481 */
  680   1184   
            boolean: self.boolean,
        1185  +
            /* BuilderGenerator.kt:481 */
  681   1186   
            double: self.double,
        1187  +
            /* BuilderGenerator.kt:481 */
  682   1188   
            empty_struct: self.empty_struct,
        1189  +
            /* BuilderGenerator.kt:481 */
  683   1190   
            float: self.float,
        1191  +
            /* BuilderGenerator.kt:481 */
  684   1192   
            httpdate_timestamp: self.httpdate_timestamp,
        1193  +
            /* BuilderGenerator.kt:481 */
  685   1194   
            integer: self.integer,
        1195  +
            /* BuilderGenerator.kt:481 */
  686   1196   
            iso8601_timestamp: self.iso8601_timestamp,
        1197  +
            /* BuilderGenerator.kt:481 */
  687   1198   
            json_value: self.json_value,
        1199  +
            /* BuilderGenerator.kt:481 */
  688   1200   
            list_of_lists: self.list_of_lists,
        1201  +
            /* BuilderGenerator.kt:481 */
  689   1202   
            list_of_maps_of_strings: self.list_of_maps_of_strings,
        1203  +
            /* BuilderGenerator.kt:481 */
  690   1204   
            list_of_strings: self.list_of_strings,
        1205  +
            /* BuilderGenerator.kt:481 */
  691   1206   
            list_of_structs: self.list_of_structs,
        1207  +
            /* BuilderGenerator.kt:481 */
  692   1208   
            long: self.long,
        1209  +
            /* BuilderGenerator.kt:481 */
  693   1210   
            map_of_lists_of_strings: self.map_of_lists_of_strings,
        1211  +
            /* BuilderGenerator.kt:481 */
  694   1212   
            map_of_maps: self.map_of_maps,
        1213  +
            /* BuilderGenerator.kt:481 */
  695   1214   
            map_of_strings: self.map_of_strings,
        1215  +
            /* BuilderGenerator.kt:481 */
  696   1216   
            map_of_structs: self.map_of_structs,
        1217  +
            /* BuilderGenerator.kt:481 */
  697   1218   
            recursive_list: self.recursive_list,
        1219  +
            /* BuilderGenerator.kt:481 */
  698   1220   
            recursive_map: self.recursive_map,
        1221  +
            /* BuilderGenerator.kt:481 */
  699   1222   
            recursive_struct: self.recursive_struct,
        1223  +
            /* BuilderGenerator.kt:481 */
  700   1224   
            simple_struct: self.simple_struct,
        1225  +
            /* BuilderGenerator.kt:481 */
  701   1226   
            string: self.string,
        1227  +
            /* BuilderGenerator.kt:481 */
  702   1228   
            struct_with_json_name: self.struct_with_json_name,
        1229  +
            /* BuilderGenerator.kt:481 */
  703   1230   
            timestamp: self.timestamp,
        1231  +
            /* BuilderGenerator.kt:481 */
  704   1232   
            unix_timestamp: self.unix_timestamp,
        1233  +
            /* BuilderGenerator.kt:477 */
  705   1234   
        }
        1235  +
        /* BuilderGenerator.kt:253 */
  706   1236   
    }
        1237  +
    /* BuilderGenerator.kt:355 */
  707   1238   
}

tmp-codegen-diff/codegen-client-test/json_rpc11/rust-client-codegen/src/types/_my_union.rs

@@ -1,1 +157,272 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// A union with a representative set of types for members.
           2  +
/* UnionGenerator.kt:67 */
           3  +
/// /* UnionGenerator.kt:67 */A union with a representative set of types for members.
           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 enum MyUnion {
           8  +
pub /* UnionGenerator.kt:85 */ enum MyUnion {
           9  +
    /* UnionGenerator.kt:90 */
    7     10   
    #[allow(missing_docs)] // documentation missing in model
          11  +
    /* UnionGenerator.kt:190 */
    8     12   
    BlobValue(::aws_smithy_types::Blob),
          13  +
    /* UnionGenerator.kt:90 */
    9     14   
    #[allow(missing_docs)] // documentation missing in model
          15  +
    /* UnionGenerator.kt:190 */
   10     16   
    BooleanValue(bool),
          17  +
    /* UnionGenerator.kt:90 */
   11     18   
    #[allow(missing_docs)] // documentation missing in model
          19  +
    /* UnionGenerator.kt:190 */
   12     20   
    EnumValue(crate::types::FooEnum),
          21  +
    /* UnionGenerator.kt:90 */
   13     22   
    #[allow(missing_docs)] // documentation missing in model
          23  +
    /* UnionGenerator.kt:190 */
   14     24   
    ListValue(::std::vec::Vec<::std::string::String>),
          25  +
    /* UnionGenerator.kt:90 */
   15     26   
    #[allow(missing_docs)] // documentation missing in model
          27  +
    /* UnionGenerator.kt:190 */
   16     28   
    MapValue(::std::collections::HashMap<::std::string::String, ::std::string::String>),
   17         -
    #[allow(missing_docs)] // documentation missing in model
          29  +
    /* UnionGenerator.kt:90 */ #[allow(missing_docs)] // documentation missing in model
          30  +
    /* UnionGenerator.kt:190 */
   18     31   
    NumberValue(i32),
          32  +
    /* UnionGenerator.kt:90 */
   19     33   
    #[allow(missing_docs)] // documentation missing in model
          34  +
    /* UnionGenerator.kt:190 */
   20     35   
    StringValue(::std::string::String),
          36  +
    /* UnionGenerator.kt:90 */
   21     37   
    #[allow(missing_docs)] // documentation missing in model
          38  +
    /* UnionGenerator.kt:190 */
   22     39   
    StructureValue(crate::types::GreetingStruct),
          40  +
    /* UnionGenerator.kt:90 */
   23     41   
    #[allow(missing_docs)] // documentation missing in model
          42  +
    /* UnionGenerator.kt:190 */
   24     43   
    TimestampValue(::aws_smithy_types::DateTime),
   25         -
    /// The `Unknown` variant represents cases where new union variant was received. Consider upgrading the SDK to the latest available version.
          44  +
    /// /* UnionGenerator.kt:96 */The `Unknown` variant represents cases where new union variant was received. Consider upgrading the SDK to the latest available version.
          45  +
    /* UnionGenerator.kt:97 */
   26     46   
    /// An unknown enum variant
          47  +
    /* UnionGenerator.kt:98 */
   27     48   
    ///
          49  +
    /* UnionGenerator.kt:99 */
   28     50   
    /// _Note: If you encounter this error, consider upgrading your SDK to the latest version._
          51  +
    /* UnionGenerator.kt:100 */
   29     52   
    /// The `Unknown` variant represents cases where the server sent a value that wasn't recognized
          53  +
    /* UnionGenerator.kt:101 */
   30     54   
    /// by the client. This can happen when the server adds new functionality, but the client has not been updated.
          55  +
    /* UnionGenerator.kt:102 */
   31     56   
    /// To investigate this, consider turning on debug logging to print the raw HTTP response.
          57  +
    /* RustType.kt:516 */
   32     58   
    #[non_exhaustive]
          59  +
    /* UnionGenerator.kt:105 */
   33     60   
    Unknown,
          61  +
    /* UnionGenerator.kt:85 */
   34     62   
}
          63  +
/* UnionGenerator.kt:111 */
   35     64   
impl MyUnion {
          65  +
    /* UnionGenerator.kt:217 */
   36     66   
    /// Tries to convert the enum instance into [`BlobValue`](crate::types::MyUnion::BlobValue), extracting the inner [`Blob`](::aws_smithy_types::Blob).
          67  +
    /* UnionGenerator.kt:222 */
   37     68   
    /// Returns `Err(&Self)` if it can't be converted.
          69  +
    /* UnionGenerator.kt:223 */
   38     70   
    pub fn as_blob_value(&self) -> ::std::result::Result<&::aws_smithy_types::Blob, &Self> {
          71  +
        /* UnionGenerator.kt:227 */
   39     72   
        if let MyUnion::BlobValue(val) = &self {
   40     73   
            ::std::result::Result::Ok(val)
   41     74   
        } else {
   42     75   
            ::std::result::Result::Err(self)
   43     76   
        }
          77  +
        /* UnionGenerator.kt:223 */
   44     78   
    }
          79  +
    /* UnionGenerator.kt:121 */
   45     80   
    /// Returns true if this is a [`BlobValue`](crate::types::MyUnion::BlobValue).
          81  +
    /* UnionGenerator.kt:122 */
   46     82   
    pub fn is_blob_value(&self) -> bool {
          83  +
        /* UnionGenerator.kt:123 */
   47     84   
        self.as_blob_value().is_ok()
          85  +
        /* UnionGenerator.kt:122 */
   48     86   
    }
          87  +
    /* UnionGenerator.kt:217 */
   49     88   
    /// Tries to convert the enum instance into [`BooleanValue`](crate::types::MyUnion::BooleanValue), extracting the inner [`bool`](bool).
          89  +
    /* UnionGenerator.kt:222 */
   50     90   
    /// Returns `Err(&Self)` if it can't be converted.
          91  +
    /* UnionGenerator.kt:223 */
   51     92   
    pub fn as_boolean_value(&self) -> ::std::result::Result<&bool, &Self> {
          93  +
        /* UnionGenerator.kt:227 */
   52     94   
        if let MyUnion::BooleanValue(val) = &self {
   53     95   
            ::std::result::Result::Ok(val)
   54     96   
        } else {
   55     97   
            ::std::result::Result::Err(self)
   56     98   
        }
          99  +
        /* UnionGenerator.kt:223 */
   57    100   
    }
         101  +
    /* UnionGenerator.kt:121 */
   58    102   
    /// Returns true if this is a [`BooleanValue`](crate::types::MyUnion::BooleanValue).
         103  +
    /* UnionGenerator.kt:122 */
   59    104   
    pub fn is_boolean_value(&self) -> bool {
         105  +
        /* UnionGenerator.kt:123 */
   60    106   
        self.as_boolean_value().is_ok()
         107  +
        /* UnionGenerator.kt:122 */
   61    108   
    }
         109  +
    /* UnionGenerator.kt:217 */
   62    110   
    /// Tries to convert the enum instance into [`EnumValue`](crate::types::MyUnion::EnumValue), extracting the inner [`FooEnum`](crate::types::FooEnum).
         111  +
    /* UnionGenerator.kt:222 */
   63    112   
    /// Returns `Err(&Self)` if it can't be converted.
         113  +
    /* UnionGenerator.kt:223 */
   64    114   
    pub fn as_enum_value(&self) -> ::std::result::Result<&crate::types::FooEnum, &Self> {
         115  +
        /* UnionGenerator.kt:227 */
   65    116   
        if let MyUnion::EnumValue(val) = &self {
   66    117   
            ::std::result::Result::Ok(val)
   67    118   
        } else {
   68    119   
            ::std::result::Result::Err(self)
   69    120   
        }
         121  +
        /* UnionGenerator.kt:223 */
   70    122   
    }
         123  +
    /* UnionGenerator.kt:121 */
   71    124   
    /// Returns true if this is a [`EnumValue`](crate::types::MyUnion::EnumValue).
         125  +
    /* UnionGenerator.kt:122 */
   72    126   
    pub fn is_enum_value(&self) -> bool {
         127  +
        /* UnionGenerator.kt:123 */
   73    128   
        self.as_enum_value().is_ok()
         129  +
        /* UnionGenerator.kt:122 */
   74    130   
    }
         131  +
    /* UnionGenerator.kt:217 */
   75    132   
    /// Tries to convert the enum instance into [`ListValue`](crate::types::MyUnion::ListValue), extracting the inner [`Vec`](::std::vec::Vec).
         133  +
    /* UnionGenerator.kt:222 */
   76    134   
    /// Returns `Err(&Self)` if it can't be converted.
         135  +
    /* UnionGenerator.kt:223 */
   77    136   
    pub fn as_list_value(&self) -> ::std::result::Result<&::std::vec::Vec<::std::string::String>, &Self> {
         137  +
        /* UnionGenerator.kt:227 */
   78    138   
        if let MyUnion::ListValue(val) = &self {
   79    139   
            ::std::result::Result::Ok(val)
   80    140   
        } else {
   81    141   
            ::std::result::Result::Err(self)
   82    142   
        }
         143  +
        /* UnionGenerator.kt:223 */
   83    144   
    }
         145  +
    /* UnionGenerator.kt:121 */
   84    146   
    /// Returns true if this is a [`ListValue`](crate::types::MyUnion::ListValue).
         147  +
    /* UnionGenerator.kt:122 */
   85    148   
    pub fn is_list_value(&self) -> bool {
         149  +
        /* UnionGenerator.kt:123 */
   86    150   
        self.as_list_value().is_ok()
         151  +
        /* UnionGenerator.kt:122 */
   87    152   
    }
         153  +
    /* UnionGenerator.kt:217 */
   88    154   
    /// Tries to convert the enum instance into [`MapValue`](crate::types::MyUnion::MapValue), extracting the inner [`HashMap`](::std::collections::HashMap).
         155  +
    /* UnionGenerator.kt:222 */
   89    156   
    /// Returns `Err(&Self)` if it can't be converted.
         157  +
    /* UnionGenerator.kt:223 */
   90    158   
    pub fn as_map_value(&self) -> ::std::result::Result<&::std::collections::HashMap<::std::string::String, ::std::string::String>, &Self> {
         159  +
        /* UnionGenerator.kt:227 */
   91    160   
        if let MyUnion::MapValue(val) = &self {
   92    161   
            ::std::result::Result::Ok(val)
   93    162   
        } else {
   94    163   
            ::std::result::Result::Err(self)
   95    164   
        }
         165  +
        /* UnionGenerator.kt:223 */
   96    166   
    }
         167  +
    /* UnionGenerator.kt:121 */
   97    168   
    /// Returns true if this is a [`MapValue`](crate::types::MyUnion::MapValue).
         169  +
    /* UnionGenerator.kt:122 */
   98    170   
    pub fn is_map_value(&self) -> bool {
         171  +
        /* UnionGenerator.kt:123 */
   99    172   
        self.as_map_value().is_ok()
         173  +
        /* UnionGenerator.kt:122 */
  100    174   
    }
         175  +
    /* UnionGenerator.kt:217 */
  101    176   
    /// Tries to convert the enum instance into [`NumberValue`](crate::types::MyUnion::NumberValue), extracting the inner [`i32`](i32).
         177  +
    /* UnionGenerator.kt:222 */
  102    178   
    /// Returns `Err(&Self)` if it can't be converted.
         179  +
    /* UnionGenerator.kt:223 */
  103    180   
    pub fn as_number_value(&self) -> ::std::result::Result<&i32, &Self> {
         181  +
        /* UnionGenerator.kt:227 */
  104    182   
        if let MyUnion::NumberValue(val) = &self {
  105    183   
            ::std::result::Result::Ok(val)
  106    184   
        } else {
  107    185   
            ::std::result::Result::Err(self)
  108    186   
        }
         187  +
        /* UnionGenerator.kt:223 */
  109    188   
    }
         189  +
    /* UnionGenerator.kt:121 */
  110    190   
    /// Returns true if this is a [`NumberValue`](crate::types::MyUnion::NumberValue).
         191  +
    /* UnionGenerator.kt:122 */
  111    192   
    pub fn is_number_value(&self) -> bool {
         193  +
        /* UnionGenerator.kt:123 */
  112    194   
        self.as_number_value().is_ok()
         195  +
        /* UnionGenerator.kt:122 */
  113    196   
    }
         197  +
    /* UnionGenerator.kt:217 */
  114    198   
    /// Tries to convert the enum instance into [`StringValue`](crate::types::MyUnion::StringValue), extracting the inner [`String`](::std::string::String).
         199  +
    /* UnionGenerator.kt:222 */
  115    200   
    /// Returns `Err(&Self)` if it can't be converted.
         201  +
    /* UnionGenerator.kt:223 */
  116    202   
    pub fn as_string_value(&self) -> ::std::result::Result<&::std::string::String, &Self> {
         203  +
        /* UnionGenerator.kt:227 */
  117    204   
        if let MyUnion::StringValue(val) = &self {
  118    205   
            ::std::result::Result::Ok(val)
  119    206   
        } else {
  120    207   
            ::std::result::Result::Err(self)
  121    208   
        }
         209  +
        /* UnionGenerator.kt:223 */
  122    210   
    }
         211  +
    /* UnionGenerator.kt:121 */
  123    212   
    /// Returns true if this is a [`StringValue`](crate::types::MyUnion::StringValue).
         213  +
    /* UnionGenerator.kt:122 */
  124    214   
    pub fn is_string_value(&self) -> bool {
         215  +
        /* UnionGenerator.kt:123 */
  125    216   
        self.as_string_value().is_ok()
         217  +
        /* UnionGenerator.kt:122 */
  126    218   
    }
         219  +
    /* UnionGenerator.kt:217 */
  127    220   
    /// Tries to convert the enum instance into [`StructureValue`](crate::types::MyUnion::StructureValue), extracting the inner [`GreetingStruct`](crate::types::GreetingStruct).
         221  +
    /* UnionGenerator.kt:222 */
  128    222   
    /// Returns `Err(&Self)` if it can't be converted.
         223  +
    /* UnionGenerator.kt:223 */
  129    224   
    pub fn as_structure_value(&self) -> ::std::result::Result<&crate::types::GreetingStruct, &Self> {
         225  +
        /* UnionGenerator.kt:227 */
  130    226   
        if let MyUnion::StructureValue(val) = &self {
  131    227   
            ::std::result::Result::Ok(val)
  132    228   
        } else {
  133    229   
            ::std::result::Result::Err(self)
  134    230   
        }
         231  +
        /* UnionGenerator.kt:223 */
  135    232   
    }
         233  +
    /* UnionGenerator.kt:121 */
  136    234   
    /// Returns true if this is a [`StructureValue`](crate::types::MyUnion::StructureValue).
         235  +
    /* UnionGenerator.kt:122 */
  137    236   
    pub fn is_structure_value(&self) -> bool {
         237  +
        /* UnionGenerator.kt:123 */
  138    238   
        self.as_structure_value().is_ok()
         239  +
        /* UnionGenerator.kt:122 */
  139    240   
    }
         241  +
    /* UnionGenerator.kt:217 */
  140    242   
    /// Tries to convert the enum instance into [`TimestampValue`](crate::types::MyUnion::TimestampValue), extracting the inner [`DateTime`](::aws_smithy_types::DateTime).
         243  +
    /* UnionGenerator.kt:222 */
  141    244   
    /// Returns `Err(&Self)` if it can't be converted.
         245  +
    /* UnionGenerator.kt:223 */
  142    246   
    pub fn as_timestamp_value(&self) -> ::std::result::Result<&::aws_smithy_types::DateTime, &Self> {
         247  +
        /* UnionGenerator.kt:227 */
  143    248   
        if let MyUnion::TimestampValue(val) = &self {
  144    249   
            ::std::result::Result::Ok(val)
  145    250   
        } else {
  146    251   
            ::std::result::Result::Err(self)
  147    252   
        }
         253  +
        /* UnionGenerator.kt:223 */
  148    254   
    }
         255  +
    /* UnionGenerator.kt:121 */
  149    256   
    /// Returns true if this is a [`TimestampValue`](crate::types::MyUnion::TimestampValue).
         257  +
    /* UnionGenerator.kt:122 */
  150    258   
    pub fn is_timestamp_value(&self) -> bool {
         259  +
        /* UnionGenerator.kt:123 */
  151    260   
        self.as_timestamp_value().is_ok()
         261  +
        /* UnionGenerator.kt:122 */
  152    262   
    }
         263  +
    /* UnionGenerator.kt:127 */
  153    264   
    /// Returns true if the enum instance is the `Unknown` variant.
         265  +
    /* UnionGenerator.kt:128 */
  154    266   
    pub fn is_unknown(&self) -> bool {
         267  +
        /* UnionGenerator.kt:129 */
  155    268   
        matches!(self, Self::Unknown)
         269  +
        /* UnionGenerator.kt:128 */
  156    270   
    }
         271  +
    /* UnionGenerator.kt:111 */
  157    272   
}

tmp-codegen-diff/codegen-client-test/json_rpc11/rust-client-codegen/src/types/_simple_struct.rs

@@ -1,1 +47,88 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* StructureGenerator.kt:197 */
    2      3   
#[allow(missing_docs)] // documentation missing in model
           4  +
/* RustType.kt:516 */
    3      5   
#[non_exhaustive]
           6  +
/* RustType.kt:516 */
    4      7   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    5         -
pub struct SimpleStruct {
           8  +
pub /* StructureGenerator.kt:201 */ struct SimpleStruct {
           9  +
    /* StructureGenerator.kt:231 */
    6     10   
    #[allow(missing_docs)] // documentation missing in model
    7     11   
    pub value: ::std::option::Option<::std::string::String>,
          12  +
    /* StructureGenerator.kt:201 */
    8     13   
}
          14  +
/* StructureGenerator.kt:135 */
    9     15   
impl SimpleStruct {
          16  +
    /* StructureGenerator.kt:231 */
   10     17   
    #[allow(missing_docs)] // documentation missing in model
          18  +
                           /* StructureGenerator.kt:166 */
   11     19   
    pub fn value(&self) -> ::std::option::Option<&str> {
          20  +
        /* StructureGenerator.kt:169 */
   12     21   
        self.value.as_deref()
          22  +
        /* StructureGenerator.kt:166 */
   13     23   
    }
          24  +
    /* StructureGenerator.kt:135 */
   14     25   
}
          26  +
/* ClientCodegenVisitor.kt:237 */
   15     27   
impl SimpleStruct {
   16         -
    /// Creates a new builder-style object to manufacture [`SimpleStruct`](crate::types::SimpleStruct).
          28  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`SimpleStruct`](crate::types::SimpleStruct).
          29  +
    /* BuilderGenerator.kt:175 */
   17     30   
    pub fn builder() -> crate::types::builders::SimpleStructBuilder {
          31  +
        /* BuilderGenerator.kt:176 */
   18     32   
        crate::types::builders::SimpleStructBuilder::default()
          33  +
        /* BuilderGenerator.kt:175 */
   19     34   
    }
          35  +
    /* ClientCodegenVisitor.kt:237 */
   20     36   
}
   21     37   
   22         -
/// A builder for [`SimpleStruct`](crate::types::SimpleStruct).
          38  +
/// /* BuilderGenerator.kt:342 */A builder for [`SimpleStruct`](crate::types::SimpleStruct).
          39  +
/* RustType.kt:516 */
   23     40   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          41  +
/* RustType.kt:516 */
   24     42   
#[non_exhaustive]
          43  +
/* BuilderGenerator.kt:345 */
   25     44   
pub struct SimpleStructBuilder {
   26         -
    pub(crate) value: ::std::option::Option<::std::string::String>,
          45  +
    /* BuilderGenerator.kt:275 */ pub(crate) value: ::std::option::Option<::std::string::String>,
          46  +
    /* BuilderGenerator.kt:345 */
   27     47   
}
          48  +
/* BuilderGenerator.kt:355 */
   28     49   
impl SimpleStructBuilder {
          50  +
    /* BuilderGenerator.kt:286 */
   29     51   
    #[allow(missing_docs)] // documentation missing in model
          52  +
                           /* BuilderGenerator.kt:291 */
   30     53   
    pub fn value(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          54  +
        /* BuilderGenerator.kt:292 */
   31     55   
        self.value = ::std::option::Option::Some(input.into());
          56  +
        /* BuilderGenerator.kt:293 */
   32     57   
        self
          58  +
        /* BuilderGenerator.kt:291 */
   33     59   
    }
          60  +
    /* BuilderGenerator.kt:312 */
   34     61   
    #[allow(missing_docs)] // documentation missing in model
          62  +
                           /* BuilderGenerator.kt:314 */
   35     63   
    pub fn set_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          64  +
        /* BuilderGenerator.kt:315 */
   36     65   
        self.value = input;
   37     66   
        self
          67  +
        /* BuilderGenerator.kt:314 */
   38     68   
    }
          69  +
    /* BuilderGenerator.kt:334 */
   39     70   
    #[allow(missing_docs)] // documentation missing in model
          71  +
                           /* BuilderGenerator.kt:336 */
   40     72   
    pub fn get_value(&self) -> &::std::option::Option<::std::string::String> {
          73  +
        /* BuilderGenerator.kt:337 */
   41     74   
        &self.value
          75  +
        /* BuilderGenerator.kt:336 */
   42     76   
    }
   43         -
    /// Consumes the builder and constructs a [`SimpleStruct`](crate::types::SimpleStruct).
          77  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`SimpleStruct`](crate::types::SimpleStruct).
          78  +
    /* BuilderGenerator.kt:253 */
   44     79   
    pub fn build(self) -> crate::types::SimpleStruct {
   45         -
        crate::types::SimpleStruct { value: self.value }
          80  +
        /* BuilderGenerator.kt:477 */
          81  +
        crate::types::SimpleStruct {
          82  +
            /* BuilderGenerator.kt:481 */ value: self.value,
          83  +
            /* BuilderGenerator.kt:477 */
   46     84   
        }
          85  +
        /* BuilderGenerator.kt:253 */
          86  +
    }
          87  +
    /* BuilderGenerator.kt:355 */
   47     88   
}

tmp-codegen-diff/codegen-client-test/json_rpc11/rust-client-codegen/src/types/_struct_with_json_name.rs

@@ -1,1 +47,88 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* StructureGenerator.kt:197 */
    2      3   
#[allow(missing_docs)] // documentation missing in model
           4  +
/* RustType.kt:516 */
    3      5   
#[non_exhaustive]
           6  +
/* RustType.kt:516 */
    4      7   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    5         -
pub struct StructWithJsonName {
           8  +
pub /* StructureGenerator.kt:201 */ struct StructWithJsonName {
           9  +
    /* StructureGenerator.kt:231 */
    6     10   
    #[allow(missing_docs)] // documentation missing in model
    7     11   
    pub value: ::std::option::Option<::std::string::String>,
          12  +
    /* StructureGenerator.kt:201 */
    8     13   
}
          14  +
/* StructureGenerator.kt:135 */
    9     15   
impl StructWithJsonName {
          16  +
    /* StructureGenerator.kt:231 */
   10     17   
    #[allow(missing_docs)] // documentation missing in model
          18  +
                           /* StructureGenerator.kt:166 */
   11     19   
    pub fn value(&self) -> ::std::option::Option<&str> {
          20  +
        /* StructureGenerator.kt:169 */
   12     21   
        self.value.as_deref()
          22  +
        /* StructureGenerator.kt:166 */
   13     23   
    }
          24  +
    /* StructureGenerator.kt:135 */
   14     25   
}
          26  +
/* ClientCodegenVisitor.kt:237 */
   15     27   
impl StructWithJsonName {
   16         -
    /// Creates a new builder-style object to manufacture [`StructWithJsonName`](crate::types::StructWithJsonName).
          28  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`StructWithJsonName`](crate::types::StructWithJsonName).
          29  +
    /* BuilderGenerator.kt:175 */
   17     30   
    pub fn builder() -> crate::types::builders::StructWithJsonNameBuilder {
          31  +
        /* BuilderGenerator.kt:176 */
   18     32   
        crate::types::builders::StructWithJsonNameBuilder::default()
          33  +
        /* BuilderGenerator.kt:175 */
   19     34   
    }
          35  +
    /* ClientCodegenVisitor.kt:237 */
   20     36   
}
   21     37   
   22         -
/// A builder for [`StructWithJsonName`](crate::types::StructWithJsonName).
          38  +
/// /* BuilderGenerator.kt:342 */A builder for [`StructWithJsonName`](crate::types::StructWithJsonName).
          39  +
/* RustType.kt:516 */
   23     40   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          41  +
/* RustType.kt:516 */
   24     42   
#[non_exhaustive]
          43  +
/* BuilderGenerator.kt:345 */
   25     44   
pub struct StructWithJsonNameBuilder {
   26         -
    pub(crate) value: ::std::option::Option<::std::string::String>,
          45  +
    /* BuilderGenerator.kt:275 */ pub(crate) value: ::std::option::Option<::std::string::String>,
          46  +
    /* BuilderGenerator.kt:345 */
   27     47   
}
          48  +
/* BuilderGenerator.kt:355 */
   28     49   
impl StructWithJsonNameBuilder {
          50  +
    /* BuilderGenerator.kt:286 */
   29     51   
    #[allow(missing_docs)] // documentation missing in model
          52  +
                           /* BuilderGenerator.kt:291 */
   30     53   
    pub fn value(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          54  +
        /* BuilderGenerator.kt:292 */
   31     55   
        self.value = ::std::option::Option::Some(input.into());
          56  +
        /* BuilderGenerator.kt:293 */
   32     57   
        self
          58  +
        /* BuilderGenerator.kt:291 */
   33     59   
    }
          60  +
    /* BuilderGenerator.kt:312 */
   34     61   
    #[allow(missing_docs)] // documentation missing in model
          62  +
                           /* BuilderGenerator.kt:314 */
   35     63   
    pub fn set_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          64  +
        /* BuilderGenerator.kt:315 */
   36     65   
        self.value = input;
   37     66   
        self
          67  +
        /* BuilderGenerator.kt:314 */
   38     68   
    }
          69  +
    /* BuilderGenerator.kt:334 */
   39     70   
    #[allow(missing_docs)] // documentation missing in model
          71  +
                           /* BuilderGenerator.kt:336 */
   40     72   
    pub fn get_value(&self) -> &::std::option::Option<::std::string::String> {
          73  +
        /* BuilderGenerator.kt:337 */
   41     74   
        &self.value
          75  +
        /* BuilderGenerator.kt:336 */
   42     76   
    }
   43         -
    /// Consumes the builder and constructs a [`StructWithJsonName`](crate::types::StructWithJsonName).
          77  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`StructWithJsonName`](crate::types::StructWithJsonName).
          78  +
    /* BuilderGenerator.kt:253 */
   44     79   
    pub fn build(self) -> crate::types::StructWithJsonName {
   45         -
        crate::types::StructWithJsonName { value: self.value }
          80  +
        /* BuilderGenerator.kt:477 */
          81  +
        crate::types::StructWithJsonName {
          82  +
            /* BuilderGenerator.kt:481 */ value: self.value,
          83  +
            /* BuilderGenerator.kt:477 */
   46     84   
        }
          85  +
        /* BuilderGenerator.kt:253 */
          86  +
    }
          87  +
    /* BuilderGenerator.kt:355 */
   47     88   
}