Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/operation/rpc_v2_cbor_lists/_rpc_v2_cbor_lists_input.rs

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

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/operation/rpc_v2_cbor_lists/_rpc_v2_cbor_lists_output.rs

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

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/operation/rpc_v2_cbor_lists/builders.rs

@@ -1,1 +301,370 @@
    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::rpc_v2_cbor_lists::_rpc_v2_cbor_lists_output::RpcV2CborListsOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::rpc_v2_cbor_lists::_rpc_v2_cbor_lists_input::RpcV2CborListsInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::rpc_v2_cbor_lists::builders::RpcV2CborListsInputBuilder {
    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::rpc_v2_cbor_lists::RpcV2CborListsOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::rpc_v2_cbor_lists::RpcV2CborListsError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.rpc_v2_cbor_lists();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `RpcV2CborLists`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `RpcV2CborLists`.
   24     27   
///
   25         -
/// This test case serializes JSON lists for the following cases for both input and output: 1. Normal lists. 2. Normal sets. 3. Lists of lists. 4. Lists of structures.
          28  +
/// /* FluentBuilderGenerator.kt:130 */This test case serializes JSON lists for the following cases for both input and output: 1. Normal lists. 2. Normal sets. 3. Lists of lists. 4. Lists of structures.
          29  +
/* RustType.kt:516 */
   26     30   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          31  +
/* FluentBuilderGenerator.kt:270 */
   27     32   
pub struct RpcV2CborListsFluentBuilder {
   28     33   
    handle: ::std::sync::Arc<crate::client::Handle>,
   29     34   
    inner: crate::operation::rpc_v2_cbor_lists::builders::RpcV2CborListsInputBuilder,
   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::rpc_v2_cbor_lists::RpcV2CborListsOutput,
   35     41   
        crate::operation::rpc_v2_cbor_lists::RpcV2CborListsError,
   36     42   
    > for RpcV2CborListsFluentBuilder
   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::rpc_v2_cbor_lists::RpcV2CborListsOutput,
   44     50   
            crate::operation::rpc_v2_cbor_lists::RpcV2CborListsError,
   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 RpcV2CborListsFluentBuilder {
          58  +
    /* FluentBuilderGenerator.kt:288 */
   51     59   
    /// Creates a new `RpcV2CborListsFluentBuilder`.
   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 RpcV2CborLists as a reference.
   60     69   
    pub fn as_input(&self) -> &crate::operation::rpc_v2_cbor_lists::builders::RpcV2CborListsInputBuilder {
   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::rpc_v2_cbor_lists::RpcV2CborListsOutput,
   75     85   
        ::aws_smithy_runtime_api::client::result::SdkError<
   76     86   
            crate::operation::rpc_v2_cbor_lists::RpcV2CborListsError,
   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::rpc_v2_cbor_lists::RpcV2CborLists::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::rpc_v2_cbor_lists::RpcV2CborLists::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::rpc_v2_cbor_lists::RpcV2CborListsOutput,
   97    107   
        crate::operation::rpc_v2_cbor_lists::RpcV2CborListsError,
   98    108   
        Self,
   99    109   
    > {
  100    110   
        crate::client::customize::CustomizableOperation::new(self)
  101    111   
    }
         112  +
    /* FluentBuilderGenerator.kt:315 */
  102    113   
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
  103    114   
        self.set_config_override(::std::option::Option::Some(config_override.into()));
  104    115   
        self
  105    116   
    }
  106    117   
  107    118   
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
  108    119   
        self.config_override = config_override;
  109    120   
        self
  110    121   
    }
  111         -
    ///
         122  +
    /// /* FluentBuilderGenerator.kt:436 */
  112    123   
    /// Appends an item to `stringList`.
  113    124   
    ///
  114    125   
    /// To override the contents of this collection use [`set_string_list`](Self::set_string_list).
  115    126   
    ///
         127  +
    /* FluentBuilderGenerator.kt:443 */
  116    128   
    #[allow(missing_docs)] // documentation missing in model
         129  +
                           /* FluentBuilderGenerator.kt:446 */
  117    130   
    pub fn string_list(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  118    131   
        self.inner = self.inner.string_list(input.into());
  119    132   
        self
  120    133   
    }
         134  +
    /* FluentBuilderGenerator.kt:498 */
  121    135   
    #[allow(missing_docs)] // documentation missing in model
         136  +
                           /* FluentBuilderGenerator.kt:500 */
  122    137   
    pub fn set_string_list(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
  123    138   
        self.inner = self.inner.set_string_list(input);
  124    139   
        self
  125    140   
    }
         141  +
    /* FluentBuilderGenerator.kt:518 */
  126    142   
    #[allow(missing_docs)] // documentation missing in model
         143  +
                           /* FluentBuilderGenerator.kt:520 */
  127    144   
    pub fn get_string_list(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
  128    145   
        self.inner.get_string_list()
  129    146   
    }
  130         -
    ///
         147  +
    /// /* FluentBuilderGenerator.kt:436 */
  131    148   
    /// Appends an item to `stringSet`.
  132    149   
    ///
  133    150   
    /// To override the contents of this collection use [`set_string_set`](Self::set_string_set).
  134    151   
    ///
         152  +
    /* FluentBuilderGenerator.kt:443 */
  135    153   
    #[allow(missing_docs)] // documentation missing in model
         154  +
                           /* FluentBuilderGenerator.kt:446 */
  136    155   
    pub fn string_set(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  137    156   
        self.inner = self.inner.string_set(input.into());
  138    157   
        self
  139    158   
    }
         159  +
    /* FluentBuilderGenerator.kt:498 */
  140    160   
    #[allow(missing_docs)] // documentation missing in model
         161  +
                           /* FluentBuilderGenerator.kt:500 */
  141    162   
    pub fn set_string_set(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
  142    163   
        self.inner = self.inner.set_string_set(input);
  143    164   
        self
  144    165   
    }
         166  +
    /* FluentBuilderGenerator.kt:518 */
  145    167   
    #[allow(missing_docs)] // documentation missing in model
         168  +
                           /* FluentBuilderGenerator.kt:520 */
  146    169   
    pub fn get_string_set(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
  147    170   
        self.inner.get_string_set()
  148    171   
    }
  149         -
    ///
         172  +
    /// /* FluentBuilderGenerator.kt:436 */
  150    173   
    /// Appends an item to `integerList`.
  151    174   
    ///
  152    175   
    /// To override the contents of this collection use [`set_integer_list`](Self::set_integer_list).
  153    176   
    ///
         177  +
    /* FluentBuilderGenerator.kt:443 */
  154    178   
    #[allow(missing_docs)] // documentation missing in model
         179  +
                           /* FluentBuilderGenerator.kt:446 */
  155    180   
    pub fn integer_list(mut self, input: i32) -> Self {
  156    181   
        self.inner = self.inner.integer_list(input);
  157    182   
        self
  158    183   
    }
         184  +
    /* FluentBuilderGenerator.kt:498 */
  159    185   
    #[allow(missing_docs)] // documentation missing in model
         186  +
                           /* FluentBuilderGenerator.kt:500 */
  160    187   
    pub fn set_integer_list(mut self, input: ::std::option::Option<::std::vec::Vec<i32>>) -> Self {
  161    188   
        self.inner = self.inner.set_integer_list(input);
  162    189   
        self
  163    190   
    }
         191  +
    /* FluentBuilderGenerator.kt:518 */
  164    192   
    #[allow(missing_docs)] // documentation missing in model
         193  +
                           /* FluentBuilderGenerator.kt:520 */
  165    194   
    pub fn get_integer_list(&self) -> &::std::option::Option<::std::vec::Vec<i32>> {
  166    195   
        self.inner.get_integer_list()
  167    196   
    }
  168         -
    ///
         197  +
    /// /* FluentBuilderGenerator.kt:436 */
  169    198   
    /// Appends an item to `booleanList`.
  170    199   
    ///
  171    200   
    /// To override the contents of this collection use [`set_boolean_list`](Self::set_boolean_list).
  172    201   
    ///
         202  +
    /* FluentBuilderGenerator.kt:443 */
  173    203   
    #[allow(missing_docs)] // documentation missing in model
         204  +
                           /* FluentBuilderGenerator.kt:446 */
  174    205   
    pub fn boolean_list(mut self, input: bool) -> Self {
  175    206   
        self.inner = self.inner.boolean_list(input);
  176    207   
        self
  177    208   
    }
         209  +
    /* FluentBuilderGenerator.kt:498 */
  178    210   
    #[allow(missing_docs)] // documentation missing in model
         211  +
                           /* FluentBuilderGenerator.kt:500 */
  179    212   
    pub fn set_boolean_list(mut self, input: ::std::option::Option<::std::vec::Vec<bool>>) -> Self {
  180    213   
        self.inner = self.inner.set_boolean_list(input);
  181    214   
        self
  182    215   
    }
         216  +
    /* FluentBuilderGenerator.kt:518 */
  183    217   
    #[allow(missing_docs)] // documentation missing in model
         218  +
                           /* FluentBuilderGenerator.kt:520 */
  184    219   
    pub fn get_boolean_list(&self) -> &::std::option::Option<::std::vec::Vec<bool>> {
  185    220   
        self.inner.get_boolean_list()
  186    221   
    }
  187         -
    ///
         222  +
    /// /* FluentBuilderGenerator.kt:436 */
  188    223   
    /// Appends an item to `timestampList`.
  189    224   
    ///
  190    225   
    /// To override the contents of this collection use [`set_timestamp_list`](Self::set_timestamp_list).
  191    226   
    ///
         227  +
    /* FluentBuilderGenerator.kt:443 */
  192    228   
    #[allow(missing_docs)] // documentation missing in model
         229  +
                           /* FluentBuilderGenerator.kt:446 */
  193    230   
    pub fn timestamp_list(mut self, input: ::aws_smithy_types::DateTime) -> Self {
  194    231   
        self.inner = self.inner.timestamp_list(input);
  195    232   
        self
  196    233   
    }
         234  +
    /* FluentBuilderGenerator.kt:498 */
  197    235   
    #[allow(missing_docs)] // documentation missing in model
         236  +
                           /* FluentBuilderGenerator.kt:500 */
  198    237   
    pub fn set_timestamp_list(mut self, input: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>) -> Self {
  199    238   
        self.inner = self.inner.set_timestamp_list(input);
  200    239   
        self
  201    240   
    }
         241  +
    /* FluentBuilderGenerator.kt:518 */
  202    242   
    #[allow(missing_docs)] // documentation missing in model
         243  +
                           /* FluentBuilderGenerator.kt:520 */
  203    244   
    pub fn get_timestamp_list(&self) -> &::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>> {
  204    245   
        self.inner.get_timestamp_list()
  205    246   
    }
  206         -
    ///
         247  +
    /// /* FluentBuilderGenerator.kt:436 */
  207    248   
    /// Appends an item to `enumList`.
  208    249   
    ///
  209    250   
    /// To override the contents of this collection use [`set_enum_list`](Self::set_enum_list).
  210    251   
    ///
         252  +
    /* FluentBuilderGenerator.kt:443 */
  211    253   
    #[allow(missing_docs)] // documentation missing in model
         254  +
                           /* FluentBuilderGenerator.kt:446 */
  212    255   
    pub fn enum_list(mut self, input: crate::types::FooEnum) -> Self {
  213    256   
        self.inner = self.inner.enum_list(input);
  214    257   
        self
  215    258   
    }
         259  +
    /* FluentBuilderGenerator.kt:498 */
  216    260   
    #[allow(missing_docs)] // documentation missing in model
         261  +
                           /* FluentBuilderGenerator.kt:500 */
  217    262   
    pub fn set_enum_list(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::FooEnum>>) -> Self {
  218    263   
        self.inner = self.inner.set_enum_list(input);
  219    264   
        self
  220    265   
    }
         266  +
    /* FluentBuilderGenerator.kt:518 */
  221    267   
    #[allow(missing_docs)] // documentation missing in model
         268  +
                           /* FluentBuilderGenerator.kt:520 */
  222    269   
    pub fn get_enum_list(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::FooEnum>> {
  223    270   
        self.inner.get_enum_list()
  224    271   
    }
  225         -
    ///
         272  +
    /// /* FluentBuilderGenerator.kt:436 */
  226    273   
    /// Appends an item to `intEnumList`.
  227    274   
    ///
  228    275   
    /// To override the contents of this collection use [`set_int_enum_list`](Self::set_int_enum_list).
  229    276   
    ///
         277  +
    /* FluentBuilderGenerator.kt:443 */
  230    278   
    #[allow(missing_docs)] // documentation missing in model
         279  +
                           /* FluentBuilderGenerator.kt:446 */
  231    280   
    pub fn int_enum_list(mut self, input: i32) -> Self {
  232    281   
        self.inner = self.inner.int_enum_list(input);
  233    282   
        self
  234    283   
    }
         284  +
    /* FluentBuilderGenerator.kt:498 */
  235    285   
    #[allow(missing_docs)] // documentation missing in model
         286  +
                           /* FluentBuilderGenerator.kt:500 */
  236    287   
    pub fn set_int_enum_list(mut self, input: ::std::option::Option<::std::vec::Vec<i32>>) -> Self {
  237    288   
        self.inner = self.inner.set_int_enum_list(input);
  238    289   
        self
  239    290   
    }
         291  +
    /* FluentBuilderGenerator.kt:518 */
  240    292   
    #[allow(missing_docs)] // documentation missing in model
         293  +
                           /* FluentBuilderGenerator.kt:520 */
  241    294   
    pub fn get_int_enum_list(&self) -> &::std::option::Option<::std::vec::Vec<i32>> {
  242    295   
        self.inner.get_int_enum_list()
  243    296   
    }
  244         -
    ///
         297  +
    /// /* FluentBuilderGenerator.kt:436 */
  245    298   
    /// Appends an item to `nestedStringList`.
  246    299   
    ///
  247    300   
    /// To override the contents of this collection use [`set_nested_string_list`](Self::set_nested_string_list).
  248    301   
    ///
  249         -
    /// A list of lists of strings.
         302  +
    /// /* FluentBuilderGenerator.kt:443 */A list of lists of strings.
         303  +
    /* FluentBuilderGenerator.kt:446 */
  250    304   
    pub fn nested_string_list(mut self, input: ::std::vec::Vec<::std::string::String>) -> Self {
  251    305   
        self.inner = self.inner.nested_string_list(input);
  252    306   
        self
  253    307   
    }
  254         -
    /// A list of lists of strings.
         308  +
    /// /* FluentBuilderGenerator.kt:498 */A list of lists of strings.
         309  +
    /* FluentBuilderGenerator.kt:500 */
  255    310   
    pub fn set_nested_string_list(mut self, input: ::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>) -> Self {
  256    311   
        self.inner = self.inner.set_nested_string_list(input);
  257    312   
        self
  258    313   
    }
  259         -
    /// A list of lists of strings.
         314  +
    /// /* FluentBuilderGenerator.kt:518 */A list of lists of strings.
         315  +
    /* FluentBuilderGenerator.kt:520 */
  260    316   
    pub fn get_nested_string_list(&self) -> &::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>> {
  261    317   
        self.inner.get_nested_string_list()
  262    318   
    }
  263         -
    ///
         319  +
    /// /* FluentBuilderGenerator.kt:436 */
  264    320   
    /// Appends an item to `structureList`.
  265    321   
    ///
  266    322   
    /// To override the contents of this collection use [`set_structure_list`](Self::set_structure_list).
  267    323   
    ///
         324  +
    /* FluentBuilderGenerator.kt:443 */
  268    325   
    #[allow(missing_docs)] // documentation missing in model
         326  +
                           /* FluentBuilderGenerator.kt:446 */
  269    327   
    pub fn structure_list(mut self, input: crate::types::StructureListMember) -> Self {
  270    328   
        self.inner = self.inner.structure_list(input);
  271    329   
        self
  272    330   
    }
         331  +
    /* FluentBuilderGenerator.kt:498 */
  273    332   
    #[allow(missing_docs)] // documentation missing in model
         333  +
                           /* FluentBuilderGenerator.kt:500 */
  274    334   
    pub fn set_structure_list(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::StructureListMember>>) -> Self {
  275    335   
        self.inner = self.inner.set_structure_list(input);
  276    336   
        self
  277    337   
    }
         338  +
    /* FluentBuilderGenerator.kt:518 */
  278    339   
    #[allow(missing_docs)] // documentation missing in model
         340  +
                           /* FluentBuilderGenerator.kt:520 */
  279    341   
    pub fn get_structure_list(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::StructureListMember>> {
  280    342   
        self.inner.get_structure_list()
  281    343   
    }
  282         -
    ///
         344  +
    /// /* FluentBuilderGenerator.kt:436 */
  283    345   
    /// Appends an item to `blobList`.
  284    346   
    ///
  285    347   
    /// To override the contents of this collection use [`set_blob_list`](Self::set_blob_list).
  286    348   
    ///
         349  +
    /* FluentBuilderGenerator.kt:443 */
  287    350   
    #[allow(missing_docs)] // documentation missing in model
         351  +
                           /* FluentBuilderGenerator.kt:446 */
  288    352   
    pub fn blob_list(mut self, input: ::aws_smithy_types::Blob) -> Self {
  289    353   
        self.inner = self.inner.blob_list(input);
  290    354   
        self
  291    355   
    }
         356  +
    /* FluentBuilderGenerator.kt:498 */
  292    357   
    #[allow(missing_docs)] // documentation missing in model
         358  +
                           /* FluentBuilderGenerator.kt:500 */
  293    359   
    pub fn set_blob_list(mut self, input: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::Blob>>) -> Self {
  294    360   
        self.inner = self.inner.set_blob_list(input);
  295    361   
        self
  296    362   
    }
         363  +
    /* FluentBuilderGenerator.kt:518 */
  297    364   
    #[allow(missing_docs)] // documentation missing in model
         365  +
                           /* FluentBuilderGenerator.kt:520 */
  298    366   
    pub fn get_blob_list(&self) -> &::std::option::Option<::std::vec::Vec<::aws_smithy_types::Blob>> {
  299    367   
        self.inner.get_blob_list()
  300    368   
    }
         369  +
    /* FluentBuilderGenerator.kt:282 */
  301    370   
}

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/operation/rpc_v2_cbor_sparse_maps.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 `RpcV2CborSparseMaps`.
           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 RpcV2CborSparseMaps;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl RpcV2CborSparseMaps {
    7         -
    /// Creates a new `RpcV2CborSparseMaps`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `RpcV2CborSparseMaps`
          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::rpc_v2_cbor_sparse_maps::RpcV2CborSparseMapsInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::rpc_v2_cbor_sparse_maps::RpcV2CborSparseMapsOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::rpc_v2_cbor_sparse_maps::RpcV2CborSparseMapsError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -57,66 +269,286 @@
   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 RpcV2CborSparseMaps {
   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("RpcV2CborSparseMaps");
   91    102   
   92    103   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   93    104   
            RpcV2CborSparseMapsRequestSerializer,
   94    105   
        ));
   95    106   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
   96    107   
            RpcV2CborSparseMapsResponseDeserializer,
   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   
            "RpcV2CborSparseMaps",
  105    116   
            "RpcV2Protocol",
  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("RpcV2CborSparseMaps")
  117    128   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  118    129   
            .with_interceptor(RpcV2CborSparseMapsEndpointParamsInterceptor)
  119    130   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  120    131   
                crate::operation::rpc_v2_cbor_sparse_maps::RpcV2CborSparseMapsError,
  121    132   
            >::new())
  122    133   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  123    134   
                crate::operation::rpc_v2_cbor_sparse_maps::RpcV2CborSparseMapsError,
  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 RpcV2CborSparseMapsResponseDeserializer;
  132    144   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for RpcV2CborSparseMapsResponseDeserializer {
  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_rpc_v2_cbor_sparse_maps::de_rpc_v2_cbor_sparse_maps_http_error(status, headers, body)
  145    157   
        } else {
  146    158   
            crate::protocol_serde::shape_rpc_v2_cbor_sparse_maps::de_rpc_v2_cbor_sparse_maps_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 RpcV2CborSparseMapsRequestSerializer;
  153    166   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for RpcV2CborSparseMapsRequestSerializer {
  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
  161    174   
            .downcast::<crate::operation::rpc_v2_cbor_sparse_maps::RpcV2CborSparseMapsInput>()
  162    175   
            .expect("correct type");
  163    176   
        let _header_serialization_settings = _cfg
  164    177   
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  165    178   
            .cloned()
  166    179   
            .unwrap_or_default();
  167    180   
        let mut request_builder = {
  168    181   
            fn uri_base(
  169    182   
                _input: &crate::operation::rpc_v2_cbor_sparse_maps::RpcV2CborSparseMapsInput,
  170    183   
                output: &mut ::std::string::String,
  171    184   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  172    185   
                use ::std::fmt::Write as _;
  173    186   
                ::std::write!(output, "/service/RpcV2Protocol/operation/RpcV2CborSparseMaps").expect("formatting should succeed");
  174    187   
                ::std::result::Result::Ok(())
  175    188   
            }
  176    189   
            #[allow(clippy::unnecessary_wraps)]
  177    190   
            fn update_http_builder(
  178    191   
                input: &crate::operation::rpc_v2_cbor_sparse_maps::RpcV2CborSparseMapsInput,
  179    192   
                builder: ::http::request::Builder,
  180    193   
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  181    194   
                let mut uri = ::std::string::String::new();
  182    195   
                uri_base(input, &mut uri)?;
  183    196   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  184    197   
            }
  185    198   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  186    199   
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/cbor");
  187    200   
            builder =
  188    201   
                _header_serialization_settings.set_default_header(builder, ::http::header::HeaderName::from_static("smithy-protocol"), "rpc-v2-cbor");
  189    202   
            builder =
  190    203   
                _header_serialization_settings.set_default_header(builder, ::http::header::HeaderName::from_static("accept"), "application/cbor");
  191    204   
            builder
  192    205   
        };
  193    206   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_rpc_v2_cbor_sparse_maps::ser_rpc_v2_cbor_sparse_maps_input(
  194    207   
            &input,
  195    208   
        )?);
  196    209   
        if let Some(content_length) = body.content_length() {
  197    210   
            let content_length = content_length.to_string();
  198    211   
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
  199    212   
        }
  200    213   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  201    214   
    }
  202    215   
}
         216  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  203    217   
#[derive(Debug)]
  204    218   
struct RpcV2CborSparseMapsEndpointParamsInterceptor;
  205    219   
  206    220   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for RpcV2CborSparseMapsEndpointParamsInterceptor {
  207    221   
    fn name(&self) -> &'static str {
  208    222   
        "RpcV2CborSparseMapsEndpointParamsInterceptor"
  209    223   
    }
  210    224   
  211    225   
    fn read_before_execution(
  212    226   
        &self,
  213    227   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  214    228   
            '_,
  215    229   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  216    230   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  217    231   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  218    232   
        >,
  219    233   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  220    234   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  221    235   
        let _input = context
  222    236   
            .input()
  223    237   
            .downcast_ref::<RpcV2CborSparseMapsInput>()
  224    238   
            .ok_or("failed to downcast to RpcV2CborSparseMapsInput")?;
  225    239   
  226    240   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  227    241   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  228    242   
        })?;
  229    243   
        cfg.interceptor_state()
  230    244   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  231    245   
        ::std::result::Result::Ok(())
  232    246   
    }
  233    247   
}
  234    248   
  235    249   
