Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

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

@@ -1,1 +178,316 @@
    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 JsonIntEnumsOutput {
    6         -
    #[allow(missing_docs)] // documentation missing in model
           8  +
pub /* StructureGenerator.kt:201 */ struct JsonIntEnumsOutput {
           9  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
    7     10   
    pub integer_enum1: ::std::option::Option<i32>,
    8         -
    #[allow(missing_docs)] // documentation missing in model
          11  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
    9     12   
    pub integer_enum2: ::std::option::Option<i32>,
   10         -
    #[allow(missing_docs)] // documentation missing in model
          13  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   11     14   
    pub integer_enum3: ::std::option::Option<i32>,
          15  +
    /* StructureGenerator.kt:231 */
   12     16   
    #[allow(missing_docs)] // documentation missing in model
   13     17   
    pub integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
          18  +
    /* StructureGenerator.kt:231 */
   14     19   
    #[allow(missing_docs)] // documentation missing in model
   15     20   
    pub integer_enum_set: ::std::option::Option<::std::vec::Vec<i32>>,
          21  +
    /* StructureGenerator.kt:231 */
   16     22   
    #[allow(missing_docs)] // documentation missing in model
   17     23   
    pub integer_enum_map: ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
          24  +
    /* StructureGenerator.kt:201 */
   18     25   
}
          26  +
/* StructureGenerator.kt:135 */
   19     27   
impl JsonIntEnumsOutput {
          28  +
    /* StructureGenerator.kt:231 */
   20     29   
    #[allow(missing_docs)] // documentation missing in model
          30  +
                           /* StructureGenerator.kt:166 */
   21     31   
    pub fn integer_enum1(&self) -> ::std::option::Option<i32> {
          32  +
        /* StructureGenerator.kt:168 */
   22     33   
        self.integer_enum1
          34  +
        /* StructureGenerator.kt:166 */
   23     35   
    }
          36  +
    /* StructureGenerator.kt:231 */
   24     37   
    #[allow(missing_docs)] // documentation missing in model
          38  +
                           /* StructureGenerator.kt:166 */
   25     39   
    pub fn integer_enum2(&self) -> ::std::option::Option<i32> {
          40  +
        /* StructureGenerator.kt:168 */
   26     41   
        self.integer_enum2
          42  +
        /* StructureGenerator.kt:166 */
   27     43   
    }
          44  +
    /* StructureGenerator.kt:231 */
   28     45   
    #[allow(missing_docs)] // documentation missing in model
          46  +
                           /* StructureGenerator.kt:166 */
   29     47   
    pub fn integer_enum3(&self) -> ::std::option::Option<i32> {
          48  +
        /* StructureGenerator.kt:168 */
   30     49   
        self.integer_enum3
          50  +
        /* StructureGenerator.kt:166 */
   31     51   
    }
          52  +
    /* StructureGenerator.kt:231 */
   32     53   
    #[allow(missing_docs)] // documentation missing in model
   33         -
    ///
   34         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.integer_enum_list.is_none()`.
          54  +
    /// /* StructureGenerator.kt:162 */
          55  +
    /// /* 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 `.integer_enum_list.is_none()`.
          56  +
    /* StructureGenerator.kt:166 */
   35     57   
    pub fn integer_enum_list(&self) -> &[i32] {
   36         -
        self.integer_enum_list.as_deref().unwrap_or_default()
          58  +
        /* StructureGenerator.kt:169 */
          59  +
        self.integer_enum_list
          60  +
            .as_deref()
          61  +
            /* StructureGenerator.kt:175 */
          62  +
            .unwrap_or_default()
          63  +
        /* StructureGenerator.kt:166 */
   37     64   
    }
          65  +
    /* StructureGenerator.kt:231 */
   38     66   
    #[allow(missing_docs)] // documentation missing in model
   39         -
    ///
   40         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.integer_enum_set.is_none()`.
          67  +
    /// /* StructureGenerator.kt:162 */
          68  +
    /// /* 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 `.integer_enum_set.is_none()`.
          69  +
    /* StructureGenerator.kt:166 */
   41     70   
    pub fn integer_enum_set(&self) -> &[i32] {
   42         -
        self.integer_enum_set.as_deref().unwrap_or_default()
          71  +
        /* StructureGenerator.kt:169 */
          72  +
        self.integer_enum_set
          73  +
            .as_deref()
          74  +
            /* StructureGenerator.kt:175 */
          75  +
            .unwrap_or_default()
          76  +
        /* StructureGenerator.kt:166 */
   43     77   
    }
          78  +
    /* StructureGenerator.kt:231 */
   44     79   
    #[allow(missing_docs)] // documentation missing in model
          80  +
                           /* StructureGenerator.kt:166 */
   45     81   
    pub fn integer_enum_map(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, i32>> {
          82  +
        /* StructureGenerator.kt:170 */
   46     83   
        self.integer_enum_map.as_ref()
          84  +
        /* StructureGenerator.kt:166 */
   47     85   
    }
          86  +
    /* StructureGenerator.kt:135 */
   48     87   
}
          88  +
/* ClientCodegenVisitor.kt:237 */
   49     89   
impl JsonIntEnumsOutput {
   50         -
    /// Creates a new builder-style object to manufacture [`JsonIntEnumsOutput`](crate::operation::json_int_enums::JsonIntEnumsOutput).
          90  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`JsonIntEnumsOutput`](crate::operation::json_int_enums::JsonIntEnumsOutput).
          91  +
    /* BuilderGenerator.kt:175 */
   51     92   
    pub fn builder() -> crate::operation::json_int_enums::builders::JsonIntEnumsOutputBuilder {
          93  +
        /* BuilderGenerator.kt:176 */
   52     94   
        crate::operation::json_int_enums::builders::JsonIntEnumsOutputBuilder::default()
          95  +
        /* BuilderGenerator.kt:175 */
   53     96   
    }
          97  +
    /* ClientCodegenVisitor.kt:237 */
   54     98   
}
   55     99   
   56         -
/// A builder for [`JsonIntEnumsOutput`](crate::operation::json_int_enums::JsonIntEnumsOutput).
         100  +
/// /* BuilderGenerator.kt:342 */A builder for [`JsonIntEnumsOutput`](crate::operation::json_int_enums::JsonIntEnumsOutput).
         101  +
/* RustType.kt:516 */
   57    102   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         103  +
/* RustType.kt:516 */
   58    104   
#[non_exhaustive]
         105  +
/* BuilderGenerator.kt:345 */
   59    106   
pub struct JsonIntEnumsOutputBuilder {
   60         -
    pub(crate) integer_enum1: ::std::option::Option<i32>,
   61         -
    pub(crate) integer_enum2: ::std::option::Option<i32>,
   62         -
    pub(crate) integer_enum3: ::std::option::Option<i32>,
   63         -
    pub(crate) integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
   64         -
    pub(crate) integer_enum_set: ::std::option::Option<::std::vec::Vec<i32>>,
         107  +
    /* BuilderGenerator.kt:275 */ pub(crate) integer_enum1: ::std::option::Option<i32>,
         108  +
    /* BuilderGenerator.kt:275 */ pub(crate) integer_enum2: ::std::option::Option<i32>,
         109  +
    /* BuilderGenerator.kt:275 */ pub(crate) integer_enum3: ::std::option::Option<i32>,
         110  +
    /* BuilderGenerator.kt:275 */ pub(crate) integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
         111  +
    /* BuilderGenerator.kt:275 */ pub(crate) integer_enum_set: ::std::option::Option<::std::vec::Vec<i32>>,
         112  +
    /* BuilderGenerator.kt:275 */
   65    113   
    pub(crate) integer_enum_map: ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
         114  +
    /* BuilderGenerator.kt:345 */
   66    115   
}
         116  +
/* BuilderGenerator.kt:355 */
   67    117   
impl JsonIntEnumsOutputBuilder {
         118  +
    /* BuilderGenerator.kt:286 */
   68    119   
    #[allow(missing_docs)] // documentation missing in model
         120  +
                           /* BuilderGenerator.kt:291 */
   69    121   
    pub fn integer_enum1(mut self, input: i32) -> Self {
         122  +
        /* BuilderGenerator.kt:292 */
   70    123   
        self.integer_enum1 = ::std::option::Option::Some(input);
         124  +
        /* BuilderGenerator.kt:293 */
   71    125   
        self
         126  +
        /* BuilderGenerator.kt:291 */
   72    127   
    }
         128  +
    /* BuilderGenerator.kt:312 */
   73    129   
    #[allow(missing_docs)] // documentation missing in model
         130  +
                           /* BuilderGenerator.kt:314 */
   74    131   
    pub fn set_integer_enum1(mut self, input: ::std::option::Option<i32>) -> Self {
         132  +
        /* BuilderGenerator.kt:315 */
   75    133   
        self.integer_enum1 = input;
   76    134   
        self
         135  +
        /* BuilderGenerator.kt:314 */
   77    136   
    }
         137  +
    /* BuilderGenerator.kt:334 */
   78    138   
    #[allow(missing_docs)] // documentation missing in model
         139  +
                           /* BuilderGenerator.kt:336 */
   79    140   
    pub fn get_integer_enum1(&self) -> &::std::option::Option<i32> {
         141  +
        /* BuilderGenerator.kt:337 */
   80    142   
        &self.integer_enum1
         143  +
        /* BuilderGenerator.kt:336 */
   81    144   
    }
         145  +
    /* BuilderGenerator.kt:286 */
   82    146   
    #[allow(missing_docs)] // documentation missing in model
         147  +
                           /* BuilderGenerator.kt:291 */
   83    148   
    pub fn integer_enum2(mut self, input: i32) -> Self {
         149  +
        /* BuilderGenerator.kt:292 */
   84    150   
        self.integer_enum2 = ::std::option::Option::Some(input);
         151  +
        /* BuilderGenerator.kt:293 */
   85    152   
        self
         153  +
        /* BuilderGenerator.kt:291 */
   86    154   
    }
         155  +
    /* BuilderGenerator.kt:312 */
   87    156   
    #[allow(missing_docs)] // documentation missing in model
         157  +
                           /* BuilderGenerator.kt:314 */
   88    158   
    pub fn set_integer_enum2(mut self, input: ::std::option::Option<i32>) -> Self {
         159  +
        /* BuilderGenerator.kt:315 */
   89    160   
        self.integer_enum2 = input;
   90    161   
        self
         162  +
        /* BuilderGenerator.kt:314 */
   91    163   
    }
         164  +
    /* BuilderGenerator.kt:334 */
   92    165   
    #[allow(missing_docs)] // documentation missing in model
         166  +
                           /* BuilderGenerator.kt:336 */
   93    167   
    pub fn get_integer_enum2(&self) -> &::std::option::Option<i32> {
         168  +
        /* BuilderGenerator.kt:337 */
   94    169   
        &self.integer_enum2
         170  +
        /* BuilderGenerator.kt:336 */
   95    171   
    }
         172  +
    /* BuilderGenerator.kt:286 */
   96    173   
    #[allow(missing_docs)] // documentation missing in model
         174  +
                           /* BuilderGenerator.kt:291 */
   97    175   
    pub fn integer_enum3(mut self, input: i32) -> Self {
         176  +
        /* BuilderGenerator.kt:292 */
   98    177   
        self.integer_enum3 = ::std::option::Option::Some(input);
         178  +
        /* BuilderGenerator.kt:293 */
   99    179   
        self
         180  +
        /* BuilderGenerator.kt:291 */
  100    181   
    }
         182  +
    /* BuilderGenerator.kt:312 */
  101    183   
    #[allow(missing_docs)] // documentation missing in model
         184  +
                           /* BuilderGenerator.kt:314 */
  102    185   
    pub fn set_integer_enum3(mut self, input: ::std::option::Option<i32>) -> Self {
         186  +
        /* BuilderGenerator.kt:315 */
  103    187   
        self.integer_enum3 = input;
  104    188   
        self
         189  +
        /* BuilderGenerator.kt:314 */
  105    190   
    }
         191  +
    /* BuilderGenerator.kt:334 */
  106    192   
    #[allow(missing_docs)] // documentation missing in model
         193  +
                           /* BuilderGenerator.kt:336 */
  107    194   
    pub fn get_integer_enum3(&self) -> &::std::option::Option<i32> {
         195  +
        /* BuilderGenerator.kt:337 */
  108    196   
        &self.integer_enum3
         197  +
        /* BuilderGenerator.kt:336 */
  109    198   
    }
  110         -
    /// Appends an item to `integer_enum_list`.
         199  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `integer_enum_list`.
         200  +
    /* BuilderGenerator.kt:411 */
  111    201   
    ///
  112         -
    /// To override the contents of this collection use [`set_integer_enum_list`](Self::set_integer_enum_list).
         202  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_integer_enum_list`](Self::set_integer_enum_list).
         203  +
    /* BuilderGenerator.kt:413 */
  113    204   
    ///
         205  +
    /* BuilderGenerator.kt:418 */
  114    206   
    pub fn integer_enum_list(mut self, input: i32) -> Self {
         207  +
        /* BuilderGenerator.kt:419 */
  115    208   
        let mut v = self.integer_enum_list.unwrap_or_default();
  116    209   
        v.push(input);
  117    210   
        self.integer_enum_list = ::std::option::Option::Some(v);
  118    211   
        self
         212  +
        /* BuilderGenerator.kt:418 */
  119    213   
    }
         214  +
    /* BuilderGenerator.kt:312 */
  120    215   
    #[allow(missing_docs)] // documentation missing in model
         216  +
                           /* BuilderGenerator.kt:314 */
  121    217   
    pub fn set_integer_enum_list(mut self, input: ::std::option::Option<::std::vec::Vec<i32>>) -> Self {
         218  +
        /* BuilderGenerator.kt:315 */
  122    219   
        self.integer_enum_list = input;
  123    220   
        self
         221  +
        /* BuilderGenerator.kt:314 */
  124    222   
    }
         223  +
    /* BuilderGenerator.kt:334 */
  125    224   
    #[allow(missing_docs)] // documentation missing in model
         225  +
                           /* BuilderGenerator.kt:336 */
  126    226   
    pub fn get_integer_enum_list(&self) -> &::std::option::Option<::std::vec::Vec<i32>> {
         227  +
        /* BuilderGenerator.kt:337 */
  127    228   
        &self.integer_enum_list
         229  +
        /* BuilderGenerator.kt:336 */
  128    230   
    }
  129         -
    /// Appends an item to `integer_enum_set`.
         231  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `integer_enum_set`.
         232  +
    /* BuilderGenerator.kt:411 */
  130    233   
    ///
  131         -
    /// To override the contents of this collection use [`set_integer_enum_set`](Self::set_integer_enum_set).
         234  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_integer_enum_set`](Self::set_integer_enum_set).
         235  +
    /* BuilderGenerator.kt:413 */
  132    236   
    ///
         237  +
    /* BuilderGenerator.kt:418 */
  133    238   
    pub fn integer_enum_set(mut self, input: i32) -> Self {
         239  +
        /* BuilderGenerator.kt:419 */
  134    240   
        let mut v = self.integer_enum_set.unwrap_or_default();
  135    241   
        v.push(input);
  136    242   
        self.integer_enum_set = ::std::option::Option::Some(v);
  137    243   
        self
         244  +
        /* BuilderGenerator.kt:418 */
  138    245   
    }
         246  +
    /* BuilderGenerator.kt:312 */
  139    247   
    #[allow(missing_docs)] // documentation missing in model
         248  +
                           /* BuilderGenerator.kt:314 */
  140    249   
    pub fn set_integer_enum_set(mut self, input: ::std::option::Option<::std::vec::Vec<i32>>) -> Self {
         250  +
        /* BuilderGenerator.kt:315 */
  141    251   
        self.integer_enum_set = input;
  142    252   
        self
         253  +
        /* BuilderGenerator.kt:314 */
  143    254   
    }
         255  +
    /* BuilderGenerator.kt:334 */
  144    256   
    #[allow(missing_docs)] // documentation missing in model
         257  +
                           /* BuilderGenerator.kt:336 */
  145    258   
    pub fn get_integer_enum_set(&self) -> &::std::option::Option<::std::vec::Vec<i32>> {
         259  +
        /* BuilderGenerator.kt:337 */
  146    260   
        &self.integer_enum_set
         261  +
        /* BuilderGenerator.kt:336 */
  147    262   
    }
  148         -
    /// Adds a key-value pair to `integer_enum_map`.
         263  +
    /// /* BuilderGenerator.kt:436 */Adds a key-value pair to `integer_enum_map`.
         264  +
    /* BuilderGenerator.kt:437 */
  149    265   
    ///
  150         -
    /// To override the contents of this collection use [`set_integer_enum_map`](Self::set_integer_enum_map).
         266  +
    /// /* BuilderGenerator.kt:438 */To override the contents of this collection use [`set_integer_enum_map`](Self::set_integer_enum_map).
         267  +
    /* BuilderGenerator.kt:439 */
  151    268   
    ///
         269  +
    /* BuilderGenerator.kt:445 */
  152    270   
    pub fn integer_enum_map(mut self, k: impl ::std::convert::Into<::std::string::String>, v: i32) -> Self {
         271  +
        /* BuilderGenerator.kt:448 */
  153    272   
        let mut hash_map = self.integer_enum_map.unwrap_or_default();
  154    273   
        hash_map.insert(k.into(), v);
  155    274   
        self.integer_enum_map = ::std::option::Option::Some(hash_map);
  156    275   
        self
         276  +
        /* BuilderGenerator.kt:445 */
  157    277   
    }
         278  +
    /* BuilderGenerator.kt:312 */
  158    279   
    #[allow(missing_docs)] // documentation missing in model
         280  +
                           /* BuilderGenerator.kt:314 */
  159    281   
    pub fn set_integer_enum_map(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>) -> Self {
         282  +
        /* BuilderGenerator.kt:315 */
  160    283   
        self.integer_enum_map = input;
  161    284   
        self
         285  +
        /* BuilderGenerator.kt:314 */
  162    286   
    }
         287  +
    /* BuilderGenerator.kt:334 */
  163    288   
    #[allow(missing_docs)] // documentation missing in model
         289  +
                           /* BuilderGenerator.kt:336 */
  164    290   
    pub fn get_integer_enum_map(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, i32>> {
         291  +
        /* BuilderGenerator.kt:337 */
  165    292   
        &self.integer_enum_map
         293  +
        /* BuilderGenerator.kt:336 */
  166    294   
    }
  167         -
    /// Consumes the builder and constructs a [`JsonIntEnumsOutput`](crate::operation::json_int_enums::JsonIntEnumsOutput).
         295  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`JsonIntEnumsOutput`](crate::operation::json_int_enums::JsonIntEnumsOutput).
         296  +
    /* BuilderGenerator.kt:253 */
  168    297   
    pub fn build(self) -> crate::operation::json_int_enums::JsonIntEnumsOutput {
         298  +
        /* BuilderGenerator.kt:477 */
  169    299   
        crate::operation::json_int_enums::JsonIntEnumsOutput {
  170         -
            integer_enum1: self.integer_enum1,
         300  +
            /* BuilderGenerator.kt:481 */ integer_enum1: self.integer_enum1,
         301  +
            /* BuilderGenerator.kt:481 */
  171    302   
            integer_enum2: self.integer_enum2,
         303  +
            /* BuilderGenerator.kt:481 */
  172    304   
            integer_enum3: self.integer_enum3,
         305  +
            /* BuilderGenerator.kt:481 */
  173    306   
            integer_enum_list: self.integer_enum_list,
         307  +
            /* BuilderGenerator.kt:481 */
  174    308   
            integer_enum_set: self.integer_enum_set,
         309  +
            /* BuilderGenerator.kt:481 */
  175    310   
            integer_enum_map: self.integer_enum_map,
         311  +
            /* BuilderGenerator.kt:477 */
  176    312   
        }
         313  +
        /* BuilderGenerator.kt:253 */
  177    314   
    }
         315  +
    /* BuilderGenerator.kt:355 */
  178    316   
}

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

