Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/operation/complex_struct_operation/builders.rs

@@ -1,1 +283,355 @@
    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::complex_struct_operation::_complex_struct_operation_output::ComplexStructOperationOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::complex_struct_operation::_complex_struct_operation_input::ComplexStructOperationInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::complex_struct_operation::builders::ComplexStructOperationInputBuilder {
    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::complex_struct_operation::ComplexStructOperationOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::complex_struct_operation::ComplexStructOperationError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.complex_struct_operation();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `ComplexStructOperation`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `ComplexStructOperation`.
   24     27   
///
          28  +
/* RustType.kt:516 */
   25     29   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          30  +
/* FluentBuilderGenerator.kt:270 */
   26     31   
pub struct ComplexStructOperationFluentBuilder {
   27     32   
    handle: ::std::sync::Arc<crate::client::Handle>,
   28     33   
    inner: crate::operation::complex_struct_operation::builders::ComplexStructOperationInputBuilder,
   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::complex_struct_operation::ComplexStructOperationOutput,
   34     40   
        crate::operation::complex_struct_operation::ComplexStructOperationError,
   35     41   
    > for ComplexStructOperationFluentBuilder
   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::complex_struct_operation::ComplexStructOperationOutput,
   43     49   
            crate::operation::complex_struct_operation::ComplexStructOperationError,
   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 ComplexStructOperationFluentBuilder {
          57  +
    /* FluentBuilderGenerator.kt:288 */
   50     58   
    /// Creates a new `ComplexStructOperationFluentBuilder`.
   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 ComplexStructOperation as a reference.
   59     68   
    pub fn as_input(&self) -> &crate::operation::complex_struct_operation::builders::ComplexStructOperationInputBuilder {
   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::complex_struct_operation::ComplexStructOperationOutput,
   74     84   
        ::aws_smithy_runtime_api::client::result::SdkError<
   75     85   
            crate::operation::complex_struct_operation::ComplexStructOperationError,
   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::complex_struct_operation::ComplexStructOperation::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::complex_struct_operation::ComplexStructOperation::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::complex_struct_operation::ComplexStructOperationOutput,
   96    106   
        crate::operation::complex_struct_operation::ComplexStructOperationError,
   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 structure(mut self, input: crate::types::SimpleStruct) -> Self {
  112    125   
        self.inner = self.inner.structure(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_structure(mut self, input: ::std::option::Option<crate::types::SimpleStruct>) -> Self {
  117    132   
        self.inner = self.inner.set_structure(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_structure(&self) -> &::std::option::Option<crate::types::SimpleStruct> {
  122    139   
        self.inner.get_structure()
  123    140   
    }
         141  +
    /* FluentBuilderGenerator.kt:498 */
  124    142   
    #[allow(missing_docs)] // documentation missing in model
         143  +
                           /* FluentBuilderGenerator.kt:500 */
  125    144   
    pub fn empty_structure(mut self, input: crate::types::EmptyStruct) -> Self {
  126    145   
        self.inner = self.inner.empty_structure(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_empty_structure(mut self, input: ::std::option::Option<crate::types::EmptyStruct>) -> Self {
  131    152   
        self.inner = self.inner.set_empty_structure(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_empty_structure(&self) -> &::std::option::Option<crate::types::EmptyStruct> {
  136    159   
        self.inner.get_empty_structure()
  137    160   
    }
  138         -
    ///
         161  +
    /// /* FluentBuilderGenerator.kt:436 */
  139    162   
    /// Appends an item to `list`.
  140    163   
    ///
  141    164   
    /// To override the contents of this collection use [`set_list`](Self::set_list).
  142    165   
    ///
         166  +
    /* FluentBuilderGenerator.kt:443 */
  143    167   
    #[allow(missing_docs)] // documentation missing in model
         168  +
                           /* FluentBuilderGenerator.kt:446 */
  144    169   
    pub fn list(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  145    170   
        self.inner = self.inner.list(input.into());
  146    171   
        self
  147    172   
    }
         173  +
    /* FluentBuilderGenerator.kt:498 */
  148    174   
    #[allow(missing_docs)] // documentation missing in model
         175  +
                           /* FluentBuilderGenerator.kt:500 */
  149    176   
    pub fn set_list(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
  150    177   
        self.inner = self.inner.set_list(input);
  151    178   
        self
  152    179   
    }
         180  +
    /* FluentBuilderGenerator.kt:518 */
  153    181   
    #[allow(missing_docs)] // documentation missing in model
         182  +
                           /* FluentBuilderGenerator.kt:520 */
  154    183   
    pub fn get_list(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
  155    184   
        self.inner.get_list()
  156    185   
    }
  157         -
    ///
         186  +
    /// /* FluentBuilderGenerator.kt:466 */
  158    187   
    /// Adds a key-value pair to `map`.
  159    188   
    ///
  160    189   
    /// To override the contents of this collection use [`set_map`](Self::set_map).
  161    190   
    ///
         191  +
    /* FluentBuilderGenerator.kt:473 */
  162    192   
    #[allow(missing_docs)] // documentation missing in model
         193  +
                           /* FluentBuilderGenerator.kt:475 */
  163    194   
    pub fn map(mut self, k: impl ::std::convert::Into<::std::string::String>, v: i32) -> Self {
  164    195   
        self.inner = self.inner.map(k.into(), v);
  165    196   
        self
  166    197   
    }
         198  +
    /* FluentBuilderGenerator.kt:498 */
  167    199   
    #[allow(missing_docs)] // documentation missing in model
         200  +
                           /* FluentBuilderGenerator.kt:500 */
  168    201   
    pub fn set_map(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>) -> Self {
  169    202   
        self.inner = self.inner.set_map(input);
  170    203   
        self
  171    204   
    }
         205  +
    /* FluentBuilderGenerator.kt:518 */
  172    206   
    #[allow(missing_docs)] // documentation missing in model
         207  +
                           /* FluentBuilderGenerator.kt:520 */
  173    208   
    pub fn get_map(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, i32>> {
  174    209   
        self.inner.get_map()
  175    210   
    }
         211  +
    /* FluentBuilderGenerator.kt:498 */
  176    212   
    #[allow(missing_docs)] // documentation missing in model
         213  +
                           /* FluentBuilderGenerator.kt:500 */
  177    214   
    pub fn union(mut self, input: crate::types::SimpleUnion) -> Self {
  178    215   
        self.inner = self.inner.union(input);
  179    216   
        self
  180    217   
    }
         218  +
    /* FluentBuilderGenerator.kt:498 */
  181    219   
    #[allow(missing_docs)] // documentation missing in model
         220  +
                           /* FluentBuilderGenerator.kt:500 */
  182    221   
    pub fn set_union(mut self, input: ::std::option::Option<crate::types::SimpleUnion>) -> Self {
  183    222   
        self.inner = self.inner.set_union(input);
  184    223   
        self
  185    224   
    }
         225  +
    /* FluentBuilderGenerator.kt:518 */
  186    226   
    #[allow(missing_docs)] // documentation missing in model
         227  +
                           /* FluentBuilderGenerator.kt:520 */
  187    228   
    pub fn get_union(&self) -> &::std::option::Option<crate::types::SimpleUnion> {
  188    229   
        self.inner.get_union()
  189    230   
    }
         231  +
    /* FluentBuilderGenerator.kt:498 */
  190    232   
    #[allow(missing_docs)] // documentation missing in model
         233  +
                           /* FluentBuilderGenerator.kt:500 */
  191    234   
    pub fn unit_union(mut self, input: crate::types::UnitUnion) -> Self {
  192    235   
        self.inner = self.inner.unit_union(input);
  193    236   
        self
  194    237   
    }
         238  +
    /* FluentBuilderGenerator.kt:498 */
  195    239   
    #[allow(missing_docs)] // documentation missing in model
         240  +
                           /* FluentBuilderGenerator.kt:500 */
  196    241   
    pub fn set_unit_union(mut self, input: ::std::option::Option<crate::types::UnitUnion>) -> Self {
  197    242   
        self.inner = self.inner.set_unit_union(input);
  198    243   
        self
  199    244   
    }
         245  +
    /* FluentBuilderGenerator.kt:518 */
  200    246   
    #[allow(missing_docs)] // documentation missing in model
         247  +
                           /* FluentBuilderGenerator.kt:520 */
  201    248   
    pub fn get_unit_union(&self) -> &::std::option::Option<crate::types::UnitUnion> {
  202    249   
        self.inner.get_unit_union()
  203    250   
    }
  204         -
    ///
         251  +
    /// /* FluentBuilderGenerator.kt:436 */
  205    252   
    /// Appends an item to `structureList`.
  206    253   
    ///
  207    254   
    /// To override the contents of this collection use [`set_structure_list`](Self::set_structure_list).
  208    255   
    ///
         256  +
    /* FluentBuilderGenerator.kt:443 */
  209    257   
    #[allow(missing_docs)] // documentation missing in model
         258  +
                           /* FluentBuilderGenerator.kt:446 */
  210    259   
    pub fn structure_list(mut self, input: crate::types::SimpleStruct) -> Self {
  211    260   
        self.inner = self.inner.structure_list(input);
  212    261   
        self
  213    262   
    }
         263  +
    /* FluentBuilderGenerator.kt:498 */
  214    264   
    #[allow(missing_docs)] // documentation missing in model
         265  +
                           /* FluentBuilderGenerator.kt:500 */
  215    266   
    pub fn set_structure_list(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::SimpleStruct>>) -> Self {
  216    267   
        self.inner = self.inner.set_structure_list(input);
  217    268   
        self
  218    269   
    }
         270  +
    /* FluentBuilderGenerator.kt:518 */
  219    271   
    #[allow(missing_docs)] // documentation missing in model
         272  +
                           /* FluentBuilderGenerator.kt:520 */
  220    273   
    pub fn get_structure_list(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::SimpleStruct>> {
  221    274   
        self.inner.get_structure_list()
  222    275   
    }
  223         -
    ///
         276  +
    /// /* FluentBuilderGenerator.kt:436 */
  224    277   
    /// Appends an item to `complexList`.
  225    278   
    ///
  226    279   
    /// To override the contents of this collection use [`set_complex_list`](Self::set_complex_list).
  227    280   
    ///
         281  +
    /* FluentBuilderGenerator.kt:443 */
  228    282   
    #[allow(missing_docs)] // documentation missing in model
         283  +
                           /* FluentBuilderGenerator.kt:446 */
  229    284   
    pub fn complex_list(mut self, input: ::std::collections::HashMap<::std::string::String, crate::types::ComplexUnion>) -> Self {
  230    285   
        self.inner = self.inner.complex_list(input);
  231    286   
        self
  232    287   
    }
         288  +
    /* FluentBuilderGenerator.kt:498 */
  233    289   
    #[allow(missing_docs)] // documentation missing in model
         290  +
                           /* FluentBuilderGenerator.kt:500 */
  234    291   
    pub fn set_complex_list(
  235    292   
        mut self,
  236    293   
        input: ::std::option::Option<::std::vec::Vec<::std::collections::HashMap<::std::string::String, crate::types::ComplexUnion>>>,
  237    294   
    ) -> Self {
  238    295   
        self.inner = self.inner.set_complex_list(input);
  239    296   
        self
  240    297   
    }
         298  +
    /* FluentBuilderGenerator.kt:518 */
  241    299   
    #[allow(missing_docs)] // documentation missing in model
         300  +
                           /* FluentBuilderGenerator.kt:520 */
  242    301   
    pub fn get_complex_list(
  243    302   
        &self,
  244    303   
    ) -> &::std::option::Option<::std::vec::Vec<::std::collections::HashMap<::std::string::String, crate::types::ComplexUnion>>> {
  245    304   
        self.inner.get_complex_list()
  246    305   
    }
  247         -
    ///
         306  +
    /// /* FluentBuilderGenerator.kt:466 */
  248    307   
    /// Adds a key-value pair to `complexMap`.
  249    308   
    ///
  250    309   
    /// To override the contents of this collection use [`set_complex_map`](Self::set_complex_map).
  251    310   
    ///
         311  +
    /* FluentBuilderGenerator.kt:473 */
  252    312   
    #[allow(missing_docs)] // documentation missing in model
         313  +
                           /* FluentBuilderGenerator.kt:475 */
  253    314   
    pub fn complex_map(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::ComplexUnion) -> Self {
  254    315   
        self.inner = self.inner.complex_map(k.into(), v);
  255    316   
        self
  256    317   
    }
         318  +
    /* FluentBuilderGenerator.kt:498 */
  257    319   
    #[allow(missing_docs)] // documentation missing in model
         320  +
                           /* FluentBuilderGenerator.kt:500 */
  258    321   
    pub fn set_complex_map(
  259    322   
        mut self,
  260    323   
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::ComplexUnion>>,
  261    324   
    ) -> Self {
  262    325   
        self.inner = self.inner.set_complex_map(input);
  263    326   
        self
  264    327   
    }
         328  +
    /* FluentBuilderGenerator.kt:518 */
  265    329   
    #[allow(missing_docs)] // documentation missing in model
         330  +
                           /* FluentBuilderGenerator.kt:520 */
  266    331   
    pub fn get_complex_map(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::ComplexUnion>> {
  267    332   
        self.inner.get_complex_map()
  268    333   
    }
         334  +
    /* FluentBuilderGenerator.kt:498 */
  269    335   
    #[allow(missing_docs)] // documentation missing in model
         336  +
                           /* FluentBuilderGenerator.kt:500 */
  270    337   
    pub fn complex_union(mut self, input: impl ::std::convert::Into<::std::boxed::Box<crate::types::ComplexUnion>>) -> Self {
  271    338   
        self.inner = self.inner.complex_union(input.into());
  272    339   
        self
  273    340   
    }
         341  +
    /* FluentBuilderGenerator.kt:498 */
  274    342   
    #[allow(missing_docs)] // documentation missing in model
         343  +
                           /* FluentBuilderGenerator.kt:500 */
  275    344   
    pub fn set_complex_union(mut self, input: ::std::option::Option<::std::boxed::Box<crate::types::ComplexUnion>>) -> Self {
  276    345   
        self.inner = self.inner.set_complex_union(input);
  277    346   
        self
  278    347   
    }
         348  +
    /* FluentBuilderGenerator.kt:518 */
  279    349   
    #[allow(missing_docs)] // documentation missing in model
         350  +
                           /* FluentBuilderGenerator.kt:520 */
  280    351   
    pub fn get_complex_union(&self) -> &::std::option::Option<::std::boxed::Box<crate::types::ComplexUnion>> {
  281    352   
        self.inner.get_complex_union()
  282    353   
    }
         354  +
    /* FluentBuilderGenerator.kt:282 */
  283    355   
}

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/operation/empty_struct_operation.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 `EmptyStructOperation`.
           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 EmptyStructOperation;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl EmptyStructOperation {
    7         -
    /// Creates a new `EmptyStructOperation`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `EmptyStructOperation`
          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::empty_struct_operation::EmptyStructOperationInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::empty_struct_operation::EmptyStructOperationOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::empty_struct_operation::EmptyStructOperationError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -63,72 +341,412 @@
   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 EmptyStructOperation {
   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("EmptyStructOperation");
   97    108   
   98    109   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   99    110   
            EmptyStructOperationRequestSerializer,
  100    111   
        ));
  101    112   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
  102    113   
            EmptyStructOperationResponseDeserializer,
  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   
            "EmptyStructOperation",
  111    122   
            "RpcV2CborService",
  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("EmptyStructOperation")
  123    134   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  124    135   
            .with_interceptor(EmptyStructOperationEndpointParamsInterceptor)
  125    136   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  126    137   
                crate::operation::empty_struct_operation::EmptyStructOperationError,
  127    138   
            >::new())
  128    139   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  129    140   
                crate::operation::empty_struct_operation::EmptyStructOperationError,
  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 EmptyStructOperationResponseDeserializer;
  138    150   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for EmptyStructOperationResponseDeserializer {
  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_empty_struct_operation::de_empty_struct_operation_http_error(status, headers, body)
  151    163   
        } else {
  152    164   
            crate::protocol_serde::shape_empty_struct_operation::de_empty_struct_operation_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 EmptyStructOperationRequestSerializer;
  159    172   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for EmptyStructOperationRequestSerializer {
  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::empty_struct_operation::EmptyStructOperationInput>()
  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::empty_struct_operation::EmptyStructOperationInput,
  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/RpcV2CborService/operation/EmptyStructOperation").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::empty_struct_operation::EmptyStructOperationInput,
  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(crate::protocol_serde::shape_empty_struct_operation::ser_empty_struct_operation_input(
  200    213   
            &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 EmptyStructOperationEndpointParamsInterceptor;
  211    225   
  212    226   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for EmptyStructOperationEndpointParamsInterceptor {
  213    227   
    fn name(&self) -> &'static str {
  214    228   
        "EmptyStructOperationEndpointParamsInterceptor"
  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::<EmptyStructOperationInput>()
  230    244   
            .ok_or("failed to downcast to EmptyStructOperationInput")?;
  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  +
/* OperationErrorGenerator.kt:79 */
  244    259   
/// Error type for the `EmptyStructOperationError` operation.
         260  +
/* RustType.kt:516 */
  245    261   
#[non_exhaustive]
         262  +
/* RustType.kt:516 */
  246    263   
#[derive(::std::fmt::Debug)]
  247         -
pub enum EmptyStructOperationError {
         264  +
pub /* OperationErrorGenerator.kt:81 */ enum EmptyStructOperationError {
         265  +
    /* OperationErrorGenerator.kt:88 */
  248    266   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  249    267   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  250    268   
    variable wildcard pattern and check `.code()`:
  251    269   
     \
  252    270   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  253    271   
     \
  254    272   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-EmptyStructOperationError) for what information is available for the error.")]
  255    273   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         274  +
    /* OperationErrorGenerator.kt:81 */
  256    275   
}
         276  +
/* OperationErrorGenerator.kt:218 */
  257    277   
impl EmptyStructOperationError {
         278  +
    /* OperationErrorGenerator.kt:219 */
  258    279   
    /// Creates the `EmptyStructOperationError::Unhandled` variant from any error type.
  259    280   
    pub fn unhandled(
  260    281   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  261    282   
    ) -> Self {
  262    283   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  263    284   
            source: err.into(),
  264    285   
            meta: ::std::default::Default::default(),
  265    286   
        })
  266    287   
    }
  267    288   
  268    289   
    /// Creates the `EmptyStructOperationError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  269    290   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  270    291   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  271    292   
            source: err.clone().into(),
  272    293   
            meta: err,
  273    294   
        })
  274    295   
    }
  275         -
    ///
         296  +
    /// /* OperationErrorGenerator.kt:236 */
  276    297   
    /// Returns error metadata, which includes the error code, message,
  277    298   
    /// request ID, and potentially additional information.
  278    299   
    ///
         300  +
    /* OperationErrorGenerator.kt:242 */
  279    301   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         302  +
        /* OperationErrorGenerator.kt:243 */
  280    303   
        match self {
  281         -
            Self::Unhandled(e) => &e.meta,
         304  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         305  +
            /* OperationErrorGenerator.kt:243 */
  282    306   
        }
         307  +
        /* OperationErrorGenerator.kt:242 */
  283    308   
    }
         309  +
    /* OperationErrorGenerator.kt:218 */
  284    310   
}
         311  +
/* OperationErrorGenerator.kt:269 */
  285    312   
impl ::std::error::Error for EmptyStructOperationError {
         313  +
    /* OperationErrorGenerator.kt:270 */
  286    314   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         315  +
        /* OperationErrorGenerator.kt:318 */
  287    316   
        match self {
  288         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         317  +
            /* OperationErrorGenerator.kt:326 */
         318  +
            Self::Unhandled(_inner) => {
         319  +
                /* OperationErrorGenerator.kt:279 */
         320  +
                ::std::option::Option::Some(&*_inner.source)
         321  +
                /* OperationErrorGenerator.kt:326 */
         322  +
            } /* OperationErrorGenerator.kt:318 */
  289    323   
        }
         324  +
        /* OperationErrorGenerator.kt:270 */
  290    325   
    }
         326  +
    /* OperationErrorGenerator.kt:269 */
  291    327   
}
         328  +
/* OperationErrorGenerator.kt:133 */
  292    329   
impl ::std::fmt::Display for EmptyStructOperationError {
         330  +
    /* OperationErrorGenerator.kt:134 */
  293    331   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         332  +
        /* OperationErrorGenerator.kt:318 */
  294    333   
        match self {
         334  +
            /* OperationErrorGenerator.kt:326 */
  295    335   
            Self::Unhandled(_inner) => {
         336  +
                /* OperationErrorGenerator.kt:139 */
  296    337   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  297    338   
                    write!(f, "unhandled error ({code})")
  298    339   
                } else {
  299    340   
                    f.write_str("unhandled error")
  300    341   
                }
         342  +
                /* OperationErrorGenerator.kt:326 */
         343  +
            } /* OperationErrorGenerator.kt:318 */
  301    344   
        }
         345  +
        /* OperationErrorGenerator.kt:134 */
  302    346   
    }
  303         -
    }
         347  +
    /* OperationErrorGenerator.kt:133 */
  304    348   
}
         349  +
/* OperationErrorGenerator.kt:182 */
  305    350   
impl ::aws_smithy_types::retry::ProvideErrorKind for EmptyStructOperationError {
         351  +
    /* OperationErrorGenerator.kt:186 */
  306    352   
    fn code(&self) -> ::std::option::Option<&str> {
         353  +
        /* OperationErrorGenerator.kt:187 */
  307    354   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         355  +
        /* OperationErrorGenerator.kt:186 */
  308    356   
    }
         357  +
    /* OperationErrorGenerator.kt:190 */
  309    358   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         359  +
        /* OperationErrorGenerator.kt:197 */
  310    360   
        ::std::option::Option::None
         361  +
        /* OperationErrorGenerator.kt:190 */
  311    362   
    }
         363  +
    /* OperationErrorGenerator.kt:182 */
  312    364   
}
         365  +
/* OperationErrorGenerator.kt:163 */
  313    366   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for EmptyStructOperationError {
         367  +
    /* OperationErrorGenerator.kt:164 */
  314    368   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         369  +
        /* OperationErrorGenerator.kt:318 */
  315    370   
        match self {
  316         -
            Self::Unhandled(_inner) => &_inner.meta,
         371  +
            /* OperationErrorGenerator.kt:326 */
         372  +
            Self::Unhandled(_inner) => {
         373  +
                /* OperationErrorGenerator.kt:168 */
         374  +
                &_inner.meta
         375  +
                /* OperationErrorGenerator.kt:326 */
         376  +
            } /* OperationErrorGenerator.kt:318 */
  317    377   
        }
         378  +
        /* OperationErrorGenerator.kt:164 */
  318    379   
    }
         380  +
    /* OperationErrorGenerator.kt:163 */
  319    381   
}
         382  +
/* OperationErrorGenerator.kt:109 */
  320    383   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for EmptyStructOperationError {
         384  +
    /* OperationErrorGenerator.kt:110 */
  321    385   
    fn create_unhandled_error(
  322    386   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  323    387   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  324    388   
    ) -> Self {
         389  +
        /* OperationErrorGenerator.kt:121 */
  325    390   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  326    391   
            source,
  327    392   
            meta: meta.unwrap_or_default(),
  328    393   
        })
         394  +
        /* OperationErrorGenerator.kt:110 */
  329    395   
    }
         396  +
    /* OperationErrorGenerator.kt:109 */
  330    397   
}
  331    398   
         399  +
/* CodegenDelegator.kt:255 */
  332    400   
pub use crate::operation::empty_struct_operation::_empty_struct_operation_output::EmptyStructOperationOutput;
  333    401   
         402  +
/* CodegenDelegator.kt:255 */
  334    403   
pub use crate::operation::empty_struct_operation::_empty_struct_operation_input::EmptyStructOperationInput;
  335    404   
         405  +
/* RustModule.kt:172 */
  336    406   
mod _empty_struct_operation_input;
  337    407   
         408  +
/* RustModule.kt:172 */
  338    409   
mod _empty_struct_operation_output;
  339    410   
  340         -
/// Builders
         411  +
/// /* CodegenDelegator.kt:51 */Builders
  341    412   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/operation/empty_struct_operation/_empty_struct_operation_input.rs

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

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/operation/empty_struct_operation/_empty_struct_operation_output.rs

@@ -1,1 +22,39 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* StructureGenerator.kt:197 */
    2      3   
#[allow(missing_docs)] // documentation missing in model
           4  +
/* RustType.kt:516 */
    3      5   
#[non_exhaustive]
           6  +
/* RustType.kt:516 */
    4      7   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    5         -
pub struct EmptyStructOperationOutput {}
           8  +
pub /* StructureGenerator.kt:201 */ struct EmptyStructOperationOutput {/* StructureGenerator.kt:201 */}
           9  +
/* ClientCodegenVisitor.kt:237 */
    6     10   
impl EmptyStructOperationOutput {
    7         -
    /// Creates a new builder-style object to manufacture [`EmptyStructOperationOutput`](crate::operation::empty_struct_operation::EmptyStructOperationOutput).
          11  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`EmptyStructOperationOutput`](crate::operation::empty_struct_operation::EmptyStructOperationOutput).
          12  +
    /* BuilderGenerator.kt:175 */
    8     13   
    pub fn builder() -> crate::operation::empty_struct_operation::builders::EmptyStructOperationOutputBuilder {
          14  +
        /* BuilderGenerator.kt:176 */
    9     15   
        crate::operation::empty_struct_operation::builders::EmptyStructOperationOutputBuilder::default()
          16  +
        /* BuilderGenerator.kt:175 */
   10     17   
    }
          18  +
    /* ClientCodegenVisitor.kt:237 */
   11     19   
}
   12     20   
   13         -
/// A builder for [`EmptyStructOperationOutput`](crate::operation::empty_struct_operation::EmptyStructOperationOutput).
          21  +
/// /* BuilderGenerator.kt:342 */A builder for [`EmptyStructOperationOutput`](crate::operation::empty_struct_operation::EmptyStructOperationOutput).
          22  +
/* RustType.kt:516 */
   14     23   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          24  +
/* RustType.kt:516 */
   15     25   
#[non_exhaustive]
   16         -
pub struct EmptyStructOperationOutputBuilder {}
          26  +
/* BuilderGenerator.kt:345 */
          27  +
pub struct EmptyStructOperationOutputBuilder {/* BuilderGenerator.kt:345 */}
          28  +
/* BuilderGenerator.kt:355 */
   17     29   
impl EmptyStructOperationOutputBuilder {
   18         -
    /// Consumes the builder and constructs a [`EmptyStructOperationOutput`](crate::operation::empty_struct_operation::EmptyStructOperationOutput).
          30  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`EmptyStructOperationOutput`](crate::operation::empty_struct_operation::EmptyStructOperationOutput).
          31  +
    /* BuilderGenerator.kt:253 */
   19     32   
    pub fn build(self) -> crate::operation::empty_struct_operation::EmptyStructOperationOutput {
   20         -
        crate::operation::empty_struct_operation::EmptyStructOperationOutput {}
          33  +
        /* BuilderGenerator.kt:477 */
          34  +
        crate::operation::empty_struct_operation::EmptyStructOperationOutput {
          35  +
        /* BuilderGenerator.kt:477 */}
          36  +
        /* BuilderGenerator.kt:253 */
   21     37   
    }
          38  +
    /* BuilderGenerator.kt:355 */
   22     39   
}

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/operation/empty_struct_operation/builders.rs

@@ -1,1 +110,122 @@
    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::empty_struct_operation::_empty_struct_operation_output::EmptyStructOperationOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::empty_struct_operation::_empty_struct_operation_input::EmptyStructOperationInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::empty_struct_operation::builders::EmptyStructOperationInputBuilder {
    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::empty_struct_operation::EmptyStructOperationOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::empty_struct_operation::EmptyStructOperationError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.empty_struct_operation();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `EmptyStructOperation`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `EmptyStructOperation`.
   24     27   
///
          28  +
/* RustType.kt:516 */
   25     29   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          30  +
/* FluentBuilderGenerator.kt:270 */
   26     31   
pub struct EmptyStructOperationFluentBuilder {
   27     32   
    handle: ::std::sync::Arc<crate::client::Handle>,
   28     33   
    inner: crate::operation::empty_struct_operation::builders::EmptyStructOperationInputBuilder,
   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::empty_struct_operation::EmptyStructOperationOutput,
   34     40   
        crate::operation::empty_struct_operation::EmptyStructOperationError,
   35     41   
    > for EmptyStructOperationFluentBuilder
   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::empty_struct_operation::EmptyStructOperationOutput,
   43     49   
            crate::operation::empty_struct_operation::EmptyStructOperationError,
   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 EmptyStructOperationFluentBuilder {
          57  +
    /* FluentBuilderGenerator.kt:288 */
   50     58   
    /// Creates a new `EmptyStructOperationFluentBuilder`.
   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 EmptyStructOperation as a reference.
   59     68   
    pub fn as_input(&self) -> &crate::operation::empty_struct_operation::builders::EmptyStructOperationInputBuilder {
   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::empty_struct_operation::EmptyStructOperationOutput,
   74     84   
        ::aws_smithy_runtime_api::client::result::SdkError<
   75     85   
            crate::operation::empty_struct_operation::EmptyStructOperationError,
   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::empty_struct_operation::EmptyStructOperation::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::empty_struct_operation::EmptyStructOperation::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::empty_struct_operation::EmptyStructOperationOutput,
   96    106   
        crate::operation::empty_struct_operation::EmptyStructOperationError,
   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:282 */
  110    122   
}

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/operation/error_serialization_operation.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 `ErrorSerializationOperation`.
           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 ErrorSerializationOperation;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl ErrorSerializationOperation {
    7         -
    /// Creates a new `ErrorSerializationOperation`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `ErrorSerializationOperation`
          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::error_serialization_operation::ErrorSerializationOperationInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::error_serialization_operation::ErrorSerializationOperationOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::error_serialization_operation::ErrorSerializationOperationError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -63,72 +404,503 @@
   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 ErrorSerializationOperation {
   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("ErrorSerializationOperation");
   97    108   
   98    109   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   99    110   
            ErrorSerializationOperationRequestSerializer,
  100    111   
        ));
  101    112   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
  102    113   
            ErrorSerializationOperationResponseDeserializer,
  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   
            "ErrorSerializationOperation",
  111    122   
            "RpcV2CborService",
  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("ErrorSerializationOperation")
  123    134   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  124    135   
            .with_interceptor(ErrorSerializationOperationEndpointParamsInterceptor)
  125    136   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  126    137   
                crate::operation::error_serialization_operation::ErrorSerializationOperationError,
  127    138   
            >::new())
  128    139   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  129    140   
                crate::operation::error_serialization_operation::ErrorSerializationOperationError,
  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 ErrorSerializationOperationResponseDeserializer;
  138    150   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ErrorSerializationOperationResponseDeserializer {
  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_error_serialization_operation::de_error_serialization_operation_http_error(status, headers, body)
  151    163   
        } else {
  152    164   
            crate::protocol_serde::shape_error_serialization_operation::de_error_serialization_operation_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 ErrorSerializationOperationRequestSerializer;
  159    172   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ErrorSerializationOperationRequestSerializer {
  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::error_serialization_operation::ErrorSerializationOperationInput>()
  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::error_serialization_operation::ErrorSerializationOperationInput,
  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/RpcV2CborService/operation/ErrorSerializationOperation").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::error_serialization_operation::ErrorSerializationOperationInput,
  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_error_serialization_operation::ser_error_serialization_operation_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 ErrorSerializationOperationEndpointParamsInterceptor;
  211    225   
  212    226   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ErrorSerializationOperationEndpointParamsInterceptor {
  213    227   
    fn name(&self) -> &'static str {
  214    228   
        "ErrorSerializationOperationEndpointParamsInterceptor"
  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::<ErrorSerializationOperationInput>()
  230    244   
            .ok_or("failed to downcast to ErrorSerializationOperationInput")?;
  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 error_serialization_operation_test {
  247    264   
  248    265   
    /// Despite the operation output being a structure shape with the `@error` trait,
  249    266   
    /// `__type` field should, in a strict interpretation of the spec, not be included,
  250    267   
    /// because we're not serializing a server error response. However, we do, because
  251    268   
    /// there shouldn't™️ be any harm in doing so, and it greatly simplifies the
  252    269   
    /// code generator. This test just pins this behavior in case we ever modify it.
  253    270   
    /// Test ID: OperationOutputSerializationQuestionablyIncludesTypeField
  254    271   
    #[::tokio::test]
  255    272   
    #[::tracing_test::traced_test]
  256    273   
    async fn operation_output_serialization_questionably_includes_type_field_response() {
  257    274   
        let expected_output = crate::operation::error_serialization_operation::ErrorSerializationOperationOutput::builder()
  258    275   
            .set_error_shape(::std::option::Option::Some(
  259    276   
                crate::types::error::ValidationError::builder()
  260    277   
                    .set_message(::std::option::Option::Some("ValidationException message field".to_owned()))
  261    278   
                    .build()
  262    279   
                    .unwrap(),
  263    280   
            ))
  264    281   
            .build();
  265    282   
        let mut http_response = ::aws_smithy_runtime_api::http::Response::try_from(::http::response::Builder::new()
  266    283   
        .status(200)
  267    284   
                    .body(::aws_smithy_types::body::SdkBody::from("v2plcnJvclNoYXBlv2ZfX3R5cGV4JHNtaXRoeS5mcmFtZXdvcmsjVmFsaWRhdGlvbkV4Y2VwdGlvbmdtZXNzYWdleCFWYWxpZGF0aW9uRXhjZXB0aW9uIG1lc3NhZ2UgZmllbGT//w=="))
  268    285   
                    .unwrap()
  269    286   
                    ).unwrap();
  270    287   
        use ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin;
  271    288   
        use ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse;
  272    289   
  273    290   
        let op = crate::operation::error_serialization_operation::ErrorSerializationOperation::new();
  274    291   
        let config = op.config().expect("the operation has config");
  275    292   
        let de = config
  276    293   
            .load::<::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer>()
  277    294   
            .expect("the config must have a deserializer");
  278    295   
  279    296   
        let parsed = de.deserialize_streaming(&mut http_response);
  280    297   
        let parsed = parsed.unwrap_or_else(|| {
  281    298   
            let http_response = http_response.map(|body| {
  282    299   
                ::aws_smithy_types::body::SdkBody::from(::bytes::Bytes::copy_from_slice(&::aws_smithy_protocol_test::decode_body_data(
  283    300   
                    body.bytes().unwrap(),
  284    301   
                    ::aws_smithy_protocol_test::MediaType::from("application/cbor"),
  285    302   
                )))
  286    303   
            });
  287    304   
            de.deserialize_nonstreaming(&http_response)
  288    305   
        });
  289    306   
        let parsed = parsed
  290    307   
            .expect("should be successful response")
  291    308   
            .downcast::<crate::operation::error_serialization_operation::ErrorSerializationOperationOutput>()
  292    309   
            .unwrap();
  293    310   
        ::pretty_assertions::assert_eq!(parsed.error_shape, expected_output.error_shape, "Unexpected value for `error_shape`");
  294    311   
    }
         312  +
         313  +
    /* ProtocolTestGenerator.kt:98 */
  295    314   
}
  296    315   
         316  +
/* OperationErrorGenerator.kt:79 */
  297    317   
/// Error type for the `ErrorSerializationOperationError` operation.
         318  +
/* RustType.kt:516 */
  298    319   
#[non_exhaustive]
         320  +
/* RustType.kt:516 */
  299    321   
#[derive(::std::fmt::Debug)]
  300         -
pub enum ErrorSerializationOperationError {
  301         -
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
         322  +
pub /* OperationErrorGenerator.kt:81 */ enum ErrorSerializationOperationError {
         323  +
    /// /* OperationErrorGenerator.kt:83 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
         324  +
    /* OperationErrorGenerator.kt:86 */
  302    325   
    ValidationError(crate::types::error::ValidationError),
         326  +
    /* OperationErrorGenerator.kt:88 */
  303    327   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  304    328   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  305    329   
    variable wildcard pattern and check `.code()`:
  306    330   
     \
  307    331   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  308    332   
     \
  309    333   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-ErrorSerializationOperationError) for what information is available for the error.")]
  310    334   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         335  +
    /* OperationErrorGenerator.kt:81 */
  311    336   
}
         337  +
/* OperationErrorGenerator.kt:218 */
  312    338   
impl ErrorSerializationOperationError {
         339  +
    /* OperationErrorGenerator.kt:219 */
  313    340   
    /// Creates the `ErrorSerializationOperationError::Unhandled` variant from any error type.
  314    341   
    pub fn unhandled(
  315    342   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  316    343   
    ) -> Self {
  317    344   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  318    345   
            source: err.into(),
  319    346   
            meta: ::std::default::Default::default(),
  320    347   
        })
  321    348   
    }
  322    349   
  323    350   
    /// Creates the `ErrorSerializationOperationError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  324    351   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  325    352   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  326    353   
            source: err.clone().into(),
  327    354   
            meta: err,
  328    355   
        })
  329    356   
    }
  330         -
    ///
         357  +
    /// /* OperationErrorGenerator.kt:236 */
  331    358   
    /// Returns error metadata, which includes the error code, message,
  332    359   
    /// request ID, and potentially additional information.
  333    360   
    ///
         361  +
    /* OperationErrorGenerator.kt:242 */
  334    362   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         363  +
        /* OperationErrorGenerator.kt:243 */
  335    364   
        match self {
  336         -
            Self::ValidationError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
  337         -
            Self::Unhandled(e) => &e.meta,
         365  +
            /* OperationErrorGenerator.kt:246 */ Self::ValidationError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         366  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         367  +
            /* OperationErrorGenerator.kt:243 */
  338    368   
        }
         369  +
        /* OperationErrorGenerator.kt:242 */
  339    370   
    }
         371  +
    /* OperationErrorGenerator.kt:257 */
  340    372   
    /// Returns `true` if the error kind is `ErrorSerializationOperationError::ValidationError`.
         373  +
    /* OperationErrorGenerator.kt:258 */
  341    374   
    pub fn is_validation_error(&self) -> bool {
         375  +
        /* OperationErrorGenerator.kt:259 */
  342    376   
        matches!(self, Self::ValidationError(_))
         377  +
        /* OperationErrorGenerator.kt:258 */
  343    378   
    }
         379  +
    /* OperationErrorGenerator.kt:218 */
  344    380   
}
         381  +
/* OperationErrorGenerator.kt:269 */
  345    382   
impl ::std::error::Error for ErrorSerializationOperationError {
         383  +
    /* OperationErrorGenerator.kt:270 */
  346    384   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         385  +
        /* OperationErrorGenerator.kt:318 */
  347    386   
        match self {
  348         -
            Self::ValidationError(_inner) => ::std::option::Option::Some(_inner),
  349         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         387  +
            /* OperationErrorGenerator.kt:321 */
         388  +
            Self::ValidationError(_inner) =>
         389  +
            /* OperationErrorGenerator.kt:283 */
         390  +
            {
         391  +
                ::std::option::Option::Some(_inner)
         392  +
            }
         393  +
            ,
         394  +
            /* OperationErrorGenerator.kt:326 */
         395  +
            Self::Unhandled(_inner) => {
         396  +
                /* OperationErrorGenerator.kt:279 */
         397  +
                ::std::option::Option::Some(&*_inner.source)
         398  +
                /* OperationErrorGenerator.kt:326 */
         399  +
            } /* OperationErrorGenerator.kt:318 */
  350    400   
        }
         401  +
        /* OperationErrorGenerator.kt:270 */
  351    402   
    }
         403  +
    /* OperationErrorGenerator.kt:269 */
  352    404   
}
         405  +
