Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-client-test/aws_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/aws_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/aws_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   
            "Query Protocol",
  106    117   
        ));
  107    118   
  108    119   
        ::std::option::Option::Some(cfg.freeze())
  109    120   
    }
  110    121   
  111    122   
    fn runtime_components(
  112    123   
        &self,
  113    124   
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
  114    125   
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
  115    126   
        #[allow(unused_mut)]
  116    127   
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("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: QueryRecursiveShapes
  237    254   
    #[::tokio::test]
  238    255   
    #[::tracing_test::traced_test]
  239    256   
    async fn query_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")
  264    281   
        .status(200)
  265    282   
                    .body(::aws_smithy_types::body::SdkBody::from("<RecursiveXmlShapesResponse xmlns=\"https://example.com/\">\n    <RecursiveXmlShapesResult>\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    </RecursiveXmlShapesResult>\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/aws_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/aws_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/aws_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/aws_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   
            "Query Protocol",
  106    117   
        ));
  107    118   
  108    119   
        ::std::option::Option::Some(cfg.freeze())
  109    120   
    }
  110    121   
  111    122   
    fn runtime_components(
  112    123   
        &self,
  113    124   
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
  114    125   
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
  115    126   
        #[allow(unused_mut)]
  116    127   
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("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: QuerySimpleInputParamsStrings
  240    257   
    #[::tokio::test]
  241    258   
    #[::tracing_test::traced_test]
  242    259   
    async fn query_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   
@@ -551,568 +680,756 @@
  571    588   
        let body = http_request.body().bytes().expect("body should be strict");
  572    589   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(
  573    590   
            body,
  574    591   
            "Action=SimpleInputParams&Version=2020-01-08&FloatValue=-Infinity&Boo=-Infinity",
  575    592   
            ::aws_smithy_protocol_test::MediaType::from("application/x-www-form-urlencoded"),
  576    593   
        ));
  577    594   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  578    595   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  579    596   
        ::pretty_assertions::assert_eq!(uri.path(), "/", "path was incorrect");
  580    597   
    }
         598  +
         599  +
    /* ProtocolTestGenerator.kt:98 */
  581    600   
}
  582    601   
         602  +
/* OperationErrorGenerator.kt:79 */
  583    603   
/// Error type for the `SimpleInputParamsError` operation.
         604  +
/* RustType.kt:516 */
  584    605   
#[non_exhaustive]
         606  +
/* RustType.kt:516 */
  585    607   
#[derive(::std::fmt::Debug)]
  586         -
pub enum SimpleInputParamsError {
         608  +
pub /* OperationErrorGenerator.kt:81 */ enum SimpleInputParamsError {
         609  +
    /* OperationErrorGenerator.kt:88 */
  587    610   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  588    611   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  589    612   
    variable wildcard pattern and check `.code()`:
  590    613   
     \
  591    614   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  592    615   
     \
  593    616   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-SimpleInputParamsError) for what information is available for the error.")]
  594    617   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         618  +
    /* OperationErrorGenerator.kt:81 */
  595    619   
}
         620  +
/* OperationErrorGenerator.kt:218 */
  596    621   
impl SimpleInputParamsError {
         622  +
    /* OperationErrorGenerator.kt:219 */
  597    623   
    /// Creates the `SimpleInputParamsError::Unhandled` variant from any error type.
  598    624   
    pub fn unhandled(
  599    625   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  600    626   
    ) -> Self {
  601    627   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  602    628   
            source: err.into(),
  603    629   
            meta: ::std::default::Default::default(),
  604    630   
        })
  605    631   
    }
  606    632   
  607    633   
    /// Creates the `SimpleInputParamsError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  608    634   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  609    635   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  610    636   
            source: err.clone().into(),
  611    637   
            meta: err,
  612    638   
        })
  613    639   
    }
  614         -
    ///
         640  +
    /// /* OperationErrorGenerator.kt:236 */
  615    641   
    /// Returns error metadata, which includes the error code, message,
  616    642   
    /// request ID, and potentially additional information.
  617    643   
    ///
         644  +
    /* OperationErrorGenerator.kt:242 */
  618    645   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         646  +
        /* OperationErrorGenerator.kt:243 */
  619    647   
        match self {
  620         -
            Self::Unhandled(e) => &e.meta,
         648  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         649  +
            /* OperationErrorGenerator.kt:243 */
  621    650   
        }
         651  +
        /* OperationErrorGenerator.kt:242 */
  622    652   
    }
         653  +
    /* OperationErrorGenerator.kt:218 */
  623    654   
}
         655  +
/* OperationErrorGenerator.kt:269 */
  624    656   
