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_sparse_maps/_rpc_v2_cbor_sparse_maps_input.rs

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

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/operation/rpc_v2_cbor_sparse_maps/_rpc_v2_cbor_sparse_maps_output.rs

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

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

@@ -1,1 +237,279 @@
    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_sparse_maps::_rpc_v2_cbor_sparse_maps_output::RpcV2CborSparseMapsOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::rpc_v2_cbor_sparse_maps::_rpc_v2_cbor_sparse_maps_input::RpcV2CborSparseMapsInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::rpc_v2_cbor_sparse_maps::builders::RpcV2CborSparseMapsInputBuilder {
    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_sparse_maps::RpcV2CborSparseMapsOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::rpc_v2_cbor_sparse_maps::RpcV2CborSparseMapsError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.rpc_v2_cbor_sparse_maps();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `RpcV2CborSparseMaps`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `RpcV2CborSparseMaps`.
   24     27   
///
          28  +
/* RustType.kt:516 */
   25     29   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          30  +
/* FluentBuilderGenerator.kt:270 */
   26     31   
pub struct RpcV2CborSparseMapsFluentBuilder {
   27     32   
    handle: ::std::sync::Arc<crate::client::Handle>,
   28     33   
    inner: crate::operation::rpc_v2_cbor_sparse_maps::builders::RpcV2CborSparseMapsInputBuilder,
   29     34   
    config_override: ::std::option::Option<crate::config::Builder>,
   30     35   
}
          36  +
/* FluentBuilderGenerator.kt:381 */
   31     37   
impl
   32     38   
    crate::client::customize::internal::CustomizableSend<
   33     39   
        crate::operation::rpc_v2_cbor_sparse_maps::RpcV2CborSparseMapsOutput,
   34     40   
        crate::operation::rpc_v2_cbor_sparse_maps::RpcV2CborSparseMapsError,
   35     41   
    > for RpcV2CborSparseMapsFluentBuilder
   36     42   
{
   37     43   
    fn send(
   38     44   
        self,
   39     45   
        config_override: crate::config::Builder,
   40     46   
    ) -> crate::client::customize::internal::BoxFuture<
   41     47   
        crate::client::customize::internal::SendResult<
   42     48   
            crate::operation::rpc_v2_cbor_sparse_maps::RpcV2CborSparseMapsOutput,
   43     49   
            crate::operation::rpc_v2_cbor_sparse_maps::RpcV2CborSparseMapsError,
   44     50   
        >,
   45     51   
    > {
   46     52   
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
   47     53   
    }
   48     54   
}
          55  +
/* FluentBuilderGenerator.kt:282 */
   49     56   
impl RpcV2CborSparseMapsFluentBuilder {
          57  +
    /* FluentBuilderGenerator.kt:288 */
   50     58   
    /// Creates a new `RpcV2CborSparseMapsFluentBuilder`.
   51     59   
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
   52     60   
        Self {
   53     61   
            handle,
   54     62   
            inner: ::std::default::Default::default(),
   55     63   
            config_override: ::std::option::Option::None,
   56     64   
        }
   57     65   
    }
          66  +
    /* FluentBuilderGenerator.kt:301 */
   58     67   
    /// Access the RpcV2CborSparseMaps as a reference.
   59     68   
    pub fn as_input(&self) -> &crate::operation::rpc_v2_cbor_sparse_maps::builders::RpcV2CborSparseMapsInputBuilder {
   60     69   
        &self.inner
   61     70   
    }
          71  +
    /* FluentBuilderGenerator.kt:145 */
   62     72   
    /// Sends the request and returns the response.
   63     73   
    ///
   64     74   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   65     75   
    /// can be matched against.
   66     76   
    ///
   67     77   
    /// By default, any retryable failures will be retried twice. Retry behavior
   68     78   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   69     79   
    /// set when configuring the client.
   70     80   
    pub async fn send(
   71     81   
        self,
   72     82   
    ) -> ::std::result::Result<
   73     83   
        crate::operation::rpc_v2_cbor_sparse_maps::RpcV2CborSparseMapsOutput,
   74     84   
        ::aws_smithy_runtime_api::client::result::SdkError<
   75     85   
            crate::operation::rpc_v2_cbor_sparse_maps::RpcV2CborSparseMapsError,
   76     86   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   77     87   
        >,
   78     88   
    > {
   79     89   
        let input = self
   80     90   
            .inner
   81     91   
            .build()
   82     92   
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
   83     93   
        let runtime_plugins = crate::operation::rpc_v2_cbor_sparse_maps::RpcV2CborSparseMaps::operation_runtime_plugins(
   84     94   
            self.handle.runtime_plugins.clone(),
   85     95   
            &self.handle.conf,
   86     96   
            self.config_override,
   87     97   
        );
   88     98   
        crate::operation::rpc_v2_cbor_sparse_maps::RpcV2CborSparseMaps::orchestrate(&runtime_plugins, input).await
   89     99   
    }
   90    100   
   91    101   
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
   92    102   
    pub fn customize(
   93    103   
        self,
   94    104   
    ) -> crate::client::customize::CustomizableOperation<
   95    105   
        crate::operation::rpc_v2_cbor_sparse_maps::RpcV2CborSparseMapsOutput,
   96    106   
        crate::operation::rpc_v2_cbor_sparse_maps::RpcV2CborSparseMapsError,
   97    107   
        Self,
   98    108   
    > {
   99    109   
        crate::client::customize::CustomizableOperation::new(self)
  100    110   
    }
         111  +
    /* FluentBuilderGenerator.kt:315 */
  101    112   
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
  102    113   
        self.set_config_override(::std::option::Option::Some(config_override.into()));
  103    114   
        self
  104    115   
    }
  105    116   
  106    117   
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
  107    118   
        self.config_override = config_override;
  108    119   
        self
  109    120   
    }
  110         -
    ///
         121  +
    /// /* FluentBuilderGenerator.kt:466 */
  111    122   
    /// Adds a key-value pair to `sparseStructMap`.
  112    123   
    ///
  113    124   
    /// To override the contents of this collection use [`set_sparse_struct_map`](Self::set_sparse_struct_map).
  114    125   
    ///
         126  +
    /* FluentBuilderGenerator.kt:473 */
  115    127   
    #[allow(missing_docs)] // documentation missing in model
         128  +
                           /* FluentBuilderGenerator.kt:475 */
  116    129   
    pub fn sparse_struct_map(
  117    130   
        mut self,
  118    131   
        k: impl ::std::convert::Into<::std::string::String>,
  119    132   
        v: ::std::option::Option<crate::types::GreetingStruct>,
  120    133   
    ) -> Self {
  121    134   
        self.inner = self.inner.sparse_struct_map(k.into(), v);
  122    135   
        self
  123    136   
    }
         137  +
    /* FluentBuilderGenerator.kt:498 */
  124    138   
    #[allow(missing_docs)] // documentation missing in model
         139  +
                           /* FluentBuilderGenerator.kt:500 */
  125    140   
    pub fn set_sparse_struct_map(
  126    141   
        mut self,
  127    142   
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::option::Option<crate::types::GreetingStruct>>>,
  128    143   
    ) -> Self {
  129    144   
        self.inner = self.inner.set_sparse_struct_map(input);
  130    145   
        self
  131    146   
    }
         147  +
    /* FluentBuilderGenerator.kt:518 */
  132    148   
    #[allow(missing_docs)] // documentation missing in model
         149  +
                           /* FluentBuilderGenerator.kt:520 */
  133    150   
    pub fn get_sparse_struct_map(
  134    151   
        &self,
  135    152   
    ) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::option::Option<crate::types::GreetingStruct>>> {
  136    153   
        self.inner.get_sparse_struct_map()
  137    154   
    }
  138         -
    ///
         155  +
    /// /* FluentBuilderGenerator.kt:466 */
  139    156   
    /// Adds a key-value pair to `sparseNumberMap`.
  140    157   
    ///
  141    158   
    /// To override the contents of this collection use [`set_sparse_number_map`](Self::set_sparse_number_map).
  142    159   
    ///
         160  +
    /* FluentBuilderGenerator.kt:473 */
  143    161   
    #[allow(missing_docs)] // documentation missing in model
         162  +
                           /* FluentBuilderGenerator.kt:475 */
  144    163   
    pub fn sparse_number_map(mut self, k: impl ::std::convert::Into<::std::string::String>, v: ::std::option::Option<i32>) -> Self {
  145    164   
        self.inner = self.inner.sparse_number_map(k.into(), v);
  146    165   
        self
  147    166   
    }
         167  +
    /* FluentBuilderGenerator.kt:498 */
  148    168   
    #[allow(missing_docs)] // documentation missing in model
         169  +
                           /* FluentBuilderGenerator.kt:500 */
  149    170   
    pub fn set_sparse_number_map(
  150    171   
        mut self,
  151    172   
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::option::Option<i32>>>,
  152    173   
    ) -> Self {
  153    174   
        self.inner = self.inner.set_sparse_number_map(input);
  154    175   
        self
  155    176   
    }
         177  +
    /* FluentBuilderGenerator.kt:518 */
  156    178   
    #[allow(missing_docs)] // documentation missing in model
         179  +
                           /* FluentBuilderGenerator.kt:520 */
  157    180   
    pub fn get_sparse_number_map(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::option::Option<i32>>> {
  158    181   
        self.inner.get_sparse_number_map()
  159    182   
    }
  160         -
    ///
         183  +
    /// /* FluentBuilderGenerator.kt:466 */
  161    184   
    /// Adds a key-value pair to `sparseBooleanMap`.
  162    185   
    ///
  163    186   
    /// To override the contents of this collection use [`set_sparse_boolean_map`](Self::set_sparse_boolean_map).
  164    187   
    ///
         188  +
    /* FluentBuilderGenerator.kt:473 */
  165    189   
    #[allow(missing_docs)] // documentation missing in model
         190  +
                           /* FluentBuilderGenerator.kt:475 */
  166    191   
    pub fn sparse_boolean_map(mut self, k: impl ::std::convert::Into<::std::string::String>, v: ::std::option::Option<bool>) -> Self {
  167    192   
        self.inner = self.inner.sparse_boolean_map(k.into(), v);
  168    193   
        self
  169    194   
    }
         195  +
    /* FluentBuilderGenerator.kt:498 */
  170    196   
    #[allow(missing_docs)] // documentation missing in model
         197  +
                           /* FluentBuilderGenerator.kt:500 */
  171    198   
    pub fn set_sparse_boolean_map(
  172    199   
        mut self,
  173    200   
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::option::Option<bool>>>,
  174    201   
    ) -> Self {
  175    202   
        self.inner = self.inner.set_sparse_boolean_map(input);
  176    203   
        self
  177    204   
    }
         205  +
    /* FluentBuilderGenerator.kt:518 */
  178    206   
    #[allow(missing_docs)] // documentation missing in model
         207  +
                           /* FluentBuilderGenerator.kt:520 */
  179    208   
    pub fn get_sparse_boolean_map(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::option::Option<bool>>> {
  180    209   
        self.inner.get_sparse_boolean_map()
  181    210   
    }
  182         -
    ///
         211  +
    /// /* FluentBuilderGenerator.kt:466 */
  183    212   
    /// Adds a key-value pair to `sparseStringMap`.
  184    213   
    ///
  185    214   
    /// To override the contents of this collection use [`set_sparse_string_map`](Self::set_sparse_string_map).
  186    215   
    ///
         216  +
    /* FluentBuilderGenerator.kt:473 */
  187    217   
    #[allow(missing_docs)] // documentation missing in model
         218  +
                           /* FluentBuilderGenerator.kt:475 */
  188    219   
    pub fn sparse_string_map(mut self, k: impl ::std::convert::Into<::std::string::String>, v: ::std::option::Option<::std::string::String>) -> Self {
  189    220   
        self.inner = self.inner.sparse_string_map(k.into(), v);
  190    221   
        self
  191    222   
    }
         223  +
    /* FluentBuilderGenerator.kt:498 */
  192    224   
    #[allow(missing_docs)] // documentation missing in model
         225  +
                           /* FluentBuilderGenerator.kt:500 */
  193    226   
    pub fn set_sparse_string_map(
  194    227   
        mut self,
  195    228   
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::option::Option<::std::string::String>>>,
  196    229   
    ) -> Self {
  197    230   
        self.inner = self.inner.set_sparse_string_map(input);
  198    231   
        self
  199    232   
    }
         233  +
    /* FluentBuilderGenerator.kt:518 */
  200    234   
    #[allow(missing_docs)] // documentation missing in model
         235  +
                           /* FluentBuilderGenerator.kt:520 */
  201    236   
    pub fn get_sparse_string_map(
  202    237   
        &self,
  203    238   
    ) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::option::Option<::std::string::String>>> {
  204    239   
        self.inner.get_sparse_string_map()
  205    240   
    }
  206         -
    ///
         241  +
    /// /* FluentBuilderGenerator.kt:466 */
  207    242   
    /// Adds a key-value pair to `sparseSetMap`.
  208    243   
    ///
  209    244   
    /// To override the contents of this collection use [`set_sparse_set_map`](Self::set_sparse_set_map).
  210    245   
    ///
         246  +
    /* FluentBuilderGenerator.kt:473 */
  211    247   
    #[allow(missing_docs)] // documentation missing in model
         248  +
                           /* FluentBuilderGenerator.kt:475 */
  212    249   
    pub fn sparse_set_map(
  213    250   
        mut self,
  214    251   
        k: impl ::std::convert::Into<::std::string::String>,
  215    252   
        v: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
  216    253   
    ) -> Self {
  217    254   
        self.inner = self.inner.sparse_set_map(k.into(), v);
  218    255   
        self
  219    256   
    }
         257  +
    /* FluentBuilderGenerator.kt:498 */
  220    258   
    #[allow(missing_docs)] // documentation missing in model
         259  +
                           /* FluentBuilderGenerator.kt:500 */
  221    260   
    pub fn set_sparse_set_map(
  222    261   
        mut self,
  223    262   
        input: ::std::option::Option<
  224    263   
            ::std::collections::HashMap<::std::string::String, ::std::option::Option<::std::vec::Vec<::std::string::String>>>,
  225    264   
        >,
  226    265   
    ) -> Self {
  227    266   
        self.inner = self.inner.set_sparse_set_map(input);
  228    267   
        self
  229    268   
    }
         269  +
    /* FluentBuilderGenerator.kt:518 */
  230    270   
    #[allow(missing_docs)] // documentation missing in model
         271  +
                           /* FluentBuilderGenerator.kt:520 */
  231    272   
    pub fn get_sparse_set_map(
  232    273   
        &self,
  233    274   
    ) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::option::Option<::std::vec::Vec<::std::string::String>>>>
  234    275   
    {
  235    276   
        self.inner.get_sparse_set_map()
  236    277   
    }
         278  +
    /* FluentBuilderGenerator.kt:282 */
  237    279   
}

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/operation/simple_scalar_properties.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 `SimpleScalarProperties`.
           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 SimpleScalarProperties;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl SimpleScalarProperties {
    7         -
    /// Creates a new `SimpleScalarProperties`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `SimpleScalarProperties`
          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::simple_scalar_properties::SimpleScalarPropertiesInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::simple_scalar_properties::SimpleScalarPropertiesError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -63,72 +275,292 @@
   83     92   
                runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
   84     93   
            }
   85     94   
            runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
   86     95   
                config_override,
   87     96   
                client_config.config.clone(),
   88     97   
                &client_config.runtime_components,
   89     98   
            ));
   90     99   
        }
   91    100   
        runtime_plugins
   92    101   
    }
         102  +
    /* OperationGenerator.kt:85 */
   93    103   
}
         104  +
