Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/query_idempotency_token_auto_fill/_query_idempotency_token_auto_fill_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 QueryIdempotencyTokenAutoFillOutput {}
           8  +
pub /* StructureGenerator.kt:201 */ struct QueryIdempotencyTokenAutoFillOutput {/* StructureGenerator.kt:201 */}
           9  +
/* ClientCodegenVisitor.kt:237 */
    6     10   
impl QueryIdempotencyTokenAutoFillOutput {
    7         -
    /// Creates a new builder-style object to manufacture [`QueryIdempotencyTokenAutoFillOutput`](crate::operation::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillOutput).
          11  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`QueryIdempotencyTokenAutoFillOutput`](crate::operation::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillOutput).
          12  +
    /* BuilderGenerator.kt:175 */
    8     13   
    pub fn builder() -> crate::operation::query_idempotency_token_auto_fill::builders::QueryIdempotencyTokenAutoFillOutputBuilder {
          14  +
        /* BuilderGenerator.kt:176 */
    9     15   
        crate::operation::query_idempotency_token_auto_fill::builders::QueryIdempotencyTokenAutoFillOutputBuilder::default()
          16  +
        /* BuilderGenerator.kt:175 */
   10     17   
    }
          18  +
    /* ClientCodegenVisitor.kt:237 */
   11     19   
}
   12     20   
   13         -
/// A builder for [`QueryIdempotencyTokenAutoFillOutput`](crate::operation::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillOutput).
          21  +
/// /* BuilderGenerator.kt:342 */A builder for [`QueryIdempotencyTokenAutoFillOutput`](crate::operation::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillOutput).
          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 QueryIdempotencyTokenAutoFillOutputBuilder {}
          26  +
/* BuilderGenerator.kt:345 */
          27  +
pub struct QueryIdempotencyTokenAutoFillOutputBuilder {/* BuilderGenerator.kt:345 */}
          28  +
/* BuilderGenerator.kt:355 */
   17     29   
impl QueryIdempotencyTokenAutoFillOutputBuilder {
   18         -
    /// Consumes the builder and constructs a [`QueryIdempotencyTokenAutoFillOutput`](crate::operation::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillOutput).
          30  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`QueryIdempotencyTokenAutoFillOutput`](crate::operation::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillOutput).
          31  +
    /* BuilderGenerator.kt:253 */
   19     32   
    pub fn build(self) -> crate::operation::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillOutput {
   20         -
        crate::operation::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillOutput {}
          33  +
        /* BuilderGenerator.kt:477 */
          34  +
        crate::operation::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillOutput {
          35  +
        /* BuilderGenerator.kt:477 */}
          36  +
        /* BuilderGenerator.kt:253 */
   21     37   
    }
          38  +
    /* BuilderGenerator.kt:355 */
   22     39   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/query_idempotency_token_auto_fill/builders.rs

@@ -1,1 +125,143 @@
    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::query_idempotency_token_auto_fill::_query_idempotency_token_auto_fill_output::QueryIdempotencyTokenAutoFillOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::query_idempotency_token_auto_fill::_query_idempotency_token_auto_fill_input::QueryIdempotencyTokenAutoFillInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::query_idempotency_token_auto_fill::builders::QueryIdempotencyTokenAutoFillInputBuilder {
    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::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.query_idempotency_token_auto_fill();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `QueryIdempotencyTokenAutoFill`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `QueryIdempotencyTokenAutoFill`.
   24     27   
///
   25         -
/// Automatically adds idempotency tokens.
          28  +
/// /* FluentBuilderGenerator.kt:130 */Automatically adds idempotency tokens.
          29  +
/* RustType.kt:516 */
   26     30   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          31  +
/* FluentBuilderGenerator.kt:270 */
   27     32   
pub struct QueryIdempotencyTokenAutoFillFluentBuilder {
   28     33   
    handle: ::std::sync::Arc<crate::client::Handle>,
   29     34   
    inner: crate::operation::query_idempotency_token_auto_fill::builders::QueryIdempotencyTokenAutoFillInputBuilder,
   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::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillOutput,
   35     41   
        crate::operation::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillError,
   36     42   
    > for QueryIdempotencyTokenAutoFillFluentBuilder
   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::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillOutput,
   44     50   
            crate::operation::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillError,
   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 QueryIdempotencyTokenAutoFillFluentBuilder {
          58  +
    /* FluentBuilderGenerator.kt:288 */
   51     59   
    /// Creates a new `QueryIdempotencyTokenAutoFillFluentBuilder`.
   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 QueryIdempotencyTokenAutoFill as a reference.
   60     69   
    pub fn as_input(&self) -> &crate::operation::query_idempotency_token_auto_fill::builders::QueryIdempotencyTokenAutoFillInputBuilder {
   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::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillOutput,
   75     85   
        ::aws_smithy_runtime_api::client::result::SdkError<
   76     86   
            crate::operation::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillError,
   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::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFill::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::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFill::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::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillOutput,
   97    107   
        crate::operation::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillError,
   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:498 */
  111    123   
    #[allow(missing_docs)] // documentation missing in model
         124  +
                           /* FluentBuilderGenerator.kt:500 */
  112    125   
    pub fn token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  113    126   
        self.inner = self.inner.token(input.into());
  114    127   
        self
  115    128   
    }
         129  +
    /* FluentBuilderGenerator.kt:498 */
  116    130   
    #[allow(missing_docs)] // documentation missing in model
         131  +
                           /* FluentBuilderGenerator.kt:500 */
  117    132   
    pub fn set_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  118    133   
        self.inner = self.inner.set_token(input);
  119    134   
        self
  120    135   
    }
         136  +
    /* FluentBuilderGenerator.kt:518 */
  121    137   
    #[allow(missing_docs)] // documentation missing in model
         138  +
                           /* FluentBuilderGenerator.kt:520 */
  122    139   
    pub fn get_token(&self) -> &::std::option::Option<::std::string::String> {
  123    140   
        self.inner.get_token()
  124    141   
    }
         142  +
    /* FluentBuilderGenerator.kt:282 */
  125    143   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/query_lists.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 `QueryLists`.
           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 QueryLists;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl QueryLists {
    7         -
    /// Creates a new `QueryLists`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `QueryLists`
          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::query_lists::QueryListsInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::query_lists::QueryListsOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::query_lists::QueryListsError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -57,66 +262,279 @@
   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 QueryLists {
   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("QueryLists");
   91    102   
   92    103   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   93    104   
            QueryListsRequestSerializer,
   94    105   
        ));
   95    106   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
   96    107   
            QueryListsResponseDeserializer,
   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   
            "QueryLists",
  105    116   
            "Query Protocol",
  106    117   
        ));
  107    118   
  108    119   
        ::std::option::Option::Some(cfg.freeze())
  109    120   
    }
  110    121   
  111    122   
    fn runtime_components(
  112    123   
        &self,
  113    124   
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
  114    125   
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
  115    126   
        #[allow(unused_mut)]
  116    127   
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("QueryLists")
  117    128   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  118    129   
            .with_interceptor(QueryListsEndpointParamsInterceptor)
  119    130   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  120    131   
                crate::operation::query_lists::QueryListsError,
  121    132   
            >::new())
  122    133   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  123    134   
                crate::operation::query_lists::QueryListsError,
  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 QueryListsResponseDeserializer;
  132    144   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for QueryListsResponseDeserializer {
  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_query_lists::de_query_lists_http_error(status, headers, body)
  145    157   
        } else {
  146    158   
            crate::protocol_serde::shape_query_lists::de_query_lists_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 QueryListsRequestSerializer;
  153    166   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for QueryListsRequestSerializer {
  154    167   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  155    168   
    fn serialize_input(
  156    169   
        &self,
  157    170   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  158    171   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  159    172   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  160    173   
        let input = input.downcast::<crate::operation::query_lists::QueryListsInput>().expect("correct type");
  161    174   
        let _header_serialization_settings = _cfg
  162    175   
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  163    176   
            .cloned()
  164    177   
            .unwrap_or_default();
  165    178   
        let mut request_builder = {
  166    179   
            fn uri_base(
  167    180   
                _input: &crate::operation::query_lists::QueryListsInput,
  168    181   
                output: &mut ::std::string::String,
  169    182   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  170    183   
                use ::std::fmt::Write as _;
  171    184   
                ::std::write!(output, "/").expect("formatting should succeed");
  172    185   
                ::std::result::Result::Ok(())
  173    186   
            }
  174    187   
            #[allow(clippy::unnecessary_wraps)]
  175    188   
            fn update_http_builder(
  176    189   
                input: &crate::operation::query_lists::QueryListsInput,
  177    190   
                builder: ::http::request::Builder,
  178    191   
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  179    192   
                let mut uri = ::std::string::String::new();
  180    193   
                uri_base(input, &mut uri)?;
  181    194   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  182    195   
            }
  183    196   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  184    197   
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
  185    198   
            builder
  186    199   
        };
  187    200   
        let body =
  188    201   
            ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_query_lists_input::ser_query_lists_input_input_input(&input)?);
  189    202   
        if let Some(content_length) = body.content_length() {
  190    203   
            let content_length = content_length.to_string();
  191    204   
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
  192    205   
        }
  193    206   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  194    207   
    }
  195    208   
}
         209  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  196    210   
#[derive(Debug)]
  197    211   
struct QueryListsEndpointParamsInterceptor;
  198    212   
  199    213   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for QueryListsEndpointParamsInterceptor {
  200    214   
    fn name(&self) -> &'static str {
  201    215   
        "QueryListsEndpointParamsInterceptor"
  202    216   
    }
  203    217   
  204    218   
    fn read_before_execution(
  205    219   
        &self,
  206    220   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  207    221   
            '_,
  208    222   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  209    223   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  210    224   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  211    225   
        >,
  212    226   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  213    227   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  214    228   
        let _input = context
  215    229   
            .input()
  216    230   
            .downcast_ref::<QueryListsInput>()
  217    231   
            .ok_or("failed to downcast to QueryListsInput")?;
  218    232   
  219    233   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  220    234   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  221    235   
        })?;
  222    236   
        cfg.interceptor_state()
  223    237   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  224    238   
        ::std::result::Result::Ok(())
  225    239   
    }
  226    240   
}
  227    241   
  228    242   
// The get_* functions below are generated from JMESPath expressions in the
  229    243   
// operationContextParams trait. They target the operation's input shape.
  230    244   
         245  +
/* RustType.kt:516 */
  231    246   
#[allow(unreachable_code, unused_variables)]
         247  +
/* RustType.kt:516 */
  232    248   
#[cfg(test)]
         249  +
/* ProtocolTestGenerator.kt:98 */
  233    250   
mod query_lists_test {
  234    251   
  235    252   
    /// Serializes query lists
  236    253   
    /// Test ID: QueryLists
  237    254   
    #[::tokio::test]
  238    255   
    #[::tracing_test::traced_test]
  239    256   
    async fn query_lists_request() {
  240    257   
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  241    258   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  242    259   
@@ -384,401 +513,589 @@
  404    421   
        let body = http_request.body().bytes().expect("body should be strict");
  405    422   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(
  406    423   
            body,
  407    424   
            "Action=QueryLists&Version=2020-01-08&NestedWithList.ListArg.member.1=A&NestedWithList.ListArg.member.2=B",
  408    425   
            ::aws_smithy_protocol_test::MediaType::from("application/x-www-form-urlencoded"),
  409    426   
        ));
  410    427   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  411    428   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  412    429   
        ::pretty_assertions::assert_eq!(uri.path(), "/", "path was incorrect");
  413    430   
    }
         431  +
         432  +
    /* ProtocolTestGenerator.kt:98 */
  414    433   
}
  415    434   
         435  +
