Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943

Files changed:

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

@@ -1,1 +111,123 @@
    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::greeting_with_errors::_greeting_with_errors_output::GreetingWithErrorsOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::greeting_with_errors::_greeting_with_errors_input::GreetingWithErrorsInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::greeting_with_errors::builders::GreetingWithErrorsInputBuilder {
    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::greeting_with_errors::GreetingWithErrorsOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::greeting_with_errors::GreetingWithErrorsError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.greeting_with_errors();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `GreetingWithErrors`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `GreetingWithErrors`.
   24     27   
///
   25         -
/// This operation has three possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A ComplexError error. Implementations must be able to successfully take a response and properly deserialize successful and error responses.
          28  +
/// /* FluentBuilderGenerator.kt:130 */This operation has three possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A ComplexError error. Implementations must be able to successfully take a response and properly deserialize successful and error responses.
          29  +
/* RustType.kt:516 */
   26     30   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          31  +
/* FluentBuilderGenerator.kt:270 */
   27     32   
pub struct GreetingWithErrorsFluentBuilder {
   28     33   
    handle: ::std::sync::Arc<crate::client::Handle>,
   29     34   
    inner: crate::operation::greeting_with_errors::builders::GreetingWithErrorsInputBuilder,
   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::greeting_with_errors::GreetingWithErrorsOutput,
   35     41   
        crate::operation::greeting_with_errors::GreetingWithErrorsError,
   36     42   
    > for GreetingWithErrorsFluentBuilder
   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::greeting_with_errors::GreetingWithErrorsOutput,
   44     50   
            crate::operation::greeting_with_errors::GreetingWithErrorsError,
   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 GreetingWithErrorsFluentBuilder {
          58  +
    /* FluentBuilderGenerator.kt:288 */
   51     59   
    /// Creates a new `GreetingWithErrorsFluentBuilder`.
   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 GreetingWithErrors as a reference.
   60     69   
    pub fn as_input(&self) -> &crate::operation::greeting_with_errors::builders::GreetingWithErrorsInputBuilder {
   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::greeting_with_errors::GreetingWithErrorsOutput,
   75     85   
        ::aws_smithy_runtime_api::client::result::SdkError<
   76     86   
            crate::operation::greeting_with_errors::GreetingWithErrorsError,
   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::greeting_with_errors::GreetingWithErrors::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::greeting_with_errors::GreetingWithErrors::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::greeting_with_errors::GreetingWithErrorsOutput,
   97    107   
        crate::operation::greeting_with_errors::GreetingWithErrorsError,
   98    108   
        Self,
   99    109   
    > {
  100    110   
        crate::client::customize::CustomizableOperation::new(self)
  101    111   
    }
         112  +
    /* FluentBuilderGenerator.kt:315 */
  102    113   
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
  103    114   
        self.set_config_override(::std::option::Option::Some(config_override.into()));
  104    115   
        self
  105    116   
    }
  106    117   
  107    118   
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
  108    119   
        self.config_override = config_override;
  109    120   
        self
  110    121   
    }
         122  +
    /* FluentBuilderGenerator.kt:282 */
  111    123   
}

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/operation/no_input_output.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 `NoInputOutput`.
           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 NoInputOutput;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl NoInputOutput {
    7         -
    /// Creates a new `NoInputOutput`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `NoInputOutput`
          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::no_input_output::NoInputOutputInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::no_input_output::NoInputOutputOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::no_input_output::NoInputOutputError,
   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 NoInputOutput {
   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("NoInputOutput");
   91    102   
   92    103   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   93    104   
            NoInputOutputRequestSerializer,
   94    105   
        ));
   95    106   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
   96    107   
            NoInputOutputResponseDeserializer,
   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   
            "NoInputOutput",
  105    116   
            "RpcV2Protocol",
  106    117   
        ));
  107    118   
  108    119   
        ::std::option::Option::Some(cfg.freeze())
  109    120   
    }
  110    121   
  111    122   
    fn runtime_components(
  112    123   
        &self,
  113    124   
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
  114    125   
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
  115    126   
        #[allow(unused_mut)]
  116    127   
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("NoInputOutput")
  117    128   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  118    129   
            .with_interceptor(NoInputOutputEndpointParamsInterceptor)
  119    130   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  120    131   
                crate::operation::no_input_output::NoInputOutputError,
  121    132   
            >::new())
  122    133   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  123    134   
                crate::operation::no_input_output::NoInputOutputError,
  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 NoInputOutputResponseDeserializer;
  132    144   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for NoInputOutputResponseDeserializer {
  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_no_input_output::de_no_input_output_http_error(status, headers, body)
  145    157   
        } else {
  146    158   
            crate::protocol_serde::shape_no_input_output::de_no_input_output_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 NoInputOutputRequestSerializer;
  153    166   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for NoInputOutputRequestSerializer {
  154    167   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  155    168   
    fn serialize_input(
  156    169   
        &self,
  157    170   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  158    171   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  159    172   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  160    173   
        let input = input
  161    174   
            .downcast::<crate::operation::no_input_output::NoInputOutputInput>()
  162    175   
            .expect("correct type");
  163    176   
        let _header_serialization_settings = _cfg
  164    177   
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  165    178   
            .cloned()
  166    179   
            .unwrap_or_default();
  167    180   
        let mut request_builder = {
  168    181   
            fn uri_base(
  169    182   
                _input: &crate::operation::no_input_output::NoInputOutputInput,
  170    183   
                output: &mut ::std::string::String,
  171    184   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  172    185   
                use ::std::fmt::Write as _;
  173    186   
                ::std::write!(output, "/service/RpcV2Protocol/operation/NoInputOutput").expect("formatting should succeed");
  174    187   
                ::std::result::Result::Ok(())
  175    188   
            }
  176    189   
            #[allow(clippy::unnecessary_wraps)]
  177    190   
            fn update_http_builder(
  178    191   
                input: &crate::operation::no_input_output::NoInputOutputInput,
  179    192   
                builder: ::http::request::Builder,
  180    193   
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  181    194   
                let mut uri = ::std::string::String::new();
  182    195   
                uri_base(input, &mut uri)?;
  183    196   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  184    197   
            }
  185    198   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  186    199   
            builder =
  187    200   
                _header_serialization_settings.set_default_header(builder, ::http::header::HeaderName::from_static("smithy-protocol"), "rpc-v2-cbor");
  188    201   
            builder =
  189    202   
                _header_serialization_settings.set_default_header(builder, ::http::header::HeaderName::from_static("accept"), "application/cbor");
  190    203   
            builder
  191    204   
        };
  192    205   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  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 NoInputOutputEndpointParamsInterceptor;
  202    216   
  203    217   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for NoInputOutputEndpointParamsInterceptor {
  204    218   
    fn name(&self) -> &'static str {
  205    219   
        "NoInputOutputEndpointParamsInterceptor"
  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::<NoInputOutputInput>()
  221    235   
            .ok_or("failed to downcast to NoInputOutputInput")?;
  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 no_input_output_test {
  238    255   
  239    256   
    /// Body is empty and no Content-Type header if no input
  240    257   
    /// Test ID: no_input
  241    258   
    #[::tokio::test]
  242    259   
    #[::tracing_test::traced_test]
  243    260   
    async fn no_input_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   
@@ -352,369 +481,557 @@
  372    389   
                    ::aws_smithy_protocol_test::MediaType::from("application/cbor"),
  373    390   
                )))
  374    391   
            });
  375    392   
            de.deserialize_nonstreaming(&http_response)
  376    393   
        });
  377    394   
        let parsed = parsed
  378    395   
            .expect("should be successful response")
  379    396   
            .downcast::<crate::operation::no_input_output::NoInputOutputOutput>()
  380    397   
            .unwrap();
  381    398   
    }
         399  +
         400  +
    /* ProtocolTestGenerator.kt:98 */
  382    401   
}
  383    402   
         403  +
/* OperationErrorGenerator.kt:79 */
  384    404   
/// Error type for the `NoInputOutputError` operation.
         405  +
/* RustType.kt:516 */
  385    406   
#[non_exhaustive]
         407  +
/* RustType.kt:516 */
  386    408   
#[derive(::std::fmt::Debug)]
  387         -
pub enum NoInputOutputError {
         409  +
pub /* OperationErrorGenerator.kt:81 */ enum NoInputOutputError {
         410  +
    /* OperationErrorGenerator.kt:88 */
  388    411   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  389    412   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  390    413   
    variable wildcard pattern and check `.code()`:
  391    414   
     \
  392    415   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  393    416   
     \
  394    417   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-NoInputOutputError) for what information is available for the error.")]
  395    418   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         419  +
    /* OperationErrorGenerator.kt:81 */
  396    420   
}
         421  +
/* OperationErrorGenerator.kt:218 */
  397    422   
impl NoInputOutputError {
         423  +
    /* OperationErrorGenerator.kt:219 */
  398    424   
    /// Creates the `NoInputOutputError::Unhandled` variant from any error type.
  399    425   
    pub fn unhandled(
  400    426   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  401    427   
    ) -> Self {
  402    428   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  403    429   
            source: err.into(),
  404    430   
            meta: ::std::default::Default::default(),
  405    431   
        })
  406    432   
    }
  407    433   
  408    434   
    /// Creates the `NoInputOutputError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  409    435   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  410    436   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  411    437   
            source: err.clone().into(),
  412    438   
            meta: err,
  413    439   
        })
  414    440   
    }
  415         -
    ///
         441  +
    /// /* OperationErrorGenerator.kt:236 */
  416    442   
    /// Returns error metadata, which includes the error code, message,
  417    443   
    /// request ID, and potentially additional information.
  418    444   
    ///
         445  +
    /* OperationErrorGenerator.kt:242 */
  419    446   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         447  +
        /* OperationErrorGenerator.kt:243 */
  420    448   
        match self {
  421         -
            Self::Unhandled(e) => &e.meta,
         449  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         450  +
            /* OperationErrorGenerator.kt:243 */
  422    451   
        }
         452  +
        /* OperationErrorGenerator.kt:242 */
  423    453   
    }
         454  +
    /* OperationErrorGenerator.kt:218 */
  424    455   
}
         456  +
/* OperationErrorGenerator.kt:269 */
  425    457   
impl ::std::error::Error for NoInputOutputError {
         458  +
    /* OperationErrorGenerator.kt:270 */
  426    459   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         460  +
        /* OperationErrorGenerator.kt:318 */
  427    461   
        match self {
  428         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         462  +
            /* OperationErrorGenerator.kt:326 */
         463  +
            Self::Unhandled(_inner) => {
         464  +
                /* OperationErrorGenerator.kt:279 */
         465  +
                ::std::option::Option::Some(&*_inner.source)
         466  +
                /* OperationErrorGenerator.kt:326 */
         467  +
            } /* OperationErrorGenerator.kt:318 */
  429    468   
        }
         469  +
        /* OperationErrorGenerator.kt:270 */
  430    470   
    }
         471  +
    /* OperationErrorGenerator.kt:269 */
  431    472   
}
         473  +
/* OperationErrorGenerator.kt:133 */
  432    474   
impl ::std::fmt::Display for NoInputOutputError {
         475  +
    /* OperationErrorGenerator.kt:134 */
  433    476   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         477  +
        /* OperationErrorGenerator.kt:318 */
  434    478   
        match self {
         479  +
            /* OperationErrorGenerator.kt:326 */
  435    480   
            Self::Unhandled(_inner) => {
         481  +
                /* OperationErrorGenerator.kt:139 */
  436    482   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  437    483   
                    write!(f, "unhandled error ({code})")
  438    484   
                } else {
  439    485   
                    f.write_str("unhandled error")
  440    486   
                }
  441         -
            }
         487  +
                /* OperationErrorGenerator.kt:326 */
         488  +
            } /* OperationErrorGenerator.kt:318 */
  442    489   
        }
         490  +
        /* OperationErrorGenerator.kt:134 */
  443    491   
    }
         492  +
    /* OperationErrorGenerator.kt:133 */
  444    493   
}
         494  +
/* OperationErrorGenerator.kt:182 */
  445    495   
impl ::aws_smithy_types::retry::ProvideErrorKind for NoInputOutputError {
         496  +
    /* OperationErrorGenerator.kt:186 */
  446    497   
    fn code(&self) -> ::std::option::Option<&str> {
         498  +
        /* OperationErrorGenerator.kt:187 */
  447    499   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         500  +
        /* OperationErrorGenerator.kt:186 */
  448    501   
    }
         502  +
    /* OperationErrorGenerator.kt:190 */
  449    503   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         504  +
        /* OperationErrorGenerator.kt:197 */
  450    505   
        ::std::option::Option::None
         506  +
        /* OperationErrorGenerator.kt:190 */
  451    507   
    }
         508  +
    /* OperationErrorGenerator.kt:182 */
  452    509   
}
         510  +
/* OperationErrorGenerator.kt:163 */
  453    511   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for NoInputOutputError {
         512  +
    /* OperationErrorGenerator.kt:164 */
  454    513   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         514  +
        /* OperationErrorGenerator.kt:318 */
  455    515   
        match self {
  456         -
            Self::Unhandled(_inner) => &_inner.meta,
         516  +
            /* OperationErrorGenerator.kt:326 */
         517  +
            Self::Unhandled(_inner) => {
         518  +
                /* OperationErrorGenerator.kt:168 */
         519  +
                &_inner.meta
         520  +
                /* OperationErrorGenerator.kt:326 */
         521  +
            } /* OperationErrorGenerator.kt:318 */
  457    522   
        }
         523  +
        /* OperationErrorGenerator.kt:164 */
  458    524   
    }
         525  +
    /* OperationErrorGenerator.kt:163 */
  459    526   
}
         527  +
