Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943

Files changed:

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/omits_serializing_empty_lists/_omits_serializing_empty_lists_input.rs

@@ -1,1 +235,413 @@
    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 OmitsSerializingEmptyListsInput {
           8  +
pub /* StructureGenerator.kt:201 */ struct OmitsSerializingEmptyListsInput {
           9  +
    /* StructureGenerator.kt:231 */
    6     10   
    #[allow(missing_docs)] // documentation missing in model
    7     11   
    pub query_string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
          12  +
    /* StructureGenerator.kt:231 */
    8     13   
    #[allow(missing_docs)] // documentation missing in model
    9     14   
    pub query_integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
          15  +
    /* StructureGenerator.kt:231 */
   10     16   
    #[allow(missing_docs)] // documentation missing in model
   11     17   
    pub query_double_list: ::std::option::Option<::std::vec::Vec<f64>>,
          18  +
    /* StructureGenerator.kt:231 */
   12     19   
    #[allow(missing_docs)] // documentation missing in model
   13     20   
    pub query_boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
          21  +
    /* StructureGenerator.kt:231 */
   14     22   
    #[allow(missing_docs)] // documentation missing in model
   15     23   
    pub query_timestamp_list: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>,
          24  +
    /* StructureGenerator.kt:231 */
   16     25   
    #[allow(missing_docs)] // documentation missing in model
   17     26   
    pub query_enum_list: ::std::option::Option<::std::vec::Vec<crate::types::FooEnum>>,
          27  +
    /* StructureGenerator.kt:231 */
   18     28   
    #[allow(missing_docs)] // documentation missing in model
   19     29   
    pub query_integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
          30  +
    /* StructureGenerator.kt:201 */
   20     31   
}
          32  +
/* StructureGenerator.kt:135 */
   21     33   
impl OmitsSerializingEmptyListsInput {
          34  +
    /* StructureGenerator.kt:231 */
   22     35   
    #[allow(missing_docs)] // documentation missing in model
   23         -
    ///
   24         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.query_string_list.is_none()`.
          36  +
    /// /* StructureGenerator.kt:162 */
          37  +
    /// /* 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 `.query_string_list.is_none()`.
          38  +
    /* StructureGenerator.kt:166 */
   25     39   
    pub fn query_string_list(&self) -> &[::std::string::String] {
   26         -
        self.query_string_list.as_deref().unwrap_or_default()
          40  +
        /* StructureGenerator.kt:169 */
          41  +
        self.query_string_list
          42  +
            .as_deref()
          43  +
            /* StructureGenerator.kt:175 */
          44  +
            .unwrap_or_default()
          45  +
        /* StructureGenerator.kt:166 */
   27     46   
    }
          47  +
    /* StructureGenerator.kt:231 */
   28     48   
    #[allow(missing_docs)] // documentation missing in model
   29         -
    ///
   30         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.query_integer_list.is_none()`.
          49  +
    /// /* StructureGenerator.kt:162 */
          50  +
    /// /* 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 `.query_integer_list.is_none()`.
          51  +
    /* StructureGenerator.kt:166 */
   31     52   
    pub fn query_integer_list(&self) -> &[i32] {
   32         -
        self.query_integer_list.as_deref().unwrap_or_default()
          53  +
        /* StructureGenerator.kt:169 */
          54  +
        self.query_integer_list
          55  +
            .as_deref()
          56  +
            /* StructureGenerator.kt:175 */
          57  +
            .unwrap_or_default()
          58  +
        /* StructureGenerator.kt:166 */
   33     59   
    }
          60  +
    /* StructureGenerator.kt:231 */
   34     61   
    #[allow(missing_docs)] // documentation missing in model
   35         -
    ///
   36         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.query_double_list.is_none()`.
          62  +
    /// /* StructureGenerator.kt:162 */
          63  +
    /// /* 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 `.query_double_list.is_none()`.
          64  +
    /* StructureGenerator.kt:166 */
   37     65   
    pub fn query_double_list(&self) -> &[f64] {
   38         -
        self.query_double_list.as_deref().unwrap_or_default()
          66  +
        /* StructureGenerator.kt:169 */
          67  +
        self.query_double_list
          68  +
            .as_deref()
          69  +
            /* StructureGenerator.kt:175 */
          70  +
            .unwrap_or_default()
          71  +
        /* StructureGenerator.kt:166 */
   39     72   
    }
          73  +
    /* StructureGenerator.kt:231 */
   40     74   
    #[allow(missing_docs)] // documentation missing in model
   41         -
    ///
   42         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.query_boolean_list.is_none()`.
          75  +
    /// /* StructureGenerator.kt:162 */
          76  +
    /// /* 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 `.query_boolean_list.is_none()`.
          77  +
    /* StructureGenerator.kt:166 */
   43     78   
    pub fn query_boolean_list(&self) -> &[bool] {
   44         -
        self.query_boolean_list.as_deref().unwrap_or_default()
          79  +
        /* StructureGenerator.kt:169 */
          80  +
        self.query_boolean_list
          81  +
            .as_deref()
          82  +
            /* StructureGenerator.kt:175 */
          83  +
            .unwrap_or_default()
          84  +
        /* StructureGenerator.kt:166 */
   45     85   
    }
          86  +
    /* StructureGenerator.kt:231 */
   46     87   
    #[allow(missing_docs)] // documentation missing in model
   47         -
    ///
   48         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.query_timestamp_list.is_none()`.
          88  +
    /// /* StructureGenerator.kt:162 */
          89  +
    /// /* 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 `.query_timestamp_list.is_none()`.
          90  +
    /* StructureGenerator.kt:166 */
   49     91   
    pub fn query_timestamp_list(&self) -> &[::aws_smithy_types::DateTime] {
   50         -
        self.query_timestamp_list.as_deref().unwrap_or_default()
          92  +
        /* StructureGenerator.kt:169 */
          93  +
        self.query_timestamp_list
          94  +
            .as_deref()
          95  +
            /* StructureGenerator.kt:175 */
          96  +
            .unwrap_or_default()
          97  +
        /* StructureGenerator.kt:166 */
   51     98   
    }
          99  +
    /* StructureGenerator.kt:231 */
   52    100   
    #[allow(missing_docs)] // documentation missing in model
   53         -
    ///
   54         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.query_enum_list.is_none()`.
         101  +
    /// /* StructureGenerator.kt:162 */
         102  +
    /// /* 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 `.query_enum_list.is_none()`.
         103  +
    /* StructureGenerator.kt:166 */
   55    104   
    pub fn query_enum_list(&self) -> &[crate::types::FooEnum] {
   56         -
        self.query_enum_list.as_deref().unwrap_or_default()
         105  +
        /* StructureGenerator.kt:169 */
         106  +
        self.query_enum_list
         107  +
            .as_deref()
         108  +
            /* StructureGenerator.kt:175 */
         109  +
            .unwrap_or_default()
         110  +
        /* StructureGenerator.kt:166 */
   57    111   
    }
         112  +
    /* StructureGenerator.kt:231 */
   58    113   
    #[allow(missing_docs)] // documentation missing in model
   59         -
    ///
   60         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.query_integer_enum_list.is_none()`.
         114  +
    /// /* StructureGenerator.kt:162 */
         115  +
    /// /* 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 `.query_integer_enum_list.is_none()`.
         116  +
    /* StructureGenerator.kt:166 */
   61    117   
    pub fn query_integer_enum_list(&self) -> &[i32] {
   62         -
        self.query_integer_enum_list.as_deref().unwrap_or_default()
         118  +
        /* StructureGenerator.kt:169 */
         119  +
        self.query_integer_enum_list
         120  +
            .as_deref()
         121  +
            /* StructureGenerator.kt:175 */
         122  +
            .unwrap_or_default()
         123  +
        /* StructureGenerator.kt:166 */
   63    124   
    }
         125  +
    /* StructureGenerator.kt:135 */
   64    126   
}
         127  +
/* ClientCodegenVisitor.kt:237 */
   65    128   
impl OmitsSerializingEmptyListsInput {
   66         -
    /// Creates a new builder-style object to manufacture [`OmitsSerializingEmptyListsInput`](crate::operation::omits_serializing_empty_lists::OmitsSerializingEmptyListsInput).
         129  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`OmitsSerializingEmptyListsInput`](crate::operation::omits_serializing_empty_lists::OmitsSerializingEmptyListsInput).
         130  +
    /* BuilderGenerator.kt:175 */
   67    131   
    pub fn builder() -> crate::operation::omits_serializing_empty_lists::builders::OmitsSerializingEmptyListsInputBuilder {
         132  +
        /* BuilderGenerator.kt:176 */
   68    133   
        crate::operation::omits_serializing_empty_lists::builders::OmitsSerializingEmptyListsInputBuilder::default()
         134  +
        /* BuilderGenerator.kt:175 */
   69    135   
    }
         136  +
    /* ClientCodegenVisitor.kt:237 */
   70    137   
}
   71    138   
   72         -
/// A builder for [`OmitsSerializingEmptyListsInput`](crate::operation::omits_serializing_empty_lists::OmitsSerializingEmptyListsInput).
         139  +
/// /* BuilderGenerator.kt:342 */A builder for [`OmitsSerializingEmptyListsInput`](crate::operation::omits_serializing_empty_lists::OmitsSerializingEmptyListsInput).
         140  +
/* RustType.kt:516 */
   73    141   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         142  +
/* RustType.kt:516 */
   74    143   
#[non_exhaustive]
         144  +
/* BuilderGenerator.kt:345 */
   75    145   
pub struct OmitsSerializingEmptyListsInputBuilder {
   76         -
    pub(crate) query_string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
   77         -
    pub(crate) query_integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
   78         -
    pub(crate) query_double_list: ::std::option::Option<::std::vec::Vec<f64>>,
   79         -
    pub(crate) query_boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
   80         -
    pub(crate) query_timestamp_list: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>,
   81         -
    pub(crate) query_enum_list: ::std::option::Option<::std::vec::Vec<crate::types::FooEnum>>,
         146  +
    /* BuilderGenerator.kt:275 */ pub(crate) query_string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
         147  +
    /* BuilderGenerator.kt:275 */ pub(crate) query_integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
         148  +
    /* BuilderGenerator.kt:275 */ pub(crate) query_double_list: ::std::option::Option<::std::vec::Vec<f64>>,
         149  +
    /* BuilderGenerator.kt:275 */ pub(crate) query_boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
         150  +
    /* BuilderGenerator.kt:275 */ pub(crate) query_timestamp_list: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>,
         151  +
    /* BuilderGenerator.kt:275 */ pub(crate) query_enum_list: ::std::option::Option<::std::vec::Vec<crate::types::FooEnum>>,
         152  +
    /* BuilderGenerator.kt:275 */
   82    153   
    pub(crate) query_integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
         154  +
    /* BuilderGenerator.kt:345 */
   83    155   
}
         156  +
/* BuilderGenerator.kt:355 */
   84    157   
impl OmitsSerializingEmptyListsInputBuilder {
   85         -
    /// Appends an item to `query_string_list`.
         158  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `query_string_list`.
         159  +
    /* BuilderGenerator.kt:411 */
   86    160   
    ///
   87         -
    /// To override the contents of this collection use [`set_query_string_list`](Self::set_query_string_list).
         161  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_query_string_list`](Self::set_query_string_list).
         162  +
    /* BuilderGenerator.kt:413 */
   88    163   
    ///
         164  +
    /* BuilderGenerator.kt:418 */
   89    165   
    pub fn query_string_list(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         166  +
        /* BuilderGenerator.kt:419 */
   90    167   
        let mut v = self.query_string_list.unwrap_or_default();
   91    168   
        v.push(input.into());
   92    169   
        self.query_string_list = ::std::option::Option::Some(v);
   93    170   
        self
         171  +
        /* BuilderGenerator.kt:418 */
   94    172   
    }
         173  +
    /* BuilderGenerator.kt:312 */
   95    174   
    #[allow(missing_docs)] // documentation missing in model
         175  +
                           /* BuilderGenerator.kt:314 */
   96    176   
    pub fn set_query_string_list(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
         177  +
        /* BuilderGenerator.kt:315 */
   97    178   
        self.query_string_list = input;
   98    179   
        self
         180  +
        /* BuilderGenerator.kt:314 */
   99    181   
    }
         182  +
    /* BuilderGenerator.kt:334 */
  100    183   
    #[allow(missing_docs)] // documentation missing in model
         184  +
                           /* BuilderGenerator.kt:336 */
  101    185   
    pub fn get_query_string_list(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
         186  +
        /* BuilderGenerator.kt:337 */
  102    187   
        &self.query_string_list
         188  +
        /* BuilderGenerator.kt:336 */
  103    189   
    }
  104         -
    /// Appends an item to `query_integer_list`.
         190  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `query_integer_list`.
         191  +
    /* BuilderGenerator.kt:411 */
  105    192   
    ///
  106         -
    /// To override the contents of this collection use [`set_query_integer_list`](Self::set_query_integer_list).
         193  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_query_integer_list`](Self::set_query_integer_list).
         194  +
    /* BuilderGenerator.kt:413 */
  107    195   
    ///
         196  +
    /* BuilderGenerator.kt:418 */
  108    197   
    pub fn query_integer_list(mut self, input: i32) -> Self {
         198  +
        /* BuilderGenerator.kt:419 */
  109    199   
        let mut v = self.query_integer_list.unwrap_or_default();
  110    200   
        v.push(input);
  111    201   
        self.query_integer_list = ::std::option::Option::Some(v);
  112    202   
        self
         203  +
        /* BuilderGenerator.kt:418 */
  113    204   
    }
         205  +
    /* BuilderGenerator.kt:312 */
  114    206   
    #[allow(missing_docs)] // documentation missing in model
         207  +
                           /* BuilderGenerator.kt:314 */
  115    208   
    pub fn set_query_integer_list(mut self, input: ::std::option::Option<::std::vec::Vec<i32>>) -> Self {
         209  +
        /* BuilderGenerator.kt:315 */
  116    210   
        self.query_integer_list = input;
  117    211   
        self
         212  +
        /* BuilderGenerator.kt:314 */
  118    213   
    }
         214  +
    /* BuilderGenerator.kt:334 */
  119    215   
    #[allow(missing_docs)] // documentation missing in model
         216  +
                           /* BuilderGenerator.kt:336 */
  120    217   
    pub fn get_query_integer_list(&self) -> &::std::option::Option<::std::vec::Vec<i32>> {
         218  +
        /* BuilderGenerator.kt:337 */
  121    219   
        &self.query_integer_list
         220  +
        /* BuilderGenerator.kt:336 */
  122    221   
    }
  123         -
    /// Appends an item to `query_double_list`.
         222  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `query_double_list`.
         223  +
    /* BuilderGenerator.kt:411 */
  124    224   
    ///
  125         -
    /// To override the contents of this collection use [`set_query_double_list`](Self::set_query_double_list).
         225  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_query_double_list`](Self::set_query_double_list).
         226  +
    /* BuilderGenerator.kt:413 */
  126    227   
    ///
         228  +
    /* BuilderGenerator.kt:418 */
  127    229   
    pub fn query_double_list(mut self, input: f64) -> Self {
         230  +
        /* BuilderGenerator.kt:419 */
  128    231   
        let mut v = self.query_double_list.unwrap_or_default();
  129    232   
        v.push(input);
  130    233   
        self.query_double_list = ::std::option::Option::Some(v);
  131    234   
        self
         235  +
        /* BuilderGenerator.kt:418 */
  132    236   
    }
         237  +
    /* BuilderGenerator.kt:312 */
  133    238   
    #[allow(missing_docs)] // documentation missing in model
         239  +
                           /* BuilderGenerator.kt:314 */
  134    240   
    pub fn set_query_double_list(mut self, input: ::std::option::Option<::std::vec::Vec<f64>>) -> Self {
         241  +
        /* BuilderGenerator.kt:315 */
  135    242   
        self.query_double_list = input;
  136    243   
        self
         244  +
        /* BuilderGenerator.kt:314 */
  137    245   
    }
         246  +
    /* BuilderGenerator.kt:334 */
  138    247   
    #[allow(missing_docs)] // documentation missing in model
         248  +
                           /* BuilderGenerator.kt:336 */
  139    249   
    pub fn get_query_double_list(&self) -> &::std::option::Option<::std::vec::Vec<f64>> {
         250  +
        /* BuilderGenerator.kt:337 */
  140    251   
        &self.query_double_list
         252  +
        /* BuilderGenerator.kt:336 */
  141    253   
    }
  142         -
    /// Appends an item to `query_boolean_list`.
         254  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `query_boolean_list`.
         255  +
    /* BuilderGenerator.kt:411 */
  143    256   
    ///
  144         -
    /// To override the contents of this collection use [`set_query_boolean_list`](Self::set_query_boolean_list).
         257  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_query_boolean_list`](Self::set_query_boolean_list).
         258  +
    /* BuilderGenerator.kt:413 */
  145    259   
    ///
         260  +
    /* BuilderGenerator.kt:418 */
  146    261   
    pub fn query_boolean_list(mut self, input: bool) -> Self {
         262  +
        /* BuilderGenerator.kt:419 */
  147    263   
        let mut v = self.query_boolean_list.unwrap_or_default();
  148    264   
        v.push(input);
  149    265   
        self.query_boolean_list = ::std::option::Option::Some(v);
  150    266   
        self
         267  +
        /* BuilderGenerator.kt:418 */
  151    268   
    }
         269  +
    /* BuilderGenerator.kt:312 */
  152    270   
    #[allow(missing_docs)] // documentation missing in model
         271  +
                           /* BuilderGenerator.kt:314 */
  153    272   
    pub fn set_query_boolean_list(mut self, input: ::std::option::Option<::std::vec::Vec<bool>>) -> Self {
         273  +
        /* BuilderGenerator.kt:315 */
  154    274   
        self.query_boolean_list = input;
  155    275   
        self
         276  +
        /* BuilderGenerator.kt:314 */
  156    277   
    }
         278  +
    /* BuilderGenerator.kt:334 */
  157    279   
    #[allow(missing_docs)] // documentation missing in model
         280  +
                           /* BuilderGenerator.kt:336 */
  158    281   
    pub fn get_query_boolean_list(&self) -> &::std::option::Option<::std::vec::Vec<bool>> {
         282  +
        /* BuilderGenerator.kt:337 */
  159    283   
        &self.query_boolean_list
         284  +
        /* BuilderGenerator.kt:336 */
  160    285   
    }
  161         -
    /// Appends an item to `query_timestamp_list`.
         286  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `query_timestamp_list`.
         287  +
    /* BuilderGenerator.kt:411 */
  162    288   
    ///
  163         -
    /// To override the contents of this collection use [`set_query_timestamp_list`](Self::set_query_timestamp_list).
         289  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_query_timestamp_list`](Self::set_query_timestamp_list).
         290  +
    /* BuilderGenerator.kt:413 */
  164    291   
    ///
         292  +
    /* BuilderGenerator.kt:418 */
  165    293   
    pub fn query_timestamp_list(mut self, input: ::aws_smithy_types::DateTime) -> Self {
         294  +
        /* BuilderGenerator.kt:419 */
  166    295   
        let mut v = self.query_timestamp_list.unwrap_or_default();
  167    296   
        v.push(input);
  168    297   
        self.query_timestamp_list = ::std::option::Option::Some(v);
  169    298   
        self
         299  +
        /* BuilderGenerator.kt:418 */
  170    300   
    }
         301  +
    /* BuilderGenerator.kt:312 */
  171    302   
    #[allow(missing_docs)] // documentation missing in model
         303  +
                           /* BuilderGenerator.kt:314 */
  172    304   
    pub fn set_query_timestamp_list(mut self, input: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>) -> Self {
         305  +
        /* BuilderGenerator.kt:315 */
  173    306   
        self.query_timestamp_list = input;
  174    307   
        self
         308  +
        /* BuilderGenerator.kt:314 */
  175    309   
    }
         310  +
    /* BuilderGenerator.kt:334 */
  176    311   
    #[allow(missing_docs)] // documentation missing in model
         312  +
                           /* BuilderGenerator.kt:336 */
  177    313   
    pub fn get_query_timestamp_list(&self) -> &::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>> {
         314  +
        /* BuilderGenerator.kt:337 */
  178    315   
        &self.query_timestamp_list
         316  +
        /* BuilderGenerator.kt:336 */
  179    317   
    }
  180         -
    /// Appends an item to `query_enum_list`.
         318  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `query_enum_list`.
         319  +
    /* BuilderGenerator.kt:411 */
  181    320   
    ///
  182         -
    /// To override the contents of this collection use [`set_query_enum_list`](Self::set_query_enum_list).
         321  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_query_enum_list`](Self::set_query_enum_list).
         322  +
    /* BuilderGenerator.kt:413 */
  183    323   
    ///
         324  +
    /* BuilderGenerator.kt:418 */
  184    325   
    pub fn query_enum_list(mut self, input: crate::types::FooEnum) -> Self {
         326  +
        /* BuilderGenerator.kt:419 */
  185    327   
        let mut v = self.query_enum_list.unwrap_or_default();
  186    328   
        v.push(input);
  187    329   
        self.query_enum_list = ::std::option::Option::Some(v);
  188    330   
        self
         331  +
        /* BuilderGenerator.kt:418 */
  189    332   
    }
         333  +
    /* BuilderGenerator.kt:312 */
  190    334   
    #[allow(missing_docs)] // documentation missing in model
         335  +
                           /* BuilderGenerator.kt:314 */
  191    336   
    pub fn set_query_enum_list(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::FooEnum>>) -> Self {
         337  +
        /* BuilderGenerator.kt:315 */
  192    338   
        self.query_enum_list = input;
  193    339   
        self
         340  +
        /* BuilderGenerator.kt:314 */
  194    341   
    }
         342  +
    /* BuilderGenerator.kt:334 */
  195    343   
    #[allow(missing_docs)] // documentation missing in model
         344  +
                           /* BuilderGenerator.kt:336 */
  196    345   
    pub fn get_query_enum_list(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::FooEnum>> {
         346  +
        /* BuilderGenerator.kt:337 */
  197    347   
        &self.query_enum_list
         348  +
        /* BuilderGenerator.kt:336 */
  198    349   
    }
  199         -
    /// Appends an item to `query_integer_enum_list`.
         350  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `query_integer_enum_list`.
         351  +
    /* BuilderGenerator.kt:411 */
  200    352   
    ///
  201         -
    /// To override the contents of this collection use [`set_query_integer_enum_list`](Self::set_query_integer_enum_list).
         353  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_query_integer_enum_list`](Self::set_query_integer_enum_list).
         354  +
    /* BuilderGenerator.kt:413 */
  202    355   
    ///
         356  +
    /* BuilderGenerator.kt:418 */
  203    357   
    pub fn query_integer_enum_list(mut self, input: i32) -> Self {
         358  +
        /* BuilderGenerator.kt:419 */
  204    359   
        let mut v = self.query_integer_enum_list.unwrap_or_default();
  205    360   
        v.push(input);
  206    361   
        self.query_integer_enum_list = ::std::option::Option::Some(v);
  207    362   
        self
         363  +
        /* BuilderGenerator.kt:418 */
  208    364   
    }
         365  +
    /* BuilderGenerator.kt:312 */
  209    366   
    #[allow(missing_docs)] // documentation missing in model
         367  +
                           /* BuilderGenerator.kt:314 */
  210    368   
    pub fn set_query_integer_enum_list(mut self, input: ::std::option::Option<::std::vec::Vec<i32>>) -> Self {
         369  +
        /* BuilderGenerator.kt:315 */
  211    370   
        self.query_integer_enum_list = input;
  212    371   
        self
         372  +
        /* BuilderGenerator.kt:314 */
  213    373   
    }
         374  +
    /* BuilderGenerator.kt:334 */
  214    375   
    #[allow(missing_docs)] // documentation missing in model
         376  +
                           /* BuilderGenerator.kt:336 */
  215    377   
    pub fn get_query_integer_enum_list(&self) -> &::std::option::Option<::std::vec::Vec<i32>> {
         378  +
        /* BuilderGenerator.kt:337 */
  216    379   
        &self.query_integer_enum_list
         380  +
        /* BuilderGenerator.kt:336 */
  217    381   
    }
  218         -
    /// Consumes the builder and constructs a [`OmitsSerializingEmptyListsInput`](crate::operation::omits_serializing_empty_lists::OmitsSerializingEmptyListsInput).
         382  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`OmitsSerializingEmptyListsInput`](crate::operation::omits_serializing_empty_lists::OmitsSerializingEmptyListsInput).
         383  +
    /* BuilderGenerator.kt:253 */
  219    384   
    pub fn build(
  220    385   
        self,
  221    386   
    ) -> ::std::result::Result<
  222    387   
        crate::operation::omits_serializing_empty_lists::OmitsSerializingEmptyListsInput,
  223    388   
        ::aws_smithy_types::error::operation::BuildError,
  224    389   
    > {
  225         -
        ::std::result::Result::Ok(crate::operation::omits_serializing_empty_lists::OmitsSerializingEmptyListsInput {
  226         -
            query_string_list: self.query_string_list,
  227         -
            query_integer_list: self.query_integer_list,
  228         -
            query_double_list: self.query_double_list,
  229         -
            query_boolean_list: self.query_boolean_list,
  230         -
            query_timestamp_list: self.query_timestamp_list,
  231         -
            query_enum_list: self.query_enum_list,
  232         -
            query_integer_enum_list: self.query_integer_enum_list,
  233         -
        })
         390  +
        /* BuilderGenerator.kt:254 */
         391  +
        ::std::result::Result::Ok(
         392  +
            /* BuilderGenerator.kt:477 */
         393  +
            crate::operation::omits_serializing_empty_lists::OmitsSerializingEmptyListsInput {
         394  +
                /* BuilderGenerator.kt:481 */ query_string_list: self.query_string_list,
         395  +
                /* BuilderGenerator.kt:481 */
         396  +
                query_integer_list: self.query_integer_list,
         397  +
                /* BuilderGenerator.kt:481 */
         398  +
                query_double_list: self.query_double_list,
         399  +
                /* BuilderGenerator.kt:481 */
         400  +
                query_boolean_list: self.query_boolean_list,
         401  +
                /* BuilderGenerator.kt:481 */
         402  +
                query_timestamp_list: self.query_timestamp_list,
         403  +
                /* BuilderGenerator.kt:481 */
         404  +
                query_enum_list: self.query_enum_list,
         405  +
                /* BuilderGenerator.kt:481 */
         406  +
                query_integer_enum_list: self.query_integer_enum_list,
         407  +
                /* BuilderGenerator.kt:477 */
         408  +
            }, /* BuilderGenerator.kt:254 */
         409  +
        )
         410  +
        /* BuilderGenerator.kt:253 */
  234    411   
    }
         412  +
    /* BuilderGenerator.kt:355 */
  235    413   
}

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/omits_serializing_empty_lists/_omits_serializing_empty_lists_output.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 OmitsSerializingEmptyListsOutput {}
           8  +