@@ -1,1 +210,258 @@
    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::json_int_enums::_json_int_enums_output::JsonIntEnumsOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::json_int_enums::_json_int_enums_input::JsonIntEnumsInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::json_int_enums::builders::JsonIntEnumsInputBuilder {
    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::json_int_enums::JsonIntEnumsOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::json_int_enums::JsonIntEnumsError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.json_int_enums();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `JsonIntEnums`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `JsonIntEnums`.
   24     27   
///
   25         -
/// This example serializes intEnums as top level properties, in lists, sets, and maps.
          28  +
/// /* FluentBuilderGenerator.kt:130 */This example serializes intEnums as top level properties, in lists, sets, and maps.
          29  +
/* RustType.kt:516 */
   26     30   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          31  +
/* FluentBuilderGenerator.kt:270 */
   27     32   
pub struct JsonIntEnumsFluentBuilder {
   28     33   
    handle: ::std::sync::Arc<crate::client::Handle>,
   29     34   
    inner: crate::operation::json_int_enums::builders::JsonIntEnumsInputBuilder,
   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::json_int_enums::JsonIntEnumsOutput,
   35     41   
        crate::operation::json_int_enums::JsonIntEnumsError,
   36     42   
    > for JsonIntEnumsFluentBuilder
   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::json_int_enums::JsonIntEnumsOutput,
   44     50   
            crate::operation::json_int_enums::JsonIntEnumsError,
   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 JsonIntEnumsFluentBuilder {
          58  +
    /* FluentBuilderGenerator.kt:288 */
   51     59   
    /// Creates a new `JsonIntEnumsFluentBuilder`.
   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 JsonIntEnums as a reference.
   60     69   
    pub fn as_input(&self) -> &crate::operation::json_int_enums::builders::JsonIntEnumsInputBuilder {
   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::json_int_enums::JsonIntEnumsOutput,
   75     85   
        ::aws_smithy_runtime_api::client::result::SdkError<
   76     86   
            crate::operation::json_int_enums::JsonIntEnumsError,
   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::json_int_enums::JsonIntEnums::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::json_int_enums::JsonIntEnums::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::json_int_enums::JsonIntEnumsOutput,
   97    107   
        crate::operation::json_int_enums::JsonIntEnumsError,
   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   
    }
         122  +
    /* FluentBuilderGenerator.kt:498 */
  111    123   
    #[allow(missing_docs)] // documentation missing in model
         124  +
                           /* FluentBuilderGenerator.kt:500 */
  112    125   
    pub fn integer_enum1(mut self, input: i32) -> Self {
  113    126   
        self.inner = self.inner.integer_enum1(input);
  114    127   
        self
  115    128   
    }
         129  +
    /* FluentBuilderGenerator.kt:498 */
  116    130   
    #[allow(missing_docs)] // documentation missing in model
         131  +
                           /* FluentBuilderGenerator.kt:500 */
  117    132   
    pub fn set_integer_enum1(mut self, input: ::std::option::Option<i32>) -> Self {
  118    133   
        self.inner = self.inner.set_integer_enum1(input);
  119    134   
        self
  120    135   
    }
         136  +
    /* FluentBuilderGenerator.kt:518 */
  121    137   
    #[allow(missing_docs)] // documentation missing in model
         138  +
                           /* FluentBuilderGenerator.kt:520 */
  122    139   
    pub fn get_integer_enum1(&self) -> &::std::option::Option<i32> {
  123    140   
        self.inner.get_integer_enum1()
  124    141   
    }
         142  +
    /* FluentBuilderGenerator.kt:498 */
  125    143   
    #[allow(missing_docs)] // documentation missing in model
         144  +
                           /* FluentBuilderGenerator.kt:500 */
  126    145   
    pub fn integer_enum2(mut self, input: i32) -> Self {
  127    146   
        self.inner = self.inner.integer_enum2(input);
  128    147   
        self
  129    148   
    }
         149  +
    /* FluentBuilderGenerator.kt:498 */
  130    150   
    #[allow(missing_docs)] // documentation missing in model
         151  +
                           /* FluentBuilderGenerator.kt:500 */
  131    152   
    pub fn set_integer_enum2(mut self, input: ::std::option::Option<i32>) -> Self {
  132    153   
        self.inner = self.inner.set_integer_enum2(input);
  133    154   
        self
  134    155   
    }
         156  +
    /* FluentBuilderGenerator.kt:518 */
  135    157   
    #[allow(missing_docs)] // documentation missing in model
         158  +
                           /* FluentBuilderGenerator.kt:520 */
  136    159   
    pub fn get_integer_enum2(&self) -> &::std::option::Option<i32> {
  137    160   
        self.inner.get_integer_enum2()
  138    161   
    }
         162  +
    /* FluentBuilderGenerator.kt:498 */
  139    163   
    #[allow(missing_docs)] // documentation missing in model
         164  +
                           /* FluentBuilderGenerator.kt:500 */
  140    165   
    pub fn integer_enum3(mut self, input: i32) -> Self {
  141    166   
        self.inner = self.inner.integer_enum3(input);
  142    167   
        self
  143    168   
    }
         169  +
    /* FluentBuilderGenerator.kt:498 */
  144    170   
    #[allow(missing_docs)] // documentation missing in model
         171  +
                           /* FluentBuilderGenerator.kt:500 */
  145    172   
    pub fn set_integer_enum3(mut self, input: ::std::option::Option<i32>) -> Self {
  146    173   
        self.inner = self.inner.set_integer_enum3(input);
  147    174   
        self
  148    175   
    }
         176  +
    /* FluentBuilderGenerator.kt:518 */
  149    177   
    #[allow(missing_docs)] // documentation missing in model
         178  +
                           /* FluentBuilderGenerator.kt:520 */
  150    179   
    pub fn get_integer_enum3(&self) -> &::std::option::Option<i32> {
  151    180   
        self.inner.get_integer_enum3()
  152    181   
    }
  153         -
    ///
         182  +
    /// /* FluentBuilderGenerator.kt:436 */
  154    183   
    /// Appends an item to `integerEnumList`.
  155    184   
    ///
  156    185   
    /// To override the contents of this collection use [`set_integer_enum_list`](Self::set_integer_enum_list).
  157    186   
    ///
         187  +
    /* FluentBuilderGenerator.kt:443 */
  158    188   
    #[allow(missing_docs)] // documentation missing in model
         189  +
                           /* FluentBuilderGenerator.kt:446 */
  159    190   
    pub fn integer_enum_list(mut self, input: i32) -> Self {
  160    191   
        self.inner = self.inner.integer_enum_list(input);
  161    192   
        self
  162    193   
    }
         194  +
    /* FluentBuilderGenerator.kt:498 */
  163    195   
    #[allow(missing_docs)] // documentation missing in model
         196  +
                           /* FluentBuilderGenerator.kt:500 */
  164    197   
    pub fn set_integer_enum_list(mut self, input: ::std::option::Option<::std::vec::Vec<i32>>) -> Self {
  165    198   
        self.inner = self.inner.set_integer_enum_list(input);
  166    199   
        self
  167    200   
    }
         201  +
    /* FluentBuilderGenerator.kt:518 */
  168    202   
    #[allow(missing_docs)] // documentation missing in model
         203  +
                           /* FluentBuilderGenerator.kt:520 */
  169    204   
    pub fn get_integer_enum_list(&self) -> &::std::option::Option<::std::vec::Vec<i32>> {
  170    205   
        self.inner.get_integer_enum_list()
  171    206   
    }
  172         -
    ///
         207  +
    /// /* FluentBuilderGenerator.kt:436 */
  173    208   
    /// Appends an item to `integerEnumSet`.
  174    209   
    ///
  175    210   
    /// To override the contents of this collection use [`set_integer_enum_set`](Self::set_integer_enum_set).
  176    211   
    ///
         212  +
    /* FluentBuilderGenerator.kt:443 */
  177    213   
    #[allow(missing_docs)] // documentation missing in model
         214  +
                           /* FluentBuilderGenerator.kt:446 */
  178    215   
    pub fn integer_enum_set(mut self, input: i32) -> Self {
  179    216   
        self.inner = self.inner.integer_enum_set(input);
  180    217   
        self
  181    218   
    }
         219  +
    /* FluentBuilderGenerator.kt:498 */
  182    220   
    #[allow(missing_docs)] // documentation missing in model
         221  +
                           /* FluentBuilderGenerator.kt:500 */
  183    222   
    pub fn set_integer_enum_set(mut self, input: ::std::option::Option<::std::vec::Vec<i32>>) -> Self {
  184    223   
        self.inner = self.inner.set_integer_enum_set(input);
  185    224   
        self
  186    225   
    }
         226  +
    /* FluentBuilderGenerator.kt:518 */
  187    227   
    #[allow(missing_docs)] // documentation missing in model
         228  +
                           /* FluentBuilderGenerator.kt:520 */
  188    229   
    pub fn get_integer_enum_set(&self) -> &::std::option::Option<::std::vec::Vec<i32>> {
  189    230   
        self.inner.get_integer_enum_set()
  190    231   
    }
  191         -
    ///
         232  +
    /// /* FluentBuilderGenerator.kt:466 */
  192    233   
    /// Adds a key-value pair to `integerEnumMap`.
  193    234   
    ///
  194    235   
    /// To override the contents of this collection use [`set_integer_enum_map`](Self::set_integer_enum_map).
  195    236   
    ///
         237  +
    /* FluentBuilderGenerator.kt:473 */
  196    238   
    #[allow(missing_docs)] // documentation missing in model
         239  +
                           /* FluentBuilderGenerator.kt:475 */
  197    240   
    pub fn integer_enum_map(mut self, k: impl ::std::convert::Into<::std::string::String>, v: i32) -> Self {
  198    241   
        self.inner = self.inner.integer_enum_map(k.into(), v);
  199    242   
        self
  200    243   
    }
         244  +
    /* FluentBuilderGenerator.kt:498 */
  201    245   
    #[allow(missing_docs)] // documentation missing in model
         246  +
                           /* FluentBuilderGenerator.kt:500 */
  202    247   
    pub fn set_integer_enum_map(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>) -> Self {
  203    248   
        self.inner = self.inner.set_integer_enum_map(input);
  204    249   
        self
  205    250   
    }
         251  +
    /* FluentBuilderGenerator.kt:518 */
  206    252   
    #[allow(missing_docs)] // documentation missing in model
         253  +
                           /* FluentBuilderGenerator.kt:520 */
  207    254   
    pub fn get_integer_enum_map(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, i32>> {
  208    255   
        self.inner.get_integer_enum_map()
  209    256   
    }
         257  +
    /* FluentBuilderGenerator.kt:282 */
  210    258   
}

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/json_lists.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 `JsonLists`.
           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 JsonLists;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl JsonLists {
    7         -
    /// Creates a new `JsonLists`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `JsonLists`
          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::json_lists::JsonListsInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::json_lists::JsonListsOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::json_lists::JsonListsError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -57,66 +261,278 @@
   77     86   
                runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
   78     87   
            }
   79     88   
            runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
   80     89   
                config_override,
   81     90   
                client_config.config.clone(),
   82     91   
                &client_config.runtime_components,
   83     92   
            ));
   84     93   
        }
   85     94   
        runtime_plugins
   86     95   
    }
          96  +
    /* OperationGenerator.kt:85 */
   87     97   
}
          98  +