// The get_* functions below are generated from JMESPath expressions in the
  236    250   
// operationContextParams trait. They target the operation's input shape.
  237    251   
         252  +
/* RustType.kt:516 */
  238    253   
#[allow(unreachable_code, unused_variables)]
         254  +
/* RustType.kt:516 */
  239    255   
#[cfg(test)]
         256  +
/* ProtocolTestGenerator.kt:98 */
  240    257   
mod rpc_v2_cbor_sparse_maps_test {
  241    258   
  242    259   
    /// Serializes sparse maps
  243    260   
    /// Test ID: RpcV2CborSparseMaps
  244    261   
    #[::tokio::test]
  245    262   
    #[::tracing_test::traced_test]
  246    263   
    async fn rpc_v2_cbor_sparse_maps_request() {
  247    264   
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  248    265   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  249    266   
@@ -843,860 +982,1081 @@
  863    880   
            parsed.sparse_string_map,
  864    881   
            expected_output.sparse_string_map,
  865    882   
            "Unexpected value for `sparse_string_map`"
  866    883   
        );
  867    884   
        ::pretty_assertions::assert_eq!(
  868    885   
            parsed.sparse_set_map,
  869    886   
            expected_output.sparse_set_map,
  870    887   
            "Unexpected value for `sparse_set_map`"
  871    888   
        );
  872    889   
    }
         890  +
         891  +
    /* ProtocolTestGenerator.kt:98 */
  873    892   
}
  874    893   
         894  +
