Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943

Files changed:

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/serde_util.rs

@@ -1,1 +127,133 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* ErrorCorrection.kt:126 */
    2      3   
pub(crate) fn validation_exception_correct_errors(
    3      4   
    mut builder: crate::types::error::builders::ValidationErrorBuilder,
    4      5   
) -> crate::types::error::builders::ValidationErrorBuilder {
    5      6   
    if builder.message.is_none() {
    6      7   
        builder.message = Some(Default::default())
    7      8   
    }
    8      9   
    builder
    9     10   
}
   10     11   
          12  +
/* ErrorCorrection.kt:126 */
   11     13   
pub(crate) fn complex_struct_operation_output_output_correct_errors(
   12     14   
    mut builder: crate::operation::complex_struct_operation::builders::ComplexStructOperationOutputBuilder,
   13     15   
) -> crate::operation::complex_struct_operation::builders::ComplexStructOperationOutputBuilder {
   14     16   
    if builder.complex_list.is_none() {
   15     17   
        builder.complex_list = Some(Default::default())
   16     18   
    }
   17     19   
    if builder.complex_map.is_none() {
   18     20   
        builder.complex_map = Some(Default::default())
   19     21   
    }
   20     22   
    if builder.complex_union.is_none() {
   21     23   
        builder.complex_union = Some(Box::new(crate::types::ComplexUnion::Unknown))
   22     24   
    }
   23     25   
    builder
   24     26   
}
   25     27   
          28  +
/* ErrorCorrection.kt:126 */
   26     29   
pub(crate) fn simple_struct_operation_output_output_correct_errors(
   27     30   
    mut builder: crate::operation::simple_struct_operation::builders::SimpleStructOperationOutputBuilder,
   28     31   
) -> crate::operation::simple_struct_operation::builders::SimpleStructOperationOutputBuilder {
   29     32   
    if builder.required_blob.is_none() {
   30     33   
        builder.required_blob = Some(::aws_smithy_types::Blob::new(""))
   31     34   
    }
   32     35   
    if builder.required_boolean.is_none() {
   33     36   
        builder.required_boolean = Some(Default::default())
   34     37   
    }
   35     38   
    if builder.required_string.is_none() {
   36     39   
        builder.required_string = Some(Default::default())
   37     40   
    }
   38     41   
    if builder.required_byte.is_none() {
   39     42   
        builder.required_byte = Some(Default::default())
   40     43   
    }
   41     44   
    if builder.required_short.is_none() {
   42     45   
        builder.required_short = Some(Default::default())
   43     46   
    }
   44     47   
    if builder.required_integer.is_none() {
   45     48   
        builder.required_integer = Some(Default::default())
   46     49   
    }
   47     50   
    if builder.required_long.is_none() {
   48     51   
        builder.required_long = Some(Default::default())
   49     52   
    }
   50     53   
    if builder.required_float.is_none() {
   51     54   
        builder.required_float = Some(Default::default())
   52     55   
    }
   53     56   
    if builder.required_double.is_none() {
   54     57   
        builder.required_double = Some(Default::default())
   55     58   
    }
   56     59   
    if builder.required_timestamp.is_none() {
   57     60   
        builder.required_timestamp = Some(::aws_smithy_types::DateTime::from_fractional_secs(0, 0_f64))
   58     61   
    }
   59     62   
    if builder.required_enum.is_none() {
   60     63   
        builder.required_enum = "no value was set".parse::<crate::types::Suit>().ok()
   61     64   
    }
   62     65   
    builder
   63     66   
}
   64     67   
          68  +
/* ErrorCorrection.kt:126 */
   65     69   
pub(crate) fn simple_struct_correct_errors(mut builder: crate::types::builders::SimpleStructBuilder) -> crate::types::builders::SimpleStructBuilder {
   66     70   
    if builder.required_blob.is_none() {
   67     71   
        builder.required_blob = Some(::aws_smithy_types::Blob::new(""))
   68     72   
    }
   69     73   
    if builder.required_boolean.is_none() {
   70     74   
        builder.required_boolean = Some(Default::default())
   71     75   
    }
   72     76   
    if builder.required_string.is_none() {
   73     77   
        builder.required_string = Some(Default::default())
   74     78   
    }
   75     79   
    if builder.required_byte.is_none() {
   76     80   
        builder.required_byte = Some(Default::default())
   77     81   
    }
   78     82   
    if builder.required_short.is_none() {
   79     83   
        builder.required_short = Some(Default::default())
   80     84   
    }
   81     85   
    if builder.required_integer.is_none() {
   82     86   
        builder.required_integer = Some(Default::default())
   83     87   
    }
   84     88   
    if builder.required_long.is_none() {
   85     89   
        builder.required_long = Some(Default::default())
   86     90   
    }
   87     91   
    if builder.required_float.is_none() {
   88     92   
        builder.required_float = Some(Default::default())
   89     93   
    }
   90     94   
    if builder.required_double.is_none() {
   91     95   
        builder.required_double = Some(Default::default())
   92     96   
    }
   93     97   
    if builder.required_timestamp.is_none() {
   94     98   
        builder.required_timestamp = Some(::aws_smithy_types::DateTime::from_fractional_secs(0, 0_f64))
   95     99   
    }
   96    100   
    if builder.required_enum.is_none() {
   97    101   
        builder.required_enum = "no value was set".parse::<crate::types::Suit>().ok()
   98    102   
    }
   99    103   
    builder
  100    104   
}
  101    105   
         106  +
/* ErrorCorrection.kt:126 */
  102    107   
pub(crate) fn complex_struct_correct_errors(
  103    108   
    mut builder: crate::types::builders::ComplexStructBuilder,
  104    109   
) -> crate::types::builders::ComplexStructBuilder {
  105    110   
    if builder.complex_list.is_none() {
  106    111   
        builder.complex_list = Some(Default::default())
  107    112   
    }
  108    113   
    if builder.complex_map.is_none() {
  109    114   
        builder.complex_map = Some(Default::default())
  110    115   
    }
  111    116   
    if builder.complex_union.is_none() {
  112    117   
        builder.complex_union = Some(Box::new(crate::types::ComplexUnion::Unknown))
  113    118   
    }
  114    119   
    builder
  115    120   
}
  116    121   
         122  +
/* ErrorCorrection.kt:126 */
  117    123   
