Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943

Files changed:

tmp-codegen-diff/codegen-client-test/json_rpc10/rust-client-codegen/src/types/_complex_nested_error_data.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 ComplexNestedErrorData {
           8  +
pub /* StructureGenerator.kt:201 */ struct ComplexNestedErrorData {
           9  +
    /* StructureGenerator.kt:231 */
    6     10   
    #[allow(missing_docs)] // documentation missing in model
    7     11   
    pub foo: ::std::option::Option<::std::string::String>,
          12  +
    /* StructureGenerator.kt:201 */
    8     13   
}
          14  +
/* StructureGenerator.kt:135 */
    9     15   
impl ComplexNestedErrorData {
          16  +
    /* StructureGenerator.kt:231 */
   10     17   
    #[allow(missing_docs)] // documentation missing in model
          18  +
                           /* StructureGenerator.kt:166 */
   11     19   
    pub fn foo(&self) -> ::std::option::Option<&str> {
          20  +
        /* StructureGenerator.kt:169 */
   12     21   
        self.foo.as_deref()
          22  +
        /* StructureGenerator.kt:166 */
   13     23   
    }
          24  +
    /* StructureGenerator.kt:135 */
   14     25   
}
          26  +
/* ClientCodegenVisitor.kt:237 */
   15     27   
impl ComplexNestedErrorData {
   16         -
    /// Creates a new builder-style object to manufacture [`ComplexNestedErrorData`](crate::types::ComplexNestedErrorData).
          28  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ComplexNestedErrorData`](crate::types::ComplexNestedErrorData).
          29  +
    /* BuilderGenerator.kt:175 */
   17     30   
    pub fn builder() -> crate::types::builders::ComplexNestedErrorDataBuilder {
          31  +
        /* BuilderGenerator.kt:176 */
   18     32   
        crate::types::builders::ComplexNestedErrorDataBuilder::default()
          33  +
        /* BuilderGenerator.kt:175 */
   19     34   
    }
          35  +
    /* ClientCodegenVisitor.kt:237 */
   20     36   
}
   21     37   
   22         -
/// A builder for [`ComplexNestedErrorData`](crate::types::ComplexNestedErrorData).
          38  +
/// /* BuilderGenerator.kt:342 */A builder for [`ComplexNestedErrorData`](crate::types::ComplexNestedErrorData).
          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 ComplexNestedErrorDataBuilder {
   26         -
    pub(crate) foo: ::std::option::Option<::std::string::String>,
          45  +
    /* BuilderGenerator.kt:275 */ pub(crate) foo: ::std::option::Option<::std::string::String>,
          46  +
    /* BuilderGenerator.kt:345 */
   27     47   
}
          48  +
/* BuilderGenerator.kt:355 */
   28     49   
impl ComplexNestedErrorDataBuilder {
          50  +
    /* BuilderGenerator.kt:286 */
   29     51   
    #[allow(missing_docs)] // documentation missing in model
          52  +
                           /* BuilderGenerator.kt:291 */
   30     53   
    pub fn foo(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          54  +
        /* BuilderGenerator.kt:292 */
   31     55   
        self.foo = ::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_foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          64  +
        /* BuilderGenerator.kt:315 */
   36     65   
        self.foo = 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_foo(&self) -> &::std::option::Option<::std::string::String> {
          73  +
        /* BuilderGenerator.kt:337 */
   41     74   
        &self.foo
          75  +
        /* BuilderGenerator.kt:336 */
   42     76   
    }
   43         -
    /// Consumes the builder and constructs a [`ComplexNestedErrorData`](crate::types::ComplexNestedErrorData).
          77  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ComplexNestedErrorData`](crate::types::ComplexNestedErrorData).
          78  +
    /* BuilderGenerator.kt:253 */
   44     79   
    pub fn build(self) -> crate::types::ComplexNestedErrorData {
   45         -
        crate::types::ComplexNestedErrorData { foo: self.foo }
          80  +
        /* BuilderGenerator.kt:477 */
          81  +
        crate::types::ComplexNestedErrorData {
          82  +
            /* BuilderGenerator.kt:481 */ foo: self.foo,
          83  +
            /* BuilderGenerator.kt:477 */
          84  +
        }
          85  +
        /* BuilderGenerator.kt:253 */
   46     86   
    }
          87  +
    /* BuilderGenerator.kt:355 */
   47     88   
}