/* OperationRuntimePluginGenerator.kt:55 */
   88     99   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for JsonLists {
   89    100   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
   90    101   
        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("JsonLists");
   91    102   
   92    103   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   93    104   
            JsonListsRequestSerializer,
   94    105   
        ));
   95    106   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
   96    107   
            JsonListsResponseDeserializer,
   97    108   
        ));
   98    109   
   99    110   
        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
  100    111   
            ::aws_smithy_runtime_api::client::auth::static_resolver::StaticAuthSchemeOptionResolverParams::new(),
  101    112   
        ));
  102    113   
  103    114   
        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
  104    115   
            "JsonLists",
  105    116   
            "Rest Json Protocol",
  106    117   
        ));
  107    118   
  108    119   
        ::std::option::Option::Some(cfg.freeze())
  109    120   
    }
  110    121   
  111    122   
    fn runtime_components(
  112    123   
        &self,
  113    124   
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
  114    125   
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
  115    126   
        #[allow(unused_mut)]
  116    127   
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("JsonLists")
  117    128   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  118    129   
            .with_interceptor(JsonListsEndpointParamsInterceptor)
  119    130   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  120    131   
                crate::operation::json_lists::JsonListsError,
  121    132   
            >::new())
  122    133   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  123    134   
                crate::operation::json_lists::JsonListsError,
  124    135   
            >::new());
  125    136   
  126    137   
        ::std::borrow::Cow::Owned(rcb)
  127    138   
    }
  128    139   
}
  129    140   
         141  +