/* OperationErrorGenerator.kt:133 */
  353    406   
impl ::std::fmt::Display for ErrorSerializationOperationError {
         407  +
    /* OperationErrorGenerator.kt:134 */
  354    408   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         409  +
        /* OperationErrorGenerator.kt:318 */
  355    410   
        match self {
  356         -
            Self::ValidationError(_inner) => _inner.fmt(f),
         411  +
            /* OperationErrorGenerator.kt:321 */
         412  +
            Self::ValidationError(_inner) =>
         413  +
            /* OperationErrorGenerator.kt:151 */
         414  +
            {
         415  +
                _inner.fmt(f)
         416  +
            }
         417  +
            ,
         418  +
            /* OperationErrorGenerator.kt:326 */
  357    419   
            Self::Unhandled(_inner) => {
         420  +
                /* OperationErrorGenerator.kt:139 */
  358    421   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  359    422   
                    write!(f, "unhandled error ({code})")
  360    423   
                } else {
  361    424   
                    f.write_str("unhandled error")
  362    425   
                }
         426  +
                /* OperationErrorGenerator.kt:326 */
         427  +
            } /* OperationErrorGenerator.kt:318 */
  363    428   
        }
         429  +
        /* OperationErrorGenerator.kt:134 */
  364    430   
    }
  365         -
    }
         431  +
    /* OperationErrorGenerator.kt:133 */
  366    432   
}
         433  +