tmp-codegen-diff/codegen-client-test/json_rpc10/rust-client-codegen/src/types/_defaults.rs

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

tmp-codegen-diff/codegen-client-test/json_rpc10/rust-client-codegen/src/types/_dialog.rs

@@ -1,1 +94,173 @@
    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 Dialog {
           8  +
pub /* StructureGenerator.kt:201 */ struct Dialog {
           9  +
    /* StructureGenerator.kt:231 */
    6     10   
    #[allow(missing_docs)] // documentation missing in model
    7     11   
    pub language: ::std::option::Option<::std::string::String>,
    8         -
    #[allow(missing_docs)] // documentation missing in model
          12  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
    9     13   
    pub greeting: ::std::string::String,
          14  +
    /* StructureGenerator.kt:231 */
   10     15   
    #[allow(missing_docs)] // documentation missing in model
   11     16   
    pub farewell: ::std::option::Option<crate::types::Farewell>,
          17  +
    /* StructureGenerator.kt:201 */
   12     18   
}
          19  +
/* StructureGenerator.kt:135 */
   13     20   
impl Dialog {
          21  +
    /* StructureGenerator.kt:231 */
   14     22   
    #[allow(missing_docs)] // documentation missing in model
          23  +
                           /* StructureGenerator.kt:166 */
   15     24   
    pub fn language(&self) -> ::std::option::Option<&str> {
          25  +
        /* StructureGenerator.kt:169 */
   16     26   
        self.language.as_deref()
          27  +
        /* StructureGenerator.kt:166 */
   17     28   
    }
          29  +
    /* StructureGenerator.kt:231 */
   18     30   
    #[allow(missing_docs)] // documentation missing in model
          31  +
                           /* StructureGenerator.kt:166 */
   19     32   
    pub fn greeting(&self) -> &str {
          33  +
        /* StructureGenerator.kt:171 */
   20     34   
        use std::ops::Deref;
   21     35   
        self.greeting.deref()
          36  +
        /* StructureGenerator.kt:166 */
   22     37   
    }
          38  +
    /* StructureGenerator.kt:231 */
   23     39   
    #[allow(missing_docs)] // documentation missing in model
          40  +
                           /* StructureGenerator.kt:166 */
   24     41   
    pub fn farewell(&self) -> ::std::option::Option<&crate::types::Farewell> {
          42  +
        /* StructureGenerator.kt:170 */
   25     43   
        self.farewell.as_ref()
          44  +
        /* StructureGenerator.kt:166 */
   26     45   
    }
          46  +
    /* StructureGenerator.kt:135 */
   27     47   
}
          48  +
/* ClientCodegenVisitor.kt:237 */
   28     49   
impl Dialog {
   29         -
    /// Creates a new builder-style object to manufacture [`Dialog`](crate::types::Dialog).
          50  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`Dialog`](crate::types::Dialog).
          51  +
    /* BuilderGenerator.kt:175 */
   30     52   
    pub fn builder() -> crate::types::builders::DialogBuilder {
          53  +
        /* BuilderGenerator.kt:176 */
   31     54   
        crate::types::builders::DialogBuilder::default()
          55  +
        /* BuilderGenerator.kt:175 */
   32     56   
    }
          57  +
    /* ClientCodegenVisitor.kt:237 */
   33     58   
}
   34     59   
   35         -
/// A builder for [`Dialog`](crate::types::Dialog).
          60  +
/// /* BuilderGenerator.kt:342 */A builder for [`Dialog`](crate::types::Dialog).
          61  +
/* RustType.kt:516 */
   36     62   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          63  +