/* OperationErrorGenerator.kt:109 */
  460    528   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for NoInputOutputError {
         529  +
    /* OperationErrorGenerator.kt:110 */
  461    530   
    fn create_unhandled_error(
  462    531   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  463    532   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  464    533   
    ) -> Self {
         534  +
        /* OperationErrorGenerator.kt:121 */
  465    535   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  466    536   
            source,
  467    537   
            meta: meta.unwrap_or_default(),
  468    538   
        })
         539  +
        /* OperationErrorGenerator.kt:110 */
  469    540   
    }
         541  +
    /* OperationErrorGenerator.kt:109 */
  470    542   
}
  471    543   
         544  +
/* CodegenDelegator.kt:255 */
  472    545   
pub use crate::operation::no_input_output::_no_input_output_output::NoInputOutputOutput;
  473    546   
         547  +
/* CodegenDelegator.kt:255 */
  474    548   
pub use crate::operation::no_input_output::_no_input_output_input::NoInputOutputInput;
  475    549   
         550  +
/* RustModule.kt:172 */
  476    551   
mod _no_input_output_input;
  477    552   
         553  +
/* RustModule.kt:172 */
  478    554   
mod _no_input_output_output;
  479    555   
  480         -
/// Builders
         556  +
/// /* CodegenDelegator.kt:51 */Builders
  481    557   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/operation/no_input_output/_no_input_output_input.rs

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

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/operation/no_input_output/_no_input_output_output.rs

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

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

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

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/operation/operation_with_defaults.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 `OperationWithDefaults`.
           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 OperationWithDefaults;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl OperationWithDefaults {
    7         -
    /// Creates a new `OperationWithDefaults`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `OperationWithDefaults`
          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::operation_with_defaults::OperationWithDefaultsInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::operation_with_defaults::OperationWithDefaultsOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::operation_with_defaults::OperationWithDefaultsError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -63,72 +275,292 @@
   83     92   
                runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
   84     93   
            }
   85     94   
            runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
   86     95   
                config_override,
   87     96   
                client_config.config.clone(),
   88     97   
                &client_config.runtime_components,
   89     98   
            ));
   90     99   
        }
   91    100   
        runtime_plugins
   92    101   
    }
         102  +
    /* OperationGenerator.kt:85 */
   93    103   
}
         104  +
/* OperationRuntimePluginGenerator.kt:55 */
   94    105   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for OperationWithDefaults {
   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("OperationWithDefaults");
   97    108   
   98    109   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   99    110   
            OperationWithDefaultsRequestSerializer,
  100    111   
        ));
  101    112   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
  102    113   
            OperationWithDefaultsResponseDeserializer,
  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   
            "OperationWithDefaults",
  111    122   
            "RpcV2Protocol",
  112    123   
        ));
  113    124   
  114    125   
        ::std::option::Option::Some(cfg.freeze())
  115    126   
    }
  116    127   
  117    128   
    fn runtime_components(
  118    129   
        &self,
  119    130   
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
  120    131   
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
  121    132   
        #[allow(unused_mut)]
  122    133   
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("OperationWithDefaults")
  123    134   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  124    135   
            .with_interceptor(OperationWithDefaultsEndpointParamsInterceptor)
  125    136   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  126    137   
                crate::operation::operation_with_defaults::OperationWithDefaultsError,
  127    138   
            >::new())
  128    139   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  129    140   
                crate::operation::operation_with_defaults::OperationWithDefaultsError,
  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 OperationWithDefaultsResponseDeserializer;
  138    150   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for OperationWithDefaultsResponseDeserializer {
  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_operation_with_defaults::de_operation_with_defaults_http_error(status, headers, body)
  151    163   
        } else {
  152    164   
            crate::protocol_serde::shape_operation_with_defaults::de_operation_with_defaults_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 OperationWithDefaultsRequestSerializer;
  159    172   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for OperationWithDefaultsRequestSerializer {
  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::operation_with_defaults::OperationWithDefaultsInput>()
  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::operation_with_defaults::OperationWithDefaultsInput,
  176    189   
                output: &mut ::std::string::String,
  177    190   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  178    191   
                use ::std::fmt::Write as _;
  179    192   
                ::std::write!(output, "/service/RpcV2Protocol/operation/OperationWithDefaults").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::operation_with_defaults::OperationWithDefaultsInput,
  185    198   
                builder: ::http::request::Builder,
  186    199   
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  187    200   
                let mut uri = ::std::string::String::new();
  188    201   
                uri_base(input, &mut uri)?;
  189    202   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  190    203   
            }
  191    204   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  192    205   
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/cbor");
  193    206   
            builder =
  194    207   
                _header_serialization_settings.set_default_header(builder, ::http::header::HeaderName::from_static("smithy-protocol"), "rpc-v2-cbor");
  195    208   
            builder =
  196    209   
                _header_serialization_settings.set_default_header(builder, ::http::header::HeaderName::from_static("accept"), "application/cbor");
  197    210   
            builder
  198    211   
        };
  199    212   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_operation_with_defaults::ser_operation_with_defaults_input(
  200    213   
            &input,
  201    214   
        )?);
  202    215   
        if let Some(content_length) = body.content_length() {
  203    216   
            let content_length = content_length.to_string();
  204    217   
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
  205    218   
        }
  206    219   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  207    220   
    }
  208    221   
}
         222  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  209    223   
#[derive(Debug)]
  210    224   
struct OperationWithDefaultsEndpointParamsInterceptor;
  211    225   
  212    226   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for OperationWithDefaultsEndpointParamsInterceptor {
  213    227   
    fn name(&self) -> &'static str {
  214    228   
        "OperationWithDefaultsEndpointParamsInterceptor"
  215    229   
    }
  216    230   
  217    231   
    fn read_before_execution(
  218    232   
        &self,
  219    233   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  220    234   
            '_,
  221    235   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  222    236   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  223    237   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  224    238   
        >,
  225    239   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  226    240   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  227    241   
        let _input = context
  228    242   
            .input()
  229    243   
            .downcast_ref::<OperationWithDefaultsInput>()
  230    244   
            .ok_or("failed to downcast to OperationWithDefaultsInput")?;
  231    245   
  232    246   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  233    247   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  234    248   
        })?;
  235    249   
        cfg.interceptor_state()
  236    250   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  237    251   
        ::std::result::Result::Ok(())
  238    252   
    }
  239    253   
}
  240    254   
  241    255   
// The get_* functions below are generated from JMESPath expressions in the
  242    256   
// operationContextParams trait. They target the operation's input shape.
  243    257   
         258  +
/* RustType.kt:516 */
  244    259   
#[allow(unreachable_code, unused_variables)]
         260  +
/* RustType.kt:516 */
  245    261   
#[cfg(test)]
         262  +
/* ProtocolTestGenerator.kt:98 */
  246    263   
mod operation_with_defaults_test {
  247    264   
    use ::aws_smithy_protocol_test::FloatEquals;
  248    265   
  249    266   
    /// Client populates default values in input.
  250    267   
    /// Test ID: RpcV2CborClientPopulatesDefaultValuesInInput
  251    268   
    #[::tokio::test]
  252    269   
    #[::tracing_test::traced_test]
  253    270   
    #[should_panic]
  254    271   
    async fn rpc_v2_cbor_client_populates_default_values_in_input_request() {
  255    272   
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
@@ -696,713 +835,934 @@
  716    733   
            expected_output.zero_float,
  717    734   
            parsed.zero_float
  718    735   
        );
  719    736   
        assert!(
  720    737   
            parsed.zero_double.float_equals(&expected_output.zero_double),
  721    738   
            "Unexpected value for `zero_double` {:?} vs. {:?}",
  722    739   
            expected_output.zero_double,
  723    740   
            parsed.zero_double
  724    741   
        );
  725    742   
    }
         743  +
         744  +
    /* ProtocolTestGenerator.kt:98 */
  726    745   
}
  727    746   
         747  +
/* OperationErrorGenerator.kt:79 */
  728    748   
/// Error type for the `OperationWithDefaultsError` operation.
         749  +
/* RustType.kt:516 */
  729    750   
#[non_exhaustive]
         751  +
/* RustType.kt:516 */
  730    752   
#[derive(::std::fmt::Debug)]
  731         -
pub enum OperationWithDefaultsError {
  732         -
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
         753  +
pub /* OperationErrorGenerator.kt:81 */ enum OperationWithDefaultsError {
         754  +
    /// /* OperationErrorGenerator.kt:83 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
         755  +
    /* OperationErrorGenerator.kt:86 */
  733    756   
    ValidationError(crate::types::error::ValidationError),
         757  +
    /* OperationErrorGenerator.kt:88 */
  734    758   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  735    759   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  736    760   
    variable wildcard pattern and check `.code()`:
  737    761   
     \
  738    762   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  739    763   
     \
  740    764   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-OperationWithDefaultsError) for what information is available for the error.")]
  741    765   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         766  +
    /* OperationErrorGenerator.kt:81 */
  742    767   
}
         768  +
/* OperationErrorGenerator.kt:218 */
  743    769   
impl OperationWithDefaultsError {
         770  +
    /* OperationErrorGenerator.kt:219 */
  744    771   
    /// Creates the `OperationWithDefaultsError::Unhandled` variant from any error type.
  745    772   
    pub fn unhandled(
  746    773   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  747    774   
    ) -> Self {
  748    775   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  749    776   
            source: err.into(),
  750    777   
            meta: ::std::default::Default::default(),
  751    778   
        })
  752    779   
    }
  753    780   
  754    781   
    /// Creates the `OperationWithDefaultsError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  755    782   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  756    783   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  757    784   
            source: err.clone().into(),
  758    785   
            meta: err,
  759    786   
        })
  760    787   
    }
  761         -
    ///
         788  +
    /// /* OperationErrorGenerator.kt:236 */
  762    789   
    /// Returns error metadata, which includes the error code, message,
  763    790   
    /// request ID, and potentially additional information.
  764    791   
    ///
         792  +
    /* OperationErrorGenerator.kt:242 */
  765    793   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         794  +
        /* OperationErrorGenerator.kt:243 */
  766    795   
        match self {
  767         -
            Self::ValidationError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
  768         -
            Self::Unhandled(e) => &e.meta,
         796  +
            /* OperationErrorGenerator.kt:246 */ Self::ValidationError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         797  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         798  +
            /* OperationErrorGenerator.kt:243 */
  769    799   
        }
         800  +
        /* OperationErrorGenerator.kt:242 */
  770    801   
    }
         802  +
    /* OperationErrorGenerator.kt:257 */
  771    803   
    /// Returns `true` if the error kind is `OperationWithDefaultsError::ValidationError`.
         804  +
    /* OperationErrorGenerator.kt:258 */
  772    805   
    pub fn is_validation_error(&self) -> bool {
         806  +
        /* OperationErrorGenerator.kt:259 */
  773    807   
        matches!(self, Self::ValidationError(_))
         808  +
        /* OperationErrorGenerator.kt:258 */
  774    809   
    }
         810  +
    /* OperationErrorGenerator.kt:218 */
  775    811   
}
         812  +
/* OperationErrorGenerator.kt:269 */
  776    813   
impl ::std::error::Error for OperationWithDefaultsError {
         814  +
    /* OperationErrorGenerator.kt:270 */
  777    815   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         816  +
        /* OperationErrorGenerator.kt:318 */
  778    817   
        match self {
  779         -
            Self::ValidationError(_inner) => ::std::option::Option::Some(_inner),
  780         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         818  +
            /* OperationErrorGenerator.kt:321 */
         819  +
            Self::ValidationError(_inner) =>
         820  +
            /* OperationErrorGenerator.kt:283 */
         821  +
            {
         822  +
                ::std::option::Option::Some(_inner)
         823  +
            }
         824  +
            ,
         825  +
            /* OperationErrorGenerator.kt:326 */
         826  +
            Self::Unhandled(_inner) => {
         827  +
                /* OperationErrorGenerator.kt:279 */
         828  +
                ::std::option::Option::Some(&*_inner.source)
         829  +
                /* OperationErrorGenerator.kt:326 */
         830  +
            } /* OperationErrorGenerator.kt:318 */
  781    831   
        }
         832  +
        /* OperationErrorGenerator.kt:270 */
  782    833   
    }
         834  +
    /* OperationErrorGenerator.kt:269 */
  783    835   
}
         836  +
/* OperationErrorGenerator.kt:133 */
  784    837   
impl ::std::fmt::Display for OperationWithDefaultsError {
         838  +
    /* OperationErrorGenerator.kt:134 */
  785    839   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         840  +
        /* OperationErrorGenerator.kt:318 */
  786    841   
        match self {
  787         -
            Self::ValidationError(_inner) => _inner.fmt(f),
         842  +
            /* OperationErrorGenerator.kt:321 */
         843  +
            Self::ValidationError(_inner) =>
         844  +
            /* OperationErrorGenerator.kt:151 */
         845  +
            {
         846  +
                _inner.fmt(f)
         847  +
            }
         848  +
            ,
         849  +
            /* OperationErrorGenerator.kt:326 */
  788    850   
            Self::Unhandled(_inner) => {
         851  +
                /* OperationErrorGenerator.kt:139 */
  789    852   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  790    853   
                    write!(f, "unhandled error ({code})")
  791    854   
                } else {
  792    855   
                    f.write_str("unhandled error")
  793    856   
                }
  794         -
            }
         857  +
                /* OperationErrorGenerator.kt:326 */
         858  +
            } /* OperationErrorGenerator.kt:318 */
  795    859   
        }
         860  +
        /* OperationErrorGenerator.kt:134 */
  796    861   
    }
         862  +
    /* OperationErrorGenerator.kt:133 */
  797    863   
}
         864  +