impl ::std::error::Error for SimpleInputParamsError {
         657  +
    /* OperationErrorGenerator.kt:270 */
  625    658   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         659  +
        /* OperationErrorGenerator.kt:318 */
  626    660   
        match self {
  627         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         661  +
            /* OperationErrorGenerator.kt:326 */
         662  +
            Self::Unhandled(_inner) => {
         663  +
                /* OperationErrorGenerator.kt:279 */
         664  +
                ::std::option::Option::Some(&*_inner.source)
         665  +
                /* OperationErrorGenerator.kt:326 */
         666  +
            } /* OperationErrorGenerator.kt:318 */
  628    667   
        }
         668  +
        /* OperationErrorGenerator.kt:270 */
  629    669   
    }
         670  +
    /* OperationErrorGenerator.kt:269 */
  630    671   
}
         672  +
/* OperationErrorGenerator.kt:133 */
  631    673   
impl ::std::fmt::Display for SimpleInputParamsError {
         674  +
    /* OperationErrorGenerator.kt:134 */
  632    675   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         676  +
        /* OperationErrorGenerator.kt:318 */
  633    677   
        match self {
         678  +
            /* OperationErrorGenerator.kt:326 */
  634    679   
            Self::Unhandled(_inner) => {
         680  +
                /* OperationErrorGenerator.kt:139 */
  635    681   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  636    682   
                    write!(f, "unhandled error ({code})")
  637    683   
                } else {
  638    684   
                    f.write_str("unhandled error")
  639    685   
                }
         686  +
                /* OperationErrorGenerator.kt:326 */
         687  +
            } /* OperationErrorGenerator.kt:318 */
  640    688   
        }
         689  +
        /* OperationErrorGenerator.kt:134 */
  641    690   
    }
  642         -
    }
         691  +
    /* OperationErrorGenerator.kt:133 */
  643    692   
}
         693  +
/* OperationErrorGenerator.kt:182 */
  644    694   
impl ::aws_smithy_types::retry::ProvideErrorKind for SimpleInputParamsError {
         695  +
    /* OperationErrorGenerator.kt:186 */
  645    696   
    fn code(&self) -> ::std::option::Option<&str> {
         697  +
        /* OperationErrorGenerator.kt:187 */
  646    698   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         699  +
        /* OperationErrorGenerator.kt:186 */
  647    700   
    }
         701  +
    /* OperationErrorGenerator.kt:190 */
  648    702   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         703  +
        /* OperationErrorGenerator.kt:197 */
  649    704   
        ::std::option::Option::None
         705  +
        /* OperationErrorGenerator.kt:190 */
  650    706   
    }
         707  +
    /* OperationErrorGenerator.kt:182 */
  651    708   
}
         709  +
/* OperationErrorGenerator.kt:163 */
  652    710   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for SimpleInputParamsError {
         711  +
    /* OperationErrorGenerator.kt:164 */
  653    712   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         713  +
        /* OperationErrorGenerator.kt:318 */
  654    714   
        match self {
  655         -
            Self::Unhandled(_inner) => &_inner.meta,
         715  +
            /* OperationErrorGenerator.kt:326 */
         716  +
            Self::Unhandled(_inner) => {
         717  +
                /* OperationErrorGenerator.kt:168 */
         718  +
                &_inner.meta
         719  +
                /* OperationErrorGenerator.kt:326 */
         720  +
            } /* OperationErrorGenerator.kt:318 */
  656    721   
        }
         722  +
        /* OperationErrorGenerator.kt:164 */
  657    723   
    }
         724  +
    /* OperationErrorGenerator.kt:163 */
  658    725   
}
         726  +
/* OperationErrorGenerator.kt:109 */
  659    727   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for SimpleInputParamsError {
         728  +
    /* OperationErrorGenerator.kt:110 */
  660    729   
    fn create_unhandled_error(
  661    730   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  662    731   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  663    732   
    ) -> Self {
         733  +
        /* OperationErrorGenerator.kt:121 */
  664    734   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  665    735   
            source,
  666    736   
            meta: meta.unwrap_or_default(),
  667    737   
        })
         738  +
        /* OperationErrorGenerator.kt:110 */
  668    739   
    }
         740  +
    /* OperationErrorGenerator.kt:109 */
  669    741   
}
  670    742   
         743  +
/* CodegenDelegator.kt:255 */
  671    744   
pub use crate::operation::simple_input_params::_simple_input_params_output::SimpleInputParamsOutput;
  672    745   
         746  +
/* CodegenDelegator.kt:255 */
  673    747   
pub use crate::operation::simple_input_params::_simple_input_params_input::SimpleInputParamsInput;
  674    748   
         749  +