/* ResponseDeserializerGenerator.kt:64 */
  130    142   
#[derive(Debug)]
  131    143   
struct JsonListsResponseDeserializer;
  132    144   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for JsonListsResponseDeserializer {
  133    145   
    fn deserialize_nonstreaming(
  134    146   
        &self,
  135    147   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
  136    148   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  137    149   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  138    150   
        let headers = response.headers();
  139    151   
        let body = response.body().bytes().expect("body loaded");
  140    152   
        #[allow(unused_mut)]
  141    153   
        let mut force_error = false;
  142    154   
  143    155   
        let parse_result = if !success && status != 200 || force_error {
  144    156   
            crate::protocol_serde::shape_json_lists::de_json_lists_http_error(status, headers, body)
  145    157   
        } else {
  146    158   
            crate::protocol_serde::shape_json_lists::de_json_lists_http_response(status, headers, body)
  147    159   
        };
  148    160   
        crate::protocol_serde::type_erase_result(parse_result)
  149    161   
    }
  150    162   
}
         163  +
/* RequestSerializerGenerator.kt:67 */
  151    164   
#[derive(Debug)]
  152    165   
struct JsonListsRequestSerializer;
  153    166   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for JsonListsRequestSerializer {
  154    167   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  155    168   
    fn serialize_input(
  156    169   
        &self,
  157    170   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  158    171   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  159    172   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  160    173   
        let input = input.downcast::<crate::operation::json_lists::JsonListsInput>().expect("correct type");
  161    174   
        let _header_serialization_settings = _cfg
  162    175   
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  163    176   
            .cloned()
  164    177   
            .unwrap_or_default();
  165    178   
        let mut request_builder = {
  166    179   
            fn uri_base(
  167    180   
                _input: &crate::operation::json_lists::JsonListsInput,
  168    181   
                output: &mut ::std::string::String,
  169    182   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  170    183   
                use ::std::fmt::Write as _;
  171    184   
                ::std::write!(output, "/JsonLists").expect("formatting should succeed");
  172    185   
                ::std::result::Result::Ok(())
  173    186   
            }
  174    187   
            #[allow(clippy::unnecessary_wraps)]
  175    188   
            fn update_http_builder(
  176    189   
                input: &crate::operation::json_lists::JsonListsInput,
  177    190   
                builder: ::http::request::Builder,
  178    191   
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  179    192   
                let mut uri = ::std::string::String::new();
  180    193   
                uri_base(input, &mut uri)?;
  181    194   
                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
  182    195   
            }
  183    196   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  184    197   
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/json");
  185    198   
            builder
  186    199   
        };
  187    200   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_json_lists::ser_json_lists_input(&input)?);
  188    201   
        if let Some(content_length) = body.content_length() {
  189    202   
            let content_length = content_length.to_string();
  190    203   
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
  191    204   
        }
  192    205   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  193    206   
    }
  194    207   
}
         208  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  195    209   
