Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-client-test/ec2_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/ec2_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/ec2_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   
            "EC2 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. All EC2 lists are flattened.
  236    253   
    /// Test ID: Ec2Lists
  237    254   
    #[::tokio::test]
  238    255   
    #[::tracing_test::traced_test]
  239    256   
    async fn ec2_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   
@@ -357,374 +486,562 @@
  377    394   
        let body = http_request.body().bytes().expect("body should be strict");
  378    395   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(
  379    396   
            body,
  380    397   
            "Action=QueryLists&Version=2020-01-08&NestedWithList.ListArg.1=A&NestedWithList.ListArg.2=B",
  381    398   
            ::aws_smithy_protocol_test::MediaType::from("application/x-www-form-urlencoded"),
  382    399   
        ));
  383    400   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  384    401   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  385    402   
        ::pretty_assertions::assert_eq!(uri.path(), "/", "path was incorrect");
  386    403   
    }
         404  +
         405  +
    /* ProtocolTestGenerator.kt:98 */
  387    406   
}
  388    407   
         408  +
/* OperationErrorGenerator.kt:79 */
  389    409   
/// Error type for the `QueryListsError` operation.
         410  +
/* RustType.kt:516 */
  390    411   
#[non_exhaustive]
         412  +
/* RustType.kt:516 */
  391    413   
#[derive(::std::fmt::Debug)]
  392         -
pub enum QueryListsError {
         414  +
pub /* OperationErrorGenerator.kt:81 */ enum QueryListsError {
         415  +
    /* OperationErrorGenerator.kt:88 */
  393    416   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  394    417   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  395    418   
    variable wildcard pattern and check `.code()`:
  396    419   
     \
  397    420   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  398    421   
     \
  399    422   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-QueryListsError) for what information is available for the error.")]
  400    423   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         424  +
    /* OperationErrorGenerator.kt:81 */
  401    425   
}
         426  +
/* OperationErrorGenerator.kt:218 */
  402    427   
impl QueryListsError {
         428  +
    /* OperationErrorGenerator.kt:219 */
  403    429   
    /// Creates the `QueryListsError::Unhandled` variant from any error type.
  404    430   
    pub fn unhandled(
  405    431   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  406    432   
    ) -> Self {
  407    433   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  408    434   
            source: err.into(),
  409    435   
            meta: ::std::default::Default::default(),
  410    436   
        })
  411    437   
    }
  412    438   
  413    439   
    /// Creates the `QueryListsError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  414    440   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  415    441   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  416    442   
            source: err.clone().into(),
  417    443   
            meta: err,
  418    444   
        })
  419    445   
    }
  420         -
    ///
         446  +
    /// /* OperationErrorGenerator.kt:236 */
  421    447   
    /// Returns error metadata, which includes the error code, message,
  422    448   
    /// request ID, and potentially additional information.
  423    449   
    ///
         450  +
    /* OperationErrorGenerator.kt:242 */
  424    451   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         452  +
        /* OperationErrorGenerator.kt:243 */
  425    453   
        match self {
  426         -
            Self::Unhandled(e) => &e.meta,
         454  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         455  +
            /* OperationErrorGenerator.kt:243 */
  427    456   
        }
         457  +
        /* OperationErrorGenerator.kt:242 */
  428    458   
    }
         459  +
    /* OperationErrorGenerator.kt:218 */
  429    460   
}
         461  +
/* OperationErrorGenerator.kt:269 */
  430    462   
impl ::std::error::Error for QueryListsError {
         463  +
    /* OperationErrorGenerator.kt:270 */
  431    464   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         465  +
        /* OperationErrorGenerator.kt:318 */
  432    466   
        match self {
  433         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         467  +
            /* OperationErrorGenerator.kt:326 */
         468  +
            Self::Unhandled(_inner) => {
         469  +
                /* OperationErrorGenerator.kt:279 */
         470  +
                ::std::option::Option::Some(&*_inner.source)
         471  +
                /* OperationErrorGenerator.kt:326 */
         472  +
            } /* OperationErrorGenerator.kt:318 */
  434    473   
        }
         474  +
        /* OperationErrorGenerator.kt:270 */
  435    475   
    }
         476  +
    /* OperationErrorGenerator.kt:269 */
  436    477   
}
         478  +
/* OperationErrorGenerator.kt:133 */
  437    479   
impl ::std::fmt::Display for QueryListsError {
         480  +
    /* OperationErrorGenerator.kt:134 */
  438    481   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         482  +
        /* OperationErrorGenerator.kt:318 */
  439    483   
        match self {
         484  +
            /* OperationErrorGenerator.kt:326 */
  440    485   
            Self::Unhandled(_inner) => {
         486  +
                /* OperationErrorGenerator.kt:139 */
  441    487   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  442    488   
                    write!(f, "unhandled error ({code})")
  443    489   
                } else {
  444    490   
                    f.write_str("unhandled error")
  445    491   
                }
         492  +
                /* OperationErrorGenerator.kt:326 */
         493  +
            } /* OperationErrorGenerator.kt:318 */
  446    494   
        }
         495  +
        /* OperationErrorGenerator.kt:134 */
  447    496   
    }
  448         -
    }
         497  +
    /* OperationErrorGenerator.kt:133 */
  449    498   
}
         499  +
/* OperationErrorGenerator.kt:182 */
  450    500   
impl ::aws_smithy_types::retry::ProvideErrorKind for QueryListsError {
         501  +
    /* OperationErrorGenerator.kt:186 */
  451    502   
    fn code(&self) -> ::std::option::Option<&str> {
         503  +
        /* OperationErrorGenerator.kt:187 */
  452    504   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         505  +
        /* OperationErrorGenerator.kt:186 */
  453    506   
    }
         507  +
    /* OperationErrorGenerator.kt:190 */
  454    508   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         509  +
        /* OperationErrorGenerator.kt:197 */
  455    510   
        ::std::option::Option::None
         511  +
        /* OperationErrorGenerator.kt:190 */
  456    512   
    }
         513  +
    /* OperationErrorGenerator.kt:182 */
  457    514   
}
         515  +