/* OperationErrorGenerator.kt:79 */
  416    436   
/// Error type for the `QueryListsError` operation.
         437  +
/* RustType.kt:516 */
  417    438   
#[non_exhaustive]
         439  +
/* RustType.kt:516 */
  418    440   
#[derive(::std::fmt::Debug)]
  419         -
pub enum QueryListsError {
         441  +
pub /* OperationErrorGenerator.kt:81 */ enum QueryListsError {
         442  +
    /* OperationErrorGenerator.kt:88 */
  420    443   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  421    444   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  422    445   
    variable wildcard pattern and check `.code()`:
  423    446   
     \
  424    447   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  425    448   
     \
  426    449   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-QueryListsError) for what information is available for the error.")]
  427    450   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         451  +
    /* OperationErrorGenerator.kt:81 */
  428    452   
}
         453  +
/* OperationErrorGenerator.kt:218 */
  429    454   
impl QueryListsError {
         455  +
    /* OperationErrorGenerator.kt:219 */
  430    456   
    /// Creates the `QueryListsError::Unhandled` variant from any error type.
  431    457   
    pub fn unhandled(
  432    458   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  433    459   
    ) -> Self {
  434    460   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  435    461   
            source: err.into(),
  436    462   
            meta: ::std::default::Default::default(),
  437    463   
        })
  438    464   
    }
  439    465   
  440    466   
    /// Creates the `QueryListsError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  441    467   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  442    468   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  443    469   
            source: err.clone().into(),
  444    470   
            meta: err,
  445    471   
        })
  446    472   
    }
  447         -
    ///
         473  +
    /// /* OperationErrorGenerator.kt:236 */
  448    474   
    /// Returns error metadata, which includes the error code, message,
  449    475   
    /// request ID, and potentially additional information.
  450    476   
    ///
         477  +
    /* OperationErrorGenerator.kt:242 */
  451    478   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         479  +
        /* OperationErrorGenerator.kt:243 */
  452    480   
        match self {
  453         -
            Self::Unhandled(e) => &e.meta,
         481  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         482  +
            /* OperationErrorGenerator.kt:243 */
  454    483   
        }
         484  +
        /* OperationErrorGenerator.kt:242 */
  455    485   
    }
         486  +
    /* OperationErrorGenerator.kt:218 */
  456    487   
}
         488  +
/* OperationErrorGenerator.kt:269 */
  457    489   
impl ::std::error::Error for QueryListsError {
         490  +
    /* OperationErrorGenerator.kt:270 */
  458    491   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         492  +
        /* OperationErrorGenerator.kt:318 */
  459    493   
        match self {
  460         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         494  +
            /* OperationErrorGenerator.kt:326 */
         495  +
            Self::Unhandled(_inner) => {
         496  +
                /* OperationErrorGenerator.kt:279 */
         497  +
                ::std::option::Option::Some(&*_inner.source)
         498  +
                /* OperationErrorGenerator.kt:326 */
         499  +
            } /* OperationErrorGenerator.kt:318 */
  461    500   
        }
         501  +
        /* OperationErrorGenerator.kt:270 */
  462    502   
    }
         503  +
    /* OperationErrorGenerator.kt:269 */
  463    504   
}
         505  +
/* OperationErrorGenerator.kt:133 */
  464    506   
impl ::std::fmt::Display for QueryListsError {
         507  +
    /* OperationErrorGenerator.kt:134 */
  465    508   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         509  +
        /* OperationErrorGenerator.kt:318 */
  466    510   
        match self {
         511  +
            /* OperationErrorGenerator.kt:326 */
  467    512   
            Self::Unhandled(_inner) => {
         513  +
                /* OperationErrorGenerator.kt:139 */
  468    514   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  469    515   
                    write!(f, "unhandled error ({code})")
  470    516   
                } else {
  471    517   
                    f.write_str("unhandled error")
  472    518   
                }
         519  +
                /* OperationErrorGenerator.kt:326 */
         520  +
            } /* OperationErrorGenerator.kt:318 */
  473    521   
        }
         522  +
        /* OperationErrorGenerator.kt:134 */
  474    523   
    }
  475         -
    }
         524  +
    /* OperationErrorGenerator.kt:133 */
  476    525   
}
         526  +
/* OperationErrorGenerator.kt:182 */
  477    527   
impl ::aws_smithy_types::retry::ProvideErrorKind for QueryListsError {
         528  +
    /* OperationErrorGenerator.kt:186 */
  478    529   
    fn code(&self) -> ::std::option::Option<&str> {
         530  +
        /* OperationErrorGenerator.kt:187 */
  479    531   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         532  +
        /* OperationErrorGenerator.kt:186 */
  480    533   
    }
         534  +
    /* OperationErrorGenerator.kt:190 */
  481    535   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         536  +
        /* OperationErrorGenerator.kt:197 */
  482    537   
        ::std::option::Option::None
         538  +
        /* OperationErrorGenerator.kt:190 */
  483    539   
    }
         540  +
    /* OperationErrorGenerator.kt:182 */
  484    541   
}
         542  +
/* OperationErrorGenerator.kt:163 */
  485    543   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for QueryListsError {
         544  +
    /* OperationErrorGenerator.kt:164 */
  486    545   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         546  +
        /* OperationErrorGenerator.kt:318 */
  487    547   
        match self {
  488         -
            Self::Unhandled(_inner) => &_inner.meta,
         548  +
            /* OperationErrorGenerator.kt:326 */
         549  +
            Self::Unhandled(_inner) => {
         550  +
                /* OperationErrorGenerator.kt:168 */
         551  +
                &_inner.meta
         552  +
                /* OperationErrorGenerator.kt:326 */
         553  +
            } /* OperationErrorGenerator.kt:318 */
  489    554   
        }
         555  +
        /* OperationErrorGenerator.kt:164 */
  490    556   
    }
         557  +
    /* OperationErrorGenerator.kt:163 */
  491    558   
}
         559  +
/* OperationErrorGenerator.kt:109 */
  492    560   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for QueryListsError {
         561  +
    /* OperationErrorGenerator.kt:110 */
  493    562   
    fn create_unhandled_error(
  494    563   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  495    564   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  496    565   
    ) -> Self {
         566  +
        /* OperationErrorGenerator.kt:121 */
  497    567   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  498    568   
            source,
  499    569   
            meta: meta.unwrap_or_default(),
  500    570   
        })
         571  +
        /* OperationErrorGenerator.kt:110 */
  501    572   
    }
         573  +
    /* OperationErrorGenerator.kt:109 */
  502    574   
}
  503    575   
         576  +
/* CodegenDelegator.kt:255 */
  504    577   
pub use crate::operation::query_lists::_query_lists_output::QueryListsOutput;
  505    578   
         579  +
/* CodegenDelegator.kt:255 */
  506    580   
pub use crate::operation::query_lists::_query_lists_input::QueryListsInput;
  507    581   
         582  +
/* RustModule.kt:172 */
  508    583   
mod _query_lists_input;
  509    584   
         585  +
/* RustModule.kt:172 */
  510    586   
mod _query_lists_output;
  511    587   
  512         -
/// Builders
         588  +
/// /* CodegenDelegator.kt:51 */Builders
  513    589   
pub mod builders;

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/query_lists/_query_lists_input.rs

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

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/query_lists/_query_lists_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 QueryListsOutput {}
           8  +
pub /* StructureGenerator.kt:201 */ struct QueryListsOutput {/* StructureGenerator.kt:201 */}
           9  +
/* ClientCodegenVisitor.kt:237 */
    6     10   
impl QueryListsOutput {
    7         -
    /// Creates a new builder-style object to manufacture [`QueryListsOutput`](crate::operation::query_lists::QueryListsOutput).
          11  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`QueryListsOutput`](crate::operation::query_lists::QueryListsOutput).
          12  +
    /* BuilderGenerator.kt:175 */
    8     13   
    pub fn builder() -> crate::operation::query_lists::builders::QueryListsOutputBuilder {
          14  +
        /* BuilderGenerator.kt:176 */
    9     15   
        crate::operation::query_lists::builders::QueryListsOutputBuilder::default()
          16  +
        /* BuilderGenerator.kt:175 */
   10     17   
    }
          18  +
    /* ClientCodegenVisitor.kt:237 */
   11     19   
}
   12     20   
   13         -
/// A builder for [`QueryListsOutput`](crate::operation::query_lists::QueryListsOutput).
          21  +
/// /* BuilderGenerator.kt:342 */A builder for [`QueryListsOutput`](crate::operation::query_lists::QueryListsOutput).
          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 QueryListsOutputBuilder {}
          26  +
/* BuilderGenerator.kt:345 */
          27  +
pub struct QueryListsOutputBuilder {/* BuilderGenerator.kt:345 */}
          28  +
/* BuilderGenerator.kt:355 */
   17     29   
impl QueryListsOutputBuilder {
   18         -
    /// Consumes the builder and constructs a [`QueryListsOutput`](crate::operation::query_lists::QueryListsOutput).
          30  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`QueryListsOutput`](crate::operation::query_lists::QueryListsOutput).
          31  +
    /* BuilderGenerator.kt:253 */
   19     32   
    pub fn build(self) -> crate::operation::query_lists::QueryListsOutput {
   20         -
        crate::operation::query_lists::QueryListsOutput {}
          33  +
        /* BuilderGenerator.kt:477 */
          34  +
        crate::operation::query_lists::QueryListsOutput {
          35  +
        /* BuilderGenerator.kt:477 */}
          36  +
        /* BuilderGenerator.kt:253 */
   21     37   
    }
          38  +
    /* BuilderGenerator.kt:355 */
   22     39   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/query_lists/builders.rs