/* OperationErrorGenerator.kt:182 */
  798    865   
impl ::aws_smithy_types::retry::ProvideErrorKind for OperationWithDefaultsError {
         866  +
    /* OperationErrorGenerator.kt:186 */
  799    867   
    fn code(&self) -> ::std::option::Option<&str> {
         868  +
        /* OperationErrorGenerator.kt:187 */
  800    869   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         870  +
        /* OperationErrorGenerator.kt:186 */
  801    871   
    }
         872  +
    /* OperationErrorGenerator.kt:190 */
  802    873   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         874  +
        /* OperationErrorGenerator.kt:197 */
  803    875   
        ::std::option::Option::None
         876  +
        /* OperationErrorGenerator.kt:190 */
  804    877   
    }
         878  +
    /* OperationErrorGenerator.kt:182 */
  805    879   
}
         880  +
/* OperationErrorGenerator.kt:163 */
  806    881   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for OperationWithDefaultsError {
         882  +
    /* OperationErrorGenerator.kt:164 */
  807    883   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         884  +
        /* OperationErrorGenerator.kt:318 */
  808    885   
        match self {
  809         -
            Self::ValidationError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  810         -
            Self::Unhandled(_inner) => &_inner.meta,
         886  +
            /* OperationErrorGenerator.kt:321 */
         887  +
            Self::ValidationError(_inner) =>
         888  +
            /* OperationErrorGenerator.kt:169 */
         889  +
            {
         890  +
                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
         891  +
            }
         892  +
            ,
         893  +
            /* OperationErrorGenerator.kt:326 */
         894  +
            Self::Unhandled(_inner) => {
         895  +
                /* OperationErrorGenerator.kt:168 */
         896  +
                &_inner.meta
         897  +
                /* OperationErrorGenerator.kt:326 */
         898  +
            } /* OperationErrorGenerator.kt:318 */
  811    899   
        }
         900  +
        /* OperationErrorGenerator.kt:164 */
  812    901   
    }
         902  +
    /* OperationErrorGenerator.kt:163 */
  813    903   
}
         904  +
/* OperationErrorGenerator.kt:109 */
  814    905   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for OperationWithDefaultsError {
         906  +
    /* OperationErrorGenerator.kt:110 */
  815    907   
    fn create_unhandled_error(
  816    908   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  817    909   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  818    910   
    ) -> Self {
         911  +
        /* OperationErrorGenerator.kt:121 */
  819    912   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  820    913   
            source,
  821    914   
            meta: meta.unwrap_or_default(),
  822    915   
        })
         916  +
        /* OperationErrorGenerator.kt:110 */
  823    917   
    }
         918  +
    /* OperationErrorGenerator.kt:109 */
  824    919   
}
  825    920   
         921  +
/* CodegenDelegator.kt:255 */
  826    922   
pub use crate::operation::operation_with_defaults::_operation_with_defaults_output::OperationWithDefaultsOutput;
  827    923   
         924  +
/* CodegenDelegator.kt:255 */
  828    925   
pub use crate::operation::operation_with_defaults::_operation_with_defaults_input::OperationWithDefaultsInput;
  829    926   
         927  +
/* RustModule.kt:172 */
  830    928   
mod _operation_with_defaults_input;
  831    929   
         930  +
/* RustModule.kt:172 */
  832    931   
mod _operation_with_defaults_output;
  833    932   
  834         -
/// Builders
         933  +
/// /* CodegenDelegator.kt:51 */Builders
  835    934   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/operation/operation_with_defaults/_operation_with_defaults_input.rs

@@ -1,1 +118,217 @@
    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 OperationWithDefaultsInput {
           8  +
pub /* StructureGenerator.kt:201 */ struct OperationWithDefaultsInput {
           9  +
    /* StructureGenerator.kt:231 */
    6     10   
    #[allow(missing_docs)] // documentation missing in model
    7     11   
    pub defaults: ::std::option::Option<crate::types::Defaults>,
          12  +
    /* StructureGenerator.kt:231 */
    8     13   
    #[allow(missing_docs)] // documentation missing in model
    9     14   
    pub client_optional_defaults: ::std::option::Option<crate::types::ClientOptionalDefaults>,
          15  +
    /* StructureGenerator.kt:231 */
   10     16   
    #[allow(missing_docs)] // documentation missing in model
   11     17   
    pub top_level_default: ::std::option::Option<::std::string::String>,
          18  +
    /* StructureGenerator.kt:231 */
   12     19   
    #[allow(missing_docs)] // documentation missing in model
   13     20   
    pub other_top_level_default: ::std::option::Option<i32>,
          21  +
    /* StructureGenerator.kt:201 */
   14     22   
}
          23  +
/* StructureGenerator.kt:135 */
   15     24   
impl OperationWithDefaultsInput {
          25  +
    /* StructureGenerator.kt:231 */
   16     26   
    #[allow(missing_docs)] // documentation missing in model
          27  +
                           /* StructureGenerator.kt:166 */
   17     28   
    pub fn defaults(&self) -> ::std::option::Option<&crate::types::Defaults> {
          29  +
        /* StructureGenerator.kt:170 */
   18     30   
        self.defaults.as_ref()
          31  +
        /* StructureGenerator.kt:166 */
   19     32   
    }
          33  +
    /* StructureGenerator.kt:231 */
   20     34   
    #[allow(missing_docs)] // documentation missing in model
          35  +
                           /* StructureGenerator.kt:166 */
   21     36   
    pub fn client_optional_defaults(&self) -> ::std::option::Option<&crate::types::ClientOptionalDefaults> {
          37  +
        /* StructureGenerator.kt:170 */
   22     38   
        self.client_optional_defaults.as_ref()
          39  +
        /* StructureGenerator.kt:166 */
   23     40   
    }
          41  +
    /* StructureGenerator.kt:231 */
   24     42   
    #[allow(missing_docs)] // documentation missing in model
          43  +
                           /* StructureGenerator.kt:166 */
   25     44   
    pub fn top_level_default(&self) -> ::std::option::Option<&str> {
          45  +
        /* StructureGenerator.kt:169 */
   26     46   
        self.top_level_default.as_deref()
          47  +
        /* StructureGenerator.kt:166 */
   27     48   
    }
          49  +
    /* StructureGenerator.kt:231 */
   28     50   
    #[allow(missing_docs)] // documentation missing in model
          51  +
                           /* StructureGenerator.kt:166 */
   29     52   
    pub fn other_top_level_default(&self) -> ::std::option::Option<i32> {
          53  +
        /* StructureGenerator.kt:168 */
   30     54   
        self.other_top_level_default
          55  +
        /* StructureGenerator.kt:166 */
   31     56   
    }
          57  +
    /* StructureGenerator.kt:135 */
   32     58   
}
          59  +
/* ClientCodegenVisitor.kt:237 */
   33     60   
impl OperationWithDefaultsInput {
   34         -
    /// Creates a new builder-style object to manufacture [`OperationWithDefaultsInput`](crate::operation::operation_with_defaults::OperationWithDefaultsInput).
          61  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`OperationWithDefaultsInput`](crate::operation::operation_with_defaults::OperationWithDefaultsInput).
          62  +
    /* BuilderGenerator.kt:175 */
   35     63   
    pub fn builder() -> crate::operation::operation_with_defaults::builders::OperationWithDefaultsInputBuilder {
          64  +
        /* BuilderGenerator.kt:176 */
   36     65   
        crate::operation::operation_with_defaults::builders::OperationWithDefaultsInputBuilder::default()
          66  +
        /* BuilderGenerator.kt:175 */
   37     67   
    }
          68  +
    /* ClientCodegenVisitor.kt:237 */
   38     69   
}
   39     70   
   40         -
/// A builder for [`OperationWithDefaultsInput`](crate::operation::operation_with_defaults::OperationWithDefaultsInput).
          71  +
/// /* BuilderGenerator.kt:342 */A builder for [`OperationWithDefaultsInput`](crate::operation::operation_with_defaults::OperationWithDefaultsInput).
          72  +
/* RustType.kt:516 */
   41     73   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          74  +
/* RustType.kt:516 */
   42     75   
#[non_exhaustive]
          76  +
/* BuilderGenerator.kt:345 */
   43     77   
pub struct OperationWithDefaultsInputBuilder {
   44         -
    pub(crate) defaults: ::std::option::Option<crate::types::Defaults>,
   45         -
    pub(crate) client_optional_defaults: ::std::option::Option<crate::types::ClientOptionalDefaults>,
   46         -
    pub(crate) top_level_default: ::std::option::Option<::std::string::String>,
   47         -
    pub(crate) other_top_level_default: ::std::option::Option<i32>,
          78  +
    /* BuilderGenerator.kt:275 */ pub(crate) defaults: ::std::option::Option<crate::types::Defaults>,
          79  +
    /* BuilderGenerator.kt:275 */ pub(crate) client_optional_defaults: ::std::option::Option<crate::types::ClientOptionalDefaults>,
          80  +
    /* BuilderGenerator.kt:275 */ pub(crate) top_level_default: ::std::option::Option<::std::string::String>,
          81  +
    /* BuilderGenerator.kt:275 */ pub(crate) other_top_level_default: ::std::option::Option<i32>,
          82  +
    /* BuilderGenerator.kt:345 */
   48     83   
}
          84  +
/* BuilderGenerator.kt:355 */
   49     85   