/* RustModule.kt:172 */
  675    750   
mod _simple_input_params_input;
  676    751   
         752  +
/* RustModule.kt:172 */
  677    753   
mod _simple_input_params_output;
  678    754   
  679         -
/// Builders
         755  +
/// /* CodegenDelegator.kt:51 */Builders
  680    756   
pub mod builders;

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

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

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

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

@@ -1,1 +237,303 @@
    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::simple_input_params::_simple_input_params_output::SimpleInputParamsOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::simple_input_params::_simple_input_params_input::SimpleInputParamsInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::simple_input_params::builders::SimpleInputParamsInputBuilder {
    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::simple_input_params::SimpleInputParamsOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::simple_input_params::SimpleInputParamsError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.simple_input_params();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `SimpleInputParams`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `SimpleInputParams`.
   24     27   
///
   25         -
/// This test serializes strings, numbers, and boolean values.
          28  +
/// /* FluentBuilderGenerator.kt:130 */This test serializes strings, numbers, and boolean values.
          29  +
/* RustType.kt:516 */
   26     30   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          31  +
/* FluentBuilderGenerator.kt:270 */
   27     32   
pub struct SimpleInputParamsFluentBuilder {
   28     33   
    handle: ::std::sync::Arc<crate::client::Handle>,
   29     34   
    inner: crate::operation::simple_input_params::builders::SimpleInputParamsInputBuilder,
   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::simple_input_params::SimpleInputParamsOutput,
   35     41   
        crate::operation::simple_input_params::SimpleInputParamsError,
   36     42   
    > for SimpleInputParamsFluentBuilder
   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::simple_input_params::SimpleInputParamsOutput,
   44     50   
            crate::operation::simple_input_params::SimpleInputParamsError,
   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 SimpleInputParamsFluentBuilder {
          58  +
    /* FluentBuilderGenerator.kt:288 */
   51     59   
    /// Creates a new `SimpleInputParamsFluentBuilder`.
   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 SimpleInputParams as a reference.
   60     69   
    pub fn as_input(&self) -> &crate::operation::simple_input_params::builders::SimpleInputParamsInputBuilder {
   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::simple_input_params::SimpleInputParamsOutput,
   75     85   
        ::aws_smithy_runtime_api::client::result::SdkError<
   76     86   
            crate::operation::simple_input_params::SimpleInputParamsError,
   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::simple_input_params::SimpleInputParams::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::simple_input_params::SimpleInputParams::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::simple_input_params::SimpleInputParamsOutput,
   97    107   
        crate::operation::simple_input_params::SimpleInputParamsError,
   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 foo(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  113    126   
        self.inner = self.inner.foo(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_foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  118    133   
        self.inner = self.inner.set_foo(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_foo(&self) -> &::std::option::Option<::std::string::String> {
  123    140   
        self.inner.get_foo()
  124    141   
    }
         142  +
    /* FluentBuilderGenerator.kt:498 */
  125    143   
    #[allow(missing_docs)] // documentation missing in model
         144  +
                           /* FluentBuilderGenerator.kt:500 */
  126    145   
    pub fn bar(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  127    146   
        self.inner = self.inner.bar(input.into());
  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_bar(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  132    153   
        self.inner = self.inner.set_bar(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_bar(&self) -> &::std::option::Option<::std::string::String> {
  137    160   
        self.inner.get_bar()
  138    161   
    }
         162  +
    /* FluentBuilderGenerator.kt:498 */
  139    163   
    #[allow(missing_docs)] // documentation missing in model
         164  +
                           /* FluentBuilderGenerator.kt:500 */
  140    165   
    pub fn baz(mut self, input: bool) -> Self {
  141    166   
        self.inner = self.inner.baz(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_baz(mut self, input: ::std::option::Option<bool>) -> Self {
  146    173   
        self.inner = self.inner.set_baz(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_baz(&self) -> &::std::option::Option<bool> {
  151    180   
        self.inner.get_baz()
  152    181   
    }
         182  +
    /* FluentBuilderGenerator.kt:498 */
  153    183   
    #[allow(missing_docs)] // documentation missing in model
         184  +
                           /* FluentBuilderGenerator.kt:500 */
  154    185   
    pub fn bam(mut self, input: i32) -> Self {
  155    186   
        self.inner = self.inner.bam(input);
  156    187   
        self
  157    188   
    }
         189  +
    /* FluentBuilderGenerator.kt:498 */
  158    190   
    #[allow(missing_docs)] // documentation missing in model
         191  +
                           /* FluentBuilderGenerator.kt:500 */
  159    192   
    pub fn set_bam(mut self, input: ::std::option::Option<i32>) -> Self {
  160    193   
        self.inner = self.inner.set_bam(input);
  161    194   
        self
  162    195   
    }
         196  +
    /* FluentBuilderGenerator.kt:518 */
  163    197   
    #[allow(missing_docs)] // documentation missing in model
         198  +
                           /* FluentBuilderGenerator.kt:520 */
  164    199   
    pub fn get_bam(&self) -> &::std::option::Option<i32> {
  165    200   
        self.inner.get_bam()
  166    201   
    }
         202  +
    /* FluentBuilderGenerator.kt:498 */
  167    203   
    #[allow(missing_docs)] // documentation missing in model
         204  +
                           /* FluentBuilderGenerator.kt:500 */
  168    205   
    pub fn float_value(mut self, input: f32) -> Self {
  169    206   
        self.inner = self.inner.float_value(input);
  170    207   
        self
  171    208   
    }
         209  +
    /* FluentBuilderGenerator.kt:498 */
  172    210   
    #[allow(missing_docs)] // documentation missing in model
         211  +
                           /* FluentBuilderGenerator.kt:500 */
  173    212   
    pub fn set_float_value(mut self, input: ::std::option::Option<f32>) -> Self {
  174    213   
        self.inner = self.inner.set_float_value(input);
  175    214   
        self
  176    215   
    }
         216  +
    /* FluentBuilderGenerator.kt:518 */
  177    217   
    #[allow(missing_docs)] // documentation missing in model
         218  +
                           /* FluentBuilderGenerator.kt:520 */
  178    219   
    pub fn get_float_value(&self) -> &::std::option::Option<f32> {
  179    220   
        self.inner.get_float_value()
  180    221   
    }
         222  +
    /* FluentBuilderGenerator.kt:498 */
  181    223   
    #[allow(missing_docs)] // documentation missing in model
         224  +
                           /* FluentBuilderGenerator.kt:500 */
  182    225   
    pub fn boo(mut self, input: f64) -> Self {
  183    226   
        self.inner = self.inner.boo(input);
  184    227   
        self
  185    228   
    }
         229  +
    /* FluentBuilderGenerator.kt:498 */
  186    230   
    #[allow(missing_docs)] // documentation missing in model
         231  +
                           /* FluentBuilderGenerator.kt:500 */
  187    232   
    pub fn set_boo(mut self, input: ::std::option::Option<f64>) -> Self {
  188    233   
        self.inner = self.inner.set_boo(input);
  189    234   
        self
  190    235   
    }
         236  +
    /* FluentBuilderGenerator.kt:518 */
  191    237   
    #[allow(missing_docs)] // documentation missing in model
         238  +
                           /* FluentBuilderGenerator.kt:520 */
  192    239   
    pub fn get_boo(&self) -> &::std::option::Option<f64> {
  193    240   
        self.inner.get_boo()
  194    241   
    }
         242  +
    /* FluentBuilderGenerator.kt:498 */
  195    243   
    #[allow(missing_docs)] // documentation missing in model
         244  +
                           /* FluentBuilderGenerator.kt:500 */
  196    245   
    pub fn qux(mut self, input: ::aws_smithy_types::Blob) -> Self {
  197    246   
        self.inner = self.inner.qux(input);
  198    247   
        self
  199    248   
    }
         249  +
    /* FluentBuilderGenerator.kt:498 */
  200    250   
    #[allow(missing_docs)] // documentation missing in model
         251  +
                           /* FluentBuilderGenerator.kt:500 */
  201    252   
    pub fn set_qux(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
  202    253   
        self.inner = self.inner.set_qux(input);
  203    254   
        self
  204    255   
    }
         256  +
    /* FluentBuilderGenerator.kt:518 */
  205    257   
    #[allow(missing_docs)] // documentation missing in model
         258  +
                           /* FluentBuilderGenerator.kt:520 */
  206    259   
    pub fn get_qux(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
  207    260   
        self.inner.get_qux()
  208    261   
    }
         262  +
    /* FluentBuilderGenerator.kt:498 */
  209    263   
    #[allow(missing_docs)] // documentation missing in model
         264  +
                           /* FluentBuilderGenerator.kt:500 */
  210    265   
    pub fn foo_enum(mut self, input: crate::types::FooEnum) -> Self {
  211    266   
        self.inner = self.inner.foo_enum(input);
  212    267   
        self
  213    268   
    }
         269  +
    /* FluentBuilderGenerator.kt:498 */
  214    270   
    #[allow(missing_docs)] // documentation missing in model
         271  +
                           /* FluentBuilderGenerator.kt:500 */
  215    272   
    pub fn set_foo_enum(mut self, input: ::std::option::Option<crate::types::FooEnum>) -> Self {
  216    273   
        self.inner = self.inner.set_foo_enum(input);
  217    274   
        self
  218    275   
    }
         276  +
    /* FluentBuilderGenerator.kt:518 */
  219    277   
    #[allow(missing_docs)] // documentation missing in model
         278  +
                           /* FluentBuilderGenerator.kt:520 */
  220    279   
    pub fn get_foo_enum(&self) -> &::std::option::Option<crate::types::FooEnum> {
  221    280   
        self.inner.get_foo_enum()
  222    281   
    }
         282  +
    /* FluentBuilderGenerator.kt:498 */
  223    283   
    #[allow(missing_docs)] // documentation missing in model
         284  +
                           /* FluentBuilderGenerator.kt:500 */
  224    285   
    pub fn integer_enum(mut self, input: i32) -> Self {
  225    286   
        self.inner = self.inner.integer_enum(input);
  226    287   
        self
  227    288   
    }
         289  +
    /* FluentBuilderGenerator.kt:498 */
  228    290   
    #[allow(missing_docs)] // documentation missing in model
         291  +
                           /* FluentBuilderGenerator.kt:500 */
  229    292   
    pub fn set_integer_enum(mut self, input: ::std::option::Option<i32>) -> Self {
  230    293   
        self.inner = self.inner.set_integer_enum(input);
  231    294   
        self
  232    295   
    }
         296  +
    /* FluentBuilderGenerator.kt:518 */
  233    297   
    #[allow(missing_docs)] // documentation missing in model
         298  +
                           /* FluentBuilderGenerator.kt:520 */
  234    299   
    pub fn get_integer_enum(&self) -> &::std::option::Option<i32> {
  235    300   
        self.inner.get_integer_enum()
  236    301   
    }
         302  +
    /* FluentBuilderGenerator.kt:282 */
  237    303   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/simple_scalar_xml_properties.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 `SimpleScalarXmlProperties`.
           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 SimpleScalarXmlProperties;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl SimpleScalarXmlProperties {
    7         -
    /// Creates a new `SimpleScalarXmlProperties`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `SimpleScalarXmlProperties`
          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_scalar_xml_properties::SimpleScalarXmlPropertiesInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::simple_scalar_xml_properties::SimpleScalarXmlPropertiesOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::simple_scalar_xml_properties::SimpleScalarXmlPropertiesError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -63,72 +268,285 @@
   83     92   
                runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
   84     93   
            }
   85     94   
            runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
   86     95   
                config_override,
   87     96   
                client_config.config.clone(),
   88     97   
                &client_config.runtime_components,
   89     98   
            ));
   90     99   
        }
   91    100   
        runtime_plugins
   92    101   
    }
         102  +
    /* OperationGenerator.kt:85 */
   93    103   
}
         104  +
/* OperationRuntimePluginGenerator.kt:55 */
   94    105   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for SimpleScalarXmlProperties {
   95    106   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
   96    107   
        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("SimpleScalarXmlProperties");
   97    108   
   98    109   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   99    110   
            SimpleScalarXmlPropertiesRequestSerializer,
  100    111   
        ));
  101    112   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
  102    113   
            SimpleScalarXmlPropertiesResponseDeserializer,
  103    114   
        ));
  104    115   
  105    116   
        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
  106    117   
            ::aws_smithy_runtime_api::client::auth::static_resolver::StaticAuthSchemeOptionResolverParams::new(),
  107    118   
        ));
  108    119   
  109    120   
        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
  110    121   
            "SimpleScalarXmlProperties",
  111    122   
            "Query Protocol",
  112    123   
        ));
  113    124   
  114    125   
        ::std::option::Option::Some(cfg.freeze())
  115    126   
    }
  116    127   
  117    128   
    fn runtime_components(
  118    129   
        &self,
  119    130   
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
  120    131   
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
  121    132   
        #[allow(unused_mut)]
  122    133   
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("SimpleScalarXmlProperties")
  123    134   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  124    135   
            .with_interceptor(SimpleScalarXmlPropertiesEndpointParamsInterceptor)
  125    136   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  126    137   
                crate::operation::simple_scalar_xml_properties::SimpleScalarXmlPropertiesError,
  127    138   
            >::new())
  128    139   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  129    140   
                crate::operation::simple_scalar_xml_properties::SimpleScalarXmlPropertiesError,
  130    141   
            >::new());
  131    142   
  132    143   
        ::std::borrow::Cow::Owned(rcb)
  133    144   
    }
  134    145   
}
  135    146   
         147  +
