Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-client-test/json_rpc11/rust-client-codegen/src/operation/json_enums/builders.rs

@@ -1,1 +207,255 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CodegenDelegator.kt:255 */
    2      3   
pub use crate::operation::json_enums::_json_enums_output::JsonEnumsOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::json_enums::_json_enums_input::JsonEnumsInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::json_enums::builders::JsonEnumsInputBuilder {
    7     10   
    /// Sends a request with this input using the given client.
    8     11   
    pub async fn send_with(
    9     12   
        self,
   10     13   
        client: &crate::Client,
   11     14   
    ) -> ::std::result::Result<
   12     15   
        crate::operation::json_enums::JsonEnumsOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::json_enums::JsonEnumsError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.json_enums();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `JsonEnums`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `JsonEnums`.
   24     27   
///
   25         -
/// This example serializes enums as top level properties, in lists, sets, and maps.
          28  +
/// /* FluentBuilderGenerator.kt:130 */This example serializes enums as top level properties, in lists, sets, and maps.
          29  +
/* RustType.kt:516 */
   26     30   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          31  +
/* FluentBuilderGenerator.kt:270 */
   27     32   
pub struct JsonEnumsFluentBuilder {
   28     33   
    handle: ::std::sync::Arc<crate::client::Handle>,
   29     34   
    inner: crate::operation::json_enums::builders::JsonEnumsInputBuilder,
   30     35   
    config_override: ::std::option::Option<crate::config::Builder>,
   31     36   
}
          37  +
/* FluentBuilderGenerator.kt:381 */
   32     38   
impl crate::client::customize::internal::CustomizableSend<crate::operation::json_enums::JsonEnumsOutput, crate::operation::json_enums::JsonEnumsError>
   33     39   
    for JsonEnumsFluentBuilder
   34     40   
{
   35     41   
    fn send(
   36     42   
        self,
   37     43   
        config_override: crate::config::Builder,
   38     44   
    ) -> crate::client::customize::internal::BoxFuture<
   39     45   
        crate::client::customize::internal::SendResult<crate::operation::json_enums::JsonEnumsOutput, crate::operation::json_enums::JsonEnumsError>,
   40     46   
    > {
   41     47   
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
   42     48   
    }
   43     49   
}
          50  +
/* FluentBuilderGenerator.kt:282 */
   44     51   
impl JsonEnumsFluentBuilder {
          52  +
    /* FluentBuilderGenerator.kt:288 */
   45     53   
    /// Creates a new `JsonEnumsFluentBuilder`.
   46     54   
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
   47     55   
        Self {
   48     56   
            handle,
   49     57   
            inner: ::std::default::Default::default(),
   50     58   
            config_override: ::std::option::Option::None,
   51     59   
        }
   52     60   
    }
          61  +
    /* FluentBuilderGenerator.kt:301 */
   53     62   
    /// Access the JsonEnums as a reference.
   54     63   
    pub fn as_input(&self) -> &crate::operation::json_enums::builders::JsonEnumsInputBuilder {
   55     64   
        &self.inner
   56     65   
    }
          66  +
    /* FluentBuilderGenerator.kt:145 */
   57     67   
    /// Sends the request and returns the response.
   58     68   
    ///
   59     69   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   60     70   
    /// can be matched against.
   61     71   
    ///
   62     72   
    /// By default, any retryable failures will be retried twice. Retry behavior
   63     73   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   64     74   
    /// set when configuring the client.
   65     75   
    pub async fn send(
   66     76   
        self,
   67     77   
    ) -> ::std::result::Result<
   68     78   
        crate::operation::json_enums::JsonEnumsOutput,
   69     79   
        ::aws_smithy_runtime_api::client::result::SdkError<
   70     80   
            crate::operation::json_enums::JsonEnumsError,
   71     81   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   72     82   
        >,
   73     83   
    > {
   74     84   
        let input = self
   75     85   
            .inner
   76     86   
            .build()
   77     87   
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
   78     88   
        let runtime_plugins = crate::operation::json_enums::JsonEnums::operation_runtime_plugins(
   79     89   
            self.handle.runtime_plugins.clone(),
   80     90   
            &self.handle.conf,
   81     91   
            self.config_override,
   82     92   
        );
   83     93   
        crate::operation::json_enums::JsonEnums::orchestrate(&runtime_plugins, input).await
   84     94   
    }
   85     95   
   86     96   
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
   87     97   
    pub fn customize(
   88     98   
        self,
   89     99   
    ) -> crate::client::customize::CustomizableOperation<
   90    100   
        crate::operation::json_enums::JsonEnumsOutput,
   91    101   
        crate::operation::json_enums::JsonEnumsError,
   92    102   
        Self,
   93    103   
    > {
   94    104   
        crate::client::customize::CustomizableOperation::new(self)
   95    105   
    }
         106  +
    /* FluentBuilderGenerator.kt:315 */
   96    107   
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
   97    108   
        self.set_config_override(::std::option::Option::Some(config_override.into()));
   98    109   
        self
   99    110   
    }
  100    111   
  101    112   
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
  102    113   
        self.config_override = config_override;
  103    114   
        self
  104    115   
    }
         116  +
    /* FluentBuilderGenerator.kt:498 */
  105    117   
    #[allow(missing_docs)] // documentation missing in model
         118  +
                           /* FluentBuilderGenerator.kt:500 */
  106    119   
    pub fn foo_enum1(mut self, input: crate::types::FooEnum) -> Self {
  107    120   
        self.inner = self.inner.foo_enum1(input);
  108    121   
        self
  109    122   
    }
         123  +
    /* FluentBuilderGenerator.kt:498 */
  110    124   
    #[allow(missing_docs)] // documentation missing in model
         125  +
                           /* FluentBuilderGenerator.kt:500 */
  111    126   
    pub fn set_foo_enum1(mut self, input: ::std::option::Option<crate::types::FooEnum>) -> Self {
  112    127   
        self.inner = self.inner.set_foo_enum1(input);
  113    128   
        self
  114    129   
    }
         130  +
    /* FluentBuilderGenerator.kt:518 */
  115    131   
    #[allow(missing_docs)] // documentation missing in model
         132  +
                           /* FluentBuilderGenerator.kt:520 */
  116    133   
    pub fn get_foo_enum1(&self) -> &::std::option::Option<crate::types::FooEnum> {
  117    134   
        self.inner.get_foo_enum1()
  118    135   
    }
         136  +
    /* FluentBuilderGenerator.kt:498 */
  119    137   
    #[allow(missing_docs)] // documentation missing in model
         138  +
                           /* FluentBuilderGenerator.kt:500 */
  120    139   
    pub fn foo_enum2(mut self, input: crate::types::FooEnum) -> Self {
  121    140   
        self.inner = self.inner.foo_enum2(input);
  122    141   
        self
  123    142   
    }
         143  +
    /* FluentBuilderGenerator.kt:498 */
  124    144   
    #[allow(missing_docs)] // documentation missing in model
         145  +
                           /* FluentBuilderGenerator.kt:500 */
  125    146   
    pub fn set_foo_enum2(mut self, input: ::std::option::Option<crate::types::FooEnum>) -> Self {
  126    147   
        self.inner = self.inner.set_foo_enum2(input);
  127    148   
        self
  128    149   
    }
         150  +
    /* FluentBuilderGenerator.kt:518 */
  129    151   
    #[allow(missing_docs)] // documentation missing in model
         152  +
                           /* FluentBuilderGenerator.kt:520 */
  130    153   
    pub fn get_foo_enum2(&self) -> &::std::option::Option<crate::types::FooEnum> {
  131    154   
        self.inner.get_foo_enum2()
  132    155   
    }
         156  +
    /* FluentBuilderGenerator.kt:498 */
  133    157   
    #[allow(missing_docs)] // documentation missing in model
         158  +
                           /* FluentBuilderGenerator.kt:500 */
  134    159   
    pub fn foo_enum3(mut self, input: crate::types::FooEnum) -> Self {
  135    160   
        self.inner = self.inner.foo_enum3(input);
  136    161   
        self
  137    162   
    }
         163  +
    /* FluentBuilderGenerator.kt:498 */
  138    164   
    #[allow(missing_docs)] // documentation missing in model
         165  +
                           /* FluentBuilderGenerator.kt:500 */
  139    166   
    pub fn set_foo_enum3(mut self, input: ::std::option::Option<crate::types::FooEnum>) -> Self {
  140    167   
        self.inner = self.inner.set_foo_enum3(input);
  141    168   
        self
  142    169   
    }
         170  +
    /* FluentBuilderGenerator.kt:518 */
  143    171   
    #[allow(missing_docs)] // documentation missing in model
         172  +
                           /* FluentBuilderGenerator.kt:520 */
  144    173   
    pub fn get_foo_enum3(&self) -> &::std::option::Option<crate::types::FooEnum> {
  145    174   
        self.inner.get_foo_enum3()
  146    175   
    }
  147         -
    ///
         176  +
    /// /* FluentBuilderGenerator.kt:436 */
  148    177   
    /// Appends an item to `fooEnumList`.
  149    178   
    ///
  150    179   
    /// To override the contents of this collection use [`set_foo_enum_list`](Self::set_foo_enum_list).
  151    180   
    ///
         181  +
    /* FluentBuilderGenerator.kt:443 */
  152    182   
    #[allow(missing_docs)] // documentation missing in model
         183  +
                           /* FluentBuilderGenerator.kt:446 */
  153    184   
    pub fn foo_enum_list(mut self, input: crate::types::FooEnum) -> Self {
  154    185   
        self.inner = self.inner.foo_enum_list(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_foo_enum_list(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::FooEnum>>) -> Self {
  159    192   
        self.inner = self.inner.set_foo_enum_list(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_foo_enum_list(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::FooEnum>> {
  164    199   
        self.inner.get_foo_enum_list()
  165    200   
    }
  166         -
    ///
         201  +
    /// /* FluentBuilderGenerator.kt:436 */
  167    202   
    /// Appends an item to `fooEnumSet`.
  168    203   
    ///
  169    204   
    /// To override the contents of this collection use [`set_foo_enum_set`](Self::set_foo_enum_set).
  170    205   
    ///
         206  +
    /* FluentBuilderGenerator.kt:443 */
  171    207   
    #[allow(missing_docs)] // documentation missing in model
         208  +
                           /* FluentBuilderGenerator.kt:446 */
  172    209   
    pub fn foo_enum_set(mut self, input: crate::types::FooEnum) -> Self {
  173    210   
        self.inner = self.inner.foo_enum_set(input);
  174    211   
        self
  175    212   
    }
         213  +
    /* FluentBuilderGenerator.kt:498 */
  176    214   
    #[allow(missing_docs)] // documentation missing in model
         215  +
                           /* FluentBuilderGenerator.kt:500 */
  177    216   
    pub fn set_foo_enum_set(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::FooEnum>>) -> Self {
  178    217   
        self.inner = self.inner.set_foo_enum_set(input);
  179    218   
        self
  180    219   
    }
         220  +
    /* FluentBuilderGenerator.kt:518 */
  181    221   
    #[allow(missing_docs)] // documentation missing in model
         222  +
                           /* FluentBuilderGenerator.kt:520 */
  182    223   
    pub fn get_foo_enum_set(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::FooEnum>> {
  183    224   
        self.inner.get_foo_enum_set()
  184    225   
    }
  185         -
    ///
         226  +
    /// /* FluentBuilderGenerator.kt:466 */
  186    227   
    /// Adds a key-value pair to `fooEnumMap`.
  187    228   
    ///
  188    229   
    /// To override the contents of this collection use [`set_foo_enum_map`](Self::set_foo_enum_map).
  189    230   
    ///
         231  +
    /* FluentBuilderGenerator.kt:473 */
  190    232   
    #[allow(missing_docs)] // documentation missing in model
         233  +
                           /* FluentBuilderGenerator.kt:475 */
  191    234   
    pub fn foo_enum_map(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::FooEnum) -> Self {
  192    235   
        self.inner = self.inner.foo_enum_map(k.into(), v);
  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_foo_enum_map(
  197    242   
        mut self,
  198    243   
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::FooEnum>>,
  199    244   
    ) -> Self {
  200    245   
        self.inner = self.inner.set_foo_enum_map(input);
  201    246   
        self
  202    247   
    }
         248  +
    /* FluentBuilderGenerator.kt:518 */
  203    249   
    #[allow(missing_docs)] // documentation missing in model
         250  +
                           /* FluentBuilderGenerator.kt:520 */
  204    251   
    pub fn get_foo_enum_map(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::FooEnum>> {
  205    252   
        self.inner.get_foo_enum_map()
  206    253   
    }
         254  +
    /* FluentBuilderGenerator.kt:282 */
  207    255   
}

tmp-codegen-diff/codegen-client-test/json_rpc11/rust-client-codegen/src/operation/json_unions.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 `JsonUnions`.
           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 JsonUnions;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl JsonUnions {
    7         -
    /// Creates a new `JsonUnions`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `JsonUnions`
          13  +
    /* OperationGenerator.kt:87 */
    8     14   
    pub fn new() -> Self {
          15  +
        /* OperationGenerator.kt:88 */
    9     16   
        Self
          17  +
        /* OperationGenerator.kt:87 */
   10     18   
    }
          19  +
    /* OperationGenerator.kt:138 */
   11     20   
    pub(crate) async fn orchestrate(
   12     21   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     22   
        input: crate::operation::json_unions::JsonUnionsInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::json_unions::JsonUnionsOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::json_unions::JsonUnionsError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -57,66 +266,283 @@
   77     86   
                runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
   78     87   
            }
   79     88   
            runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
   80     89   
                config_override,
   81     90   
                client_config.config.clone(),
   82     91   
                &client_config.runtime_components,
   83     92   
            ));
   84     93   
        }
   85     94   
        runtime_plugins
   86     95   
    }
          96  +
    /* OperationGenerator.kt:85 */
   87     97   
}
          98  +
/* OperationRuntimePluginGenerator.kt:55 */
   88     99   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for JsonUnions {
   89    100   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
   90    101   
        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("JsonUnions");
   91    102   
   92    103   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   93    104   
            JsonUnionsRequestSerializer,
   94    105   
        ));
   95    106   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
   96    107   
            JsonUnionsResponseDeserializer,
   97    108   
        ));
   98    109   
   99    110   
        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
  100    111   
            ::aws_smithy_runtime_api::client::auth::static_resolver::StaticAuthSchemeOptionResolverParams::new(),
  101    112   
        ));
  102    113   
  103    114   
        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
  104    115   
            "JsonUnions",
  105    116   
            "Json Protocol",
  106    117   
        ));
  107    118   
  108    119   
        ::std::option::Option::Some(cfg.freeze())
  109    120   
    }
  110    121   
  111    122   
    fn runtime_components(
  112    123   
        &self,
  113    124   
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
  114    125   
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
  115    126   
        #[allow(unused_mut)]
  116    127   
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("JsonUnions")
  117    128   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  118    129   
            .with_interceptor(JsonUnionsEndpointParamsInterceptor)
  119    130   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  120    131   
                crate::operation::json_unions::JsonUnionsError,
  121    132   
            >::new())
  122    133   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  123    134   
                crate::operation::json_unions::JsonUnionsError,
  124    135   
            >::new());
  125    136   
  126    137   
        ::std::borrow::Cow::Owned(rcb)
  127    138   
    }
  128    139   
}
  129    140   
         141  +