/* OperationRuntimePluginGenerator.kt:55 */
   94    105   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for SimpleScalarProperties {
   95    106   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
   96    107   
        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("SimpleScalarProperties");
   97    108   
   98    109   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   99    110   
            SimpleScalarPropertiesRequestSerializer,
  100    111   
        ));
  101    112   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
  102    113   
            SimpleScalarPropertiesResponseDeserializer,
  103    114   
        ));
  104    115   
  105    116   
        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
  106    117   
            ::aws_smithy_runtime_api::client::auth::static_resolver::StaticAuthSchemeOptionResolverParams::new(),
  107    118   
        ));
  108    119   
  109    120   
        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
  110    121   
            "SimpleScalarProperties",
  111    122   
            "RpcV2Protocol",
  112    123   
        ));
  113    124   
  114    125   
        ::std::option::Option::Some(cfg.freeze())
  115    126   
    }
  116    127   
  117    128   
    fn runtime_components(
  118    129   
        &self,
  119    130   
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
  120    131   
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
  121    132   
        #[allow(unused_mut)]
  122    133   
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("SimpleScalarProperties")
  123    134   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  124    135   
            .with_interceptor(SimpleScalarPropertiesEndpointParamsInterceptor)
  125    136   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  126    137   
                crate::operation::simple_scalar_properties::SimpleScalarPropertiesError,
  127    138   
            >::new())
  128    139   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  129    140   
                crate::operation::simple_scalar_properties::SimpleScalarPropertiesError,
  130    141   
            >::new());
  131    142   
  132    143   
        ::std::borrow::Cow::Owned(rcb)
  133    144   
    }
  134    145   
}
  135    146   
         147  +
/* ResponseDeserializerGenerator.kt:64 */
  136    148   
#[derive(Debug)]
  137    149   
struct SimpleScalarPropertiesResponseDeserializer;
  138    150   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for SimpleScalarPropertiesResponseDeserializer {
  139    151   
    fn deserialize_nonstreaming(
  140    152   
        &self,
  141    153   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
  142    154   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  143    155   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  144    156   
        let headers = response.headers();
  145    157   
        let body = response.body().bytes().expect("body loaded");
  146    158   
        #[allow(unused_mut)]
  147    159   
        let mut force_error = false;
  148    160   
  149    161   
        let parse_result = if !success && status != 200 || force_error {
  150    162   
            crate::protocol_serde::shape_simple_scalar_properties::de_simple_scalar_properties_http_error(status, headers, body)
  151    163   
        } else {
  152    164   
            crate::protocol_serde::shape_simple_scalar_properties::de_simple_scalar_properties_http_response(status, headers, body)
  153    165   
        };
  154    166   
        crate::protocol_serde::type_erase_result(parse_result)
  155    167   
    }
  156    168   
}
         169  +
/* RequestSerializerGenerator.kt:67 */
  157    170   
#[derive(Debug)]
  158    171   
struct SimpleScalarPropertiesRequestSerializer;
  159    172   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for SimpleScalarPropertiesRequestSerializer {
  160    173   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  161    174   
    fn serialize_input(
  162    175   
        &self,
  163    176   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  164    177   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  165    178   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  166    179   
        let input = input
  167    180   
            .downcast::<crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput>()
  168    181   
            .expect("correct type");
  169    182   
        let _header_serialization_settings = _cfg
  170    183   
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  171    184   
            .cloned()
  172    185   
            .unwrap_or_default();
  173    186   
        let mut request_builder = {
  174    187   
            fn uri_base(
  175    188   
                _input: &crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput,
  176    189   
                output: &mut ::std::string::String,
  177    190   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  178    191   
                use ::std::fmt::Write as _;
  179    192   
                ::std::write!(output, "/service/RpcV2Protocol/operation/SimpleScalarProperties").expect("formatting should succeed");
  180    193   
                ::std::result::Result::Ok(())
  181    194   
            }
  182    195   
            #[allow(clippy::unnecessary_wraps)]
  183    196   
            fn update_http_builder(
  184    197   
                input: &crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput,
  185    198   
                builder: ::http::request::Builder,
  186    199   
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  187    200   
                let mut uri = ::std::string::String::new();
  188    201   
                uri_base(input, &mut uri)?;
  189    202   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  190    203   
            }
  191    204   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  192    205   
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/cbor");
  193    206   
            builder =
  194    207   
                _header_serialization_settings.set_default_header(builder, ::http::header::HeaderName::from_static("smithy-protocol"), "rpc-v2-cbor");
  195    208   
            builder =
  196    209   
                _header_serialization_settings.set_default_header(builder, ::http::header::HeaderName::from_static("accept"), "application/cbor");
  197    210   
            builder
  198    211   
        };
  199    212   
        let body = ::aws_smithy_types::body::SdkBody::from(
  200    213   
            crate::protocol_serde::shape_simple_scalar_properties::ser_simple_scalar_properties_input(&input)?,
  201    214   
        );
  202    215   
        if let Some(content_length) = body.content_length() {
  203    216   
            let content_length = content_length.to_string();
  204    217   
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
  205    218   
        }
  206    219   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  207    220   
    }
  208    221   
}
         222  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  209    223   
#[derive(Debug)]
  210    224   
struct SimpleScalarPropertiesEndpointParamsInterceptor;
  211    225   
  212    226   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for SimpleScalarPropertiesEndpointParamsInterceptor {
  213    227   
    fn name(&self) -> &'static str {
  214    228   
        "SimpleScalarPropertiesEndpointParamsInterceptor"
  215    229   
    }
  216    230   
  217    231   
    fn read_before_execution(
  218    232   
        &self,
  219    233   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  220    234   
            '_,
  221    235   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  222    236   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  223    237   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  224    238   
        >,
  225    239   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  226    240   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  227    241   
        let _input = context
  228    242   
            .input()
  229    243   
            .downcast_ref::<SimpleScalarPropertiesInput>()
  230    244   
            .ok_or("failed to downcast to SimpleScalarPropertiesInput")?;
  231    245   
  232    246   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  233    247   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  234    248   
        })?;
  235    249   
        cfg.interceptor_state()
  236    250   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  237    251   
        ::std::result::Result::Ok(())
  238    252   
    }
  239    253   
}
  240    254   
  241    255   
// The get_* functions below are generated from JMESPath expressions in the
  242    256   
// operationContextParams trait. They target the operation's input shape.
  243    257   
         258  +
/* RustType.kt:516 */
  244    259   
#[allow(unreachable_code, unused_variables)]
         260  +
/* RustType.kt:516 */
  245    261   
#[cfg(test)]
         262  +
/* ProtocolTestGenerator.kt:98 */
  246    263   
mod simple_scalar_properties_test {
  247    264   
    use ::aws_smithy_protocol_test::FloatEquals;
  248    265   
  249    266   
    /// Serializes simple scalar properties
  250    267   
    /// Test ID: RpcV2CborSimpleScalarProperties
  251    268   
    #[::tokio::test]
  252    269   
    #[::tracing_test::traced_test]
  253    270   
    async fn rpc_v2_cbor_simple_scalar_properties_request() {
  254    271   
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  255    272   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
@@ -1073,1090 +1202,1278 @@
 1093   1110   
        ::pretty_assertions::assert_eq!(
 1094   1111   
            parsed.integer_value,
 1095   1112   
            expected_output.integer_value,
 1096   1113   
            "Unexpected value for `integer_value`"
 1097   1114   
        );
 1098   1115   
        ::pretty_assertions::assert_eq!(parsed.long_value, expected_output.long_value, "Unexpected value for `long_value`");
 1099   1116   
        ::pretty_assertions::assert_eq!(parsed.short_value, expected_output.short_value, "Unexpected value for `short_value`");
 1100   1117   
        ::pretty_assertions::assert_eq!(parsed.string_value, expected_output.string_value, "Unexpected value for `string_value`");
 1101   1118   
        ::pretty_assertions::assert_eq!(parsed.blob_value, expected_output.blob_value, "Unexpected value for `blob_value`");
 1102   1119   
    }
        1120  +
        1121  +
    /* ProtocolTestGenerator.kt:98 */
 1103   1122   
}
 1104   1123   
        1124  +
/* OperationErrorGenerator.kt:79 */
 1105   1125   
/// Error type for the `SimpleScalarPropertiesError` operation.
        1126  +
/* RustType.kt:516 */
 1106   1127   
#[non_exhaustive]
        1128  +
/* RustType.kt:516 */
 1107   1129   
#[derive(::std::fmt::Debug)]
 1108         -
pub enum SimpleScalarPropertiesError {
        1130  +
pub /* OperationErrorGenerator.kt:81 */ enum SimpleScalarPropertiesError {
        1131  +
    /* OperationErrorGenerator.kt:88 */
 1109   1132   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
 1110   1133   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
 1111   1134   
    variable wildcard pattern and check `.code()`:
 1112   1135   
     \
 1113   1136   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
 1114   1137   
     \
 1115   1138   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-SimpleScalarPropertiesError) for what information is available for the error.")]
 1116   1139   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
        1140  +
    /* OperationErrorGenerator.kt:81 */
 1117   1141   
}
        1142  +
/* OperationErrorGenerator.kt:218 */
 1118   1143   
impl SimpleScalarPropertiesError {
        1144  +
    /* OperationErrorGenerator.kt:219 */
 1119   1145   
    /// Creates the `SimpleScalarPropertiesError::Unhandled` variant from any error type.
 1120   1146   
    pub fn unhandled(
 1121   1147   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
 1122   1148   
    ) -> Self {
 1123   1149   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
 1124   1150   
            source: err.into(),
 1125   1151   
            meta: ::std::default::Default::default(),
 1126   1152   
        })
 1127   1153   
    }
 1128   1154   
 1129   1155   
    /// Creates the `SimpleScalarPropertiesError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
 1130   1156   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
 1131   1157   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
 1132   1158   
            source: err.clone().into(),
 1133   1159   
            meta: err,
 1134   1160   
        })
 1135   1161   
    }
 1136         -
    ///
        1162  +
    /// /* OperationErrorGenerator.kt:236 */
 1137   1163   
    /// Returns error metadata, which includes the error code, message,
 1138   1164   
    /// request ID, and potentially additional information.
 1139   1165   
    ///
        1166  +
    /* OperationErrorGenerator.kt:242 */
 1140   1167   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
        1168  +
        /* OperationErrorGenerator.kt:243 */
 1141   1169   
        match self {
 1142         -
            Self::Unhandled(e) => &e.meta,
        1170  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
        1171  +
            /* OperationErrorGenerator.kt:243 */
 1143   1172   
        }
        1173  +
        /* OperationErrorGenerator.kt:242 */
 1144   1174   
    }
        1175  +
    /* OperationErrorGenerator.kt:218 */
 1145   1176   
}
        1177  +