/* OperationErrorGenerator.kt:79 */
  875    895   
/// Error type for the `RpcV2CborSparseMapsError` operation.
         896  +
/* RustType.kt:516 */
  876    897   
#[non_exhaustive]
         898  +
/* RustType.kt:516 */
  877    899   
#[derive(::std::fmt::Debug)]
  878         -
pub enum RpcV2CborSparseMapsError {
  879         -
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
         900  +
pub /* OperationErrorGenerator.kt:81 */ enum RpcV2CborSparseMapsError {
         901  +
    /// /* OperationErrorGenerator.kt:83 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
         902  +
    /* OperationErrorGenerator.kt:86 */
  880    903   
    ValidationError(crate::types::error::ValidationError),
         904  +
    /* OperationErrorGenerator.kt:88 */
  881    905   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  882    906   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  883    907   
    variable wildcard pattern and check `.code()`:
  884    908   
     \
  885    909   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  886    910   
     \
  887    911   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-RpcV2CborSparseMapsError) for what information is available for the error.")]
  888    912   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         913  +
    /* OperationErrorGenerator.kt:81 */
  889    914   
}
         915  +
/* OperationErrorGenerator.kt:218 */
  890    916   
impl RpcV2CborSparseMapsError {
         917  +
    /* OperationErrorGenerator.kt:219 */
  891    918   
    /// Creates the `RpcV2CborSparseMapsError::Unhandled` variant from any error type.
  892    919   
    pub fn unhandled(
  893    920   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  894    921   
    ) -> Self {
  895    922   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  896    923   
            source: err.into(),
  897    924   
            meta: ::std::default::Default::default(),
  898    925   
        })
  899    926   
    }
  900    927   
  901    928   
    /// Creates the `RpcV2CborSparseMapsError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  902    929   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  903    930   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  904    931   
            source: err.clone().into(),
  905    932   
            meta: err,
  906    933   
        })
  907    934   
    }
  908         -
    ///
         935  +
    /// /* OperationErrorGenerator.kt:236 */
  909    936   
    /// Returns error metadata, which includes the error code, message,
  910    937   
    /// request ID, and potentially additional information.
  911    938   
    ///
         939  +
    /* OperationErrorGenerator.kt:242 */
  912    940   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         941  +
        /* OperationErrorGenerator.kt:243 */
  913    942   
        match self {
  914         -
            Self::ValidationError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
  915         -
            Self::Unhandled(e) => &e.meta,
         943  +
            /* OperationErrorGenerator.kt:246 */ Self::ValidationError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         944  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         945  +
            /* OperationErrorGenerator.kt:243 */
  916    946   
        }
         947  +
        /* OperationErrorGenerator.kt:242 */
  917    948   
    }
         949  +
    /* OperationErrorGenerator.kt:257 */
  918    950   
    /// Returns `true` if the error kind is `RpcV2CborSparseMapsError::ValidationError`.
         951  +
    /* OperationErrorGenerator.kt:258 */
  919    952   
    pub fn is_validation_error(&self) -> bool {
         953  +
        /* OperationErrorGenerator.kt:259 */
  920    954   
        matches!(self, Self::ValidationError(_))
         955  +
        /* OperationErrorGenerator.kt:258 */
  921    956   
    }
         957  +
    /* OperationErrorGenerator.kt:218 */
  922    958   
}
         959  +