/* ResponseDeserializerGenerator.kt:64 */
  130    142   
#[derive(Debug)]
  131    143   
struct JsonUnionsResponseDeserializer;
  132    144   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for JsonUnionsResponseDeserializer {
  133    145   
    fn deserialize_nonstreaming(
  134    146   
        &self,
  135    147   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
  136    148   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  137    149   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  138    150   
        let headers = response.headers();
  139    151   
        let body = response.body().bytes().expect("body loaded");
  140    152   
        #[allow(unused_mut)]
  141    153   
        let mut force_error = false;
  142    154   
  143    155   
        let parse_result = if !success && status != 200 || force_error {
  144    156   
            crate::protocol_serde::shape_json_unions::de_json_unions_http_error(status, headers, body)
  145    157   
        } else {
  146    158   
            crate::protocol_serde::shape_json_unions::de_json_unions_http_response(status, headers, body)
  147    159   
        };
  148    160   
        crate::protocol_serde::type_erase_result(parse_result)
  149    161   
    }
  150    162   
}
         163  +
/* RequestSerializerGenerator.kt:67 */
  151    164   
#[derive(Debug)]
  152    165   
struct JsonUnionsRequestSerializer;
  153    166   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for JsonUnionsRequestSerializer {
  154    167   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  155    168   
    fn serialize_input(
  156    169   
        &self,
  157    170   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  158    171   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  159    172   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  160    173   
        let input = input.downcast::<crate::operation::json_unions::JsonUnionsInput>().expect("correct type");
  161    174   
        let _header_serialization_settings = _cfg
  162    175   
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  163    176   
            .cloned()
  164    177   
            .unwrap_or_default();
  165    178   
        let mut request_builder = {
  166    179   
            fn uri_base(
  167    180   
                _input: &crate::operation::json_unions::JsonUnionsInput,
  168    181   
                output: &mut ::std::string::String,
  169    182   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  170    183   
                use ::std::fmt::Write as _;
  171    184   
                ::std::write!(output, "/").expect("formatting should succeed");
  172    185   
                ::std::result::Result::Ok(())
  173    186   
            }
  174    187   
            #[allow(clippy::unnecessary_wraps)]
  175    188   
            fn update_http_builder(
  176    189   
                input: &crate::operation::json_unions::JsonUnionsInput,
  177    190   
                builder: ::http::request::Builder,
  178    191   
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  179    192   
                let mut uri = ::std::string::String::new();
  180    193   
                uri_base(input, &mut uri)?;
  181    194   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  182    195   
            }
  183    196   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  184    197   
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-amz-json-1.1");
  185    198   
            builder = _header_serialization_settings.set_default_header(
  186    199   
                builder,
  187    200   
                ::http::header::HeaderName::from_static("x-amz-target"),
  188    201   
                "JsonProtocol.JsonUnions",
  189    202   
            );
  190    203   
            builder
  191    204   
        };
  192    205   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_json_unions::ser_json_unions_input(&input)?);
  193    206   
        if let Some(content_length) = body.content_length() {
  194    207   
            let content_length = content_length.to_string();
  195    208   
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
  196    209   
        }
  197    210   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  198    211   
    }
  199    212   
}
         213  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  200    214   