/* OperationErrorGenerator.kt:269 */
 1146   1178   
impl ::std::error::Error for SimpleScalarPropertiesError {
        1179  +
    /* OperationErrorGenerator.kt:270 */
 1147   1180   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
        1181  +
        /* OperationErrorGenerator.kt:318 */
 1148   1182   
        match self {
 1149         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
        1183  +
            /* OperationErrorGenerator.kt:326 */
        1184  +
            Self::Unhandled(_inner) => {
        1185  +
                /* OperationErrorGenerator.kt:279 */
        1186  +
                ::std::option::Option::Some(&*_inner.source)
        1187  +
                /* OperationErrorGenerator.kt:326 */
        1188  +
            } /* OperationErrorGenerator.kt:318 */
 1150   1189   
        }
        1190  +
        /* OperationErrorGenerator.kt:270 */
 1151   1191   
    }
        1192  +
    /* OperationErrorGenerator.kt:269 */
 1152   1193   
}
        1194  +
/* OperationErrorGenerator.kt:133 */
 1153   1195   
impl ::std::fmt::Display for SimpleScalarPropertiesError {
        1196  +
    /* OperationErrorGenerator.kt:134 */
 1154   1197   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        1198  +
        /* OperationErrorGenerator.kt:318 */
 1155   1199   
        match self {
        1200  +
            /* OperationErrorGenerator.kt:326 */
 1156   1201   
            Self::Unhandled(_inner) => {
        1202  +
                /* OperationErrorGenerator.kt:139 */
 1157   1203   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
 1158   1204   
                    write!(f, "unhandled error ({code})")
 1159   1205   
                } else {
 1160   1206   
                    f.write_str("unhandled error")
 1161   1207   
                }
        1208  +
                /* OperationErrorGenerator.kt:326 */
        1209  +
            } /* OperationErrorGenerator.kt:318 */
 1162   1210   
        }
        1211  +
        /* OperationErrorGenerator.kt:134 */
 1163   1212   
    }
 1164         -
    }
        1213  +
    /* OperationErrorGenerator.kt:133 */
 1165   1214   
}
        1215  +
/* OperationErrorGenerator.kt:182 */
 1166   1216   
impl ::aws_smithy_types::retry::ProvideErrorKind for SimpleScalarPropertiesError {
        1217  +
    /* OperationErrorGenerator.kt:186 */
 1167   1218   
    fn code(&self) -> ::std::option::Option<&str> {
        1219  +
        /* OperationErrorGenerator.kt:187 */
 1168   1220   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
        1221  +
        /* OperationErrorGenerator.kt:186 */
 1169   1222   
    }
        1223  +
    /* OperationErrorGenerator.kt:190 */
 1170   1224   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
        1225  +
        /* OperationErrorGenerator.kt:197 */
 1171   1226   
        ::std::option::Option::None
        1227  +
        /* OperationErrorGenerator.kt:190 */
 1172   1228   
    }
        1229  +
    /* OperationErrorGenerator.kt:182 */
 1173   1230   
}
        1231  +
/* OperationErrorGenerator.kt:163 */
 1174   1232   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for SimpleScalarPropertiesError {
        1233  +
    /* OperationErrorGenerator.kt:164 */
 1175   1234   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
        1235  +
        /* OperationErrorGenerator.kt:318 */
 1176   1236   
        match self {
 1177         -
            Self::Unhandled(_inner) => &_inner.meta,
        1237  +
            /* OperationErrorGenerator.kt:326 */
        1238  +
            Self::Unhandled(_inner) => {
        1239  +
                /* OperationErrorGenerator.kt:168 */
        1240  +
                &_inner.meta
        1241  +
                /* OperationErrorGenerator.kt:326 */
        1242  +
            } /* OperationErrorGenerator.kt:318 */
 1178   1243   
        }
        1244  +
        /* OperationErrorGenerator.kt:164 */
 1179   1245   
    }
        1246  +
    /* OperationErrorGenerator.kt:163 */
 1180   1247   
}
        1248  +
/* OperationErrorGenerator.kt:109 */
 1181   1249   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for SimpleScalarPropertiesError {
        1250  +
    /* OperationErrorGenerator.kt:110 */
 1182   1251   
    fn create_unhandled_error(
 1183   1252   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
 1184   1253   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
 1185   1254   
    ) -> Self {
        1255  +
        /* OperationErrorGenerator.kt:121 */
 1186   1256   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
 1187   1257   
            source,
 1188   1258   
            meta: meta.unwrap_or_default(),
 1189   1259   
        })
        1260  +
        /* OperationErrorGenerator.kt:110 */
 1190   1261   
    }
        1262  +
    /* OperationErrorGenerator.kt:109 */
 1191   1263   
}
 1192   1264   
        1265  +
/* CodegenDelegator.kt:255 */
 1193   1266   
pub use crate::operation::simple_scalar_properties::_simple_scalar_properties_output::SimpleScalarPropertiesOutput;
 1194   1267   
        1268  +
/* CodegenDelegator.kt:255 */
 1195   1269   
pub use crate::operation::simple_scalar_properties::_simple_scalar_properties_input::SimpleScalarPropertiesInput;
 1196   1270   
        1271  +
/* RustModule.kt:172 */
 1197   1272   
mod _simple_scalar_properties_input;
 1198   1273   
        1274  +
/* RustModule.kt:172 */
 1199   1275   
mod _simple_scalar_properties_output;
 1200   1276   
 1201         -
/// Builders
        1277  +
/// /* CodegenDelegator.kt:51 */Builders
 1202   1278   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/operation/simple_scalar_properties/_simple_scalar_properties_input.rs