/* OperationErrorGenerator.kt:269 */
  923    960   
impl ::std::error::Error for RpcV2CborSparseMapsError {
         961  +
    /* OperationErrorGenerator.kt:270 */
  924    962   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         963  +
        /* OperationErrorGenerator.kt:318 */
  925    964   
        match self {
  926         -
            Self::ValidationError(_inner) => ::std::option::Option::Some(_inner),
  927         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         965  +
            /* OperationErrorGenerator.kt:321 */
         966  +
            Self::ValidationError(_inner) =>
         967  +
            /* OperationErrorGenerator.kt:283 */
         968  +
            {
         969  +
                ::std::option::Option::Some(_inner)
         970  +
            }
         971  +
            ,
         972  +
            /* OperationErrorGenerator.kt:326 */
         973  +
            Self::Unhandled(_inner) => {
         974  +
                /* OperationErrorGenerator.kt:279 */
         975  +
                ::std::option::Option::Some(&*_inner.source)
         976  +
                /* OperationErrorGenerator.kt:326 */
         977  +
            } /* OperationErrorGenerator.kt:318 */
  928    978   
        }
         979  +
        /* OperationErrorGenerator.kt:270 */
  929    980   
    }
         981  +
    /* OperationErrorGenerator.kt:269 */
  930    982   
}
         983  +