#[derive(Debug)]
  201    215   
struct JsonUnionsEndpointParamsInterceptor;
  202    216   
  203    217   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for JsonUnionsEndpointParamsInterceptor {
  204    218   
    fn name(&self) -> &'static str {
  205    219   
        "JsonUnionsEndpointParamsInterceptor"
  206    220   
    }
  207    221   
  208    222   
    fn read_before_execution(
  209    223   
        &self,
  210    224   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  211    225   
            '_,
  212    226   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  213    227   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  214    228   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  215    229   
        >,
  216    230   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  217    231   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  218    232   
        let _input = context
  219    233   
            .input()
  220    234   
            .downcast_ref::<JsonUnionsInput>()
  221    235   
            .ok_or("failed to downcast to JsonUnionsInput")?;
  222    236   
  223    237   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  224    238   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  225    239   
        })?;
  226    240   
        cfg.interceptor_state()
  227    241   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  228    242   
        ::std::result::Result::Ok(())
  229    243   
    }
  230    244   
}
  231    245   
  232    246   
// The get_* functions below are generated from JMESPath expressions in the
  233    247   
// operationContextParams trait. They target the operation's input shape.
  234    248   
         249  +
/* RustType.kt:516 */
  235    250   
#[allow(unreachable_code, unused_variables)]
         251  +
/* RustType.kt:516 */
  236    252   
#[cfg(test)]
         253  +
/* ProtocolTestGenerator.kt:98 */
  237    254   
mod json_unions_test {
  238    255   
  239    256   
    /// Serializes a string union value
  240    257   
    /// Test ID: AwsJson11SerializeStringUnionValue
  241    258   
    #[::tokio::test]
  242    259   
    #[::tracing_test::traced_test]
  243    260   
    async fn aws_json11_serialize_string_union_value_request() {
  244    261   
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  245    262   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  246    263   
@@ -968,985 +1097,1173 @@
  988   1005   
                )))
  989   1006   
            });
  990   1007   
            de.deserialize_nonstreaming(&http_response)
  991   1008   
        });
  992   1009   
        let parsed = parsed
  993   1010   
            .expect("should be successful response")
  994   1011   
            .downcast::<crate::operation::json_unions::JsonUnionsOutput>()
  995   1012   
            .unwrap();
  996   1013   
        ::pretty_assertions::assert_eq!(parsed.contents, expected_output.contents, "Unexpected value for `contents`");
  997   1014   
    }
        1015  +
        1016  +
    /* ProtocolTestGenerator.kt:98 */
  998   1017   
}
  999   1018   
        1019  +
/* OperationErrorGenerator.kt:79 */
 1000   1020   
/// Error type for the `JsonUnionsError` operation.
        1021  +
/* RustType.kt:516 */
 1001   1022   
#[non_exhaustive]
        1023  +
/* RustType.kt:516 */
 1002   1024   
#[derive(::std::fmt::Debug)]
 1003         -
pub enum JsonUnionsError {
        1025  +
pub /* OperationErrorGenerator.kt:81 */ enum JsonUnionsError {
        1026  +
    /* OperationErrorGenerator.kt:88 */
 1004   1027   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
 1005   1028   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
 1006   1029   
    variable wildcard pattern and check `.code()`:
 1007   1030   
     \
 1008   1031   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
 1009   1032   
     \
 1010   1033   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-JsonUnionsError) for what information is available for the error.")]
 1011   1034   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
        1035  +
    /* OperationErrorGenerator.kt:81 */
 1012   1036   
}
        1037  +
/* OperationErrorGenerator.kt:218 */
 1013   1038   
impl JsonUnionsError {
        1039  +
    /* OperationErrorGenerator.kt:219 */
 1014   1040   
    /// Creates the `JsonUnionsError::Unhandled` variant from any error type.
 1015   1041   
    pub fn unhandled(
 1016   1042   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
 1017   1043   
    ) -> Self {
 1018   1044   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
 1019   1045   
            source: err.into(),
 1020   1046   
            meta: ::std::default::Default::default(),
 1021   1047   
        })
 1022   1048   
    }
 1023   1049   
 1024   1050   
    /// Creates the `JsonUnionsError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
 1025   1051   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
 1026   1052   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
 1027   1053   
            source: err.clone().into(),
 1028   1054   
            meta: err,
 1029   1055   
        })
 1030   1056   
    }
 1031         -
    ///
        1057  +
    /// /* OperationErrorGenerator.kt:236 */
 1032   1058   
    /// Returns error metadata, which includes the error code, message,
 1033   1059   
    /// request ID, and potentially additional information.
 1034   1060   
    ///
        1061  +
    /* OperationErrorGenerator.kt:242 */
 1035   1062   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
        1063  +
        /* OperationErrorGenerator.kt:243 */
 1036   1064   
        match self {
 1037         -
            Self::Unhandled(e) => &e.meta,
        1065  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
        1066  +
            /* OperationErrorGenerator.kt:243 */
 1038   1067   
        }
        1068  +
        /* OperationErrorGenerator.kt:242 */
 1039   1069   
    }
        1070  +
    /* OperationErrorGenerator.kt:218 */
 1040   1071   
}
        1072  +
/* OperationErrorGenerator.kt:269 */
 1041   1073   
impl ::std::error::Error for JsonUnionsError {
        1074  +
    /* OperationErrorGenerator.kt:270 */
 1042   1075   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
        1076  +
        /* OperationErrorGenerator.kt:318 */
 1043   1077   
        match self {
 1044         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
        1078  +
            /* OperationErrorGenerator.kt:326 */
        1079  +
            Self::Unhandled(_inner) => {
        1080  +
                /* OperationErrorGenerator.kt:279 */
        1081  +
                ::std::option::Option::Some(&*_inner.source)
        1082  +
                /* OperationErrorGenerator.kt:326 */
        1083  +
            } /* OperationErrorGenerator.kt:318 */
 1045   1084   
        }
        1085  +
        /* OperationErrorGenerator.kt:270 */
 1046   1086   
    }
        1087  +
    /* OperationErrorGenerator.kt:269 */
 1047   1088   
}
        1089  +
/* OperationErrorGenerator.kt:133 */
 1048   1090   