/* RustType.kt:516 */
   37     64   
#[non_exhaustive]
          65  +
/* BuilderGenerator.kt:345 */
   38     66   
pub struct DialogBuilder {
   39         -
    pub(crate) language: ::std::option::Option<::std::string::String>,
   40         -
    pub(crate) greeting: ::std::option::Option<::std::string::String>,
   41         -
    pub(crate) farewell: ::std::option::Option<crate::types::Farewell>,
          67  +
    /* BuilderGenerator.kt:275 */ pub(crate) language: ::std::option::Option<::std::string::String>,
          68  +
    /* BuilderGenerator.kt:275 */ pub(crate) greeting: ::std::option::Option<::std::string::String>,
          69  +
    /* BuilderGenerator.kt:275 */ pub(crate) farewell: ::std::option::Option<crate::types::Farewell>,
          70  +
    /* BuilderGenerator.kt:345 */
   42     71   
}
          72  +
/* BuilderGenerator.kt:355 */
   43     73   
impl DialogBuilder {
          74  +
    /* BuilderGenerator.kt:286 */
   44     75   
    #[allow(missing_docs)] // documentation missing in model
          76  +
                           /* BuilderGenerator.kt:291 */
   45     77   
    pub fn language(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          78  +
        /* BuilderGenerator.kt:292 */
   46     79   
        self.language = ::std::option::Option::Some(input.into());
          80  +
        /* BuilderGenerator.kt:293 */
   47     81   
        self
          82  +
        /* BuilderGenerator.kt:291 */
   48     83   
    }
          84  +
    /* BuilderGenerator.kt:312 */
   49     85   
    #[allow(missing_docs)] // documentation missing in model
          86  +
                           /* BuilderGenerator.kt:314 */
   50     87   
    pub fn set_language(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          88  +
        /* BuilderGenerator.kt:315 */
   51     89   
        self.language = input;
   52     90   
        self
          91  +
        /* BuilderGenerator.kt:314 */
   53     92   
    }
          93  +
    /* BuilderGenerator.kt:334 */
   54     94   
    #[allow(missing_docs)] // documentation missing in model
          95  +
                           /* BuilderGenerator.kt:336 */
   55     96   
    pub fn get_language(&self) -> &::std::option::Option<::std::string::String> {
          97  +
        /* BuilderGenerator.kt:337 */
   56     98   
        &self.language
          99  +
        /* BuilderGenerator.kt:336 */
   57    100   
    }
         101  +
    /* BuilderGenerator.kt:286 */
   58    102   
    #[allow(missing_docs)] // documentation missing in model
         103  +
                           /* BuilderGenerator.kt:291 */
   59    104   
    pub fn greeting(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         105  +
        /* BuilderGenerator.kt:292 */
   60    106   
        self.greeting = ::std::option::Option::Some(input.into());
         107  +
        /* BuilderGenerator.kt:293 */
   61    108   
        self
         109  +
        /* BuilderGenerator.kt:291 */
   62    110   
    }
         111  +
    /* BuilderGenerator.kt:312 */
   63    112   
    #[allow(missing_docs)] // documentation missing in model
         113  +
                           /* BuilderGenerator.kt:314 */
   64    114   
    pub fn set_greeting(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         115  +
        /* BuilderGenerator.kt:315 */
   65    116   
        self.greeting = input;
   66    117   
        self
         118  +
        /* BuilderGenerator.kt:314 */
   67    119   
    }
         120  +
    /* BuilderGenerator.kt:334 */
   68    121   
    #[allow(missing_docs)] // documentation missing in model
         122  +
                           /* BuilderGenerator.kt:336 */
   69    123   
    pub fn get_greeting(&self) -> &::std::option::Option<::std::string::String> {
         124  +
        /* BuilderGenerator.kt:337 */
   70    125   
        &self.greeting
         126  +
        /* BuilderGenerator.kt:336 */
   71    127   
    }
         128  +
    /* BuilderGenerator.kt:286 */
   72    129   
    #[allow(missing_docs)] // documentation missing in model
         130  +
                           /* BuilderGenerator.kt:291 */
   73    131   
    pub fn farewell(mut self, input: crate::types::Farewell) -> Self {
         132  +
        /* BuilderGenerator.kt:292 */
   74    133   
        self.farewell = ::std::option::Option::Some(input);
         134  +
        /* BuilderGenerator.kt:293 */
   75    135   
        self
         136  +
        /* BuilderGenerator.kt:291 */
   76    137   
    }
         138  +
    /* BuilderGenerator.kt:312 */
   77    139   
    #[allow(missing_docs)] // documentation missing in model
         140  +
                           /* BuilderGenerator.kt:314 */
   78    141   
    pub fn set_farewell(mut self, input: ::std::option::Option<crate::types::Farewell>) -> Self {
         142  +
        /* BuilderGenerator.kt:315 */
   79    143   
        self.farewell = input;
   80    144   
        self
         145  +
        /* BuilderGenerator.kt:314 */
   81    146   
    }
         147  +
    /* BuilderGenerator.kt:334 */
   82    148   
    #[allow(missing_docs)] // documentation missing in model
         149  +
                           /* BuilderGenerator.kt:336 */
   83    150   
    pub fn get_farewell(&self) -> &::std::option::Option<crate::types::Farewell> {
         151  +
        /* BuilderGenerator.kt:337 */
   84    152   
        &self.farewell
         153  +
        /* BuilderGenerator.kt:336 */
   85    154   
    }
   86         -
    /// Consumes the builder and constructs a [`Dialog`](crate::types::Dialog).
         155  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`Dialog`](crate::types::Dialog).
         156  +
    /* BuilderGenerator.kt:253 */
   87    157   
    pub fn build(self) -> crate::types::Dialog {
         158  +
        /* BuilderGenerator.kt:477 */
   88    159   
        crate::types::Dialog {
   89         -
            language: self.language,
   90         -
            greeting: self.greeting.unwrap_or_else(|| "hi".to_owned()),
         160  +
            /* BuilderGenerator.kt:481 */ language: self.language,
         161  +
            /* BuilderGenerator.kt:481 */
         162  +
            greeting: self
         163  +
                .greeting
         164  +
                /* BuilderGenerator.kt:489 */
         165  +
                .unwrap_or_else(|| "hi".to_owned()),
         166  +
            /* BuilderGenerator.kt:481 */
   91    167   
            farewell: self.farewell,
         168  +
            /* BuilderGenerator.kt:477 */
   92    169   
        }
         170  +
        /* BuilderGenerator.kt:253 */
   93    171   
    }
         172  +
    /* BuilderGenerator.kt:355 */
   94    173   
}