@@ -1,1 +252,459 @@
    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 SimpleScalarPropertiesInput {
           8  +
pub /* StructureGenerator.kt:201 */ struct SimpleScalarPropertiesInput {
           9  +
    /* StructureGenerator.kt:231 */
    6     10   
    #[allow(missing_docs)] // documentation missing in model
    7     11   
    pub true_boolean_value: ::std::option::Option<bool>,
          12  +
    /* StructureGenerator.kt:231 */
    8     13   
    #[allow(missing_docs)] // documentation missing in model
    9     14   
    pub false_boolean_value: ::std::option::Option<bool>,
   10         -
    #[allow(missing_docs)] // documentation missing in model
          15  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   11     16   
    pub byte_value: ::std::option::Option<i8>,
   12         -
    #[allow(missing_docs)] // documentation missing in model
          17  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   13     18   
    pub double_value: ::std::option::Option<f64>,
   14         -
    #[allow(missing_docs)] // documentation missing in model
          19  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   15     20   
    pub float_value: ::std::option::Option<f32>,
   16         -
    #[allow(missing_docs)] // documentation missing in model
          21  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   17     22   
    pub integer_value: ::std::option::Option<i32>,
   18         -
    #[allow(missing_docs)] // documentation missing in model
          23  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   19     24   
    pub long_value: ::std::option::Option<i64>,
   20         -
    #[allow(missing_docs)] // documentation missing in model
          25  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   21     26   
    pub short_value: ::std::option::Option<i16>,
          27  +
    /* StructureGenerator.kt:231 */
   22     28   
    #[allow(missing_docs)] // documentation missing in model
   23     29   
    pub string_value: ::std::option::Option<::std::string::String>,
          30  +
    /* StructureGenerator.kt:231 */
   24     31   
    #[allow(missing_docs)] // documentation missing in model
   25     32   
    pub blob_value: ::std::option::Option<::aws_smithy_types::Blob>,
          33  +
    /* StructureGenerator.kt:201 */
   26     34   
}
          35  +
/* StructureGenerator.kt:135 */
   27     36   
impl SimpleScalarPropertiesInput {
          37  +
    /* StructureGenerator.kt:231 */
   28     38   
    #[allow(missing_docs)] // documentation missing in model
          39  +
                           /* StructureGenerator.kt:166 */
   29     40   
    pub fn true_boolean_value(&self) -> ::std::option::Option<bool> {
          41  +
        /* StructureGenerator.kt:168 */
   30     42   
        self.true_boolean_value
          43  +
        /* StructureGenerator.kt:166 */
   31     44   
    }
          45  +
    /* StructureGenerator.kt:231 */
   32     46   
    #[allow(missing_docs)] // documentation missing in model
          47  +
                           /* StructureGenerator.kt:166 */
   33     48   
    pub fn false_boolean_value(&self) -> ::std::option::Option<bool> {
          49  +
        /* StructureGenerator.kt:168 */
   34     50   
        self.false_boolean_value
          51  +
        /* StructureGenerator.kt:166 */
   35     52   
    }
          53  +
    /* StructureGenerator.kt:231 */
   36     54   
    #[allow(missing_docs)] // documentation missing in model
          55  +
                           /* StructureGenerator.kt:166 */
   37     56   
    pub fn byte_value(&self) -> ::std::option::Option<i8> {
          57  +
        /* StructureGenerator.kt:168 */
   38     58   
        self.byte_value
          59  +
        /* StructureGenerator.kt:166 */
   39     60   
    }
          61  +
    /* StructureGenerator.kt:231 */
   40     62   
    #[allow(missing_docs)] // documentation missing in model
          63  +
                           /* StructureGenerator.kt:166 */
   41     64   
    pub fn double_value(&self) -> ::std::option::Option<f64> {
          65  +
        /* StructureGenerator.kt:168 */
   42     66   
        self.double_value
          67  +
        /* StructureGenerator.kt:166 */
   43     68   
    }
          69  +
    /* StructureGenerator.kt:231 */
   44     70   
    #[allow(missing_docs)] // documentation missing in model
          71  +
                           /* StructureGenerator.kt:166 */
   45     72   
    pub fn float_value(&self) -> ::std::option::Option<f32> {
          73  +
        /* StructureGenerator.kt:168 */
   46     74   
        self.float_value
          75  +
        /* StructureGenerator.kt:166 */
   47     76   
    }
          77  +
    /* StructureGenerator.kt:231 */
   48     78   
    #[allow(missing_docs)] // documentation missing in model
          79  +
                           /* StructureGenerator.kt:166 */
   49     80   
    pub fn integer_value(&self) -> ::std::option::Option<i32> {
          81  +
        /* StructureGenerator.kt:168 */
   50     82   
        self.integer_value
          83  +
        /* StructureGenerator.kt:166 */
   51     84   
    }
          85  +
    /* StructureGenerator.kt:231 */
   52     86   
    #[allow(missing_docs)] // documentation missing in model
          87  +
                           /* StructureGenerator.kt:166 */
   53     88   
    pub fn long_value(&self) -> ::std::option::Option<i64> {
          89  +
        /* StructureGenerator.kt:168 */
   54     90   
        self.long_value
          91  +
        /* StructureGenerator.kt:166 */
   55     92   
    }
          93  +
    /* StructureGenerator.kt:231 */
   56     94   
    #[allow(missing_docs)] // documentation missing in model
          95  +
                           /* StructureGenerator.kt:166 */
   57     96   
    pub fn short_value(&self) -> ::std::option::Option<i16> {
          97  +
        /* StructureGenerator.kt:168 */
   58     98   
        self.short_value
          99  +
        /* StructureGenerator.kt:166 */
   59    100   
    }
         101  +
    /* StructureGenerator.kt:231 */
   60    102   
    #[allow(missing_docs)] // documentation missing in model
         103  +
                           /* StructureGenerator.kt:166 */
   61    104   
    pub fn string_value(&self) -> ::std::option::Option<&str> {
         105  +
        /* StructureGenerator.kt:169 */
   62    106   
        self.string_value.as_deref()
         107  +
        /* StructureGenerator.kt:166 */
   63    108   
    }
         109  +
    /* StructureGenerator.kt:231 */
   64    110   
    #[allow(missing_docs)] // documentation missing in model
         111  +
                           /* StructureGenerator.kt:166 */
   65    112   
    pub fn blob_value(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
         113  +
        /* StructureGenerator.kt:170 */
   66    114   
        self.blob_value.as_ref()
         115  +
        /* StructureGenerator.kt:166 */
   67    116   
    }
         117  +
    /* StructureGenerator.kt:135 */
   68    118   
}
         119  +
/* ClientCodegenVisitor.kt:237 */
   69    120   
impl SimpleScalarPropertiesInput {
   70         -
    /// Creates a new builder-style object to manufacture [`SimpleScalarPropertiesInput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput).
         121  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`SimpleScalarPropertiesInput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput).
         122  +
    /* BuilderGenerator.kt:175 */
   71    123   
    pub fn builder() -> crate::operation::simple_scalar_properties::builders::SimpleScalarPropertiesInputBuilder {
         124  +
        /* BuilderGenerator.kt:176 */
   72    125   
        crate::operation::simple_scalar_properties::builders::SimpleScalarPropertiesInputBuilder::default()
         126  +
        /* BuilderGenerator.kt:175 */
   73    127   
    }
         128  +
    /* ClientCodegenVisitor.kt:237 */
   74    129   
}
   75    130   
   76         -
/// A builder for [`SimpleScalarPropertiesInput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput).
         131  +
/// /* BuilderGenerator.kt:342 */A builder for [`SimpleScalarPropertiesInput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput).
         132  +
/* RustType.kt:516 */
   77    133   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         134  +
/* RustType.kt:516 */
   78    135   
#[non_exhaustive]
         136  +
/* BuilderGenerator.kt:345 */
   79    137   
pub struct SimpleScalarPropertiesInputBuilder {
   80         -
    pub(crate) true_boolean_value: ::std::option::Option<bool>,
   81         -
    pub(crate) false_boolean_value: ::std::option::Option<bool>,
   82         -
    pub(crate) byte_value: ::std::option::Option<i8>,
   83         -
    pub(crate) double_value: ::std::option::Option<f64>,
   84         -
    pub(crate) float_value: ::std::option::Option<f32>,
   85         -
    pub(crate) integer_value: ::std::option::Option<i32>,
   86         -
    pub(crate) long_value: ::std::option::Option<i64>,
   87         -
    pub(crate) short_value: ::std::option::Option<i16>,
   88         -
    pub(crate) string_value: ::std::option::Option<::std::string::String>,
   89         -
    pub(crate) blob_value: ::std::option::Option<::aws_smithy_types::Blob>,
         138  +
    /* BuilderGenerator.kt:275 */ pub(crate) true_boolean_value: ::std::option::Option<bool>,
         139  +
    /* BuilderGenerator.kt:275 */ pub(crate) false_boolean_value: ::std::option::Option<bool>,
         140  +
    /* BuilderGenerator.kt:275 */ pub(crate) byte_value: ::std::option::Option<i8>,
         141  +
    /* BuilderGenerator.kt:275 */ pub(crate) double_value: ::std::option::Option<f64>,
         142  +
    /* BuilderGenerator.kt:275 */ pub(crate) float_value: ::std::option::Option<f32>,
         143  +
    /* BuilderGenerator.kt:275 */ pub(crate) integer_value: ::std::option::Option<i32>,
         144  +
    /* BuilderGenerator.kt:275 */ pub(crate) long_value: ::std::option::Option<i64>,
         145  +
    /* BuilderGenerator.kt:275 */ pub(crate) short_value: ::std::option::Option<i16>,
         146  +
    /* BuilderGenerator.kt:275 */ pub(crate) string_value: ::std::option::Option<::std::string::String>,
         147  +
    /* BuilderGenerator.kt:275 */ pub(crate) blob_value: ::std::option::Option<::aws_smithy_types::Blob>,
         148  +
    /* BuilderGenerator.kt:345 */
   90    149   
}
         150  +
/* BuilderGenerator.kt:355 */
   91    151   
impl SimpleScalarPropertiesInputBuilder {
         152  +
    /* BuilderGenerator.kt:286 */
   92    153   
    #[allow(missing_docs)] // documentation missing in model
         154  +
                           /* BuilderGenerator.kt:291 */
   93    155   
    pub fn true_boolean_value(mut self, input: bool) -> Self {
         156  +
        /* BuilderGenerator.kt:292 */
   94    157   
        self.true_boolean_value = ::std::option::Option::Some(input);
         158  +
        /* BuilderGenerator.kt:293 */
   95    159   
        self
         160  +
        /* BuilderGenerator.kt:291 */
   96    161   
    }
         162  +
    /* BuilderGenerator.kt:312 */
   97    163   
    #[allow(missing_docs)] // documentation missing in model
         164  +
                           /* BuilderGenerator.kt:314 */
   98    165   
    pub fn set_true_boolean_value(mut self, input: ::std::option::Option<bool>) -> Self {
         166  +
        /* BuilderGenerator.kt:315 */
   99    167   
        self.true_boolean_value = input;
  100    168   
        self
         169  +
        /* BuilderGenerator.kt:314 */
  101    170   
    }
         171  +
    /* BuilderGenerator.kt:334 */
  102    172   
    #[allow(missing_docs)] // documentation missing in model
         173  +
                           /* BuilderGenerator.kt:336 */
  103    174   
    pub fn get_true_boolean_value(&self) -> &::std::option::Option<bool> {
         175  +
        /* BuilderGenerator.kt:337 */
  104    176   
        &self.true_boolean_value
         177  +
        /* BuilderGenerator.kt:336 */
  105    178   
    }
         179  +
    /* BuilderGenerator.kt:286 */
  106    180   
    #[allow(missing_docs)] // documentation missing in model
         181  +
                           /* BuilderGenerator.kt:291 */
  107    182   
    pub fn false_boolean_value(mut self, input: bool) -> Self {
         183  +
        /* BuilderGenerator.kt:292 */
  108    184   
        self.false_boolean_value = ::std::option::Option::Some(input);
         185  +
        /* BuilderGenerator.kt:293 */
  109    186   
        self
         187  +
        /* BuilderGenerator.kt:291 */
  110    188   
    }
         189  +
    /* BuilderGenerator.kt:312 */
  111    190   
    #[allow(missing_docs)] // documentation missing in model
         191  +
                           /* BuilderGenerator.kt:314 */
  112    192   
    pub fn set_false_boolean_value(mut self, input: ::std::option::Option<bool>) -> Self {
         193  +
        /* BuilderGenerator.kt:315 */
  113    194   
        self.false_boolean_value = input;
  114    195   
        self
         196  +
        /* BuilderGenerator.kt:314 */
  115    197   
    }
         198  +
    /* BuilderGenerator.kt:334 */
  116    199   
    #[allow(missing_docs)] // documentation missing in model
         200  +
                           /* BuilderGenerator.kt:336 */
  117    201   
    pub fn get_false_boolean_value(&self) -> &::std::option::Option<bool> {
         202  +
        /* BuilderGenerator.kt:337 */
  118    203   
        &self.false_boolean_value
         204  +
        /* BuilderGenerator.kt:336 */
  119    205   
    }
         206  +
    /* BuilderGenerator.kt:286 */
  120    207   
    #[allow(missing_docs)] // documentation missing in model
         208  +
                           /* BuilderGenerator.kt:291 */
  121    209   
    pub fn byte_value(mut self, input: i8) -> Self {
         210  +
        /* BuilderGenerator.kt:292 */
  122    211   
        self.byte_value = ::std::option::Option::Some(input);
         212  +
        /* BuilderGenerator.kt:293 */
  123    213   
        self
         214  +
        /* BuilderGenerator.kt:291 */
  124    215   
    }
         216  +
    /* BuilderGenerator.kt:312 */
  125    217   
    #[allow(missing_docs)] // documentation missing in model
         218  +
                           /* BuilderGenerator.kt:314 */
  126    219   
    pub fn set_byte_value(mut self, input: ::std::option::Option<i8>) -> Self {
         220  +
        /* BuilderGenerator.kt:315 */
  127    221   
        self.byte_value = input;
  128    222   
        self
         223  +
        /* BuilderGenerator.kt:314 */
  129    224   
    }
         225  +
    /* BuilderGenerator.kt:334 */
  130    226   
    #[allow(missing_docs)] // documentation missing in model
         227  +
                           /* BuilderGenerator.kt:336 */
  131    228   
    pub fn get_byte_value(&self) -> &::std::option::Option<i8> {
         229  +
        /* BuilderGenerator.kt:337 */
  132    230   
        &self.byte_value
         231  +
        /* BuilderGenerator.kt:336 */
  133    232   
    }
         233  +
    /* BuilderGenerator.kt:286 */
  134    234   
    #[allow(missing_docs)] // documentation missing in model
         235  +
                           /* BuilderGenerator.kt:291 */
  135    236   
    pub fn double_value(mut self, input: f64) -> Self {
         237  +
        /* BuilderGenerator.kt:292 */
  136    238   
        self.double_value = ::std::option::Option::Some(input);
         239  +
        /* BuilderGenerator.kt:293 */
  137    240   
        self
         241  +
        /* BuilderGenerator.kt:291 */
  138    242   
    }
         243  +
    /* BuilderGenerator.kt:312 */
  139    244   
    #[allow(missing_docs)] // documentation missing in model
         245  +
                           /* BuilderGenerator.kt:314 */
  140    246   
    pub fn set_double_value(mut self, input: ::std::option::Option<f64>) -> Self {
         247  +
        /* BuilderGenerator.kt:315 */
  141    248   
        self.double_value = input;
  142    249   
        self
         250  +
        /* BuilderGenerator.kt:314 */
  143    251   
    }
         252  +
    /* BuilderGenerator.kt:334 */
  144    253   
    #[allow(missing_docs)] // documentation missing in model
         254  +
                           /* BuilderGenerator.kt:336 */
  145    255   
    pub fn get_double_value(&self) -> &::std::option::Option<f64> {
         256  +
        /* BuilderGenerator.kt:337 */
  146    257   
        &self.double_value
         258  +
        /* BuilderGenerator.kt:336 */
  147    259   
    }
         260  +
    /* BuilderGenerator.kt:286 */
  148    261   
    #[allow(missing_docs)] // documentation missing in model
         262  +
                           /* BuilderGenerator.kt:291 */
  149    263   
    pub fn float_value(mut self, input: f32) -> Self {
         264  +
        /* BuilderGenerator.kt:292 */
  150    265   
        self.float_value = ::std::option::Option::Some(input);
         266  +
        /* BuilderGenerator.kt:293 */
  151    267   
        self
         268  +
        /* BuilderGenerator.kt:291 */
  152    269   
    }
         270  +
    /* BuilderGenerator.kt:312 */
  153    271   
    #[allow(missing_docs)] // documentation missing in model
         272  +
                           /* BuilderGenerator.kt:314 */
  154    273   
    pub fn set_float_value(mut self, input: ::std::option::Option<f32>) -> Self {
         274  +
        /* BuilderGenerator.kt:315 */
  155    275   
        self.float_value = input;
  156    276   
        self
         277  +
        /* BuilderGenerator.kt:314 */
  157    278   
    }
         279  +
    /* BuilderGenerator.kt:334 */
  158    280   
    #[allow(missing_docs)] // documentation missing in model
         281  +
                           /* BuilderGenerator.kt:336 */
  159    282   
    pub fn get_float_value(&self) -> &::std::option::Option<f32> {
         283  +
        /* BuilderGenerator.kt:337 */
  160    284   
        &self.float_value
         285  +
        /* BuilderGenerator.kt:336 */
  161    286   
    }
         287  +
    /* BuilderGenerator.kt:286 */
  162    288   
    #[allow(missing_docs)] // documentation missing in model
         289  +
                           /* BuilderGenerator.kt:291 */
  163    290   
    pub fn integer_value(mut self, input: i32) -> Self {
         291  +
        /* BuilderGenerator.kt:292 */
  164    292   
        self.integer_value = ::std::option::Option::Some(input);
         293  +
        /* BuilderGenerator.kt:293 */
  165    294   
        self
         295  +
        /* BuilderGenerator.kt:291 */
  166    296   
    }
         297  +
    /* BuilderGenerator.kt:312 */
  167    298   
    #[allow(missing_docs)] // documentation missing in model
         299  +
                           /* BuilderGenerator.kt:314 */
  168    300   
    pub fn set_integer_value(mut self, input: ::std::option::Option<i32>) -> Self {
         301  +
        /* BuilderGenerator.kt:315 */
  169    302   
        self.integer_value = input;
  170    303   
        self
         304  +
        /* BuilderGenerator.kt:314 */
  171    305   
    }
         306  +
    /* BuilderGenerator.kt:334 */
  172    307   
    #[allow(missing_docs)] // documentation missing in model
         308  +
                           /* BuilderGenerator.kt:336 */
  173    309   
    pub fn get_integer_value(&self) -> &::std::option::Option<i32> {
         310  +
        /* BuilderGenerator.kt:337 */
  174    311   
        &self.integer_value
         312  +
        /* BuilderGenerator.kt:336 */
  175    313   
    }
         314  +
    /* BuilderGenerator.kt:286 */
  176    315   
    #[allow(missing_docs)] // documentation missing in model
         316  +
                           /* BuilderGenerator.kt:291 */
  177    317   
    pub fn long_value(mut self, input: i64) -> Self {
         318  +
        /* BuilderGenerator.kt:292 */
  178    319   
        self.long_value = ::std::option::Option::Some(input);
         320  +
        /* BuilderGenerator.kt:293 */
  179    321   
        self
         322  +
        /* BuilderGenerator.kt:291 */
  180    323   
    }
         324  +
    /* BuilderGenerator.kt:312 */
  181    325   
    #[allow(missing_docs)] // documentation missing in model
         326  +
                           /* BuilderGenerator.kt:314 */
  182    327   
    pub fn set_long_value(mut self, input: ::std::option::Option<i64>) -> Self {
         328  +
        /* BuilderGenerator.kt:315 */
  183    329   
        self.long_value = input;
  184    330   
        self
         331  +
        /* BuilderGenerator.kt:314 */
  185    332   
    }
         333  +
    /* BuilderGenerator.kt:334 */
  186    334   
    #[allow(missing_docs)] // documentation missing in model
         335  +
                           /* BuilderGenerator.kt:336 */
  187    336   
    pub fn get_long_value(&self) -> &::std::option::Option<i64> {
         337  +
        /* BuilderGenerator.kt:337 */
  188    338   
        &self.long_value
         339  +
        /* BuilderGenerator.kt:336 */
  189    340   
    }
         341  +
    /* BuilderGenerator.kt:286 */
  190    342   
    #[allow(missing_docs)] // documentation missing in model
         343  +
                           /* BuilderGenerator.kt:291 */
  191    344   
    pub fn short_value(mut self, input: i16) -> Self {
         345  +
        /* BuilderGenerator.kt:292 */
  192    346   
        self.short_value = ::std::option::Option::Some(input);
         347  +
        /* BuilderGenerator.kt:293 */
  193    348   
        self
         349  +
        /* BuilderGenerator.kt:291 */
  194    350   
    }
         351  +
    /* BuilderGenerator.kt:312 */
  195    352   
    #[allow(missing_docs)] // documentation missing in model
         353  +
                           /* BuilderGenerator.kt:314 */
  196    354   
    pub fn set_short_value(mut self, input: ::std::option::Option<i16>) -> Self {
         355  +
        /* BuilderGenerator.kt:315 */
  197    356   
        self.short_value = input;
  198    357   
        self
         358  +
        /* BuilderGenerator.kt:314 */
  199    359   
    }
         360  +
    /* BuilderGenerator.kt:334 */
  200    361   
    #[allow(missing_docs)] // documentation missing in model
         362  +
                           /* BuilderGenerator.kt:336 */
  201    363   
    pub fn get_short_value(&self) -> &::std::option::Option<i16> {
         364  +
        /* BuilderGenerator.kt:337 */
  202    365   
        &self.short_value
         366  +
        /* BuilderGenerator.kt:336 */
  203    367   
    }
         368  +
    /* BuilderGenerator.kt:286 */
  204    369   
    #[allow(missing_docs)] // documentation missing in model
         370  +
                           /* BuilderGenerator.kt:291 */
  205    371   
    pub fn string_value(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         372  +
        /* BuilderGenerator.kt:292 */
  206    373   
        self.string_value = ::std::option::Option::Some(input.into());
         374  +
        /* BuilderGenerator.kt:293 */
  207    375   
        self
         376  +
        /* BuilderGenerator.kt:291 */
  208    377   
    }
         378  +
    /* BuilderGenerator.kt:312 */
  209    379   
    #[allow(missing_docs)] // documentation missing in model
         380  +
                           /* BuilderGenerator.kt:314 */
  210    381   
    pub fn set_string_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         382  +
        /* BuilderGenerator.kt:315 */
  211    383   
        self.string_value = input;
  212    384   
        self
         385  +
        /* BuilderGenerator.kt:314 */
  213    386   
    }
         387  +
    /* BuilderGenerator.kt:334 */
  214    388   
    #[allow(missing_docs)] // documentation missing in model
         389  +
                           /* BuilderGenerator.kt:336 */
  215    390   
    pub fn get_string_value(&self) -> &::std::option::Option<::std::string::String> {
         391  +
        /* BuilderGenerator.kt:337 */
  216    392   
        &self.string_value
         393  +
        /* BuilderGenerator.kt:336 */
  217    394   
    }
         395  +
    /* BuilderGenerator.kt:286 */
  218    396   
    #[allow(missing_docs)] // documentation missing in model
         397  +
                           /* BuilderGenerator.kt:291 */
  219    398   
    pub fn blob_value(mut self, input: ::aws_smithy_types::Blob) -> Self {
         399  +
        /* BuilderGenerator.kt:292 */
  220    400   
        self.blob_value = ::std::option::Option::Some(input);
         401  +
        /* BuilderGenerator.kt:293 */
  221    402   
        self
         403  +
        /* BuilderGenerator.kt:291 */
  222    404   
    }
         405  +
    /* BuilderGenerator.kt:312 */
  223    406   
    #[allow(missing_docs)] // documentation missing in model
         407  +
                           /* BuilderGenerator.kt:314 */
  224    408   
    pub fn set_blob_value(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
         409  +
        /* BuilderGenerator.kt:315 */
  225    410   
        self.blob_value = input;
  226    411   
        self
         412  +
        /* BuilderGenerator.kt:314 */
  227    413   
    }
         414  +
    /* BuilderGenerator.kt:334 */
  228    415   
    #[allow(missing_docs)] // documentation missing in model
         416  +
                           /* BuilderGenerator.kt:336 */
  229    417   
    pub fn get_blob_value(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
         418  +
        /* BuilderGenerator.kt:337 */
  230    419   
        &self.blob_value
         420  +
        /* BuilderGenerator.kt:336 */
  231    421   
    }
  232         -
    /// Consumes the builder and constructs a [`SimpleScalarPropertiesInput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput).
         422  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`SimpleScalarPropertiesInput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput).
         423  +
    /* BuilderGenerator.kt:253 */
  233    424   
    pub fn build(
  234    425   
        self,
  235    426   
    ) -> ::std::result::Result<
  236    427   
        crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput,
  237    428   
        ::aws_smithy_types::error::operation::BuildError,
  238    429   
    > {
  239         -
        ::std::result::Result::Ok(crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput {
  240         -
            true_boolean_value: self.true_boolean_value,
         430  +
        /* BuilderGenerator.kt:254 */
         431  +
        ::std::result::Result::Ok(
         432  +
            /* BuilderGenerator.kt:477 */
         433  +
            crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput {
         434  +
                /* BuilderGenerator.kt:481 */ true_boolean_value: self.true_boolean_value,
         435  +
                /* BuilderGenerator.kt:481 */
  241    436   
                false_boolean_value: self.false_boolean_value,
         437  +
                /* BuilderGenerator.kt:481 */
  242    438   
                byte_value: self.byte_value,
         439  +
                /* BuilderGenerator.kt:481 */
  243    440   
                double_value: self.double_value,
         441  +
                /* BuilderGenerator.kt:481 */
  244    442   
                float_value: self.float_value,
         443  +
                /* BuilderGenerator.kt:481 */
  245    444   
                integer_value: self.integer_value,
         445  +
                /* BuilderGenerator.kt:481 */
  246    446   
                long_value: self.long_value,
         447  +
                /* BuilderGenerator.kt:481 */
  247    448   
                short_value: self.short_value,
         449  +
                /* BuilderGenerator.kt:481 */
  248    450   
                string_value: self.string_value,
         451  +
                /* BuilderGenerator.kt:481 */
  249    452   
                blob_value: self.blob_value,
  250         -
        })
         453  +
                /* BuilderGenerator.kt:477 */
         454  +
            }, /* BuilderGenerator.kt:254 */
         455  +
        )
         456  +
        /* BuilderGenerator.kt:253 */
  251    457   
    }
         458  +
    /* BuilderGenerator.kt:355 */
  252    459   
}

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/operation/simple_scalar_properties/_simple_scalar_properties_output.rs

@@ -1,1 +247,451 @@
    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 SimpleScalarPropertiesOutput {
           8  +
pub /* StructureGenerator.kt:201 */ struct SimpleScalarPropertiesOutput {
           9  +
    /* StructureGenerator.kt:231 */
    6     10   
    #[allow(missing_docs)] // documentation missing in model
    7     11   
    pub true_boolean_value: ::std::option::Option<bool>,
          12  +
    /* StructureGenerator.kt:231 */
    8     13   
    #[allow(missing_docs)] // documentation missing in model
    9     14   
    pub false_boolean_value: ::std::option::Option<bool>,
   10         -
    #[allow(missing_docs)] // documentation missing in model
          15  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   11     16   
    pub byte_value: ::std::option::Option<i8>,
   12         -
    #[allow(missing_docs)] // documentation missing in model
          17  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   13     18   
    pub double_value: ::std::option::Option<f64>,
   14         -
    #[allow(missing_docs)] // documentation missing in model
          19  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   15     20   
    pub float_value: ::std::option::Option<f32>,
   16         -
    #[allow(missing_docs)] // documentation missing in model
          21  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   17     22   
    pub integer_value: ::std::option::Option<i32>,
   18         -
    #[allow(missing_docs)] // documentation missing in model
          23  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   19     24   
    pub long_value: ::std::option::Option<i64>,
   20         -
    #[allow(missing_docs)] // documentation missing in model
          25  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   21     26   
    pub short_value: ::std::option::Option<i16>,
          27  +
    /* StructureGenerator.kt:231 */
   22     28   
    #[allow(missing_docs)] // documentation missing in model
   23     29   
    pub string_value: ::std::option::Option<::std::string::String>,
          30  +
    /* StructureGenerator.kt:231 */
   24     31   
    #[allow(missing_docs)] // documentation missing in model
   25     32   
    pub blob_value: ::std::option::Option<::aws_smithy_types::Blob>,
          33  +
    /* StructureGenerator.kt:201 */
   26     34   
}
          35  +
/* StructureGenerator.kt:135 */
   27     36   
impl SimpleScalarPropertiesOutput {
          37  +
    /* StructureGenerator.kt:231 */
   28     38   
    #[allow(missing_docs)] // documentation missing in model
          39  +
                           /* StructureGenerator.kt:166 */
   29     40   
    pub fn true_boolean_value(&self) -> ::std::option::Option<bool> {
          41  +
        /* StructureGenerator.kt:168 */
   30     42   
        self.true_boolean_value
          43  +
        /* StructureGenerator.kt:166 */
   31     44   
    }
          45  +
    /* StructureGenerator.kt:231 */
   32     46   
    #[allow(missing_docs)] // documentation missing in model
          47  +
                           /* StructureGenerator.kt:166 */
   33     48   
    pub fn false_boolean_value(&self) -> ::std::option::Option<bool> {
          49  +
        /* StructureGenerator.kt:168 */
   34     50   
        self.false_boolean_value
          51  +
        /* StructureGenerator.kt:166 */
   35     52   
    }
          53  +
    /* StructureGenerator.kt:231 */
   36     54   
    #[allow(missing_docs)] // documentation missing in model
          55  +
                           /* StructureGenerator.kt:166 */
   37     56   
    pub fn byte_value(&self) -> ::std::option::Option<i8> {
          57  +
        /* StructureGenerator.kt:168 */
   38     58   
        self.byte_value
          59  +
        /* StructureGenerator.kt:166 */
   39     60   
    }
          61  +
    /* StructureGenerator.kt:231 */
   40     62   
    #[allow(missing_docs)] // documentation missing in model
          63  +
                           /* StructureGenerator.kt:166 */
   41     64   
    pub fn double_value(&self) -> ::std::option::Option<f64> {
          65  +
        /* StructureGenerator.kt:168 */
   42     66   
        self.double_value
          67  +
        /* StructureGenerator.kt:166 */
   43     68   
    }
          69  +
    /* StructureGenerator.kt:231 */
   44     70   
    #[allow(missing_docs)] // documentation missing in model
          71  +
                           /* StructureGenerator.kt:166 */
   45     72   
    pub fn float_value(&self) -> ::std::option::Option<f32> {
          73  +
        /* StructureGenerator.kt:168 */
   46     74   
        self.float_value
          75  +
        /* StructureGenerator.kt:166 */
   47     76   
    }
          77  +
    /* StructureGenerator.kt:231 */
   48     78   
    #[allow(missing_docs)] // documentation missing in model
          79  +
                           /* StructureGenerator.kt:166 */
   49     80   
    pub fn integer_value(&self) -> ::std::option::Option<i32> {
          81  +
        /* StructureGenerator.kt:168 */
   50     82   
        self.integer_value
          83  +
        /* StructureGenerator.kt:166 */
   51     84   
    }
          85  +
    /* StructureGenerator.kt:231 */
   52     86   
    #[allow(missing_docs)] // documentation missing in model
          87  +
                           /* StructureGenerator.kt:166 */
   53     88   
    pub fn long_value(&self) -> ::std::option::Option<i64> {
          89  +
        /* StructureGenerator.kt:168 */
   54     90   
        self.long_value
          91  +
        /* StructureGenerator.kt:166 */
   55     92   
    }
          93  +
    /* StructureGenerator.kt:231 */
   56     94   
    #[allow(missing_docs)] // documentation missing in model
          95  +
                           /* StructureGenerator.kt:166 */
   57     96   
    pub fn short_value(&self) -> ::std::option::Option<i16> {
          97  +
        /* StructureGenerator.kt:168 */
   58     98   
        self.short_value
          99  +
        /* StructureGenerator.kt:166 */
   59    100   
    }
         101  +
    /* StructureGenerator.kt:231 */
   60    102   
    #[allow(missing_docs)] // documentation missing in model
         103  +
                           /* StructureGenerator.kt:166 */
   61    104   
    pub fn string_value(&self) -> ::std::option::Option<&str> {
         105  +
        /* StructureGenerator.kt:169 */
   62    106   
        self.string_value.as_deref()
         107  +
        /* StructureGenerator.kt:166 */
   63    108   
    }
         109  +
    /* StructureGenerator.kt:231 */
   64    110   
    #[allow(missing_docs)] // documentation missing in model
         111  +
                           /* StructureGenerator.kt:166 */
   65    112   
    pub fn blob_value(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
         113  +
        /* StructureGenerator.kt:170 */
   66    114   
        self.blob_value.as_ref()
         115  +
        /* StructureGenerator.kt:166 */
   67    116   
    }
         117  +
    /* StructureGenerator.kt:135 */
   68    118   
}
         119  +
/* ClientCodegenVisitor.kt:237 */
   69    120   
impl SimpleScalarPropertiesOutput {
   70         -
    /// Creates a new builder-style object to manufacture [`SimpleScalarPropertiesOutput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput).
         121  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`SimpleScalarPropertiesOutput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput).
         122  +
    /* BuilderGenerator.kt:175 */
   71    123   
    pub fn builder() -> crate::operation::simple_scalar_properties::builders::SimpleScalarPropertiesOutputBuilder {
         124  +
        /* BuilderGenerator.kt:176 */
   72    125   
        crate::operation::simple_scalar_properties::builders::SimpleScalarPropertiesOutputBuilder::default()
         126  +
        /* BuilderGenerator.kt:175 */
   73    127   
    }
         128  +
    /* ClientCodegenVisitor.kt:237 */
   74    129   
}
   75    130   
   76         -
/// A builder for [`SimpleScalarPropertiesOutput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput).
         131  +