/* OperationErrorGenerator.kt:182 */
  367    434   
impl ::aws_smithy_types::retry::ProvideErrorKind for ErrorSerializationOperationError {
         435  +
    /* OperationErrorGenerator.kt:186 */
  368    436   
    fn code(&self) -> ::std::option::Option<&str> {
         437  +
        /* OperationErrorGenerator.kt:187 */
  369    438   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         439  +
        /* OperationErrorGenerator.kt:186 */
  370    440   
    }
         441  +
    /* OperationErrorGenerator.kt:190 */
  371    442   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         443  +
        /* OperationErrorGenerator.kt:197 */
  372    444   
        ::std::option::Option::None
         445  +
        /* OperationErrorGenerator.kt:190 */
  373    446   
    }
         447  +
    /* OperationErrorGenerator.kt:182 */
  374    448   
}
         449  +
/* OperationErrorGenerator.kt:163 */
  375    450   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for ErrorSerializationOperationError {
         451  +
    /* OperationErrorGenerator.kt:164 */
  376    452   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         453  +
        /* OperationErrorGenerator.kt:318 */
  377    454   
        match self {
  378         -
            Self::ValidationError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  379         -
            Self::Unhandled(_inner) => &_inner.meta,
         455  +
            /* OperationErrorGenerator.kt:321 */
         456  +
            Self::ValidationError(_inner) =>
         457  +
            /* OperationErrorGenerator.kt:169 */
         458  +
            {
         459  +
                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
         460  +
            }
         461  +
            ,
         462  +
            /* OperationErrorGenerator.kt:326 */
         463  +
            Self::Unhandled(_inner) => {
         464  +
                /* OperationErrorGenerator.kt:168 */
         465  +
                &_inner.meta
         466  +
                /* OperationErrorGenerator.kt:326 */
         467  +
            } /* OperationErrorGenerator.kt:318 */
  380    468   
        }
         469  +
        /* OperationErrorGenerator.kt:164 */
  381    470   
    }
         471  +
    /* OperationErrorGenerator.kt:163 */
  382    472   
}
         473  +