@@ -1,1 +220,268 @@
    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::query_lists::_query_lists_output::QueryListsOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::query_lists::_query_lists_input::QueryListsInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::query_lists::builders::QueryListsInputBuilder {
    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::query_lists::QueryListsOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::query_lists::QueryListsError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.query_lists();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `QueryLists`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `QueryLists`.
   24     27   
///
   25         -
/// This test serializes simple and complex lists.
          28  +
/// /* FluentBuilderGenerator.kt:130 */This test serializes simple and complex lists.
          29  +
/* RustType.kt:516 */
   26     30   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          31  +
/* FluentBuilderGenerator.kt:270 */
   27     32   
pub struct QueryListsFluentBuilder {
   28     33   
    handle: ::std::sync::Arc<crate::client::Handle>,
   29     34   
    inner: crate::operation::query_lists::builders::QueryListsInputBuilder,
   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::query_lists::QueryListsOutput,
   35     41   
        crate::operation::query_lists::QueryListsError,
   36     42   
    > for QueryListsFluentBuilder
   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::query_lists::QueryListsOutput,
   44     50   
            crate::operation::query_lists::QueryListsError,
   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 QueryListsFluentBuilder {
          58  +
    /* FluentBuilderGenerator.kt:288 */
   51     59   
    /// Creates a new `QueryListsFluentBuilder`.
   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 QueryLists as a reference.
   60     69   
    pub fn as_input(&self) -> &crate::operation::query_lists::builders::QueryListsInputBuilder {
   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::query_lists::QueryListsOutput,
   75     85   
        ::aws_smithy_runtime_api::client::result::SdkError<
   76     86   
            crate::operation::query_lists::QueryListsError,
   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::query_lists::QueryLists::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::query_lists::QueryLists::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::query_lists::QueryListsOutput,
   97    107   
        crate::operation::query_lists::QueryListsError,
   98    108   
        Self,
   99    109   
    > {
  100    110   
        crate::client::customize::CustomizableOperation::new(self)
  101    111   
    }
         112  +
    /* FluentBuilderGenerator.kt:315 */
  102    113   
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
  103    114   
        self.set_config_override(::std::option::Option::Some(config_override.into()));
  104    115   
        self
  105    116   
    }
  106    117   
  107    118   
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
  108    119   
        self.config_override = config_override;
  109    120   
        self
  110    121   
    }
  111         -
    ///
         122  +
    /// /* FluentBuilderGenerator.kt:436 */
  112    123   
    /// Appends an item to `ListArg`.
  113    124   
    ///
  114    125   
    /// To override the contents of this collection use [`set_list_arg`](Self::set_list_arg).
  115    126   
    ///
         127  +
    /* FluentBuilderGenerator.kt:443 */
  116    128   
    #[allow(missing_docs)] // documentation missing in model
         129  +
                           /* FluentBuilderGenerator.kt:446 */
  117    130   
    pub fn list_arg(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  118    131   
        self.inner = self.inner.list_arg(input.into());
  119    132   
        self
  120    133   
    }
         134  +
    /* FluentBuilderGenerator.kt:498 */
  121    135   
    #[allow(missing_docs)] // documentation missing in model
         136  +
                           /* FluentBuilderGenerator.kt:500 */
  122    137   
    pub fn set_list_arg(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
  123    138   
        self.inner = self.inner.set_list_arg(input);
  124    139   
        self
  125    140   
    }
         141  +
    /* FluentBuilderGenerator.kt:518 */
  126    142   
    #[allow(missing_docs)] // documentation missing in model
         143  +
                           /* FluentBuilderGenerator.kt:520 */
  127    144   
    pub fn get_list_arg(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
  128    145   
        self.inner.get_list_arg()
  129    146   
    }
  130         -
    ///
         147  +
    /// /* FluentBuilderGenerator.kt:436 */
  131    148   
    /// Appends an item to `ComplexListArg`.
  132    149   
    ///
  133    150   
    /// To override the contents of this collection use [`set_complex_list_arg`](Self::set_complex_list_arg).
  134    151   
    ///
         152  +
    /* FluentBuilderGenerator.kt:443 */
  135    153   
    #[allow(missing_docs)] // documentation missing in model
         154  +
                           /* FluentBuilderGenerator.kt:446 */
  136    155   
    pub fn complex_list_arg(mut self, input: crate::types::GreetingStruct) -> Self {
  137    156   
        self.inner = self.inner.complex_list_arg(input);
  138    157   
        self
  139    158   
    }
         159  +
    /* FluentBuilderGenerator.kt:498 */
  140    160   
    #[allow(missing_docs)] // documentation missing in model
         161  +
                           /* FluentBuilderGenerator.kt:500 */
  141    162   
    pub fn set_complex_list_arg(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::GreetingStruct>>) -> Self {
  142    163   
        self.inner = self.inner.set_complex_list_arg(input);
  143    164   
        self
  144    165   
    }
         166  +
    /* FluentBuilderGenerator.kt:518 */
  145    167   
    #[allow(missing_docs)] // documentation missing in model
         168  +
                           /* FluentBuilderGenerator.kt:520 */
  146    169   
    pub fn get_complex_list_arg(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::GreetingStruct>> {
  147    170   
        self.inner.get_complex_list_arg()
  148    171   
    }
  149         -
    ///
         172  +
    /// /* FluentBuilderGenerator.kt:436 */
  150    173   
    /// Appends an item to `FlattenedListArg`.
  151    174   
    ///
  152    175   
    /// To override the contents of this collection use [`set_flattened_list_arg`](Self::set_flattened_list_arg).
  153    176   
    ///
         177  +
    /* FluentBuilderGenerator.kt:443 */
  154    178   
    #[allow(missing_docs)] // documentation missing in model
         179  +
                           /* FluentBuilderGenerator.kt:446 */
  155    180   
    pub fn flattened_list_arg(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  156    181   
        self.inner = self.inner.flattened_list_arg(input.into());
  157    182   
        self
  158    183   
    }
         184  +
    /* FluentBuilderGenerator.kt:498 */
  159    185   
    #[allow(missing_docs)] // documentation missing in model
         186  +
                           /* FluentBuilderGenerator.kt:500 */
  160    187   
    pub fn set_flattened_list_arg(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
  161    188   
        self.inner = self.inner.set_flattened_list_arg(input);
  162    189   
        self
  163    190   
    }
         191  +
    /* FluentBuilderGenerator.kt:518 */
  164    192   
    #[allow(missing_docs)] // documentation missing in model
         193  +
                           /* FluentBuilderGenerator.kt:520 */
  165    194   
    pub fn get_flattened_list_arg(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
  166    195   
        self.inner.get_flattened_list_arg()
  167    196   
    }
  168         -
    ///
         197  +
    /// /* FluentBuilderGenerator.kt:436 */
  169    198   
    /// Appends an item to `ListArgWithXmlNameMember`.
  170    199   
    ///
  171    200   
    /// To override the contents of this collection use [`set_list_arg_with_xml_name_member`](Self::set_list_arg_with_xml_name_member).
  172    201   
    ///
         202  +
    /* FluentBuilderGenerator.kt:443 */
  173    203   
    #[allow(missing_docs)] // documentation missing in model
         204  +
                           /* FluentBuilderGenerator.kt:446 */
  174    205   
    pub fn list_arg_with_xml_name_member(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  175    206   
        self.inner = self.inner.list_arg_with_xml_name_member(input.into());
  176    207   
        self
  177    208   
    }
         209  +
    /* FluentBuilderGenerator.kt:498 */
  178    210   
    #[allow(missing_docs)] // documentation missing in model
         211  +
                           /* FluentBuilderGenerator.kt:500 */
  179    212   
    pub fn set_list_arg_with_xml_name_member(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
  180    213   
        self.inner = self.inner.set_list_arg_with_xml_name_member(input);
  181    214   
        self
  182    215   
    }
         216  +
    /* FluentBuilderGenerator.kt:518 */
  183    217   
    #[allow(missing_docs)] // documentation missing in model
         218  +
                           /* FluentBuilderGenerator.kt:520 */
  184    219   
    pub fn get_list_arg_with_xml_name_member(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
  185    220   
        self.inner.get_list_arg_with_xml_name_member()
  186    221   
    }
  187         -
    ///
         222  +
    /// /* FluentBuilderGenerator.kt:436 */
  188    223   
    /// Appends an item to `FlattenedListArgWithXmlName`.
  189    224   
    ///
  190    225   
    /// To override the contents of this collection use [`set_flattened_list_arg_with_xml_name`](Self::set_flattened_list_arg_with_xml_name).
  191    226   
    ///
         227  +
    /* FluentBuilderGenerator.kt:443 */
  192    228   
    #[allow(missing_docs)] // documentation missing in model
         229  +
                           /* FluentBuilderGenerator.kt:446 */
  193    230   
    pub fn flattened_list_arg_with_xml_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  194    231   
        self.inner = self.inner.flattened_list_arg_with_xml_name(input.into());
  195    232   
        self
  196    233   
    }
         234  +
    /* FluentBuilderGenerator.kt:498 */
  197    235   
    #[allow(missing_docs)] // documentation missing in model
         236  +
                           /* FluentBuilderGenerator.kt:500 */
  198    237   
    pub fn set_flattened_list_arg_with_xml_name(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
  199    238   
        self.inner = self.inner.set_flattened_list_arg_with_xml_name(input);
  200    239   
        self
  201    240   
    }
         241  +
    /* FluentBuilderGenerator.kt:518 */
  202    242   
    #[allow(missing_docs)] // documentation missing in model
         243  +
                           /* FluentBuilderGenerator.kt:520 */
  203    244   
    pub fn get_flattened_list_arg_with_xml_name(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
  204    245   
        self.inner.get_flattened_list_arg_with_xml_name()
  205    246   
    }
         247  +
    /* FluentBuilderGenerator.kt:498 */
  206    248   
    #[allow(missing_docs)] // documentation missing in model
         249  +
                           /* FluentBuilderGenerator.kt:500 */
  207    250   
    pub fn nested_with_list(mut self, input: crate::types::NestedStructWithList) -> Self {
  208    251   
        self.inner = self.inner.nested_with_list(input);
  209    252   
        self
  210    253   
    }
         254  +
    /* FluentBuilderGenerator.kt:498 */
  211    255   
    #[allow(missing_docs)] // documentation missing in model
         256  +
                           /* FluentBuilderGenerator.kt:500 */
  212    257   
    pub fn set_nested_with_list(mut self, input: ::std::option::Option<crate::types::NestedStructWithList>) -> Self {
  213    258   
        self.inner = self.inner.set_nested_with_list(input);
  214    259   
        self
  215    260   
    }
         261  +
    /* FluentBuilderGenerator.kt:518 */
  216    262   
    #[allow(missing_docs)] // documentation missing in model
         263  +
                           /* FluentBuilderGenerator.kt:520 */
  217    264   
    pub fn get_nested_with_list(&self) -> &::std::option::Option<crate::types::NestedStructWithList> {
  218    265   
        self.inner.get_nested_with_list()
  219    266   
    }
         267  +
    /* FluentBuilderGenerator.kt:282 */
  220    268   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/query_maps.rs

@@ -1,1 +40,49 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* OperationGenerator.kt:77 */
    2      3   
/// Orchestration and serialization glue logic for `QueryMaps`.
           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 QueryMaps;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl QueryMaps {
    7         -
    /// Creates a new `QueryMaps`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `QueryMaps`
          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::query_maps::QueryMapsInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::query_maps::QueryMapsOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::query_maps::QueryMapsError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -57,66 +261,278 @@
   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 QueryMaps {
   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("QueryMaps");
   91    102   
   92    103   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   93    104   
            QueryMapsRequestSerializer,
   94    105   
        ));
   95    106   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
   96    107   
            QueryMapsResponseDeserializer,
   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   
            "QueryMaps",
  105    116   
            "Query Protocol",
  106    117   
        ));
  107    118   
  108    119   
        ::std::option::Option::Some(cfg.freeze())
  109    120   
    }
  110    121   
  111    122   
    fn runtime_components(
  112    123   
        &self,
  113    124   
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
  114    125   
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
  115    126   
        #[allow(unused_mut)]
  116    127   
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("QueryMaps")
  117    128   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  118    129   
            .with_interceptor(QueryMapsEndpointParamsInterceptor)
  119    130   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  120    131   
                crate::operation::query_maps::QueryMapsError,
  121    132   
            >::new())
  122    133   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  123    134   
                crate::operation::query_maps::QueryMapsError,
  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 QueryMapsResponseDeserializer;
  132    144   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for QueryMapsResponseDeserializer {
  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_query_maps::de_query_maps_http_error(status, headers, body)
  145    157   
        } else {
  146    158   
            crate::protocol_serde::shape_query_maps::de_query_maps_http_response(status, headers, body)
  147    159   
        };
  148    160   
        crate::protocol_serde::type_erase_result(parse_result)
  149    161   
    }
  150    162   
}
         163  +