impl ::std::fmt::Display for JsonUnionsError {
        1091  +
    /* OperationErrorGenerator.kt:134 */
 1049   1092   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        1093  +
        /* OperationErrorGenerator.kt:318 */
 1050   1094   
        match self {
        1095  +
            /* OperationErrorGenerator.kt:326 */
 1051   1096   
            Self::Unhandled(_inner) => {
        1097  +
                /* OperationErrorGenerator.kt:139 */
 1052   1098   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
 1053   1099   
                    write!(f, "unhandled error ({code})")
 1054   1100   
                } else {
 1055   1101   
                    f.write_str("unhandled error")
 1056   1102   
                }
        1103  +
                /* OperationErrorGenerator.kt:326 */
        1104  +
            } /* OperationErrorGenerator.kt:318 */
 1057   1105   
        }
        1106  +
        /* OperationErrorGenerator.kt:134 */
 1058   1107   
    }
 1059         -
    }
        1108  +
    /* OperationErrorGenerator.kt:133 */
 1060   1109   
}
        1110  +
/* OperationErrorGenerator.kt:182 */
 1061   1111   
impl ::aws_smithy_types::retry::ProvideErrorKind for JsonUnionsError {
        1112  +
    /* OperationErrorGenerator.kt:186 */
 1062   1113   
    fn code(&self) -> ::std::option::Option<&str> {
        1114  +
        /* OperationErrorGenerator.kt:187 */
 1063   1115   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
        1116  +
        /* OperationErrorGenerator.kt:186 */
 1064   1117   
    }
        1118  +
    /* OperationErrorGenerator.kt:190 */
 1065   1119   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
        1120  +
        /* OperationErrorGenerator.kt:197 */
 1066   1121   
        ::std::option::Option::None
        1122  +
        /* OperationErrorGenerator.kt:190 */
 1067   1123   
    }
        1124  +
    /* OperationErrorGenerator.kt:182 */
 1068   1125   
}
        1126  +
/* OperationErrorGenerator.kt:163 */
 1069   1127   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for JsonUnionsError {
        1128  +
    /* OperationErrorGenerator.kt:164 */
 1070   1129   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
        1130  +
        /* OperationErrorGenerator.kt:318 */
 1071   1131   
        match self {
 1072         -
            Self::Unhandled(_inner) => &_inner.meta,
        1132  +
            /* OperationErrorGenerator.kt:326 */
        1133  +
            Self::Unhandled(_inner) => {
        1134  +
                /* OperationErrorGenerator.kt:168 */
        1135  +
                &_inner.meta
        1136  +
                /* OperationErrorGenerator.kt:326 */
        1137  +
            } /* OperationErrorGenerator.kt:318 */
 1073   1138   
        }
        1139  +
        /* OperationErrorGenerator.kt:164 */
 1074   1140   
    }
        1141  +
    /* OperationErrorGenerator.kt:163 */
 1075   1142   
}
        1143  +
/* OperationErrorGenerator.kt:109 */
 1076   1144   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for JsonUnionsError {
        1145  +
    /* OperationErrorGenerator.kt:110 */
 1077   1146   
    fn create_unhandled_error(
 1078   1147   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
 1079   1148   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
 1080   1149   
    ) -> Self {
        1150  +
        /* OperationErrorGenerator.kt:121 */
 1081   1151   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
 1082   1152   
            source,
 1083   1153   
            meta: meta.unwrap_or_default(),
 1084   1154   
        })
        1155  +
        /* OperationErrorGenerator.kt:110 */
 1085   1156   
    }
        1157  +
    /* OperationErrorGenerator.kt:109 */
 1086   1158   
}
 1087   1159   
        1160  +
/* CodegenDelegator.kt:255 */
 1088   1161   
pub use crate::operation::json_unions::_json_unions_output::JsonUnionsOutput;
 1089   1162   
        1163  +
/* CodegenDelegator.kt:255 */
 1090   1164   
pub use crate::operation::json_unions::_json_unions_input::JsonUnionsInput;
 1091   1165   
        1166  +
/* RustModule.kt:172 */
 1092   1167   
mod _json_unions_input;
 1093   1168   
        1169  +
/* RustModule.kt:172 */
 1094   1170   
mod _json_unions_output;
 1095   1171   
 1096         -
/// Builders
        1172  +
/// /* CodegenDelegator.kt:51 */Builders
 1097   1173   
pub mod builders;

tmp-codegen-diff/codegen-client-test/json_rpc11/rust-client-codegen/src/operation/json_unions/_json_unions_input.rs

@@ -1,1 +48,86 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// A shared structure that contains a single union member.
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */A shared structure that contains a single union member.
           4  +
/* RustType.kt:516 */
    4      5   
#[non_exhaustive]
           6  +
/* RustType.kt:516 */
    5      7   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    6         -
pub struct JsonUnionsInput {
    7         -
    /// A union with a representative set of types for members.
           8  +
pub /* StructureGenerator.kt:201 */ struct JsonUnionsInput {
           9  +
    /// /* StructureGenerator.kt:231 */A union with a representative set of types for members.
    8     10   
    pub contents: ::std::option::Option<crate::types::MyUnion>,
          11  +
    /* StructureGenerator.kt:201 */
    9     12   
}
          13  +
/* StructureGenerator.kt:135 */
   10     14   
impl JsonUnionsInput {
   11         -
    /// A union with a representative set of types for members.
          15  +
    /// /* StructureGenerator.kt:231 */A union with a representative set of types for members.
          16  +
    /* StructureGenerator.kt:166 */
   12     17   
    pub fn contents(&self) -> ::std::option::Option<&crate::types::MyUnion> {
          18  +
        /* StructureGenerator.kt:170 */
   13     19   
        self.contents.as_ref()
          20  +
        /* StructureGenerator.kt:166 */
   14     21   
    }
          22  +
    /* StructureGenerator.kt:135 */
   15     23   
}
          24  +
/* ClientCodegenVisitor.kt:237 */
   16     25   
impl JsonUnionsInput {
   17         -
    /// Creates a new builder-style object to manufacture [`JsonUnionsInput`](crate::operation::json_unions::JsonUnionsInput).
          26  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`JsonUnionsInput`](crate::operation::json_unions::JsonUnionsInput).
          27  +
    /* BuilderGenerator.kt:175 */
   18     28   
    pub fn builder() -> crate::operation::json_unions::builders::JsonUnionsInputBuilder {
          29  +
        /* BuilderGenerator.kt:176 */
   19     30   
        crate::operation::json_unions::builders::JsonUnionsInputBuilder::default()
          31  +
        /* BuilderGenerator.kt:175 */
   20     32   
    }
          33  +
    /* ClientCodegenVisitor.kt:237 */
   21     34   
}
   22     35   
   23         -
/// A builder for [`JsonUnionsInput`](crate::operation::json_unions::JsonUnionsInput).
          36  +
/// /* BuilderGenerator.kt:342 */A builder for [`JsonUnionsInput`](crate::operation::json_unions::JsonUnionsInput).
          37  +
/* RustType.kt:516 */
   24     38   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          39  +
/* RustType.kt:516 */
   25     40   
#[non_exhaustive]
          41  +
/* BuilderGenerator.kt:345 */
   26     42   
pub struct JsonUnionsInputBuilder {
   27         -
    pub(crate) contents: ::std::option::Option<crate::types::MyUnion>,
          43  +
    /* BuilderGenerator.kt:275 */ pub(crate) contents: ::std::option::Option<crate::types::MyUnion>,
          44  +
    /* BuilderGenerator.kt:345 */
   28     45   
}
          46  +
/* BuilderGenerator.kt:355 */
   29     47   