/* OperationErrorGenerator.kt:163 */
  458    516   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for QueryListsError {
         517  +
    /* OperationErrorGenerator.kt:164 */
  459    518   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         519  +
        /* OperationErrorGenerator.kt:318 */
  460    520   
        match self {
  461         -
            Self::Unhandled(_inner) => &_inner.meta,
         521  +
            /* OperationErrorGenerator.kt:326 */
         522  +
            Self::Unhandled(_inner) => {
         523  +
                /* OperationErrorGenerator.kt:168 */
         524  +
                &_inner.meta
         525  +
                /* OperationErrorGenerator.kt:326 */
         526  +
            } /* OperationErrorGenerator.kt:318 */
  462    527   
        }
         528  +
        /* OperationErrorGenerator.kt:164 */
  463    529   
    }
         530  +
    /* OperationErrorGenerator.kt:163 */
  464    531   
}
         532  +
/* OperationErrorGenerator.kt:109 */
  465    533   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for QueryListsError {
         534  +
    /* OperationErrorGenerator.kt:110 */
  466    535   
    fn create_unhandled_error(
  467    536   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  468    537   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  469    538   
    ) -> Self {
         539  +
        /* OperationErrorGenerator.kt:121 */
  470    540   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  471    541   
            source,
  472    542   
            meta: meta.unwrap_or_default(),
  473    543   
        })
         544  +
        /* OperationErrorGenerator.kt:110 */
  474    545   
    }
         546  +
    /* OperationErrorGenerator.kt:109 */
  475    547   
}
  476    548   
         549  +
/* CodegenDelegator.kt:255 */
  477    550   
pub use crate::operation::query_lists::_query_lists_output::QueryListsOutput;
  478    551   
         552  +
/* CodegenDelegator.kt:255 */
  479    553   
pub use crate::operation::query_lists::_query_lists_input::QueryListsInput;
  480    554   
         555  +
/* RustModule.kt:172 */
  481    556   
mod _query_lists_input;
  482    557   
         558  +
/* RustModule.kt:172 */
  483    559   
mod _query_lists_output;
  484    560   
  485         -
/// Builders
         561  +
/// /* CodegenDelegator.kt:51 */Builders
  486    562   
pub mod builders;

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

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

tmp-codegen-diff/codegen-client-test/ec2_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/ec2_query/rust-client-codegen/src/operation/query_lists/builders.rs