/* OperationErrorGenerator.kt:133 */
  931    984   
impl ::std::fmt::Display for RpcV2CborSparseMapsError {
         985  +
    /* OperationErrorGenerator.kt:134 */
  932    986   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         987  +
        /* OperationErrorGenerator.kt:318 */
  933    988   
        match self {
  934         -
            Self::ValidationError(_inner) => _inner.fmt(f),
         989  +
            /* OperationErrorGenerator.kt:321 */
         990  +
            Self::ValidationError(_inner) =>
         991  +
            /* OperationErrorGenerator.kt:151 */
         992  +
            {
         993  +
                _inner.fmt(f)
         994  +
            }
         995  +
            ,
         996  +
            /* OperationErrorGenerator.kt:326 */
  935    997   
            Self::Unhandled(_inner) => {
         998  +
                /* OperationErrorGenerator.kt:139 */
  936    999   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  937   1000   
                    write!(f, "unhandled error ({code})")
  938   1001   
                } else {
  939   1002   
                    f.write_str("unhandled error")
  940   1003   
                }
        1004  +
                /* OperationErrorGenerator.kt:326 */
        1005  +
            } /* OperationErrorGenerator.kt:318 */
  941   1006   
        }
        1007  +
        /* OperationErrorGenerator.kt:134 */
  942   1008   
    }
  943         -
    }
        1009  +
    /* OperationErrorGenerator.kt:133 */
  944   1010   
}
        1011  +