impl JsonUnionsInputBuilder {
   30         -
    /// A union with a representative set of types for members.
          48  +
    /// /* BuilderGenerator.kt:286 */A union with a representative set of types for members.
          49  +
    /* BuilderGenerator.kt:291 */
   31     50   
    pub fn contents(mut self, input: crate::types::MyUnion) -> Self {
          51  +
        /* BuilderGenerator.kt:292 */
   32     52   
        self.contents = ::std::option::Option::Some(input);
          53  +
        /* BuilderGenerator.kt:293 */
   33     54   
        self
          55  +
        /* BuilderGenerator.kt:291 */
   34     56   
    }
   35         -
    /// A union with a representative set of types for members.
          57  +
    /// /* BuilderGenerator.kt:312 */A union with a representative set of types for members.
          58  +
    /* BuilderGenerator.kt:314 */
   36     59   
    pub fn set_contents(mut self, input: ::std::option::Option<crate::types::MyUnion>) -> Self {
          60  +
        /* BuilderGenerator.kt:315 */
   37     61   
        self.contents = input;
   38     62   
        self
          63  +
        /* BuilderGenerator.kt:314 */
   39     64   
    }
   40         -
    /// A union with a representative set of types for members.
          65  +
    /// /* BuilderGenerator.kt:334 */A union with a representative set of types for members.
          66  +
    /* BuilderGenerator.kt:336 */
   41     67   
    pub fn get_contents(&self) -> &::std::option::Option<crate::types::MyUnion> {
          68  +
        /* BuilderGenerator.kt:337 */
   42     69   
        &self.contents
          70  +
        /* BuilderGenerator.kt:336 */
   43     71   
    }
   44         -
    /// Consumes the builder and constructs a [`JsonUnionsInput`](crate::operation::json_unions::JsonUnionsInput).
          72  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`JsonUnionsInput`](crate::operation::json_unions::JsonUnionsInput).
          73  +
    /* BuilderGenerator.kt:253 */
   45     74   
    pub fn build(self) -> ::std::result::Result<crate::operation::json_unions::JsonUnionsInput, ::aws_smithy_types::error::operation::BuildError> {
   46         -
        ::std::result::Result::Ok(crate::operation::json_unions::JsonUnionsInput { contents: self.contents })
          75  +
        /* BuilderGenerator.kt:254 */
          76  +
        ::std::result::Result::Ok(
          77  +
            /* BuilderGenerator.kt:477 */
          78  +
            crate::operation::json_unions::JsonUnionsInput {
          79  +
                /* BuilderGenerator.kt:481 */ contents: self.contents,
          80  +
                /* BuilderGenerator.kt:477 */
          81  +
            }, /* BuilderGenerator.kt:254 */
          82  +
        )
          83  +
        /* BuilderGenerator.kt:253 */
   47     84   
    }
          85  +
    /* BuilderGenerator.kt:355 */
   48     86   
}

tmp-codegen-diff/codegen-client-test/json_rpc11/rust-client-codegen/src/operation/json_unions/_json_unions_output.rs

@@ -1,1 +48,83 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// A shared structure that contains a single union member.
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */A shared structure that contains a single union member.
           4  +
/* RustType.kt:516 */
    4      5   
#[non_exhaustive]
           6  +
/* RustType.kt:516 */
    5      7   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    6         -
pub struct JsonUnionsOutput {
    7         -
    /// A union with a representative set of types for members.
           8  +
pub /* StructureGenerator.kt:201 */ struct JsonUnionsOutput {
           9  +
    /// /* StructureGenerator.kt:231 */A union with a representative set of types for members.
    8     10   
    pub contents: ::std::option::Option<crate::types::MyUnion>,
          11  +
    /* StructureGenerator.kt:201 */
    9     12   
}
          13  +
/* StructureGenerator.kt:135 */
   10     14   
impl JsonUnionsOutput {
   11         -
    /// A union with a representative set of types for members.
          15  +
    /// /* StructureGenerator.kt:231 */A union with a representative set of types for members.
          16  +
    /* StructureGenerator.kt:166 */
   12     17   
    pub fn contents(&self) -> ::std::option::Option<&crate::types::MyUnion> {
          18  +
        /* StructureGenerator.kt:170 */
   13     19   
        self.contents.as_ref()
          20  +
        /* StructureGenerator.kt:166 */
   14     21   
    }
          22  +
    /* StructureGenerator.kt:135 */
   15     23   
}
          24  +
/* ClientCodegenVisitor.kt:237 */
   16     25   
impl JsonUnionsOutput {
   17         -
    /// Creates a new builder-style object to manufacture [`JsonUnionsOutput`](crate::operation::json_unions::JsonUnionsOutput).
          26  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`JsonUnionsOutput`](crate::operation::json_unions::JsonUnionsOutput).
          27  +
    /* BuilderGenerator.kt:175 */
   18     28   
    pub fn builder() -> crate::operation::json_unions::builders::JsonUnionsOutputBuilder {
          29  +
        /* BuilderGenerator.kt:176 */
   19     30   
        crate::operation::json_unions::builders::JsonUnionsOutputBuilder::default()
          31  +
        /* BuilderGenerator.kt:175 */
   20     32   
    }
          33  +
    /* ClientCodegenVisitor.kt:237 */
   21     34   
}
   22     35   
   23         -
/// A builder for [`JsonUnionsOutput`](crate::operation::json_unions::JsonUnionsOutput).
          36  +
/// /* BuilderGenerator.kt:342 */A builder for [`JsonUnionsOutput`](crate::operation::json_unions::JsonUnionsOutput).
          37  +
/* RustType.kt:516 */
   24     38   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          39  +
/* RustType.kt:516 */
   25     40   
#[non_exhaustive]
          41  +
/* BuilderGenerator.kt:345 */
   26     42   
pub struct JsonUnionsOutputBuilder {
   27         -
    pub(crate) contents: ::std::option::Option<crate::types::MyUnion>,
          43  +
    /* BuilderGenerator.kt:275 */ pub(crate) contents: ::std::option::Option<crate::types::MyUnion>,
          44  +
    /* BuilderGenerator.kt:345 */
   28     45   
}
          46  +
/* BuilderGenerator.kt:355 */
   29     47   
impl JsonUnionsOutputBuilder {
   30         -
    /// A union with a representative set of types for members.
          48  +
    /// /* BuilderGenerator.kt:286 */A union with a representative set of types for members.
          49  +
    /* BuilderGenerator.kt:291 */
   31     50   
    pub fn contents(mut self, input: crate::types::MyUnion) -> Self {
          51  +
        /* BuilderGenerator.kt:292 */
   32     52   
        self.contents = ::std::option::Option::Some(input);
          53  +
        /* BuilderGenerator.kt:293 */
   33     54   
        self
          55  +
        /* BuilderGenerator.kt:291 */
   34     56   
    }
   35         -
    /// A union with a representative set of types for members.
          57  +
    /// /* BuilderGenerator.kt:312 */A union with a representative set of types for members.
          58  +
    /* BuilderGenerator.kt:314 */
   36     59   
    pub fn set_contents(mut self, input: ::std::option::Option<crate::types::MyUnion>) -> Self {
          60  +
        /* BuilderGenerator.kt:315 */
   37     61   
        self.contents = input;
   38     62   
        self
          63  +
        /* BuilderGenerator.kt:314 */
   39     64   
    }
   40         -
    /// A union with a representative set of types for members.
          65  +
    /// /* BuilderGenerator.kt:334 */A union with a representative set of types for members.
          66  +
    /* BuilderGenerator.kt:336 */
   41     67   
    pub fn get_contents(&self) -> &::std::option::Option<crate::types::MyUnion> {
          68  +
        /* BuilderGenerator.kt:337 */
   42     69   
        &self.contents
          70  +
        /* BuilderGenerator.kt:336 */
   43     71   
    }
   44         -
    /// Consumes the builder and constructs a [`JsonUnionsOutput`](crate::operation::json_unions::JsonUnionsOutput).
          72  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`JsonUnionsOutput`](crate::operation::json_unions::JsonUnionsOutput).
          73  +
    /* BuilderGenerator.kt:253 */
   45     74   
    pub fn build(self) -> crate::operation::json_unions::JsonUnionsOutput {
   46         -
        crate::operation::json_unions::JsonUnionsOutput { contents: self.contents }
          75  +
        /* BuilderGenerator.kt:477 */
          76  +
        crate::operation::json_unions::JsonUnionsOutput {
          77  +
            /* BuilderGenerator.kt:481 */ contents: self.contents,
          78  +
            /* BuilderGenerator.kt:477 */
          79  +
        }
          80  +
        /* BuilderGenerator.kt:253 */
   47     81   
    }
          82  +
    /* BuilderGenerator.kt:355 */
   48     83   
}

tmp-codegen-diff/codegen-client-test/json_rpc11/rust-client-codegen/src/operation/json_unions/builders.rs