@@ -1,1 +201,243 @@
    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 `ListArgWithXmlNameMember`.
  151    174   
    ///
  152    175   
    /// To override the contents of this collection use [`set_list_arg_with_xml_name_member`](Self::set_list_arg_with_xml_name_member).
  153    176   
    ///
         177  +
    /* FluentBuilderGenerator.kt:443 */
  154    178   
    #[allow(missing_docs)] // documentation missing in model
         179  +
                           /* FluentBuilderGenerator.kt:446 */
  155    180   
    pub fn list_arg_with_xml_name_member(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  156    181   
        self.inner = self.inner.list_arg_with_xml_name_member(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_list_arg_with_xml_name_member(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
  161    188   
        self.inner = self.inner.set_list_arg_with_xml_name_member(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_list_arg_with_xml_name_member(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
  166    195   
        self.inner.get_list_arg_with_xml_name_member()
  167    196   
    }
  168         -
    ///
         197  +
    /// /* FluentBuilderGenerator.kt:436 */
  169    198   
    /// Appends an item to `ListArgWithXmlName`.
  170    199   
    ///
  171    200   
    /// To override the contents of this collection use [`set_list_arg_with_xml_name`](Self::set_list_arg_with_xml_name).
  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(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  175    206   
        self.inner = self.inner.list_arg_with_xml_name(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(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(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(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
  185    220   
        self.inner.get_list_arg_with_xml_name()
  186    221   
    }
         222  +
    /* FluentBuilderGenerator.kt:498 */
  187    223   
    #[allow(missing_docs)] // documentation missing in model
         224  +
                           /* FluentBuilderGenerator.kt:500 */
  188    225   
    pub fn nested_with_list(mut self, input: crate::types::NestedStructWithList) -> Self {
  189    226   
        self.inner = self.inner.nested_with_list(input);
  190    227   
        self
  191    228   
    }
         229  +
    /* FluentBuilderGenerator.kt:498 */
  192    230   
    #[allow(missing_docs)] // documentation missing in model
         231  +
                           /* FluentBuilderGenerator.kt:500 */
  193    232   
    pub fn set_nested_with_list(mut self, input: ::std::option::Option<crate::types::NestedStructWithList>) -> Self {
  194    233   
        self.inner = self.inner.set_nested_with_list(input);
  195    234   
        self
  196    235   
    }
         236  +
    /* FluentBuilderGenerator.kt:518 */
  197    237   
    #[allow(missing_docs)] // documentation missing in model
         238  +
                           /* FluentBuilderGenerator.kt:520 */
  198    239   
    pub fn get_nested_with_list(&self) -> &::std::option::Option<crate::types::NestedStructWithList> {
  199    240   
        self.inner.get_nested_with_list()
  200    241   
    }
         242  +
    /* FluentBuilderGenerator.kt:282 */
  201    243   
}

tmp-codegen-diff/codegen-client-test/ec2_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   
            "EC2 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: Ec2TimestampsInput
  240    257   
    #[::tokio::test]
  241    258   
    #[::tracing_test::traced_test]
  242    259   
    async fn ec2_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/ec2_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   
}

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

tmp-codegen-diff/codegen-client-test/ec2_query/rust-client-codegen/src/operation/query_timestamps/builders.rs

@@ -1,1 +153,183 @@
    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_timestamps::_query_timestamps_output::QueryTimestampsOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::query_timestamps::_query_timestamps_input::QueryTimestampsInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::query_timestamps::builders::QueryTimestampsInputBuilder {
    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_timestamps::QueryTimestampsOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::query_timestamps::QueryTimestampsError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.query_timestamps();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `QueryTimestamps`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `QueryTimestamps`.
   24     27   
///
   25         -
/// This test serializes timestamps. 1. Timestamps are serialized as RFC 3339 date-time values by default. 2. A timestampFormat trait on a member changes the format. 3. A timestampFormat trait on the shape targeted by the member changes the format.
          28  +
/// /* FluentBuilderGenerator.kt:130 */This test serializes timestamps. 1. Timestamps are serialized as RFC 3339 date-time values by default. 2. A timestampFormat trait on a member changes the format. 3. A timestampFormat trait on the shape targeted by the member changes the format.
          29  +
/* RustType.kt:516 */
   26     30   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          31  +
/* FluentBuilderGenerator.kt:270 */
   27     32   
pub struct QueryTimestampsFluentBuilder {
   28     33   
    handle: ::std::sync::Arc<crate::client::Handle>,
   29     34   
    inner: crate::operation::query_timestamps::builders::QueryTimestampsInputBuilder,
   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_timestamps::QueryTimestampsOutput,
   35     41   
        crate::operation::query_timestamps::QueryTimestampsError,
   36     42   
    > for QueryTimestampsFluentBuilder
   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_timestamps::QueryTimestampsOutput,
   44     50   
            crate::operation::query_timestamps::QueryTimestampsError,
   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 QueryTimestampsFluentBuilder {
          58  +
    /* FluentBuilderGenerator.kt:288 */
   51     59   
    /// Creates a new `QueryTimestampsFluentBuilder`.
   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 QueryTimestamps as a reference.
   60     69   
    pub fn as_input(&self) -> &crate::operation::query_timestamps::builders::QueryTimestampsInputBuilder {
   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_timestamps::QueryTimestampsOutput,
   75     85   
        ::aws_smithy_runtime_api::client::result::SdkError<
   76     86   
            crate::operation::query_timestamps::QueryTimestampsError,
   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_timestamps::QueryTimestamps::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_timestamps::QueryTimestamps::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_timestamps::QueryTimestampsOutput,
   97    107   
        crate::operation::query_timestamps::QueryTimestampsError,
   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 normal_format(mut self, input: ::aws_smithy_types::DateTime) -> Self {
  113    126   
        self.inner = self.inner.normal_format(input);
  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_normal_format(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
  118    133   
        self.inner = self.inner.set_normal_format(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_normal_format(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
  123    140   
        self.inner.get_normal_format()
  124    141   
    }
         142  +
    /* FluentBuilderGenerator.kt:498 */
  125    143   
    #[allow(missing_docs)] // documentation missing in model
         144  +
                           /* FluentBuilderGenerator.kt:500 */
  126    145   
    pub fn epoch_member(mut self, input: ::aws_smithy_types::DateTime) -> Self {
  127    146   
        self.inner = self.inner.epoch_member(input);
  128    147   
        self
  129    148   
    }
         149  +
    /* FluentBuilderGenerator.kt:498 */
  130    150   
    #[allow(missing_docs)] // documentation missing in model
         151  +
                           /* FluentBuilderGenerator.kt:500 */
  131    152   
    pub fn set_epoch_member(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
  132    153   
        self.inner = self.inner.set_epoch_member(input);
  133    154   
        self
  134    155   
    }
         156  +
    /* FluentBuilderGenerator.kt:518 */
  135    157   
    #[allow(missing_docs)] // documentation missing in model
         158  +
                           /* FluentBuilderGenerator.kt:520 */
  136    159   
    pub fn get_epoch_member(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
  137    160   
        self.inner.get_epoch_member()
  138    161   
    }
         162  +
    /* FluentBuilderGenerator.kt:498 */
  139    163   
    #[allow(missing_docs)] // documentation missing in model
         164  +
                           /* FluentBuilderGenerator.kt:500 */
  140    165   
    pub fn epoch_target(mut self, input: ::aws_smithy_types::DateTime) -> Self {
  141    166   
        self.inner = self.inner.epoch_target(input);
  142    167   
        self
  143    168   
    }
         169  +
    /* FluentBuilderGenerator.kt:498 */
  144    170   
    #[allow(missing_docs)] // documentation missing in model
         171  +
                           /* FluentBuilderGenerator.kt:500 */
  145    172   
    pub fn set_epoch_target(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
  146    173   
        self.inner = self.inner.set_epoch_target(input);
  147    174   
        self
  148    175   
    }
         176  +
    /* FluentBuilderGenerator.kt:518 */
  149    177   
    #[allow(missing_docs)] // documentation missing in model
         178  +
                           /* FluentBuilderGenerator.kt:520 */
  150    179   
    pub fn get_epoch_target(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
  151    180   
        self.inner.get_epoch_target()
  152    181   
    }
         182  +
    /* FluentBuilderGenerator.kt:282 */
  153    183   
}

tmp-codegen-diff/codegen-client-test/ec2_query/rust-client-codegen/src/operation/recursive_xml_shapes.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 `RecursiveXmlShapes`.
           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 RecursiveXmlShapes;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl RecursiveXmlShapes {
    7         -
    /// Creates a new `RecursiveXmlShapes`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `RecursiveXmlShapes`
          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::recursive_xml_shapes::RecursiveXmlShapesInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::recursive_xml_shapes::RecursiveXmlShapesOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::recursive_xml_shapes::RecursiveXmlShapesError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -57,66 +392,468 @@
   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 RecursiveXmlShapes {
   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("RecursiveXmlShapes");
   91    102   
   92    103   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   93    104   
            RecursiveXmlShapesRequestSerializer,
   94    105   
        ));
   95    106   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
   96    107   
            RecursiveXmlShapesResponseDeserializer,
   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   
            "RecursiveXmlShapes",
  105    116   
            "EC2 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("RecursiveXmlShapes")
  117    128   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  118    129   
            .with_interceptor(RecursiveXmlShapesEndpointParamsInterceptor)
  119    130   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  120    131   
                crate::operation::recursive_xml_shapes::RecursiveXmlShapesError,
  121    132   
            >::new())
  122    133   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  123    134   
                crate::operation::recursive_xml_shapes::RecursiveXmlShapesError,
  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 RecursiveXmlShapesResponseDeserializer;
  132    144   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for RecursiveXmlShapesResponseDeserializer {
  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_recursive_xml_shapes::de_recursive_xml_shapes_http_error(status, headers, body)
  145    157   
        } else {
  146    158   
            crate::protocol_serde::shape_recursive_xml_shapes::de_recursive_xml_shapes_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 RecursiveXmlShapesRequestSerializer;
  153    166   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for RecursiveXmlShapesRequestSerializer {
  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::recursive_xml_shapes::RecursiveXmlShapesInput>()
  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::recursive_xml_shapes::RecursiveXmlShapesInput,
  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::recursive_xml_shapes::RecursiveXmlShapesInput,
  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_recursive_xml_shapes_input::ser_recursive_xml_shapes_input_input_input(&input)?,
  191    204   
        );
  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 RecursiveXmlShapesEndpointParamsInterceptor;
  198    212   
  199    213   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for RecursiveXmlShapesEndpointParamsInterceptor {
  200    214   
    fn name(&self) -> &'static str {
  201    215   
        "RecursiveXmlShapesEndpointParamsInterceptor"
  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::<RecursiveXmlShapesInput>()
  217    231   
            .ok_or("failed to downcast to RecursiveXmlShapesInput")?;
  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 recursive_xml_shapes_test {
  234    251   
  235    252   
    /// Serializes recursive structures
  236    253   
    /// Test ID: Ec2RecursiveShapes
  237    254   
    #[::tokio::test]
  238    255   
    #[::tracing_test::traced_test]
  239    256   
    async fn ec2_recursive_shapes_response() {
  240    257   
        let expected_output = crate::operation::recursive_xml_shapes::RecursiveXmlShapesOutput::builder()
  241    258   
            .set_nested(::std::option::Option::Some(
  242    259   
                crate::types::RecursiveXmlShapesOutputNested1::builder()
  243    260   
                    .set_foo(::std::option::Option::Some("Foo1".to_owned()))
  244    261   
                    .set_nested(::std::option::Option::Some(::std::boxed::Box::new(
  245    262   
                        crate::types::RecursiveXmlShapesOutputNested2::builder()
  246    263   
                            .set_bar(::std::option::Option::Some("Bar1".to_owned()))
  247    264   
                            .set_recursive_member(::std::option::Option::Some(
  248    265   
                                crate::types::RecursiveXmlShapesOutputNested1::builder()
  249    266   
                                    .set_foo(::std::option::Option::Some("Foo2".to_owned()))
  250    267   
                                    .set_nested(::std::option::Option::Some(::std::boxed::Box::new(
  251    268   
                                        crate::types::RecursiveXmlShapesOutputNested2::builder()
  252    269   
                                            .set_bar(::std::option::Option::Some("Bar2".to_owned()))
  253    270   
                                            .build(),
  254    271   
                                    )))
  255    272   
                                    .build(),
  256    273   
                            ))
  257    274   
                            .build(),
  258    275   
                    )))
  259    276   
                    .build(),
  260    277   
            ))
  261    278   
            .build();
  262    279   
        let mut http_response = ::aws_smithy_runtime_api::http::Response::try_from(::http::response::Builder::new()
  263    280   
        .header("Content-Type", "text/xml;charset=UTF-8")
  264    281   
        .status(200)
  265    282   
                    .body(::aws_smithy_types::body::SdkBody::from("<RecursiveXmlShapesResponse xmlns=\"https://example.com/\">\n    <nested>\n        <foo>Foo1</foo>\n        <nested>\n            <bar>Bar1</bar>\n            <recursiveMember>\n                <foo>Foo2</foo>\n                <nested>\n                    <bar>Bar2</bar>\n                </nested>\n            </recursiveMember>\n        </nested>\n    </nested>\n    <requestId>requestid</requestId>\n</RecursiveXmlShapesResponse>\n"))
  266    283   
                    .unwrap()
  267    284   
                    ).unwrap();
  268    285   
        use ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin;
  269    286   
        use ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse;
  270    287   
  271    288   
        let op = crate::operation::recursive_xml_shapes::RecursiveXmlShapes::new();
  272    289   
        let config = op.config().expect("the operation has config");
  273    290   
        let de = config
  274    291   
            .load::<::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer>()
  275    292   
            .expect("the config must have a deserializer");
  276    293   
  277    294   
        let parsed = de.deserialize_streaming(&mut http_response);
  278    295   
        let parsed = parsed.unwrap_or_else(|| {
  279    296   
            let http_response = http_response.map(|body| {
  280    297   
                ::aws_smithy_types::body::SdkBody::from(::bytes::Bytes::copy_from_slice(&::aws_smithy_protocol_test::decode_body_data(
  281    298   
                    body.bytes().unwrap(),
  282    299   
                    ::aws_smithy_protocol_test::MediaType::from("application/xml"),
  283    300   
                )))
  284    301   
            });
  285    302   
            de.deserialize_nonstreaming(&http_response)
  286    303   
        });
  287    304   
        let parsed = parsed
  288    305   
            .expect("should be successful response")
  289    306   
            .downcast::<crate::operation::recursive_xml_shapes::RecursiveXmlShapesOutput>()
  290    307   
            .unwrap();
  291    308   
        ::pretty_assertions::assert_eq!(parsed.nested, expected_output.nested, "Unexpected value for `nested`");
  292    309   
    }
         310  +
         311  +
    /* ProtocolTestGenerator.kt:98 */
  293    312   
}
  294    313   
         314  +
/* OperationErrorGenerator.kt:79 */
  295    315   
/// Error type for the `RecursiveXmlShapesError` operation.
         316  +
/* RustType.kt:516 */
  296    317   
#[non_exhaustive]
         318  +
/* RustType.kt:516 */
  297    319   
#[derive(::std::fmt::Debug)]
  298         -
pub enum RecursiveXmlShapesError {
         320  +
pub /* OperationErrorGenerator.kt:81 */ enum RecursiveXmlShapesError {
         321  +
    /* OperationErrorGenerator.kt:88 */
  299    322   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  300    323   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  301    324   
    variable wildcard pattern and check `.code()`:
  302    325   
     \
  303    326   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  304    327   
     \
  305    328   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-RecursiveXmlShapesError) for what information is available for the error.")]
  306    329   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         330  +
    /* OperationErrorGenerator.kt:81 */
  307    331   
}
         332  +
/* OperationErrorGenerator.kt:218 */
  308    333   
impl RecursiveXmlShapesError {
         334  +
    /* OperationErrorGenerator.kt:219 */
  309    335   
    /// Creates the `RecursiveXmlShapesError::Unhandled` variant from any error type.
  310    336   
    pub fn unhandled(
  311    337   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  312    338   
    ) -> Self {
  313    339   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  314    340   
            source: err.into(),
  315    341   
            meta: ::std::default::Default::default(),
  316    342   
        })
  317    343   
    }
  318    344   
  319    345   
    /// Creates the `RecursiveXmlShapesError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  320    346   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  321    347   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  322    348   
            source: err.clone().into(),
  323    349   
            meta: err,
  324    350   
        })
  325    351   
    }
  326         -
    ///
         352  +
    /// /* OperationErrorGenerator.kt:236 */
  327    353   
    /// Returns error metadata, which includes the error code, message,
  328    354   
    /// request ID, and potentially additional information.
  329    355   
    ///
         356  +
    /* OperationErrorGenerator.kt:242 */
  330    357   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         358  +
        /* OperationErrorGenerator.kt:243 */
  331    359   
        match self {
  332         -
            Self::Unhandled(e) => &e.meta,
         360  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         361  +
            /* OperationErrorGenerator.kt:243 */
  333    362   
        }
         363  +
        /* OperationErrorGenerator.kt:242 */
  334    364   
    }
         365  +
    /* OperationErrorGenerator.kt:218 */
  335    366   
}
         367  +
/* OperationErrorGenerator.kt:269 */
  336    368   
impl ::std::error::Error for RecursiveXmlShapesError {
         369  +
    /* OperationErrorGenerator.kt:270 */
  337    370   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         371  +
        /* OperationErrorGenerator.kt:318 */
  338    372   
        match self {
  339         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         373  +
            /* OperationErrorGenerator.kt:326 */
         374  +
            Self::Unhandled(_inner) => {
         375  +
                /* OperationErrorGenerator.kt:279 */
         376  +
                ::std::option::Option::Some(&*_inner.source)
         377  +
                /* OperationErrorGenerator.kt:326 */
         378  +
            } /* OperationErrorGenerator.kt:318 */
  340    379   
        }
         380  +
        /* OperationErrorGenerator.kt:270 */
  341    381   
    }
         382  +
    /* OperationErrorGenerator.kt:269 */
  342    383   
}
         384  +
/* OperationErrorGenerator.kt:133 */
  343    385   
impl ::std::fmt::Display for RecursiveXmlShapesError {
         386  +
    /* OperationErrorGenerator.kt:134 */
  344    387   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         388  +
        /* OperationErrorGenerator.kt:318 */
  345    389   
        match self {
         390  +
            /* OperationErrorGenerator.kt:326 */
  346    391   
            Self::Unhandled(_inner) => {
         392  +
                /* OperationErrorGenerator.kt:139 */
  347    393   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  348    394   
                    write!(f, "unhandled error ({code})")
  349    395   
                } else {
  350    396   
                    f.write_str("unhandled error")
  351    397   
                }
         398  +
                /* OperationErrorGenerator.kt:326 */
         399  +
            } /* OperationErrorGenerator.kt:318 */
  352    400   
        }
         401  +
        /* OperationErrorGenerator.kt:134 */
  353    402   
    }
  354         -
    }
         403  +
    /* OperationErrorGenerator.kt:133 */
  355    404   
}
         405  +
/* OperationErrorGenerator.kt:182 */
  356    406   
impl ::aws_smithy_types::retry::ProvideErrorKind for RecursiveXmlShapesError {
         407  +
    /* OperationErrorGenerator.kt:186 */
  357    408   
    fn code(&self) -> ::std::option::Option<&str> {
         409  +
        /* OperationErrorGenerator.kt:187 */
  358    410   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         411  +
        /* OperationErrorGenerator.kt:186 */
  359    412   
    }
         413  +
    /* OperationErrorGenerator.kt:190 */
  360    414   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         415  +
        /* OperationErrorGenerator.kt:197 */
  361    416   
        ::std::option::Option::None
         417  +
        /* OperationErrorGenerator.kt:190 */
  362    418   
    }
         419  +
    /* OperationErrorGenerator.kt:182 */
  363    420   
}
         421  +
/* OperationErrorGenerator.kt:163 */
  364    422   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for RecursiveXmlShapesError {
         423  +
    /* OperationErrorGenerator.kt:164 */
  365    424   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         425  +
        /* OperationErrorGenerator.kt:318 */
  366    426   
        match self {
  367         -
            Self::Unhandled(_inner) => &_inner.meta,
         427  +
            /* OperationErrorGenerator.kt:326 */
         428  +
            Self::Unhandled(_inner) => {
         429  +
                /* OperationErrorGenerator.kt:168 */
         430  +
                &_inner.meta
         431  +
                /* OperationErrorGenerator.kt:326 */
         432  +
            } /* OperationErrorGenerator.kt:318 */
  368    433   
        }
         434  +
        /* OperationErrorGenerator.kt:164 */
  369    435   
    }
         436  +
    /* OperationErrorGenerator.kt:163 */
  370    437   
}
         438  +
/* OperationErrorGenerator.kt:109 */
  371    439   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for RecursiveXmlShapesError {
         440  +
    /* OperationErrorGenerator.kt:110 */
  372    441   
    fn create_unhandled_error(
  373    442   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  374    443   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  375    444   
    ) -> Self {
         445  +
        /* OperationErrorGenerator.kt:121 */
  376    446   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  377    447   
            source,
  378    448   
            meta: meta.unwrap_or_default(),
  379    449   
        })
         450  +
        /* OperationErrorGenerator.kt:110 */
  380    451   
    }
         452  +
    /* OperationErrorGenerator.kt:109 */
  381    453   
}
  382    454   
         455  +