/* OperationErrorGenerator.kt:182 */
  945   1012   
impl ::aws_smithy_types::retry::ProvideErrorKind for RpcV2CborSparseMapsError {
        1013  +
    /* OperationErrorGenerator.kt:186 */
  946   1014   
    fn code(&self) -> ::std::option::Option<&str> {
        1015  +
        /* OperationErrorGenerator.kt:187 */
  947   1016   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
        1017  +
        /* OperationErrorGenerator.kt:186 */
  948   1018   
    }
        1019  +
    /* OperationErrorGenerator.kt:190 */
  949   1020   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
        1021  +
        /* OperationErrorGenerator.kt:197 */
  950   1022   
        ::std::option::Option::None
        1023  +
        /* OperationErrorGenerator.kt:190 */
  951   1024   
    }
        1025  +
    /* OperationErrorGenerator.kt:182 */
  952   1026   
}
        1027  +
/* OperationErrorGenerator.kt:163 */
  953   1028   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for RpcV2CborSparseMapsError {
        1029  +
    /* OperationErrorGenerator.kt:164 */
  954   1030   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
        1031  +
        /* OperationErrorGenerator.kt:318 */
  955   1032   
        match self {
  956         -
            Self::ValidationError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  957         -
            Self::Unhandled(_inner) => &_inner.meta,
        1033  +
            /* OperationErrorGenerator.kt:321 */
        1034  +
            Self::ValidationError(_inner) =>
        1035  +
            /* OperationErrorGenerator.kt:169 */
        1036  +
            {
        1037  +
                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
        1038  +
            }
        1039  +
            ,
        1040  +
            /* OperationErrorGenerator.kt:326 */
        1041  +
            Self::Unhandled(_inner) => {
        1042  +
                /* OperationErrorGenerator.kt:168 */
        1043  +
                &_inner.meta
        1044  +
                /* OperationErrorGenerator.kt:326 */
        1045  +
            } /* OperationErrorGenerator.kt:318 */
  958   1046   
        }
        1047  +
        /* OperationErrorGenerator.kt:164 */
  959   1048   
    }
        1049  +
    /* OperationErrorGenerator.kt:163 */
  960   1050   
}
        1051  +