pub(crate) fn validation_exception_field_correct_errors(
  118    124   
    mut builder: crate::types::builders::ValidationExceptionFieldBuilder,
  119    125   
) -> crate::types::builders::ValidationExceptionFieldBuilder {
  120    126   
    if builder.path.is_none() {
  121    127   
        builder.path = Some(Default::default())
  122    128   
    }
  123    129   
    if builder.message.is_none() {
  124    130   
        builder.message = Some(Default::default())
  125    131   
    }
  126    132   
    builder

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

@@ -1,1 +42,60 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CodegenDelegator.kt:255 */
    2      3   
pub use crate::types::_validation_exception_field::ValidationExceptionField;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::types::_complex_union::ComplexUnion;
    5      7   
           8  +
/* CodegenDelegator.kt:255 */
    6      9   
pub use crate::types::_simple_union::SimpleUnion;
    7     10   
          11  +
/* CodegenDelegator.kt:255 */
    8     12   
pub use crate::types::_unit::Unit;
    9     13   
          14  +
/* CodegenDelegator.kt:255 */
   10     15   
pub use crate::types::_simple_struct::SimpleStruct;
   11     16   
          17  +
/* CodegenDelegator.kt:255 */
   12     18   
pub use crate::types::_suit::Suit;
   13     19   
          20  +
/* CodegenDelegator.kt:255 */
   14     21   
pub use crate::types::_complex_struct::ComplexStruct;
   15     22   
          23  +
/* CodegenDelegator.kt:255 */
   16     24   
pub use crate::types::_unit_union::UnitUnion;
   17     25   
          26  +
/* CodegenDelegator.kt:255 */
   18     27   
pub use crate::types::_empty_struct::EmptyStruct;
   19     28   
          29  +
/* RustModule.kt:172 */
   20     30   
mod _complex_struct;
   21     31   
          32  +
/* RustModule.kt:172 */
   22     33   
mod _complex_union;
   23     34   
          35  +
/* RustModule.kt:172 */
   24     36   
mod _empty_struct;
   25     37   
          38  +
/* RustModule.kt:172 */
   26     39   
mod _simple_struct;
   27     40   
          41  +
/* RustModule.kt:172 */
   28     42   
mod _simple_union;
   29     43   
          44  +
/* RustModule.kt:172 */
   30     45   
mod _suit;
   31     46   
          47  +
/* RustModule.kt:172 */
   32     48   
mod _unit;
   33     49   
          50  +
/* RustModule.kt:172 */
   34     51   
mod _unit_union;
   35     52   
          53  +
/* RustModule.kt:172 */
   36     54   
mod _validation_exception_field;
   37     55   
   38         -
/// Builders
          56  +
/// /* CodegenDelegator.kt:51 */Builders
   39     57   
pub mod builders;
   40     58   
   41         -
/// Error types that the service can respond with.
          59  +
/// /* ClientRustModule.kt:121 */Error types that the service can respond with.
   42     60   
pub mod error;

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/types/_complex_struct.rs

@@ -1,1 +306,521 @@
    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 ComplexStruct {
           8  +
pub /* StructureGenerator.kt:201 */ struct ComplexStruct {
           9  +
    /* StructureGenerator.kt:231 */
    6     10   
    #[allow(missing_docs)] // documentation missing in model
    7     11   
    pub structure: ::std::option::Option<crate::types::SimpleStruct>,
          12  +
    /* StructureGenerator.kt:231 */
    8     13   
    #[allow(missing_docs)] // documentation missing in model
    9     14   
    pub empty_structure: ::std::option::Option<crate::types::EmptyStruct>,
          15  +
    /* StructureGenerator.kt:231 */
   10     16   
    #[allow(missing_docs)] // documentation missing in model
   11     17   
    pub list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
          18  +
    /* StructureGenerator.kt:231 */
   12     19   
    #[allow(missing_docs)] // documentation missing in model
   13     20   
    pub map: ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
          21  +
    /* StructureGenerator.kt:231 */
   14     22   
    #[allow(missing_docs)] // documentation missing in model
   15     23   
    pub union: ::std::option::Option<crate::types::SimpleUnion>,
          24  +
    /* StructureGenerator.kt:231 */
   16     25   
    #[allow(missing_docs)] // documentation missing in model
   17     26   
    pub unit_union: ::std::option::Option<crate::types::UnitUnion>,
          27  +
    /* StructureGenerator.kt:231 */
   18     28   
    #[allow(missing_docs)] // documentation missing in model
   19     29   
    pub structure_list: ::std::option::Option<::std::vec::Vec<crate::types::SimpleStruct>>,
          30  +
    /* StructureGenerator.kt:231 */
   20     31   
    #[allow(missing_docs)] // documentation missing in model
   21     32   
    pub complex_list: ::std::vec::Vec<::std::collections::HashMap<::std::string::String, crate::types::ComplexUnion>>,
          33  +
    /* StructureGenerator.kt:231 */
   22     34   
    #[allow(missing_docs)] // documentation missing in model
   23     35   
    pub complex_map: ::std::collections::HashMap<::std::string::String, crate::types::ComplexUnion>,
          36  +
    /* StructureGenerator.kt:231 */
   24     37   
    #[allow(missing_docs)] // documentation missing in model
   25     38   
    pub complex_union: ::std::boxed::Box<crate::types::ComplexUnion>,
          39  +
    /* StructureGenerator.kt:201 */
   26     40   
}
          41  +
/* StructureGenerator.kt:135 */
   27     42   
impl ComplexStruct {
          43  +
    /* StructureGenerator.kt:231 */
   28     44   
    #[allow(missing_docs)] // documentation missing in model
          45  +
                           /* StructureGenerator.kt:166 */
   29     46   
    pub fn structure(&self) -> ::std::option::Option<&crate::types::SimpleStruct> {
          47  +
        /* StructureGenerator.kt:170 */
   30     48   
        self.structure.as_ref()
          49  +
        /* StructureGenerator.kt:166 */
   31     50   
    }
          51  +
    /* StructureGenerator.kt:231 */
   32     52   
    #[allow(missing_docs)] // documentation missing in model
          53  +
                           /* StructureGenerator.kt:166 */
   33     54   
    pub fn empty_structure(&self) -> ::std::option::Option<&crate::types::EmptyStruct> {
          55  +
        /* StructureGenerator.kt:170 */
   34     56   
        self.empty_structure.as_ref()
          57  +
        /* StructureGenerator.kt:166 */
   35     58   
    }
          59  +
    /* StructureGenerator.kt:231 */
   36     60   
    #[allow(missing_docs)] // documentation missing in model
   37         -
    ///
   38         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.list.is_none()`.
          61  +
    /// /* StructureGenerator.kt:162 */
          62  +
    /// /* StructureGenerator.kt:163 */If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.list.is_none()`.
          63  +
    /* StructureGenerator.kt:166 */
   39     64   
    pub fn list(&self) -> &[::std::string::String] {
   40         -
        self.list.as_deref().unwrap_or_default()
          65  +
        /* StructureGenerator.kt:169 */
          66  +
        self.list
          67  +
            .as_deref()
          68  +
            /* StructureGenerator.kt:175 */
          69  +
            .unwrap_or_default()
          70  +
        /* StructureGenerator.kt:166 */
   41     71   
    }
          72  +
    /* StructureGenerator.kt:231 */
   42     73   
    #[allow(missing_docs)] // documentation missing in model
          74  +
                           /* StructureGenerator.kt:166 */
   43     75   
    pub fn map(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, i32>> {
          76  +
        /* StructureGenerator.kt:170 */
   44     77   
        self.map.as_ref()
          78  +
        /* StructureGenerator.kt:166 */
   45     79   
    }
          80  +
    /* StructureGenerator.kt:231 */
   46     81   
    #[allow(missing_docs)] // documentation missing in model
          82  +
                           /* StructureGenerator.kt:166 */
   47     83   
    pub fn union(&self) -> ::std::option::Option<&crate::types::SimpleUnion> {
          84  +
        /* StructureGenerator.kt:170 */
   48     85   
        self.union.as_ref()
          86  +
        /* StructureGenerator.kt:166 */
   49     87   
    }
          88  +
    /* StructureGenerator.kt:231 */
   50     89   
    #[allow(missing_docs)] // documentation missing in model
          90  +
                           /* StructureGenerator.kt:166 */
   51     91   
    pub fn unit_union(&self) -> ::std::option::Option<&crate::types::UnitUnion> {
          92  +
        /* StructureGenerator.kt:170 */
   52     93   
        self.unit_union.as_ref()
          94  +
        /* StructureGenerator.kt:166 */
   53     95   
    }
          96  +
    /* StructureGenerator.kt:231 */
   54     97   
    #[allow(missing_docs)] // documentation missing in model
   55         -
    ///
   56         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.structure_list.is_none()`.
          98  +
    /// /* StructureGenerator.kt:162 */
          99  +
    /// /* StructureGenerator.kt:163 */If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.structure_list.is_none()`.
         100  +
    /* StructureGenerator.kt:166 */
   57    101   
    pub fn structure_list(&self) -> &[crate::types::SimpleStruct] {
   58         -
        self.structure_list.as_deref().unwrap_or_default()
         102  +
        /* StructureGenerator.kt:169 */
         103  +
        self.structure_list
         104  +
            .as_deref()
         105  +
            /* StructureGenerator.kt:175 */
         106  +
            .unwrap_or_default()
         107  +
        /* StructureGenerator.kt:166 */
   59    108   
    }
         109  +
    /* StructureGenerator.kt:231 */
   60    110   
    #[allow(missing_docs)] // documentation missing in model
         111  +
                           /* StructureGenerator.kt:166 */
   61    112   
    pub fn complex_list(&self) -> &[::std::collections::HashMap<::std::string::String, crate::types::ComplexUnion>] {
         113  +
        /* StructureGenerator.kt:171 */
   62    114   
        use std::ops::Deref;
   63    115   
        self.complex_list.deref()
         116  +
        /* StructureGenerator.kt:166 */
   64    117   
    }
         118  +
    /* StructureGenerator.kt:231 */
   65    119   
    #[allow(missing_docs)] // documentation missing in model
         120  +
                           /* StructureGenerator.kt:166 */
   66    121   
    pub fn complex_map(&self) -> &::std::collections::HashMap<::std::string::String, crate::types::ComplexUnion> {
         122  +
        /* StructureGenerator.kt:172 */
   67    123   
        &self.complex_map
         124  +
        /* StructureGenerator.kt:166 */
   68    125   
    }
         126  +
    /* StructureGenerator.kt:231 */
   69    127   
    #[allow(missing_docs)] // documentation missing in model
         128  +
                           /* StructureGenerator.kt:166 */
   70    129   
    pub fn complex_union(&self) -> &crate::types::ComplexUnion {
         130  +
        /* StructureGenerator.kt:171 */
   71    131   
        use std::ops::Deref;
   72    132   
        self.complex_union.deref()
         133  +
        /* StructureGenerator.kt:166 */
   73    134   
    }
         135  +
    /* StructureGenerator.kt:135 */
   74    136   
}
         137  +
/* ClientCodegenVisitor.kt:237 */
   75    138   
impl ComplexStruct {
   76         -
    /// Creates a new builder-style object to manufacture [`ComplexStruct`](crate::types::ComplexStruct).
         139  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ComplexStruct`](crate::types::ComplexStruct).
         140  +
    /* BuilderGenerator.kt:175 */
   77    141   
    pub fn builder() -> crate::types::builders::ComplexStructBuilder {
         142  +
        /* BuilderGenerator.kt:176 */
   78    143   
        crate::types::builders::ComplexStructBuilder::default()
         144  +
        /* BuilderGenerator.kt:175 */
   79    145   
    }
         146  +
    /* ClientCodegenVisitor.kt:237 */
   80    147   
}
   81    148   
   82         -
/// A builder for [`ComplexStruct`](crate::types::ComplexStruct).
         149  +
/// /* BuilderGenerator.kt:342 */A builder for [`ComplexStruct`](crate::types::ComplexStruct).
         150  +
/* RustType.kt:516 */
   83    151   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         152  +
/* RustType.kt:516 */
   84    153   
#[non_exhaustive]
         154  +
/* BuilderGenerator.kt:345 */
   85    155   
pub struct ComplexStructBuilder {
   86         -
    pub(crate) structure: ::std::option::Option<crate::types::SimpleStruct>,
   87         -
    pub(crate) empty_structure: ::std::option::Option<crate::types::EmptyStruct>,
   88         -
    pub(crate) list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
   89         -
    pub(crate) map: ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
   90         -
    pub(crate) union: ::std::option::Option<crate::types::SimpleUnion>,
   91         -
    pub(crate) unit_union: ::std::option::Option<crate::types::UnitUnion>,
   92         -
    pub(crate) structure_list: ::std::option::Option<::std::vec::Vec<crate::types::SimpleStruct>>,
         156  +
    /* BuilderGenerator.kt:275 */ pub(crate) structure: ::std::option::Option<crate::types::SimpleStruct>,
         157  +
    /* BuilderGenerator.kt:275 */ pub(crate) empty_structure: ::std::option::Option<crate::types::EmptyStruct>,
         158  +
    /* BuilderGenerator.kt:275 */ pub(crate) list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
         159  +
    /* BuilderGenerator.kt:275 */ pub(crate) map: ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
         160  +
    /* BuilderGenerator.kt:275 */ pub(crate) union: ::std::option::Option<crate::types::SimpleUnion>,
         161  +
    /* BuilderGenerator.kt:275 */ pub(crate) unit_union: ::std::option::Option<crate::types::UnitUnion>,
         162  +
    /* BuilderGenerator.kt:275 */ pub(crate) structure_list: ::std::option::Option<::std::vec::Vec<crate::types::SimpleStruct>>,
         163  +
    /* BuilderGenerator.kt:275 */
   93    164   
    pub(crate) complex_list: ::std::option::Option<::std::vec::Vec<::std::collections::HashMap<::std::string::String, crate::types::ComplexUnion>>>,
         165  +
    /* BuilderGenerator.kt:275 */
   94    166   
    pub(crate) complex_map: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::ComplexUnion>>,
         167  +
    /* BuilderGenerator.kt:275 */
   95    168   
    pub(crate) complex_union: ::std::option::Option<::std::boxed::Box<crate::types::ComplexUnion>>,
         169  +
    /* BuilderGenerator.kt:345 */
   96    170   
}
         171  +
/* BuilderGenerator.kt:355 */
   97    172   
impl ComplexStructBuilder {
         173  +
    /* BuilderGenerator.kt:286 */
   98    174   
    #[allow(missing_docs)] // documentation missing in model
         175  +
                           /* BuilderGenerator.kt:291 */
   99    176   
    pub fn structure(mut self, input: crate::types::SimpleStruct) -> Self {
         177  +
        /* BuilderGenerator.kt:292 */
  100    178   
        self.structure = ::std::option::Option::Some(input);
         179  +
        /* BuilderGenerator.kt:293 */
  101    180   
        self
         181  +
        /* BuilderGenerator.kt:291 */
  102    182   
    }
         183  +
    /* BuilderGenerator.kt:312 */
  103    184   
    #[allow(missing_docs)] // documentation missing in model
         185  +
                           /* BuilderGenerator.kt:314 */
  104    186   
    pub fn set_structure(mut self, input: ::std::option::Option<crate::types::SimpleStruct>) -> Self {
         187  +
        /* BuilderGenerator.kt:315 */
  105    188   
        self.structure = input;
  106    189   
        self
         190  +
        /* BuilderGenerator.kt:314 */
  107    191   
    }
         192  +
    /* BuilderGenerator.kt:334 */
  108    193   
    #[allow(missing_docs)] // documentation missing in model
         194  +
                           /* BuilderGenerator.kt:336 */
  109    195   
    pub fn get_structure(&self) -> &::std::option::Option<crate::types::SimpleStruct> {
         196  +
        /* BuilderGenerator.kt:337 */
  110    197   
        &self.structure
         198  +
        /* BuilderGenerator.kt:336 */
  111    199   
    }
         200  +
    /* BuilderGenerator.kt:286 */
  112    201   
    #[allow(missing_docs)] // documentation missing in model
         202  +
                           /* BuilderGenerator.kt:291 */
  113    203   
    pub fn empty_structure(mut self, input: crate::types::EmptyStruct) -> Self {
         204  +
        /* BuilderGenerator.kt:292 */
  114    205   
        self.empty_structure = ::std::option::Option::Some(input);
         206  +
        /* BuilderGenerator.kt:293 */
  115    207   
        self
         208  +
        /* BuilderGenerator.kt:291 */
  116    209   
    }
         210  +
    /* BuilderGenerator.kt:312 */
  117    211   
    #[allow(missing_docs)] // documentation missing in model
         212  +
                           /* BuilderGenerator.kt:314 */
  118    213   
    pub fn set_empty_structure(mut self, input: ::std::option::Option<crate::types::EmptyStruct>) -> Self {
         214  +
        /* BuilderGenerator.kt:315 */
  119    215   
        self.empty_structure = input;
  120    216   
        self
         217  +
        /* BuilderGenerator.kt:314 */
  121    218   
    }
         219  +
    /* BuilderGenerator.kt:334 */
  122    220   
    #[allow(missing_docs)] // documentation missing in model
         221  +
                           /* BuilderGenerator.kt:336 */
  123    222   
    pub fn get_empty_structure(&self) -> &::std::option::Option<crate::types::EmptyStruct> {
         223  +
        /* BuilderGenerator.kt:337 */
  124    224   
        &self.empty_structure
         225  +
        /* BuilderGenerator.kt:336 */
  125    226   
    }
  126         -
    /// Appends an item to `list`.
         227  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `list`.
         228  +
    /* BuilderGenerator.kt:411 */
  127    229   
    ///
  128         -
    /// To override the contents of this collection use [`set_list`](Self::set_list).
         230  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_list`](Self::set_list).
         231  +
    /* BuilderGenerator.kt:413 */
  129    232   
    ///
         233  +
    /* BuilderGenerator.kt:418 */
  130    234   
    pub fn list(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         235  +
        /* BuilderGenerator.kt:419 */
  131    236   
        let mut v = self.list.unwrap_or_default();
  132    237   
        v.push(input.into());
  133    238   
        self.list = ::std::option::Option::Some(v);
  134    239   
        self
         240  +
        /* BuilderGenerator.kt:418 */
  135    241   
    }
         242  +
    /* BuilderGenerator.kt:312 */
  136    243   
    #[allow(missing_docs)] // documentation missing in model
         244  +
                           /* BuilderGenerator.kt:314 */
  137    245   
    pub fn set_list(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
         246  +
        /* BuilderGenerator.kt:315 */
  138    247   
        self.list = input;
  139    248   
        self
         249  +
        /* BuilderGenerator.kt:314 */
  140    250   
    }
         251  +
    /* BuilderGenerator.kt:334 */
  141    252   
    #[allow(missing_docs)] // documentation missing in model
         253  +
                           /* BuilderGenerator.kt:336 */
  142    254   
    pub fn get_list(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
         255  +
        /* BuilderGenerator.kt:337 */
  143    256   
        &self.list
         257  +
        /* BuilderGenerator.kt:336 */
  144    258   
    }
  145         -
    /// Adds a key-value pair to `map`.
         259  +
    /// /* BuilderGenerator.kt:436 */Adds a key-value pair to `map`.
         260  +
    /* BuilderGenerator.kt:437 */
  146    261   
    ///
  147         -
    /// To override the contents of this collection use [`set_map`](Self::set_map).
         262  +
    /// /* BuilderGenerator.kt:438 */To override the contents of this collection use [`set_map`](Self::set_map).
         263  +
    /* BuilderGenerator.kt:439 */
  148    264   
    ///
         265  +
    /* BuilderGenerator.kt:445 */
  149    266   
    pub fn map(mut self, k: impl ::std::convert::Into<::std::string::String>, v: i32) -> Self {
         267  +
        /* BuilderGenerator.kt:448 */
  150    268   
        let mut hash_map = self.map.unwrap_or_default();
  151    269   
        hash_map.insert(k.into(), v);
  152    270   
        self.map = ::std::option::Option::Some(hash_map);
  153    271   
        self
         272  +
        /* BuilderGenerator.kt:445 */
  154    273   
    }
         274  +
    /* BuilderGenerator.kt:312 */
  155    275   
    #[allow(missing_docs)] // documentation missing in model
         276  +
                           /* BuilderGenerator.kt:314 */
  156    277   
    pub fn set_map(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>) -> Self {
         278  +
        /* BuilderGenerator.kt:315 */
  157    279   
        self.map = input;
  158    280   
        self
         281  +
        /* BuilderGenerator.kt:314 */
  159    282   
    }
         283  +
    /* BuilderGenerator.kt:334 */
  160    284   
    #[allow(missing_docs)] // documentation missing in model
         285  +
                           /* BuilderGenerator.kt:336 */
  161    286   
    pub fn get_map(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, i32>> {
         287  +
        /* BuilderGenerator.kt:337 */
  162    288   
        &self.map
         289  +
        /* BuilderGenerator.kt:336 */
  163    290   
    }
         291  +
    /* BuilderGenerator.kt:286 */
  164    292   
    #[allow(missing_docs)] // documentation missing in model
         293  +
                           /* BuilderGenerator.kt:291 */
  165    294   
    pub fn union(mut self, input: crate::types::SimpleUnion) -> Self {
         295  +
        /* BuilderGenerator.kt:292 */
  166    296   
        self.union = ::std::option::Option::Some(input);
         297  +
        /* BuilderGenerator.kt:293 */
  167    298   
        self
         299  +
        /* BuilderGenerator.kt:291 */
  168    300   
    }
         301  +
    /* BuilderGenerator.kt:312 */
  169    302   
    #[allow(missing_docs)] // documentation missing in model
         303  +
                           /* BuilderGenerator.kt:314 */
  170    304   
    pub fn set_union(mut self, input: ::std::option::Option<crate::types::SimpleUnion>) -> Self {
         305  +
        /* BuilderGenerator.kt:315 */
  171    306   
        self.union = input;
  172    307   
        self
         308  +
        /* BuilderGenerator.kt:314 */
  173    309   
    }
         310  +
    /* BuilderGenerator.kt:334 */
  174    311   
    #[allow(missing_docs)] // documentation missing in model
         312  +
                           /* BuilderGenerator.kt:336 */
  175    313   
    pub fn get_union(&self) -> &::std::option::Option<crate::types::SimpleUnion> {
         314  +
        /* BuilderGenerator.kt:337 */
  176    315   
        &self.union
         316  +
        /* BuilderGenerator.kt:336 */
  177    317   
    }
         318  +
    /* BuilderGenerator.kt:286 */
  178    319   
    #[allow(missing_docs)] // documentation missing in model
         320  +
                           /* BuilderGenerator.kt:291 */
  179    321   
    pub fn unit_union(mut self, input: crate::types::UnitUnion) -> Self {
         322  +
        /* BuilderGenerator.kt:292 */
  180    323   
        self.unit_union = ::std::option::Option::Some(input);
         324  +
        /* BuilderGenerator.kt:293 */
  181    325   
        self
         326  +
        /* BuilderGenerator.kt:291 */
  182    327   
    }
         328  +
    /* BuilderGenerator.kt:312 */
  183    329   
    #[allow(missing_docs)] // documentation missing in model
         330  +
                           /* BuilderGenerator.kt:314 */
  184    331   
    pub fn set_unit_union(mut self, input: ::std::option::Option<crate::types::UnitUnion>) -> Self {
         332  +
        /* BuilderGenerator.kt:315 */
  185    333   
        self.unit_union = input;
  186    334   
        self
         335  +
        /* BuilderGenerator.kt:314 */
  187    336   
    }
         337  +
    /* BuilderGenerator.kt:334 */
  188    338   
    #[allow(missing_docs)] // documentation missing in model
         339  +
                           /* BuilderGenerator.kt:336 */
  189    340   
    pub fn get_unit_union(&self) -> &::std::option::Option<crate::types::UnitUnion> {
         341  +
        /* BuilderGenerator.kt:337 */
  190    342   
        &self.unit_union
         343  +
        /* BuilderGenerator.kt:336 */
  191    344   
    }
  192         -
    /// Appends an item to `structure_list`.
         345  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `structure_list`.
         346  +
    /* BuilderGenerator.kt:411 */
  193    347   
    ///
  194         -
    /// To override the contents of this collection use [`set_structure_list`](Self::set_structure_list).
         348  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_structure_list`](Self::set_structure_list).
         349  +
    /* BuilderGenerator.kt:413 */
  195    350   
    ///
         351  +
    /* BuilderGenerator.kt:418 */
  196    352   
    pub fn structure_list(mut self, input: crate::types::SimpleStruct) -> Self {
         353  +
        /* BuilderGenerator.kt:419 */
  197    354   
        let mut v = self.structure_list.unwrap_or_default();
  198    355   
        v.push(input);
  199    356   
        self.structure_list = ::std::option::Option::Some(v);
  200    357   
        self
         358  +
        /* BuilderGenerator.kt:418 */
  201    359   
    }
         360  +
    /* BuilderGenerator.kt:312 */
  202    361   
    #[allow(missing_docs)] // documentation missing in model
         362  +
                           /* BuilderGenerator.kt:314 */
  203    363   
    pub fn set_structure_list(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::SimpleStruct>>) -> Self {
         364  +
        /* BuilderGenerator.kt:315 */
  204    365   
        self.structure_list = input;
  205    366   
        self
         367  +
        /* BuilderGenerator.kt:314 */
  206    368   
    }
         369  +
    /* BuilderGenerator.kt:334 */
  207    370   
    #[allow(missing_docs)] // documentation missing in model
         371  +
                           /* BuilderGenerator.kt:336 */
  208    372   
    pub fn get_structure_list(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::SimpleStruct>> {
         373  +
        /* BuilderGenerator.kt:337 */
  209    374   
        &self.structure_list
         375  +
        /* BuilderGenerator.kt:336 */
  210    376   
    }
  211         -
    /// Appends an item to `complex_list`.
         377  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `complex_list`.
         378  +
    /* BuilderGenerator.kt:411 */
  212    379   
    ///
  213         -
    /// To override the contents of this collection use [`set_complex_list`](Self::set_complex_list).
         380  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_complex_list`](Self::set_complex_list).
         381  +
    /* BuilderGenerator.kt:413 */
  214    382   
    ///
         383  +
    /* BuilderGenerator.kt:418 */
  215    384   
    pub fn complex_list(mut self, input: ::std::collections::HashMap<::std::string::String, crate::types::ComplexUnion>) -> Self {
         385  +
        /* BuilderGenerator.kt:419 */
  216    386   
        let mut v = self.complex_list.unwrap_or_default();
  217    387   
        v.push(input);
  218    388   
        self.complex_list = ::std::option::Option::Some(v);
  219    389   
        self
         390  +
        /* BuilderGenerator.kt:418 */
  220    391   
    }
         392  +
    /* BuilderGenerator.kt:312 */
  221    393   
    #[allow(missing_docs)] // documentation missing in model
         394  +
                           /* BuilderGenerator.kt:314 */
  222    395   
    pub fn set_complex_list(
  223    396   
        mut self,
  224    397   
        input: ::std::option::Option<::std::vec::Vec<::std::collections::HashMap<::std::string::String, crate::types::ComplexUnion>>>,
  225    398   
    ) -> Self {
         399  +
        /* BuilderGenerator.kt:315 */
  226    400   
        self.complex_list = input;
  227    401   
        self
         402  +
        /* BuilderGenerator.kt:314 */
  228    403   
    }
         404  +
    /* BuilderGenerator.kt:334 */
  229    405   
    #[allow(missing_docs)] // documentation missing in model
         406  +
                           /* BuilderGenerator.kt:336 */
  230    407   
    pub fn get_complex_list(
  231    408   
        &self,
  232    409   
    ) -> &::std::option::Option<::std::vec::Vec<::std::collections::HashMap<::std::string::String, crate::types::ComplexUnion>>> {
         410  +
        /* BuilderGenerator.kt:337 */
  233    411   
        &self.complex_list
         412  +
        /* BuilderGenerator.kt:336 */
  234    413   
    }
  235         -
    /// Adds a key-value pair to `complex_map`.
         414  +
    /// /* BuilderGenerator.kt:436 */Adds a key-value pair to `complex_map`.
         415  +
    /* BuilderGenerator.kt:437 */
  236    416   
    ///
  237         -
    /// To override the contents of this collection use [`set_complex_map`](Self::set_complex_map).
         417  +
    /// /* BuilderGenerator.kt:438 */To override the contents of this collection use [`set_complex_map`](Self::set_complex_map).
         418  +
    /* BuilderGenerator.kt:439 */
  238    419   
    ///
         420  +
    /* BuilderGenerator.kt:445 */
  239    421   
    pub fn complex_map(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::ComplexUnion) -> Self {
         422  +
        /* BuilderGenerator.kt:448 */
  240    423   
        let mut hash_map = self.complex_map.unwrap_or_default();
  241    424   
        hash_map.insert(k.into(), v);
  242    425   
        self.complex_map = ::std::option::Option::Some(hash_map);
  243    426   
        self
         427  +
        /* BuilderGenerator.kt:445 */
  244    428   
    }
         429  +
    /* BuilderGenerator.kt:312 */
  245    430   
    #[allow(missing_docs)] // documentation missing in model
         431  +
                           /* BuilderGenerator.kt:314 */
  246    432   
    pub fn set_complex_map(
  247    433   
        mut self,
  248    434   
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::ComplexUnion>>,
  249    435   
    ) -> Self {
         436  +
        /* BuilderGenerator.kt:315 */
  250    437   
        self.complex_map = input;
  251    438   
        self
         439  +
        /* BuilderGenerator.kt:314 */
  252    440   
    }
         441  +
    /* BuilderGenerator.kt:334 */
  253    442   
    #[allow(missing_docs)] // documentation missing in model
         443  +
                           /* BuilderGenerator.kt:336 */
  254    444   
    pub fn get_complex_map(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::ComplexUnion>> {
         445  +
        /* BuilderGenerator.kt:337 */
  255    446   
        &self.complex_map
         447  +
        /* BuilderGenerator.kt:336 */
  256    448   
    }
         449  +
    /* BuilderGenerator.kt:286 */
  257    450   
    #[allow(missing_docs)] // documentation missing in model
  258         -
    /// This field is required.
         451  +
    /// /* BuilderGenerator.kt:288 */This field is required.
         452  +
    /* BuilderGenerator.kt:291 */
  259    453   
    pub fn complex_union(mut self, input: impl ::std::convert::Into<::std::boxed::Box<crate::types::ComplexUnion>>) -> Self {
         454  +
        /* BuilderGenerator.kt:292 */
  260    455   
        self.complex_union = ::std::option::Option::Some(input.into());
         456  +
        /* BuilderGenerator.kt:293 */
  261    457   
        self
         458  +
        /* BuilderGenerator.kt:291 */
  262    459   
    }
         460  +
    /* BuilderGenerator.kt:312 */
  263    461   
    #[allow(missing_docs)] // documentation missing in model
         462  +
                           /* BuilderGenerator.kt:314 */
  264    463   
    pub fn set_complex_union(mut self, input: ::std::option::Option<::std::boxed::Box<crate::types::ComplexUnion>>) -> Self {
         464  +
        /* BuilderGenerator.kt:315 */
  265    465   
        self.complex_union = input;
  266    466   
        self
         467  +
        /* BuilderGenerator.kt:314 */
  267    468   
    }
         469  +
    /* BuilderGenerator.kt:334 */
  268    470   
    #[allow(missing_docs)] // documentation missing in model
         471  +
                           /* BuilderGenerator.kt:336 */
  269    472   
    pub fn get_complex_union(&self) -> &::std::option::Option<::std::boxed::Box<crate::types::ComplexUnion>> {
         473  +
        /* BuilderGenerator.kt:337 */
  270    474   
        &self.complex_union
  271         -
    }
  272         -
    /// Consumes the builder and constructs a [`ComplexStruct`](crate::types::ComplexStruct).
  273         -
    /// This method will fail if any of the following fields are not set:
  274         -
    /// - [`complex_list`](crate::types::builders::ComplexStructBuilder::complex_list)
  275         -
    /// - [`complex_map`](crate::types::builders::ComplexStructBuilder::complex_map)
  276         -
    /// - [`complex_union`](crate::types::builders::ComplexStructBuilder::complex_union)
         475  +
        /* BuilderGenerator.kt:336 */
         476  +
    }
         477  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ComplexStruct`](crate::types::ComplexStruct).
         478  +
    /// /* BuilderGenerator.kt:243 */This method will fail if any of the following fields are not set:
         479  +
    /// /* BuilderGenerator.kt:246 */- [`complex_list`](crate::types::builders::ComplexStructBuilder::complex_list)
         480  +
    /// /* BuilderGenerator.kt:246 */- [`complex_map`](crate::types::builders::ComplexStructBuilder::complex_map)
         481  +
    /// /* BuilderGenerator.kt:246 */- [`complex_union`](crate::types::builders::ComplexStructBuilder::complex_union)
         482  +
    /* BuilderGenerator.kt:253 */
  277    483   
    pub fn build(self) -> ::std::result::Result<crate::types::ComplexStruct, ::aws_smithy_types::error::operation::BuildError> {
  278         -
        ::std::result::Result::Ok(crate::types::ComplexStruct {
  279         -
            structure: self.structure,
  280         -
            empty_structure: self.empty_structure,
  281         -
            list: self.list,
  282         -
            map: self.map,
  283         -
            union: self.union,
  284         -
            unit_union: self.unit_union,
  285         -
            structure_list: self.structure_list,
  286         -
            complex_list: self.complex_list.ok_or_else(|| {
  287         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
  288         -
                    "complex_list",
  289         -
                    "complex_list was not specified but it is required when building ComplexStruct",
  290         -
                )
  291         -
            })?,
  292         -
            complex_map: self.complex_map.ok_or_else(|| {
  293         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
  294         -
                    "complex_map",
  295         -
                    "complex_map was not specified but it is required when building ComplexStruct",
  296         -
                )
  297         -
            })?,
  298         -
            complex_union: self.complex_union.ok_or_else(|| {
  299         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
  300         -
                    "complex_union",
  301         -
                    "complex_union was not specified but it is required when building ComplexStruct",
  302         -
                )
  303         -
            })?,
  304         -
        })
  305         -
    }
         484  +
        /* BuilderGenerator.kt:254 */
         485  +
        ::std::result::Result::Ok(
         486  +
            /* BuilderGenerator.kt:477 */crate::types::ComplexStruct {
         487  +
                /* BuilderGenerator.kt:481 */structure: self.structure
         488  +
                ,
         489  +
                /* BuilderGenerator.kt:481 */empty_structure: self.empty_structure
         490  +
                ,
         491  +
                /* BuilderGenerator.kt:481 */list: self.list
         492  +
                ,
         493  +
                /* BuilderGenerator.kt:481 */map: self.map
         494  +
                ,
         495  +
                /* BuilderGenerator.kt:481 */union: self.union
         496  +
                ,
         497  +
                /* BuilderGenerator.kt:481 */unit_union: self.unit_union
         498  +
                ,
         499  +
                /* BuilderGenerator.kt:481 */structure_list: self.structure_list
         500  +
                ,
         501  +
                /* BuilderGenerator.kt:481 */complex_list: self.complex_list
         502  +
                    /* BuilderGenerator.kt:494 */.ok_or_else(||
         503  +
                        /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("complex_list", "complex_list was not specified but it is required when building ComplexStruct")
         504  +
                    /* BuilderGenerator.kt:494 */)?
         505  +
                ,
         506  +
                /* BuilderGenerator.kt:481 */complex_map: self.complex_map
         507  +
                    /* BuilderGenerator.kt:494 */.ok_or_else(||
         508  +
                        /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("complex_map", "complex_map was not specified but it is required when building ComplexStruct")
         509  +
                    /* BuilderGenerator.kt:494 */)?
         510  +
                ,
         511  +
                /* BuilderGenerator.kt:481 */complex_union: self.complex_union
         512  +
                    /* BuilderGenerator.kt:494 */.ok_or_else(||
         513  +
                        /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("complex_union", "complex_union was not specified but it is required when building ComplexStruct")
         514  +
                    /* BuilderGenerator.kt:494 */)?
         515  +
                ,
         516  +
            /* BuilderGenerator.kt:477 */}
         517  +
        /* BuilderGenerator.kt:254 */)
         518  +
        /* BuilderGenerator.kt:253 */
         519  +
    }
         520  +
    /* BuilderGenerator.kt:355 */
  306    521   
}

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/types/_complex_union.rs

@@ -1,1 +96,169 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* UnionGenerator.kt:67 */
    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 enum ComplexUnion {
           8  +
pub /* UnionGenerator.kt:85 */ enum ComplexUnion {
           9  +
    /* UnionGenerator.kt:90 */
    6     10   
    #[allow(missing_docs)] // documentation missing in model
          11  +
    /* UnionGenerator.kt:190 */
    7     12   
    ComplexStruct(crate::types::ComplexStruct),
          13  +
    /* UnionGenerator.kt:90 */
    8     14   
    #[allow(missing_docs)] // documentation missing in model
          15  +
    /* UnionGenerator.kt:190 */
    9     16   
    List(::std::vec::Vec<::std::string::String>),
          17  +
    /* UnionGenerator.kt:90 */
   10     18   
    #[allow(missing_docs)] // documentation missing in model
          19  +
    /* UnionGenerator.kt:190 */
   11     20   
    Map(::std::collections::HashMap<::std::string::String, i32>),
          21  +
    /* UnionGenerator.kt:90 */
   12     22   
    #[allow(missing_docs)] // documentation missing in model
          23  +
    /* UnionGenerator.kt:190 */
   13     24   
    Structure(crate::types::SimpleStruct),
          25  +
    /* UnionGenerator.kt:90 */
   14     26   
    #[allow(missing_docs)] // documentation missing in model
          27  +
    /* UnionGenerator.kt:190 */
   15     28   
    Union(crate::types::SimpleUnion),
   16         -
    /// The `Unknown` variant represents cases where new union variant was received. Consider upgrading the SDK to the latest available version.
          29  +
    /// /* UnionGenerator.kt:96 */The `Unknown` variant represents cases where new union variant was received. Consider upgrading the SDK to the latest available version.
          30  +
    /* UnionGenerator.kt:97 */
   17     31   
    /// An unknown enum variant
          32  +
    /* UnionGenerator.kt:98 */
   18     33   
    ///
          34  +
    /* UnionGenerator.kt:99 */
   19     35   
    /// _Note: If you encounter this error, consider upgrading your SDK to the latest version._
          36  +
    /* UnionGenerator.kt:100 */
   20     37   
    /// The `Unknown` variant represents cases where the server sent a value that wasn't recognized
          38  +
    /* UnionGenerator.kt:101 */
   21     39   
    /// by the client. This can happen when the server adds new functionality, but the client has not been updated.
          40  +
    /* UnionGenerator.kt:102 */
   22     41   
    /// To investigate this, consider turning on debug logging to print the raw HTTP response.
          42  +
    /* RustType.kt:516 */
   23     43   
    #[non_exhaustive]
          44  +
    /* UnionGenerator.kt:105 */
   24     45   
    Unknown,
          46  +
    /* UnionGenerator.kt:85 */
   25     47   
}
          48  +
/* UnionGenerator.kt:111 */
   26     49   
impl ComplexUnion {
          50  +
    /* UnionGenerator.kt:217 */
   27     51   
    /// Tries to convert the enum instance into [`ComplexStruct`](crate::types::ComplexUnion::ComplexStruct), extracting the inner [`ComplexStruct`](crate::types::ComplexStruct).
          52  +
    /* UnionGenerator.kt:222 */
   28     53   
    /// Returns `Err(&Self)` if it can't be converted.
          54  +
    /* UnionGenerator.kt:223 */
   29     55   
    pub fn as_complex_struct(&self) -> ::std::result::Result<&crate::types::ComplexStruct, &Self> {
          56  +
        /* UnionGenerator.kt:227 */
   30     57   
        if let ComplexUnion::ComplexStruct(val) = &self {
   31     58   
            ::std::result::Result::Ok(val)
   32     59   
        } else {
   33     60   
            ::std::result::Result::Err(self)
   34     61   
        }
          62  +
        /* UnionGenerator.kt:223 */
   35     63   
    }
          64  +
    /* UnionGenerator.kt:121 */
   36     65   
    /// Returns true if this is a [`ComplexStruct`](crate::types::ComplexUnion::ComplexStruct).
          66  +
    /* UnionGenerator.kt:122 */
   37     67   
    pub fn is_complex_struct(&self) -> bool {
          68  +
        /* UnionGenerator.kt:123 */
   38     69   
        self.as_complex_struct().is_ok()
          70  +
        /* UnionGenerator.kt:122 */
   39     71   
    }
          72  +
    /* UnionGenerator.kt:217 */
   40     73   
    /// Tries to convert the enum instance into [`List`](crate::types::ComplexUnion::List), extracting the inner [`Vec`](::std::vec::Vec).
          74  +
    /* UnionGenerator.kt:222 */
   41     75   
    /// Returns `Err(&Self)` if it can't be converted.
          76  +
    /* UnionGenerator.kt:223 */
   42     77   
    pub fn as_list(&self) -> ::std::result::Result<&::std::vec::Vec<::std::string::String>, &Self> {
          78  +
        /* UnionGenerator.kt:227 */
   43     79   
        if let ComplexUnion::List(val) = &self {
   44     80   
            ::std::result::Result::Ok(val)
   45     81   
        } else {
   46     82   
            ::std::result::Result::Err(self)
   47     83   
        }
          84  +
        /* UnionGenerator.kt:223 */
   48     85   
    }
          86  +
    /* UnionGenerator.kt:121 */
   49     87   
    /// Returns true if this is a [`List`](crate::types::ComplexUnion::List).
          88  +
    /* UnionGenerator.kt:122 */
   50     89   
    pub fn is_list(&self) -> bool {
          90  +
        /* UnionGenerator.kt:123 */
   51     91   
        self.as_list().is_ok()
          92  +
        /* UnionGenerator.kt:122 */
   52     93   
    }
          94  +
    /* UnionGenerator.kt:217 */
   53     95   
    /// Tries to convert the enum instance into [`Map`](crate::types::ComplexUnion::Map), extracting the inner [`HashMap`](::std::collections::HashMap).
          96  +
    /* UnionGenerator.kt:222 */
   54     97   
    /// Returns `Err(&Self)` if it can't be converted.
          98  +
    /* UnionGenerator.kt:223 */
   55     99   
    pub fn as_map(&self) -> ::std::result::Result<&::std::collections::HashMap<::std::string::String, i32>, &Self> {
         100  +
        /* UnionGenerator.kt:227 */
   56    101   
        if let ComplexUnion::Map(val) = &self {
   57    102   
            ::std::result::Result::Ok(val)
   58    103   
        } else {
   59    104   
            ::std::result::Result::Err(self)
   60    105   
        }
         106  +
        /* UnionGenerator.kt:223 */
   61    107   
    }
         108  +
    /* UnionGenerator.kt:121 */
   62    109   
    /// Returns true if this is a [`Map`](crate::types::ComplexUnion::Map).
         110  +
    /* UnionGenerator.kt:122 */
   63    111   
    pub fn is_map(&self) -> bool {
         112  +
        /* UnionGenerator.kt:123 */
   64    113   
        self.as_map().is_ok()
         114  +
        /* UnionGenerator.kt:122 */
   65    115   
    }
         116  +
    /* UnionGenerator.kt:217 */
   66    117   
    /// Tries to convert the enum instance into [`Structure`](crate::types::ComplexUnion::Structure), extracting the inner [`SimpleStruct`](crate::types::SimpleStruct).
         118  +
    /* UnionGenerator.kt:222 */
   67    119   
    /// Returns `Err(&Self)` if it can't be converted.
         120  +
    /* UnionGenerator.kt:223 */
   68    121   
    pub fn as_structure(&self) -> ::std::result::Result<&crate::types::SimpleStruct, &Self> {
         122  +
        /* UnionGenerator.kt:227 */
   69    123   
        if let ComplexUnion::Structure(val) = &self {
   70    124   
            ::std::result::Result::Ok(val)
   71    125   
        } else {
   72    126   
            ::std::result::Result::Err(self)
   73    127   
        }
         128  +
        /* UnionGenerator.kt:223 */
   74    129   
    }
         130  +
    /* UnionGenerator.kt:121 */
   75    131   
    /// Returns true if this is a [`Structure`](crate::types::ComplexUnion::Structure).
         132  +
    /* UnionGenerator.kt:122 */
   76    133   
    pub fn is_structure(&self) -> bool {
         134  +
        /* UnionGenerator.kt:123 */
   77    135   
        self.as_structure().is_ok()
         136  +
        /* UnionGenerator.kt:122 */
   78    137   
    }
         138  +
    /* UnionGenerator.kt:217 */
   79    139   
    /// Tries to convert the enum instance into [`Union`](crate::types::ComplexUnion::Union), extracting the inner [`SimpleUnion`](crate::types::SimpleUnion).
         140  +
    /* UnionGenerator.kt:222 */
   80    141   
    /// Returns `Err(&Self)` if it can't be converted.
         142  +
    /* UnionGenerator.kt:223 */
   81    143   
    pub fn as_union(&self) -> ::std::result::Result<&crate::types::SimpleUnion, &Self> {
         144  +
        /* UnionGenerator.kt:227 */
   82    145   
        if let ComplexUnion::Union(val) = &self {
   83    146   
            ::std::result::Result::Ok(val)
   84    147   
        } else {
   85    148   
            ::std::result::Result::Err(self)
   86    149   
        }
         150  +
        /* UnionGenerator.kt:223 */
   87    151   
    }
         152  +
    /* UnionGenerator.kt:121 */
   88    153   
    /// Returns true if this is a [`Union`](crate::types::ComplexUnion::Union).
         154  +
    /* UnionGenerator.kt:122 */
   89    155   
    pub fn is_union(&self) -> bool {
         156  +
        /* UnionGenerator.kt:123 */
   90    157   
        self.as_union().is_ok()
         158  +
        /* UnionGenerator.kt:122 */
   91    159   
    }
         160  +
    /* UnionGenerator.kt:127 */
   92    161   
    /// Returns true if the enum instance is the `Unknown` variant.
         162  +
    /* UnionGenerator.kt:128 */
   93    163   
    pub fn is_unknown(&self) -> bool {
         164  +
        /* UnionGenerator.kt:129 */
   94    165   
        matches!(self, Self::Unknown)
         166  +
        /* UnionGenerator.kt:128 */
   95    167   
    }
         168  +
    /* UnionGenerator.kt:111 */
   96    169   
}

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/types/_empty_struct.rs

@@ -1,1 +22,39 @@
    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 EmptyStruct {}
           8  +
pub /* StructureGenerator.kt:201 */ struct EmptyStruct {/* StructureGenerator.kt:201 */}
           9  +
/* ClientCodegenVisitor.kt:237 */
    6     10   
impl EmptyStruct {
    7         -
    /// Creates a new builder-style object to manufacture [`EmptyStruct`](crate::types::EmptyStruct).
          11  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`EmptyStruct`](crate::types::EmptyStruct).
          12  +
    /* BuilderGenerator.kt:175 */
    8     13   
    pub fn builder() -> crate::types::builders::EmptyStructBuilder {
          14  +
        /* BuilderGenerator.kt:176 */
    9     15   
        crate::types::builders::EmptyStructBuilder::default()
          16  +
        /* BuilderGenerator.kt:175 */
   10     17   
    }
          18  +
    /* ClientCodegenVisitor.kt:237 */
   11     19   
}
   12     20   
   13         -
/// A builder for [`EmptyStruct`](crate::types::EmptyStruct).
          21  +
/// /* BuilderGenerator.kt:342 */A builder for [`EmptyStruct`](crate::types::EmptyStruct).
          22  +
/* RustType.kt:516 */
   14     23   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          24  +
/* RustType.kt:516 */
   15     25   
#[non_exhaustive]
   16         -
pub struct EmptyStructBuilder {}
          26  +
/* BuilderGenerator.kt:345 */
          27  +
pub struct EmptyStructBuilder {/* BuilderGenerator.kt:345 */}
          28  +
/* BuilderGenerator.kt:355 */
   17     29   
impl EmptyStructBuilder {
   18         -
    /// Consumes the builder and constructs a [`EmptyStruct`](crate::types::EmptyStruct).
          30  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`EmptyStruct`](crate::types::EmptyStruct).
          31  +
    /* BuilderGenerator.kt:253 */
   19     32   
    pub fn build(self) -> crate::types::EmptyStruct {
   20         -
        crate::types::EmptyStruct {}
          33  +
        /* BuilderGenerator.kt:477 */
          34  +
        crate::types::EmptyStruct {
          35  +
        /* BuilderGenerator.kt:477 */}
          36  +
        /* BuilderGenerator.kt:253 */
   21     37   
    }
          38  +
    /* BuilderGenerator.kt:355 */
   22     39   
}

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

@@ -1,1 +590,992 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* StructureGenerator.kt:197 */
    2      3   
#[allow(missing_docs)] // documentation missing in model
           4  +
/* RustType.kt:516 */
    3      5   
#[non_exhaustive]
           6  +
/* RustType.kt:516 */
    4      7   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    5         -
pub struct SimpleStruct {
           8  +
pub /* StructureGenerator.kt:201 */ struct SimpleStruct {
           9  +
    /* StructureGenerator.kt:231 */
    6     10   
    #[allow(missing_docs)] // documentation missing in model
    7     11   
    pub blob: ::std::option::Option<::aws_smithy_types::Blob>,
    8         -
    #[allow(missing_docs)] // documentation missing in model
          12  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
    9     13   
    pub boolean: ::std::option::Option<bool>,
          14  +
    /* StructureGenerator.kt:231 */
   10     15   
    #[allow(missing_docs)] // documentation missing in model
   11     16   
    pub string: ::std::option::Option<::std::string::String>,
   12         -
    #[allow(missing_docs)] // documentation missing in model
          17  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   13     18   
    pub byte: ::std::option::Option<i8>,
   14         -
    #[allow(missing_docs)] // documentation missing in model
          19  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   15     20   
    pub short: ::std::option::Option<i16>,
   16         -
    #[allow(missing_docs)] // documentation missing in model
          21  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   17     22   
    pub integer: ::std::option::Option<i32>,
   18         -
    #[allow(missing_docs)] // documentation missing in model
          23  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   19     24   
    pub long: ::std::option::Option<i64>,
   20         -
    #[allow(missing_docs)] // documentation missing in model
          25  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   21     26   
    pub float: ::std::option::Option<f32>,
   22         -
    #[allow(missing_docs)] // documentation missing in model
          27  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   23     28   
    pub double: ::std::option::Option<f64>,
          29  +
    /* StructureGenerator.kt:231 */
   24     30   
    #[allow(missing_docs)] // documentation missing in model
   25     31   
    pub timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
          32  +
    /* StructureGenerator.kt:231 */
   26     33   
    #[allow(missing_docs)] // documentation missing in model
   27     34   
    pub r#enum: ::std::option::Option<crate::types::Suit>,
   28         -
    #[allow(missing_docs)] // documentation missing in model
          35  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   29     36   
    pub required_blob: ::aws_smithy_types::Blob,
   30         -
    #[allow(missing_docs)] // documentation missing in model
          37  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   31     38   
    pub required_boolean: bool,
   32         -
    #[allow(missing_docs)] // documentation missing in model
          39  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   33     40   
    pub required_string: ::std::string::String,
   34         -
    #[allow(missing_docs)] // documentation missing in model
          41  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   35     42   
    pub required_byte: i8,
   36         -
    #[allow(missing_docs)] // documentation missing in model
          43  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   37     44   
    pub required_short: i16,
   38         -
    #[allow(missing_docs)] // documentation missing in model
          45  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   39     46   
    pub required_integer: i32,
   40         -
    #[allow(missing_docs)] // documentation missing in model
          47  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   41     48   
    pub required_long: i64,
   42         -
    #[allow(missing_docs)] // documentation missing in model
          49  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   43     50   
    pub required_float: f32,
   44         -
    #[allow(missing_docs)] // documentation missing in model
          51  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   45     52   
    pub required_double: f64,
          53  +
    /* StructureGenerator.kt:231 */
   46     54   
    #[allow(missing_docs)] // documentation missing in model
   47     55   
    pub required_timestamp: ::aws_smithy_types::DateTime,
          56  +
    /* StructureGenerator.kt:231 */
   48     57   
    #[allow(missing_docs)] // documentation missing in model
   49     58   
    pub required_enum: crate::types::Suit,
          59  +
    /* StructureGenerator.kt:201 */
   50     60   
}
          61  +
/* StructureGenerator.kt:135 */
   51     62   
impl SimpleStruct {
          63  +
    /* StructureGenerator.kt:231 */
   52     64   
    #[allow(missing_docs)] // documentation missing in model
          65  +
                           /* StructureGenerator.kt:166 */
   53     66   
    pub fn blob(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
          67  +
        /* StructureGenerator.kt:170 */
   54     68   
        self.blob.as_ref()
          69  +
        /* StructureGenerator.kt:166 */
   55     70   
    }
          71  +
    /* StructureGenerator.kt:231 */
   56     72   
    #[allow(missing_docs)] // documentation missing in model
          73  +
                           /* StructureGenerator.kt:166 */
   57     74   
    pub fn boolean(&self) -> ::std::option::Option<bool> {
          75  +
        /* StructureGenerator.kt:168 */
   58     76   
        self.boolean
          77  +
        /* StructureGenerator.kt:166 */
   59     78   
    }
          79  +
    /* StructureGenerator.kt:231 */
   60     80   
    #[allow(missing_docs)] // documentation missing in model
          81  +
                           /* StructureGenerator.kt:166 */
   61     82   
    pub fn string(&self) -> ::std::option::Option<&str> {
          83  +
        /* StructureGenerator.kt:169 */
   62     84   
        self.string.as_deref()
          85  +
        /* StructureGenerator.kt:166 */
   63     86   
    }
          87  +
    /* StructureGenerator.kt:231 */
   64     88   
    #[allow(missing_docs)] // documentation missing in model
          89  +
                           /* StructureGenerator.kt:166 */
   65     90   
    pub fn byte(&self) -> ::std::option::Option<i8> {
          91  +
        /* StructureGenerator.kt:168 */
   66     92   
        self.byte
          93  +
        /* StructureGenerator.kt:166 */
   67     94   
    }
          95  +
    /* StructureGenerator.kt:231 */
   68     96   
    #[allow(missing_docs)] // documentation missing in model
          97  +
                           /* StructureGenerator.kt:166 */
   69     98   
    pub fn short(&self) -> ::std::option::Option<i16> {
          99  +
        /* StructureGenerator.kt:168 */
   70    100   
        self.short
         101  +
        /* StructureGenerator.kt:166 */
   71    102   
    }
         103  +
    /* StructureGenerator.kt:231 */
   72    104   
    #[allow(missing_docs)] // documentation missing in model
         105  +
                           /* StructureGenerator.kt:166 */
   73    106   
    pub fn integer(&self) -> ::std::option::Option<i32> {
         107  +
        /* StructureGenerator.kt:168 */
   74    108   
        self.integer
         109  +
        /* StructureGenerator.kt:166 */
   75    110   
    }
         111  +
    /* StructureGenerator.kt:231 */
   76    112   
    #[allow(missing_docs)] // documentation missing in model
         113  +
                           /* StructureGenerator.kt:166 */
   77    114   
    pub fn long(&self) -> ::std::option::Option<i64> {
         115  +
        /* StructureGenerator.kt:168 */
   78    116   
        self.long
         117  +
        /* StructureGenerator.kt:166 */
   79    118   
    }
         119  +
    /* StructureGenerator.kt:231 */
   80    120   
    #[allow(missing_docs)] // documentation missing in model
         121  +
                           /* StructureGenerator.kt:166 */
   81    122   
    pub fn float(&self) -> ::std::option::Option<f32> {
         123  +
        /* StructureGenerator.kt:168 */
   82    124   
        self.float
         125  +
        /* StructureGenerator.kt:166 */
   83    126   
    }
         127  +
    /* StructureGenerator.kt:231 */
   84    128   
    #[allow(missing_docs)] // documentation missing in model
         129  +
                           /* StructureGenerator.kt:166 */
   85    130   
    pub fn double(&self) -> ::std::option::Option<f64> {
         131  +
        /* StructureGenerator.kt:168 */
   86    132   
        self.double
         133  +
        /* StructureGenerator.kt:166 */
   87    134   
    }
         135  +
    /* StructureGenerator.kt:231 */
   88    136   
    #[allow(missing_docs)] // documentation missing in model
         137  +
                           /* StructureGenerator.kt:166 */
   89    138   
    pub fn timestamp(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
         139  +
        /* StructureGenerator.kt:170 */
   90    140   
        self.timestamp.as_ref()
         141  +
        /* StructureGenerator.kt:166 */
   91    142   
    }
         143  +
    /* StructureGenerator.kt:231 */
   92    144   
    #[allow(missing_docs)] // documentation missing in model
         145  +
                           /* StructureGenerator.kt:166 */
   93    146   
    pub fn r#enum(&self) -> ::std::option::Option<&crate::types::Suit> {
         147  +
        /* StructureGenerator.kt:170 */
   94    148   
        self.r#enum.as_ref()
         149  +
        /* StructureGenerator.kt:166 */
   95    150   
    }
         151  +
    /* StructureGenerator.kt:231 */
   96    152   
    #[allow(missing_docs)] // documentation missing in model
         153  +
                           /* StructureGenerator.kt:166 */
   97    154   
    pub fn required_blob(&self) -> &::aws_smithy_types::Blob {
         155  +
        /* StructureGenerator.kt:172 */
   98    156   
        &self.required_blob
         157  +
        /* StructureGenerator.kt:166 */
   99    158   
    }
         159  +
    /* StructureGenerator.kt:231 */
  100    160   
    #[allow(missing_docs)] // documentation missing in model
         161  +
                           /* StructureGenerator.kt:166 */
  101    162   
    pub fn required_boolean(&self) -> bool {
         163  +
        /* StructureGenerator.kt:168 */
  102    164   
        self.required_boolean
         165  +
        /* StructureGenerator.kt:166 */
  103    166   
    }
         167  +
    /* StructureGenerator.kt:231 */
  104    168   
    #[allow(missing_docs)] // documentation missing in model
         169  +
                           /* StructureGenerator.kt:166 */
  105    170   
    pub fn required_string(&self) -> &str {
         171  +
        /* StructureGenerator.kt:171 */
  106    172   
        use std::ops::Deref;
  107    173   
        self.required_string.deref()
         174  +
        /* StructureGenerator.kt:166 */
  108    175   
    }
         176  +
    /* StructureGenerator.kt:231 */
  109    177   
    #[allow(missing_docs)] // documentation missing in model
         178  +
                           /* StructureGenerator.kt:166 */
  110    179   
    pub fn required_byte(&self) -> i8 {
         180  +
        /* StructureGenerator.kt:168 */
  111    181   
        self.required_byte
         182  +
        /* StructureGenerator.kt:166 */
  112    183   
    }
         184  +
    /* StructureGenerator.kt:231 */
  113    185   
    #[allow(missing_docs)] // documentation missing in model
         186  +
                           /* StructureGenerator.kt:166 */
  114    187   
    pub fn required_short(&self) -> i16 {
         188  +
        /* StructureGenerator.kt:168 */
  115    189   
        self.required_short
         190  +
        /* StructureGenerator.kt:166 */
  116    191   
    }
         192  +
    /* StructureGenerator.kt:231 */
  117    193   
    #[allow(missing_docs)] // documentation missing in model
         194  +
                           /* StructureGenerator.kt:166 */
  118    195   
    pub fn required_integer(&self) -> i32 {
         196  +
        /* StructureGenerator.kt:168 */
  119    197   
        self.required_integer
         198  +
        /* StructureGenerator.kt:166 */
  120    199   
    }
         200  +
    /* StructureGenerator.kt:231 */
  121    201   
    #[allow(missing_docs)] // documentation missing in model
         202  +
                           /* StructureGenerator.kt:166 */
  122    203   
    pub fn required_long(&self) -> i64 {
         204  +
        /* StructureGenerator.kt:168 */
  123    205   
        self.required_long
         206  +
        /* StructureGenerator.kt:166 */
  124    207   
    }
         208  +
    /* StructureGenerator.kt:231 */
  125    209   
    #[allow(missing_docs)] // documentation missing in model
         210  +
                           /* StructureGenerator.kt:166 */
  126    211   
    pub fn required_float(&self) -> f32 {
         212  +
        /* StructureGenerator.kt:168 */
  127    213   
        self.required_float
         214  +
        /* StructureGenerator.kt:166 */
  128    215   
    }
         216  +
    /* StructureGenerator.kt:231 */
  129    217   
    #[allow(missing_docs)] // documentation missing in model
         218  +
                           /* StructureGenerator.kt:166 */
  130    219   
    pub fn required_double(&self) -> f64 {
         220  +
        /* StructureGenerator.kt:168 */
  131    221   
        self.required_double
         222  +
        /* StructureGenerator.kt:166 */
  132    223   
    }
         224  +
    /* StructureGenerator.kt:231 */
  133    225   
    #[allow(missing_docs)] // documentation missing in model
         226  +
                           /* StructureGenerator.kt:166 */
  134    227   
    pub fn required_timestamp(&self) -> &::aws_smithy_types::DateTime {
         228  +
        /* StructureGenerator.kt:172 */
  135    229   
        &self.required_timestamp
         230  +
        /* StructureGenerator.kt:166 */
  136    231   
    }
         232  +
    /* StructureGenerator.kt:231 */
  137    233   
    #[allow(missing_docs)] // documentation missing in model
         234  +
                           /* StructureGenerator.kt:166 */
  138    235   
    pub fn required_enum(&self) -> &crate::types::Suit {
         236  +
        /* StructureGenerator.kt:172 */
  139    237   
        &self.required_enum
         238  +
        /* StructureGenerator.kt:166 */
  140    239   
    }
         240  +
    /* StructureGenerator.kt:135 */
  141    241   
}
         242  +
/* ClientCodegenVisitor.kt:237 */
  142    243   
impl SimpleStruct {
  143         -
    /// Creates a new builder-style object to manufacture [`SimpleStruct`](crate::types::SimpleStruct).
         244  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`SimpleStruct`](crate::types::SimpleStruct).
         245  +
    /* BuilderGenerator.kt:175 */
  144    246   
    pub fn builder() -> crate::types::builders::SimpleStructBuilder {
         247  +
        /* BuilderGenerator.kt:176 */
  145    248   
        crate::types::builders::SimpleStructBuilder::default()
         249  +
        /* BuilderGenerator.kt:175 */
  146    250   
    }
         251  +
    /* ClientCodegenVisitor.kt:237 */
  147    252   
}
  148    253   
  149         -
/// A builder for [`SimpleStruct`](crate::types::SimpleStruct).
         254  +
/// /* BuilderGenerator.kt:342 */A builder for [`SimpleStruct`](crate::types::SimpleStruct).
         255  +
/* RustType.kt:516 */
  150    256   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         257  +
/* RustType.kt:516 */
  151    258   
#[non_exhaustive]
         259  +
/* BuilderGenerator.kt:345 */
  152    260   
pub struct SimpleStructBuilder {
  153         -
    pub(crate) blob: ::std::option::Option<::aws_smithy_types::Blob>,
  154         -
    pub(crate) boolean: ::std::option::Option<bool>,
  155         -
    pub(crate) string: ::std::option::Option<::std::string::String>,
  156         -
    pub(crate) byte: ::std::option::Option<i8>,
  157         -
    pub(crate) short: ::std::option::Option<i16>,
  158         -
    pub(crate) integer: ::std::option::Option<i32>,
  159         -
    pub(crate) long: ::std::option::Option<i64>,
  160         -
    pub(crate) float: ::std::option::Option<f32>,
  161         -
    pub(crate) double: ::std::option::Option<f64>,
  162         -
    pub(crate) timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
  163         -
    pub(crate) r#enum: ::std::option::Option<crate::types::Suit>,
  164         -
    pub(crate) required_blob: ::std::option::Option<::aws_smithy_types::Blob>,
  165         -
    pub(crate) required_boolean: ::std::option::Option<bool>,
  166         -
    pub(crate) required_string: ::std::option::Option<::std::string::String>,
  167         -
    pub(crate) required_byte: ::std::option::Option<i8>,
  168         -
    pub(crate) required_short: ::std::option::Option<i16>,
  169         -
    pub(crate) required_integer: ::std::option::Option<i32>,
  170         -
    pub(crate) required_long: ::std::option::Option<i64>,
  171         -
    pub(crate) required_float: ::std::option::Option<f32>,
  172         -
    pub(crate) required_double: ::std::option::Option<f64>,
  173         -
    pub(crate) required_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
  174         -
    pub(crate) required_enum: ::std::option::Option<crate::types::Suit>,
         261  +
    /* BuilderGenerator.kt:275 */ pub(crate) blob: ::std::option::Option<::aws_smithy_types::Blob>,
         262  +
    /* BuilderGenerator.kt:275 */ pub(crate) boolean: ::std::option::Option<bool>,
         263  +
    /* BuilderGenerator.kt:275 */ pub(crate) string: ::std::option::Option<::std::string::String>,
         264  +
    /* BuilderGenerator.kt:275 */ pub(crate) byte: ::std::option::Option<i8>,
         265  +
    /* BuilderGenerator.kt:275 */ pub(crate) short: ::std::option::Option<i16>,
         266  +
    /* BuilderGenerator.kt:275 */ pub(crate) integer: ::std::option::Option<i32>,
         267  +
    /* BuilderGenerator.kt:275 */ pub(crate) long: ::std::option::Option<i64>,
         268  +
    /* BuilderGenerator.kt:275 */ pub(crate) float: ::std::option::Option<f32>,
         269  +
    /* BuilderGenerator.kt:275 */ pub(crate) double: ::std::option::Option<f64>,
         270  +
    /* BuilderGenerator.kt:275 */ pub(crate) timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
         271  +
    /* BuilderGenerator.kt:275 */ pub(crate) r#enum: ::std::option::Option<crate::types::Suit>,
         272  +
    /* BuilderGenerator.kt:275 */ pub(crate) required_blob: ::std::option::Option<::aws_smithy_types::Blob>,
         273  +
    /* BuilderGenerator.kt:275 */ pub(crate) required_boolean: ::std::option::Option<bool>,
         274  +
    /* BuilderGenerator.kt:275 */ pub(crate) required_string: ::std::option::Option<::std::string::String>,
         275  +
    /* BuilderGenerator.kt:275 */ pub(crate) required_byte: ::std::option::Option<i8>,
         276  +
    /* BuilderGenerator.kt:275 */ pub(crate) required_short: ::std::option::Option<i16>,
         277  +
    /* BuilderGenerator.kt:275 */ pub(crate) required_integer: ::std::option::Option<i32>,
         278  +
    /* BuilderGenerator.kt:275 */ pub(crate) required_long: ::std::option::Option<i64>,
         279  +
    /* BuilderGenerator.kt:275 */ pub(crate) required_float: ::std::option::Option<f32>,
         280  +
    /* BuilderGenerator.kt:275 */ pub(crate) required_double: ::std::option::Option<f64>,
         281  +
    /* BuilderGenerator.kt:275 */ pub(crate) required_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
         282  +
    /* BuilderGenerator.kt:275 */ pub(crate) required_enum: ::std::option::Option<crate::types::Suit>,
         283  +
    /* BuilderGenerator.kt:345 */
  175    284   
}
         285  +
/* BuilderGenerator.kt:355 */
  176    286   
impl SimpleStructBuilder {
         287  +
    /* BuilderGenerator.kt:286 */
  177    288   
    #[allow(missing_docs)] // documentation missing in model
         289  +
                           /* BuilderGenerator.kt:291 */
  178    290   
    pub fn blob(mut self, input: ::aws_smithy_types::Blob) -> Self {
         291  +
        /* BuilderGenerator.kt:292 */
  179    292   
        self.blob = ::std::option::Option::Some(input);
         293  +
        /* BuilderGenerator.kt:293 */
  180    294   
        self
         295  +
        /* BuilderGenerator.kt:291 */
  181    296   
    }
         297  +
    /* BuilderGenerator.kt:312 */
  182    298   
    #[allow(missing_docs)] // documentation missing in model
         299  +
                           /* BuilderGenerator.kt:314 */
  183    300   
    pub fn set_blob(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
         301  +
        /* BuilderGenerator.kt:315 */
  184    302   
        self.blob = input;
  185    303   
        self
         304  +
        /* BuilderGenerator.kt:314 */
  186    305   
    }
         306  +
    /* BuilderGenerator.kt:334 */
  187    307   
    #[allow(missing_docs)] // documentation missing in model
         308  +
                           /* BuilderGenerator.kt:336 */
  188    309   
    pub fn get_blob(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
         310  +
        /* BuilderGenerator.kt:337 */
  189    311   
        &self.blob
         312  +
        /* BuilderGenerator.kt:336 */
  190    313   
    }
         314  +
    /* BuilderGenerator.kt:286 */
  191    315   
    #[allow(missing_docs)] // documentation missing in model
         316  +
                           /* BuilderGenerator.kt:291 */
  192    317   
    pub fn boolean(mut self, input: bool) -> Self {
         318  +
        /* BuilderGenerator.kt:292 */
  193    319   
        self.boolean = ::std::option::Option::Some(input);
         320  +
        /* BuilderGenerator.kt:293 */
  194    321   
        self
         322  +
        /* BuilderGenerator.kt:291 */
  195    323   
    }
         324  +
    /* BuilderGenerator.kt:312 */
  196    325   
    #[allow(missing_docs)] // documentation missing in model
         326  +
                           /* BuilderGenerator.kt:314 */
  197    327   
    pub fn set_boolean(mut self, input: ::std::option::Option<bool>) -> Self {
         328  +
        /* BuilderGenerator.kt:315 */
  198    329   
        self.boolean = input;
  199    330   
        self
         331  +
        /* BuilderGenerator.kt:314 */
  200    332   
    }
         333  +
    /* BuilderGenerator.kt:334 */
  201    334   
    #[allow(missing_docs)] // documentation missing in model
         335  +
                           /* BuilderGenerator.kt:336 */
  202    336   
    pub fn get_boolean(&self) -> &::std::option::Option<bool> {
         337  +
        /* BuilderGenerator.kt:337 */
  203    338   
        &self.boolean
         339  +
        /* BuilderGenerator.kt:336 */
  204    340   
    }
         341  +
    /* BuilderGenerator.kt:286 */
  205    342   
    #[allow(missing_docs)] // documentation missing in model
         343  +
                           /* BuilderGenerator.kt:291 */
  206    344   
    pub fn string(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         345  +
        /* BuilderGenerator.kt:292 */
  207    346   
        self.string = ::std::option::Option::Some(input.into());
         347  +
        /* BuilderGenerator.kt:293 */
  208    348   
        self
         349  +
        /* BuilderGenerator.kt:291 */
  209    350   
    }
         351  +
    /* BuilderGenerator.kt:312 */
  210    352   
    #[allow(missing_docs)] // documentation missing in model
         353  +
                           /* BuilderGenerator.kt:314 */
  211    354   
    pub fn set_string(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         355  +
        /* BuilderGenerator.kt:315 */
  212    356   
        self.string = input;
  213    357   
        self
         358  +
        /* BuilderGenerator.kt:314 */
  214    359   
    }
         360  +
    /* BuilderGenerator.kt:334 */
  215    361   
    #[allow(missing_docs)] // documentation missing in model
         362  +
                           /* BuilderGenerator.kt:336 */
  216    363   
    pub fn get_string(&self) -> &::std::option::Option<::std::string::String> {
         364  +
        /* BuilderGenerator.kt:337 */
  217    365   
        &self.string
         366  +
        /* BuilderGenerator.kt:336 */
  218    367   
    }
         368  +
    /* BuilderGenerator.kt:286 */
  219    369   
    #[allow(missing_docs)] // documentation missing in model
         370  +
                           /* BuilderGenerator.kt:291 */
  220    371   
    pub fn byte(mut self, input: i8) -> Self {
         372  +
        /* BuilderGenerator.kt:292 */
  221    373   
        self.byte = ::std::option::Option::Some(input);
         374  +
        /* BuilderGenerator.kt:293 */
  222    375   
        self
         376  +
        /* BuilderGenerator.kt:291 */
  223    377   
    }
         378  +
    /* BuilderGenerator.kt:312 */
  224    379   
    #[allow(missing_docs)] // documentation missing in model
         380  +
                           /* BuilderGenerator.kt:314 */
  225    381   
    pub fn set_byte(mut self, input: ::std::option::Option<i8>) -> Self {
         382  +
        /* BuilderGenerator.kt:315 */
  226    383   
        self.byte = input;
  227    384   
        self
         385  +
        /* BuilderGenerator.kt:314 */
  228    386   
    }
         387  +
    /* BuilderGenerator.kt:334 */
  229    388   
    #[allow(missing_docs)] // documentation missing in model
         389  +
                           /* BuilderGenerator.kt:336 */
  230    390   
    pub fn get_byte(&self) -> &::std::option::Option<i8> {
         391  +
        /* BuilderGenerator.kt:337 */
  231    392   
        &self.byte
         393  +
        /* BuilderGenerator.kt:336 */
  232    394   
    }
         395  +
    /* BuilderGenerator.kt:286 */
  233    396   
    #[allow(missing_docs)] // documentation missing in model
         397  +
                           /* BuilderGenerator.kt:291 */
  234    398   
    pub fn short(mut self, input: i16) -> Self {
         399  +
        /* BuilderGenerator.kt:292 */
  235    400   
        self.short = ::std::option::Option::Some(input);
         401  +
        /* BuilderGenerator.kt:293 */
  236    402   
        self
         403  +
        /* BuilderGenerator.kt:291 */
  237    404   
    }
         405  +
    /* BuilderGenerator.kt:312 */
  238    406   
    #[allow(missing_docs)] // documentation missing in model
         407  +
                           /* BuilderGenerator.kt:314 */
  239    408   
    pub fn set_short(mut self, input: ::std::option::Option<i16>) -> Self {
         409  +
        /* BuilderGenerator.kt:315 */
  240    410   
        self.short = input;
  241    411   
        self
         412  +
        /* BuilderGenerator.kt:314 */
  242    413   
    }
         414  +
    /* BuilderGenerator.kt:334 */
  243    415   
    #[allow(missing_docs)] // documentation missing in model
         416  +
                           /* BuilderGenerator.kt:336 */
  244    417   
    pub fn get_short(&self) -> &::std::option::Option<i16> {
         418  +
        /* BuilderGenerator.kt:337 */
  245    419   
        &self.short
         420  +
        /* BuilderGenerator.kt:336 */
  246    421   
    }
         422  +
    /* BuilderGenerator.kt:286 */
  247    423   
    #[allow(missing_docs)] // documentation missing in model
         424  +
                           /* BuilderGenerator.kt:291 */
  248    425   
    pub fn integer(mut self, input: i32) -> Self {
         426  +
        /* BuilderGenerator.kt:292 */
  249    427   
        self.integer = ::std::option::Option::Some(input);
         428  +
        /* BuilderGenerator.kt:293 */
  250    429   
        self
         430  +
        /* BuilderGenerator.kt:291 */
  251    431   
    }
         432  +
    /* BuilderGenerator.kt:312 */
  252    433   
    #[allow(missing_docs)] // documentation missing in model
         434  +
                           /* BuilderGenerator.kt:314 */
  253    435   
    pub fn set_integer(mut self, input: ::std::option::Option<i32>) -> Self {
         436  +
        /* BuilderGenerator.kt:315 */
  254    437   
        self.integer = input;
  255    438   
        self
         439  +
        /* BuilderGenerator.kt:314 */
  256    440   
    }
         441  +
    /* BuilderGenerator.kt:334 */
  257    442   
    #[allow(missing_docs)] // documentation missing in model
         443  +
                           /* BuilderGenerator.kt:336 */
  258    444   
    pub fn get_integer(&self) -> &::std::option::Option<i32> {
         445  +
        /* BuilderGenerator.kt:337 */
  259    446   
        &self.integer
         447  +
        /* BuilderGenerator.kt:336 */
  260    448   
    }
         449  +
    /* BuilderGenerator.kt:286 */
  261    450   
    #[allow(missing_docs)] // documentation missing in model
         451  +
                           /* BuilderGenerator.kt:291 */
  262    452   
    pub fn long(mut self, input: i64) -> Self {
         453  +
        /* BuilderGenerator.kt:292 */
  263    454   
        self.long = ::std::option::Option::Some(input);
         455  +
        /* BuilderGenerator.kt:293 */
  264    456   
        self
         457  +
        /* BuilderGenerator.kt:291 */
  265    458   
    }
         459  +
    /* BuilderGenerator.kt:312 */
  266    460   
    #[allow(missing_docs)] // documentation missing in model
         461  +
                           /* BuilderGenerator.kt:314 */
  267    462   
    pub fn set_long(mut self, input: ::std::option::Option<i64>) -> Self {
         463  +
        /* BuilderGenerator.kt:315 */
  268    464   
        self.long = input;
  269    465   
        self
         466  +
        /* BuilderGenerator.kt:314 */
  270    467   
    }
         468  +
    /* BuilderGenerator.kt:334 */
  271    469   
    #[allow(missing_docs)] // documentation missing in model
         470  +
                           /* BuilderGenerator.kt:336 */
  272    471   
    pub fn get_long(&self) -> &::std::option::Option<i64> {
         472  +
        /* BuilderGenerator.kt:337 */
  273    473   
        &self.long
         474  +
        /* BuilderGenerator.kt:336 */
  274    475   
    }
         476  +
    /* BuilderGenerator.kt:286 */
  275    477   
    #[allow(missing_docs)] // documentation missing in model
         478  +
                           /* BuilderGenerator.kt:291 */
  276    479   
    pub fn float(mut self, input: f32) -> Self {
         480  +
        /* BuilderGenerator.kt:292 */
  277    481   
        self.float = ::std::option::Option::Some(input);
         482  +
        /* BuilderGenerator.kt:293 */
  278    483   
        self
         484  +
        /* BuilderGenerator.kt:291 */
  279    485   
    }
         486  +
    /* BuilderGenerator.kt:312 */
  280    487   
    #[allow(missing_docs)] // documentation missing in model
         488  +
                           /* BuilderGenerator.kt:314 */
  281    489   
    pub fn set_float(mut self, input: ::std::option::Option<f32>) -> Self {
         490  +
        /* BuilderGenerator.kt:315 */
  282    491   
        self.float = input;
  283    492   
        self
         493  +
        /* BuilderGenerator.kt:314 */
  284    494   
    }
         495  +
    /* BuilderGenerator.kt:334 */
  285    496   
    #[allow(missing_docs)] // documentation missing in model
         497  +
                           /* BuilderGenerator.kt:336 */
  286    498   
    pub fn get_float(&self) -> &::std::option::Option<f32> {
         499  +
        /* BuilderGenerator.kt:337 */
  287    500   
        &self.float
         501  +
        /* BuilderGenerator.kt:336 */
  288    502   
    }
         503  +
    /* BuilderGenerator.kt:286 */
  289    504   
    #[allow(missing_docs)] // documentation missing in model
         505  +
                           /* BuilderGenerator.kt:291 */
  290    506   
    pub fn double(mut self, input: f64) -> Self {
         507  +
        /* BuilderGenerator.kt:292 */
  291    508   
        self.double = ::std::option::Option::Some(input);
         509  +
        /* BuilderGenerator.kt:293 */
  292    510   
        self
         511  +
        /* BuilderGenerator.kt:291 */
  293    512   
    }
         513  +
    /* BuilderGenerator.kt:312 */
  294    514   
    #[allow(missing_docs)] // documentation missing in model
         515  +
                           /* BuilderGenerator.kt:314 */
  295    516   
    pub fn set_double(mut self, input: ::std::option::Option<f64>) -> Self {
         517  +
        /* BuilderGenerator.kt:315 */
  296    518   
        self.double = input;
  297    519   
        self
         520  +
        /* BuilderGenerator.kt:314 */
  298    521   
    }
         522  +
    /* BuilderGenerator.kt:334 */
  299    523   
    #[allow(missing_docs)] // documentation missing in model
         524  +
                           /* BuilderGenerator.kt:336 */
  300    525   
    pub fn get_double(&self) -> &::std::option::Option<f64> {
         526  +
        /* BuilderGenerator.kt:337 */
  301    527   
        &self.double
         528  +
        /* BuilderGenerator.kt:336 */
  302    529   
    }
         530  +
    /* BuilderGenerator.kt:286 */
  303    531   
    #[allow(missing_docs)] // documentation missing in model
         532  +
                           /* BuilderGenerator.kt:291 */
  304    533   
    pub fn timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
         534  +
        /* BuilderGenerator.kt:292 */
  305    535   
        self.timestamp = ::std::option::Option::Some(input);
         536  +
        /* BuilderGenerator.kt:293 */
  306    537   
        self
         538  +
        /* BuilderGenerator.kt:291 */
  307    539   
    }
         540  +
    /* BuilderGenerator.kt:312 */
  308    541   
    #[allow(missing_docs)] // documentation missing in model
         542  +
                           /* BuilderGenerator.kt:314 */
  309    543   
    pub fn set_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
         544  +
        /* BuilderGenerator.kt:315 */
  310    545   
        self.timestamp = input;
  311    546   
        self
         547  +
        /* BuilderGenerator.kt:314 */
  312    548   
    }
         549  +
    /* BuilderGenerator.kt:334 */
  313    550   
    #[allow(missing_docs)] // documentation missing in model
         551  +
                           /* BuilderGenerator.kt:336 */
  314    552   
    pub fn get_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
         553  +
        /* BuilderGenerator.kt:337 */
  315    554   
        &self.timestamp
         555  +
        /* BuilderGenerator.kt:336 */
  316    556   
    }
         557  +
    /* BuilderGenerator.kt:286 */
  317    558   
    #[allow(missing_docs)] // documentation missing in model
         559  +
                           /* BuilderGenerator.kt:291 */
  318    560   
    pub fn r#enum(mut self, input: crate::types::Suit) -> Self {
         561  +
        /* BuilderGenerator.kt:292 */
  319    562   
        self.r#enum = ::std::option::Option::Some(input);
         563  +
        /* BuilderGenerator.kt:293 */
  320    564   
        self
         565  +
        /* BuilderGenerator.kt:291 */
  321    566   
    }
         567  +
    /* BuilderGenerator.kt:312 */
  322    568   
    #[allow(missing_docs)] // documentation missing in model
         569  +
                           /* BuilderGenerator.kt:314 */
  323    570   
    pub fn set_enum(mut self, input: ::std::option::Option<crate::types::Suit>) -> Self {
         571  +
        /* BuilderGenerator.kt:315 */
  324    572   
        self.r#enum = input;
  325    573   
        self
         574  +
        /* BuilderGenerator.kt:314 */
  326    575   
    }
         576  +
    /* BuilderGenerator.kt:334 */
  327    577   
    #[allow(missing_docs)] // documentation missing in model
         578  +
                           /* BuilderGenerator.kt:336 */
  328    579   
    pub fn get_enum(&self) -> &::std::option::Option<crate::types::Suit> {
         580  +
        /* BuilderGenerator.kt:337 */
  329    581   
        &self.r#enum
         582  +
        /* BuilderGenerator.kt:336 */
  330    583   
    }
         584  +
    /* BuilderGenerator.kt:286 */
  331    585   
    #[allow(missing_docs)] // documentation missing in model
  332         -
    /// This field is required.
         586  +
    /// /* BuilderGenerator.kt:288 */This field is required.
         587  +
    /* BuilderGenerator.kt:291 */
  333    588   
    pub fn required_blob(mut self, input: ::aws_smithy_types::Blob) -> Self {
         589  +
        /* BuilderGenerator.kt:292 */
  334    590   
        self.required_blob = ::std::option::Option::Some(input);
         591  +
        /* BuilderGenerator.kt:293 */
  335    592   
        self
         593  +
        /* BuilderGenerator.kt:291 */
  336    594   
    }
         595  +
    /* BuilderGenerator.kt:312 */
  337    596   
    #[allow(missing_docs)] // documentation missing in model
         597  +
                           /* BuilderGenerator.kt:314 */
  338    598   
    pub fn set_required_blob(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
         599  +
        /* BuilderGenerator.kt:315 */
  339    600   
        self.required_blob = input;
  340    601   
        self
         602  +
        /* BuilderGenerator.kt:314 */
  341    603   
    }
         604  +
    /* BuilderGenerator.kt:334 */
  342    605   
    #[allow(missing_docs)] // documentation missing in model
         606  +
                           /* BuilderGenerator.kt:336 */
  343    607   
    pub fn get_required_blob(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
         608  +
        /* BuilderGenerator.kt:337 */
  344    609   
        &self.required_blob
         610  +
        /* BuilderGenerator.kt:336 */
  345    611   
    }
         612  +
    /* BuilderGenerator.kt:286 */
  346    613   
    #[allow(missing_docs)] // documentation missing in model
  347         -
    /// This field is required.
         614  +
    /// /* BuilderGenerator.kt:288 */This field is required.
         615  +
    /* BuilderGenerator.kt:291 */
  348    616   
    pub fn required_boolean(mut self, input: bool) -> Self {
         617  +
        /* BuilderGenerator.kt:292 */
  349    618   
        self.required_boolean = ::std::option::Option::Some(input);
         619  +
        /* BuilderGenerator.kt:293 */
  350    620   
        self
         621  +
        /* BuilderGenerator.kt:291 */
  351    622   
    }
         623  +
    /* BuilderGenerator.kt:312 */
  352    624   
    #[allow(missing_docs)] // documentation missing in model
         625  +
                           /* BuilderGenerator.kt:314 */
  353    626   
    pub fn set_required_boolean(mut self, input: ::std::option::Option<bool>) -> Self {
         627  +
        /* BuilderGenerator.kt:315 */
  354    628   
        self.required_boolean = input;
  355    629   
        self
         630  +
        /* BuilderGenerator.kt:314 */
  356    631   
    }
         632  +
    /* BuilderGenerator.kt:334 */
  357    633   
    #[allow(missing_docs)] // documentation missing in model
         634  +
                           /* BuilderGenerator.kt:336 */
  358    635   
    pub fn get_required_boolean(&self) -> &::std::option::Option<bool> {
         636  +
        /* BuilderGenerator.kt:337 */
  359    637   
        &self.required_boolean
         638  +
        /* BuilderGenerator.kt:336 */
  360    639   
    }
         640  +
    /* BuilderGenerator.kt:286 */
  361    641   
    #[allow(missing_docs)] // documentation missing in model
  362         -
    /// This field is required.
         642  +
    /// /* BuilderGenerator.kt:288 */This field is required.
         643  +
    /* BuilderGenerator.kt:291 */
  363    644   
    pub fn required_string(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         645  +
        /* BuilderGenerator.kt:292 */
  364    646   
        self.required_string = ::std::option::Option::Some(input.into());
         647  +
        /* BuilderGenerator.kt:293 */
  365    648   
        self
         649  +
        /* BuilderGenerator.kt:291 */
  366    650   
    }
         651  +
    /* BuilderGenerator.kt:312 */
  367    652   
    #[allow(missing_docs)] // documentation missing in model
         653  +
                           /* BuilderGenerator.kt:314 */
  368    654   
    pub fn set_required_string(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         655  +
        /* BuilderGenerator.kt:315 */
  369    656   
        self.required_string = input;
  370    657   
        self
         658  +
        /* BuilderGenerator.kt:314 */
  371    659   
    }
         660  +
    /* BuilderGenerator.kt:334 */
  372    661   
    #[allow(missing_docs)] // documentation missing in model
         662  +
                           /* BuilderGenerator.kt:336 */
  373    663   
    pub fn get_required_string(&self) -> &::std::option::Option<::std::string::String> {
         664  +
        /* BuilderGenerator.kt:337 */
  374    665   
        &self.required_string
         666  +
        /* BuilderGenerator.kt:336 */
  375    667   
    }
         668  +
    /* BuilderGenerator.kt:286 */
  376    669   
    #[allow(missing_docs)] // documentation missing in model
  377         -
    /// This field is required.
         670  +
    /// /* BuilderGenerator.kt:288 */This field is required.
         671  +
    /* BuilderGenerator.kt:291 */
  378    672   
    pub fn required_byte(mut self, input: i8) -> Self {
         673  +
        /* BuilderGenerator.kt:292 */
  379    674   
        self.required_byte = ::std::option::Option::Some(input);
         675  +
        /* BuilderGenerator.kt:293 */
  380    676   
        self
         677  +
        /* BuilderGenerator.kt:291 */
  381    678   
    }
         679  +
    /* BuilderGenerator.kt:312 */
  382    680   
    #[allow(missing_docs)] // documentation missing in model
         681  +
                           /* BuilderGenerator.kt:314 */
  383    682   
    pub fn set_required_byte(mut self, input: ::std::option::Option<i8>) -> Self {
         683  +
        /* BuilderGenerator.kt:315 */
  384    684   
        self.required_byte = input;
  385    685   
        self
         686  +
        /* BuilderGenerator.kt:314 */
  386    687   
    }
         688  +
    /* BuilderGenerator.kt:334 */
  387    689   
    #[allow(missing_docs)] // documentation missing in model
         690  +
                           /* BuilderGenerator.kt:336 */
  388    691   
    pub fn get_required_byte(&self) -> &::std::option::Option<i8> {
         692  +
        /* BuilderGenerator.kt:337 */
  389    693   
        &self.required_byte
         694  +
        /* BuilderGenerator.kt:336 */
  390    695   
    }
         696  +
    /* BuilderGenerator.kt:286 */
  391    697   
    #[allow(missing_docs)] // documentation missing in model
  392         -
    /// This field is required.
         698  +
    /// /* BuilderGenerator.kt:288 */This field is required.
         699  +
    /* BuilderGenerator.kt:291 */
  393    700   
    pub fn required_short(mut self, input: i16) -> Self {
         701  +
        /* BuilderGenerator.kt:292 */
  394    702   
        self.required_short = ::std::option::Option::Some(input);
         703  +
        /* BuilderGenerator.kt:293 */
  395    704   
        self
         705  +
        /* BuilderGenerator.kt:291 */
  396    706   
    }
         707  +
    /* BuilderGenerator.kt:312 */
  397    708   
    #[allow(missing_docs)] // documentation missing in model
         709  +
                           /* BuilderGenerator.kt:314 */
  398    710   
    pub fn set_required_short(mut self, input: ::std::option::Option<i16>) -> Self {
         711  +
        /* BuilderGenerator.kt:315 */
  399    712   
        self.required_short = input;
  400    713   
        self
         714  +
        /* BuilderGenerator.kt:314 */
  401    715   
    }
         716  +
    /* BuilderGenerator.kt:334 */
  402    717   
    #[allow(missing_docs)] // documentation missing in model
         718  +
                           /* BuilderGenerator.kt:336 */
  403    719   
    pub fn get_required_short(&self) -> &::std::option::Option<i16> {
         720  +
        /* BuilderGenerator.kt:337 */
  404    721   
        &self.required_short
         722  +
        /* BuilderGenerator.kt:336 */
  405    723   
    }
         724  +
    /* BuilderGenerator.kt:286 */
  406    725   
    #[allow(missing_docs)] // documentation missing in model
  407         -
    /// This field is required.
         726  +
    /// /* BuilderGenerator.kt:288 */This field is required.
         727  +
    /* BuilderGenerator.kt:291 */
  408    728   
    pub fn required_integer(mut self, input: i32) -> Self {
         729  +
        /* BuilderGenerator.kt:292 */
  409    730   
        self.required_integer = ::std::option::Option::Some(input);
         731  +
        /* BuilderGenerator.kt:293 */
  410    732   
        self
         733  +
        /* BuilderGenerator.kt:291 */
  411    734   
    }
         735  +
    /* BuilderGenerator.kt:312 */
  412    736   
    #[allow(missing_docs)] // documentation missing in model
         737  +
                           /* BuilderGenerator.kt:314 */
  413    738   
    pub fn set_required_integer(mut self, input: ::std::option::Option<i32>) -> Self {
         739  +
        /* BuilderGenerator.kt:315 */
  414    740   
        self.required_integer = input;
  415    741   
        self
         742  +
        /* BuilderGenerator.kt:314 */
  416    743   
    }
         744  +
    /* BuilderGenerator.kt:334 */
  417    745   
    #[allow(missing_docs)] // documentation missing in model
         746  +
                           /* BuilderGenerator.kt:336 */
  418    747   
    pub fn get_required_integer(&self) -> &::std::option::Option<i32> {
         748  +
        /* BuilderGenerator.kt:337 */
  419    749   
        &self.required_integer
         750  +
        /* BuilderGenerator.kt:336 */
  420    751   
    }
         752  +
    /* BuilderGenerator.kt:286 */
  421    753   
    #[allow(missing_docs)] // documentation missing in model
  422         -
    /// This field is required.
         754  +
    /// /* BuilderGenerator.kt:288 */This field is required.
         755  +
    /* BuilderGenerator.kt:291 */
  423    756   
    pub fn required_long(mut self, input: i64) -> Self {
         757  +
        /* BuilderGenerator.kt:292 */
  424    758   
        self.required_long = ::std::option::Option::Some(input);
         759  +
        /* BuilderGenerator.kt:293 */
  425    760   
        self
         761  +
        /* BuilderGenerator.kt:291 */
  426    762   
    }
         763  +
    /* BuilderGenerator.kt:312 */
  427    764   
    #[allow(missing_docs)] // documentation missing in model
         765  +
                           /* BuilderGenerator.kt:314 */
  428    766   
    pub fn set_required_long(mut self, input: ::std::option::Option<i64>) -> Self {
         767  +
        /* BuilderGenerator.kt:315 */
  429    768   
        self.required_long = input;
  430    769   
        self
         770  +
        /* BuilderGenerator.kt:314 */
  431    771   
    }
         772  +
    /* BuilderGenerator.kt:334 */
  432    773   
    #[allow(missing_docs)] // documentation missing in model
         774  +
                           /* BuilderGenerator.kt:336 */
  433    775   
    pub fn get_required_long(&self) -> &::std::option::Option<i64> {
         776  +
        /* BuilderGenerator.kt:337 */
  434    777   
        &self.required_long
         778  +
        /* BuilderGenerator.kt:336 */
  435    779   
    }
         780  +
    /* BuilderGenerator.kt:286 */
  436    781   
    #[allow(missing_docs)] // documentation missing in model
  437         -
    /// This field is required.
         782  +
    /// /* BuilderGenerator.kt:288 */This field is required.
         783  +
    /* BuilderGenerator.kt:291 */
  438    784   
    pub fn required_float(mut self, input: f32) -> Self {
         785  +
        /* BuilderGenerator.kt:292 */
  439    786   
        self.required_float = ::std::option::Option::Some(input);
         787  +
        /* BuilderGenerator.kt:293 */
  440    788   
        self
         789  +
        /* BuilderGenerator.kt:291 */
  441    790   
    }
         791  +
    /* BuilderGenerator.kt:312 */
  442    792   
    #[allow(missing_docs)] // documentation missing in model
         793  +
                           /* BuilderGenerator.kt:314 */
  443    794   
    pub fn set_required_float(mut self, input: ::std::option::Option<f32>) -> Self {
         795  +
        /* BuilderGenerator.kt:315 */
  444    796   
        self.required_float = input;
  445    797   
        self
         798  +
        /* BuilderGenerator.kt:314 */
  446    799   
    }
         800  +
    /* BuilderGenerator.kt:334 */
  447    801   
    #[allow(missing_docs)] // documentation missing in model
         802  +
                           /* BuilderGenerator.kt:336 */
  448    803   
    pub fn get_required_float(&self) -> &::std::option::Option<f32> {
         804  +
        /* BuilderGenerator.kt:337 */
  449    805   
        &self.required_float
         806  +
        /* BuilderGenerator.kt:336 */
  450    807   
    }
         808  +
    /* BuilderGenerator.kt:286 */
  451    809   
    #[allow(missing_docs)] // documentation missing in model
  452         -
    /// This field is required.
         810  +
    /// /* BuilderGenerator.kt:288 */This field is required.
         811  +
    /* BuilderGenerator.kt:291 */
  453    812   
    pub fn required_double(mut self, input: f64) -> Self {
         813  +
        /* BuilderGenerator.kt:292 */
  454    814   
        self.required_double = ::std::option::Option::Some(input);
         815  +
        /* BuilderGenerator.kt:293 */
  455    816   
        self
         817  +
        /* BuilderGenerator.kt:291 */
  456    818   
    }
         819  +
    /* BuilderGenerator.kt:312 */
  457    820   
    #[allow(missing_docs)] // documentation missing in model
         821  +
                           /* BuilderGenerator.kt:314 */
  458    822   
    pub fn set_required_double(mut self, input: ::std::option::Option<f64>) -> Self {
         823  +
        /* BuilderGenerator.kt:315 */
  459    824   
        self.required_double = input;
  460    825   
        self
         826  +
        /* BuilderGenerator.kt:314 */
  461    827   
    }
         828  +
    /* BuilderGenerator.kt:334 */
  462    829   
    #[allow(missing_docs)] // documentation missing in model
         830  +
                           /* BuilderGenerator.kt:336 */
  463    831   
    pub fn get_required_double(&self) -> &::std::option::Option<f64> {
         832  +
        /* BuilderGenerator.kt:337 */
  464    833   
        &self.required_double
         834  +
        /* BuilderGenerator.kt:336 */
  465    835   
    }
         836  +
    /* BuilderGenerator.kt:286 */
  466    837   
    #[allow(missing_docs)] // documentation missing in model
  467         -
    /// This field is required.
         838  +
    /// /* BuilderGenerator.kt:288 */This field is required.
         839  +
    /* BuilderGenerator.kt:291 */
  468    840   
    pub fn required_timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
         841  +
        /* BuilderGenerator.kt:292 */
  469    842   
        self.required_timestamp = ::std::option::Option::Some(input);
         843  +
        /* BuilderGenerator.kt:293 */
  470    844   
        self
         845  +
        /* BuilderGenerator.kt:291 */
  471    846   
    }
         847  +
    /* BuilderGenerator.kt:312 */
  472    848   
    #[allow(missing_docs)] // documentation missing in model
         849  +
                           /* BuilderGenerator.kt:314 */
  473    850   
    pub fn set_required_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
         851  +
        /* BuilderGenerator.kt:315 */
  474    852   
        self.required_timestamp = input;
  475    853   
        self
         854  +
        /* BuilderGenerator.kt:314 */
  476    855   
    }
         856  +
    /* BuilderGenerator.kt:334 */
  477    857   
    #[allow(missing_docs)] // documentation missing in model
         858  +
                           /* BuilderGenerator.kt:336 */
  478    859   
    pub fn get_required_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
         860  +
        /* BuilderGenerator.kt:337 */
  479    861   
        &self.required_timestamp
         862  +
        /* BuilderGenerator.kt:336 */
  480    863   
    }
         864  +
    /* BuilderGenerator.kt:286 */
  481    865   
    #[allow(missing_docs)] // documentation missing in model
  482         -
    /// This field is required.
         866  +
    /// /* BuilderGenerator.kt:288 */This field is required.
         867  +
    /* BuilderGenerator.kt:291 */
  483    868   
    pub fn required_enum(mut self, input: crate::types::Suit) -> Self {
         869  +
        /* BuilderGenerator.kt:292 */
  484    870   
        self.required_enum = ::std::option::Option::Some(input);
         871  +
        /* BuilderGenerator.kt:293 */
  485    872   
        self
         873  +
        /* BuilderGenerator.kt:291 */
  486    874   
    }
         875  +
    /* BuilderGenerator.kt:312 */
  487    876   
    #[allow(missing_docs)] // documentation missing in model
         877  +
                           /* BuilderGenerator.kt:314 */
  488    878   
    pub fn set_required_enum(mut self, input: ::std::option::Option<crate::types::Suit>) -> Self {
         879  +
        /* BuilderGenerator.kt:315 */
  489    880   
        self.required_enum = input;
  490    881   
        self
         882  +
        /* BuilderGenerator.kt:314 */
  491    883   
    }
         884  +
    /* BuilderGenerator.kt:334 */
  492    885   
    #[allow(missing_docs)] // documentation missing in model
         886  +
                           /* BuilderGenerator.kt:336 */
  493    887   
    pub fn get_required_enum(&self) -> &::std::option::Option<crate::types::Suit> {
         888  +
        /* BuilderGenerator.kt:337 */
  494    889   
        &self.required_enum
  495         -
    }
  496         -
    /// Consumes the builder and constructs a [`SimpleStruct`](crate::types::SimpleStruct).
  497         -
    /// This method will fail if any of the following fields are not set:
  498         -
    /// - [`required_blob`](crate::types::builders::SimpleStructBuilder::required_blob)
  499         -
    /// - [`required_boolean`](crate::types::builders::SimpleStructBuilder::required_boolean)
  500         -
    /// - [`required_string`](crate::types::builders::SimpleStructBuilder::required_string)
  501         -
    /// - [`required_byte`](crate::types::builders::SimpleStructBuilder::required_byte)
  502         -
    /// - [`required_short`](crate::types::builders::SimpleStructBuilder::required_short)
  503         -
    /// - [`required_integer`](crate::types::builders::SimpleStructBuilder::required_integer)
  504         -
    /// - [`required_long`](crate::types::builders::SimpleStructBuilder::required_long)
  505         -
    /// - [`required_float`](crate::types::builders::SimpleStructBuilder::required_float)
  506         -
    /// - [`required_double`](crate::types::builders::SimpleStructBuilder::required_double)
  507         -
    /// - [`required_timestamp`](crate::types::builders::SimpleStructBuilder::required_timestamp)
  508         -
    /// - [`required_enum`](crate::types::builders::SimpleStructBuilder::required_enum)
         890  +
        /* BuilderGenerator.kt:336 */
         891  +
    }
         892  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`SimpleStruct`](crate::types::SimpleStruct).
         893  +
    /// /* BuilderGenerator.kt:243 */This method will fail if any of the following fields are not set:
         894  +
    /// /* BuilderGenerator.kt:246 */- [`required_blob`](crate::types::builders::SimpleStructBuilder::required_blob)
         895  +
    /// /* BuilderGenerator.kt:246 */- [`required_boolean`](crate::types::builders::SimpleStructBuilder::required_boolean)
         896  +
    /// /* BuilderGenerator.kt:246 */- [`required_string`](crate::types::builders::SimpleStructBuilder::required_string)
         897  +
    /// /* BuilderGenerator.kt:246 */- [`required_byte`](crate::types::builders::SimpleStructBuilder::required_byte)
         898  +
    /// /* BuilderGenerator.kt:246 */- [`required_short`](crate::types::builders::SimpleStructBuilder::required_short)
         899  +
    /// /* BuilderGenerator.kt:246 */- [`required_integer`](crate::types::builders::SimpleStructBuilder::required_integer)
         900  +
    /// /* BuilderGenerator.kt:246 */- [`required_long`](crate::types::builders::SimpleStructBuilder::required_long)
         901  +
    /// /* BuilderGenerator.kt:246 */- [`required_float`](crate::types::builders::SimpleStructBuilder::required_float)
         902  +
    /// /* BuilderGenerator.kt:246 */- [`required_double`](crate::types::builders::SimpleStructBuilder::required_double)
         903  +
    /// /* BuilderGenerator.kt:246 */- [`required_timestamp`](crate::types::builders::SimpleStructBuilder::required_timestamp)
         904  +
    /// /* BuilderGenerator.kt:246 */- [`required_enum`](crate::types::builders::SimpleStructBuilder::required_enum)
         905  +
    /* BuilderGenerator.kt:253 */
  509    906   
    pub fn build(self) -> ::std::result::Result<crate::types::SimpleStruct, ::aws_smithy_types::error::operation::BuildError> {
  510         -
        ::std::result::Result::Ok(crate::types::SimpleStruct {
  511         -
            blob: self.blob,
  512         -
            boolean: self.boolean,
  513         -
            string: self.string,
  514         -
            byte: self.byte,
  515         -
            short: self.short,
  516         -
            integer: self.integer,
  517         -
            long: self.long,
  518         -
            float: self.float,
  519         -
            double: self.double,
  520         -
            timestamp: self.timestamp,
  521         -
            r#enum: self.r#enum,
  522         -
            required_blob: self.required_blob.ok_or_else(|| {
  523         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
  524         -
                    "required_blob",
  525         -
                    "required_blob was not specified but it is required when building SimpleStruct",
  526         -
                )
  527         -
            })?,
  528         -
            required_boolean: self.required_boolean.ok_or_else(|| {
  529         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
  530         -
                    "required_boolean",
  531         -
                    "required_boolean was not specified but it is required when building SimpleStruct",
  532         -
                )
  533         -
            })?,
  534         -
            required_string: self.required_string.ok_or_else(|| {
  535         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
  536         -
                    "required_string",
  537         -
                    "required_string was not specified but it is required when building SimpleStruct",
  538         -
                )
  539         -
            })?,
  540         -
            required_byte: self.required_byte.ok_or_else(|| {
  541         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
  542         -
                    "required_byte",
  543         -
                    "required_byte was not specified but it is required when building SimpleStruct",
  544         -
                )
  545         -
            })?,
  546         -
            required_short: self.required_short.ok_or_else(|| {
  547         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
  548         -
                    "required_short",
  549         -
                    "required_short was not specified but it is required when building SimpleStruct",
  550         -
                )
  551         -
            })?,
  552         -
            required_integer: self.required_integer.ok_or_else(|| {
  553         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
  554         -
                    "required_integer",
  555         -
                    "required_integer was not specified but it is required when building SimpleStruct",
  556         -
                )
  557         -
            })?,
  558         -
            required_long: self.required_long.ok_or_else(|| {
  559         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
  560         -
                    "required_long",
  561         -
                    "required_long was not specified but it is required when building SimpleStruct",
  562         -
                )
  563         -
            })?,
  564         -
            required_float: self.required_float.ok_or_else(|| {
  565         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
  566         -
                    "required_float",
  567         -
                    "required_float was not specified but it is required when building SimpleStruct",
  568         -
                )
  569         -
            })?,
  570         -
            required_double: self.required_double.ok_or_else(|| {
  571         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
  572         -
                    "required_double",
  573         -
                    "required_double was not specified but it is required when building SimpleStruct",
  574         -
                )
  575         -
            })?,
  576         -
            required_timestamp: self.required_timestamp.ok_or_else(|| {
  577         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
  578         -
                    "required_timestamp",
  579         -
                    "required_timestamp was not specified but it is required when building SimpleStruct",
  580         -
                )
  581         -
            })?,
  582         -
            required_enum: self.required_enum.ok_or_else(|| {
  583         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
  584         -
                    "required_enum",
  585         -
                    "required_enum was not specified but it is required when building SimpleStruct",
  586         -
                )
  587         -
            })?,
  588         -
        })
  589         -
    }
         907  +
        /* BuilderGenerator.kt:254 */
         908  +
        ::std::result::Result::Ok(
         909  +
            /* BuilderGenerator.kt:477 */crate::types::SimpleStruct {
         910  +
                /* BuilderGenerator.kt:481 */blob: self.blob
         911  +
                ,
         912  +
                /* BuilderGenerator.kt:481 */boolean: self.boolean
         913  +
                ,
         914  +
                /* BuilderGenerator.kt:481 */string: self.string
         915  +
                ,
         916  +
                /* BuilderGenerator.kt:481 */byte: self.byte
         917  +
                ,
         918  +
                /* BuilderGenerator.kt:481 */short: self.short
         919  +
                ,
         920  +
                /* BuilderGenerator.kt:481 */integer: self.integer
         921  +
                ,
         922  +
                /* BuilderGenerator.kt:481 */long: self.long
         923  +
                ,
         924  +
                /* BuilderGenerator.kt:481 */float: self.float
         925  +
                ,
         926  +
                /* BuilderGenerator.kt:481 */double: self.double
         927  +
                ,
         928  +
                /* BuilderGenerator.kt:481 */timestamp: self.timestamp
         929  +
                ,
         930  +
                /* BuilderGenerator.kt:481 */r#enum: self.r#enum
         931  +
                ,
         932  +
                /* BuilderGenerator.kt:481 */required_blob: self.required_blob
         933  +
                    /* BuilderGenerator.kt:494 */.ok_or_else(||
         934  +
                        /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("required_blob", "required_blob was not specified but it is required when building SimpleStruct")
         935  +
                    /* BuilderGenerator.kt:494 */)?
         936  +
                ,
         937  +
                /* BuilderGenerator.kt:481 */required_boolean: self.required_boolean
         938  +
                    /* BuilderGenerator.kt:494 */.ok_or_else(||
         939  +
                        /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("required_boolean", "required_boolean was not specified but it is required when building SimpleStruct")
         940  +
                    /* BuilderGenerator.kt:494 */)?
         941  +
                ,
         942  +
                /* BuilderGenerator.kt:481 */required_string: self.required_string
         943  +
                    /* BuilderGenerator.kt:494 */.ok_or_else(||
         944  +
                        /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("required_string", "required_string was not specified but it is required when building SimpleStruct")
         945  +
                    /* BuilderGenerator.kt:494 */)?
         946  +
                ,
         947  +
                /* BuilderGenerator.kt:481 */required_byte: self.required_byte
         948  +
                    /* BuilderGenerator.kt:494 */.ok_or_else(||
         949  +
                        /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("required_byte", "required_byte was not specified but it is required when building SimpleStruct")
         950  +
                    /* BuilderGenerator.kt:494 */)?
         951  +
                ,
         952  +
                /* BuilderGenerator.kt:481 */required_short: self.required_short
         953  +
                    /* BuilderGenerator.kt:494 */.ok_or_else(||
         954  +
                        /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("required_short", "required_short was not specified but it is required when building SimpleStruct")
         955  +
                    /* BuilderGenerator.kt:494 */)?
         956  +
                ,
         957  +
                /* BuilderGenerator.kt:481 */required_integer: self.required_integer
         958  +
                    /* BuilderGenerator.kt:494 */.ok_or_else(||
         959  +
                        /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("required_integer", "required_integer was not specified but it is required when building SimpleStruct")
         960  +
                    /* BuilderGenerator.kt:494 */)?
         961  +
                ,
         962  +
                /* BuilderGenerator.kt:481 */required_long: self.required_long
         963  +
                    /* BuilderGenerator.kt:494 */.ok_or_else(||
         964  +
                        /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("required_long", "required_long was not specified but it is required when building SimpleStruct")
         965  +
                    /* BuilderGenerator.kt:494 */)?
         966  +
                ,
         967  +
                /* BuilderGenerator.kt:481 */required_float: self.required_float
         968  +
                    /* BuilderGenerator.kt:494 */.ok_or_else(||
         969  +
                        /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("required_float", "required_float was not specified but it is required when building SimpleStruct")
         970  +
                    /* BuilderGenerator.kt:494 */)?
         971  +
                ,
         972  +
                /* BuilderGenerator.kt:481 */required_double: self.required_double
         973  +
                    /* BuilderGenerator.kt:494 */.ok_or_else(||
         974  +
                        /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("required_double", "required_double was not specified but it is required when building SimpleStruct")
         975  +
                    /* BuilderGenerator.kt:494 */)?
         976  +
                ,
         977  +
                /* BuilderGenerator.kt:481 */required_timestamp: self.required_timestamp
         978  +
                    /* BuilderGenerator.kt:494 */.ok_or_else(||
         979  +
                        /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("required_timestamp", "required_timestamp was not specified but it is required when building SimpleStruct")
         980  +
                    /* BuilderGenerator.kt:494 */)?
         981  +
                ,
         982  +
                /* BuilderGenerator.kt:481 */required_enum: self.required_enum
         983  +
                    /* BuilderGenerator.kt:494 */.ok_or_else(||
         984  +
                        /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("required_enum", "required_enum was not specified but it is required when building SimpleStruct")
         985  +
                    /* BuilderGenerator.kt:494 */)?
         986  +
                ,
         987  +
            /* BuilderGenerator.kt:477 */}
         988  +
        /* BuilderGenerator.kt:254 */)
         989  +
        /* BuilderGenerator.kt:253 */
         990  +
    }
         991  +
    /* BuilderGenerator.kt:355 */
  590    992   
}