/* OperationErrorGenerator.kt:109 */
  383    474   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for ErrorSerializationOperationError {
         475  +
    /* OperationErrorGenerator.kt:110 */
  384    476   
    fn create_unhandled_error(
  385    477   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  386    478   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  387    479   
    ) -> Self {
         480  +
        /* OperationErrorGenerator.kt:121 */
  388    481   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  389    482   
            source,
  390    483   
            meta: meta.unwrap_or_default(),
  391    484   
        })
         485  +
        /* OperationErrorGenerator.kt:110 */
  392    486   
    }
         487  +
    /* OperationErrorGenerator.kt:109 */
  393    488   
}
  394    489   
         490  +
/* CodegenDelegator.kt:255 */
  395    491   
pub use crate::operation::error_serialization_operation::_error_serialization_operation_output::ErrorSerializationOperationOutput;
  396    492   
         493  +
/* CodegenDelegator.kt:255 */
  397    494   
pub use crate::operation::error_serialization_operation::_error_serialization_operation_input::ErrorSerializationOperationInput;
  398    495   
         496  +
/* RustModule.kt:172 */
  399    497   
mod _error_serialization_operation_input;
  400    498   
         499  +
/* RustModule.kt:172 */
  401    500   
mod _error_serialization_operation_output;
  402    501   
  403         -