tmp-codegen-diff/codegen-client-test/json_rpc10/rust-client-codegen/src/types/_farewell.rs

@@ -1,1 +50,93 @@
    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 Farewell {
           8  +
pub /* StructureGenerator.kt:201 */ struct Farewell {
           9  +
    /* StructureGenerator.kt:231 */
    6     10   
    #[allow(missing_docs)] // documentation missing in model
    7     11   
    pub phrase: ::std::string::String,
          12  +
    /* StructureGenerator.kt:201 */
    8     13   
}
          14  +
/* StructureGenerator.kt:135 */
    9     15   
impl Farewell {
          16  +
    /* StructureGenerator.kt:231 */
   10     17   
    #[allow(missing_docs)] // documentation missing in model
          18  +
                           /* StructureGenerator.kt:166 */
   11     19   
    pub fn phrase(&self) -> &str {
          20  +
        /* StructureGenerator.kt:171 */
   12     21   
        use std::ops::Deref;
   13     22   
        self.phrase.deref()
          23  +
        /* StructureGenerator.kt:166 */
   14     24   
    }
          25  +
    /* StructureGenerator.kt:135 */
   15     26   
}
          27  +
/* ClientCodegenVisitor.kt:237 */
   16     28   
impl Farewell {
   17         -
    /// Creates a new builder-style object to manufacture [`Farewell`](crate::types::Farewell).
          29  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`Farewell`](crate::types::Farewell).
          30  +
    /* BuilderGenerator.kt:175 */
   18     31   
    pub fn builder() -> crate::types::builders::FarewellBuilder {
          32  +
        /* BuilderGenerator.kt:176 */
   19     33   
        crate::types::builders::FarewellBuilder::default()
          34  +
        /* BuilderGenerator.kt:175 */
   20     35   
    }
          36  +
    /* ClientCodegenVisitor.kt:237 */
   21     37   
}
   22     38   
   23         -