pub /* StructureGenerator.kt:201 */ struct OmitsSerializingEmptyListsOutput {/* StructureGenerator.kt:201 */}
           9  +
/* ClientCodegenVisitor.kt:237 */
    6     10   
impl OmitsSerializingEmptyListsOutput {
    7         -
    /// Creates a new builder-style object to manufacture [`OmitsSerializingEmptyListsOutput`](crate::operation::omits_serializing_empty_lists::OmitsSerializingEmptyListsOutput).
          11  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`OmitsSerializingEmptyListsOutput`](crate::operation::omits_serializing_empty_lists::OmitsSerializingEmptyListsOutput).
          12  +
    /* BuilderGenerator.kt:175 */
    8     13   
    pub fn builder() -> crate::operation::omits_serializing_empty_lists::builders::OmitsSerializingEmptyListsOutputBuilder {
          14  +
        /* BuilderGenerator.kt:176 */
    9     15   
        crate::operation::omits_serializing_empty_lists::builders::OmitsSerializingEmptyListsOutputBuilder::default()
          16  +
        /* BuilderGenerator.kt:175 */
   10     17   
    }
          18  +
    /* ClientCodegenVisitor.kt:237 */
   11     19   
}
   12     20   
   13         -
/// A builder for [`OmitsSerializingEmptyListsOutput`](crate::operation::omits_serializing_empty_lists::OmitsSerializingEmptyListsOutput).
          21  +