/* CodegenDelegator.kt:255 */
  383    456   
pub use crate::operation::recursive_xml_shapes::_recursive_xml_shapes_output::RecursiveXmlShapesOutput;
  384    457   
         458  +
/* CodegenDelegator.kt:255 */
  385    459   
pub use crate::operation::recursive_xml_shapes::_recursive_xml_shapes_input::RecursiveXmlShapesInput;
  386    460   
         461  +
/* RustModule.kt:172 */
  387    462   
mod _recursive_xml_shapes_input;
  388    463   
         464  +
/* RustModule.kt:172 */
  389    465   
mod _recursive_xml_shapes_output;
  390    466   
  391         -
/// Builders
         467  +
/// /* CodegenDelegator.kt:51 */Builders
  392    468   
pub mod builders;

tmp-codegen-diff/codegen-client-test/ec2_query/rust-client-codegen/src/operation/recursive_xml_shapes/_recursive_xml_shapes_input.rs

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

tmp-codegen-diff/codegen-client-test/ec2_query/rust-client-codegen/src/operation/recursive_xml_shapes/_recursive_xml_shapes_output.rs

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

tmp-codegen-diff/codegen-client-test/ec2_query/rust-client-codegen/src/operation/recursive_xml_shapes/builders.rs

@@ -1,1 +111,123 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CodegenDelegator.kt:255 */
    2      3   