/// Builders
         502  +
/// /* CodegenDelegator.kt:51 */Builders
  404    503   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/operation/error_serialization_operation/_error_serialization_operation_input.rs

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

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/operation/error_serialization_operation/_error_serialization_operation_output.rs

@@ -1,1 +49,84 @@
    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 ErrorSerializationOperationOutput {
    6         -
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
           8  +
pub /* StructureGenerator.kt:201 */ struct ErrorSerializationOperationOutput {
           9  +
    /// /* StructureGenerator.kt:231 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
    7     10   
    pub error_shape: ::std::option::Option<crate::types::error::ValidationError>,
          11  +
    /* StructureGenerator.kt:201 */
    8     12   
}
          13  +
/* StructureGenerator.kt:135 */
    9     14   
impl ErrorSerializationOperationOutput {
   10         -
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
          15  +
    /// /* StructureGenerator.kt:231 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
          16  +
    /* StructureGenerator.kt:166 */
   11     17   
    pub fn error_shape(&self) -> ::std::option::Option<&crate::types::error::ValidationError> {
          18  +
        /* StructureGenerator.kt:170 */
   12     19   
        self.error_shape.as_ref()
          20  +
        /* StructureGenerator.kt:166 */
   13     21   
    }
          22  +
    /* StructureGenerator.kt:135 */
   14     23   
}
          24  +
/* ClientCodegenVisitor.kt:237 */
   15     25   
impl ErrorSerializationOperationOutput {
   16         -
    /// Creates a new builder-style object to manufacture [`ErrorSerializationOperationOutput`](crate::operation::error_serialization_operation::ErrorSerializationOperationOutput).
          26  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ErrorSerializationOperationOutput`](crate::operation::error_serialization_operation::ErrorSerializationOperationOutput).
          27  +
    /* BuilderGenerator.kt:175 */
   17     28   
    pub fn builder() -> crate::operation::error_serialization_operation::builders::ErrorSerializationOperationOutputBuilder {
          29  +
        /* BuilderGenerator.kt:176 */
   18     30   
        crate::operation::error_serialization_operation::builders::ErrorSerializationOperationOutputBuilder::default()
          31  +
        /* BuilderGenerator.kt:175 */
   19     32   
    }
          33  +
    /* ClientCodegenVisitor.kt:237 */
   20     34   
}
   21     35   
   22         -
/// A builder for [`ErrorSerializationOperationOutput`](crate::operation::error_serialization_operation::ErrorSerializationOperationOutput).
          36  +
/// /* BuilderGenerator.kt:342 */A builder for [`ErrorSerializationOperationOutput`](crate::operation::error_serialization_operation::ErrorSerializationOperationOutput).
          37  +
/* RustType.kt:516 */
   23     38   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          39  +
/* RustType.kt:516 */
   24     40   
#[non_exhaustive]
          41  +
/* BuilderGenerator.kt:345 */
   25     42   
pub struct ErrorSerializationOperationOutputBuilder {
          43  +
    /* BuilderGenerator.kt:275 */
   26     44   
    pub(crate) error_shape: ::std::option::Option<crate::types::error::ValidationError>,
          45  +
    /* BuilderGenerator.kt:345 */
   27     46   
}
          47  +
/* BuilderGenerator.kt:355 */
   28     48   
impl ErrorSerializationOperationOutputBuilder {
   29         -
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
          49  +
    /// /* BuilderGenerator.kt:286 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
          50  +
    /* BuilderGenerator.kt:291 */
   30     51   
    pub fn error_shape(mut self, input: crate::types::error::ValidationError) -> Self {
          52  +
        /* BuilderGenerator.kt:292 */
   31     53   
        self.error_shape = ::std::option::Option::Some(input);
          54  +
        /* BuilderGenerator.kt:293 */
   32     55   
        self
          56  +
        /* BuilderGenerator.kt:291 */
   33     57   
    }
   34         -
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
          58  +
    /// /* BuilderGenerator.kt:312 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
          59  +
    /* BuilderGenerator.kt:314 */
   35     60   
    pub fn set_error_shape(mut self, input: ::std::option::Option<crate::types::error::ValidationError>) -> Self {
          61  +
        /* BuilderGenerator.kt:315 */
   36     62   
        self.error_shape = input;
   37     63   
        self
          64  +
        /* BuilderGenerator.kt:314 */
   38     65   
    }
   39         -
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
          66  +
    /// /* BuilderGenerator.kt:334 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
          67  +
    /* BuilderGenerator.kt:336 */
   40     68   
    pub fn get_error_shape(&self) -> &::std::option::Option<crate::types::error::ValidationError> {
          69  +
        /* BuilderGenerator.kt:337 */
   41     70   
        &self.error_shape
          71  +
        /* BuilderGenerator.kt:336 */
   42     72   
    }
   43         -
    /// Consumes the builder and constructs a [`ErrorSerializationOperationOutput`](crate::operation::error_serialization_operation::ErrorSerializationOperationOutput).
          73  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ErrorSerializationOperationOutput`](crate::operation::error_serialization_operation::ErrorSerializationOperationOutput).
          74  +
    /* BuilderGenerator.kt:253 */
   44     75   
    pub fn build(self) -> crate::operation::error_serialization_operation::ErrorSerializationOperationOutput {
          76  +
        /* BuilderGenerator.kt:477 */
   45     77   
        crate::operation::error_serialization_operation::ErrorSerializationOperationOutput {
   46         -
            error_shape: self.error_shape,
          78  +
            /* BuilderGenerator.kt:481 */ error_shape: self.error_shape,
          79  +
            /* BuilderGenerator.kt:477 */
   47     80   
        }
          81  +
        /* BuilderGenerator.kt:253 */
   48     82   
    }
          83  +
    /* BuilderGenerator.kt:355 */
   49     84   
}

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/operation/error_serialization_operation/builders.rs