/// /* BuilderGenerator.kt:342 */A builder for [`OmitsSerializingEmptyListsOutput`](crate::operation::omits_serializing_empty_lists::OmitsSerializingEmptyListsOutput).
          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 OmitsSerializingEmptyListsOutputBuilder {}
          26  +
/* BuilderGenerator.kt:345 */
          27  +
pub struct OmitsSerializingEmptyListsOutputBuilder {/* BuilderGenerator.kt:345 */}
          28  +
/* BuilderGenerator.kt:355 */
   17     29   
impl OmitsSerializingEmptyListsOutputBuilder {
   18         -
    /// Consumes the builder and constructs a [`OmitsSerializingEmptyListsOutput`](crate::operation::omits_serializing_empty_lists::OmitsSerializingEmptyListsOutput).
          30  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`OmitsSerializingEmptyListsOutput`](crate::operation::omits_serializing_empty_lists::OmitsSerializingEmptyListsOutput).
          31  +
    /* BuilderGenerator.kt:253 */
   19     32   
    pub fn build(self) -> crate::operation::omits_serializing_empty_lists::OmitsSerializingEmptyListsOutput {
   20         -
        crate::operation::omits_serializing_empty_lists::OmitsSerializingEmptyListsOutput {}
          33  +
        /* BuilderGenerator.kt:477 */
          34  +
        crate::operation::omits_serializing_empty_lists::OmitsSerializingEmptyListsOutput {
          35  +
        /* BuilderGenerator.kt:477 */}
          36  +
        /* BuilderGenerator.kt:253 */
   21     37   
    }
          38  +
    /* BuilderGenerator.kt:355 */
   22     39   
}

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/omits_serializing_empty_lists/builders.rs