pub use crate::operation::recursive_xml_shapes::_recursive_xml_shapes_output::RecursiveXmlShapesOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::recursive_xml_shapes::_recursive_xml_shapes_input::RecursiveXmlShapesInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::recursive_xml_shapes::builders::RecursiveXmlShapesInputBuilder {
    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::recursive_xml_shapes::RecursiveXmlShapesOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::recursive_xml_shapes::RecursiveXmlShapesError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.recursive_xml_shapes();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `RecursiveXmlShapes`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `RecursiveXmlShapes`.
   24     27   
///
   25         -
/// Recursive shapes
          28  +
/// /* FluentBuilderGenerator.kt:130 */Recursive shapes
          29  +
/* RustType.kt:516 */
   26     30   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          31  +
/* FluentBuilderGenerator.kt:270 */
   27     32   
pub struct RecursiveXmlShapesFluentBuilder {
   28     33   
    handle: ::std::sync::Arc<crate::client::Handle>,
   29     34   
    inner: crate::operation::recursive_xml_shapes::builders::RecursiveXmlShapesInputBuilder,
   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::recursive_xml_shapes::RecursiveXmlShapesOutput,
   35     41   
        crate::operation::recursive_xml_shapes::RecursiveXmlShapesError,
   36     42   
    > for RecursiveXmlShapesFluentBuilder
   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::recursive_xml_shapes::RecursiveXmlShapesOutput,
   44     50   
            crate::operation::recursive_xml_shapes::RecursiveXmlShapesError,
   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 RecursiveXmlShapesFluentBuilder {
          58  +
    /* FluentBuilderGenerator.kt:288 */
   51     59   
    /// Creates a new `RecursiveXmlShapesFluentBuilder`.
   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 RecursiveXmlShapes as a reference.
   60     69   
    pub fn as_input(&self) -> &crate::operation::recursive_xml_shapes::builders::RecursiveXmlShapesInputBuilder {
   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::recursive_xml_shapes::RecursiveXmlShapesOutput,
   75     85   
        ::aws_smithy_runtime_api::client::result::SdkError<
   76     86   
            crate::operation::recursive_xml_shapes::RecursiveXmlShapesError,
   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::recursive_xml_shapes::RecursiveXmlShapes::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::recursive_xml_shapes::RecursiveXmlShapes::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::recursive_xml_shapes::RecursiveXmlShapesOutput,
   97    107   
        crate::operation::recursive_xml_shapes::RecursiveXmlShapesError,
   98    108   
        Self,
   99    109   
    > {
  100    110   
        crate::client::customize::CustomizableOperation::new(self)
  101    111   
    }
         112  +
    /* FluentBuilderGenerator.kt:315 */
  102    113   
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
  103    114   
        self.set_config_override(::std::option::Option::Some(config_override.into()));
  104    115   
        self
  105    116   
    }
  106    117   
  107    118   
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
  108    119   
        self.config_override = config_override;
  109    120   
        self
  110    121   
    }
         122  +
    /* FluentBuilderGenerator.kt:282 */
  111    123   
}

tmp-codegen-diff/codegen-client-test/ec2_query/rust-client-codegen/src/operation/simple_input_params.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 `SimpleInputParams`.
           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 SimpleInputParams;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl SimpleInputParams {
    7         -
    /// Creates a new `SimpleInputParams`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `SimpleInputParams`
          13  +
    /* OperationGenerator.kt:87 */
    8     14   
    pub fn new() -> Self {
          15  +
        /* OperationGenerator.kt:88 */
    9     16   
        Self
          17  +
        /* OperationGenerator.kt:87 */
   10     18   
    }
          19  +
    /* OperationGenerator.kt:138 */
   11     20   
    pub(crate) async fn orchestrate(
   12     21   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     22   
        input: crate::operation::simple_input_params::SimpleInputParamsInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::simple_input_params::SimpleInputParamsOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::simple_input_params::SimpleInputParamsError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -57,66 +265,282 @@
   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 SimpleInputParams {
   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("SimpleInputParams");
   91    102   
   92    103   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   93    104   
            SimpleInputParamsRequestSerializer,
   94    105   
        ));
   95    106   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
   96    107   
            SimpleInputParamsResponseDeserializer,
   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   
            "SimpleInputParams",
  105    116   
            "EC2 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("SimpleInputParams")
  117    128   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  118    129   
            .with_interceptor(SimpleInputParamsEndpointParamsInterceptor)
  119    130   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  120    131   
                crate::operation::simple_input_params::SimpleInputParamsError,
  121    132   
            >::new())
  122    133   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  123    134   
                crate::operation::simple_input_params::SimpleInputParamsError,
  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 SimpleInputParamsResponseDeserializer;
  132    144   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for SimpleInputParamsResponseDeserializer {
  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_simple_input_params::de_simple_input_params_http_error(status, headers, body)
  145    157   
        } else {
  146    158   
            crate::protocol_serde::shape_simple_input_params::de_simple_input_params_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 SimpleInputParamsRequestSerializer;
  153    166   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for SimpleInputParamsRequestSerializer {
  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::simple_input_params::SimpleInputParamsInput>()
  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::simple_input_params::SimpleInputParamsInput,
  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::simple_input_params::SimpleInputParamsInput,
  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_simple_input_params_input::ser_simple_input_params_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 SimpleInputParamsEndpointParamsInterceptor;
  201    215   
  202    216   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for SimpleInputParamsEndpointParamsInterceptor {
  203    217   
    fn name(&self) -> &'static str {
  204    218   
        "SimpleInputParamsEndpointParamsInterceptor"
  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::<SimpleInputParamsInput>()
  220    234   
            .ok_or("failed to downcast to SimpleInputParamsInput")?;
  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 simple_input_params_test {
  237    254   
  238    255   
    /// Serializes strings
  239    256   
    /// Test ID: Ec2SimpleInputParamsStrings
  240    257   
    #[::tokio::test]
  241    258   
    #[::tracing_test::traced_test]
  242    259   
    async fn ec2_simple_input_params_strings_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   
@@ -617,634 +746,822 @@
  637    654   
        let body = http_request.body().bytes().expect("body should be strict");
  638    655   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(
  639    656   
            body,
  640    657   
            "Action=SimpleInputParams&Version=2020-01-08&FloatValue=-Infinity&Boo=-Infinity",
  641    658   
            ::aws_smithy_protocol_test::MediaType::from("application/x-www-form-urlencoded"),
  642    659   
        ));
  643    660   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  644    661   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  645    662   
        ::pretty_assertions::assert_eq!(uri.path(), "/", "path was incorrect");
  646    663   
    }
         664  +
         665  +
    /* ProtocolTestGenerator.kt:98 */
  647    666   
}
  648    667   
         668  +
/* OperationErrorGenerator.kt:79 */
  649    669   
/// Error type for the `SimpleInputParamsError` operation.
         670  +
/* RustType.kt:516 */
  650    671   
#[non_exhaustive]
         672  +
/* RustType.kt:516 */
  651    673   
#[derive(::std::fmt::Debug)]
  652         -
pub enum SimpleInputParamsError {
         674  +
pub /* OperationErrorGenerator.kt:81 */ enum SimpleInputParamsError {
         675  +
    /* OperationErrorGenerator.kt:88 */
  653    676   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  654    677   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  655    678   
    variable wildcard pattern and check `.code()`:
  656    679   
     \
  657    680   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  658    681   
     \
  659    682   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-SimpleInputParamsError) for what information is available for the error.")]
  660    683   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         684  +
    /* OperationErrorGenerator.kt:81 */
  661    685   
}
         686  +
/* OperationErrorGenerator.kt:218 */
  662    687   
impl SimpleInputParamsError {
         688  +
    /* OperationErrorGenerator.kt:219 */
  663    689   
    /// Creates the `SimpleInputParamsError::Unhandled` variant from any error type.
  664    690   
    pub fn unhandled(
  665    691   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  666    692   
    ) -> Self {
  667    693   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  668    694   
            source: err.into(),
  669    695   
            meta: ::std::default::Default::default(),
  670    696   
        })
  671    697   
    }
  672    698   
  673    699   
    /// Creates the `SimpleInputParamsError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  674    700   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  675    701   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  676    702   
            source: err.clone().into(),
  677    703   
            meta: err,
  678    704   
        })
  679    705   
    }
  680         -
    ///
         706  +
    /// /* OperationErrorGenerator.kt:236 */
  681    707   
    /// Returns error metadata, which includes the error code, message,
  682    708   
    /// request ID, and potentially additional information.
  683    709   
    ///
         710  +
    /* OperationErrorGenerator.kt:242 */
  684    711   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         712  +
        /* OperationErrorGenerator.kt:243 */
  685    713   
        match self {
  686         -
            Self::Unhandled(e) => &e.meta,
         714  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         715  +
            /* OperationErrorGenerator.kt:243 */
  687    716   
        }
         717  +
        /* OperationErrorGenerator.kt:242 */
  688    718   
    }
         719  +
    /* OperationErrorGenerator.kt:218 */
  689    720   
}
         721  +