@@ -1,1 +125,140 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CodegenDelegator.kt:255 */
    2      3   
pub use crate::operation::json_unions::_json_unions_output::JsonUnionsOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::json_unions::_json_unions_input::JsonUnionsInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::json_unions::builders::JsonUnionsInputBuilder {
    7     10   
    /// Sends a request with this input using the given client.
    8     11   
    pub async fn send_with(
    9     12   
        self,
   10     13   
        client: &crate::Client,
   11     14   
    ) -> ::std::result::Result<
   12     15   
        crate::operation::json_unions::JsonUnionsOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::json_unions::JsonUnionsError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.json_unions();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `JsonUnions`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `JsonUnions`.
   24     27   
///
   25         -
/// This operation uses unions for inputs and outputs.
          28  +
/// /* FluentBuilderGenerator.kt:130 */This operation uses unions for inputs and outputs.
          29  +
/* RustType.kt:516 */
   26     30   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          31  +
/* FluentBuilderGenerator.kt:270 */
   27     32   
pub struct JsonUnionsFluentBuilder {
   28     33   
    handle: ::std::sync::Arc<crate::client::Handle>,
   29     34   
    inner: crate::operation::json_unions::builders::JsonUnionsInputBuilder,
   30     35   
    config_override: ::std::option::Option<crate::config::Builder>,
   31     36   
}
          37  +
/* FluentBuilderGenerator.kt:381 */
   32     38   
impl
   33     39   
    crate::client::customize::internal::CustomizableSend<
   34     40   
        crate::operation::json_unions::JsonUnionsOutput,
   35     41   
        crate::operation::json_unions::JsonUnionsError,
   36     42   
    > for JsonUnionsFluentBuilder
   37     43   
{
   38     44   
    fn send(
   39     45   
        self,
   40     46   
        config_override: crate::config::Builder,
   41     47   
    ) -> crate::client::customize::internal::BoxFuture<
   42     48   
        crate::client::customize::internal::SendResult<
   43     49   
            crate::operation::json_unions::JsonUnionsOutput,
   44     50   
            crate::operation::json_unions::JsonUnionsError,
   45     51   
        >,
   46     52   
    > {
   47     53   
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
   48     54   
    }
   49     55   
}
          56  +
/* FluentBuilderGenerator.kt:282 */
   50     57   
impl JsonUnionsFluentBuilder {
          58  +
    /* FluentBuilderGenerator.kt:288 */
   51     59   
    /// Creates a new `JsonUnionsFluentBuilder`.
   52     60   
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
   53     61   
        Self {
   54     62   
            handle,
   55     63   
            inner: ::std::default::Default::default(),
   56     64   
            config_override: ::std::option::Option::None,
   57     65   
        }
   58     66   
    }
          67  +
    /* FluentBuilderGenerator.kt:301 */
   59     68   
    /// Access the JsonUnions as a reference.
   60     69   
    pub fn as_input(&self) -> &crate::operation::json_unions::builders::JsonUnionsInputBuilder {
   61     70   
        &self.inner
   62     71   
    }
          72  +
    /* FluentBuilderGenerator.kt:145 */
   63     73   
    /// Sends the request and returns the response.
   64     74   
    ///
   65     75   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   66     76   
    /// can be matched against.
   67     77   
    ///
   68     78   
    /// By default, any retryable failures will be retried twice. Retry behavior
   69     79   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   70     80   
    /// set when configuring the client.
   71     81   
    pub async fn send(
   72     82   
        self,
   73     83   
    ) -> ::std::result::Result<
   74     84   
        crate::operation::json_unions::JsonUnionsOutput,
   75     85   
        ::aws_smithy_runtime_api::client::result::SdkError<
   76     86   
            crate::operation::json_unions::JsonUnionsError,
   77     87   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   78     88   
        >,
   79     89   
    > {
   80     90   
        let input = self
   81     91   
            .inner
   82     92   
            .build()
   83     93   
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
   84     94   
        let runtime_plugins = crate::operation::json_unions::JsonUnions::operation_runtime_plugins(
   85     95   
            self.handle.runtime_plugins.clone(),
   86     96   
            &self.handle.conf,
   87     97   
            self.config_override,
   88     98   
        );
   89     99   
        crate::operation::json_unions::JsonUnions::orchestrate(&runtime_plugins, input).await
   90    100   
    }
   91    101   
   92    102   
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
   93    103   
    pub fn customize(
   94    104   
        self,
   95    105   
    ) -> crate::client::customize::CustomizableOperation<
   96    106   
        crate::operation::json_unions::JsonUnionsOutput,
   97    107   
        crate::operation::json_unions::JsonUnionsError,
   98    108   
        Self,
   99    109   
    > {
  100    110   
        crate::client::customize::CustomizableOperation::new(self)
  101    111   
    }
         112  +
    /* FluentBuilderGenerator.kt:315 */
  102    113   
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
  103    114   
        self.set_config_override(::std::option::Option::Some(config_override.into()));
  104    115   
        self
  105    116   
    }
  106    117   
  107    118   
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
  108    119   
        self.config_override = config_override;
  109    120   
        self
  110    121   
    }
  111         -
    /// A union with a representative set of types for members.
         122  +
    /// /* FluentBuilderGenerator.kt:498 */A union with a representative set of types for members.
         123  +
    /* FluentBuilderGenerator.kt:500 */
  112    124   
    pub fn contents(mut self, input: crate::types::MyUnion) -> Self {
  113    125   
        self.inner = self.inner.contents(input);
  114    126   
        self
  115    127   
    }
  116         -
    /// A union with a representative set of types for members.
         128  +
    /// /* FluentBuilderGenerator.kt:498 */A union with a representative set of types for members.
         129  +
    /* FluentBuilderGenerator.kt:500 */
  117    130   
    pub fn set_contents(mut self, input: ::std::option::Option<crate::types::MyUnion>) -> Self {
  118    131   
        self.inner = self.inner.set_contents(input);
  119    132   
        self
  120    133   
    }
  121         -
    /// A union with a representative set of types for members.
         134  +
    /// /* FluentBuilderGenerator.kt:518 */A union with a representative set of types for members.
         135  +
    /* FluentBuilderGenerator.kt:520 */
  122    136   
    pub fn get_contents(&self) -> &::std::option::Option<crate::types::MyUnion> {
  123    137   
        self.inner.get_contents()
  124    138   
    }
         139  +
    /* FluentBuilderGenerator.kt:282 */
  125    140   
}

tmp-codegen-diff/codegen-client-test/json_rpc11/rust-client-codegen/src/operation/kitchen_sink_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 `KitchenSinkOperation`.
           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 KitchenSinkOperation;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl KitchenSinkOperation {
    7         -
    /// Creates a new `KitchenSinkOperation`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `KitchenSinkOperation`
          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::kitchen_sink_operation::KitchenSinkOperationInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::kitchen_sink_operation::KitchenSinkOperationOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::kitchen_sink_operation::KitchenSinkOperationError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -63,72 +276,293 @@
   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 KitchenSinkOperation {
   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("KitchenSinkOperation");
   97    108   
   98    109   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   99    110   
            KitchenSinkOperationRequestSerializer,
  100    111   
        ));
  101    112   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
  102    113   
            KitchenSinkOperationResponseDeserializer,
  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   
            "KitchenSinkOperation",
  111    122   
            "Json Protocol",
  112    123   
        ));
  113    124   
  114    125   
        ::std::option::Option::Some(cfg.freeze())
  115    126   
    }
  116    127   
  117    128   
    fn runtime_components(
  118    129   
        &self,
  119    130   
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
  120    131   
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
  121    132   
        #[allow(unused_mut)]
  122    133   
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("KitchenSinkOperation")
  123    134   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  124    135   
            .with_interceptor(KitchenSinkOperationEndpointParamsInterceptor)
  125    136   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  126    137   
                crate::operation::kitchen_sink_operation::KitchenSinkOperationError,
  127    138   
            >::new())
  128    139   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  129    140   
                crate::operation::kitchen_sink_operation::KitchenSinkOperationError,
  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 KitchenSinkOperationResponseDeserializer;
  138    150   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for KitchenSinkOperationResponseDeserializer {
  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_kitchen_sink_operation::de_kitchen_sink_operation_http_error(status, headers, body)
  151    163   
        } else {
  152    164   
            crate::protocol_serde::shape_kitchen_sink_operation::de_kitchen_sink_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 KitchenSinkOperationRequestSerializer;
  159    172   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for KitchenSinkOperationRequestSerializer {
  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::kitchen_sink_operation::KitchenSinkOperationInput>()
  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::kitchen_sink_operation::KitchenSinkOperationInput,
  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, "/").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::kitchen_sink_operation::KitchenSinkOperationInput,
  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/x-amz-json-1.1");
  193    206   
            builder = _header_serialization_settings.set_default_header(
  194    207   
                builder,
  195    208   
                ::http::header::HeaderName::from_static("x-amz-target"),
  196    209   
                "JsonProtocol.KitchenSinkOperation",
  197    210   
            );
  198    211   
            builder
  199    212   
        };
  200    213   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_kitchen_sink_operation::ser_kitchen_sink_operation_input(
  201    214   
            &input,
  202    215   
        )?);
  203    216   
        if let Some(content_length) = body.content_length() {
  204    217   
            let content_length = content_length.to_string();
  205    218   
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
  206    219   
        }
  207    220   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  208    221   
    }
  209    222   
}
         223  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  210    224   