#[derive(Debug)]
  196    210   
struct JsonListsEndpointParamsInterceptor;
  197    211   
  198    212   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for JsonListsEndpointParamsInterceptor {
  199    213   
    fn name(&self) -> &'static str {
  200    214   
        "JsonListsEndpointParamsInterceptor"
  201    215   
    }
  202    216   
  203    217   
    fn read_before_execution(
  204    218   
        &self,
  205    219   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  206    220   
            '_,
  207    221   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  208    222   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  209    223   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  210    224   
        >,
  211    225   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  212    226   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  213    227   
        let _input = context
  214    228   
            .input()
  215    229   
            .downcast_ref::<JsonListsInput>()
  216    230   
            .ok_or("failed to downcast to JsonListsInput")?;
  217    231   
  218    232   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  219    233   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  220    234   
        })?;
  221    235   
        cfg.interceptor_state()
  222    236   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  223    237   
        ::std::result::Result::Ok(())
  224    238   
    }
  225    239   
}
  226    240   
  227    241   
// The get_* functions below are generated from JMESPath expressions in the
  228    242   
// operationContextParams trait. They target the operation's input shape.
  229    243   
         244  +
/* RustType.kt:516 */
  230    245   
#[allow(unreachable_code, unused_variables)]
         246  +
/* RustType.kt:516 */
  231    247   