@@ -1,1 +244,298 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CodegenDelegator.kt:255 */
    2      3   
pub use crate::operation::omits_serializing_empty_lists::_omits_serializing_empty_lists_output::OmitsSerializingEmptyListsOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::omits_serializing_empty_lists::_omits_serializing_empty_lists_input::OmitsSerializingEmptyListsInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::omits_serializing_empty_lists::builders::OmitsSerializingEmptyListsInputBuilder {
    7     10   
    /// Sends a request with this input using the given client.
    8     11   
    pub async fn send_with(
    9     12   
        self,
   10     13   
        client: &crate::Client,
   11     14   
    ) -> ::std::result::Result<
   12     15   
        crate::operation::omits_serializing_empty_lists::OmitsSerializingEmptyListsOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::omits_serializing_empty_lists::OmitsSerializingEmptyListsError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.omits_serializing_empty_lists();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `OmitsSerializingEmptyLists`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `OmitsSerializingEmptyLists`.
   24     27   
///
   25         -
/// Omits serializing empty lists. Because empty strings are serilized as `Foo=`, empty lists cannot also be serialized as `Foo=` and instead must be omitted.
          28  +
/// /* FluentBuilderGenerator.kt:130 */Omits serializing empty lists. Because empty strings are serilized as `Foo=`, empty lists cannot also be serialized as `Foo=` and instead must be omitted.
          29  +
/* RustType.kt:516 */
   26     30   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          31  +
/* FluentBuilderGenerator.kt:270 */
   27     32   
pub struct OmitsSerializingEmptyListsFluentBuilder {
   28     33   
    handle: ::std::sync::Arc<crate::client::Handle>,
   29     34   
    inner: crate::operation::omits_serializing_empty_lists::builders::OmitsSerializingEmptyListsInputBuilder,
   30     35   
    config_override: ::std::option::Option<crate::config::Builder>,
   31     36   
}
          37  +
/* FluentBuilderGenerator.kt:381 */
   32     38   
impl
   33     39   
    crate::client::customize::internal::CustomizableSend<
   34     40   
        crate::operation::omits_serializing_empty_lists::OmitsSerializingEmptyListsOutput,
   35     41   
        crate::operation::omits_serializing_empty_lists::OmitsSerializingEmptyListsError,
   36     42   
    > for OmitsSerializingEmptyListsFluentBuilder
   37     43   
{
   38     44   
    fn send(
   39     45   
        self,
   40     46   
        config_override: crate::config::Builder,
   41     47   
    ) -> crate::client::customize::internal::BoxFuture<
   42     48   
        crate::client::customize::internal::SendResult<
   43     49   
            crate::operation::omits_serializing_empty_lists::OmitsSerializingEmptyListsOutput,
   44     50   
            crate::operation::omits_serializing_empty_lists::OmitsSerializingEmptyListsError,
   45     51   
        >,
   46     52   
    > {
   47     53   
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
   48     54   
    }
   49     55   
}
          56  +
/* FluentBuilderGenerator.kt:282 */
   50     57   
impl OmitsSerializingEmptyListsFluentBuilder {
          58  +
    /* FluentBuilderGenerator.kt:288 */
   51     59   
    /// Creates a new `OmitsSerializingEmptyListsFluentBuilder`.
   52     60   
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
   53     61   
        Self {
   54     62   
            handle,
   55     63   
            inner: ::std::default::Default::default(),
   56     64   
            config_override: ::std::option::Option::None,
   57     65   
        }
   58     66   
    }
          67  +
    /* FluentBuilderGenerator.kt:301 */
   59     68   
    /// Access the OmitsSerializingEmptyLists as a reference.
   60     69   
    pub fn as_input(&self) -> &crate::operation::omits_serializing_empty_lists::builders::OmitsSerializingEmptyListsInputBuilder {
   61     70   
        &self.inner
   62     71   
    }
          72  +
    /* FluentBuilderGenerator.kt:145 */
   63     73   
    /// Sends the request and returns the response.
   64     74   
    ///
   65     75   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   66     76   
    /// can be matched against.
   67     77   
    ///
   68     78   
    /// By default, any retryable failures will be retried twice. Retry behavior
   69     79   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   70     80   
    /// set when configuring the client.
   71     81   
    pub async fn send(
   72     82   
        self,
   73     83   
    ) -> ::std::result::Result<
   74     84   
        crate::operation::omits_serializing_empty_lists::OmitsSerializingEmptyListsOutput,
   75     85   
        ::aws_smithy_runtime_api::client::result::SdkError<
   76     86   
            crate::operation::omits_serializing_empty_lists::OmitsSerializingEmptyListsError,
   77     87   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   78     88   
        >,
   79     89   
    > {
   80     90   
        let input = self
   81     91   
            .inner
   82     92   
            .build()
   83     93   
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
   84     94   
        let runtime_plugins = crate::operation::omits_serializing_empty_lists::OmitsSerializingEmptyLists::operation_runtime_plugins(
   85     95   
            self.handle.runtime_plugins.clone(),
   86     96   
            &self.handle.conf,
   87     97   
            self.config_override,
   88     98   
        );
   89     99   
        crate::operation::omits_serializing_empty_lists::OmitsSerializingEmptyLists::orchestrate(&runtime_plugins, input).await
   90    100   
    }
   91    101   
   92    102   
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
   93    103   
    pub fn customize(
   94    104   
        self,
   95    105   
    ) -> crate::client::customize::CustomizableOperation<
   96    106   
        crate::operation::omits_serializing_empty_lists::OmitsSerializingEmptyListsOutput,
   97    107   
        crate::operation::omits_serializing_empty_lists::OmitsSerializingEmptyListsError,
   98    108   
        Self,
   99    109   
    > {
  100    110   
        crate::client::customize::CustomizableOperation::new(self)
  101    111   
    }
         112  +
    /* FluentBuilderGenerator.kt:315 */
  102    113   
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
  103    114   
        self.set_config_override(::std::option::Option::Some(config_override.into()));
  104    115   
        self
  105    116   
    }
  106    117   
  107    118   
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
  108    119   
        self.config_override = config_override;
  109    120   
        self
  110    121   
    }
  111         -
    ///
         122  +
    /// /* FluentBuilderGenerator.kt:436 */
  112    123   
    /// Appends an item to `queryStringList`.
  113    124   
    ///
  114    125   
    /// To override the contents of this collection use [`set_query_string_list`](Self::set_query_string_list).
  115    126   
    ///
         127  +
    /* FluentBuilderGenerator.kt:443 */
  116    128   
    #[allow(missing_docs)] // documentation missing in model
         129  +
                           /* FluentBuilderGenerator.kt:446 */
  117    130   
    pub fn query_string_list(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  118    131   
        self.inner = self.inner.query_string_list(input.into());
  119    132   
        self
  120    133   
    }
         134  +
    /* FluentBuilderGenerator.kt:498 */
  121    135   
    #[allow(missing_docs)] // documentation missing in model
         136  +
                           /* FluentBuilderGenerator.kt:500 */
  122    137   
    pub fn set_query_string_list(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
  123    138   
        self.inner = self.inner.set_query_string_list(input);
  124    139   
        self
  125    140   
    }
         141  +
    /* FluentBuilderGenerator.kt:518 */
  126    142   
    #[allow(missing_docs)] // documentation missing in model
         143  +
                           /* FluentBuilderGenerator.kt:520 */
  127    144   
    pub fn get_query_string_list(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
  128    145   
        self.inner.get_query_string_list()
  129    146   
    }
  130         -
    ///
         147  +
    /// /* FluentBuilderGenerator.kt:436 */
  131    148   
    /// Appends an item to `queryIntegerList`.
  132    149   
    ///
  133    150   
    /// To override the contents of this collection use [`set_query_integer_list`](Self::set_query_integer_list).
  134    151   
    ///
         152  +
    /* FluentBuilderGenerator.kt:443 */
  135    153   
    #[allow(missing_docs)] // documentation missing in model
         154  +
                           /* FluentBuilderGenerator.kt:446 */
  136    155   
    pub fn query_integer_list(mut self, input: i32) -> Self {
  137    156   
        self.inner = self.inner.query_integer_list(input);
  138    157   
        self
  139    158   
    }
         159  +
    /* FluentBuilderGenerator.kt:498 */
  140    160   
    #[allow(missing_docs)] // documentation missing in model
         161  +
                           /* FluentBuilderGenerator.kt:500 */
  141    162   
    pub fn set_query_integer_list(mut self, input: ::std::option::Option<::std::vec::Vec<i32>>) -> Self {
  142    163   
        self.inner = self.inner.set_query_integer_list(input);
  143    164   
        self
  144    165   
    }
         166  +
    /* FluentBuilderGenerator.kt:518 */
  145    167   
    #[allow(missing_docs)] // documentation missing in model
         168  +
                           /* FluentBuilderGenerator.kt:520 */
  146    169   
    pub fn get_query_integer_list(&self) -> &::std::option::Option<::std::vec::Vec<i32>> {
  147    170   
        self.inner.get_query_integer_list()
  148    171   
    }
  149         -
    ///
         172  +
    /// /* FluentBuilderGenerator.kt:436 */
  150    173   
    /// Appends an item to `queryDoubleList`.
  151    174   
    ///
  152    175   
    /// To override the contents of this collection use [`set_query_double_list`](Self::set_query_double_list).
  153    176   
    ///
         177  +
    /* FluentBuilderGenerator.kt:443 */
  154    178   
    #[allow(missing_docs)] // documentation missing in model
         179  +
                           /* FluentBuilderGenerator.kt:446 */
  155    180   
    pub fn query_double_list(mut self, input: f64) -> Self {
  156    181   
        self.inner = self.inner.query_double_list(input);
  157    182   
        self
  158    183   
    }
         184  +
    /* FluentBuilderGenerator.kt:498 */
  159    185   
    #[allow(missing_docs)] // documentation missing in model
         186  +
                           /* FluentBuilderGenerator.kt:500 */
  160    187   
    pub fn set_query_double_list(mut self, input: ::std::option::Option<::std::vec::Vec<f64>>) -> Self {
  161    188   
        self.inner = self.inner.set_query_double_list(input);
  162    189   
        self
  163    190   
    }
         191  +
    /* FluentBuilderGenerator.kt:518 */
  164    192   
    #[allow(missing_docs)] // documentation missing in model
         193  +
                           /* FluentBuilderGenerator.kt:520 */
  165    194   
    pub fn get_query_double_list(&self) -> &::std::option::Option<::std::vec::Vec<f64>> {
  166    195   
        self.inner.get_query_double_list()
  167    196   
    }
  168         -
    ///
         197  +
    /// /* FluentBuilderGenerator.kt:436 */
  169    198   
    /// Appends an item to `queryBooleanList`.
  170    199   
    ///
  171    200   
    /// To override the contents of this collection use [`set_query_boolean_list`](Self::set_query_boolean_list).
  172    201   
    ///
         202  +
    /* FluentBuilderGenerator.kt:443 */
  173    203   
    #[allow(missing_docs)] // documentation missing in model
         204  +
                           /* FluentBuilderGenerator.kt:446 */
  174    205   
    pub fn query_boolean_list(mut self, input: bool) -> Self {
  175    206   
        self.inner = self.inner.query_boolean_list(input);
  176    207   
        self
  177    208   
    }
         209  +
    /* FluentBuilderGenerator.kt:498 */
  178    210   
    #[allow(missing_docs)] // documentation missing in model
         211  +
                           /* FluentBuilderGenerator.kt:500 */
  179    212   
    pub fn set_query_boolean_list(mut self, input: ::std::option::Option<::std::vec::Vec<bool>>) -> Self {
  180    213   
        self.inner = self.inner.set_query_boolean_list(input);
  181    214   
        self
  182    215   
    }
         216  +
    /* FluentBuilderGenerator.kt:518 */
  183    217   
    #[allow(missing_docs)] // documentation missing in model
         218  +
                           /* FluentBuilderGenerator.kt:520 */
  184    219   
    pub fn get_query_boolean_list(&self) -> &::std::option::Option<::std::vec::Vec<bool>> {
  185    220   
        self.inner.get_query_boolean_list()
  186    221   
    }
  187         -
    ///
         222  +
    /// /* FluentBuilderGenerator.kt:436 */
  188    223   
    /// Appends an item to `queryTimestampList`.
  189    224   
    ///
  190    225   
    /// To override the contents of this collection use [`set_query_timestamp_list`](Self::set_query_timestamp_list).
  191    226   
    ///
         227  +
    /* FluentBuilderGenerator.kt:443 */
  192    228   
    #[allow(missing_docs)] // documentation missing in model
         229  +
                           /* FluentBuilderGenerator.kt:446 */
  193    230   
    pub fn query_timestamp_list(mut self, input: ::aws_smithy_types::DateTime) -> Self {
  194    231   
        self.inner = self.inner.query_timestamp_list(input);
  195    232   
        self
  196    233   
    }
         234  +
    /* FluentBuilderGenerator.kt:498 */
  197    235   
    #[allow(missing_docs)] // documentation missing in model
         236  +
                           /* FluentBuilderGenerator.kt:500 */
  198    237   
    pub fn set_query_timestamp_list(mut self, input: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>) -> Self {
  199    238   
        self.inner = self.inner.set_query_timestamp_list(input);
  200    239   
        self
  201    240   
    }
         241  +
    /* FluentBuilderGenerator.kt:518 */
  202    242   
    #[allow(missing_docs)] // documentation missing in model
         243  +
                           /* FluentBuilderGenerator.kt:520 */
  203    244   
    pub fn get_query_timestamp_list(&self) -> &::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>> {
  204    245   
        self.inner.get_query_timestamp_list()
  205    246   
    }
  206         -
    ///
         247  +
    /// /* FluentBuilderGenerator.kt:436 */
  207    248   
    /// Appends an item to `queryEnumList`.
  208    249   
    ///
  209    250   
    /// To override the contents of this collection use [`set_query_enum_list`](Self::set_query_enum_list).
  210    251   
    ///
         252  +
    /* FluentBuilderGenerator.kt:443 */
  211    253   
    #[allow(missing_docs)] // documentation missing in model
         254  +
                           /* FluentBuilderGenerator.kt:446 */
  212    255   
    pub fn query_enum_list(mut self, input: crate::types::FooEnum) -> Self {
  213    256   
        self.inner = self.inner.query_enum_list(input);
  214    257   
        self
  215    258   
    }
         259  +
    /* FluentBuilderGenerator.kt:498 */
  216    260   
    #[allow(missing_docs)] // documentation missing in model
         261  +
                           /* FluentBuilderGenerator.kt:500 */
  217    262   
    pub fn set_query_enum_list(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::FooEnum>>) -> Self {
  218    263   
        self.inner = self.inner.set_query_enum_list(input);
  219    264   
        self
  220    265   
    }
         266  +
    /* FluentBuilderGenerator.kt:518 */
  221    267   
    #[allow(missing_docs)] // documentation missing in model
         268  +
                           /* FluentBuilderGenerator.kt:520 */
  222    269   
    pub fn get_query_enum_list(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::FooEnum>> {
  223    270   
        self.inner.get_query_enum_list()
  224    271   
    }
  225         -
    ///
         272  +
    /// /* FluentBuilderGenerator.kt:436 */
  226    273   
    /// Appends an item to `queryIntegerEnumList`.
  227    274   
    ///
  228    275   
    /// To override the contents of this collection use [`set_query_integer_enum_list`](Self::set_query_integer_enum_list).
  229    276   
    ///
         277  +
    /* FluentBuilderGenerator.kt:443 */
  230    278   
    #[allow(missing_docs)] // documentation missing in model
         279  +
                           /* FluentBuilderGenerator.kt:446 */
  231    280   
    pub fn query_integer_enum_list(mut self, input: i32) -> Self {
  232    281   
        self.inner = self.inner.query_integer_enum_list(input);
  233    282   
        self
  234    283   
    }
         284  +
    /* FluentBuilderGenerator.kt:498 */
  235    285   
    #[allow(missing_docs)] // documentation missing in model
         286  +
                           /* FluentBuilderGenerator.kt:500 */
  236    287   
    pub fn set_query_integer_enum_list(mut self, input: ::std::option::Option<::std::vec::Vec<i32>>) -> Self {
  237    288   
        self.inner = self.inner.set_query_integer_enum_list(input);
  238    289   
        self
  239    290   
    }
         291  +
    /* FluentBuilderGenerator.kt:518 */
  240    292   
    #[allow(missing_docs)] // documentation missing in model
         293  +
                           /* FluentBuilderGenerator.kt:520 */
  241    294   
    pub fn get_query_integer_enum_list(&self) -> &::std::option::Option<::std::vec::Vec<i32>> {
  242    295   
        self.inner.get_query_integer_enum_list()
  243    296   
    }
         297  +
    /* FluentBuilderGenerator.kt:282 */
  244    298   
}

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/operation_with_defaults.rs