impl OperationWithDefaultsInputBuilder {
          86  +
    /* BuilderGenerator.kt:286 */
   50     87   
    #[allow(missing_docs)] // documentation missing in model
          88  +
                           /* BuilderGenerator.kt:291 */
   51     89   
    pub fn defaults(mut self, input: crate::types::Defaults) -> Self {
          90  +
        /* BuilderGenerator.kt:292 */
   52     91   
        self.defaults = ::std::option::Option::Some(input);
          92  +
        /* BuilderGenerator.kt:293 */
   53     93   
        self
          94  +
        /* BuilderGenerator.kt:291 */
   54     95   
    }
          96  +
    /* BuilderGenerator.kt:312 */
   55     97   
    #[allow(missing_docs)] // documentation missing in model
          98  +
                           /* BuilderGenerator.kt:314 */
   56     99   
    pub fn set_defaults(mut self, input: ::std::option::Option<crate::types::Defaults>) -> Self {
         100  +
        /* BuilderGenerator.kt:315 */
   57    101   
        self.defaults = input;
   58    102   
        self
         103  +
        /* BuilderGenerator.kt:314 */
   59    104   
    }
         105  +
    /* BuilderGenerator.kt:334 */
   60    106   
    #[allow(missing_docs)] // documentation missing in model
         107  +
                           /* BuilderGenerator.kt:336 */
   61    108   
    pub fn get_defaults(&self) -> &::std::option::Option<crate::types::Defaults> {
         109  +
        /* BuilderGenerator.kt:337 */
   62    110   
        &self.defaults
         111  +
        /* BuilderGenerator.kt:336 */
   63    112   
    }
         113  +
    /* BuilderGenerator.kt:286 */
   64    114   
    #[allow(missing_docs)] // documentation missing in model
         115  +
                           /* BuilderGenerator.kt:291 */
   65    116   
    pub fn client_optional_defaults(mut self, input: crate::types::ClientOptionalDefaults) -> Self {
         117  +
        /* BuilderGenerator.kt:292 */
   66    118   
        self.client_optional_defaults = ::std::option::Option::Some(input);
         119  +
        /* BuilderGenerator.kt:293 */
   67    120   
        self
         121  +
        /* BuilderGenerator.kt:291 */
   68    122   
    }
         123  +
    /* BuilderGenerator.kt:312 */
   69    124   
    #[allow(missing_docs)] // documentation missing in model
         125  +
                           /* BuilderGenerator.kt:314 */
   70    126   
    pub fn set_client_optional_defaults(mut self, input: ::std::option::Option<crate::types::ClientOptionalDefaults>) -> Self {
         127  +
        /* BuilderGenerator.kt:315 */
   71    128   
        self.client_optional_defaults = input;
   72    129   
        self
         130  +
        /* BuilderGenerator.kt:314 */
   73    131   
    }
         132  +
    /* BuilderGenerator.kt:334 */
   74    133   
    #[allow(missing_docs)] // documentation missing in model
         134  +
                           /* BuilderGenerator.kt:336 */
   75    135   
    pub fn get_client_optional_defaults(&self) -> &::std::option::Option<crate::types::ClientOptionalDefaults> {
         136  +
        /* BuilderGenerator.kt:337 */
   76    137   
        &self.client_optional_defaults
         138  +
        /* BuilderGenerator.kt:336 */
   77    139   
    }
         140  +
    /* BuilderGenerator.kt:286 */
   78    141   
    #[allow(missing_docs)] // documentation missing in model
         142  +
                           /* BuilderGenerator.kt:291 */
   79    143   
    pub fn top_level_default(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         144  +
        /* BuilderGenerator.kt:292 */
   80    145   
        self.top_level_default = ::std::option::Option::Some(input.into());
         146  +
        /* BuilderGenerator.kt:293 */
   81    147   
        self
         148  +
        /* BuilderGenerator.kt:291 */
   82    149   
    }
         150  +
    /* BuilderGenerator.kt:312 */
   83    151   
    #[allow(missing_docs)] // documentation missing in model
         152  +
                           /* BuilderGenerator.kt:314 */
   84    153   
    pub fn set_top_level_default(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         154  +
        /* BuilderGenerator.kt:315 */
   85    155   
        self.top_level_default = input;
   86    156   
        self
         157  +
        /* BuilderGenerator.kt:314 */
   87    158   
    }
         159  +
    /* BuilderGenerator.kt:334 */
   88    160   
    #[allow(missing_docs)] // documentation missing in model
         161  +
                           /* BuilderGenerator.kt:336 */
   89    162   
    pub fn get_top_level_default(&self) -> &::std::option::Option<::std::string::String> {
         163  +
        /* BuilderGenerator.kt:337 */
   90    164   
        &self.top_level_default
         165  +
        /* BuilderGenerator.kt:336 */
   91    166   
    }
         167  +
    /* BuilderGenerator.kt:286 */
   92    168   
    #[allow(missing_docs)] // documentation missing in model
         169  +
                           /* BuilderGenerator.kt:291 */
   93    170   
    pub fn other_top_level_default(mut self, input: i32) -> Self {
         171  +
        /* BuilderGenerator.kt:292 */
   94    172   
        self.other_top_level_default = ::std::option::Option::Some(input);
         173  +
        /* BuilderGenerator.kt:293 */
   95    174   
        self
         175  +
        /* BuilderGenerator.kt:291 */
   96    176   
    }
         177  +
    /* BuilderGenerator.kt:312 */
   97    178   
    #[allow(missing_docs)] // documentation missing in model
         179  +
                           /* BuilderGenerator.kt:314 */
   98    180   
    pub fn set_other_top_level_default(mut self, input: ::std::option::Option<i32>) -> Self {
         181  +
        /* BuilderGenerator.kt:315 */
   99    182   
        self.other_top_level_default = input;
  100    183   
        self
         184  +
        /* BuilderGenerator.kt:314 */
  101    185   
    }
         186  +
    /* BuilderGenerator.kt:334 */
  102    187   
    #[allow(missing_docs)] // documentation missing in model
         188  +
                           /* BuilderGenerator.kt:336 */
  103    189   
    pub fn get_other_top_level_default(&self) -> &::std::option::Option<i32> {
         190  +
        /* BuilderGenerator.kt:337 */
  104    191   
        &self.other_top_level_default
         192  +
        /* BuilderGenerator.kt:336 */
  105    193   
    }
  106         -
    /// Consumes the builder and constructs a [`OperationWithDefaultsInput`](crate::operation::operation_with_defaults::OperationWithDefaultsInput).
         194  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`OperationWithDefaultsInput`](crate::operation::operation_with_defaults::OperationWithDefaultsInput).
         195  +
    /* BuilderGenerator.kt:253 */
  107    196   
    pub fn build(
  108    197   
        self,
  109    198   
    ) -> ::std::result::Result<crate::operation::operation_with_defaults::OperationWithDefaultsInput, ::aws_smithy_types::error::operation::BuildError>
  110    199   
    {
  111         -
        ::std::result::Result::Ok(crate::operation::operation_with_defaults::OperationWithDefaultsInput {
  112         -
            defaults: self.defaults,
  113         -
            client_optional_defaults: self.client_optional_defaults,
  114         -
            top_level_default: self.top_level_default,
  115         -
            other_top_level_default: self.other_top_level_default,
  116         -
        })
  117         -
    }
         200  +
        /* BuilderGenerator.kt:254 */
         201  +
        ::std::result::Result::Ok(
         202  +
            /* BuilderGenerator.kt:477 */
         203  +
            crate::operation::operation_with_defaults::OperationWithDefaultsInput {
         204  +
                /* BuilderGenerator.kt:481 */ defaults: self.defaults,
         205  +
                /* BuilderGenerator.kt:481 */
         206  +
                client_optional_defaults: self.client_optional_defaults,
         207  +
                /* BuilderGenerator.kt:481 */
         208  +
                top_level_default: self.top_level_default,
         209  +
                /* BuilderGenerator.kt:481 */
         210  +
                other_top_level_default: self.other_top_level_default,
         211  +
                /* BuilderGenerator.kt:477 */
         212  +
            }, /* BuilderGenerator.kt:254 */
         213  +
        )
         214  +
        /* BuilderGenerator.kt:253 */
         215  +
    }
         216  +
    /* BuilderGenerator.kt:355 */
  118    217   
}

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/operation/operation_with_defaults/_operation_with_defaults_output.rs