/* ResponseDeserializerGenerator.kt:64 */
  136    148   
#[derive(Debug)]
  137    149   
struct SimpleScalarXmlPropertiesResponseDeserializer;
  138    150   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for SimpleScalarXmlPropertiesResponseDeserializer {
  139    151   
    fn deserialize_nonstreaming(
  140    152   
        &self,
  141    153   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
  142    154   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  143    155   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  144    156   
        let headers = response.headers();
  145    157   
        let body = response.body().bytes().expect("body loaded");
  146    158   
        #[allow(unused_mut)]
  147    159   
        let mut force_error = false;
  148    160   
  149    161   
        let parse_result = if !success && status != 200 || force_error {
  150    162   
            crate::protocol_serde::shape_simple_scalar_xml_properties::de_simple_scalar_xml_properties_http_error(status, headers, body)
  151    163   
        } else {
  152    164   
            crate::protocol_serde::shape_simple_scalar_xml_properties::de_simple_scalar_xml_properties_http_response(status, headers, body)
  153    165   
        };
  154    166   
        crate::protocol_serde::type_erase_result(parse_result)
  155    167   
    }
  156    168   
}
         169  +
/* RequestSerializerGenerator.kt:67 */
  157    170   
#[derive(Debug)]
  158    171   
struct SimpleScalarXmlPropertiesRequestSerializer;
  159    172   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for SimpleScalarXmlPropertiesRequestSerializer {
  160    173   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  161    174   
    fn serialize_input(
  162    175   
        &self,
  163    176   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  164    177   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  165    178   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  166    179   
        let input = input
  167    180   
            .downcast::<crate::operation::simple_scalar_xml_properties::SimpleScalarXmlPropertiesInput>()
  168    181   
            .expect("correct type");
  169    182   
        let _header_serialization_settings = _cfg
  170    183   
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  171    184   
            .cloned()
  172    185   
            .unwrap_or_default();
  173    186   
        let mut request_builder = {
  174    187   
            fn uri_base(
  175    188   
                _input: &crate::operation::simple_scalar_xml_properties::SimpleScalarXmlPropertiesInput,
  176    189   
                output: &mut ::std::string::String,
  177    190   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  178    191   
                use ::std::fmt::Write as _;
  179    192   
                ::std::write!(output, "/").expect("formatting should succeed");
  180    193   
                ::std::result::Result::Ok(())
  181    194   
            }
  182    195   
            #[allow(clippy::unnecessary_wraps)]
  183    196   
            fn update_http_builder(
  184    197   
                input: &crate::operation::simple_scalar_xml_properties::SimpleScalarXmlPropertiesInput,
  185    198   
                builder: ::http::request::Builder,
  186    199   
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  187    200   
                let mut uri = ::std::string::String::new();
  188    201   
                uri_base(input, &mut uri)?;
  189    202   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  190    203   
            }
  191    204   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  192    205   
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
  193    206   
            builder
  194    207   
        };
  195    208   
        let body = ::aws_smithy_types::body::SdkBody::from(
  196    209   
            crate::protocol_serde::shape_simple_scalar_xml_properties_input::ser_simple_scalar_xml_properties_input_input_input(&input)?,
  197    210   
        );
  198    211   
  199    212   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  200    213   
    }
  201    214   
}
         215  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  202    216   