/* OperationErrorGenerator.kt:269 */
  690    722   
impl ::std::error::Error for SimpleInputParamsError {
         723  +
    /* OperationErrorGenerator.kt:270 */
  691    724   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         725  +
        /* OperationErrorGenerator.kt:318 */
  692    726   
        match self {
  693         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         727  +
            /* OperationErrorGenerator.kt:326 */
         728  +
            Self::Unhandled(_inner) => {
         729  +
                /* OperationErrorGenerator.kt:279 */
         730  +
                ::std::option::Option::Some(&*_inner.source)
         731  +
                /* OperationErrorGenerator.kt:326 */
         732  +
            } /* OperationErrorGenerator.kt:318 */
  694    733   
        }
         734  +
        /* OperationErrorGenerator.kt:270 */
  695    735   
    }
         736  +
    /* OperationErrorGenerator.kt:269 */
  696    737   
}
         738  +
/* OperationErrorGenerator.kt:133 */
  697    739   
impl ::std::fmt::Display for SimpleInputParamsError {
         740  +
    /* OperationErrorGenerator.kt:134 */
  698    741   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         742  +
        /* OperationErrorGenerator.kt:318 */
  699    743   
        match self {
         744  +
            /* OperationErrorGenerator.kt:326 */
  700    745   
            Self::Unhandled(_inner) => {
         746  +
                /* OperationErrorGenerator.kt:139 */
  701    747   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  702    748   
                    write!(f, "unhandled error ({code})")
  703    749   
                } else {
  704    750   
                    f.write_str("unhandled error")
  705    751   
                }
         752  +
                /* OperationErrorGenerator.kt:326 */
         753  +
            } /* OperationErrorGenerator.kt:318 */
  706    754   
        }
         755  +
        /* OperationErrorGenerator.kt:134 */
  707    756   
    }
  708         -
    }
         757  +
    /* OperationErrorGenerator.kt:133 */
  709    758   
}
         759  +