/* RequestSerializerGenerator.kt:67 */
  151    164   
#[derive(Debug)]
  152    165   
struct QueryMapsRequestSerializer;
  153    166   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for QueryMapsRequestSerializer {
  154    167   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  155    168   
    fn serialize_input(
  156    169   
        &self,
  157    170   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  158    171   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  159    172   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  160    173   
        let input = input.downcast::<crate::operation::query_maps::QueryMapsInput>().expect("correct type");
  161    174   
        let _header_serialization_settings = _cfg
  162    175   
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  163    176   
            .cloned()
  164    177   
            .unwrap_or_default();
  165    178   
        let mut request_builder = {
  166    179   
            fn uri_base(
  167    180   
                _input: &crate::operation::query_maps::QueryMapsInput,
  168    181   
                output: &mut ::std::string::String,
  169    182   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  170    183   
                use ::std::fmt::Write as _;
  171    184   
                ::std::write!(output, "/").expect("formatting should succeed");
  172    185   
                ::std::result::Result::Ok(())
  173    186   
            }
  174    187   
            #[allow(clippy::unnecessary_wraps)]
  175    188   
            fn update_http_builder(
  176    189   
                input: &crate::operation::query_maps::QueryMapsInput,
  177    190   
                builder: ::http::request::Builder,
  178    191   
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  179    192   
                let mut uri = ::std::string::String::new();
  180    193   
                uri_base(input, &mut uri)?;
  181    194   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  182    195   
            }
  183    196   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  184    197   
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
  185    198   
            builder
  186    199   
        };
  187    200   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_query_maps_input::ser_query_maps_input_input_input(&input)?);
  188    201   
        if let Some(content_length) = body.content_length() {
  189    202   
            let content_length = content_length.to_string();
  190    203   
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
  191    204   
        }
  192    205   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  193    206   
    }
  194    207   
}
         208  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  195    209   
#[derive(Debug)]
  196    210   
struct QueryMapsEndpointParamsInterceptor;
  197    211   
  198    212   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for QueryMapsEndpointParamsInterceptor {
  199    213   
    fn name(&self) -> &'static str {
  200    214   
        "QueryMapsEndpointParamsInterceptor"
  201    215   
    }
  202    216   
  203    217   
    fn read_before_execution(
  204    218   
        &self,
  205    219   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  206    220   
            '_,
  207    221   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  208    222   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  209    223   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  210    224   
        >,
  211    225   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  212    226   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  213    227   
        let _input = context
  214    228   
            .input()
  215    229   
            .downcast_ref::<QueryMapsInput>()
  216    230   
            .ok_or("failed to downcast to QueryMapsInput")?;
  217    231   
  218    232   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  219    233   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  220    234   
        })?;
  221    235   
        cfg.interceptor_state()
  222    236   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  223    237   
        ::std::result::Result::Ok(())
  224    238   
    }
  225    239   
}
  226    240   
  227    241   
// The get_* functions below are generated from JMESPath expressions in the
  228    242   
// operationContextParams trait. They target the operation's input shape.
  229    243   
         244  +
/* RustType.kt:516 */
  230    245   
#[allow(unreachable_code, unused_variables)]
         246  +
/* RustType.kt:516 */
  231    247   
#[cfg(test)]
         248  +
/* ProtocolTestGenerator.kt:98 */
  232    249   
mod query_maps_test {
  233    250   
  234    251   
    /// Serializes query maps
  235    252   
    /// Test ID: QuerySimpleQueryMaps
  236    253   
    #[::tokio::test]
  237    254   
    #[::tracing_test::traced_test]
  238    255   
    async fn query_simple_query_maps_request() {
  239    256   
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  240    257   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  241    258   
@@ -509,526 +638,714 @@
  529    546   
        let expected_headers = [("Content-Type", "application/x-www-form-urlencoded")];
  530    547   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  531    548   
        let body = http_request.body().bytes().expect("body should be strict");
  532    549   
        ::aws_smithy_protocol_test::assert_ok(
  533    550   
        ::aws_smithy_protocol_test::validate_body(body, "Action=QueryMaps&Version=2020-01-08&NestedStructWithMap.MapArg.entry.1.key=bar&NestedStructWithMap.MapArg.entry.1.value=Bar&NestedStructWithMap.MapArg.entry.2.key=foo&NestedStructWithMap.MapArg.entry.2.value=Foo", ::aws_smithy_protocol_test::MediaType::from("application/x-www-form-urlencoded"))
  534    551   
        );
  535    552   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  536    553   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  537    554   
        ::pretty_assertions::assert_eq!(uri.path(), "/", "path was incorrect");
  538    555   
    }
         556  +
         557  +
    /* ProtocolTestGenerator.kt:98 */
  539    558   
}
  540    559   
         560  +
/* OperationErrorGenerator.kt:79 */
  541    561   
/// Error type for the `QueryMapsError` operation.
         562  +
/* RustType.kt:516 */
  542    563   
#[non_exhaustive]
         564  +
/* RustType.kt:516 */
  543    565   
#[derive(::std::fmt::Debug)]
  544         -
pub enum QueryMapsError {
         566  +
pub /* OperationErrorGenerator.kt:81 */ enum QueryMapsError {
         567  +
    /* OperationErrorGenerator.kt:88 */
  545    568   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  546    569   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  547    570   
    variable wildcard pattern and check `.code()`:
  548    571   
     \
  549    572   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  550    573   
     \
  551    574   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-QueryMapsError) for what information is available for the error.")]
  552    575   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         576  +
    /* OperationErrorGenerator.kt:81 */
  553    577   
}
         578  +
/* OperationErrorGenerator.kt:218 */
  554    579   
impl QueryMapsError {
         580  +
    /* OperationErrorGenerator.kt:219 */
  555    581   
    /// Creates the `QueryMapsError::Unhandled` variant from any error type.
  556    582   
    pub fn unhandled(
  557    583   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  558    584   
    ) -> Self {
  559    585   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  560    586   
            source: err.into(),
  561    587   
            meta: ::std::default::Default::default(),
  562    588   
        })
  563    589   
    }
  564    590   
  565    591   
    /// Creates the `QueryMapsError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  566    592   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  567    593   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  568    594   
            source: err.clone().into(),
  569    595   
            meta: err,
  570    596   
        })
  571    597   
    }
  572         -
    ///
         598  +
    /// /* OperationErrorGenerator.kt:236 */
  573    599   
    /// Returns error metadata, which includes the error code, message,
  574    600   
    /// request ID, and potentially additional information.
  575    601   
    ///
         602  +
    /* OperationErrorGenerator.kt:242 */
  576    603   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         604  +
        /* OperationErrorGenerator.kt:243 */
  577    605   
        match self {
  578         -
            Self::Unhandled(e) => &e.meta,
         606  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         607  +
            /* OperationErrorGenerator.kt:243 */
  579    608   
        }
         609  +
        /* OperationErrorGenerator.kt:242 */
  580    610   
    }
         611  +
    /* OperationErrorGenerator.kt:218 */
  581    612   
}
         613  +
/* OperationErrorGenerator.kt:269 */
  582    614   
impl ::std::error::Error for QueryMapsError {
         615  +
    /* OperationErrorGenerator.kt:270 */
  583    616   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         617  +
        /* OperationErrorGenerator.kt:318 */
  584    618   
        match self {
  585         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         619  +
            /* OperationErrorGenerator.kt:326 */
         620  +
            Self::Unhandled(_inner) => {
         621  +
                /* OperationErrorGenerator.kt:279 */
         622  +
                ::std::option::Option::Some(&*_inner.source)
         623  +
                /* OperationErrorGenerator.kt:326 */
         624  +
            } /* OperationErrorGenerator.kt:318 */
  586    625   
        }
         626  +
        /* OperationErrorGenerator.kt:270 */
  587    627   
    }
         628  +
    /* OperationErrorGenerator.kt:269 */
  588    629   
}
         630  +
/* OperationErrorGenerator.kt:133 */
  589    631   
impl ::std::fmt::Display for QueryMapsError {
         632  +
    /* OperationErrorGenerator.kt:134 */
  590    633   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         634  +
        /* OperationErrorGenerator.kt:318 */
  591    635   
        match self {
         636  +
            /* OperationErrorGenerator.kt:326 */
  592    637   
            Self::Unhandled(_inner) => {
         638  +
                /* OperationErrorGenerator.kt:139 */
  593    639   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  594    640   
                    write!(f, "unhandled error ({code})")
  595    641   
                } else {
  596    642   
                    f.write_str("unhandled error")
  597    643   
                }
         644  +
                /* OperationErrorGenerator.kt:326 */
         645  +
            } /* OperationErrorGenerator.kt:318 */
  598    646   
        }
         647  +
        /* OperationErrorGenerator.kt:134 */
  599    648   
    }
  600         -
    }
         649  +
    /* OperationErrorGenerator.kt:133 */
  601    650   
}
         651  +
/* OperationErrorGenerator.kt:182 */
  602    652   
impl ::aws_smithy_types::retry::ProvideErrorKind for QueryMapsError {
         653  +
    /* OperationErrorGenerator.kt:186 */
  603    654   
    fn code(&self) -> ::std::option::Option<&str> {
         655  +
        /* OperationErrorGenerator.kt:187 */
  604    656   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         657  +
        /* OperationErrorGenerator.kt:186 */
  605    658   
    }
         659  +
    /* OperationErrorGenerator.kt:190 */
  606    660   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         661  +
        /* OperationErrorGenerator.kt:197 */
  607    662   
        ::std::option::Option::None
         663  +
        /* OperationErrorGenerator.kt:190 */
  608    664   
    }
         665  +
    /* OperationErrorGenerator.kt:182 */
  609    666   
}
         667  +
/* OperationErrorGenerator.kt:163 */
  610    668   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for QueryMapsError {
         669  +
    /* OperationErrorGenerator.kt:164 */
  611    670   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         671  +
        /* OperationErrorGenerator.kt:318 */
  612    672   
        match self {
  613         -
            Self::Unhandled(_inner) => &_inner.meta,
         673  +
            /* OperationErrorGenerator.kt:326 */
         674  +
            Self::Unhandled(_inner) => {
         675  +
                /* OperationErrorGenerator.kt:168 */
         676  +
                &_inner.meta
         677  +
                /* OperationErrorGenerator.kt:326 */
         678  +
            } /* OperationErrorGenerator.kt:318 */
  614    679   
        }
         680  +
        /* OperationErrorGenerator.kt:164 */
  615    681   
    }
         682  +
    /* OperationErrorGenerator.kt:163 */
  616    683   
}
         684  +
/* OperationErrorGenerator.kt:109 */
  617    685   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for QueryMapsError {
         686  +
    /* OperationErrorGenerator.kt:110 */
  618    687   
    fn create_unhandled_error(
  619    688   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  620    689   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  621    690   
    ) -> Self {
         691  +
        /* OperationErrorGenerator.kt:121 */
  622    692   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  623    693   
            source,
  624    694   
            meta: meta.unwrap_or_default(),
  625    695   
        })
         696  +
        /* OperationErrorGenerator.kt:110 */
  626    697   
    }
         698  +
    /* OperationErrorGenerator.kt:109 */
  627    699   
}
  628    700   
         701  +