#[cfg(test)]
         248  +
/* ProtocolTestGenerator.kt:98 */
  232    249   
mod json_lists_test {
  233    250   
  234    251   
    /// Serializes JSON lists
  235    252   
    /// Test ID: RestJsonLists
  236    253   
    #[::tokio::test]
  237    254   
    #[::tracing_test::traced_test]
  238    255   
    async fn rest_json_lists_request() {
  239    256   
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  240    257   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  241    258   
@@ -437,454 +566,642 @@
  457    474   
            parsed.nested_string_list,
  458    475   
            expected_output.nested_string_list,
  459    476   
            "Unexpected value for `nested_string_list`"
  460    477   
        );
  461    478   
        ::pretty_assertions::assert_eq!(
  462    479   
            parsed.structure_list,
  463    480   
            expected_output.structure_list,
  464    481   
            "Unexpected value for `structure_list`"
  465    482   
        );
  466    483   
    }
         484  +
         485  +
    /* ProtocolTestGenerator.kt:98 */
  467    486   
}
  468    487   
         488  +
/* OperationErrorGenerator.kt:79 */
  469    489   
/// Error type for the `JsonListsError` operation.
         490  +
/* RustType.kt:516 */
  470    491   
#[non_exhaustive]
         492  +
/* RustType.kt:516 */
  471    493   