#[derive(Debug)]
  203    217   
struct SimpleScalarXmlPropertiesEndpointParamsInterceptor;
  204    218   
  205    219   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for SimpleScalarXmlPropertiesEndpointParamsInterceptor {
  206    220   
    fn name(&self) -> &'static str {
  207    221   
        "SimpleScalarXmlPropertiesEndpointParamsInterceptor"
  208    222   
    }
  209    223   
  210    224   
    fn read_before_execution(
  211    225   
        &self,
  212    226   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  213    227   
            '_,
  214    228   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  215    229   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  216    230   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  217    231   
        >,
  218    232   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  219    233   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  220    234   
        let _input = context
  221    235   
            .input()
  222    236   
            .downcast_ref::<SimpleScalarXmlPropertiesInput>()
  223    237   
            .ok_or("failed to downcast to SimpleScalarXmlPropertiesInput")?;
  224    238   
  225    239   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  226    240   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  227    241   
        })?;
  228    242   
        cfg.interceptor_state()
  229    243   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  230    244   
        ::std::result::Result::Ok(())
  231    245   
    }
  232    246   
}
  233    247   
  234    248   
// The get_* functions below are generated from JMESPath expressions in the
  235    249   
// operationContextParams trait. They target the operation's input shape.
  236    250   
         251  +