/// /* BuilderGenerator.kt:342 */A builder for [`SimpleScalarPropertiesOutput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput).
         132  +
/* RustType.kt:516 */
   77    133   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         134  +
/* RustType.kt:516 */
   78    135   
#[non_exhaustive]
         136  +
/* BuilderGenerator.kt:345 */
   79    137   
pub struct SimpleScalarPropertiesOutputBuilder {
   80         -
    pub(crate) true_boolean_value: ::std::option::Option<bool>,
   81         -
    pub(crate) false_boolean_value: ::std::option::Option<bool>,
   82         -
    pub(crate) byte_value: ::std::option::Option<i8>,
   83         -
    pub(crate) double_value: ::std::option::Option<f64>,
   84         -
    pub(crate) float_value: ::std::option::Option<f32>,
   85         -
    pub(crate) integer_value: ::std::option::Option<i32>,
   86         -
    pub(crate) long_value: ::std::option::Option<i64>,
   87         -
    pub(crate) short_value: ::std::option::Option<i16>,
   88         -
    pub(crate) string_value: ::std::option::Option<::std::string::String>,
   89         -
    pub(crate) blob_value: ::std::option::Option<::aws_smithy_types::Blob>,
         138  +
    /* BuilderGenerator.kt:275 */ pub(crate) true_boolean_value: ::std::option::Option<bool>,
         139  +
    /* BuilderGenerator.kt:275 */ pub(crate) false_boolean_value: ::std::option::Option<bool>,
         140  +
    /* BuilderGenerator.kt:275 */ pub(crate) byte_value: ::std::option::Option<i8>,
         141  +
    /* BuilderGenerator.kt:275 */ pub(crate) double_value: ::std::option::Option<f64>,
         142  +
    /* BuilderGenerator.kt:275 */ pub(crate) float_value: ::std::option::Option<f32>,
         143  +
    /* BuilderGenerator.kt:275 */ pub(crate) integer_value: ::std::option::Option<i32>,
         144  +
    /* BuilderGenerator.kt:275 */ pub(crate) long_value: ::std::option::Option<i64>,
         145  +
    /* BuilderGenerator.kt:275 */ pub(crate) short_value: ::std::option::Option<i16>,
         146  +
    /* BuilderGenerator.kt:275 */ pub(crate) string_value: ::std::option::Option<::std::string::String>,
         147  +
    /* BuilderGenerator.kt:275 */ pub(crate) blob_value: ::std::option::Option<::aws_smithy_types::Blob>,
         148  +
    /* BuilderGenerator.kt:345 */
   90    149   
}
         150  +