@@ -1,1 +40,49 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* OperationGenerator.kt:77 */
    2      3   
/// Orchestration and serialization glue logic for `OperationWithDefaults`.
           4  +
/* RustType.kt:516 */
    3      5   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
           6  +
/* RustType.kt:516 */
    4      7   
#[non_exhaustive]
           8  +
/* OperationGenerator.kt:84 */
    5      9   
pub struct OperationWithDefaults;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl OperationWithDefaults {
    7         -
    /// Creates a new `OperationWithDefaults`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `OperationWithDefaults`
          13  +
    /* OperationGenerator.kt:87 */
    8     14   
    pub fn new() -> Self {
          15  +
        /* OperationGenerator.kt:88 */
    9     16   
        Self
          17  +
        /* OperationGenerator.kt:87 */
   10     18   
    }
          19  +
    /* OperationGenerator.kt:138 */
   11     20   
    pub(crate) async fn orchestrate(
   12     21   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     22   
        input: crate::operation::operation_with_defaults::OperationWithDefaultsInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::operation_with_defaults::OperationWithDefaultsOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::operation_with_defaults::OperationWithDefaultsError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -63,72 +271,288 @@
   83     92   
                runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
   84     93   
            }
   85     94   
            runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
   86     95   
                config_override,
   87     96   
                client_config.config.clone(),
   88     97   
                &client_config.runtime_components,
   89     98   
            ));
   90     99   
        }
   91    100   
        runtime_plugins
   92    101   
    }
         102  +
    /* OperationGenerator.kt:85 */
   93    103   
}
         104  +