/* CodegenDelegator.kt:255 */
  629    702   
pub use crate::operation::query_maps::_query_maps_output::QueryMapsOutput;
  630    703   
         704  +
/* CodegenDelegator.kt:255 */
  631    705   
pub use crate::operation::query_maps::_query_maps_input::QueryMapsInput;
  632    706   
         707  +
/* RustModule.kt:172 */
  633    708   
mod _query_maps_input;
  634    709   
         710  +
/* RustModule.kt:172 */
  635    711   
mod _query_maps_output;
  636    712   
  637         -
/// Builders
         713  +
/// /* CodegenDelegator.kt:51 */Builders
  638    714   
pub mod builders;

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/query_maps/_query_maps_input.rs

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

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/query_maps/_query_maps_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 QueryMapsOutput {}
           8  +
pub /* StructureGenerator.kt:201 */ struct QueryMapsOutput {/* StructureGenerator.kt:201 */}
           9  +
/* ClientCodegenVisitor.kt:237 */
    6     10   
impl QueryMapsOutput {
    7         -
    /// Creates a new builder-style object to manufacture [`QueryMapsOutput`](crate::operation::query_maps::QueryMapsOutput).
          11  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`QueryMapsOutput`](crate::operation::query_maps::QueryMapsOutput).
          12  +
    /* BuilderGenerator.kt:175 */
    8     13   
    pub fn builder() -> crate::operation::query_maps::builders::QueryMapsOutputBuilder {
          14  +
        /* BuilderGenerator.kt:176 */
    9     15   
        crate::operation::query_maps::builders::QueryMapsOutputBuilder::default()
          16  +
        /* BuilderGenerator.kt:175 */
   10     17   
    }
          18  +
    /* ClientCodegenVisitor.kt:237 */
   11     19   
}
   12     20   
   13         -
/// A builder for [`QueryMapsOutput`](crate::operation::query_maps::QueryMapsOutput).
          21  +
/// /* BuilderGenerator.kt:342 */A builder for [`QueryMapsOutput`](crate::operation::query_maps::QueryMapsOutput).
          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 QueryMapsOutputBuilder {}
          26  +
/* BuilderGenerator.kt:345 */
          27  +
pub struct QueryMapsOutputBuilder {/* BuilderGenerator.kt:345 */}
          28  +
/* BuilderGenerator.kt:355 */
   17     29   
impl QueryMapsOutputBuilder {
   18         -
    /// Consumes the builder and constructs a [`QueryMapsOutput`](crate::operation::query_maps::QueryMapsOutput).
          30  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`QueryMapsOutput`](crate::operation::query_maps::QueryMapsOutput).
          31  +
    /* BuilderGenerator.kt:253 */
   19     32   
    pub fn build(self) -> crate::operation::query_maps::QueryMapsOutput {
   20         -
        crate::operation::query_maps::QueryMapsOutput {}
          33  +
        /* BuilderGenerator.kt:477 */
          34  +
        crate::operation::query_maps::QueryMapsOutput {
          35  +
        /* BuilderGenerator.kt:477 */}
          36  +
        /* BuilderGenerator.kt:253 */
   21     37   
    }
          38  +
    /* BuilderGenerator.kt:355 */
   22     39   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/query_maps/builders.rs