/* OperationErrorGenerator.kt:109 */
  961   1052   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for RpcV2CborSparseMapsError {
        1053  +
    /* OperationErrorGenerator.kt:110 */
  962   1054   
    fn create_unhandled_error(
  963   1055   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  964   1056   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  965   1057   
    ) -> Self {
        1058  +
        /* OperationErrorGenerator.kt:121 */
  966   1059   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  967   1060   
            source,
  968   1061   
            meta: meta.unwrap_or_default(),
  969   1062   
        })
        1063  +
        /* OperationErrorGenerator.kt:110 */
  970   1064   
    }
        1065  +
    /* OperationErrorGenerator.kt:109 */
  971   1066   
}
  972   1067   
        1068  +
/* CodegenDelegator.kt:255 */
  973   1069   
pub use crate::operation::rpc_v2_cbor_sparse_maps::_rpc_v2_cbor_sparse_maps_output::RpcV2CborSparseMapsOutput;
  974   1070   
        1071  +
/* CodegenDelegator.kt:255 */
  975   1072   
pub use crate::operation::rpc_v2_cbor_sparse_maps::_rpc_v2_cbor_sparse_maps_input::RpcV2CborSparseMapsInput;
  976   1073   
        1074  +
/* RustModule.kt:172 */
  977   1075   
mod _rpc_v2_cbor_sparse_maps_input;
  978   1076   
        1077  +
/* RustModule.kt:172 */
  979   1078   
mod _rpc_v2_cbor_sparse_maps_output;
  980   1079   
  981         -
/// Builders
        1080  +
/// /* CodegenDelegator.kt:51 */Builders
  982   1081   
pub mod builders;