/* OperationRuntimePluginGenerator.kt:55 */
   94    105   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for OperationWithDefaults {
   95    106   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
   96    107   
        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("OperationWithDefaults");
   97    108   
   98    109   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   99    110   
            OperationWithDefaultsRequestSerializer,
  100    111   
        ));
  101    112   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
  102    113   
            OperationWithDefaultsResponseDeserializer,
  103    114   
        ));
  104    115   
  105    116   
        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
  106    117   
            ::aws_smithy_runtime_api::client::auth::static_resolver::StaticAuthSchemeOptionResolverParams::new(),
  107    118   
        ));
  108    119   
  109    120   
        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
  110    121   
            "OperationWithDefaults",
  111    122   
            "Rest Json Protocol",
  112    123   
        ));
  113    124   
  114    125   
        ::std::option::Option::Some(cfg.freeze())
  115    126   
    }
  116    127   
  117    128   
    fn runtime_components(
  118    129   
        &self,
  119    130   
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
  120    131   
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
  121    132   
        #[allow(unused_mut)]
  122    133   
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("OperationWithDefaults")
  123    134   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  124    135   
            .with_interceptor(OperationWithDefaultsEndpointParamsInterceptor)
  125    136   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  126    137   
                crate::operation::operation_with_defaults::OperationWithDefaultsError,
  127    138   
            >::new())
  128    139   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  129    140   
                crate::operation::operation_with_defaults::OperationWithDefaultsError,
  130    141   
            >::new());
  131    142   
  132    143   
        ::std::borrow::Cow::Owned(rcb)
  133    144   
    }
  134    145   
}
  135    146   
         147  +
/* ResponseDeserializerGenerator.kt:64 */
  136    148   
#[derive(Debug)]
  137    149   
struct OperationWithDefaultsResponseDeserializer;
  138    150   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for OperationWithDefaultsResponseDeserializer {
  139    151   
    fn deserialize_nonstreaming(
  140    152   
        &self,
  141    153   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
  142    154   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  143    155   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  144    156   
        let headers = response.headers();
  145    157   
        let body = response.body().bytes().expect("body loaded");
  146    158   
        #[allow(unused_mut)]
  147    159   
        let mut force_error = false;
  148    160   
  149    161   
        let parse_result = if !success && status != 200 || force_error {
  150    162   
            crate::protocol_serde::shape_operation_with_defaults::de_operation_with_defaults_http_error(status, headers, body)
  151    163   
        } else {
  152    164   
            crate::protocol_serde::shape_operation_with_defaults::de_operation_with_defaults_http_response(status, headers, body)
  153    165   
        };
  154    166   
        crate::protocol_serde::type_erase_result(parse_result)
  155    167   
    }
  156    168   
}
         169  +
/* RequestSerializerGenerator.kt:67 */
  157    170   
#[derive(Debug)]
  158    171   
struct OperationWithDefaultsRequestSerializer;
  159    172   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for OperationWithDefaultsRequestSerializer {
  160    173   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  161    174   
    fn serialize_input(
  162    175   
        &self,
  163    176   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  164    177   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  165    178   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  166    179   
        let input = input
  167    180   
            .downcast::<crate::operation::operation_with_defaults::OperationWithDefaultsInput>()
  168    181   
            .expect("correct type");
  169    182   
        let _header_serialization_settings = _cfg
  170    183   
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  171    184   
            .cloned()
  172    185   
            .unwrap_or_default();
  173    186   
        let mut request_builder = {
  174    187   
            fn uri_base(
  175    188   
                _input: &crate::operation::operation_with_defaults::OperationWithDefaultsInput,
  176    189   
                output: &mut ::std::string::String,
  177    190   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  178    191   
                use ::std::fmt::Write as _;
  179    192   
                ::std::write!(output, "/OperationWithDefaults").expect("formatting should succeed");
  180    193   
                ::std::result::Result::Ok(())
  181    194   
            }
  182    195   
            #[allow(clippy::unnecessary_wraps)]
  183    196   
            fn update_http_builder(
  184    197   
                input: &crate::operation::operation_with_defaults::OperationWithDefaultsInput,
  185    198   
                builder: ::http::request::Builder,
  186    199   
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  187    200   
                let mut uri = ::std::string::String::new();
  188    201   
                uri_base(input, &mut uri)?;
  189    202   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  190    203   
            }
  191    204   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  192    205   
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/json");
  193    206   
            builder
  194    207   
        };
  195    208   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_operation_with_defaults::ser_operation_with_defaults_input(
  196    209   
            &input,
  197    210   
        )?);
  198    211   
        if let Some(content_length) = body.content_length() {
  199    212   
            let content_length = content_length.to_string();
  200    213   
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
  201    214   
        }
  202    215   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  203    216   
    }
  204    217   
}
         218  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  205    219   
#[derive(Debug)]
  206    220   
struct OperationWithDefaultsEndpointParamsInterceptor;
  207    221   
  208    222   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for OperationWithDefaultsEndpointParamsInterceptor {
  209    223   
    fn name(&self) -> &'static str {
  210    224   
        "OperationWithDefaultsEndpointParamsInterceptor"
  211    225   
    }
  212    226   
  213    227   
    fn read_before_execution(
  214    228   
        &self,
  215    229   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  216    230   
            '_,
  217    231   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  218    232   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  219    233   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  220    234   
        >,
  221    235   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  222    236   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  223    237   
        let _input = context
  224    238   
            .input()
  225    239   
            .downcast_ref::<OperationWithDefaultsInput>()
  226    240   
            .ok_or("failed to downcast to OperationWithDefaultsInput")?;
  227    241   
  228    242   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  229    243   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  230    244   
        })?;
  231    245   
        cfg.interceptor_state()
  232    246   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  233    247   
        ::std::result::Result::Ok(())
  234    248   
    }
  235    249   
}
  236    250   
  237    251   
// The get_* functions below are generated from JMESPath expressions in the
  238    252   
// operationContextParams trait. They target the operation's input shape.
  239    253   
         254  +
/* RustType.kt:516 */
  240    255   
#[allow(unreachable_code, unused_variables)]
         256  +
/* RustType.kt:516 */
  241    257   
#[cfg(test)]
         258  +
/* ProtocolTestGenerator.kt:98 */
  242    259   
mod operation_with_defaults_test {
  243    260   
    use ::aws_smithy_protocol_test::FloatEquals;
  244    261   
  245    262   
    /// Client populates default values in input.
  246    263   
    /// Test ID: RestJsonClientPopulatesDefaultValuesInInput
  247    264   
    #[::tokio::test]
  248    265   
    #[::tracing_test::traced_test]
  249    266   
    #[should_panic]
  250    267   
    async fn rest_json_client_populates_default_values_in_input_request() {
  251    268   
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
@@ -788,805 +917,993 @@
  808    825   
            expected_output.zero_float,
  809    826   
            parsed.zero_float
  810    827   
        );
  811    828   
        assert!(
  812    829   
            parsed.zero_double.float_equals(&expected_output.zero_double),
  813    830   
            "Unexpected value for `zero_double` {:?} vs. {:?}",
  814    831   
            expected_output.zero_double,
  815    832   
            parsed.zero_double
  816    833   
        );
  817    834   
    }
         835  +
         836  +
    /* ProtocolTestGenerator.kt:98 */
  818    837   
}
  819    838   
         839  +
/* OperationErrorGenerator.kt:79 */
  820    840   
/// Error type for the `OperationWithDefaultsError` operation.
         841  +
/* RustType.kt:516 */
  821    842   
#[non_exhaustive]
         843  +
/* RustType.kt:516 */
  822    844   
#[derive(::std::fmt::Debug)]
  823         -
pub enum OperationWithDefaultsError {
         845  +
pub /* OperationErrorGenerator.kt:81 */ enum OperationWithDefaultsError {
         846  +
    /* OperationErrorGenerator.kt:88 */
  824    847   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  825    848   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  826    849   
    variable wildcard pattern and check `.code()`:
  827    850   
     \
  828    851   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  829    852   
     \
  830    853   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-OperationWithDefaultsError) for what information is available for the error.")]
  831    854   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         855  +
    /* OperationErrorGenerator.kt:81 */
  832    856   
}
         857  +
/* OperationErrorGenerator.kt:218 */
  833    858   
impl OperationWithDefaultsError {
         859  +
    /* OperationErrorGenerator.kt:219 */
  834    860   
    /// Creates the `OperationWithDefaultsError::Unhandled` variant from any error type.
  835    861   
    pub fn unhandled(
  836    862   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  837    863   
    ) -> Self {
  838    864   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  839    865   
            source: err.into(),
  840    866   
            meta: ::std::default::Default::default(),
  841    867   
        })
  842    868   
    }
  843    869   
  844    870   
    /// Creates the `OperationWithDefaultsError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  845    871   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  846    872   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  847    873   
            source: err.clone().into(),
  848    874   
            meta: err,
  849    875   
        })
  850    876   
    }
  851         -
    ///
         877  +
    /// /* OperationErrorGenerator.kt:236 */
  852    878   
    /// Returns error metadata, which includes the error code, message,
  853    879   
    /// request ID, and potentially additional information.
  854    880   
    ///
         881  +
    /* OperationErrorGenerator.kt:242 */
  855    882   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         883  +
        /* OperationErrorGenerator.kt:243 */
  856    884   
        match self {
  857         -
            Self::Unhandled(e) => &e.meta,
         885  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         886  +
            /* OperationErrorGenerator.kt:243 */
  858    887   
        }
         888  +
        /* OperationErrorGenerator.kt:242 */
  859    889   
    }
         890  +
    /* OperationErrorGenerator.kt:218 */
  860    891   
}
         892  +