@@ -1,1 +286,346 @@
    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::query_maps::_query_maps_output::QueryMapsOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::query_maps::_query_maps_input::QueryMapsInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::query_maps::builders::QueryMapsInputBuilder {
    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::query_maps::QueryMapsOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::query_maps::QueryMapsError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.query_maps();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `QueryMaps`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `QueryMaps`.
   24     27   
///
   25         -
/// This test serializes simple and complex maps.
          28  +
/// /* FluentBuilderGenerator.kt:130 */This test serializes simple and complex maps.
          29  +
/* RustType.kt:516 */
   26     30   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          31  +
/* FluentBuilderGenerator.kt:270 */
   27     32   
pub struct QueryMapsFluentBuilder {
   28     33   
    handle: ::std::sync::Arc<crate::client::Handle>,
   29     34   
    inner: crate::operation::query_maps::builders::QueryMapsInputBuilder,
   30     35   
    config_override: ::std::option::Option<crate::config::Builder>,
   31     36   
}
          37  +
/* FluentBuilderGenerator.kt:381 */
   32     38   
impl crate::client::customize::internal::CustomizableSend<crate::operation::query_maps::QueryMapsOutput, crate::operation::query_maps::QueryMapsError>
   33     39   
    for QueryMapsFluentBuilder
   34     40   
{
   35     41   
    fn send(
   36     42   
        self,
   37     43   
        config_override: crate::config::Builder,
   38     44   
    ) -> crate::client::customize::internal::BoxFuture<
   39     45   
        crate::client::customize::internal::SendResult<crate::operation::query_maps::QueryMapsOutput, crate::operation::query_maps::QueryMapsError>,
   40     46   
    > {
   41     47   
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
   42     48   
    }
   43     49   
}
          50  +
/* FluentBuilderGenerator.kt:282 */
   44     51   
impl QueryMapsFluentBuilder {
          52  +
    /* FluentBuilderGenerator.kt:288 */
   45     53   
    /// Creates a new `QueryMapsFluentBuilder`.
   46     54   
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
   47     55   
        Self {
   48     56   
            handle,
   49     57   
            inner: ::std::default::Default::default(),
   50     58   
            config_override: ::std::option::Option::None,
   51     59   
        }
   52     60   
    }
          61  +
    /* FluentBuilderGenerator.kt:301 */
   53     62   
    /// Access the QueryMaps as a reference.
   54     63   
    pub fn as_input(&self) -> &crate::operation::query_maps::builders::QueryMapsInputBuilder {
   55     64   
        &self.inner
   56     65   
    }
          66  +
    /* FluentBuilderGenerator.kt:145 */
   57     67   
    /// Sends the request and returns the response.
   58     68   
    ///
   59     69   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   60     70   
    /// can be matched against.
   61     71   
    ///
   62     72   
    /// By default, any retryable failures will be retried twice. Retry behavior
   63     73   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   64     74   
    /// set when configuring the client.
   65     75   
    pub async fn send(
   66     76   
        self,
   67     77   
    ) -> ::std::result::Result<
   68     78   
        crate::operation::query_maps::QueryMapsOutput,
   69     79   
        ::aws_smithy_runtime_api::client::result::SdkError<
   70     80   
            crate::operation::query_maps::QueryMapsError,
   71     81   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   72     82   
        >,
   73     83   
    > {
   74     84   
        let input = self
   75     85   
            .inner
   76     86   
            .build()
   77     87   
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
   78     88   
        let runtime_plugins = crate::operation::query_maps::QueryMaps::operation_runtime_plugins(
   79     89   
            self.handle.runtime_plugins.clone(),
   80     90   
            &self.handle.conf,
   81     91   
            self.config_override,
   82     92   
        );
   83     93   
        crate::operation::query_maps::QueryMaps::orchestrate(&runtime_plugins, input).await
   84     94   
    }
   85     95   
   86     96   
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
   87     97   
    pub fn customize(
   88     98   
        self,
   89     99   
    ) -> crate::client::customize::CustomizableOperation<
   90    100   
        crate::operation::query_maps::QueryMapsOutput,
   91    101   
        crate::operation::query_maps::QueryMapsError,
   92    102   
        Self,
   93    103   
    > {
   94    104   
        crate::client::customize::CustomizableOperation::new(self)
   95    105   
    }
         106  +
    /* FluentBuilderGenerator.kt:315 */
   96    107   
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
   97    108   
        self.set_config_override(::std::option::Option::Some(config_override.into()));
   98    109   
        self
   99    110   
    }
  100    111   
  101    112   
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
  102    113   
        self.config_override = config_override;
  103    114   
        self
  104    115   
    }
  105         -
    ///
         116  +
    /// /* FluentBuilderGenerator.kt:466 */
  106    117   
    /// Adds a key-value pair to `MapArg`.
  107    118   
    ///
  108    119   
    /// To override the contents of this collection use [`set_map_arg`](Self::set_map_arg).
  109    120   
    ///
         121  +
    /* FluentBuilderGenerator.kt:473 */
  110    122   
    #[allow(missing_docs)] // documentation missing in model
         123  +
                           /* FluentBuilderGenerator.kt:475 */
  111    124   
    pub fn map_arg(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
  112    125   
        self.inner = self.inner.map_arg(k.into(), v.into());
  113    126   
        self
  114    127   
    }
         128  +
    /* FluentBuilderGenerator.kt:498 */
  115    129   
    #[allow(missing_docs)] // documentation missing in model
         130  +
                           /* FluentBuilderGenerator.kt:500 */
  116    131   
    pub fn set_map_arg(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
  117    132   
        self.inner = self.inner.set_map_arg(input);
  118    133   
        self
  119    134   
    }
         135  +
    /* FluentBuilderGenerator.kt:518 */
  120    136   
    #[allow(missing_docs)] // documentation missing in model
         137  +
                           /* FluentBuilderGenerator.kt:520 */
  121    138   
    pub fn get_map_arg(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
  122    139   
        self.inner.get_map_arg()
  123    140   
    }
  124         -
    ///
         141  +
    /// /* FluentBuilderGenerator.kt:466 */
  125    142   
    /// Adds a key-value pair to `RenamedMapArg`.
  126    143   
    ///
  127    144   
    /// To override the contents of this collection use [`set_renamed_map_arg`](Self::set_renamed_map_arg).
  128    145   
    ///
         146  +
    /* FluentBuilderGenerator.kt:473 */
  129    147   
    #[allow(missing_docs)] // documentation missing in model
         148  +
                           /* FluentBuilderGenerator.kt:475 */
  130    149   
    pub fn renamed_map_arg(
  131    150   
        mut self,
  132    151   
        k: impl ::std::convert::Into<::std::string::String>,
  133    152   
        v: impl ::std::convert::Into<::std::string::String>,
  134    153   
    ) -> Self {
  135    154   
        self.inner = self.inner.renamed_map_arg(k.into(), v.into());
  136    155   
        self
  137    156   
    }
         157  +
    /* FluentBuilderGenerator.kt:498 */
  138    158   
    #[allow(missing_docs)] // documentation missing in model
         159  +
                           /* FluentBuilderGenerator.kt:500 */
  139    160   
    pub fn set_renamed_map_arg(
  140    161   
        mut self,
  141    162   
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
  142    163   
    ) -> Self {
  143    164   
        self.inner = self.inner.set_renamed_map_arg(input);
  144    165   
        self
  145    166   
    }
         167  +
    /* FluentBuilderGenerator.kt:518 */
  146    168   
    #[allow(missing_docs)] // documentation missing in model
         169  +
                           /* FluentBuilderGenerator.kt:520 */
  147    170   
    pub fn get_renamed_map_arg(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
  148    171   
        self.inner.get_renamed_map_arg()
  149    172   
    }
  150         -
    ///
         173  +
    /// /* FluentBuilderGenerator.kt:466 */
  151    174   
    /// Adds a key-value pair to `ComplexMapArg`.
  152    175   
    ///
  153    176   
    /// To override the contents of this collection use [`set_complex_map_arg`](Self::set_complex_map_arg).
  154    177   
    ///
         178  +
    /* FluentBuilderGenerator.kt:473 */
  155    179   
    #[allow(missing_docs)] // documentation missing in model
         180  +
                           /* FluentBuilderGenerator.kt:475 */
  156    181   
    pub fn complex_map_arg(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::GreetingStruct) -> Self {
  157    182   
        self.inner = self.inner.complex_map_arg(k.into(), v);
  158    183   
        self
  159    184   
    }
         185  +
    /* FluentBuilderGenerator.kt:498 */
  160    186   
    #[allow(missing_docs)] // documentation missing in model
         187  +
                           /* FluentBuilderGenerator.kt:500 */
  161    188   
    pub fn set_complex_map_arg(
  162    189   
        mut self,
  163    190   
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::GreetingStruct>>,
  164    191   
    ) -> Self {
  165    192   
        self.inner = self.inner.set_complex_map_arg(input);
  166    193   
        self
  167    194   
    }
         195  +
    /* FluentBuilderGenerator.kt:518 */
  168    196   
    #[allow(missing_docs)] // documentation missing in model
         197  +
                           /* FluentBuilderGenerator.kt:520 */
  169    198   
    pub fn get_complex_map_arg(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::GreetingStruct>> {
  170    199   
        self.inner.get_complex_map_arg()
  171    200   
    }
  172         -
    ///
         201  +
    /// /* FluentBuilderGenerator.kt:466 */
  173    202   
    /// Adds a key-value pair to `MapWithXmlMemberName`.
  174    203   
    ///
  175    204   
    /// To override the contents of this collection use [`set_map_with_xml_member_name`](Self::set_map_with_xml_member_name).
  176    205   
    ///
         206  +
    /* FluentBuilderGenerator.kt:473 */
  177    207   
    #[allow(missing_docs)] // documentation missing in model
         208  +
                           /* FluentBuilderGenerator.kt:475 */
  178    209   
    pub fn map_with_xml_member_name(
  179    210   
        mut self,
  180    211   
        k: impl ::std::convert::Into<::std::string::String>,
  181    212   
        v: impl ::std::convert::Into<::std::string::String>,
  182    213   
    ) -> Self {
  183    214   
        self.inner = self.inner.map_with_xml_member_name(k.into(), v.into());
  184    215   
        self
  185    216   
    }
         217  +
    /* FluentBuilderGenerator.kt:498 */
  186    218   
    #[allow(missing_docs)] // documentation missing in model
         219  +
                           /* FluentBuilderGenerator.kt:500 */
  187    220   
    pub fn set_map_with_xml_member_name(
  188    221   
        mut self,
  189    222   
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
  190    223   
    ) -> Self {
  191    224   
        self.inner = self.inner.set_map_with_xml_member_name(input);
  192    225   
        self
  193    226   
    }
         227  +
    /* FluentBuilderGenerator.kt:518 */
  194    228   
    #[allow(missing_docs)] // documentation missing in model
         229  +
                           /* FluentBuilderGenerator.kt:520 */
  195    230   
    pub fn get_map_with_xml_member_name(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
  196    231   
        self.inner.get_map_with_xml_member_name()
  197    232   
    }
  198         -
    ///
         233  +
    /// /* FluentBuilderGenerator.kt:466 */
  199    234   
    /// Adds a key-value pair to `FlattenedMap`.
  200    235   
    ///
  201    236   
    /// To override the contents of this collection use [`set_flattened_map`](Self::set_flattened_map).
  202    237   
    ///
         238  +
    /* FluentBuilderGenerator.kt:473 */
  203    239   
    #[allow(missing_docs)] // documentation missing in model
         240  +
                           /* FluentBuilderGenerator.kt:475 */
  204    241   
    pub fn flattened_map(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
  205    242   
        self.inner = self.inner.flattened_map(k.into(), v.into());
  206    243   
        self
  207    244   
    }
         245  +
    /* FluentBuilderGenerator.kt:498 */
  208    246   
    #[allow(missing_docs)] // documentation missing in model
         247  +
                           /* FluentBuilderGenerator.kt:500 */
  209    248   
    pub fn set_flattened_map(
  210    249   
        mut self,
  211    250   
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
  212    251   
    ) -> Self {
  213    252   
        self.inner = self.inner.set_flattened_map(input);
  214    253   
        self
  215    254   
    }
         255  +
    /* FluentBuilderGenerator.kt:518 */
  216    256   
    #[allow(missing_docs)] // documentation missing in model
         257  +
                           /* FluentBuilderGenerator.kt:520 */
  217    258   
    pub fn get_flattened_map(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
  218    259   
        self.inner.get_flattened_map()
  219    260   
    }
  220         -
    ///
         261  +
    /// /* FluentBuilderGenerator.kt:466 */
  221    262   
    /// Adds a key-value pair to `FlattenedMapWithXmlName`.
  222    263   
    ///
  223    264   
    /// To override the contents of this collection use [`set_flattened_map_with_xml_name`](Self::set_flattened_map_with_xml_name).
  224    265   
    ///
         266  +
    /* FluentBuilderGenerator.kt:473 */
  225    267   
    #[allow(missing_docs)] // documentation missing in model
         268  +
                           /* FluentBuilderGenerator.kt:475 */
  226    269   
    pub fn flattened_map_with_xml_name(
  227    270   
        mut self,
  228    271   
        k: impl ::std::convert::Into<::std::string::String>,
  229    272   
        v: impl ::std::convert::Into<::std::string::String>,
  230    273   
    ) -> Self {
  231    274   
        self.inner = self.inner.flattened_map_with_xml_name(k.into(), v.into());
  232    275   
        self
  233    276   
    }
         277  +
    /* FluentBuilderGenerator.kt:498 */
  234    278   
    #[allow(missing_docs)] // documentation missing in model
         279  +
                           /* FluentBuilderGenerator.kt:500 */
  235    280   
    pub fn set_flattened_map_with_xml_name(
  236    281   
        mut self,
  237    282   
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
  238    283   
    ) -> Self {
  239    284   
        self.inner = self.inner.set_flattened_map_with_xml_name(input);
  240    285   
        self
  241    286   
    }
         287  +
    /* FluentBuilderGenerator.kt:518 */
  242    288   
    #[allow(missing_docs)] // documentation missing in model
         289  +
                           /* FluentBuilderGenerator.kt:520 */
  243    290   
    pub fn get_flattened_map_with_xml_name(
  244    291   
        &self,
  245    292   
    ) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
  246    293   
        self.inner.get_flattened_map_with_xml_name()
  247    294   
    }
  248         -
    ///
         295  +
    /// /* FluentBuilderGenerator.kt:466 */
  249    296   
    /// Adds a key-value pair to `MapOfLists`.
  250    297   
    ///
  251    298   
    /// To override the contents of this collection use [`set_map_of_lists`](Self::set_map_of_lists).
  252    299   
    ///
         300  +
    /* FluentBuilderGenerator.kt:473 */
  253    301   
    #[allow(missing_docs)] // documentation missing in model
         302  +
                           /* FluentBuilderGenerator.kt:475 */
  254    303   
    pub fn map_of_lists(mut self, k: impl ::std::convert::Into<::std::string::String>, v: ::std::vec::Vec<::std::string::String>) -> Self {
  255    304   
        self.inner = self.inner.map_of_lists(k.into(), v);
  256    305   
        self
  257    306   
    }
         307  +
    /* FluentBuilderGenerator.kt:498 */
  258    308   
    #[allow(missing_docs)] // documentation missing in model
         309  +
                           /* FluentBuilderGenerator.kt:500 */
  259    310   
    pub fn set_map_of_lists(
  260    311   
        mut self,
  261    312   
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>>,
  262    313   
    ) -> Self {
  263    314   
        self.inner = self.inner.set_map_of_lists(input);
  264    315   
        self
  265    316   
    }
         317  +
    /* FluentBuilderGenerator.kt:518 */
  266    318   
    #[allow(missing_docs)] // documentation missing in model
         319  +
                           /* FluentBuilderGenerator.kt:520 */
  267    320   
    pub fn get_map_of_lists(
  268    321   
        &self,
  269    322   
    ) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>> {
  270    323   
        self.inner.get_map_of_lists()
  271    324   
    }
         325  +
    /* FluentBuilderGenerator.kt:498 */
  272    326   
    #[allow(missing_docs)] // documentation missing in model
         327  +
                           /* FluentBuilderGenerator.kt:500 */
  273    328   
    pub fn nested_struct_with_map(mut self, input: crate::types::NestedStructWithMap) -> Self {
  274    329   
        self.inner = self.inner.nested_struct_with_map(input);
  275    330   
        self
  276    331   
    }
         332  +
    /* FluentBuilderGenerator.kt:498 */
  277    333   
    #[allow(missing_docs)] // documentation missing in model
         334  +
                           /* FluentBuilderGenerator.kt:500 */
  278    335   
    pub fn set_nested_struct_with_map(mut self, input: ::std::option::Option<crate::types::NestedStructWithMap>) -> Self {
  279    336   
        self.inner = self.inner.set_nested_struct_with_map(input);
  280    337   
        self
  281    338   
    }
         339  +
    /* FluentBuilderGenerator.kt:518 */
  282    340   
    #[allow(missing_docs)] // documentation missing in model
         341  +
                           /* FluentBuilderGenerator.kt:520 */
  283    342   
    pub fn get_nested_struct_with_map(&self) -> &::std::option::Option<crate::types::NestedStructWithMap> {
  284    343   
        self.inner.get_nested_struct_with_map()
  285    344   
    }
         345  +
    /* FluentBuilderGenerator.kt:282 */
  286    346   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/query_timestamps.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 `QueryTimestamps`.
           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 QueryTimestamps;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl QueryTimestamps {
    7         -
    /// Creates a new `QueryTimestamps`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `QueryTimestamps`
          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::query_timestamps::QueryTimestampsInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::query_timestamps::QueryTimestampsOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::query_timestamps::QueryTimestampsError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -57,66 +375,451 @@
   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 QueryTimestamps {
   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("QueryTimestamps");
   91    102   
   92    103   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   93    104   
            QueryTimestampsRequestSerializer,
   94    105   
        ));
   95    106   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
   96    107   
            QueryTimestampsResponseDeserializer,
   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   
            "QueryTimestamps",
  105    116   
            "Query Protocol",
  106    117   
        ));
  107    118   
  108    119   
        ::std::option::Option::Some(cfg.freeze())
  109    120   
    }
  110    121   
  111    122   
    fn runtime_components(
  112    123   
        &self,
  113    124   
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
  114    125   
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
  115    126   
        #[allow(unused_mut)]
  116    127   
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("QueryTimestamps")
  117    128   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  118    129   
            .with_interceptor(QueryTimestampsEndpointParamsInterceptor)
  119    130   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  120    131   
                crate::operation::query_timestamps::QueryTimestampsError,
  121    132   
            >::new())
  122    133   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  123    134   
                crate::operation::query_timestamps::QueryTimestampsError,
  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 QueryTimestampsResponseDeserializer;
  132    144   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for QueryTimestampsResponseDeserializer {
  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_query_timestamps::de_query_timestamps_http_error(status, headers, body)
  145    157   
        } else {
  146    158   
            crate::protocol_serde::shape_query_timestamps::de_query_timestamps_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 QueryTimestampsRequestSerializer;
  153    166   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for QueryTimestampsRequestSerializer {
  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::query_timestamps::QueryTimestampsInput>()
  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::query_timestamps::QueryTimestampsInput,
  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, "/").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::query_timestamps::QueryTimestampsInput,
  179    192   
                builder: ::http::request::Builder,
  180    193   
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  181    194   
                let mut uri = ::std::string::String::new();
  182    195   
                uri_base(input, &mut uri)?;
  183    196   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  184    197   
            }
  185    198   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  186    199   
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
  187    200   
            builder
  188    201   
        };
  189    202   
        let body = ::aws_smithy_types::body::SdkBody::from(
  190    203   
            crate::protocol_serde::shape_query_timestamps_input::ser_query_timestamps_input_input_input(&input)?,
  191    204   
        );
  192    205   
        if let Some(content_length) = body.content_length() {
  193    206   
            let content_length = content_length.to_string();
  194    207   
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
  195    208   
        }
  196    209   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  197    210   
    }
  198    211   
}
         212  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  199    213   