#[derive(::std::fmt::Debug)]
  472         -
pub enum JsonListsError {
         494  +
pub /* OperationErrorGenerator.kt:81 */ enum JsonListsError {
         495  +
    /* OperationErrorGenerator.kt:88 */
  473    496   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  474    497   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  475    498   
    variable wildcard pattern and check `.code()`:
  476    499   
     \
  477    500   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  478    501   
     \
  479    502   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-JsonListsError) for what information is available for the error.")]
  480    503   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         504  +
    /* OperationErrorGenerator.kt:81 */
  481    505   
}
         506  +
/* OperationErrorGenerator.kt:218 */
  482    507   
impl JsonListsError {
         508  +
    /* OperationErrorGenerator.kt:219 */
  483    509   
    /// Creates the `JsonListsError::Unhandled` variant from any error type.
  484    510   
    pub fn unhandled(
  485    511   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  486    512   
    ) -> Self {
  487    513   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  488    514   
            source: err.into(),
  489    515   
            meta: ::std::default::Default::default(),
  490    516   
        })
  491    517   
    }
  492    518   
  493    519   
    /// Creates the `JsonListsError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  494    520   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  495    521   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  496    522   
            source: err.clone().into(),
  497    523   
            meta: err,
  498    524   
        })
  499    525   
    }
  500         -
    ///
         526  +
    /// /* OperationErrorGenerator.kt:236 */
  501    527   
    /// Returns error metadata, which includes the error code, message,
  502    528   
    /// request ID, and potentially additional information.
  503    529   
    ///
         530  +
    /* OperationErrorGenerator.kt:242 */
  504    531   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         532  +
        /* OperationErrorGenerator.kt:243 */
  505    533   
        match self {
  506         -
            Self::Unhandled(e) => &e.meta,
         534  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         535  +
            /* OperationErrorGenerator.kt:243 */
  507    536   
        }
         537  +
        /* OperationErrorGenerator.kt:242 */
  508    538   
    }
         539  +
    /* OperationErrorGenerator.kt:218 */
  509    540   
}
         541  +