/* OperationErrorGenerator.kt:269 */
  861    893   
impl ::std::error::Error for OperationWithDefaultsError {
         894  +
    /* OperationErrorGenerator.kt:270 */
  862    895   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         896  +
        /* OperationErrorGenerator.kt:318 */
  863    897   
        match self {
  864         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         898  +
            /* OperationErrorGenerator.kt:326 */
         899  +
            Self::Unhandled(_inner) => {
         900  +
                /* OperationErrorGenerator.kt:279 */
         901  +
                ::std::option::Option::Some(&*_inner.source)
         902  +
                /* OperationErrorGenerator.kt:326 */
         903  +
            } /* OperationErrorGenerator.kt:318 */
  865    904   
        }
         905  +
        /* OperationErrorGenerator.kt:270 */
  866    906   
    }
         907  +
    /* OperationErrorGenerator.kt:269 */
  867    908   
}
         909  +
/* OperationErrorGenerator.kt:133 */
  868    910   
impl ::std::fmt::Display for OperationWithDefaultsError {
         911  +
    /* OperationErrorGenerator.kt:134 */
  869    912   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         913  +
        /* OperationErrorGenerator.kt:318 */
  870    914   
        match self {
         915  +
            /* OperationErrorGenerator.kt:326 */
  871    916   
            Self::Unhandled(_inner) => {
         917  +
                /* OperationErrorGenerator.kt:139 */
  872    918   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  873    919   
                    write!(f, "unhandled error ({code})")
  874    920   
                } else {
  875    921   
                    f.write_str("unhandled error")
  876    922   
                }
  877         -
            }
         923  +
                /* OperationErrorGenerator.kt:326 */
         924  +
            } /* OperationErrorGenerator.kt:318 */
  878    925   
        }
         926  +
        /* OperationErrorGenerator.kt:134 */
  879    927   
    }
         928  +
    /* OperationErrorGenerator.kt:133 */
  880    929   
}
         930  +
/* OperationErrorGenerator.kt:182 */
  881    931   
impl ::aws_smithy_types::retry::ProvideErrorKind for OperationWithDefaultsError {
         932  +
    /* OperationErrorGenerator.kt:186 */
  882    933   
    fn code(&self) -> ::std::option::Option<&str> {
         934  +
        /* OperationErrorGenerator.kt:187 */
  883    935   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         936  +
        /* OperationErrorGenerator.kt:186 */
  884    937   
    }
         938  +
    /* OperationErrorGenerator.kt:190 */
  885    939   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         940  +
        /* OperationErrorGenerator.kt:197 */
  886    941   
        ::std::option::Option::None
         942  +
        /* OperationErrorGenerator.kt:190 */
  887    943   
    }
         944  +
    /* OperationErrorGenerator.kt:182 */
  888    945   
}
         946  +
/* OperationErrorGenerator.kt:163 */
  889    947   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for OperationWithDefaultsError {
         948  +
    /* OperationErrorGenerator.kt:164 */
  890    949   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         950  +
        /* OperationErrorGenerator.kt:318 */
  891    951   
        match self {
  892         -
            Self::Unhandled(_inner) => &_inner.meta,
         952  +
            /* OperationErrorGenerator.kt:326 */
         953  +
            Self::Unhandled(_inner) => {
         954  +
                /* OperationErrorGenerator.kt:168 */
         955  +
                &_inner.meta
         956  +
                /* OperationErrorGenerator.kt:326 */
         957  +
            } /* OperationErrorGenerator.kt:318 */
  893    958   
        }
         959  +
        /* OperationErrorGenerator.kt:164 */
  894    960   
    }
         961  +
    /* OperationErrorGenerator.kt:163 */
  895    962   
}
         963  +
/* OperationErrorGenerator.kt:109 */
  896    964   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for OperationWithDefaultsError {
         965  +
    /* OperationErrorGenerator.kt:110 */
  897    966   
    fn create_unhandled_error(
  898    967   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  899    968   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  900    969   
    ) -> Self {
         970  +
        /* OperationErrorGenerator.kt:121 */
  901    971   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  902    972   
            source,
  903    973   
            meta: meta.unwrap_or_default(),
  904    974   
        })
         975  +
        /* OperationErrorGenerator.kt:110 */
  905    976   
    }
         977  +
    /* OperationErrorGenerator.kt:109 */
  906    978   
}
  907    979   
         980  +
/* CodegenDelegator.kt:255 */
  908    981   
pub use crate::operation::operation_with_defaults::_operation_with_defaults_output::OperationWithDefaultsOutput;
  909    982   
         983  +
/* CodegenDelegator.kt:255 */
  910    984   
pub use crate::operation::operation_with_defaults::_operation_with_defaults_input::OperationWithDefaultsInput;
  911    985   
         986  +
/* RustModule.kt:172 */
  912    987   
mod _operation_with_defaults_input;
  913    988   
         989  +
/* RustModule.kt:172 */
  914    990   
mod _operation_with_defaults_output;
  915    991   
  916         -
/// Builders
         992  +
/// /* CodegenDelegator.kt:51 */Builders
  917    993   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/operation_with_defaults/_operation_with_defaults_input.rs

@@ -1,1 +118,217 @@
    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 OperationWithDefaultsInput {
           8  +
pub /* StructureGenerator.kt:201 */ struct OperationWithDefaultsInput {
           9  +
    /* StructureGenerator.kt:231 */
    6     10   
    #[allow(missing_docs)] // documentation missing in model
    7     11   
    pub defaults: ::std::option::Option<crate::types::Defaults>,
          12  +
    /* StructureGenerator.kt:231 */
    8     13   
    #[allow(missing_docs)] // documentation missing in model
    9     14   
    pub client_optional_defaults: ::std::option::Option<crate::types::ClientOptionalDefaults>,
          15  +
    /* StructureGenerator.kt:231 */
   10     16   
    #[allow(missing_docs)] // documentation missing in model
   11     17   
    pub top_level_default: ::std::option::Option<::std::string::String>,
          18  +
    /* StructureGenerator.kt:231 */
   12     19   
    #[allow(missing_docs)] // documentation missing in model
   13     20   
    pub other_top_level_default: ::std::option::Option<i32>,
          21  +
    /* StructureGenerator.kt:201 */
   14     22   
}
          23  +
/* StructureGenerator.kt:135 */
   15     24   
impl OperationWithDefaultsInput {
          25  +
    /* StructureGenerator.kt:231 */
   16     26   
    #[allow(missing_docs)] // documentation missing in model
          27  +
                           /* StructureGenerator.kt:166 */
   17     28   
    pub fn defaults(&self) -> ::std::option::Option<&crate::types::Defaults> {
          29  +
        /* StructureGenerator.kt:170 */
   18     30   
        self.defaults.as_ref()
          31  +
        /* StructureGenerator.kt:166 */
   19     32   
    }
          33  +
    /* StructureGenerator.kt:231 */
   20     34   
    #[allow(missing_docs)] // documentation missing in model
          35  +
                           /* StructureGenerator.kt:166 */
   21     36   
    pub fn client_optional_defaults(&self) -> ::std::option::Option<&crate::types::ClientOptionalDefaults> {
          37  +
        /* StructureGenerator.kt:170 */
   22     38   
        self.client_optional_defaults.as_ref()
          39  +
        /* StructureGenerator.kt:166 */
   23     40   
    }
          41  +
    /* StructureGenerator.kt:231 */
   24     42   
    #[allow(missing_docs)] // documentation missing in model
          43  +
                           /* StructureGenerator.kt:166 */
   25     44   
    pub fn top_level_default(&self) -> ::std::option::Option<&str> {
          45  +
        /* StructureGenerator.kt:169 */
   26     46   
        self.top_level_default.as_deref()
          47  +
        /* StructureGenerator.kt:166 */
   27     48   
    }
          49  +
    /* StructureGenerator.kt:231 */
   28     50   
    #[allow(missing_docs)] // documentation missing in model
          51  +
                           /* StructureGenerator.kt:166 */
   29     52   
    pub fn other_top_level_default(&self) -> ::std::option::Option<i32> {
          53  +
        /* StructureGenerator.kt:168 */
   30     54   
        self.other_top_level_default
          55  +
        /* StructureGenerator.kt:166 */
   31     56   
    }
          57  +
    /* StructureGenerator.kt:135 */
   32     58   
}
          59  +
/* ClientCodegenVisitor.kt:237 */
   33     60   
impl OperationWithDefaultsInput {
   34         -
    /// Creates a new builder-style object to manufacture [`OperationWithDefaultsInput`](crate::operation::operation_with_defaults::OperationWithDefaultsInput).
          61  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`OperationWithDefaultsInput`](crate::operation::operation_with_defaults::OperationWithDefaultsInput).
          62  +
    /* BuilderGenerator.kt:175 */
   35     63   
    pub fn builder() -> crate::operation::operation_with_defaults::builders::OperationWithDefaultsInputBuilder {
          64  +
        /* BuilderGenerator.kt:176 */
   36     65   
        crate::operation::operation_with_defaults::builders::OperationWithDefaultsInputBuilder::default()
          66  +
        /* BuilderGenerator.kt:175 */
   37     67   
    }
          68  +
    /* ClientCodegenVisitor.kt:237 */
   38     69   
}
   39     70   
   40         -
/// A builder for [`OperationWithDefaultsInput`](crate::operation::operation_with_defaults::OperationWithDefaultsInput).
          71  +
/// /* BuilderGenerator.kt:342 */A builder for [`OperationWithDefaultsInput`](crate::operation::operation_with_defaults::OperationWithDefaultsInput).
          72  +