#[derive(Debug)]
  200    214   
struct QueryTimestampsEndpointParamsInterceptor;
  201    215   
  202    216   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for QueryTimestampsEndpointParamsInterceptor {
  203    217   
    fn name(&self) -> &'static str {
  204    218   
        "QueryTimestampsEndpointParamsInterceptor"
  205    219   
    }
  206    220   
  207    221   
    fn read_before_execution(
  208    222   
        &self,
  209    223   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  210    224   
            '_,
  211    225   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  212    226   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  213    227   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  214    228   
        >,
  215    229   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  216    230   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  217    231   
        let _input = context
  218    232   
            .input()
  219    233   
            .downcast_ref::<QueryTimestampsInput>()
  220    234   
            .ok_or("failed to downcast to QueryTimestampsInput")?;
  221    235   
  222    236   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  223    237   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  224    238   
        })?;
  225    239   
        cfg.interceptor_state()
  226    240   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  227    241   
        ::std::result::Result::Ok(())
  228    242   
    }
  229    243   
}
  230    244   
  231    245   
// The get_* functions below are generated from JMESPath expressions in the
  232    246   
// operationContextParams trait. They target the operation's input shape.
  233    247   
         248  +
/* RustType.kt:516 */
  234    249   
#[allow(unreachable_code, unused_variables)]
         250  +
/* RustType.kt:516 */
  235    251   
#[cfg(test)]
         252  +
/* ProtocolTestGenerator.kt:98 */
  236    253   
mod query_timestamps_test {
  237    254   
  238    255   
    /// Serializes timestamps
  239    256   
    /// Test ID: QueryTimestampsInput
  240    257   
    #[::tokio::test]
  241    258   
    #[::tracing_test::traced_test]
  242    259   
    async fn query_timestamps_input_request() {
  243    260   
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  244    261   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  245    262   
  246    263   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  247    264   
        let result = client
  248    265   
            .query_timestamps()
  249    266   
            .set_normal_format(::std::option::Option::Some(::aws_smithy_types::DateTime::from_fractional_secs(
  250    267   
                1422172800, 0_f64,
  251    268   
            )))
  252    269   
            .set_epoch_member(::std::option::Option::Some(::aws_smithy_types::DateTime::from_fractional_secs(
  253    270   
                1422172800, 0_f64,
  254    271   
            )))
  255    272   
            .set_epoch_target(::std::option::Option::Some(::aws_smithy_types::DateTime::from_fractional_secs(
  256    273   
                1422172800, 0_f64,
  257    274   
            )))
  258    275   
            .send()
  259    276   
            .await;
  260    277   
        let _ = dbg!(result);
  261    278   
        let http_request = request_receiver.expect_request();
  262    279   
        let expected_headers = [("Content-Type", "application/x-www-form-urlencoded")];
  263    280   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  264    281   
        let required_headers = &["Content-Length"];
  265    282   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::require_headers(http_request.headers(), required_headers));
  266    283   
        let body = http_request.body().bytes().expect("body should be strict");
  267    284   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(
  268    285   
            body,
  269    286   
            "Action=QueryTimestamps&Version=2020-01-08&normalFormat=2015-01-25T08%3A00%3A00Z&epochMember=1422172800&epochTarget=1422172800",
  270    287   
            ::aws_smithy_protocol_test::MediaType::from("application/x-www-form-urlencoded"),
  271    288   
        ));
  272    289   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  273    290   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  274    291   
        ::pretty_assertions::assert_eq!(uri.path(), "/", "path was incorrect");
  275    292   
    }
         293  +
         294  +
    /* ProtocolTestGenerator.kt:98 */
  276    295   
}
  277    296   
         297  +
/* OperationErrorGenerator.kt:79 */
  278    298   
/// Error type for the `QueryTimestampsError` operation.
         299  +
/* RustType.kt:516 */
  279    300   
#[non_exhaustive]
         301  +
/* RustType.kt:516 */
  280    302   
#[derive(::std::fmt::Debug)]
  281         -
pub enum QueryTimestampsError {
         303  +
pub /* OperationErrorGenerator.kt:81 */ enum QueryTimestampsError {
         304  +
    /* OperationErrorGenerator.kt:88 */
  282    305   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  283    306   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  284    307   
    variable wildcard pattern and check `.code()`:
  285    308   
     \
  286    309   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  287    310   
     \
  288    311   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-QueryTimestampsError) for what information is available for the error.")]
  289    312   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         313  +
    /* OperationErrorGenerator.kt:81 */
  290    314   
}
         315  +
/* OperationErrorGenerator.kt:218 */
  291    316   
impl QueryTimestampsError {
         317  +
    /* OperationErrorGenerator.kt:219 */
  292    318   
    /// Creates the `QueryTimestampsError::Unhandled` variant from any error type.
  293    319   
    pub fn unhandled(
  294    320   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  295    321   
    ) -> Self {
  296    322   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  297    323   
            source: err.into(),
  298    324   
            meta: ::std::default::Default::default(),
  299    325   
        })
  300    326   
    }
  301    327   
  302    328   
    /// Creates the `QueryTimestampsError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  303    329   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  304    330   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  305    331   
            source: err.clone().into(),
  306    332   
            meta: err,
  307    333   
        })
  308    334   
    }
  309         -
    ///
         335  +
    /// /* OperationErrorGenerator.kt:236 */
  310    336   
    /// Returns error metadata, which includes the error code, message,
  311    337   
    /// request ID, and potentially additional information.
  312    338   
    ///
         339  +
    /* OperationErrorGenerator.kt:242 */
  313    340   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         341  +
        /* OperationErrorGenerator.kt:243 */
  314    342   
        match self {
  315         -
            Self::Unhandled(e) => &e.meta,
         343  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         344  +
            /* OperationErrorGenerator.kt:243 */
  316    345   
        }
         346  +
        /* OperationErrorGenerator.kt:242 */
  317    347   
    }
         348  +
    /* OperationErrorGenerator.kt:218 */
  318    349   
}
         350  +
/* OperationErrorGenerator.kt:269 */
  319    351   
impl ::std::error::Error for QueryTimestampsError {
         352  +
    /* OperationErrorGenerator.kt:270 */
  320    353   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         354  +
        /* OperationErrorGenerator.kt:318 */
  321    355   
        match self {
  322         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         356  +
            /* OperationErrorGenerator.kt:326 */
         357  +
            Self::Unhandled(_inner) => {
         358  +
                /* OperationErrorGenerator.kt:279 */
         359  +
                ::std::option::Option::Some(&*_inner.source)
         360  +
                /* OperationErrorGenerator.kt:326 */
         361  +
            } /* OperationErrorGenerator.kt:318 */
  323    362   
        }
         363  +
        /* OperationErrorGenerator.kt:270 */
  324    364   
    }
         365  +
    /* OperationErrorGenerator.kt:269 */
  325    366   
}
         367  +
/* OperationErrorGenerator.kt:133 */
  326    368   
impl ::std::fmt::Display for QueryTimestampsError {
         369  +
    /* OperationErrorGenerator.kt:134 */
  327    370   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         371  +
        /* OperationErrorGenerator.kt:318 */
  328    372   
        match self {
         373  +
            /* OperationErrorGenerator.kt:326 */
  329    374   
            Self::Unhandled(_inner) => {
         375  +
                /* OperationErrorGenerator.kt:139 */
  330    376   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  331    377   
                    write!(f, "unhandled error ({code})")
  332    378   
                } else {
  333    379   
                    f.write_str("unhandled error")
  334    380   
                }
         381  +
                /* OperationErrorGenerator.kt:326 */
         382  +
            } /* OperationErrorGenerator.kt:318 */
  335    383   
        }
         384  +
        /* OperationErrorGenerator.kt:134 */
  336    385   
    }
  337         -
    }
         386  +
    /* OperationErrorGenerator.kt:133 */
  338    387   
}
         388  +
/* OperationErrorGenerator.kt:182 */
  339    389   
impl ::aws_smithy_types::retry::ProvideErrorKind for QueryTimestampsError {
         390  +
    /* OperationErrorGenerator.kt:186 */
  340    391   
    fn code(&self) -> ::std::option::Option<&str> {
         392  +
        /* OperationErrorGenerator.kt:187 */
  341    393   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         394  +
        /* OperationErrorGenerator.kt:186 */
  342    395   
    }
         396  +
    /* OperationErrorGenerator.kt:190 */
  343    397   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         398  +
        /* OperationErrorGenerator.kt:197 */
  344    399   
        ::std::option::Option::None
         400  +
        /* OperationErrorGenerator.kt:190 */
  345    401   
    }
         402  +
    /* OperationErrorGenerator.kt:182 */
  346    403   
}
         404  +
/* OperationErrorGenerator.kt:163 */
  347    405   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for QueryTimestampsError {
         406  +
    /* OperationErrorGenerator.kt:164 */
  348    407   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         408  +
        /* OperationErrorGenerator.kt:318 */
  349    409   
        match self {
  350         -
            Self::Unhandled(_inner) => &_inner.meta,
         410  +
            /* OperationErrorGenerator.kt:326 */
         411  +
            Self::Unhandled(_inner) => {
         412  +
                /* OperationErrorGenerator.kt:168 */
         413  +
                &_inner.meta
         414  +
                /* OperationErrorGenerator.kt:326 */
         415  +
            } /* OperationErrorGenerator.kt:318 */
  351    416   
        }
         417  +
        /* OperationErrorGenerator.kt:164 */
  352    418   
    }
         419  +
    /* OperationErrorGenerator.kt:163 */
  353    420   
}
         421  +
/* OperationErrorGenerator.kt:109 */
  354    422   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for QueryTimestampsError {
         423  +
    /* OperationErrorGenerator.kt:110 */
  355    424   
    fn create_unhandled_error(
  356    425   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  357    426   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  358    427   
    ) -> Self {
         428  +
        /* OperationErrorGenerator.kt:121 */
  359    429   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  360    430   
            source,
  361    431   
            meta: meta.unwrap_or_default(),
  362    432   
        })
         433  +
        /* OperationErrorGenerator.kt:110 */
  363    434   
    }
         435  +
    /* OperationErrorGenerator.kt:109 */
  364    436   
}
  365    437   
         438  +
/* CodegenDelegator.kt:255 */
  366    439   