#[derive(Debug)]
  211    225   
struct KitchenSinkOperationEndpointParamsInterceptor;
  212    226   
  213    227   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for KitchenSinkOperationEndpointParamsInterceptor {
  214    228   
    fn name(&self) -> &'static str {
  215    229   
        "KitchenSinkOperationEndpointParamsInterceptor"
  216    230   
    }
  217    231   
  218    232   
    fn read_before_execution(
  219    233   
        &self,
  220    234   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  221    235   
            '_,
  222    236   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  223    237   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  224    238   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  225    239   
        >,
  226    240   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  227    241   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  228    242   
        let _input = context
  229    243   
            .input()
  230    244   
            .downcast_ref::<KitchenSinkOperationInput>()
  231    245   
            .ok_or("failed to downcast to KitchenSinkOperationInput")?;
  232    246   
  233    247   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  234    248   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  235    249   
        })?;
  236    250   
        cfg.interceptor_state()
  237    251   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  238    252   
        ::std::result::Result::Ok(())
  239    253   
    }
  240    254   
}
  241    255   
  242    256   
// The get_* functions below are generated from JMESPath expressions in the
  243    257   
// operationContextParams trait. They target the operation's input shape.
  244    258   
         259  +
/* RustType.kt:516 */
  245    260   
#[allow(unreachable_code, unused_variables)]
         261  +
/* RustType.kt:516 */
  246    262   
#[cfg(test)]
         263  +
/* ProtocolTestGenerator.kt:98 */
  247    264   
mod kitchen_sink_operation_test {
  248    265   
    use ::aws_smithy_protocol_test::FloatEquals;
  249    266   
  250    267   
    /// Serializes string shapes
  251    268   
    /// Test ID: serializes_string_shapes
  252    269   
    #[::tokio::test]
  253    270   
    #[::tracing_test::traced_test]
  254    271   
    async fn serializes_string_shapes_request() {
  255    272   
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  256    273   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
@@ -4561,4578 +4710,4836 @@
 4581   4598   
            expected_output.struct_with_json_name,
 4582   4599   
            "Unexpected value for `struct_with_json_name`"
 4583   4600   
        );
 4584   4601   
        ::pretty_assertions::assert_eq!(parsed.timestamp, expected_output.timestamp, "Unexpected value for `timestamp`");
 4585   4602   
        ::pretty_assertions::assert_eq!(
 4586   4603   
            parsed.unix_timestamp,
 4587   4604   
            expected_output.unix_timestamp,
 4588   4605   
            "Unexpected value for `unix_timestamp`"
 4589   4606   
        );
 4590   4607   
    }
        4608  +
        4609  +
    /* ProtocolTestGenerator.kt:98 */
 4591   4610   
}
 4592   4611   
        4612  +
/* OperationErrorGenerator.kt:79 */
 4593   4613   
/// Error type for the `KitchenSinkOperationError` operation.
        4614  +
/* RustType.kt:516 */
 4594   4615   
#[non_exhaustive]
        4616  +
/* RustType.kt:516 */
 4595   4617   
#[derive(::std::fmt::Debug)]
 4596         -
pub enum KitchenSinkOperationError {
        4618  +
pub /* OperationErrorGenerator.kt:81 */ enum KitchenSinkOperationError {
        4619  +
    /* OperationErrorGenerator.kt:83 */
 4597   4620   
    #[allow(missing_docs)] // documentation missing in model
        4621  +
    /* OperationErrorGenerator.kt:86 */
 4598   4622   
    ErrorWithMembers(crate::types::error::ErrorWithMembers),
        4623  +
    /* OperationErrorGenerator.kt:83 */
 4599   4624   
    #[allow(missing_docs)] // documentation missing in model
        4625  +
    /* OperationErrorGenerator.kt:86 */
 4600   4626   
    ErrorWithoutMembers(crate::types::error::ErrorWithoutMembers),
        4627  +
    /* OperationErrorGenerator.kt:88 */
 4601   4628   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
 4602   4629   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
 4603   4630   
    variable wildcard pattern and check `.code()`:
 4604   4631   
     \
 4605   4632   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
 4606   4633   
     \
 4607   4634   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-KitchenSinkOperationError) for what information is available for the error.")]
 4608   4635   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
        4636  +
    /* OperationErrorGenerator.kt:81 */
 4609   4637   
}
        4638  +
/* OperationErrorGenerator.kt:218 */
 4610   4639   
impl KitchenSinkOperationError {
        4640  +
    /* OperationErrorGenerator.kt:219 */
 4611   4641   
    /// Creates the `KitchenSinkOperationError::Unhandled` variant from any error type.
 4612   4642   
    pub fn unhandled(
 4613   4643   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
 4614   4644   
    ) -> Self {
 4615   4645   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
 4616   4646   
            source: err.into(),
 4617   4647   
            meta: ::std::default::Default::default(),
 4618   4648   
        })
 4619   4649   
    }
 4620   4650   
 4621   4651   
    /// Creates the `KitchenSinkOperationError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
 4622   4652   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
 4623   4653   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
 4624   4654   
            source: err.clone().into(),
 4625   4655   
            meta: err,
 4626   4656   
        })
 4627   4657   
    }
 4628         -
    ///
        4658  +
    /// /* OperationErrorGenerator.kt:236 */
 4629   4659   
    /// Returns error metadata, which includes the error code, message,
 4630   4660   
    /// request ID, and potentially additional information.
 4631   4661   
    ///
        4662  +
    /* OperationErrorGenerator.kt:242 */
 4632   4663   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
        4664  +
        /* OperationErrorGenerator.kt:243 */
 4633   4665   
        match self {
        4666  +
            /* OperationErrorGenerator.kt:246 */
 4634   4667   
            Self::ErrorWithMembers(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
        4668  +
            /* OperationErrorGenerator.kt:246 */
 4635   4669   
            Self::ErrorWithoutMembers(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
 4636         -
            Self::Unhandled(e) => &e.meta,
        4670  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
        4671  +
            /* OperationErrorGenerator.kt:243 */
 4637   4672   
        }
        4673  +
        /* OperationErrorGenerator.kt:242 */
 4638   4674   
    }
        4675  +
    /* OperationErrorGenerator.kt:257 */
 4639   4676   
    /// Returns `true` if the error kind is `KitchenSinkOperationError::ErrorWithMembers`.
        4677  +
    /* OperationErrorGenerator.kt:258 */
 4640   4678   
    pub fn is_error_with_members(&self) -> bool {
        4679  +
        /* OperationErrorGenerator.kt:259 */
 4641   4680   
        matches!(self, Self::ErrorWithMembers(_))
        4681  +
        /* OperationErrorGenerator.kt:258 */
 4642   4682   
    }
        4683  +
    /* OperationErrorGenerator.kt:257 */
 4643   4684   
    /// Returns `true` if the error kind is `KitchenSinkOperationError::ErrorWithoutMembers`.
        4685  +
    /* OperationErrorGenerator.kt:258 */
 4644   4686   
    pub fn is_error_without_members(&self) -> bool {
        4687  +
        /* OperationErrorGenerator.kt:259 */
 4645   4688   
        matches!(self, Self::ErrorWithoutMembers(_))
        4689  +
        /* OperationErrorGenerator.kt:258 */
 4646   4690   
    }
        4691  +
    /* OperationErrorGenerator.kt:218 */
 4647   4692   
}
        4693  +