/// A builder for [`Farewell`](crate::types::Farewell).
          39  +
/// /* BuilderGenerator.kt:342 */A builder for [`Farewell`](crate::types::Farewell).
          40  +
/* RustType.kt:516 */
   24     41   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          42  +
/* RustType.kt:516 */
   25     43   
#[non_exhaustive]
          44  +
/* BuilderGenerator.kt:345 */
   26     45   
pub struct FarewellBuilder {
   27         -
    pub(crate) phrase: ::std::option::Option<::std::string::String>,
          46  +
    /* BuilderGenerator.kt:275 */ pub(crate) phrase: ::std::option::Option<::std::string::String>,
          47  +
    /* BuilderGenerator.kt:345 */
   28     48   
}
          49  +
/* BuilderGenerator.kt:355 */
   29     50   
impl FarewellBuilder {
          51  +
    /* BuilderGenerator.kt:286 */
   30     52   
    #[allow(missing_docs)] // documentation missing in model
          53  +
                           /* BuilderGenerator.kt:291 */
   31     54   
    pub fn phrase(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          55  +
        /* BuilderGenerator.kt:292 */
   32     56   
        self.phrase = ::std::option::Option::Some(input.into());
          57  +
        /* BuilderGenerator.kt:293 */
   33     58   
        self
          59  +
        /* BuilderGenerator.kt:291 */
   34     60   
    }
          61  +
    /* BuilderGenerator.kt:312 */
   35     62   
    #[allow(missing_docs)] // documentation missing in model
          63  +
                           /* BuilderGenerator.kt:314 */
   36     64   
    pub fn set_phrase(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          65  +
        /* BuilderGenerator.kt:315 */
   37     66   
        self.phrase = input;
   38     67   
        self
          68  +
        /* BuilderGenerator.kt:314 */
   39     69   
    }
          70  +
    /* BuilderGenerator.kt:334 */
   40     71   
    #[allow(missing_docs)] // documentation missing in model
          72  +
                           /* BuilderGenerator.kt:336 */
   41     73   
    pub fn get_phrase(&self) -> &::std::option::Option<::std::string::String> {
          74  +
        /* BuilderGenerator.kt:337 */
   42     75   
        &self.phrase
          76  +
        /* BuilderGenerator.kt:336 */
   43     77   
    }
   44         -
    /// Consumes the builder and constructs a [`Farewell`](crate::types::Farewell).
          78  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`Farewell`](crate::types::Farewell).
          79  +
    /* BuilderGenerator.kt:253 */
   45     80   
    pub fn build(self) -> crate::types::Farewell {
          81  +
        /* BuilderGenerator.kt:477 */
   46     82   
        crate::types::Farewell {
   47         -
            phrase: self.phrase.unwrap_or_else(|| "bye".to_owned()),
          83  +
            /* BuilderGenerator.kt:481 */
          84  +
            phrase: self
          85  +
                .phrase
          86  +
                /* BuilderGenerator.kt:489 */
          87  +
                .unwrap_or_else(|| "bye".to_owned()),
          88  +
            /* BuilderGenerator.kt:477 */
   48     89   
        }
          90  +
        /* BuilderGenerator.kt:253 */
   49     91   
    }
          92  +
    /* BuilderGenerator.kt:355 */
   50     93   
}