/* BuilderGenerator.kt:355 */
   91    151   
impl SimpleScalarPropertiesOutputBuilder {
         152  +
    /* BuilderGenerator.kt:286 */
   92    153   
    #[allow(missing_docs)] // documentation missing in model
         154  +
                           /* BuilderGenerator.kt:291 */
   93    155   
    pub fn true_boolean_value(mut self, input: bool) -> Self {
         156  +
        /* BuilderGenerator.kt:292 */
   94    157   
        self.true_boolean_value = ::std::option::Option::Some(input);
         158  +
        /* BuilderGenerator.kt:293 */
   95    159   
        self
         160  +
        /* BuilderGenerator.kt:291 */
   96    161   
    }
         162  +
    /* BuilderGenerator.kt:312 */
   97    163   
    #[allow(missing_docs)] // documentation missing in model
         164  +
                           /* BuilderGenerator.kt:314 */
   98    165   
    pub fn set_true_boolean_value(mut self, input: ::std::option::Option<bool>) -> Self {
         166  +
        /* BuilderGenerator.kt:315 */
   99    167   
        self.true_boolean_value = input;
  100    168   
        self
         169  +
        /* BuilderGenerator.kt:314 */
  101    170   
    }
         171  +
    /* BuilderGenerator.kt:334 */
  102    172   
    #[allow(missing_docs)] // documentation missing in model
         173  +
                           /* BuilderGenerator.kt:336 */
  103    174   
    pub fn get_true_boolean_value(&self) -> &::std::option::Option<bool> {
         175  +
        /* BuilderGenerator.kt:337 */
  104    176   
        &self.true_boolean_value
         177  +
        /* BuilderGenerator.kt:336 */
  105    178   
    }
         179  +
    /* BuilderGenerator.kt:286 */
  106    180   
    #[allow(missing_docs)] // documentation missing in model
         181  +
                           /* BuilderGenerator.kt:291 */
  107    182   
    pub fn false_boolean_value(mut self, input: bool) -> Self {
         183  +
        /* BuilderGenerator.kt:292 */
  108    184   
        self.false_boolean_value = ::std::option::Option::Some(input);
         185  +
        /* BuilderGenerator.kt:293 */
  109    186   
        self
         187  +
        /* BuilderGenerator.kt:291 */
  110    188   
    }
         189  +
    /* BuilderGenerator.kt:312 */
  111    190   
    #[allow(missing_docs)] // documentation missing in model
         191  +
                           /* BuilderGenerator.kt:314 */
  112    192   
    pub fn set_false_boolean_value(mut self, input: ::std::option::Option<bool>) -> Self {
         193  +
        /* BuilderGenerator.kt:315 */
  113    194   
        self.false_boolean_value = input;
  114    195   
        self
         196  +
        /* BuilderGenerator.kt:314 */
  115    197   
    }
         198  +
    /* BuilderGenerator.kt:334 */
  116    199   
    #[allow(missing_docs)] // documentation missing in model
         200  +
                           /* BuilderGenerator.kt:336 */
  117    201   
    pub fn get_false_boolean_value(&self) -> &::std::option::Option<bool> {
         202  +
        /* BuilderGenerator.kt:337 */
  118    203   
        &self.false_boolean_value
         204  +
        /* BuilderGenerator.kt:336 */
  119    205   
    }
         206  +
    /* BuilderGenerator.kt:286 */
  120    207   
    #[allow(missing_docs)] // documentation missing in model
         208  +
                           /* BuilderGenerator.kt:291 */
  121    209   
    pub fn byte_value(mut self, input: i8) -> Self {
         210  +
        /* BuilderGenerator.kt:292 */
  122    211   
        self.byte_value = ::std::option::Option::Some(input);
         212  +
        /* BuilderGenerator.kt:293 */
  123    213   
        self
         214  +
        /* BuilderGenerator.kt:291 */
  124    215   
    }
         216  +
    /* BuilderGenerator.kt:312 */
  125    217   
    #[allow(missing_docs)] // documentation missing in model
         218  +
                           /* BuilderGenerator.kt:314 */
  126    219   
    pub fn set_byte_value(mut self, input: ::std::option::Option<i8>) -> Self {
         220  +
        /* BuilderGenerator.kt:315 */
  127    221   
        self.byte_value = input;
  128    222   
        self
         223  +
        /* BuilderGenerator.kt:314 */
  129    224   
    }
         225  +
    /* BuilderGenerator.kt:334 */
  130    226   
    #[allow(missing_docs)] // documentation missing in model
         227  +
                           /* BuilderGenerator.kt:336 */
  131    228   
    pub fn get_byte_value(&self) -> &::std::option::Option<i8> {
         229  +
        /* BuilderGenerator.kt:337 */
  132    230   
        &self.byte_value
         231  +
        /* BuilderGenerator.kt:336 */
  133    232   
    }
         233  +
    /* BuilderGenerator.kt:286 */
  134    234   
    #[allow(missing_docs)] // documentation missing in model
         235  +
                           /* BuilderGenerator.kt:291 */
  135    236   
    pub fn double_value(mut self, input: f64) -> Self {
         237  +
        /* BuilderGenerator.kt:292 */
  136    238   
        self.double_value = ::std::option::Option::Some(input);
         239  +
        /* BuilderGenerator.kt:293 */
  137    240   
        self
         241  +
        /* BuilderGenerator.kt:291 */
  138    242   
    }
         243  +
    /* BuilderGenerator.kt:312 */
  139    244   
    #[allow(missing_docs)] // documentation missing in model
         245  +
                           /* BuilderGenerator.kt:314 */
  140    246   
    pub fn set_double_value(mut self, input: ::std::option::Option<f64>) -> Self {
         247  +
        /* BuilderGenerator.kt:315 */
  141    248   
        self.double_value = input;
  142    249   
        self
         250  +
        /* BuilderGenerator.kt:314 */
  143    251   
    }
         252  +
    /* BuilderGenerator.kt:334 */
  144    253   
    #[allow(missing_docs)] // documentation missing in model
         254  +
                           /* BuilderGenerator.kt:336 */
  145    255   
    pub fn get_double_value(&self) -> &::std::option::Option<f64> {
         256  +
        /* BuilderGenerator.kt:337 */
  146    257   
        &self.double_value
         258  +
        /* BuilderGenerator.kt:336 */
  147    259   
    }
         260  +
    /* BuilderGenerator.kt:286 */
  148    261   
    #[allow(missing_docs)] // documentation missing in model
         262  +
                           /* BuilderGenerator.kt:291 */
  149    263   
    pub fn float_value(mut self, input: f32) -> Self {
         264  +
        /* BuilderGenerator.kt:292 */
  150    265   
        self.float_value = ::std::option::Option::Some(input);
         266  +
        /* BuilderGenerator.kt:293 */
  151    267   
        self
         268  +
        /* BuilderGenerator.kt:291 */
  152    269   
    }
         270  +
    /* BuilderGenerator.kt:312 */
  153    271   
    #[allow(missing_docs)] // documentation missing in model
         272  +
                           /* BuilderGenerator.kt:314 */
  154    273   
    pub fn set_float_value(mut self, input: ::std::option::Option<f32>) -> Self {
         274  +
        /* BuilderGenerator.kt:315 */
  155    275   
        self.float_value = input;
  156    276   
        self
         277  +
        /* BuilderGenerator.kt:314 */
  157    278   
    }
         279  +
    /* BuilderGenerator.kt:334 */
  158    280   
    #[allow(missing_docs)] // documentation missing in model
         281  +
                           /* BuilderGenerator.kt:336 */
  159    282   
    pub fn get_float_value(&self) -> &::std::option::Option<f32> {
         283  +
        /* BuilderGenerator.kt:337 */
  160    284   
        &self.float_value
         285  +
        /* BuilderGenerator.kt:336 */
  161    286   
    }
         287  +
    /* BuilderGenerator.kt:286 */
  162    288   
    #[allow(missing_docs)] // documentation missing in model
         289  +
                           /* BuilderGenerator.kt:291 */
  163    290   
    pub fn integer_value(mut self, input: i32) -> Self {
         291  +
        /* BuilderGenerator.kt:292 */
  164    292   
        self.integer_value = ::std::option::Option::Some(input);
         293  +
        /* BuilderGenerator.kt:293 */
  165    294   
        self
         295  +
        /* BuilderGenerator.kt:291 */
  166    296   
    }
         297  +
    /* BuilderGenerator.kt:312 */
  167    298   
    #[allow(missing_docs)] // documentation missing in model
         299  +
                           /* BuilderGenerator.kt:314 */
  168    300   
    pub fn set_integer_value(mut self, input: ::std::option::Option<i32>) -> Self {
         301  +
        /* BuilderGenerator.kt:315 */
  169    302   
        self.integer_value = input;
  170    303   
        self
         304  +
        /* BuilderGenerator.kt:314 */
  171    305   
    }
         306  +
    /* BuilderGenerator.kt:334 */
  172    307   
    #[allow(missing_docs)] // documentation missing in model
         308  +
                           /* BuilderGenerator.kt:336 */
  173    309   
    pub fn get_integer_value(&self) -> &::std::option::Option<i32> {
         310  +
        /* BuilderGenerator.kt:337 */
  174    311   
        &self.integer_value
         312  +
        /* BuilderGenerator.kt:336 */
  175    313   
    }
         314  +
    /* BuilderGenerator.kt:286 */
  176    315   
    #[allow(missing_docs)] // documentation missing in model
         316  +
                           /* BuilderGenerator.kt:291 */
  177    317   
    pub fn long_value(mut self, input: i64) -> Self {
         318  +
        /* BuilderGenerator.kt:292 */
  178    319   
        self.long_value = ::std::option::Option::Some(input);
         320  +
        /* BuilderGenerator.kt:293 */
  179    321   
        self
         322  +
        /* BuilderGenerator.kt:291 */
  180    323   
    }
         324  +
    /* BuilderGenerator.kt:312 */
  181    325   
    #[allow(missing_docs)] // documentation missing in model
         326  +
                           /* BuilderGenerator.kt:314 */
  182    327   
    pub fn set_long_value(mut self, input: ::std::option::Option<i64>) -> Self {
         328  +
        /* BuilderGenerator.kt:315 */
  183    329   
        self.long_value = input;
  184    330   
        self
         331  +
        /* BuilderGenerator.kt:314 */
  185    332   
    }
         333  +
    /* BuilderGenerator.kt:334 */
  186    334   
    #[allow(missing_docs)] // documentation missing in model
         335  +
                           /* BuilderGenerator.kt:336 */
  187    336   
    pub fn get_long_value(&self) -> &::std::option::Option<i64> {
         337  +
        /* BuilderGenerator.kt:337 */
  188    338   
        &self.long_value
         339  +
        /* BuilderGenerator.kt:336 */
  189    340   
    }
         341  +
    /* BuilderGenerator.kt:286 */
  190    342   
    #[allow(missing_docs)] // documentation missing in model
         343  +
                           /* BuilderGenerator.kt:291 */
  191    344   
    pub fn short_value(mut self, input: i16) -> Self {
         345  +
        /* BuilderGenerator.kt:292 */
  192    346   
        self.short_value = ::std::option::Option::Some(input);
         347  +
        /* BuilderGenerator.kt:293 */
  193    348   
        self
         349  +
        /* BuilderGenerator.kt:291 */
  194    350   
    }
         351  +
    /* BuilderGenerator.kt:312 */
  195    352   
    #[allow(missing_docs)] // documentation missing in model
         353  +
                           /* BuilderGenerator.kt:314 */
  196    354   
    pub fn set_short_value(mut self, input: ::std::option::Option<i16>) -> Self {
         355  +
        /* BuilderGenerator.kt:315 */
  197    356   
        self.short_value = input;
  198    357   
        self
         358  +
        /* BuilderGenerator.kt:314 */
  199    359   
    }
         360  +
    /* BuilderGenerator.kt:334 */
  200    361   
    #[allow(missing_docs)] // documentation missing in model
         362  +
                           /* BuilderGenerator.kt:336 */
  201    363   
    pub fn get_short_value(&self) -> &::std::option::Option<i16> {
         364  +
        /* BuilderGenerator.kt:337 */
  202    365   
        &self.short_value
         366  +
        /* BuilderGenerator.kt:336 */
  203    367   
    }
         368  +
    /* BuilderGenerator.kt:286 */
  204    369   
    #[allow(missing_docs)] // documentation missing in model
         370  +
                           /* BuilderGenerator.kt:291 */
  205    371   
    pub fn string_value(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         372  +
        /* BuilderGenerator.kt:292 */
  206    373   
        self.string_value = ::std::option::Option::Some(input.into());
         374  +
        /* BuilderGenerator.kt:293 */
  207    375   
        self
         376  +
        /* BuilderGenerator.kt:291 */
  208    377   
    }
         378  +
    /* BuilderGenerator.kt:312 */
  209    379   
    #[allow(missing_docs)] // documentation missing in model
         380  +
                           /* BuilderGenerator.kt:314 */
  210    381   
    pub fn set_string_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         382  +
        /* BuilderGenerator.kt:315 */
  211    383   
        self.string_value = input;
  212    384   
        self
         385  +
        /* BuilderGenerator.kt:314 */
  213    386   
    }
         387  +
    /* BuilderGenerator.kt:334 */
  214    388   
    #[allow(missing_docs)] // documentation missing in model
         389  +
                           /* BuilderGenerator.kt:336 */
  215    390   
    pub fn get_string_value(&self) -> &::std::option::Option<::std::string::String> {
         391  +
        /* BuilderGenerator.kt:337 */
  216    392   
        &self.string_value
         393  +
        /* BuilderGenerator.kt:336 */
  217    394   
    }
         395  +
    /* BuilderGenerator.kt:286 */
  218    396   
    #[allow(missing_docs)] // documentation missing in model
         397  +
                           /* BuilderGenerator.kt:291 */
  219    398   
    pub fn blob_value(mut self, input: ::aws_smithy_types::Blob) -> Self {
         399  +
        /* BuilderGenerator.kt:292 */
  220    400   
        self.blob_value = ::std::option::Option::Some(input);
         401  +
        /* BuilderGenerator.kt:293 */
  221    402   
        self
         403  +
        /* BuilderGenerator.kt:291 */
  222    404   
    }
         405  +
    /* BuilderGenerator.kt:312 */
  223    406   
    #[allow(missing_docs)] // documentation missing in model
         407  +
                           /* BuilderGenerator.kt:314 */
  224    408   
    pub fn set_blob_value(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
         409  +
        /* BuilderGenerator.kt:315 */
  225    410   
        self.blob_value = input;
  226    411   
        self
         412  +
        /* BuilderGenerator.kt:314 */
  227    413   
    }
         414  +
    /* BuilderGenerator.kt:334 */
  228    415   
    #[allow(missing_docs)] // documentation missing in model
         416  +
                           /* BuilderGenerator.kt:336 */
  229    417   
    pub fn get_blob_value(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
         418  +
        /* BuilderGenerator.kt:337 */
  230    419   
        &self.blob_value
         420  +
        /* BuilderGenerator.kt:336 */
  231    421   
    }
  232         -
    /// Consumes the builder and constructs a [`SimpleScalarPropertiesOutput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput).
         422  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`SimpleScalarPropertiesOutput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput).
         423  +
    /* BuilderGenerator.kt:253 */
  233    424   
    pub fn build(self) -> crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput {
         425  +
        /* BuilderGenerator.kt:477 */
  234    426   
        crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput {
  235         -
            true_boolean_value: self.true_boolean_value,
         427  +
            /* BuilderGenerator.kt:481 */ true_boolean_value: self.true_boolean_value,
         428  +
            /* BuilderGenerator.kt:481 */
  236    429   
            false_boolean_value: self.false_boolean_value,
         430  +
            /* BuilderGenerator.kt:481 */
  237    431   
            byte_value: self.byte_value,
         432  +
            /* BuilderGenerator.kt:481 */
  238    433   
            double_value: self.double_value,
         434  +
            /* BuilderGenerator.kt:481 */
  239    435   
            float_value: self.float_value,
         436  +
            /* BuilderGenerator.kt:481 */
  240    437   
            integer_value: self.integer_value,
         438  +
            /* BuilderGenerator.kt:481 */
  241    439   
            long_value: self.long_value,
         440  +
            /* BuilderGenerator.kt:481 */
  242    441   
            short_value: self.short_value,
         442  +
            /* BuilderGenerator.kt:481 */
  243    443   
            string_value: self.string_value,
         444  +
            /* BuilderGenerator.kt:481 */
  244    445   
            blob_value: self.blob_value,
         446  +
            /* BuilderGenerator.kt:477 */
  245    447   
        }
         448  +
        /* BuilderGenerator.kt:253 */
  246    449   
    }
         450  +
    /* BuilderGenerator.kt:355 */
  247    451   
}

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

@@ -1,1 +250,322 @@
    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::simple_scalar_properties::_simple_scalar_properties_output::SimpleScalarPropertiesOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::simple_scalar_properties::_simple_scalar_properties_input::SimpleScalarPropertiesInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::simple_scalar_properties::builders::SimpleScalarPropertiesInputBuilder {
    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::simple_scalar_properties::SimpleScalarPropertiesOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::simple_scalar_properties::SimpleScalarPropertiesError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.simple_scalar_properties();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `SimpleScalarProperties`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `SimpleScalarProperties`.
   24     27   
///
          28  +
/* RustType.kt:516 */
   25     29   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          30  +
/* FluentBuilderGenerator.kt:270 */
   26     31   
pub struct SimpleScalarPropertiesFluentBuilder {
   27     32   
    handle: ::std::sync::Arc<crate::client::Handle>,
   28     33   
    inner: crate::operation::simple_scalar_properties::builders::SimpleScalarPropertiesInputBuilder,
   29     34   
    config_override: ::std::option::Option<crate::config::Builder>,
   30     35   
}
          36  +
/* FluentBuilderGenerator.kt:381 */
   31     37   
impl
   32     38   
    crate::client::customize::internal::CustomizableSend<
   33     39   
        crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput,
   34     40   
        crate::operation::simple_scalar_properties::SimpleScalarPropertiesError,
   35     41   
    > for SimpleScalarPropertiesFluentBuilder
   36     42   
{
   37     43   
    fn send(
   38     44   
        self,
   39     45   
        config_override: crate::config::Builder,
   40     46   
    ) -> crate::client::customize::internal::BoxFuture<
   41     47   
        crate::client::customize::internal::SendResult<
   42     48   
            crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput,
   43     49   
            crate::operation::simple_scalar_properties::SimpleScalarPropertiesError,
   44     50   
        >,
   45     51   
    > {
   46     52   
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
   47     53   
    }
   48     54   
}
          55  +
/* FluentBuilderGenerator.kt:282 */
   49     56   
impl SimpleScalarPropertiesFluentBuilder {
          57  +
    /* FluentBuilderGenerator.kt:288 */
   50     58   
    /// Creates a new `SimpleScalarPropertiesFluentBuilder`.
   51     59   
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
   52     60   
        Self {
   53     61   
            handle,
   54     62   
            inner: ::std::default::Default::default(),
   55     63   
            config_override: ::std::option::Option::None,
   56     64   
        }
   57     65   
    }
          66  +
    /* FluentBuilderGenerator.kt:301 */
   58     67   
    /// Access the SimpleScalarProperties as a reference.
   59     68   
    pub fn as_input(&self) -> &crate::operation::simple_scalar_properties::builders::SimpleScalarPropertiesInputBuilder {
   60     69   
        &self.inner
   61     70   
    }
          71  +
    /* FluentBuilderGenerator.kt:145 */
   62     72   
    /// Sends the request and returns the response.
   63     73   
    ///
   64     74   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   65     75   
    /// can be matched against.
   66     76   
    ///
   67     77   
    /// By default, any retryable failures will be retried twice. Retry behavior
   68     78   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   69     79   
    /// set when configuring the client.
   70     80   
    pub async fn send(
   71     81   
        self,
   72     82   
    ) -> ::std::result::Result<
   73     83   
        crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput,
   74     84   
        ::aws_smithy_runtime_api::client::result::SdkError<
   75     85   
            crate::operation::simple_scalar_properties::SimpleScalarPropertiesError,
   76     86   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   77     87   
        >,
   78     88   
    > {
   79     89   
        let input = self
   80     90   
            .inner
   81     91   
            .build()
   82     92   
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
   83     93   
        let runtime_plugins = crate::operation::simple_scalar_properties::SimpleScalarProperties::operation_runtime_plugins(
   84     94   
            self.handle.runtime_plugins.clone(),
   85     95   
            &self.handle.conf,
   86     96   
            self.config_override,
   87     97   
        );
   88     98   
        crate::operation::simple_scalar_properties::SimpleScalarProperties::orchestrate(&runtime_plugins, input).await
   89     99   
    }
   90    100   
   91    101   
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
   92    102   
    pub fn customize(
   93    103   
        self,
   94    104   
    ) -> crate::client::customize::CustomizableOperation<
   95    105   
        crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput,
   96    106   
        crate::operation::simple_scalar_properties::SimpleScalarPropertiesError,
   97    107   
        Self,
   98    108   
    > {
   99    109   
        crate::client::customize::CustomizableOperation::new(self)
  100    110   
    }
         111  +
    /* FluentBuilderGenerator.kt:315 */
  101    112   
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
  102    113   
        self.set_config_override(::std::option::Option::Some(config_override.into()));
  103    114   
        self
  104    115   
    }
  105    116   
  106    117   
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
  107    118   
        self.config_override = config_override;
  108    119   
        self
  109    120   
    }
         121  +
    /* FluentBuilderGenerator.kt:498 */
  110    122   
    #[allow(missing_docs)] // documentation missing in model
         123  +
                           /* FluentBuilderGenerator.kt:500 */
  111    124   
    pub fn true_boolean_value(mut self, input: bool) -> Self {
  112    125   
        self.inner = self.inner.true_boolean_value(input);
  113    126   
        self
  114    127   
    }
         128  +
    /* FluentBuilderGenerator.kt:498 */
  115    129   
    #[allow(missing_docs)] // documentation missing in model
         130  +
                           /* FluentBuilderGenerator.kt:500 */
  116    131   
    pub fn set_true_boolean_value(mut self, input: ::std::option::Option<bool>) -> Self {
  117    132   
        self.inner = self.inner.set_true_boolean_value(input);
  118    133   
        self
  119    134   
    }
         135  +
    /* FluentBuilderGenerator.kt:518 */
  120    136   
    #[allow(missing_docs)] // documentation missing in model
         137  +
                           /* FluentBuilderGenerator.kt:520 */
  121    138   
    pub fn get_true_boolean_value(&self) -> &::std::option::Option<bool> {
  122    139   
        self.inner.get_true_boolean_value()
  123    140   
    }
         141  +
    /* FluentBuilderGenerator.kt:498 */
  124    142   
    #[allow(missing_docs)] // documentation missing in model
         143  +
                           /* FluentBuilderGenerator.kt:500 */
  125    144   
    pub fn false_boolean_value(mut self, input: bool) -> Self {
  126    145   
        self.inner = self.inner.false_boolean_value(input);
  127    146   
        self
  128    147   
    }
         148  +
    /* FluentBuilderGenerator.kt:498 */
  129    149   
    #[allow(missing_docs)] // documentation missing in model
         150  +
                           /* FluentBuilderGenerator.kt:500 */
  130    151   
    pub fn set_false_boolean_value(mut self, input: ::std::option::Option<bool>) -> Self {
  131    152   
        self.inner = self.inner.set_false_boolean_value(input);
  132    153   
        self
  133    154   
    }
         155  +
    /* FluentBuilderGenerator.kt:518 */
  134    156   
    #[allow(missing_docs)] // documentation missing in model
         157  +
                           /* FluentBuilderGenerator.kt:520 */
  135    158   
    pub fn get_false_boolean_value(&self) -> &::std::option::Option<bool> {
  136    159   
        self.inner.get_false_boolean_value()
  137    160   
    }
         161  +
    /* FluentBuilderGenerator.kt:498 */
  138    162   
    #[allow(missing_docs)] // documentation missing in model
         163  +
                           /* FluentBuilderGenerator.kt:500 */
  139    164   
    pub fn byte_value(mut self, input: i8) -> Self {
  140    165   
        self.inner = self.inner.byte_value(input);
  141    166   
        self
  142    167   
    }
         168  +
    /* FluentBuilderGenerator.kt:498 */
  143    169   
    #[allow(missing_docs)] // documentation missing in model
         170  +
                           /* FluentBuilderGenerator.kt:500 */
  144    171   
    pub fn set_byte_value(mut self, input: ::std::option::Option<i8>) -> Self {
  145    172   
        self.inner = self.inner.set_byte_value(input);
  146    173   
        self
  147    174   
    }
         175  +
    /* FluentBuilderGenerator.kt:518 */
  148    176   
    #[allow(missing_docs)] // documentation missing in model
         177  +
                           /* FluentBuilderGenerator.kt:520 */
  149    178   
    pub fn get_byte_value(&self) -> &::std::option::Option<i8> {
  150    179   
        self.inner.get_byte_value()
  151    180   
    }
         181  +
    /* FluentBuilderGenerator.kt:498 */
  152    182   
    #[allow(missing_docs)] // documentation missing in model
         183  +
                           /* FluentBuilderGenerator.kt:500 */
  153    184   
    pub fn double_value(mut self, input: f64) -> Self {
  154    185   
        self.inner = self.inner.double_value(input);
  155    186   
        self
  156    187   
    }
         188  +
    /* FluentBuilderGenerator.kt:498 */
  157    189   
    #[allow(missing_docs)] // documentation missing in model
         190  +
                           /* FluentBuilderGenerator.kt:500 */
  158    191   
    pub fn set_double_value(mut self, input: ::std::option::Option<f64>) -> Self {
  159    192   
        self.inner = self.inner.set_double_value(input);
  160    193   
        self
  161    194   
    }
         195  +
    /* FluentBuilderGenerator.kt:518 */
  162    196   
    #[allow(missing_docs)] // documentation missing in model
         197  +
                           /* FluentBuilderGenerator.kt:520 */
  163    198   
    pub fn get_double_value(&self) -> &::std::option::Option<f64> {
  164    199   
        self.inner.get_double_value()
  165    200   
    }
         201  +
    /* FluentBuilderGenerator.kt:498 */
  166    202   
    #[allow(missing_docs)] // documentation missing in model
         203  +
                           /* FluentBuilderGenerator.kt:500 */
  167    204   
    pub fn float_value(mut self, input: f32) -> Self {
  168    205   
        self.inner = self.inner.float_value(input);
  169    206   
        self
  170    207   
    }
         208  +
    /* FluentBuilderGenerator.kt:498 */
  171    209   
    #[allow(missing_docs)] // documentation missing in model
         210  +
                           /* FluentBuilderGenerator.kt:500 */
  172    211   
    pub fn set_float_value(mut self, input: ::std::option::Option<f32>) -> Self {
  173    212   
        self.inner = self.inner.set_float_value(input);
  174    213   
        self
  175    214   
    }
         215  +
    /* FluentBuilderGenerator.kt:518 */
  176    216   
    #[allow(missing_docs)] // documentation missing in model
         217  +
                           /* FluentBuilderGenerator.kt:520 */
  177    218   
    pub fn get_float_value(&self) -> &::std::option::Option<f32> {
  178    219   
        self.inner.get_float_value()
  179    220   
    }
         221  +
    /* FluentBuilderGenerator.kt:498 */
  180    222   
    #[allow(missing_docs)] // documentation missing in model
         223  +
                           /* FluentBuilderGenerator.kt:500 */
  181    224   
    pub fn integer_value(mut self, input: i32) -> Self {
  182    225   
        self.inner = self.inner.integer_value(input);
  183    226   
        self
  184    227   
    }
         228  +
    /* FluentBuilderGenerator.kt:498 */
  185    229   
    #[allow(missing_docs)] // documentation missing in model
         230  +
                           /* FluentBuilderGenerator.kt:500 */
  186    231   
    pub fn set_integer_value(mut self, input: ::std::option::Option<i32>) -> Self {
  187    232   
        self.inner = self.inner.set_integer_value(input);
  188    233   
        self
  189    234   
    }
         235  +
    /* FluentBuilderGenerator.kt:518 */
  190    236   
    #[allow(missing_docs)] // documentation missing in model
         237  +
                           /* FluentBuilderGenerator.kt:520 */
  191    238   
    pub fn get_integer_value(&self) -> &::std::option::Option<i32> {
  192    239   
        self.inner.get_integer_value()
  193    240   
    }
         241  +
    /* FluentBuilderGenerator.kt:498 */
  194    242   
    #[allow(missing_docs)] // documentation missing in model
         243  +
                           /* FluentBuilderGenerator.kt:500 */
  195    244   
    pub fn long_value(mut self, input: i64) -> Self {
  196    245   
        self.inner = self.inner.long_value(input);
  197    246   
        self
  198    247   
    }
         248  +
    /* FluentBuilderGenerator.kt:498 */
  199    249   
    #[allow(missing_docs)] // documentation missing in model
         250  +
                           /* FluentBuilderGenerator.kt:500 */
  200    251   
    pub fn set_long_value(mut self, input: ::std::option::Option<i64>) -> Self {
  201    252   
        self.inner = self.inner.set_long_value(input);
  202    253   
        self
  203    254   
    }
         255  +
    /* FluentBuilderGenerator.kt:518 */
  204    256   
    #[allow(missing_docs)] // documentation missing in model
         257  +
                           /* FluentBuilderGenerator.kt:520 */
  205    258   
    pub fn get_long_value(&self) -> &::std::option::Option<i64> {
  206    259   
        self.inner.get_long_value()
  207    260   
    }
         261  +
    /* FluentBuilderGenerator.kt:498 */
  208    262   
    #[allow(missing_docs)] // documentation missing in model
         263  +
                           /* FluentBuilderGenerator.kt:500 */
  209    264   
    pub fn short_value(mut self, input: i16) -> Self {
  210    265   
        self.inner = self.inner.short_value(input);
  211    266   
        self
  212    267   
    }
         268  +
    /* FluentBuilderGenerator.kt:498 */
  213    269   
    #[allow(missing_docs)] // documentation missing in model
         270  +
                           /* FluentBuilderGenerator.kt:500 */
  214    271   
    pub fn set_short_value(mut self, input: ::std::option::Option<i16>) -> Self {
  215    272   
        self.inner = self.inner.set_short_value(input);
  216    273   
        self
  217    274   
    }
         275  +
    /* FluentBuilderGenerator.kt:518 */
  218    276   
    #[allow(missing_docs)] // documentation missing in model
         277  +
                           /* FluentBuilderGenerator.kt:520 */
  219    278   
    pub fn get_short_value(&self) -> &::std::option::Option<i16> {
  220    279   
        self.inner.get_short_value()
  221    280   
    }
         281  +
    /* FluentBuilderGenerator.kt:498 */
  222    282   
    #[allow(missing_docs)] // documentation missing in model
         283  +
                           /* FluentBuilderGenerator.kt:500 */
  223    284   
    pub fn string_value(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  224    285   
        self.inner = self.inner.string_value(input.into());
  225    286   
        self
  226    287   
    }
         288  +
    /* FluentBuilderGenerator.kt:498 */
  227    289   
    #[allow(missing_docs)] // documentation missing in model
         290  +
                           /* FluentBuilderGenerator.kt:500 */
  228    291   
    pub fn set_string_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  229    292   
        self.inner = self.inner.set_string_value(input);
  230    293   
        self
  231    294   
    }
         295  +
    /* FluentBuilderGenerator.kt:518 */
  232    296   
    #[allow(missing_docs)] // documentation missing in model
         297  +
                           /* FluentBuilderGenerator.kt:520 */
  233    298   
    pub fn get_string_value(&self) -> &::std::option::Option<::std::string::String> {
  234    299   
        self.inner.get_string_value()
  235    300   
    }
         301  +
    /* FluentBuilderGenerator.kt:498 */
  236    302   
    #[allow(missing_docs)] // documentation missing in model
         303  +
                           /* FluentBuilderGenerator.kt:500 */
  237    304   
    pub fn blob_value(mut self, input: ::aws_smithy_types::Blob) -> Self {
  238    305   
        self.inner = self.inner.blob_value(input);
  239    306   
        self
  240    307   
    }
         308  +
    /* FluentBuilderGenerator.kt:498 */
  241    309   
    #[allow(missing_docs)] // documentation missing in model
         310  +
                           /* FluentBuilderGenerator.kt:500 */
  242    311   
    pub fn set_blob_value(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
  243    312   
        self.inner = self.inner.set_blob_value(input);
  244    313   
        self
  245    314   
    }
         315  +
    /* FluentBuilderGenerator.kt:518 */
  246    316   
    #[allow(missing_docs)] // documentation missing in model
         317  +
                           /* FluentBuilderGenerator.kt:520 */
  247    318   
    pub fn get_blob_value(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
  248    319   
        self.inner.get_blob_value()
  249    320   
    }
         321  +
    /* FluentBuilderGenerator.kt:282 */
  250    322   
}