@@ -1,1 +418,562 @@
    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::error_serialization_operation::_error_serialization_operation_output::ErrorSerializationOperationOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::error_serialization_operation::_error_serialization_operation_input::ErrorSerializationOperationInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::error_serialization_operation::builders::ErrorSerializationOperationInputBuilder {
    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::error_serialization_operation::ErrorSerializationOperationOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::error_serialization_operation::ErrorSerializationOperationError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.error_serialization_operation();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `ErrorSerializationOperation`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `ErrorSerializationOperation`.
   24     27   
///
          28  +
/* RustType.kt:516 */
   25     29   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          30  +
/* FluentBuilderGenerator.kt:270 */
   26     31   
pub struct ErrorSerializationOperationFluentBuilder {
   27     32   
    handle: ::std::sync::Arc<crate::client::Handle>,
   28     33   
    inner: crate::operation::error_serialization_operation::builders::ErrorSerializationOperationInputBuilder,
   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::error_serialization_operation::ErrorSerializationOperationOutput,
   34     40   
        crate::operation::error_serialization_operation::ErrorSerializationOperationError,
   35     41   
    > for ErrorSerializationOperationFluentBuilder
   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::error_serialization_operation::ErrorSerializationOperationOutput,
   43     49   
            crate::operation::error_serialization_operation::ErrorSerializationOperationError,
   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 ErrorSerializationOperationFluentBuilder {
          57  +
    /* FluentBuilderGenerator.kt:288 */
   50     58   
    /// Creates a new `ErrorSerializationOperationFluentBuilder`.
   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 ErrorSerializationOperation as a reference.
   59     68   
    pub fn as_input(&self) -> &crate::operation::error_serialization_operation::builders::ErrorSerializationOperationInputBuilder {
   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::error_serialization_operation::ErrorSerializationOperationOutput,
   74     84   
        ::aws_smithy_runtime_api::client::result::SdkError<
   75     85   
            crate::operation::error_serialization_operation::ErrorSerializationOperationError,
   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::error_serialization_operation::ErrorSerializationOperation::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::error_serialization_operation::ErrorSerializationOperation::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::error_serialization_operation::ErrorSerializationOperationOutput,
   96    106   
        crate::operation::error_serialization_operation::ErrorSerializationOperationError,
   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 blob(mut self, input: ::aws_smithy_types::Blob) -> Self {
  112    125   
        self.inner = self.inner.blob(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_blob(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
  117    132   
        self.inner = self.inner.set_blob(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_blob(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
  122    139   
        self.inner.get_blob()
  123    140   
    }
         141  +
    /* FluentBuilderGenerator.kt:498 */
  124    142   
    #[allow(missing_docs)] // documentation missing in model
         143  +
                           /* FluentBuilderGenerator.kt:500 */
  125    144   
    pub fn boolean(mut self, input: bool) -> Self {
  126    145   
        self.inner = self.inner.boolean(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_boolean(mut self, input: ::std::option::Option<bool>) -> Self {
  131    152   
        self.inner = self.inner.set_boolean(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_boolean(&self) -> &::std::option::Option<bool> {
  136    159   
        self.inner.get_boolean()
  137    160   
    }
         161  +
    /* FluentBuilderGenerator.kt:498 */
  138    162   
    #[allow(missing_docs)] // documentation missing in model
         163  +
                           /* FluentBuilderGenerator.kt:500 */
  139    164   
    pub fn string(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  140    165   
        self.inner = self.inner.string(input.into());
  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_string(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  145    172   
        self.inner = self.inner.set_string(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_string(&self) -> &::std::option::Option<::std::string::String> {
  150    179   
        self.inner.get_string()
  151    180   
    }
         181  +
    /* FluentBuilderGenerator.kt:498 */
  152    182   
    #[allow(missing_docs)] // documentation missing in model
         183  +
                           /* FluentBuilderGenerator.kt:500 */
  153    184   
    pub fn byte(mut self, input: i8) -> Self {
  154    185   
        self.inner = self.inner.byte(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_byte(mut self, input: ::std::option::Option<i8>) -> Self {
  159    192   
        self.inner = self.inner.set_byte(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_byte(&self) -> &::std::option::Option<i8> {
  164    199   
        self.inner.get_byte()
  165    200   
    }
         201  +
    /* FluentBuilderGenerator.kt:498 */
  166    202   
    #[allow(missing_docs)] // documentation missing in model
         203  +
                           /* FluentBuilderGenerator.kt:500 */
  167    204   
    pub fn short(mut self, input: i16) -> Self {
  168    205   
        self.inner = self.inner.short(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_short(mut self, input: ::std::option::Option<i16>) -> Self {
  173    212   
        self.inner = self.inner.set_short(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_short(&self) -> &::std::option::Option<i16> {
  178    219   
        self.inner.get_short()
  179    220   
    }
         221  +
    /* FluentBuilderGenerator.kt:498 */
  180    222   
    #[allow(missing_docs)] // documentation missing in model
         223  +
                           /* FluentBuilderGenerator.kt:500 */
  181    224   
    pub fn integer(mut self, input: i32) -> Self {
  182    225   
        self.inner = self.inner.integer(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(mut self, input: ::std::option::Option<i32>) -> Self {
  187    232   
        self.inner = self.inner.set_integer(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(&self) -> &::std::option::Option<i32> {
  192    239   
        self.inner.get_integer()
  193    240   
    }
         241  +
    /* FluentBuilderGenerator.kt:498 */
  194    242   
    #[allow(missing_docs)] // documentation missing in model
         243  +
                           /* FluentBuilderGenerator.kt:500 */
  195    244   
    pub fn long(mut self, input: i64) -> Self {
  196    245   
        self.inner = self.inner.long(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(mut self, input: ::std::option::Option<i64>) -> Self {
  201    252   
        self.inner = self.inner.set_long(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(&self) -> &::std::option::Option<i64> {
  206    259   
        self.inner.get_long()
  207    260   
    }
         261  +
    /* FluentBuilderGenerator.kt:498 */
  208    262   
    #[allow(missing_docs)] // documentation missing in model
         263  +
                           /* FluentBuilderGenerator.kt:500 */
  209    264   
    pub fn float(mut self, input: f32) -> Self {
  210    265   
        self.inner = self.inner.float(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_float(mut self, input: ::std::option::Option<f32>) -> Self {
  215    272   
        self.inner = self.inner.set_float(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_float(&self) -> &::std::option::Option<f32> {
  220    279   
        self.inner.get_float()
  221    280   
    }
         281  +
    /* FluentBuilderGenerator.kt:498 */
  222    282   
    #[allow(missing_docs)] // documentation missing in model
         283  +
                           /* FluentBuilderGenerator.kt:500 */
  223    284   
    pub fn double(mut self, input: f64) -> Self {
  224    285   
        self.inner = self.inner.double(input);
  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_double(mut self, input: ::std::option::Option<f64>) -> Self {
  229    292   
        self.inner = self.inner.set_double(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_double(&self) -> &::std::option::Option<f64> {
  234    299   
        self.inner.get_double()
  235    300   
    }
         301  +
    /* FluentBuilderGenerator.kt:498 */
  236    302   
    #[allow(missing_docs)] // documentation missing in model
         303  +
                           /* FluentBuilderGenerator.kt:500 */
  237    304   
    pub fn timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
  238    305   
        self.inner = self.inner.timestamp(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_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
  243    312   
        self.inner = self.inner.set_timestamp(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_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
  248    319   
        self.inner.get_timestamp()
  249    320   
    }
         321  +
    /* FluentBuilderGenerator.kt:498 */
  250    322   
    #[allow(missing_docs)] // documentation missing in model
         323  +
                           /* FluentBuilderGenerator.kt:500 */
  251    324   
    pub fn r#enum(mut self, input: crate::types::Suit) -> Self {
  252    325   
        self.inner = self.inner.r#enum(input);
  253    326   
        self
  254    327   
    }
         328  +
    /* FluentBuilderGenerator.kt:498 */
  255    329   
    #[allow(missing_docs)] // documentation missing in model
         330  +
                           /* FluentBuilderGenerator.kt:500 */
  256    331   
    pub fn set_enum(mut self, input: ::std::option::Option<crate::types::Suit>) -> Self {
  257    332   
        self.inner = self.inner.set_enum(input);
  258    333   
        self
  259    334   
    }
         335  +
    /* FluentBuilderGenerator.kt:518 */
  260    336   
    #[allow(missing_docs)] // documentation missing in model
         337  +
                           /* FluentBuilderGenerator.kt:520 */
  261    338   
    pub fn get_enum(&self) -> &::std::option::Option<crate::types::Suit> {
  262    339   
        self.inner.get_enum()
  263    340   
    }
         341  +
    /* FluentBuilderGenerator.kt:498 */
  264    342   
    #[allow(missing_docs)] // documentation missing in model
         343  +
                           /* FluentBuilderGenerator.kt:500 */
  265    344   
    pub fn required_blob(mut self, input: ::aws_smithy_types::Blob) -> Self {
  266    345   
        self.inner = self.inner.required_blob(input);
  267    346   
        self
  268    347   
    }
         348  +
    /* FluentBuilderGenerator.kt:498 */
  269    349   
    #[allow(missing_docs)] // documentation missing in model
         350  +
                           /* FluentBuilderGenerator.kt:500 */
  270    351   
    pub fn set_required_blob(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
  271    352   
        self.inner = self.inner.set_required_blob(input);
  272    353   
        self
  273    354   
    }
         355  +
    /* FluentBuilderGenerator.kt:518 */
  274    356   
    #[allow(missing_docs)] // documentation missing in model
         357  +
                           /* FluentBuilderGenerator.kt:520 */
  275    358   
    pub fn get_required_blob(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
  276    359   
        self.inner.get_required_blob()
  277    360   
    }
         361  +
    /* FluentBuilderGenerator.kt:498 */
  278    362   
    #[allow(missing_docs)] // documentation missing in model
         363  +
                           /* FluentBuilderGenerator.kt:500 */
  279    364   
    pub fn required_boolean(mut self, input: bool) -> Self {
  280    365   
        self.inner = self.inner.required_boolean(input);
  281    366   
        self
  282    367   
    }
         368  +
    /* FluentBuilderGenerator.kt:498 */
  283    369   
    #[allow(missing_docs)] // documentation missing in model
         370  +
                           /* FluentBuilderGenerator.kt:500 */
  284    371   
    pub fn set_required_boolean(mut self, input: ::std::option::Option<bool>) -> Self {
  285    372   
        self.inner = self.inner.set_required_boolean(input);
  286    373   
        self
  287    374   
    }
         375  +
    /* FluentBuilderGenerator.kt:518 */
  288    376   
    #[allow(missing_docs)] // documentation missing in model
         377  +
                           /* FluentBuilderGenerator.kt:520 */
  289    378   
    pub fn get_required_boolean(&self) -> &::std::option::Option<bool> {
  290    379   
        self.inner.get_required_boolean()
  291    380   
    }
         381  +
    /* FluentBuilderGenerator.kt:498 */
  292    382   
    #[allow(missing_docs)] // documentation missing in model
         383  +
                           /* FluentBuilderGenerator.kt:500 */
  293    384   
    pub fn required_string(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  294    385   
        self.inner = self.inner.required_string(input.into());
  295    386   
        self
  296    387   
    }
         388  +
    /* FluentBuilderGenerator.kt:498 */
  297    389   
    #[allow(missing_docs)] // documentation missing in model
         390  +
                           /* FluentBuilderGenerator.kt:500 */
  298    391   
    pub fn set_required_string(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  299    392   
        self.inner = self.inner.set_required_string(input);
  300    393   
        self
  301    394   
    }
         395  +
    /* FluentBuilderGenerator.kt:518 */
  302    396   
    #[allow(missing_docs)] // documentation missing in model
         397  +
                           /* FluentBuilderGenerator.kt:520 */
  303    398   
    pub fn get_required_string(&self) -> &::std::option::Option<::std::string::String> {
  304    399   
        self.inner.get_required_string()
  305    400   
    }
         401  +
    /* FluentBuilderGenerator.kt:498 */
  306    402   
    #[allow(missing_docs)] // documentation missing in model
         403  +
                           /* FluentBuilderGenerator.kt:500 */
  307    404   
    pub fn required_byte(mut self, input: i8) -> Self {
  308    405   
        self.inner = self.inner.required_byte(input);
  309    406   
        self
  310    407   
    }
         408  +
    /* FluentBuilderGenerator.kt:498 */
  311    409   
    #[allow(missing_docs)] // documentation missing in model
         410  +
                           /* FluentBuilderGenerator.kt:500 */
  312    411   
    pub fn set_required_byte(mut self, input: ::std::option::Option<i8>) -> Self {
  313    412   
        self.inner = self.inner.set_required_byte(input);
  314    413   
        self
  315    414   
    }
         415  +
    /* FluentBuilderGenerator.kt:518 */
  316    416   
    #[allow(missing_docs)] // documentation missing in model
         417  +
                           /* FluentBuilderGenerator.kt:520 */
  317    418   
    pub fn get_required_byte(&self) -> &::std::option::Option<i8> {
  318    419   
        self.inner.get_required_byte()
  319    420   
    }
         421  +
    /* FluentBuilderGenerator.kt:498 */
  320    422   
    #[allow(missing_docs)] // documentation missing in model
         423  +
                           /* FluentBuilderGenerator.kt:500 */
  321    424   
    pub fn required_short(mut self, input: i16) -> Self {
  322    425   
        self.inner = self.inner.required_short(input);
  323    426   
        self
  324    427   
    }
         428  +
    /* FluentBuilderGenerator.kt:498 */
  325    429   
    #[allow(missing_docs)] // documentation missing in model
         430  +
                           /* FluentBuilderGenerator.kt:500 */
  326    431   
    pub fn set_required_short(mut self, input: ::std::option::Option<i16>) -> Self {
  327    432   
        self.inner = self.inner.set_required_short(input);
  328    433   
        self
  329    434   
    }
         435  +
    /* FluentBuilderGenerator.kt:518 */
  330    436   
    #[allow(missing_docs)] // documentation missing in model
         437  +
                           /* FluentBuilderGenerator.kt:520 */
  331    438   
    pub fn get_required_short(&self) -> &::std::option::Option<i16> {
  332    439   
        self.inner.get_required_short()
  333    440   
    }
         441  +
    /* FluentBuilderGenerator.kt:498 */
  334    442   
    #[allow(missing_docs)] // documentation missing in model
         443  +
                           /* FluentBuilderGenerator.kt:500 */
  335    444   
    pub fn required_integer(mut self, input: i32) -> Self {
  336    445   
        self.inner = self.inner.required_integer(input);
  337    446   
        self
  338    447   
    }
         448  +
    /* FluentBuilderGenerator.kt:498 */
  339    449   
    #[allow(missing_docs)] // documentation missing in model
         450  +
                           /* FluentBuilderGenerator.kt:500 */
  340    451   
    pub fn set_required_integer(mut self, input: ::std::option::Option<i32>) -> Self {
  341    452   
        self.inner = self.inner.set_required_integer(input);
  342    453   
        self
  343    454   
    }
         455  +
    /* FluentBuilderGenerator.kt:518 */
  344    456   
    #[allow(missing_docs)] // documentation missing in model
         457  +
                           /* FluentBuilderGenerator.kt:520 */
  345    458   
    pub fn get_required_integer(&self) -> &::std::option::Option<i32> {
  346    459   
        self.inner.get_required_integer()
  347    460   
    }
         461  +
    /* FluentBuilderGenerator.kt:498 */
  348    462   
    #[allow(missing_docs)] // documentation missing in model
         463  +
                           /* FluentBuilderGenerator.kt:500 */
  349    464   
    pub fn required_long(mut self, input: i64) -> Self {
  350    465   
        self.inner = self.inner.required_long(input);
  351    466   
        self
  352    467   
    }
         468  +
    /* FluentBuilderGenerator.kt:498 */
  353    469   
    #[allow(missing_docs)] // documentation missing in model
         470  +
                           /* FluentBuilderGenerator.kt:500 */
  354    471   
    pub fn set_required_long(mut self, input: ::std::option::Option<i64>) -> Self {
  355    472   
        self.inner = self.inner.set_required_long(input);
  356    473   
        self
  357    474   
    }
         475  +
    /* FluentBuilderGenerator.kt:518 */
  358    476   
    #[allow(missing_docs)] // documentation missing in model
         477  +
                           /* FluentBuilderGenerator.kt:520 */
  359    478   
    pub fn get_required_long(&self) -> &::std::option::Option<i64> {
  360    479   
        self.inner.get_required_long()
  361    480   
    }
         481  +
    /* FluentBuilderGenerator.kt:498 */
  362    482   
    #[allow(missing_docs)] // documentation missing in model
         483  +
                           /* FluentBuilderGenerator.kt:500 */
  363    484   
    pub fn required_float(mut self, input: f32) -> Self {
  364    485   
        self.inner = self.inner.required_float(input);
  365    486   
        self
  366    487   
    }
         488  +
    /* FluentBuilderGenerator.kt:498 */
  367    489   
    #[allow(missing_docs)] // documentation missing in model
         490  +
                           /* FluentBuilderGenerator.kt:500 */
  368    491   
    pub fn set_required_float(mut self, input: ::std::option::Option<f32>) -> Self {
  369    492   
        self.inner = self.inner.set_required_float(input);
  370    493   
        self
  371    494   
    }
         495  +
    /* FluentBuilderGenerator.kt:518 */
  372    496   
    #[allow(missing_docs)] // documentation missing in model
         497  +
                           /* FluentBuilderGenerator.kt:520 */
  373    498   
    pub fn get_required_float(&self) -> &::std::option::Option<f32> {
  374    499   
        self.inner.get_required_float()
  375    500   
    }
         501  +
    /* FluentBuilderGenerator.kt:498 */
  376    502   
    #[allow(missing_docs)] // documentation missing in model
         503  +
                           /* FluentBuilderGenerator.kt:500 */
  377    504   
    pub fn required_double(mut self, input: f64) -> Self {
  378    505   
        self.inner = self.inner.required_double(input);
  379    506   
        self
  380    507   
    }
         508  +
    /* FluentBuilderGenerator.kt:498 */
  381    509   
    #[allow(missing_docs)] // documentation missing in model
         510  +
                           /* FluentBuilderGenerator.kt:500 */
  382    511   
    pub fn set_required_double(mut self, input: ::std::option::Option<f64>) -> Self {
  383    512   
        self.inner = self.inner.set_required_double(input);
  384    513   
        self
  385    514   
    }
         515  +
    /* FluentBuilderGenerator.kt:518 */
  386    516   
    #[allow(missing_docs)] // documentation missing in model
         517  +
                           /* FluentBuilderGenerator.kt:520 */
  387    518   
    pub fn get_required_double(&self) -> &::std::option::Option<f64> {
  388    519   
        self.inner.get_required_double()
  389    520   
    }
         521  +
    /* FluentBuilderGenerator.kt:498 */
  390    522   
    #[allow(missing_docs)] // documentation missing in model
         523  +
                           /* FluentBuilderGenerator.kt:500 */
  391    524   
    pub fn required_timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
  392    525   
        self.inner = self.inner.required_timestamp(input);
  393    526   
        self
  394    527   
    }
         528  +
    /* FluentBuilderGenerator.kt:498 */
  395    529   
    #[allow(missing_docs)] // documentation missing in model
         530  +
                           /* FluentBuilderGenerator.kt:500 */
  396    531   
    pub fn set_required_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
  397    532   
        self.inner = self.inner.set_required_timestamp(input);
  398    533   
        self
  399    534   
    }
         535  +
    /* FluentBuilderGenerator.kt:518 */
  400    536   
    #[allow(missing_docs)] // documentation missing in model
         537  +
                           /* FluentBuilderGenerator.kt:520 */
  401    538   
    pub fn get_required_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
  402    539   
        self.inner.get_required_timestamp()
  403    540   
    }
         541  +
    /* FluentBuilderGenerator.kt:498 */
  404    542   
    #[allow(missing_docs)] // documentation missing in model
         543  +
                           /* FluentBuilderGenerator.kt:500 */
  405    544   
    pub fn required_enum(mut self, input: crate::types::Suit) -> Self {
  406    545   
        self.inner = self.inner.required_enum(input);
  407    546   
        self
  408    547   
    }
         548  +
    /* FluentBuilderGenerator.kt:498 */
  409    549   
    #[allow(missing_docs)] // documentation missing in model
         550  +
                           /* FluentBuilderGenerator.kt:500 */
  410    551   
    pub fn set_required_enum(mut self, input: ::std::option::Option<crate::types::Suit>) -> Self {
  411    552   
        self.inner = self.inner.set_required_enum(input);
  412    553   
        self
  413    554   
    }
         555  +
    /* FluentBuilderGenerator.kt:518 */
  414    556   
    #[allow(missing_docs)] // documentation missing in model
         557  +
                           /* FluentBuilderGenerator.kt:520 */
  415    558   
    pub fn get_required_enum(&self) -> &::std::option::Option<crate::types::Suit> {
  416    559   
        self.inner.get_required_enum()
  417    560   
    }
         561  +
    /* FluentBuilderGenerator.kt:282 */
  418    562   
}