/* OperationErrorGenerator.kt:269 */
  510    542   
impl ::std::error::Error for JsonListsError {
         543  +
    /* OperationErrorGenerator.kt:270 */
  511    544   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         545  +
        /* OperationErrorGenerator.kt:318 */
  512    546   
        match self {
  513         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         547  +
            /* OperationErrorGenerator.kt:326 */
         548  +
            Self::Unhandled(_inner) => {
         549  +
                /* OperationErrorGenerator.kt:279 */
         550  +
                ::std::option::Option::Some(&*_inner.source)
         551  +
                /* OperationErrorGenerator.kt:326 */
         552  +
            } /* OperationErrorGenerator.kt:318 */
  514    553   
        }
         554  +
        /* OperationErrorGenerator.kt:270 */
  515    555   
    }
         556  +
    /* OperationErrorGenerator.kt:269 */
  516    557   
}
         558  +
/* OperationErrorGenerator.kt:133 */
  517    559   
impl ::std::fmt::Display for JsonListsError {
         560  +
    /* OperationErrorGenerator.kt:134 */
  518    561   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         562  +
        /* OperationErrorGenerator.kt:318 */
  519    563   
        match self {
         564  +
            /* OperationErrorGenerator.kt:326 */
  520    565   
            Self::Unhandled(_inner) => {
         566  +
                /* OperationErrorGenerator.kt:139 */
  521    567   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  522    568   
                    write!(f, "unhandled error ({code})")
  523    569   
                } else {
  524    570   
                    f.write_str("unhandled error")
  525    571   
                }
         572  +
                /* OperationErrorGenerator.kt:326 */
         573  +
            } /* OperationErrorGenerator.kt:318 */
  526    574   
        }
         575  +
        /* OperationErrorGenerator.kt:134 */
  527    576   
    }
  528         -
    }
         577  +
    /* OperationErrorGenerator.kt:133 */
  529    578   
}
         579  +
/* OperationErrorGenerator.kt:182 */
  530    580   
impl ::aws_smithy_types::retry::ProvideErrorKind for JsonListsError {
         581  +
    /* OperationErrorGenerator.kt:186 */
  531    582   
    fn code(&self) -> ::std::option::Option<&str> {
         583  +
        /* OperationErrorGenerator.kt:187 */
  532    584   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         585  +
        /* OperationErrorGenerator.kt:186 */
  533    586   
    }
         587  +
    /* OperationErrorGenerator.kt:190 */
  534    588   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         589  +
        /* OperationErrorGenerator.kt:197 */
  535    590   
        ::std::option::Option::None
         591  +
        /* OperationErrorGenerator.kt:190 */
  536    592   
    }
         593  +
    /* OperationErrorGenerator.kt:182 */
  537    594   
}
         595  +
/* OperationErrorGenerator.kt:163 */
  538    596   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for JsonListsError {
         597  +
    /* OperationErrorGenerator.kt:164 */
  539    598   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         599  +
        /* OperationErrorGenerator.kt:318 */
  540    600   
        match self {
  541         -
            Self::Unhandled(_inner) => &_inner.meta,
         601  +
            /* OperationErrorGenerator.kt:326 */
         602  +
            Self::Unhandled(_inner) => {
         603  +
                /* OperationErrorGenerator.kt:168 */
         604  +
                &_inner.meta
         605  +
                /* OperationErrorGenerator.kt:326 */
         606  +
            } /* OperationErrorGenerator.kt:318 */
  542    607   
        }
         608  +
        /* OperationErrorGenerator.kt:164 */
  543    609   
    }
         610  +
    /* OperationErrorGenerator.kt:163 */
  544    611   
}
         612  +
/* OperationErrorGenerator.kt:109 */
  545    613   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for JsonListsError {
         614  +
    /* OperationErrorGenerator.kt:110 */
  546    615   
    fn create_unhandled_error(
  547    616   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  548    617   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  549    618   
    ) -> Self {
         619  +
        /* OperationErrorGenerator.kt:121 */
  550    620   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  551    621   
            source,
  552    622   
            meta: meta.unwrap_or_default(),
  553    623   
        })
         624  +
        /* OperationErrorGenerator.kt:110 */
  554    625   
    }
         626  +
    /* OperationErrorGenerator.kt:109 */
  555    627   
}
  556    628   
         629  +
/* CodegenDelegator.kt:255 */
  557    630   
pub use crate::operation::json_lists::_json_lists_output::JsonListsOutput;
  558    631   
         632  +
/* CodegenDelegator.kt:255 */
  559    633   
pub use crate::operation::json_lists::_json_lists_input::JsonListsInput;
  560    634   
         635  +
/* RustModule.kt:172 */
  561    636   
mod _json_lists_input;
  562    637   
         638  +
/* RustModule.kt:172 */
  563    639   
mod _json_lists_output;
  564    640   
  565         -
/// Builders
         641  +
/// /* CodegenDelegator.kt:51 */Builders
  566    642   
pub mod builders;

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

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

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

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