/* RustType.kt:516 */
  237    252   
#[allow(unreachable_code, unused_variables)]
         253  +
/* RustType.kt:516 */
  238    254   
#[cfg(test)]
         255  +
/* ProtocolTestGenerator.kt:98 */
  239    256   
mod simple_scalar_xml_properties_test {
  240    257   
    use ::aws_smithy_protocol_test::FloatEquals;
  241    258   
  242    259   
    /// Serializes simple scalar properties
  243    260   
    /// Test ID: QuerySimpleScalarProperties
  244    261   
    #[::tokio::test]
  245    262   
    #[::tracing_test::traced_test]
  246    263   
    async fn query_simple_scalar_properties_response() {
  247    264   
        let expected_output = crate::operation::simple_scalar_xml_properties::SimpleScalarXmlPropertiesOutput::builder()
  248    265   
            .set_string_value(::std::option::Option::Some("string".to_owned()))
@@ -535,552 +664,740 @@
  555    572   
            expected_output.float_value,
  556    573   
            parsed.float_value
  557    574   
        );
  558    575   
        assert!(
  559    576   
            parsed.double_value.float_equals(&expected_output.double_value),
  560    577   
            "Unexpected value for `double_value` {:?} vs. {:?}",
  561    578   
            expected_output.double_value,
  562    579   
            parsed.double_value
  563    580   
        );
  564    581   
    }
         582  +
         583  +
    /* ProtocolTestGenerator.kt:98 */
  565    584   
}
  566    585   
         586  +