/* OperationErrorGenerator.kt:269 */
 4648   4694   
impl ::std::error::Error for KitchenSinkOperationError {
        4695  +
    /* OperationErrorGenerator.kt:270 */
 4649   4696   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
        4697  +
        /* OperationErrorGenerator.kt:318 */
 4650   4698   
        match self {
 4651         -
            Self::ErrorWithMembers(_inner) => ::std::option::Option::Some(_inner),
 4652         -
            Self::ErrorWithoutMembers(_inner) => ::std::option::Option::Some(_inner),
 4653         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
        4699  +
            /* OperationErrorGenerator.kt:321 */
        4700  +
            Self::ErrorWithMembers(_inner) =>
        4701  +
            /* OperationErrorGenerator.kt:283 */
        4702  +
            {
        4703  +
                ::std::option::Option::Some(_inner)
 4654   4704   
            }
        4705  +
            ,
        4706  +
            /* OperationErrorGenerator.kt:321 */
        4707  +
            Self::ErrorWithoutMembers(_inner) =>
        4708  +
            /* OperationErrorGenerator.kt:283 */
        4709  +
            {
        4710  +
                ::std::option::Option::Some(_inner)
 4655   4711   
            }
        4712  +
            ,
        4713  +
            /* OperationErrorGenerator.kt:326 */
        4714  +
            Self::Unhandled(_inner) => {
        4715  +
                /* OperationErrorGenerator.kt:279 */
        4716  +
                ::std::option::Option::Some(&*_inner.source)
        4717  +
                /* OperationErrorGenerator.kt:326 */
        4718  +
            } /* OperationErrorGenerator.kt:318 */
        4719  +
        }
        4720  +
        /* OperationErrorGenerator.kt:270 */
        4721  +
    }
        4722  +
    /* OperationErrorGenerator.kt:269 */
 4656   4723   
}
        4724  +
/* OperationErrorGenerator.kt:133 */
 4657   4725   
impl ::std::fmt::Display for KitchenSinkOperationError {
        4726  +
    /* OperationErrorGenerator.kt:134 */
 4658   4727   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        4728  +
        /* OperationErrorGenerator.kt:318 */
 4659   4729   
        match self {
 4660         -
            Self::ErrorWithMembers(_inner) => _inner.fmt(f),
 4661         -
            Self::ErrorWithoutMembers(_inner) => _inner.fmt(f),
        4730  +
            /* OperationErrorGenerator.kt:321 */
        4731  +
            Self::ErrorWithMembers(_inner) =>
        4732  +
            /* OperationErrorGenerator.kt:151 */
        4733  +
            {
        4734  +
                _inner.fmt(f)
        4735  +
            }
        4736  +
            ,
        4737  +
            /* OperationErrorGenerator.kt:321 */
        4738  +
            Self::ErrorWithoutMembers(_inner) =>
        4739  +
            /* OperationErrorGenerator.kt:151 */
        4740  +
            {
        4741  +
                _inner.fmt(f)
        4742  +
            }
        4743  +
            ,
        4744  +
            /* OperationErrorGenerator.kt:326 */
 4662   4745   
            Self::Unhandled(_inner) => {
        4746  +
                /* OperationErrorGenerator.kt:139 */
 4663   4747   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
 4664   4748   
                    write!(f, "unhandled error ({code})")
 4665   4749   
                } else {
 4666   4750   
                    f.write_str("unhandled error")
 4667   4751   
                }
        4752  +
                /* OperationErrorGenerator.kt:326 */
        4753  +
            } /* OperationErrorGenerator.kt:318 */
 4668   4754   
        }
        4755  +
        /* OperationErrorGenerator.kt:134 */
 4669   4756   
    }
 4670         -
    }
        4757  +
    /* OperationErrorGenerator.kt:133 */
 4671   4758   
}
        4759  +
/* OperationErrorGenerator.kt:182 */
 4672   4760   
impl ::aws_smithy_types::retry::ProvideErrorKind for KitchenSinkOperationError {
        4761  +
    /* OperationErrorGenerator.kt:186 */
 4673   4762   
    fn code(&self) -> ::std::option::Option<&str> {
        4763  +
        /* OperationErrorGenerator.kt:187 */
 4674   4764   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
        4765  +
        /* OperationErrorGenerator.kt:186 */
 4675   4766   
    }
        4767  +
    /* OperationErrorGenerator.kt:190 */
 4676   4768   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
        4769  +
        /* OperationErrorGenerator.kt:197 */
 4677   4770   
        ::std::option::Option::None
        4771  +
        /* OperationErrorGenerator.kt:190 */
 4678   4772   
    }
        4773  +
    /* OperationErrorGenerator.kt:182 */
 4679   4774   
}
        4775  +
/* OperationErrorGenerator.kt:163 */
 4680   4776   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for KitchenSinkOperationError {
        4777  +
    /* OperationErrorGenerator.kt:164 */
 4681   4778   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
        4779  +
        /* OperationErrorGenerator.kt:318 */
 4682   4780   
        match self {
 4683         -
            Self::ErrorWithMembers(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
 4684         -
            Self::ErrorWithoutMembers(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
 4685         -
            Self::Unhandled(_inner) => &_inner.meta,
        4781  +
            /* OperationErrorGenerator.kt:321 */
        4782  +
            Self::ErrorWithMembers(_inner) =>
        4783  +
            /* OperationErrorGenerator.kt:169 */
        4784  +
            {
        4785  +
                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
        4786  +
            }
        4787  +
            ,
        4788  +
            /* OperationErrorGenerator.kt:321 */
        4789  +
            Self::ErrorWithoutMembers(_inner) =>
        4790  +
            /* OperationErrorGenerator.kt:169 */
        4791  +
            {
        4792  +
                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
        4793  +
            }
        4794  +
            ,
        4795  +
            /* OperationErrorGenerator.kt:326 */
        4796  +
            Self::Unhandled(_inner) => {
        4797  +
                /* OperationErrorGenerator.kt:168 */
        4798  +
                &_inner.meta
        4799  +
                /* OperationErrorGenerator.kt:326 */
        4800  +
            } /* OperationErrorGenerator.kt:318 */
 4686   4801   
        }
        4802  +
        /* OperationErrorGenerator.kt:164 */
 4687   4803   
    }
        4804  +
    /* OperationErrorGenerator.kt:163 */
 4688   4805   
}
        4806  +
/* OperationErrorGenerator.kt:109 */
 4689   4807   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for KitchenSinkOperationError {
        4808  +
    /* OperationErrorGenerator.kt:110 */
 4690   4809   
    fn create_unhandled_error(
 4691   4810   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
 4692   4811   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
 4693   4812   
    ) -> Self {
        4813  +
        /* OperationErrorGenerator.kt:121 */
 4694   4814   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
 4695   4815   
            source,
 4696   4816   
            meta: meta.unwrap_or_default(),
 4697   4817   
        })
        4818  +
        /* OperationErrorGenerator.kt:110 */
 4698   4819   
    }
        4820  +
    /* OperationErrorGenerator.kt:109 */
 4699   4821   
}
 4700   4822   
        4823  +
/* CodegenDelegator.kt:255 */
 4701   4824   
pub use crate::operation::kitchen_sink_operation::_kitchen_sink_operation_output::KitchenSinkOperationOutput;
 4702   4825   
        4826  +
/* CodegenDelegator.kt:255 */
 4703   4827   
pub use crate::operation::kitchen_sink_operation::_kitchen_sink_operation_input::KitchenSinkOperationInput;
 4704   4828   
        4829  +
/* RustModule.kt:172 */
 4705   4830   
mod _kitchen_sink_operation_input;
 4706   4831   
        4832  +
/* RustModule.kt:172 */
 4707   4833   
mod _kitchen_sink_operation_output;
 4708   4834   
 4709         -
/// Builders
        4835  +
/// /* CodegenDelegator.kt:51 */Builders
 4710   4836   
pub mod builders;

tmp-codegen-diff/codegen-client-test/json_rpc11/rust-client-codegen/src/operation/kitchen_sink_operation/_kitchen_sink_operation_input.rs

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