/* OperationErrorGenerator.kt:182 */
  710    760   
impl ::aws_smithy_types::retry::ProvideErrorKind for SimpleInputParamsError {
         761  +
    /* OperationErrorGenerator.kt:186 */
  711    762   
    fn code(&self) -> ::std::option::Option<&str> {
         763  +
        /* OperationErrorGenerator.kt:187 */
  712    764   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         765  +
        /* OperationErrorGenerator.kt:186 */
  713    766   
    }
         767  +
    /* OperationErrorGenerator.kt:190 */
  714    768   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         769  +
        /* OperationErrorGenerator.kt:197 */
  715    770   
        ::std::option::Option::None
         771  +
        /* OperationErrorGenerator.kt:190 */
  716    772   
    }
         773  +
    /* OperationErrorGenerator.kt:182 */
  717    774   
}
         775  +
/* OperationErrorGenerator.kt:163 */
  718    776   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for SimpleInputParamsError {
         777  +
    /* OperationErrorGenerator.kt:164 */
  719    778   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         779  +
        /* OperationErrorGenerator.kt:318 */
  720    780   
        match self {
  721         -
            Self::Unhandled(_inner) => &_inner.meta,
         781  +
            /* OperationErrorGenerator.kt:326 */
         782  +
            Self::Unhandled(_inner) => {
         783  +
                /* OperationErrorGenerator.kt:168 */
         784  +
                &_inner.meta
         785  +
                /* OperationErrorGenerator.kt:326 */
         786  +
            } /* OperationErrorGenerator.kt:318 */
  722    787   
        }
         788  +
        /* OperationErrorGenerator.kt:164 */
  723    789   
    }
         790  +
    /* OperationErrorGenerator.kt:163 */
  724    791   
}
         792  +