pub use crate::operation::query_timestamps::_query_timestamps_output::QueryTimestampsOutput;
  367    440   
         441  +
/* CodegenDelegator.kt:255 */
  368    442   
pub use crate::operation::query_timestamps::_query_timestamps_input::QueryTimestampsInput;
  369    443   
         444  +
/* RustModule.kt:172 */
  370    445   
mod _query_timestamps_input;
  371    446   
         447  +
/* RustModule.kt:172 */
  372    448   
mod _query_timestamps_output;
  373    449   
  374         -
/// Builders
         450  +
/// /* CodegenDelegator.kt:51 */Builders
  375    451   
pub mod builders;

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/query_timestamps/_query_timestamps_input.rs

@@ -1,1 +95,176 @@
    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 QueryTimestampsInput {
           8  +
pub /* StructureGenerator.kt:201 */ struct QueryTimestampsInput {
           9  +
    /* StructureGenerator.kt:231 */
    6     10   
    #[allow(missing_docs)] // documentation missing in model
    7     11   
    pub normal_format: ::std::option::Option<::aws_smithy_types::DateTime>,
          12  +
    /* StructureGenerator.kt:231 */
    8     13   
    #[allow(missing_docs)] // documentation missing in model
    9     14   
    pub epoch_member: ::std::option::Option<::aws_smithy_types::DateTime>,
          15  +
    /* StructureGenerator.kt:231 */
   10     16   
    #[allow(missing_docs)] // documentation missing in model
   11     17   
    pub epoch_target: ::std::option::Option<::aws_smithy_types::DateTime>,
          18  +
    /* StructureGenerator.kt:201 */
   12     19   
}
          20  +
/* StructureGenerator.kt:135 */
   13     21   
impl QueryTimestampsInput {
          22  +
    /* StructureGenerator.kt:231 */
   14     23   
    #[allow(missing_docs)] // documentation missing in model
          24  +
                           /* StructureGenerator.kt:166 */
   15     25   
    pub fn normal_format(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
          26  +
        /* StructureGenerator.kt:170 */
   16     27   
        self.normal_format.as_ref()
          28  +
        /* StructureGenerator.kt:166 */
   17     29   
    }
          30  +
    /* StructureGenerator.kt:231 */
   18     31   
    #[allow(missing_docs)] // documentation missing in model
          32  +
                           /* StructureGenerator.kt:166 */
   19     33   
    pub fn epoch_member(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
          34  +
        /* StructureGenerator.kt:170 */
   20     35   
        self.epoch_member.as_ref()
          36  +
        /* StructureGenerator.kt:166 */
   21     37   
    }
          38  +
    /* StructureGenerator.kt:231 */
   22     39   
    #[allow(missing_docs)] // documentation missing in model
          40  +
                           /* StructureGenerator.kt:166 */
   23     41   
    pub fn epoch_target(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
          42  +
        /* StructureGenerator.kt:170 */
   24     43   
        self.epoch_target.as_ref()
          44  +
        /* StructureGenerator.kt:166 */
   25     45   
    }
          46  +
    /* StructureGenerator.kt:135 */
   26     47   
}
          48  +
/* ClientCodegenVisitor.kt:237 */
   27     49   
impl QueryTimestampsInput {
   28         -
    /// Creates a new builder-style object to manufacture [`QueryTimestampsInput`](crate::operation::query_timestamps::QueryTimestampsInput).
          50  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`QueryTimestampsInput`](crate::operation::query_timestamps::QueryTimestampsInput).
          51  +
    /* BuilderGenerator.kt:175 */
   29     52   
    pub fn builder() -> crate::operation::query_timestamps::builders::QueryTimestampsInputBuilder {
          53  +
        /* BuilderGenerator.kt:176 */
   30     54   
        crate::operation::query_timestamps::builders::QueryTimestampsInputBuilder::default()
          55  +
        /* BuilderGenerator.kt:175 */
   31     56   
    }
          57  +
    /* ClientCodegenVisitor.kt:237 */
   32     58   
}
   33     59   
   34         -
/// A builder for [`QueryTimestampsInput`](crate::operation::query_timestamps::QueryTimestampsInput).
          60  +
/// /* BuilderGenerator.kt:342 */A builder for [`QueryTimestampsInput`](crate::operation::query_timestamps::QueryTimestampsInput).
          61  +
/* RustType.kt:516 */
   35     62   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          63  +
/* RustType.kt:516 */
   36     64   
#[non_exhaustive]
          65  +
/* BuilderGenerator.kt:345 */
   37     66   
pub struct QueryTimestampsInputBuilder {
   38         -
    pub(crate) normal_format: ::std::option::Option<::aws_smithy_types::DateTime>,
   39         -
    pub(crate) epoch_member: ::std::option::Option<::aws_smithy_types::DateTime>,
          67  +
    /* BuilderGenerator.kt:275 */ pub(crate) normal_format: ::std::option::Option<::aws_smithy_types::DateTime>,
          68  +
    /* BuilderGenerator.kt:275 */ pub(crate) epoch_member: ::std::option::Option<::aws_smithy_types::DateTime>,
          69  +
    /* BuilderGenerator.kt:275 */
   40     70   
    pub(crate) epoch_target: ::std::option::Option<::aws_smithy_types::DateTime>,
          71  +
    /* BuilderGenerator.kt:345 */
   41     72   
}
          73  +
/* BuilderGenerator.kt:355 */
   42     74   
impl QueryTimestampsInputBuilder {
          75  +
    /* BuilderGenerator.kt:286 */
   43     76   
    #[allow(missing_docs)] // documentation missing in model
          77  +
                           /* BuilderGenerator.kt:291 */
   44     78   
    pub fn normal_format(mut self, input: ::aws_smithy_types::DateTime) -> Self {
          79  +
        /* BuilderGenerator.kt:292 */
   45     80   
        self.normal_format = ::std::option::Option::Some(input);
          81  +
        /* BuilderGenerator.kt:293 */
   46     82   
        self
          83  +
        /* BuilderGenerator.kt:291 */
   47     84   
    }
          85  +
    /* BuilderGenerator.kt:312 */
   48     86   
    #[allow(missing_docs)] // documentation missing in model
          87  +
                           /* BuilderGenerator.kt:314 */
   49     88   
    pub fn set_normal_format(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
          89  +
        /* BuilderGenerator.kt:315 */
   50     90   
        self.normal_format = input;
   51     91   
        self
          92  +
        /* BuilderGenerator.kt:314 */
   52     93   
    }
          94  +
    /* BuilderGenerator.kt:334 */
   53     95   
    #[allow(missing_docs)] // documentation missing in model
          96  +
                           /* BuilderGenerator.kt:336 */
   54     97   
    pub fn get_normal_format(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
          98  +
        /* BuilderGenerator.kt:337 */
   55     99   
        &self.normal_format
         100  +
        /* BuilderGenerator.kt:336 */
   56    101   
    }
         102  +
    /* BuilderGenerator.kt:286 */
   57    103   
    #[allow(missing_docs)] // documentation missing in model
         104  +
                           /* BuilderGenerator.kt:291 */
   58    105   
    pub fn epoch_member(mut self, input: ::aws_smithy_types::DateTime) -> Self {
         106  +
        /* BuilderGenerator.kt:292 */
   59    107   
        self.epoch_member = ::std::option::Option::Some(input);
         108  +
        /* BuilderGenerator.kt:293 */
   60    109   
        self
         110  +
        /* BuilderGenerator.kt:291 */
   61    111   
    }
         112  +
    /* BuilderGenerator.kt:312 */
   62    113   
    #[allow(missing_docs)] // documentation missing in model
         114  +
                           /* BuilderGenerator.kt:314 */
   63    115   
    pub fn set_epoch_member(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
         116  +
        /* BuilderGenerator.kt:315 */
   64    117   
        self.epoch_member = input;
   65    118   
        self
         119  +
        /* BuilderGenerator.kt:314 */
   66    120   
    }
         121  +
    /* BuilderGenerator.kt:334 */
   67    122   
    #[allow(missing_docs)] // documentation missing in model
         123  +
                           /* BuilderGenerator.kt:336 */
   68    124   
    pub fn get_epoch_member(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
         125  +
        /* BuilderGenerator.kt:337 */
   69    126   
        &self.epoch_member
         127  +
        /* BuilderGenerator.kt:336 */
   70    128   
    }
         129  +
    /* BuilderGenerator.kt:286 */
   71    130   
    #[allow(missing_docs)] // documentation missing in model
         131  +
                           /* BuilderGenerator.kt:291 */
   72    132   
    pub fn epoch_target(mut self, input: ::aws_smithy_types::DateTime) -> Self {
         133  +
        /* BuilderGenerator.kt:292 */
   73    134   
        self.epoch_target = ::std::option::Option::Some(input);
         135  +
        /* BuilderGenerator.kt:293 */
   74    136   
        self
         137  +
        /* BuilderGenerator.kt:291 */
   75    138   
    }
         139  +
    /* BuilderGenerator.kt:312 */
   76    140   
    #[allow(missing_docs)] // documentation missing in model
         141  +
                           /* BuilderGenerator.kt:314 */
   77    142   
    pub fn set_epoch_target(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
         143  +
        /* BuilderGenerator.kt:315 */
   78    144   
        self.epoch_target = input;
   79    145   
        self
         146  +
        /* BuilderGenerator.kt:314 */
   80    147   
    }
         148  +
    /* BuilderGenerator.kt:334 */
   81    149   
    #[allow(missing_docs)] // documentation missing in model
         150  +
                           /* BuilderGenerator.kt:336 */
   82    151   
    pub fn get_epoch_target(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
         152  +
        /* BuilderGenerator.kt:337 */
   83    153   
        &self.epoch_target
         154  +
        /* BuilderGenerator.kt:336 */
   84    155   
    }
   85         -
    /// Consumes the builder and constructs a [`QueryTimestampsInput`](crate::operation::query_timestamps::QueryTimestampsInput).
         156  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`QueryTimestampsInput`](crate::operation::query_timestamps::QueryTimestampsInput).
         157  +
    /* BuilderGenerator.kt:253 */
   86    158   
    pub fn build(
   87    159   
        self,
   88    160   
    ) -> ::std::result::Result<crate::operation::query_timestamps::QueryTimestampsInput, ::aws_smithy_types::error::operation::BuildError> {
   89         -
        ::std::result::Result::Ok(crate::operation::query_timestamps::QueryTimestampsInput {
   90         -
            normal_format: self.normal_format,
         161  +
        /* BuilderGenerator.kt:254 */
         162  +
        ::std::result::Result::Ok(
         163  +
            /* BuilderGenerator.kt:477 */
         164  +
            crate::operation::query_timestamps::QueryTimestampsInput {
         165  +
                /* BuilderGenerator.kt:481 */ normal_format: self.normal_format,
         166  +
                /* BuilderGenerator.kt:481 */
   91    167   
                epoch_member: self.epoch_member,
         168  +
                /* BuilderGenerator.kt:481 */
   92    169   
                epoch_target: self.epoch_target,
   93         -
        })
         170  +
                /* BuilderGenerator.kt:477 */
         171  +
            }, /* BuilderGenerator.kt:254 */
         172  +
        )
         173  +
        /* BuilderGenerator.kt:253 */
   94    174   
    }
         175  +
    /* BuilderGenerator.kt:355 */
   95    176   
}