/* OperationErrorGenerator.kt:79 */
  567    587   
/// Error type for the `SimpleScalarXmlPropertiesError` operation.
         588  +
/* RustType.kt:516 */
  568    589   
#[non_exhaustive]
         590  +
/* RustType.kt:516 */
  569    591   
#[derive(::std::fmt::Debug)]
  570         -
pub enum SimpleScalarXmlPropertiesError {
         592  +
pub /* OperationErrorGenerator.kt:81 */ enum SimpleScalarXmlPropertiesError {
         593  +
    /* OperationErrorGenerator.kt:88 */
  571    594   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  572    595   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  573    596   
    variable wildcard pattern and check `.code()`:
  574    597   
     \
  575    598   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  576    599   
     \
  577    600   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-SimpleScalarXmlPropertiesError) for what information is available for the error.")]
  578    601   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         602  +
    /* OperationErrorGenerator.kt:81 */
  579    603   
}
         604  +
/* OperationErrorGenerator.kt:218 */
  580    605   
impl SimpleScalarXmlPropertiesError {
         606  +
    /* OperationErrorGenerator.kt:219 */
  581    607   
    /// Creates the `SimpleScalarXmlPropertiesError::Unhandled` variant from any error type.
  582    608   
    pub fn unhandled(
  583    609   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  584    610   
    ) -> Self {
  585    611   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  586    612   
            source: err.into(),
  587    613   
            meta: ::std::default::Default::default(),
  588    614   
        })
  589    615   
    }
  590    616   
  591    617   
    /// Creates the `SimpleScalarXmlPropertiesError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  592    618   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  593    619   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  594    620   
            source: err.clone().into(),
  595    621   
            meta: err,
  596    622   
        })
  597    623   
    }
  598         -
    ///
         624  +
    /// /* OperationErrorGenerator.kt:236 */
  599    625   
    /// Returns error metadata, which includes the error code, message,
  600    626   
    /// request ID, and potentially additional information.
  601    627   
    ///
         628  +
    /* OperationErrorGenerator.kt:242 */
  602    629   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         630  +
        /* OperationErrorGenerator.kt:243 */
  603    631   
        match self {
  604         -
            Self::Unhandled(e) => &e.meta,
         632  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         633  +
            /* OperationErrorGenerator.kt:243 */
  605    634   
        }
         635  +
        /* OperationErrorGenerator.kt:242 */
  606    636   
    }
         637  +
    /* OperationErrorGenerator.kt:218 */
  607    638   
}
         639  +
/* OperationErrorGenerator.kt:269 */
  608    640   
impl ::std::error::Error for SimpleScalarXmlPropertiesError {
         641  +
    /* OperationErrorGenerator.kt:270 */
  609    642   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         643  +
        /* OperationErrorGenerator.kt:318 */
  610    644   
        match self {
  611         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         645  +
            /* OperationErrorGenerator.kt:326 */
         646  +
            Self::Unhandled(_inner) => {
         647  +
                /* OperationErrorGenerator.kt:279 */
         648  +
                ::std::option::Option::Some(&*_inner.source)
         649  +
                /* OperationErrorGenerator.kt:326 */
         650  +
            } /* OperationErrorGenerator.kt:318 */
  612    651   
        }
         652  +
        /* OperationErrorGenerator.kt:270 */
  613    653   
    }
         654  +
    /* OperationErrorGenerator.kt:269 */
  614    655   
}
         656  +