/* OperationErrorGenerator.kt:109 */
  725    793   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for SimpleInputParamsError {
         794  +
    /* OperationErrorGenerator.kt:110 */
  726    795   
    fn create_unhandled_error(
  727    796   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  728    797   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  729    798   
    ) -> Self {
         799  +
        /* OperationErrorGenerator.kt:121 */
  730    800   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  731    801   
            source,
  732    802   
            meta: meta.unwrap_or_default(),
  733    803   
        })
         804  +
        /* OperationErrorGenerator.kt:110 */
  734    805   
    }
         806  +
    /* OperationErrorGenerator.kt:109 */
  735    807   
}
  736    808   
         809  +
/* CodegenDelegator.kt:255 */
  737    810   
pub use crate::operation::simple_input_params::_simple_input_params_output::SimpleInputParamsOutput;
  738    811   
         812  +
/* CodegenDelegator.kt:255 */
  739    813   
pub use crate::operation::simple_input_params::_simple_input_params_input::SimpleInputParamsInput;
  740    814   
         815  +
/* RustModule.kt:172 */
  741    816   
mod _simple_input_params_input;
  742    817   
         818  +
/* RustModule.kt:172 */
  743    819   
mod _simple_input_params_output;
  744    820   
  745         -
/// Builders
         821  +
/// /* CodegenDelegator.kt:51 */Builders
  746    822   
pub mod builders;

tmp-codegen-diff/codegen-client-test/ec2_query/rust-client-codegen/src/operation/simple_input_params/_simple_input_params_input.rs

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