@@ -1,1 +553,1058 @@
    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 OperationWithDefaultsOutput {
    6         -
    #[allow(missing_docs)] // documentation missing in model
           8  +
pub /* StructureGenerator.kt:201 */ struct OperationWithDefaultsOutput {
           9  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
    7     10   
    pub default_string: ::std::string::String,
    8         -
    #[allow(missing_docs)] // documentation missing in model
          11  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
    9     12   
    pub default_boolean: bool,
          13  +
    /* StructureGenerator.kt:231 */
   10     14   
    #[allow(missing_docs)] // documentation missing in model
   11     15   
    pub default_list: ::std::vec::Vec<::std::string::String>,
          16  +
    /* StructureGenerator.kt:231 */
   12     17   
    #[allow(missing_docs)] // documentation missing in model
   13     18   
    pub default_timestamp: ::aws_smithy_types::DateTime,
   14         -
    #[allow(missing_docs)] // documentation missing in model
          19  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   15     20   
    pub default_blob: ::aws_smithy_types::Blob,
   16         -
    #[allow(missing_docs)] // documentation missing in model
          21  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   17     22   
    pub default_byte: i8,
   18         -
    #[allow(missing_docs)] // documentation missing in model
          23  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   19     24   
    pub default_short: i16,
   20         -
    #[allow(missing_docs)] // documentation missing in model
          25  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   21     26   
    pub default_integer: i32,
   22         -
    #[allow(missing_docs)] // documentation missing in model
          27  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   23     28   
    pub default_long: i64,
   24         -
    #[allow(missing_docs)] // documentation missing in model
          29  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   25     30   
    pub default_float: f32,
   26         -
    #[allow(missing_docs)] // documentation missing in model
          31  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   27     32   
    pub default_double: f64,
          33  +
    /* StructureGenerator.kt:231 */
   28     34   
    #[allow(missing_docs)] // documentation missing in model
   29     35   
    pub default_map: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
   30         -
    #[allow(missing_docs)] // documentation missing in model
          36  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   31     37   
    pub default_enum: crate::types::TestEnum,
   32         -
    #[allow(missing_docs)] // documentation missing in model
          38  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   33     39   
    pub default_int_enum: i32,
   34         -
    #[allow(missing_docs)] // documentation missing in model
          40  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   35     41   
    pub empty_string: ::std::string::String,
   36         -
    #[allow(missing_docs)] // documentation missing in model
          42  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   37     43   
    pub false_boolean: bool,
   38         -
    #[allow(missing_docs)] // documentation missing in model
          44  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   39     45   
    pub empty_blob: ::aws_smithy_types::Blob,
   40         -
    #[allow(missing_docs)] // documentation missing in model
          46  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   41     47   
    pub zero_byte: i8,
   42         -
    #[allow(missing_docs)] // documentation missing in model
          48  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   43     49   
    pub zero_short: i16,
   44         -
    #[allow(missing_docs)] // documentation missing in model
          50  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   45     51   
    pub zero_integer: i32,
   46         -
    #[allow(missing_docs)] // documentation missing in model
          52  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   47     53   
    pub zero_long: i64,
   48         -
    #[allow(missing_docs)] // documentation missing in model
          54  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   49     55   
    pub zero_float: f32,
          56  +
    /* StructureGenerator.kt:231 */
   50     57   
    #[allow(missing_docs)] // documentation missing in model
   51     58   
    pub zero_double: f64,
          59  +
    /* StructureGenerator.kt:201 */
   52     60   
}
          61  +
/* StructureGenerator.kt:135 */
   53     62   
impl OperationWithDefaultsOutput {
          63  +
    /* StructureGenerator.kt:231 */
   54     64   
    #[allow(missing_docs)] // documentation missing in model
          65  +
                           /* StructureGenerator.kt:166 */
   55     66   
    pub fn default_string(&self) -> &str {
          67  +
        /* StructureGenerator.kt:171 */
   56     68   
        use std::ops::Deref;
   57     69   
        self.default_string.deref()
          70  +
        /* StructureGenerator.kt:166 */
   58     71   
    }
          72  +
    /* StructureGenerator.kt:231 */
   59     73   
    #[allow(missing_docs)] // documentation missing in model
          74  +
                           /* StructureGenerator.kt:166 */
   60     75   
    pub fn default_boolean(&self) -> bool {
          76  +
        /* StructureGenerator.kt:168 */
   61     77   
        self.default_boolean
          78  +
        /* StructureGenerator.kt:166 */
   62     79   
    }
          80  +
    /* StructureGenerator.kt:231 */
   63     81   
    #[allow(missing_docs)] // documentation missing in model
          82  +
                           /* StructureGenerator.kt:166 */
   64     83   
    pub fn default_list(&self) -> &[::std::string::String] {
          84  +
        /* StructureGenerator.kt:171 */
   65     85   
        use std::ops::Deref;
   66     86   
        self.default_list.deref()
          87  +
        /* StructureGenerator.kt:166 */
   67     88   
    }
          89  +
    /* StructureGenerator.kt:231 */
   68     90   
    #[allow(missing_docs)] // documentation missing in model
          91  +
                           /* StructureGenerator.kt:166 */
   69     92   
    pub fn default_timestamp(&self) -> &::aws_smithy_types::DateTime {
          93  +
        /* StructureGenerator.kt:172 */
   70     94   
        &self.default_timestamp
          95  +
        /* StructureGenerator.kt:166 */
   71     96   
    }
          97  +
    /* StructureGenerator.kt:231 */
   72     98   
    #[allow(missing_docs)] // documentation missing in model
          99  +
                           /* StructureGenerator.kt:166 */
   73    100   
    pub fn default_blob(&self) -> &::aws_smithy_types::Blob {
         101  +
        /* StructureGenerator.kt:172 */
   74    102   
        &self.default_blob
         103  +
        /* StructureGenerator.kt:166 */
   75    104   
    }
         105  +
    /* StructureGenerator.kt:231 */
   76    106   
    #[allow(missing_docs)] // documentation missing in model
         107  +
                           /* StructureGenerator.kt:166 */
   77    108   
    pub fn default_byte(&self) -> i8 {
         109  +
        /* StructureGenerator.kt:168 */
   78    110   
        self.default_byte
         111  +
        /* StructureGenerator.kt:166 */
   79    112   
    }
         113  +
    /* StructureGenerator.kt:231 */
   80    114   
    #[allow(missing_docs)] // documentation missing in model
         115  +
                           /* StructureGenerator.kt:166 */
   81    116   
    pub fn default_short(&self) -> i16 {
         117  +
        /* StructureGenerator.kt:168 */
   82    118   
        self.default_short
         119  +
        /* StructureGenerator.kt:166 */
   83    120   
    }
         121  +
    /* StructureGenerator.kt:231 */
   84    122   
    #[allow(missing_docs)] // documentation missing in model
         123  +
                           /* StructureGenerator.kt:166 */
   85    124   
    pub fn default_integer(&self) -> i32 {
         125  +
        /* StructureGenerator.kt:168 */
   86    126   
        self.default_integer
         127  +
        /* StructureGenerator.kt:166 */
   87    128   
    }
         129  +
    /* StructureGenerator.kt:231 */
   88    130   
    #[allow(missing_docs)] // documentation missing in model
         131  +
                           /* StructureGenerator.kt:166 */
   89    132   
    pub fn default_long(&self) -> i64 {
         133  +
        /* StructureGenerator.kt:168 */
   90    134   
        self.default_long
         135  +
        /* StructureGenerator.kt:166 */
   91    136   
    }
         137  +
    /* StructureGenerator.kt:231 */
   92    138   
    #[allow(missing_docs)] // documentation missing in model
         139  +
                           /* StructureGenerator.kt:166 */
   93    140   
    pub fn default_float(&self) -> f32 {
         141  +
        /* StructureGenerator.kt:168 */
   94    142   
        self.default_float
         143  +
        /* StructureGenerator.kt:166 */
   95    144   
    }
         145  +
    /* StructureGenerator.kt:231 */
   96    146   
    #[allow(missing_docs)] // documentation missing in model
         147  +
                           /* StructureGenerator.kt:166 */
   97    148   
    pub fn default_double(&self) -> f64 {
         149  +
        /* StructureGenerator.kt:168 */
   98    150   
        self.default_double
         151  +
        /* StructureGenerator.kt:166 */
   99    152   
    }
         153  +
    /* StructureGenerator.kt:231 */
  100    154   
    #[allow(missing_docs)] // documentation missing in model
         155  +
                           /* StructureGenerator.kt:166 */
  101    156   
    pub fn default_map(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> {
         157  +
        /* StructureGenerator.kt:172 */
  102    158   
        &self.default_map
         159  +
        /* StructureGenerator.kt:166 */
  103    160   
    }
         161  +
    /* StructureGenerator.kt:231 */
  104    162   
    #[allow(missing_docs)] // documentation missing in model
         163  +
                           /* StructureGenerator.kt:166 */
  105    164   
    pub fn default_enum(&self) -> &crate::types::TestEnum {
         165  +
        /* StructureGenerator.kt:172 */
  106    166   
        &self.default_enum
         167  +
        /* StructureGenerator.kt:166 */
  107    168   
    }
         169  +
    /* StructureGenerator.kt:231 */
  108    170   
    #[allow(missing_docs)] // documentation missing in model
         171  +
                           /* StructureGenerator.kt:166 */
  109    172   
    pub fn default_int_enum(&self) -> i32 {
         173  +
        /* StructureGenerator.kt:168 */
  110    174   
        self.default_int_enum
         175  +
        /* StructureGenerator.kt:166 */
  111    176   
    }
         177  +
    /* StructureGenerator.kt:231 */
  112    178   
    #[allow(missing_docs)] // documentation missing in model
         179  +
                           /* StructureGenerator.kt:166 */
  113    180   
    pub fn empty_string(&self) -> &str {
         181  +
        /* StructureGenerator.kt:171 */
  114    182   
        use std::ops::Deref;
  115    183   
        self.empty_string.deref()
         184  +
        /* StructureGenerator.kt:166 */
  116    185   
    }
         186  +
    /* StructureGenerator.kt:231 */
  117    187   
    #[allow(missing_docs)] // documentation missing in model
         188  +
                           /* StructureGenerator.kt:166 */
  118    189   
    pub fn false_boolean(&self) -> bool {
         190  +
        /* StructureGenerator.kt:168 */
  119    191   
        self.false_boolean
         192  +
        /* StructureGenerator.kt:166 */
  120    193   
    }
         194  +
    /* StructureGenerator.kt:231 */
  121    195   
    #[allow(missing_docs)] // documentation missing in model
         196  +
                           /* StructureGenerator.kt:166 */
  122    197   
    pub fn empty_blob(&self) -> &::aws_smithy_types::Blob {
         198  +
        /* StructureGenerator.kt:172 */
  123    199   
        &self.empty_blob
         200  +
        /* StructureGenerator.kt:166 */
  124    201   
    }
         202  +
    /* StructureGenerator.kt:231 */
  125    203   
    #[allow(missing_docs)] // documentation missing in model
         204  +
                           /* StructureGenerator.kt:166 */
  126    205   
    pub fn zero_byte(&self) -> i8 {
         206  +
        /* StructureGenerator.kt:168 */
  127    207   
        self.zero_byte
         208  +
        /* StructureGenerator.kt:166 */
  128    209   
    }
         210  +
    /* StructureGenerator.kt:231 */
  129    211   
    #[allow(missing_docs)] // documentation missing in model
         212  +
                           /* StructureGenerator.kt:166 */
  130    213   
    pub fn zero_short(&self) -> i16 {
         214  +
        /* StructureGenerator.kt:168 */
  131    215   
        self.zero_short
         216  +
        /* StructureGenerator.kt:166 */
  132    217   
    }
         218  +
    /* StructureGenerator.kt:231 */
  133    219   
    #[allow(missing_docs)] // documentation missing in model
         220  +
                           /* StructureGenerator.kt:166 */
  134    221   
    pub fn zero_integer(&self) -> i32 {
         222  +
        /* StructureGenerator.kt:168 */
  135    223   
        self.zero_integer
         224  +
        /* StructureGenerator.kt:166 */
  136    225   
    }
         226  +
    /* StructureGenerator.kt:231 */
  137    227   
    #[allow(missing_docs)] // documentation missing in model
         228  +
                           /* StructureGenerator.kt:166 */
  138    229   
    pub fn zero_long(&self) -> i64 {
         230  +
        /* StructureGenerator.kt:168 */
  139    231   
        self.zero_long
         232  +
        /* StructureGenerator.kt:166 */
  140    233   
    }
         234  +
    /* StructureGenerator.kt:231 */
  141    235   
    #[allow(missing_docs)] // documentation missing in model
         236  +
                           /* StructureGenerator.kt:166 */
  142    237   
    pub fn zero_float(&self) -> f32 {
         238  +
        /* StructureGenerator.kt:168 */
  143    239   
        self.zero_float
         240  +
        /* StructureGenerator.kt:166 */
  144    241   
    }
         242  +
    /* StructureGenerator.kt:231 */
  145    243   
    #[allow(missing_docs)] // documentation missing in model
         244  +
                           /* StructureGenerator.kt:166 */
  146    245   
    pub fn zero_double(&self) -> f64 {
         246  +
        /* StructureGenerator.kt:168 */
  147    247   
        self.zero_double
         248  +
        /* StructureGenerator.kt:166 */
  148    249   
    }
         250  +
    /* StructureGenerator.kt:135 */
  149    251   
}
         252  +
/* ClientCodegenVisitor.kt:237 */
  150    253   
impl OperationWithDefaultsOutput {
  151         -
    /// Creates a new builder-style object to manufacture [`OperationWithDefaultsOutput`](crate::operation::operation_with_defaults::OperationWithDefaultsOutput).
         254  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`OperationWithDefaultsOutput`](crate::operation::operation_with_defaults::OperationWithDefaultsOutput).
         255  +
    /* BuilderGenerator.kt:175 */
  152    256   
    pub fn builder() -> crate::operation::operation_with_defaults::builders::OperationWithDefaultsOutputBuilder {
         257  +
        /* BuilderGenerator.kt:176 */
  153    258   
        crate::operation::operation_with_defaults::builders::OperationWithDefaultsOutputBuilder::default()
         259  +
        /* BuilderGenerator.kt:175 */
  154    260   
    }
         261  +
    /* ClientCodegenVisitor.kt:237 */
  155    262   
}
  156    263   
  157         -
/// A builder for [`OperationWithDefaultsOutput`](crate::operation::operation_with_defaults::OperationWithDefaultsOutput).
         264  +
/// /* BuilderGenerator.kt:342 */A builder for [`OperationWithDefaultsOutput`](crate::operation::operation_with_defaults::OperationWithDefaultsOutput).
         265  +
/* RustType.kt:516 */
  158    266   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         267  +
/* RustType.kt:516 */
  159    268   
#[non_exhaustive]
         269  +
/* BuilderGenerator.kt:345 */
  160    270   
pub struct OperationWithDefaultsOutputBuilder {
  161         -
    pub(crate) default_string: ::std::option::Option<::std::string::String>,
  162         -
    pub(crate) default_boolean: ::std::option::Option<bool>,
  163         -
    pub(crate) default_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
  164         -
    pub(crate) default_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
  165         -
    pub(crate) default_blob: ::std::option::Option<::aws_smithy_types::Blob>,
  166         -
    pub(crate) default_byte: ::std::option::Option<i8>,
  167         -
    pub(crate) default_short: ::std::option::Option<i16>,
  168         -
    pub(crate) default_integer: ::std::option::Option<i32>,
  169         -
    pub(crate) default_long: ::std::option::Option<i64>,
  170         -
    pub(crate) default_float: ::std::option::Option<f32>,
  171         -
    pub(crate) default_double: ::std::option::Option<f64>,
         271  +
    /* BuilderGenerator.kt:275 */ pub(crate) default_string: ::std::option::Option<::std::string::String>,
         272  +
    /* BuilderGenerator.kt:275 */ pub(crate) default_boolean: ::std::option::Option<bool>,
         273  +
    /* BuilderGenerator.kt:275 */ pub(crate) default_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
         274  +
    /* BuilderGenerator.kt:275 */ pub(crate) default_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
         275  +
    /* BuilderGenerator.kt:275 */ pub(crate) default_blob: ::std::option::Option<::aws_smithy_types::Blob>,
         276  +
    /* BuilderGenerator.kt:275 */ pub(crate) default_byte: ::std::option::Option<i8>,
         277  +
    /* BuilderGenerator.kt:275 */ pub(crate) default_short: ::std::option::Option<i16>,
         278  +
    /* BuilderGenerator.kt:275 */ pub(crate) default_integer: ::std::option::Option<i32>,
         279  +
    /* BuilderGenerator.kt:275 */ pub(crate) default_long: ::std::option::Option<i64>,
         280  +
    /* BuilderGenerator.kt:275 */ pub(crate) default_float: ::std::option::Option<f32>,
         281  +
    /* BuilderGenerator.kt:275 */ pub(crate) default_double: ::std::option::Option<f64>,
         282  +
    /* BuilderGenerator.kt:275 */
  172    283   
    pub(crate) default_map: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
  173         -
    pub(crate) default_enum: ::std::option::Option<crate::types::TestEnum>,
  174         -
    pub(crate) default_int_enum: ::std::option::Option<i32>,
  175         -
    pub(crate) empty_string: ::std::option::Option<::std::string::String>,
  176         -
    pub(crate) false_boolean: ::std::option::Option<bool>,
  177         -
    pub(crate) empty_blob: ::std::option::Option<::aws_smithy_types::Blob>,
  178         -
    pub(crate) zero_byte: ::std::option::Option<i8>,
  179         -
    pub(crate) zero_short: ::std::option::Option<i16>,
  180         -
    pub(crate) zero_integer: ::std::option::Option<i32>,
  181         -
    pub(crate) zero_long: ::std::option::Option<i64>,
  182         -
    pub(crate) zero_float: ::std::option::Option<f32>,
  183         -
    pub(crate) zero_double: ::std::option::Option<f64>,
         284  +
    /* BuilderGenerator.kt:275 */ pub(crate) default_enum: ::std::option::Option<crate::types::TestEnum>,
         285  +
    /* BuilderGenerator.kt:275 */ pub(crate) default_int_enum: ::std::option::Option<i32>,
         286  +
    /* BuilderGenerator.kt:275 */ pub(crate) empty_string: ::std::option::Option<::std::string::String>,
         287  +
    /* BuilderGenerator.kt:275 */ pub(crate) false_boolean: ::std::option::Option<bool>,
         288  +
    /* BuilderGenerator.kt:275 */ pub(crate) empty_blob: ::std::option::Option<::aws_smithy_types::Blob>,
         289  +
    /* BuilderGenerator.kt:275 */ pub(crate) zero_byte: ::std::option::Option<i8>,
         290  +
    /* BuilderGenerator.kt:275 */ pub(crate) zero_short: ::std::option::Option<i16>,
         291  +
    /* BuilderGenerator.kt:275 */ pub(crate) zero_integer: ::std::option::Option<i32>,
         292  +
    /* BuilderGenerator.kt:275 */ pub(crate) zero_long: ::std::option::Option<i64>,
         293  +
    /* BuilderGenerator.kt:275 */ pub(crate) zero_float: ::std::option::Option<f32>,
         294  +
    /* BuilderGenerator.kt:275 */ pub(crate) zero_double: ::std::option::Option<f64>,
         295  +
    /* BuilderGenerator.kt:345 */
  184    296   
}
         297  +
/* BuilderGenerator.kt:355 */
  185    298   
impl OperationWithDefaultsOutputBuilder {
         299  +
    /* BuilderGenerator.kt:286 */
  186    300   
    #[allow(missing_docs)] // documentation missing in model
         301  +
                           /* BuilderGenerator.kt:291 */
  187    302   
    pub fn default_string(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         303  +
        /* BuilderGenerator.kt:292 */
  188    304   
        self.default_string = ::std::option::Option::Some(input.into());
         305  +
        /* BuilderGenerator.kt:293 */
  189    306   
        self
         307  +
        /* BuilderGenerator.kt:291 */
  190    308   
    }
         309  +
    /* BuilderGenerator.kt:312 */
  191    310   
    #[allow(missing_docs)] // documentation missing in model
         311  +
                           /* BuilderGenerator.kt:314 */
  192    312   
    pub fn set_default_string(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         313  +
        /* BuilderGenerator.kt:315 */
  193    314   
        self.default_string = input;
  194    315   
        self
         316  +
        /* BuilderGenerator.kt:314 */
  195    317   
    }
         318  +
    /* BuilderGenerator.kt:334 */
  196    319   
    #[allow(missing_docs)] // documentation missing in model
         320  +
                           /* BuilderGenerator.kt:336 */
  197    321   
    pub fn get_default_string(&self) -> &::std::option::Option<::std::string::String> {
         322  +
        /* BuilderGenerator.kt:337 */
  198    323   
        &self.default_string
         324  +
        /* BuilderGenerator.kt:336 */
  199    325   
    }
         326  +
    /* BuilderGenerator.kt:286 */
  200    327   
    #[allow(missing_docs)] // documentation missing in model
         328  +
                           /* BuilderGenerator.kt:291 */
  201    329   
    pub fn default_boolean(mut self, input: bool) -> Self {
         330  +
        /* BuilderGenerator.kt:292 */
  202    331   
        self.default_boolean = ::std::option::Option::Some(input);
         332  +
        /* BuilderGenerator.kt:293 */
  203    333   
        self
         334  +
        /* BuilderGenerator.kt:291 */
  204    335   
    }
         336  +
    /* BuilderGenerator.kt:312 */
  205    337   
    #[allow(missing_docs)] // documentation missing in model
         338  +
                           /* BuilderGenerator.kt:314 */
  206    339   
    pub fn set_default_boolean(mut self, input: ::std::option::Option<bool>) -> Self {
         340  +
        /* BuilderGenerator.kt:315 */
  207    341   
        self.default_boolean = input;
  208    342   
        self
         343  +
        /* BuilderGenerator.kt:314 */
  209    344   
    }
         345  +
    /* BuilderGenerator.kt:334 */
  210    346   
    #[allow(missing_docs)] // documentation missing in model
         347  +
                           /* BuilderGenerator.kt:336 */
  211    348   
    pub fn get_default_boolean(&self) -> &::std::option::Option<bool> {
         349  +
        /* BuilderGenerator.kt:337 */
  212    350   
        &self.default_boolean
         351  +
        /* BuilderGenerator.kt:336 */
  213    352   
    }
  214         -
    /// Appends an item to `default_list`.
         353  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `default_list`.
         354  +
    /* BuilderGenerator.kt:411 */
  215    355   
    ///
  216         -
    /// To override the contents of this collection use [`set_default_list`](Self::set_default_list).
         356  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_default_list`](Self::set_default_list).
         357  +
    /* BuilderGenerator.kt:413 */
  217    358   
    ///
         359  +
    /* BuilderGenerator.kt:418 */
  218    360   
    pub fn default_list(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         361  +
        /* BuilderGenerator.kt:419 */
  219    362   
        let mut v = self.default_list.unwrap_or_default();
  220    363   
        v.push(input.into());
  221    364   
        self.default_list = ::std::option::Option::Some(v);
  222    365   
        self
         366  +
        /* BuilderGenerator.kt:418 */
  223    367   
    }
         368  +
    /* BuilderGenerator.kt:312 */
  224    369   
    #[allow(missing_docs)] // documentation missing in model
         370  +
                           /* BuilderGenerator.kt:314 */
  225    371   
    pub fn set_default_list(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
         372  +
        /* BuilderGenerator.kt:315 */
  226    373   
        self.default_list = input;
  227    374   
        self
         375  +
        /* BuilderGenerator.kt:314 */
  228    376   
    }
         377  +
    /* BuilderGenerator.kt:334 */
  229    378   
    #[allow(missing_docs)] // documentation missing in model
         379  +
                           /* BuilderGenerator.kt:336 */
  230    380   
    pub fn get_default_list(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
         381  +
        /* BuilderGenerator.kt:337 */
  231    382   
        &self.default_list
         383  +
        /* BuilderGenerator.kt:336 */
  232    384   
    }
         385  +
    /* BuilderGenerator.kt:286 */
  233    386   
    #[allow(missing_docs)] // documentation missing in model
         387  +
                           /* BuilderGenerator.kt:291 */
  234    388   
    pub fn default_timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
         389  +
        /* BuilderGenerator.kt:292 */
  235    390   
        self.default_timestamp = ::std::option::Option::Some(input);
         391  +
        /* BuilderGenerator.kt:293 */
  236    392   
        self
         393  +
        /* BuilderGenerator.kt:291 */
  237    394   
    }
         395  +
    /* BuilderGenerator.kt:312 */
  238    396   
    #[allow(missing_docs)] // documentation missing in model
         397  +
                           /* BuilderGenerator.kt:314 */
  239    398   
    pub fn set_default_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
         399  +
        /* BuilderGenerator.kt:315 */
  240    400   
        self.default_timestamp = input;
  241    401   
        self
         402  +
        /* BuilderGenerator.kt:314 */
  242    403   
    }
         404  +
    /* BuilderGenerator.kt:334 */
  243    405   
    #[allow(missing_docs)] // documentation missing in model
         406  +
                           /* BuilderGenerator.kt:336 */
  244    407   
    pub fn get_default_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
         408  +
        /* BuilderGenerator.kt:337 */
  245    409   
        &self.default_timestamp
         410  +
        /* BuilderGenerator.kt:336 */
  246    411   
    }
         412  +
    /* BuilderGenerator.kt:286 */
  247    413   
    #[allow(missing_docs)] // documentation missing in model
         414  +
                           /* BuilderGenerator.kt:291 */
  248    415   
    pub fn default_blob(mut self, input: ::aws_smithy_types::Blob) -> Self {
         416  +
        /* BuilderGenerator.kt:292 */
  249    417   
        self.default_blob = ::std::option::Option::Some(input);
         418  +
        /* BuilderGenerator.kt:293 */
  250    419   
        self
         420  +
        /* BuilderGenerator.kt:291 */
  251    421   
    }
         422  +
    /* BuilderGenerator.kt:312 */
  252    423   
    #[allow(missing_docs)] // documentation missing in model
         424  +
                           /* BuilderGenerator.kt:314 */
  253    425   
    pub fn set_default_blob(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
         426  +
        /* BuilderGenerator.kt:315 */
  254    427   
        self.default_blob = input;
  255    428   
        self
         429  +
        /* BuilderGenerator.kt:314 */
  256    430   
    }
         431  +
    /* BuilderGenerator.kt:334 */
  257    432   
    #[allow(missing_docs)] // documentation missing in model
         433  +
                           /* BuilderGenerator.kt:336 */
  258    434   
    pub fn get_default_blob(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
         435  +
        /* BuilderGenerator.kt:337 */
  259    436   
        &self.default_blob
         437  +
        /* BuilderGenerator.kt:336 */
  260    438   
    }
         439  +
    /* BuilderGenerator.kt:286 */
  261    440   
    #[allow(missing_docs)] // documentation missing in model
         441  +
                           /* BuilderGenerator.kt:291 */
  262    442   
    pub fn default_byte(mut self, input: i8) -> Self {
         443  +
        /* BuilderGenerator.kt:292 */
  263    444   
        self.default_byte = ::std::option::Option::Some(input);
         445  +
        /* BuilderGenerator.kt:293 */
  264    446   
        self
         447  +
        /* BuilderGenerator.kt:291 */
  265    448   
    }
         449  +
    /* BuilderGenerator.kt:312 */
  266    450   
    #[allow(missing_docs)] // documentation missing in model
         451  +
                           /* BuilderGenerator.kt:314 */
  267    452   
    pub fn set_default_byte(mut self, input: ::std::option::Option<i8>) -> Self {
         453  +
        /* BuilderGenerator.kt:315 */
  268    454   
        self.default_byte = input;
  269    455   
        self
         456  +
        /* BuilderGenerator.kt:314 */
  270    457   
    }
         458  +
    /* BuilderGenerator.kt:334 */
  271    459   
    #[allow(missing_docs)] // documentation missing in model
         460  +
                           /* BuilderGenerator.kt:336 */
  272    461   
    pub fn get_default_byte(&self) -> &::std::option::Option<i8> {
         462  +
        /* BuilderGenerator.kt:337 */
  273    463   
        &self.default_byte
         464  +
        /* BuilderGenerator.kt:336 */
  274    465   
    }
         466  +
    /* BuilderGenerator.kt:286 */
  275    467   
    #[allow(missing_docs)] // documentation missing in model
         468  +
                           /* BuilderGenerator.kt:291 */
  276    469   
    pub fn default_short(mut self, input: i16) -> Self {
         470  +
        /* BuilderGenerator.kt:292 */
  277    471   
        self.default_short = ::std::option::Option::Some(input);
         472  +
        /* BuilderGenerator.kt:293 */
  278    473   
        self
         474  +
        /* BuilderGenerator.kt:291 */
  279    475   
    }
         476  +
    /* BuilderGenerator.kt:312 */
  280    477   
    #[allow(missing_docs)] // documentation missing in model
         478  +
                           /* BuilderGenerator.kt:314 */
  281    479   
    pub fn set_default_short(mut self, input: ::std::option::Option<i16>) -> Self {
         480  +
        /* BuilderGenerator.kt:315 */
  282    481   
        self.default_short = input;
  283    482   
        self
         483  +
        /* BuilderGenerator.kt:314 */
  284    484   
    }
         485  +
    /* BuilderGenerator.kt:334 */
  285    486   
    #[allow(missing_docs)] // documentation missing in model
         487  +
                           /* BuilderGenerator.kt:336 */
  286    488   
    pub fn get_default_short(&self) -> &::std::option::Option<i16> {
         489  +
        /* BuilderGenerator.kt:337 */
  287    490   
        &self.default_short
         491  +
        /* BuilderGenerator.kt:336 */
  288    492   
    }
         493  +
    /* BuilderGenerator.kt:286 */
  289    494   
    #[allow(missing_docs)] // documentation missing in model
         495  +
                           /* BuilderGenerator.kt:291 */
  290    496   
    pub fn default_integer(mut self, input: i32) -> Self {
         497  +
        /* BuilderGenerator.kt:292 */
  291    498   
        self.default_integer = ::std::option::Option::Some(input);
         499  +
        /* BuilderGenerator.kt:293 */
  292    500   
        self
         501  +
        /* BuilderGenerator.kt:291 */
  293    502   
    }
         503  +
    /* BuilderGenerator.kt:312 */
  294    504   
    #[allow(missing_docs)] // documentation missing in model
         505  +
                           /* BuilderGenerator.kt:314 */
  295    506   
    pub fn set_default_integer(mut self, input: ::std::option::Option<i32>) -> Self {
         507  +
        /* BuilderGenerator.kt:315 */
  296    508   
        self.default_integer = input;
  297    509   
        self
         510  +
        /* BuilderGenerator.kt:314 */
  298    511   
    }
         512  +
    /* BuilderGenerator.kt:334 */
  299    513   
    #[allow(missing_docs)] // documentation missing in model
         514  +
                           /* BuilderGenerator.kt:336 */
  300    515   
    pub fn get_default_integer(&self) -> &::std::option::Option<i32> {
         516  +
        /* BuilderGenerator.kt:337 */
  301    517   
        &self.default_integer
         518  +
        /* BuilderGenerator.kt:336 */
  302    519   
    }
         520  +
    /* BuilderGenerator.kt:286 */
  303    521   
    #[allow(missing_docs)] // documentation missing in model
         522  +
                           /* BuilderGenerator.kt:291 */
  304    523   
    pub fn default_long(mut self, input: i64) -> Self {
         524  +
        /* BuilderGenerator.kt:292 */
  305    525   
        self.default_long = ::std::option::Option::Some(input);
         526  +
        /* BuilderGenerator.kt:293 */
  306    527   
        self
         528  +
        /* BuilderGenerator.kt:291 */
  307    529   
    }
         530  +
    /* BuilderGenerator.kt:312 */
  308    531   
    #[allow(missing_docs)] // documentation missing in model
         532  +
                           /* BuilderGenerator.kt:314 */
  309    533   
    pub fn set_default_long(mut self, input: ::std::option::Option<i64>) -> Self {
         534  +
        /* BuilderGenerator.kt:315 */
  310    535   
        self.default_long = input;
  311    536   
        self
         537  +
        /* BuilderGenerator.kt:314 */
  312    538   
    }
         539  +
    /* BuilderGenerator.kt:334 */
  313    540   
    #[allow(missing_docs)] // documentation missing in model
         541  +
                           /* BuilderGenerator.kt:336 */
  314    542   
    pub fn get_default_long(&self) -> &::std::option::Option<i64> {
         543  +
        /* BuilderGenerator.kt:337 */
  315    544   
        &self.default_long
         545  +
        /* BuilderGenerator.kt:336 */
  316    546   
    }
         547  +
    /* BuilderGenerator.kt:286 */
  317    548   
    #[allow(missing_docs)] // documentation missing in model
         549  +
                           /* BuilderGenerator.kt:291 */
  318    550   
    pub fn default_float(mut self, input: f32) -> Self {
         551  +
        /* BuilderGenerator.kt:292 */
  319    552   
        self.default_float = ::std::option::Option::Some(input);
         553  +
        /* BuilderGenerator.kt:293 */
  320    554   
        self
         555  +
        /* BuilderGenerator.kt:291 */
  321    556   
    }
         557  +
    /* BuilderGenerator.kt:312 */
  322    558   
    #[allow(missing_docs)] // documentation missing in model
         559  +
                           /* BuilderGenerator.kt:314 */
  323    560   
    pub fn set_default_float(mut self, input: ::std::option::Option<f32>) -> Self {
         561  +
        /* BuilderGenerator.kt:315 */
  324    562   
        self.default_float = input;
  325    563   
        self
         564  +
        /* BuilderGenerator.kt:314 */
  326    565   
    }
         566  +
    /* BuilderGenerator.kt:334 */
  327    567   
    #[allow(missing_docs)] // documentation missing in model
         568  +
                           /* BuilderGenerator.kt:336 */
  328    569   
    pub fn get_default_float(&self) -> &::std::option::Option<f32> {
         570  +
        /* BuilderGenerator.kt:337 */
  329    571   
        &self.default_float
         572  +
        /* BuilderGenerator.kt:336 */
  330    573   
    }
         574  +
    /* BuilderGenerator.kt:286 */
  331    575   
    #[allow(missing_docs)] // documentation missing in model
         576  +
                           /* BuilderGenerator.kt:291 */
  332    577   
    pub fn default_double(mut self, input: f64) -> Self {
         578  +
        /* BuilderGenerator.kt:292 */
  333    579   
        self.default_double = ::std::option::Option::Some(input);
         580  +
        /* BuilderGenerator.kt:293 */
  334    581   
        self
         582  +
        /* BuilderGenerator.kt:291 */
  335    583   
    }
         584  +
    /* BuilderGenerator.kt:312 */
  336    585   
    #[allow(missing_docs)] // documentation missing in model
         586  +
                           /* BuilderGenerator.kt:314 */
  337    587   
    pub fn set_default_double(mut self, input: ::std::option::Option<f64>) -> Self {
         588  +
        /* BuilderGenerator.kt:315 */
  338    589   
        self.default_double = input;
  339    590   
        self
         591  +
        /* BuilderGenerator.kt:314 */
  340    592   
    }
         593  +
    /* BuilderGenerator.kt:334 */
  341    594   
    #[allow(missing_docs)] // documentation missing in model
         595  +
                           /* BuilderGenerator.kt:336 */
  342    596   
    pub fn get_default_double(&self) -> &::std::option::Option<f64> {
         597  +
        /* BuilderGenerator.kt:337 */
  343    598   
        &self.default_double
         599  +
        /* BuilderGenerator.kt:336 */
  344    600   
    }
  345         -
    /// Adds a key-value pair to `default_map`.
         601  +
    /// /* BuilderGenerator.kt:436 */Adds a key-value pair to `default_map`.
         602  +
    /* BuilderGenerator.kt:437 */
  346    603   
    ///
  347         -
    /// To override the contents of this collection use [`set_default_map`](Self::set_default_map).
         604  +
    /// /* BuilderGenerator.kt:438 */To override the contents of this collection use [`set_default_map`](Self::set_default_map).
         605  +
    /* BuilderGenerator.kt:439 */
  348    606   
    ///
         607  +
    /* BuilderGenerator.kt:445 */
  349    608   
    pub fn default_map(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
         609  +
        /* BuilderGenerator.kt:448 */
  350    610   
        let mut hash_map = self.default_map.unwrap_or_default();
  351    611   
        hash_map.insert(k.into(), v.into());
  352    612   
        self.default_map = ::std::option::Option::Some(hash_map);
  353    613   
        self
         614  +
        /* BuilderGenerator.kt:445 */
  354    615   
    }
         616  +
    /* BuilderGenerator.kt:312 */
  355    617   
    #[allow(missing_docs)] // documentation missing in model
         618  +
                           /* BuilderGenerator.kt:314 */
  356    619   
    pub fn set_default_map(
  357    620   
        mut self,
  358    621   
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
  359    622   
    ) -> Self {
         623  +
        /* BuilderGenerator.kt:315 */
  360    624   
        self.default_map = input;
  361    625   
        self
         626  +
        /* BuilderGenerator.kt:314 */
  362    627   
    }
         628  +
    /* BuilderGenerator.kt:334 */
  363    629   
    #[allow(missing_docs)] // documentation missing in model
         630  +
                           /* BuilderGenerator.kt:336 */
  364    631   
    pub fn get_default_map(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
         632  +
        /* BuilderGenerator.kt:337 */
  365    633   
        &self.default_map
         634  +
        /* BuilderGenerator.kt:336 */
  366    635   
    }
         636  +
    /* BuilderGenerator.kt:286 */
  367    637   
    #[allow(missing_docs)] // documentation missing in model
         638  +
                           /* BuilderGenerator.kt:291 */
  368    639   
    pub fn default_enum(mut self, input: crate::types::TestEnum) -> Self {
         640  +
        /* BuilderGenerator.kt:292 */
  369    641   
        self.default_enum = ::std::option::Option::Some(input);
         642  +
        /* BuilderGenerator.kt:293 */
  370    643   
        self
         644  +
        /* BuilderGenerator.kt:291 */
  371    645   
    }
         646  +
    /* BuilderGenerator.kt:312 */
  372    647   
    #[allow(missing_docs)] // documentation missing in model
         648  +
                           /* BuilderGenerator.kt:314 */
  373    649   
    pub fn set_default_enum(mut self, input: ::std::option::Option<crate::types::TestEnum>) -> Self {
         650  +
        /* BuilderGenerator.kt:315 */
  374    651   
        self.default_enum = input;
  375    652   
        self
         653  +
        /* BuilderGenerator.kt:314 */
  376    654   
    }
         655  +
    /* BuilderGenerator.kt:334 */
  377    656   
    #[allow(missing_docs)] // documentation missing in model
         657  +
                           /* BuilderGenerator.kt:336 */
  378    658   
    pub fn get_default_enum(&self) -> &::std::option::Option<crate::types::TestEnum> {
         659  +
        /* BuilderGenerator.kt:337 */
  379    660   
        &self.default_enum
         661  +
        /* BuilderGenerator.kt:336 */
  380    662   
    }
         663  +
    /* BuilderGenerator.kt:286 */
  381    664   
    #[allow(missing_docs)] // documentation missing in model
         665  +
                           /* BuilderGenerator.kt:291 */
  382    666   
    pub fn default_int_enum(mut self, input: i32) -> Self {
         667  +
        /* BuilderGenerator.kt:292 */
  383    668   
        self.default_int_enum = ::std::option::Option::Some(input);
         669  +
        /* BuilderGenerator.kt:293 */
  384    670   
        self
         671  +
        /* BuilderGenerator.kt:291 */
  385    672   
    }
         673  +
    /* BuilderGenerator.kt:312 */
  386    674   
    #[allow(missing_docs)] // documentation missing in model
         675  +
                           /* BuilderGenerator.kt:314 */
  387    676   
    pub fn set_default_int_enum(mut self, input: ::std::option::Option<i32>) -> Self {
         677  +
        /* BuilderGenerator.kt:315 */
  388    678   
        self.default_int_enum = input;
  389    679   
        self
         680  +
        /* BuilderGenerator.kt:314 */
  390    681   
    }
         682  +
    /* BuilderGenerator.kt:334 */
  391    683   
    #[allow(missing_docs)] // documentation missing in model
         684  +
                           /* BuilderGenerator.kt:336 */
  392    685   
    pub fn get_default_int_enum(&self) -> &::std::option::Option<i32> {
         686  +
        /* BuilderGenerator.kt:337 */
  393    687   
        &self.default_int_enum
         688  +
        /* BuilderGenerator.kt:336 */
  394    689   
    }
         690  +
    /* BuilderGenerator.kt:286 */
  395    691   
    #[allow(missing_docs)] // documentation missing in model
         692  +
                           /* BuilderGenerator.kt:291 */
  396    693   
    pub fn empty_string(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         694  +
        /* BuilderGenerator.kt:292 */
  397    695   
        self.empty_string = ::std::option::Option::Some(input.into());
         696  +
        /* BuilderGenerator.kt:293 */
  398    697   
        self
         698  +
        /* BuilderGenerator.kt:291 */
  399    699   
    }
         700  +
    /* BuilderGenerator.kt:312 */
  400    701   
    #[allow(missing_docs)] // documentation missing in model
         702  +
                           /* BuilderGenerator.kt:314 */
  401    703   
    pub fn set_empty_string(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         704  +
        /* BuilderGenerator.kt:315 */
  402    705   
        self.empty_string = input;
  403    706   
        self
         707  +
        /* BuilderGenerator.kt:314 */
  404    708   
    }
         709  +
    /* BuilderGenerator.kt:334 */
  405    710   
    #[allow(missing_docs)] // documentation missing in model
         711  +
                           /* BuilderGenerator.kt:336 */
  406    712   
    pub fn get_empty_string(&self) -> &::std::option::Option<::std::string::String> {
         713  +
        /* BuilderGenerator.kt:337 */
  407    714   
        &self.empty_string
         715  +
        /* BuilderGenerator.kt:336 */
  408    716   
    }
         717  +
    /* BuilderGenerator.kt:286 */
  409    718   
    #[allow(missing_docs)] // documentation missing in model
         719  +
                           /* BuilderGenerator.kt:291 */
  410    720   
    pub fn false_boolean(mut self, input: bool) -> Self {
         721  +
        /* BuilderGenerator.kt:292 */
  411    722   
        self.false_boolean = ::std::option::Option::Some(input);
         723  +
        /* BuilderGenerator.kt:293 */
  412    724   
        self
         725  +
        /* BuilderGenerator.kt:291 */
  413    726   
    }
         727  +
    /* BuilderGenerator.kt:312 */
  414    728   
    #[allow(missing_docs)] // documentation missing in model
         729  +
                           /* BuilderGenerator.kt:314 */
  415    730   
    pub fn set_false_boolean(mut self, input: ::std::option::Option<bool>) -> Self {
         731  +
        /* BuilderGenerator.kt:315 */
  416    732   
        self.false_boolean = input;
  417    733   
        self
         734  +
        /* BuilderGenerator.kt:314 */
  418    735   
    }
         736  +
    /* BuilderGenerator.kt:334 */
  419    737   
    #[allow(missing_docs)] // documentation missing in model
         738  +
                           /* BuilderGenerator.kt:336 */
  420    739   
    pub fn get_false_boolean(&self) -> &::std::option::Option<bool> {
         740  +
        /* BuilderGenerator.kt:337 */
  421    741   
        &self.false_boolean
         742  +
        /* BuilderGenerator.kt:336 */
  422    743   
    }
         744  +
    /* BuilderGenerator.kt:286 */
  423    745   
    #[allow(missing_docs)] // documentation missing in model
         746  +
                           /* BuilderGenerator.kt:291 */
  424    747   
    pub fn empty_blob(mut self, input: ::aws_smithy_types::Blob) -> Self {
         748  +
        /* BuilderGenerator.kt:292 */
  425    749   
        self.empty_blob = ::std::option::Option::Some(input);
         750  +
        /* BuilderGenerator.kt:293 */
  426    751   
        self
         752  +
        /* BuilderGenerator.kt:291 */
  427    753   
    }
         754  +
    /* BuilderGenerator.kt:312 */
  428    755   
    #[allow(missing_docs)] // documentation missing in model
         756  +
                           /* BuilderGenerator.kt:314 */
  429    757   
    pub fn set_empty_blob(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
         758  +
        /* BuilderGenerator.kt:315 */
  430    759   
        self.empty_blob = input;
  431    760   
        self
         761  +
        /* BuilderGenerator.kt:314 */
  432    762   
    }
         763  +
    /* BuilderGenerator.kt:334 */
  433    764   
    #[allow(missing_docs)] // documentation missing in model
         765  +
                           /* BuilderGenerator.kt:336 */
  434    766   
    pub fn get_empty_blob(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
         767  +
        /* BuilderGenerator.kt:337 */
  435    768   
        &self.empty_blob
         769  +
        /* BuilderGenerator.kt:336 */
  436    770   
    }
         771  +
    /* BuilderGenerator.kt:286 */
  437    772   
    #[allow(missing_docs)] // documentation missing in model
         773  +
                           /* BuilderGenerator.kt:291 */
  438    774   
    pub fn zero_byte(mut self, input: i8) -> Self {
         775  +
        /* BuilderGenerator.kt:292 */
  439    776   
        self.zero_byte = ::std::option::Option::Some(input);
         777  +
        /* BuilderGenerator.kt:293 */
  440    778   
        self
         779  +
        /* BuilderGenerator.kt:291 */
  441    780   
    }
         781  +
    /* BuilderGenerator.kt:312 */
  442    782   
    #[allow(missing_docs)] // documentation missing in model
         783  +
                           /* BuilderGenerator.kt:314 */
  443    784   
    pub fn set_zero_byte(mut self, input: ::std::option::Option<i8>) -> Self {
         785  +
        /* BuilderGenerator.kt:315 */
  444    786   
        self.zero_byte = input;
  445    787   
        self
         788  +
        /* BuilderGenerator.kt:314 */
  446    789   
    }
         790  +
    /* BuilderGenerator.kt:334 */
  447    791   
    #[allow(missing_docs)] // documentation missing in model
         792  +
                           /* BuilderGenerator.kt:336 */
  448    793   
    pub fn get_zero_byte(&self) -> &::std::option::Option<i8> {
         794  +
        /* BuilderGenerator.kt:337 */
  449    795   
        &self.zero_byte
         796  +
        /* BuilderGenerator.kt:336 */
  450    797   
    }
         798  +
    /* BuilderGenerator.kt:286 */
  451    799   
    #[allow(missing_docs)] // documentation missing in model
         800  +
                           /* BuilderGenerator.kt:291 */
  452    801   
    pub fn zero_short(mut self, input: i16) -> Self {
         802  +
        /* BuilderGenerator.kt:292 */
  453    803   
        self.zero_short = ::std::option::Option::Some(input);
         804  +
        /* BuilderGenerator.kt:293 */
  454    805   
        self
         806  +
        /* BuilderGenerator.kt:291 */
  455    807   
    }
         808  +
    /* BuilderGenerator.kt:312 */
  456    809   
    #[allow(missing_docs)] // documentation missing in model
         810  +
                           /* BuilderGenerator.kt:314 */
  457    811   
    pub fn set_zero_short(mut self, input: ::std::option::Option<i16>) -> Self {
         812  +
        /* BuilderGenerator.kt:315 */
  458    813   
        self.zero_short = input;
  459    814   
        self
         815  +
        /* BuilderGenerator.kt:314 */
  460    816   
    }
         817  +
    /* BuilderGenerator.kt:334 */
  461    818   
    #[allow(missing_docs)] // documentation missing in model
         819  +
                           /* BuilderGenerator.kt:336 */
  462    820   
    pub fn get_zero_short(&self) -> &::std::option::Option<i16> {
         821  +
        /* BuilderGenerator.kt:337 */
  463    822   
        &self.zero_short
         823  +
        /* BuilderGenerator.kt:336 */
  464    824   
    }
         825  +
    /* BuilderGenerator.kt:286 */
  465    826   
    #[allow(missing_docs)] // documentation missing in model
         827  +
                           /* BuilderGenerator.kt:291 */
  466    828   
    pub fn zero_integer(mut self, input: i32) -> Self {
         829  +
        /* BuilderGenerator.kt:292 */
  467    830   
        self.zero_integer = ::std::option::Option::Some(input);
         831  +
        /* BuilderGenerator.kt:293 */
  468    832   
        self
         833  +
        /* BuilderGenerator.kt:291 */
  469    834   
    }
         835  +
    /* BuilderGenerator.kt:312 */
  470    836   
    #[allow(missing_docs)] // documentation missing in model
         837  +
                           /* BuilderGenerator.kt:314 */
  471    838   
    pub fn set_zero_integer(mut self, input: ::std::option::Option<i32>) -> Self {
         839  +
        /* BuilderGenerator.kt:315 */
  472    840   
        self.zero_integer = input;
  473    841   
        self
         842  +
        /* BuilderGenerator.kt:314 */
  474    843   
    }
         844  +
    /* BuilderGenerator.kt:334 */
  475    845   
    #[allow(missing_docs)] // documentation missing in model
         846  +
                           /* BuilderGenerator.kt:336 */
  476    847   
    pub fn get_zero_integer(&self) -> &::std::option::Option<i32> {
         848  +
        /* BuilderGenerator.kt:337 */
  477    849   
        &self.zero_integer
         850  +
        /* BuilderGenerator.kt:336 */
  478    851   
    }
         852  +
    /* BuilderGenerator.kt:286 */
  479    853   
    #[allow(missing_docs)] // documentation missing in model
         854  +
                           /* BuilderGenerator.kt:291 */
  480    855   
    pub fn zero_long(mut self, input: i64) -> Self {
         856  +
        /* BuilderGenerator.kt:292 */
  481    857   
        self.zero_long = ::std::option::Option::Some(input);
         858  +
        /* BuilderGenerator.kt:293 */
  482    859   
        self
         860  +
        /* BuilderGenerator.kt:291 */
  483    861   
    }
         862  +
    /* BuilderGenerator.kt:312 */
  484    863   
    #[allow(missing_docs)] // documentation missing in model
         864  +
                           /* BuilderGenerator.kt:314 */
  485    865   
    pub fn set_zero_long(mut self, input: ::std::option::Option<i64>) -> Self {
         866  +
        /* BuilderGenerator.kt:315 */
  486    867   
        self.zero_long = input;
  487    868   
        self
         869  +
        /* BuilderGenerator.kt:314 */
  488    870   
    }
         871  +
    /* BuilderGenerator.kt:334 */
  489    872   
    #[allow(missing_docs)] // documentation missing in model
         873  +
                           /* BuilderGenerator.kt:336 */
  490    874   
    pub fn get_zero_long(&self) -> &::std::option::Option<i64> {
         875  +
        /* BuilderGenerator.kt:337 */
  491    876   
        &self.zero_long
         877  +
        /* BuilderGenerator.kt:336 */
  492    878   
    }
         879  +
    /* BuilderGenerator.kt:286 */
  493    880   
    #[allow(missing_docs)] // documentation missing in model
         881  +
                           /* BuilderGenerator.kt:291 */
  494    882   
    pub fn zero_float(mut self, input: f32) -> Self {
         883  +
        /* BuilderGenerator.kt:292 */
  495    884   
        self.zero_float = ::std::option::Option::Some(input);
         885  +
        /* BuilderGenerator.kt:293 */
  496    886   
        self
         887  +
        /* BuilderGenerator.kt:291 */
  497    888   
    }
         889  +
    /* BuilderGenerator.kt:312 */
  498    890   
    #[allow(missing_docs)] // documentation missing in model
         891  +
                           /* BuilderGenerator.kt:314 */
  499    892   
    pub fn set_zero_float(mut self, input: ::std::option::Option<f32>) -> Self {
         893  +
        /* BuilderGenerator.kt:315 */
  500    894   
        self.zero_float = input;
  501    895   
        self
         896  +
        /* BuilderGenerator.kt:314 */
  502    897   
    }
         898  +
    /* BuilderGenerator.kt:334 */
  503    899   
    #[allow(missing_docs)] // documentation missing in model
         900  +
                           /* BuilderGenerator.kt:336 */
  504    901   
    pub fn get_zero_float(&self) -> &::std::option::Option<f32> {
         902  +
        /* BuilderGenerator.kt:337 */
  505    903   
        &self.zero_float
         904  +
        /* BuilderGenerator.kt:336 */
  506    905   
    }
         906  +
    /* BuilderGenerator.kt:286 */
  507    907   
    #[allow(missing_docs)] // documentation missing in model
         908  +
                           /* BuilderGenerator.kt:291 */
  508    909   
    pub fn zero_double(mut self, input: f64) -> Self {
         910  +
        /* BuilderGenerator.kt:292 */
  509    911   
        self.zero_double = ::std::option::Option::Some(input);
         912  +
        /* BuilderGenerator.kt:293 */
  510    913   
        self
         914  +
        /* BuilderGenerator.kt:291 */
  511    915   
    }
         916  +
    /* BuilderGenerator.kt:312 */
  512    917   
    #[allow(missing_docs)] // documentation missing in model
         918  +
                           /* BuilderGenerator.kt:314 */
  513    919   
    pub fn set_zero_double(mut self, input: ::std::option::Option<f64>) -> Self {
         920  +
        /* BuilderGenerator.kt:315 */
  514    921   
        self.zero_double = input;
  515    922   
        self
         923  +
        /* BuilderGenerator.kt:314 */
  516    924   
    }
         925  +
    /* BuilderGenerator.kt:334 */
  517    926   
    #[allow(missing_docs)] // documentation missing in model
         927  +
                           /* BuilderGenerator.kt:336 */
  518    928   
    pub fn get_zero_double(&self) -> &::std::option::Option<f64> {
         929  +
        /* BuilderGenerator.kt:337 */
  519    930   
        &self.zero_double
         931  +
        /* BuilderGenerator.kt:336 */
  520    932   
    }
  521         -
    /// Consumes the builder and constructs a [`OperationWithDefaultsOutput`](crate::operation::operation_with_defaults::OperationWithDefaultsOutput).
         933  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`OperationWithDefaultsOutput`](crate::operation::operation_with_defaults::OperationWithDefaultsOutput).
         934  +
    /* BuilderGenerator.kt:253 */
  522    935   
    pub fn build(self) -> crate::operation::operation_with_defaults::OperationWithDefaultsOutput {
         936  +
        /* BuilderGenerator.kt:477 */
  523    937   
        crate::operation::operation_with_defaults::OperationWithDefaultsOutput {
  524         -
            default_string: self.default_string.unwrap_or_else(|| "hi".to_owned()),
  525         -
            default_boolean: self.default_boolean.unwrap_or(true),
  526         -
            default_list: self.default_list.unwrap_or_default(),
         938  +
            /* BuilderGenerator.kt:481 */
         939  +
            default_string: self
         940  +
                .default_string
         941  +
                /* BuilderGenerator.kt:489 */
         942  +
                .unwrap_or_else(|| "hi".to_owned()),
         943  +
            /* BuilderGenerator.kt:481 */
         944  +
            default_boolean: self
         945  +
                .default_boolean
         946  +
                /* BuilderGenerator.kt:491 */
         947  +
                .unwrap_or(true),
         948  +
            /* BuilderGenerator.kt:481 */
         949  +
            default_list: self
         950  +
                .default_list
         951  +
                /* BuilderGenerator.kt:487 */
         952  +
                .unwrap_or_default(),
         953  +
            /* BuilderGenerator.kt:481 */
  527    954   
            default_timestamp: self
  528    955   
                .default_timestamp
         956  +
                /* BuilderGenerator.kt:489 */
  529    957   
                .unwrap_or_else(|| ::aws_smithy_types::DateTime::from_fractional_secs(0, 0_f64)),
  530         -
            default_blob: self.default_blob.unwrap_or_else(|| ::aws_smithy_types::Blob::new("abc")),
  531         -
            default_byte: self.default_byte.unwrap_or(1),
  532         -
            default_short: self.default_short.unwrap_or(1),
  533         -
            default_integer: self.default_integer.unwrap_or(10),
  534         -
            default_long: self.default_long.unwrap_or(100),
  535         -
            default_float: self.default_float.unwrap_or(1.0_f32),
  536         -
            default_double: self.default_double.unwrap_or(1.0_f64),
  537         -
            default_map: self.default_map.unwrap_or_default(),
         958  +
            /* BuilderGenerator.kt:481 */
         959  +
            default_blob: self
         960  +
                .default_blob
         961  +
                /* BuilderGenerator.kt:489 */
         962  +
                .unwrap_or_else(|| ::aws_smithy_types::Blob::new("abc")),
         963  +
            /* BuilderGenerator.kt:481 */
         964  +
            default_byte: self
         965  +
                .default_byte
         966  +
                /* BuilderGenerator.kt:491 */
         967  +
                .unwrap_or(1),
         968  +
            /* BuilderGenerator.kt:481 */
         969  +
            default_short: self
         970  +
                .default_short
         971  +
                /* BuilderGenerator.kt:491 */
         972  +
                .unwrap_or(1),
         973  +
            /* BuilderGenerator.kt:481 */
         974  +
            default_integer: self
         975  +
                .default_integer
         976  +
                /* BuilderGenerator.kt:491 */
         977  +
                .unwrap_or(10),
         978  +
            /* BuilderGenerator.kt:481 */
         979  +
            default_long: self
         980  +
                .default_long
         981  +
                /* BuilderGenerator.kt:491 */
         982  +
                .unwrap_or(100),
         983  +
            /* BuilderGenerator.kt:481 */
         984  +
            default_float: self
         985  +
                .default_float
         986  +
                /* BuilderGenerator.kt:491 */
         987  +
                .unwrap_or(1.0_f32),
         988  +
            /* BuilderGenerator.kt:481 */
         989  +
            default_double: self
         990  +
                .default_double
         991  +
                /* BuilderGenerator.kt:491 */
         992  +
                .unwrap_or(1.0_f64),
         993  +
            /* BuilderGenerator.kt:481 */
         994  +
            default_map: self
         995  +
                .default_map
         996  +
                /* BuilderGenerator.kt:487 */
         997  +
                .unwrap_or_default(),
         998  +
            /* BuilderGenerator.kt:481 */
  538    999   
            default_enum: self
  539   1000   
                .default_enum
        1001  +
                /* BuilderGenerator.kt:491 */
  540   1002   
                .unwrap_or("FOO".parse::<crate::types::TestEnum>().expect("static value validated to member")),
  541         -
            default_int_enum: self.default_int_enum.unwrap_or(1),
  542         -
            empty_string: self.empty_string.unwrap_or_default(),
  543         -
            false_boolean: self.false_boolean.unwrap_or_default(),
  544         -
            empty_blob: self.empty_blob.unwrap_or_default(),
  545         -
            zero_byte: self.zero_byte.unwrap_or_default(),
  546         -
            zero_short: self.zero_short.unwrap_or_default(),
  547         -
            zero_integer: self.zero_integer.unwrap_or_default(),
  548         -
            zero_long: self.zero_long.unwrap_or_default(),
  549         -
            zero_float: self.zero_float.unwrap_or(0.0_f32),
  550         -
            zero_double: self.zero_double.unwrap_or(0.0_f64),
        1003  +
            /* BuilderGenerator.kt:481 */
        1004  +
            default_int_enum: self
        1005  +
                .default_int_enum
        1006  +
                /* BuilderGenerator.kt:491 */
        1007  +
                .unwrap_or(1),
        1008  +
            /* BuilderGenerator.kt:481 */
        1009  +
            empty_string: self
        1010  +
                .empty_string
        1011  +
                /* BuilderGenerator.kt:487 */
        1012  +
                .unwrap_or_default(),
        1013  +
            /* BuilderGenerator.kt:481 */
        1014  +
            false_boolean: self
        1015  +
                .false_boolean
        1016  +
                /* BuilderGenerator.kt:487 */
        1017  +
                .unwrap_or_default(),
        1018  +
            /* BuilderGenerator.kt:481 */
        1019  +
            empty_blob: self
        1020  +
                .empty_blob
        1021  +
                /* BuilderGenerator.kt:487 */
        1022  +
                .unwrap_or_default(),
        1023  +
            /* BuilderGenerator.kt:481 */
        1024  +
            zero_byte: self
        1025  +
                .zero_byte
        1026  +
                /* BuilderGenerator.kt:487 */
        1027  +
                .unwrap_or_default(),
        1028  +
            /* BuilderGenerator.kt:481 */
        1029  +
            zero_short: self
        1030  +
                .zero_short
        1031  +
                /* BuilderGenerator.kt:487 */
        1032  +
                .unwrap_or_default(),
        1033  +
            /* BuilderGenerator.kt:481 */
        1034  +
            zero_integer: self
        1035  +
                .zero_integer
        1036  +
                /* BuilderGenerator.kt:487 */
        1037  +
                .unwrap_or_default(),
        1038  +
            /* BuilderGenerator.kt:481 */
        1039  +
            zero_long: self
        1040  +
                .zero_long
        1041  +
                /* BuilderGenerator.kt:487 */
        1042  +
                .unwrap_or_default(),
        1043  +
            /* BuilderGenerator.kt:481 */
        1044  +
            zero_float: self
        1045  +
                .zero_float
        1046  +
                /* BuilderGenerator.kt:491 */
        1047  +
                .unwrap_or(0.0_f32),
        1048  +
            /* BuilderGenerator.kt:481 */
        1049  +
            zero_double: self
        1050  +
                .zero_double
        1051  +
                /* BuilderGenerator.kt:491 */
        1052  +
                .unwrap_or(0.0_f64),
        1053  +
            /* BuilderGenerator.kt:477 */
  551   1054   
        }
        1055  +
        /* BuilderGenerator.kt:253 */
  552   1056   
    }
        1057  +
    /* BuilderGenerator.kt:355 */
  553   1058   
}