/* RustType.kt:516 */
   41     73   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          74  +
/* RustType.kt:516 */
   42     75   
#[non_exhaustive]
          76  +
/* BuilderGenerator.kt:345 */
   43     77   
pub struct OperationWithDefaultsInputBuilder {
   44         -
    pub(crate) defaults: ::std::option::Option<crate::types::Defaults>,
   45         -
    pub(crate) client_optional_defaults: ::std::option::Option<crate::types::ClientOptionalDefaults>,
   46         -
    pub(crate) top_level_default: ::std::option::Option<::std::string::String>,
   47         -
    pub(crate) other_top_level_default: ::std::option::Option<i32>,
          78  +
    /* BuilderGenerator.kt:275 */ pub(crate) defaults: ::std::option::Option<crate::types::Defaults>,
          79  +
    /* BuilderGenerator.kt:275 */ pub(crate) client_optional_defaults: ::std::option::Option<crate::types::ClientOptionalDefaults>,
          80  +
    /* BuilderGenerator.kt:275 */ pub(crate) top_level_default: ::std::option::Option<::std::string::String>,
          81  +
    /* BuilderGenerator.kt:275 */ pub(crate) other_top_level_default: ::std::option::Option<i32>,
          82  +
    /* BuilderGenerator.kt:345 */
   48     83   
}
          84  +
/* BuilderGenerator.kt:355 */
   49     85   
impl OperationWithDefaultsInputBuilder {
          86  +
    /* BuilderGenerator.kt:286 */
   50     87   
    #[allow(missing_docs)] // documentation missing in model
          88  +
                           /* BuilderGenerator.kt:291 */
   51     89   
    pub fn defaults(mut self, input: crate::types::Defaults) -> Self {
          90  +
        /* BuilderGenerator.kt:292 */
   52     91   
        self.defaults = ::std::option::Option::Some(input);
          92  +
        /* BuilderGenerator.kt:293 */
   53     93   
        self
          94  +
        /* BuilderGenerator.kt:291 */
   54     95   
    }
          96  +
    /* BuilderGenerator.kt:312 */
   55     97   
    #[allow(missing_docs)] // documentation missing in model
          98  +
                           /* BuilderGenerator.kt:314 */
   56     99   
    pub fn set_defaults(mut self, input: ::std::option::Option<crate::types::Defaults>) -> Self {
         100  +
        /* BuilderGenerator.kt:315 */
   57    101   
        self.defaults = input;
   58    102   
        self
         103  +
        /* BuilderGenerator.kt:314 */
   59    104   
    }
         105  +
    /* BuilderGenerator.kt:334 */
   60    106   
    #[allow(missing_docs)] // documentation missing in model
         107  +
                           /* BuilderGenerator.kt:336 */
   61    108   
    pub fn get_defaults(&self) -> &::std::option::Option<crate::types::Defaults> {
         109  +
        /* BuilderGenerator.kt:337 */
   62    110   
        &self.defaults
         111  +
        /* BuilderGenerator.kt:336 */
   63    112   
    }
         113  +
    /* BuilderGenerator.kt:286 */
   64    114   
    #[allow(missing_docs)] // documentation missing in model
         115  +
                           /* BuilderGenerator.kt:291 */
   65    116   
    pub fn client_optional_defaults(mut self, input: crate::types::ClientOptionalDefaults) -> Self {
         117  +
        /* BuilderGenerator.kt:292 */
   66    118   
        self.client_optional_defaults = ::std::option::Option::Some(input);
         119  +
        /* BuilderGenerator.kt:293 */
   67    120   
        self
         121  +
        /* BuilderGenerator.kt:291 */
   68    122   
    }
         123  +
    /* BuilderGenerator.kt:312 */
   69    124   
    #[allow(missing_docs)] // documentation missing in model
         125  +
                           /* BuilderGenerator.kt:314 */
   70    126   
    pub fn set_client_optional_defaults(mut self, input: ::std::option::Option<crate::types::ClientOptionalDefaults>) -> Self {
         127  +
        /* BuilderGenerator.kt:315 */
   71    128   
        self.client_optional_defaults = input;
   72    129   
        self
         130  +
        /* BuilderGenerator.kt:314 */
   73    131   
    }
         132  +
    /* BuilderGenerator.kt:334 */
   74    133   
    #[allow(missing_docs)] // documentation missing in model
         134  +
                           /* BuilderGenerator.kt:336 */
   75    135   
    pub fn get_client_optional_defaults(&self) -> &::std::option::Option<crate::types::ClientOptionalDefaults> {
         136  +
        /* BuilderGenerator.kt:337 */
   76    137   
        &self.client_optional_defaults
         138  +
        /* BuilderGenerator.kt:336 */
   77    139   
    }
         140  +
    /* BuilderGenerator.kt:286 */
   78    141   
    #[allow(missing_docs)] // documentation missing in model
         142  +
                           /* BuilderGenerator.kt:291 */
   79    143   
    pub fn top_level_default(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         144  +
        /* BuilderGenerator.kt:292 */
   80    145   
        self.top_level_default = ::std::option::Option::Some(input.into());
         146  +
        /* BuilderGenerator.kt:293 */
   81    147   
        self
         148  +
        /* BuilderGenerator.kt:291 */
   82    149   
    }
         150  +
    /* BuilderGenerator.kt:312 */
   83    151   
    #[allow(missing_docs)] // documentation missing in model
         152  +
                           /* BuilderGenerator.kt:314 */
   84    153   
    pub fn set_top_level_default(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         154  +
        /* BuilderGenerator.kt:315 */
   85    155   
        self.top_level_default = input;
   86    156   
        self
         157  +
        /* BuilderGenerator.kt:314 */
   87    158   
    }
         159  +
    /* BuilderGenerator.kt:334 */
   88    160   
    #[allow(missing_docs)] // documentation missing in model
         161  +
                           /* BuilderGenerator.kt:336 */
   89    162   
    pub fn get_top_level_default(&self) -> &::std::option::Option<::std::string::String> {
         163  +
        /* BuilderGenerator.kt:337 */
   90    164   
        &self.top_level_default
         165  +
        /* BuilderGenerator.kt:336 */
   91    166   
    }
         167  +
    /* BuilderGenerator.kt:286 */
   92    168   
    #[allow(missing_docs)] // documentation missing in model
         169  +
                           /* BuilderGenerator.kt:291 */
   93    170   
    pub fn other_top_level_default(mut self, input: i32) -> Self {
         171  +
        /* BuilderGenerator.kt:292 */
   94    172   
        self.other_top_level_default = ::std::option::Option::Some(input);
         173  +
        /* BuilderGenerator.kt:293 */
   95    174   
        self
         175  +
        /* BuilderGenerator.kt:291 */
   96    176   
    }
         177  +
    /* BuilderGenerator.kt:312 */
   97    178   
    #[allow(missing_docs)] // documentation missing in model
         179  +
                           /* BuilderGenerator.kt:314 */
   98    180   
    pub fn set_other_top_level_default(mut self, input: ::std::option::Option<i32>) -> Self {
         181  +
        /* BuilderGenerator.kt:315 */
   99    182   
        self.other_top_level_default = input;
  100    183   
        self
         184  +
        /* BuilderGenerator.kt:314 */
  101    185   
    }
         186  +
    /* BuilderGenerator.kt:334 */
  102    187   
    #[allow(missing_docs)] // documentation missing in model
         188  +
                           /* BuilderGenerator.kt:336 */
  103    189   
    pub fn get_other_top_level_default(&self) -> &::std::option::Option<i32> {
         190  +
        /* BuilderGenerator.kt:337 */
  104    191   
        &self.other_top_level_default
         192  +
        /* BuilderGenerator.kt:336 */
  105    193   
    }
  106         -
    /// Consumes the builder and constructs a [`OperationWithDefaultsInput`](crate::operation::operation_with_defaults::OperationWithDefaultsInput).
         194  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`OperationWithDefaultsInput`](crate::operation::operation_with_defaults::OperationWithDefaultsInput).
         195  +
    /* BuilderGenerator.kt:253 */
  107    196   
    pub fn build(
  108    197   
        self,
  109    198   
    ) -> ::std::result::Result<crate::operation::operation_with_defaults::OperationWithDefaultsInput, ::aws_smithy_types::error::operation::BuildError>
  110    199   
    {
  111         -
        ::std::result::Result::Ok(crate::operation::operation_with_defaults::OperationWithDefaultsInput {
  112         -
            defaults: self.defaults,
  113         -
            client_optional_defaults: self.client_optional_defaults,
  114         -
            top_level_default: self.top_level_default,
  115         -
            other_top_level_default: self.other_top_level_default,
  116         -
        })
  117         -
    }
         200  +
        /* BuilderGenerator.kt:254 */
         201  +
        ::std::result::Result::Ok(
         202  +
            /* BuilderGenerator.kt:477 */
         203  +
            crate::operation::operation_with_defaults::OperationWithDefaultsInput {
         204  +
                /* BuilderGenerator.kt:481 */ defaults: self.defaults,
         205  +
                /* BuilderGenerator.kt:481 */
         206  +
                client_optional_defaults: self.client_optional_defaults,
         207  +
                /* BuilderGenerator.kt:481 */
         208  +
                top_level_default: self.top_level_default,
         209  +
                /* BuilderGenerator.kt:481 */
         210  +
                other_top_level_default: self.other_top_level_default,
         211  +
                /* BuilderGenerator.kt:477 */
         212  +
            }, /* BuilderGenerator.kt:254 */
         213  +
        )
         214  +
        /* BuilderGenerator.kt:253 */
         215  +
    }
         216  +
    /* BuilderGenerator.kt:355 */
  118    217   
}

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/operation_with_defaults/_operation_with_defaults_output.rs

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