/* OperationErrorGenerator.kt:133 */
  615    657   
impl ::std::fmt::Display for SimpleScalarXmlPropertiesError {
         658  +
    /* OperationErrorGenerator.kt:134 */
  616    659   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         660  +
        /* OperationErrorGenerator.kt:318 */
  617    661   
        match self {
         662  +
            /* OperationErrorGenerator.kt:326 */
  618    663   
            Self::Unhandled(_inner) => {
         664  +
                /* OperationErrorGenerator.kt:139 */
  619    665   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  620    666   
                    write!(f, "unhandled error ({code})")
  621    667   
                } else {
  622    668   
                    f.write_str("unhandled error")
  623    669   
                }
         670  +
                /* OperationErrorGenerator.kt:326 */
         671  +
            } /* OperationErrorGenerator.kt:318 */
  624    672   
        }
         673  +
        /* OperationErrorGenerator.kt:134 */
  625    674   
    }
  626         -
    }
         675  +
    /* OperationErrorGenerator.kt:133 */
  627    676   
}
         677  +
/* OperationErrorGenerator.kt:182 */
  628    678   
impl ::aws_smithy_types::retry::ProvideErrorKind for SimpleScalarXmlPropertiesError {
         679  +
    /* OperationErrorGenerator.kt:186 */
  629    680   
    fn code(&self) -> ::std::option::Option<&str> {
         681  +
        /* OperationErrorGenerator.kt:187 */
  630    682   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         683  +
        /* OperationErrorGenerator.kt:186 */
  631    684   
    }
         685  +
    /* OperationErrorGenerator.kt:190 */
  632    686   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         687  +
        /* OperationErrorGenerator.kt:197 */
  633    688   
        ::std::option::Option::None
         689  +
        /* OperationErrorGenerator.kt:190 */
  634    690   
    }
         691  +
    /* OperationErrorGenerator.kt:182 */
  635    692   
}
         693  +
/* OperationErrorGenerator.kt:163 */
  636    694   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for SimpleScalarXmlPropertiesError {
         695  +
    /* OperationErrorGenerator.kt:164 */
  637    696   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         697  +
        /* OperationErrorGenerator.kt:318 */
  638    698   
        match self {
  639         -
            Self::Unhandled(_inner) => &_inner.meta,
         699  +
            /* OperationErrorGenerator.kt:326 */
         700  +
            Self::Unhandled(_inner) => {
         701  +
                /* OperationErrorGenerator.kt:168 */
         702  +
                &_inner.meta
         703  +
                /* OperationErrorGenerator.kt:326 */
         704  +
            } /* OperationErrorGenerator.kt:318 */
  640    705   
        }
         706  +
        /* OperationErrorGenerator.kt:164 */
  641    707   
    }
         708  +
    /* OperationErrorGenerator.kt:163 */
  642    709   
}
         710  +
/* OperationErrorGenerator.kt:109 */
  643    711   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for SimpleScalarXmlPropertiesError {
         712  +
    /* OperationErrorGenerator.kt:110 */
  644    713   
    fn create_unhandled_error(
  645    714   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  646    715   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  647    716   
    ) -> Self {
         717  +
        /* OperationErrorGenerator.kt:121 */
  648    718   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  649    719   
            source,
  650    720   
            meta: meta.unwrap_or_default(),
  651    721   
        })
         722  +
        /* OperationErrorGenerator.kt:110 */
  652    723   
    }
         724  +
    /* OperationErrorGenerator.kt:109 */
  653    725   
}
  654    726   
         727  +
/* CodegenDelegator.kt:255 */
  655    728   
pub use crate::operation::simple_scalar_xml_properties::_simple_scalar_xml_properties_output::SimpleScalarXmlPropertiesOutput;
  656    729   
         730  +
/* CodegenDelegator.kt:255 */
  657    731   
pub use crate::operation::simple_scalar_xml_properties::_simple_scalar_xml_properties_input::SimpleScalarXmlPropertiesInput;
  658    732   
         733  +
/* RustModule.kt:172 */
  659    734   
mod _simple_scalar_xml_properties_input;
  660    735   
         736  +
/* RustModule.kt:172 */
  661    737   
mod _simple_scalar_xml_properties_output;
  662    738   
  663         -
/// Builders
         739  +
/// /* CodegenDelegator.kt:51 */Builders
  664    740   
pub mod builders;

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

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

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

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