Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943

Files changed:

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

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

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

@@ -1,1 +40,49 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* OperationGenerator.kt:77 */
    2      3   
/// Orchestration and serialization glue logic for `SimpleInputParams`.
           4  +
/* RustType.kt:516 */
    3      5   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
           6  +
/* RustType.kt:516 */
    4      7   
#[non_exhaustive]
           8  +
/* OperationGenerator.kt:84 */
    5      9   
pub struct SimpleInputParams;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl SimpleInputParams {
    7         -
    /// Creates a new `SimpleInputParams`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `SimpleInputParams`
          13  +
    /* OperationGenerator.kt:87 */
    8     14   
    pub fn new() -> Self {
          15  +
        /* OperationGenerator.kt:88 */
    9     16   
        Self
          17  +
        /* OperationGenerator.kt:87 */
   10     18   
    }
          19  +
    /* OperationGenerator.kt:138 */
   11     20   
    pub(crate) async fn orchestrate(
   12     21   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     22   
        input: crate::operation::simple_input_params::SimpleInputParamsInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::simple_input_params::SimpleInputParamsOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::simple_input_params::SimpleInputParamsError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -57,66 +265,282 @@
   77     86   
                runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
   78     87   
            }
   79     88   
            runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
   80     89   
                config_override,
   81     90   
                client_config.config.clone(),
   82     91   
                &client_config.runtime_components,
   83     92   
            ));
   84     93   
        }
   85     94   
        runtime_plugins
   86     95   
    }
          96  +
    /* OperationGenerator.kt:85 */
   87     97   
}
          98  +
/* OperationRuntimePluginGenerator.kt:55 */
   88     99   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for SimpleInputParams {
   89    100   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
   90    101   
        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("SimpleInputParams");
   91    102   
   92    103   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   93    104   
            SimpleInputParamsRequestSerializer,
   94    105   
        ));
   95    106   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
   96    107   
            SimpleInputParamsResponseDeserializer,
   97    108   
        ));
   98    109   
   99    110   
        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
  100    111   
            ::aws_smithy_runtime_api::client::auth::static_resolver::StaticAuthSchemeOptionResolverParams::new(),
  101    112   
        ));
  102    113   
  103    114   
        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
  104    115   
            "SimpleInputParams",
  105    116   
            "EC2 Protocol",
  106    117   
        ));
  107    118   
  108    119   
        ::std::option::Option::Some(cfg.freeze())
  109    120   
    }
  110    121   
  111    122   
    fn runtime_components(
  112    123   
        &self,
  113    124   
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
  114    125   
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
  115    126   
        #[allow(unused_mut)]
  116    127   
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("SimpleInputParams")
  117    128   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  118    129   
            .with_interceptor(SimpleInputParamsEndpointParamsInterceptor)
  119    130   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  120    131   
                crate::operation::simple_input_params::SimpleInputParamsError,
  121    132   
            >::new())
  122    133   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  123    134   
                crate::operation::simple_input_params::SimpleInputParamsError,
  124    135   
            >::new());
  125    136   
  126    137   
        ::std::borrow::Cow::Owned(rcb)
  127    138   
    }
  128    139   
}
  129    140   
         141  +
/* ResponseDeserializerGenerator.kt:64 */
  130    142   
#[derive(Debug)]
  131    143   
struct SimpleInputParamsResponseDeserializer;
  132    144   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for SimpleInputParamsResponseDeserializer {
  133    145   
    fn deserialize_nonstreaming(
  134    146   
        &self,
  135    147   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
  136    148   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  137    149   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  138    150   
        let headers = response.headers();
  139    151   
        let body = response.body().bytes().expect("body loaded");
  140    152   
        #[allow(unused_mut)]
  141    153   
        let mut force_error = false;
  142    154   
  143    155   
        let parse_result = if !success && status != 200 || force_error {
  144    156   
            crate::protocol_serde::shape_simple_input_params::de_simple_input_params_http_error(status, headers, body)
  145    157   
        } else {
  146    158   
            crate::protocol_serde::shape_simple_input_params::de_simple_input_params_http_response(status, headers, body)
  147    159   
        };
  148    160   
        crate::protocol_serde::type_erase_result(parse_result)
  149    161   
    }
  150    162   
}
         163  +
/* RequestSerializerGenerator.kt:67 */
  151    164   
#[derive(Debug)]
  152    165   
struct SimpleInputParamsRequestSerializer;
  153    166   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for SimpleInputParamsRequestSerializer {
  154    167   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  155    168   
    fn serialize_input(
  156    169   
        &self,
  157    170   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  158    171   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  159    172   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  160    173   
        let input = input
  161    174   
            .downcast::<crate::operation::simple_input_params::SimpleInputParamsInput>()
  162    175   
            .expect("correct type");
  163    176   
        let _header_serialization_settings = _cfg
  164    177   
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  165    178   
            .cloned()
  166    179   
            .unwrap_or_default();
  167    180   
        let mut request_builder = {
  168    181   
            fn uri_base(
  169    182   
                _input: &crate::operation::simple_input_params::SimpleInputParamsInput,
  170    183   
                output: &mut ::std::string::String,
  171    184   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  172    185   
                use ::std::fmt::Write as _;
  173    186   
                ::std::write!(output, "/").expect("formatting should succeed");
  174    187   
                ::std::result::Result::Ok(())
  175    188   
            }
  176    189   
            #[allow(clippy::unnecessary_wraps)]
  177    190   
            fn update_http_builder(
  178    191   
                input: &crate::operation::simple_input_params::SimpleInputParamsInput,
  179    192   
                builder: ::http::request::Builder,
  180    193   
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  181    194   
                let mut uri = ::std::string::String::new();
  182    195   
                uri_base(input, &mut uri)?;
  183    196   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  184    197   
            }
  185    198   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  186    199   
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
  187    200   
            builder
  188    201   
        };
  189    202   
        let body = ::aws_smithy_types::body::SdkBody::from(
  190    203   
            crate::protocol_serde::shape_simple_input_params_input::ser_simple_input_params_input_input_input(&input)?,
  191    204   
        );
  192    205   
        if let Some(content_length) = body.content_length() {
  193    206   
            let content_length = content_length.to_string();
  194    207   
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
  195    208   
        }
  196    209   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  197    210   
    }
  198    211   
}
         212  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  199    213   
#[derive(Debug)]
  200    214   
struct SimpleInputParamsEndpointParamsInterceptor;
  201    215   
  202    216   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for SimpleInputParamsEndpointParamsInterceptor {
  203    217   
    fn name(&self) -> &'static str {
  204    218   
        "SimpleInputParamsEndpointParamsInterceptor"
  205    219   
    }
  206    220   
  207    221   
    fn read_before_execution(
  208    222   
        &self,
  209    223   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  210    224   
            '_,
  211    225   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  212    226   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  213    227   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  214    228   
        >,
  215    229   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  216    230   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  217    231   
        let _input = context
  218    232   
            .input()
  219    233   
            .downcast_ref::<SimpleInputParamsInput>()
  220    234   
            .ok_or("failed to downcast to SimpleInputParamsInput")?;
  221    235   
  222    236   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  223    237   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  224    238   
        })?;
  225    239   
        cfg.interceptor_state()
  226    240   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  227    241   
        ::std::result::Result::Ok(())
  228    242   
    }
  229    243   
}
  230    244   
  231    245   
// The get_* functions below are generated from JMESPath expressions in the
  232    246   
// operationContextParams trait. They target the operation's input shape.
  233    247   
         248  +
/* RustType.kt:516 */
  234    249   
#[allow(unreachable_code, unused_variables)]
         250  +
/* RustType.kt:516 */
  235    251   
#[cfg(test)]
         252  +
/* ProtocolTestGenerator.kt:98 */
  236    253   
mod simple_input_params_test {
  237    254   
  238    255   
    /// Serializes strings
  239    256   
    /// Test ID: Ec2SimpleInputParamsStrings
  240    257   
    #[::tokio::test]
  241    258   
    #[::tracing_test::traced_test]
  242    259   
    async fn ec2_simple_input_params_strings_request() {
  243    260   
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  244    261   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  245    262   
@@ -617,634 +746,822 @@
  637    654   
        let body = http_request.body().bytes().expect("body should be strict");
  638    655   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(
  639    656   
            body,
  640    657   
            "Action=SimpleInputParams&Version=2020-01-08&FloatValue=-Infinity&Boo=-Infinity",
  641    658   
            ::aws_smithy_protocol_test::MediaType::from("application/x-www-form-urlencoded"),
  642    659   
        ));
  643    660   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  644    661   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  645    662   
        ::pretty_assertions::assert_eq!(uri.path(), "/", "path was incorrect");
  646    663   
    }
         664  +
         665  +
    /* ProtocolTestGenerator.kt:98 */
  647    666   
}
  648    667   
         668  +
/* OperationErrorGenerator.kt:79 */
  649    669   
/// Error type for the `SimpleInputParamsError` operation.
         670  +
/* RustType.kt:516 */
  650    671   
#[non_exhaustive]
         672  +
/* RustType.kt:516 */
  651    673   
#[derive(::std::fmt::Debug)]
  652         -
pub enum SimpleInputParamsError {
         674  +
pub /* OperationErrorGenerator.kt:81 */ enum SimpleInputParamsError {
         675  +
    /* OperationErrorGenerator.kt:88 */
  653    676   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  654    677   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  655    678   
    variable wildcard pattern and check `.code()`:
  656    679   
     \
  657    680   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  658    681   
     \
  659    682   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-SimpleInputParamsError) for what information is available for the error.")]
  660    683   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         684  +
    /* OperationErrorGenerator.kt:81 */
  661    685   
}
         686  +
/* OperationErrorGenerator.kt:218 */
  662    687   
impl SimpleInputParamsError {
         688  +
    /* OperationErrorGenerator.kt:219 */
  663    689   
    /// Creates the `SimpleInputParamsError::Unhandled` variant from any error type.
  664    690   
    pub fn unhandled(
  665    691   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  666    692   
    ) -> Self {
  667    693   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  668    694   
            source: err.into(),
  669    695   
            meta: ::std::default::Default::default(),
  670    696   
        })
  671    697   
    }
  672    698   
  673    699   
    /// Creates the `SimpleInputParamsError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  674    700   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  675    701   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  676    702   
            source: err.clone().into(),
  677    703   
            meta: err,
  678    704   
        })
  679    705   
    }
  680         -
    ///
         706  +
    /// /* OperationErrorGenerator.kt:236 */
  681    707   
    /// Returns error metadata, which includes the error code, message,
  682    708   
    /// request ID, and potentially additional information.
  683    709   
    ///
         710  +
    /* OperationErrorGenerator.kt:242 */
  684    711   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         712  +
        /* OperationErrorGenerator.kt:243 */
  685    713   
        match self {
  686         -
            Self::Unhandled(e) => &e.meta,
         714  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         715  +
            /* OperationErrorGenerator.kt:243 */
  687    716   
        }
         717  +
        /* OperationErrorGenerator.kt:242 */
  688    718   
    }
         719  +
    /* OperationErrorGenerator.kt:218 */
  689    720   
}
         721  +
/* OperationErrorGenerator.kt:269 */
  690    722   
impl ::std::error::Error for SimpleInputParamsError {
         723  +
    /* OperationErrorGenerator.kt:270 */
  691    724   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         725  +
        /* OperationErrorGenerator.kt:318 */
  692    726   
        match self {
  693         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         727  +
            /* OperationErrorGenerator.kt:326 */
         728  +
            Self::Unhandled(_inner) => {
         729  +
                /* OperationErrorGenerator.kt:279 */
         730  +
                ::std::option::Option::Some(&*_inner.source)
         731  +
                /* OperationErrorGenerator.kt:326 */
         732  +
            } /* OperationErrorGenerator.kt:318 */
  694    733   
        }
         734  +
        /* OperationErrorGenerator.kt:270 */
  695    735   
    }
         736  +
    /* OperationErrorGenerator.kt:269 */
  696    737   
}
         738  +
/* OperationErrorGenerator.kt:133 */
  697    739   
impl ::std::fmt::Display for SimpleInputParamsError {
         740  +
    /* OperationErrorGenerator.kt:134 */
  698    741   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         742  +
        /* OperationErrorGenerator.kt:318 */
  699    743   
        match self {
         744  +
            /* OperationErrorGenerator.kt:326 */
  700    745   
            Self::Unhandled(_inner) => {
         746  +
                /* OperationErrorGenerator.kt:139 */
  701    747   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  702    748   
                    write!(f, "unhandled error ({code})")
  703    749   
                } else {
  704    750   
                    f.write_str("unhandled error")
  705    751   
                }
  706         -
            }
         752  +
                /* OperationErrorGenerator.kt:326 */
         753  +
            } /* OperationErrorGenerator.kt:318 */
  707    754   
        }
         755  +
        /* OperationErrorGenerator.kt:134 */
  708    756   
    }
         757  +
    /* OperationErrorGenerator.kt:133 */
  709    758   
}
         759  +
/* OperationErrorGenerator.kt:182 */
  710    760   
impl ::aws_smithy_types::retry::ProvideErrorKind for SimpleInputParamsError {
         761  +
    /* OperationErrorGenerator.kt:186 */
  711    762   
    fn code(&self) -> ::std::option::Option<&str> {
         763  +
        /* OperationErrorGenerator.kt:187 */
  712    764   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         765  +
        /* OperationErrorGenerator.kt:186 */
  713    766   
    }
         767  +
    /* OperationErrorGenerator.kt:190 */
  714    768   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         769  +
        /* OperationErrorGenerator.kt:197 */
  715    770   
        ::std::option::Option::None
         771  +
        /* OperationErrorGenerator.kt:190 */
  716    772   
    }
         773  +
    /* OperationErrorGenerator.kt:182 */
  717    774   
}
         775  +
/* OperationErrorGenerator.kt:163 */
  718    776   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for SimpleInputParamsError {
         777  +
    /* OperationErrorGenerator.kt:164 */
  719    778   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         779  +
        /* OperationErrorGenerator.kt:318 */
  720    780   
        match self {
  721         -
            Self::Unhandled(_inner) => &_inner.meta,
         781  +
            /* OperationErrorGenerator.kt:326 */
         782  +
            Self::Unhandled(_inner) => {
         783  +
                /* OperationErrorGenerator.kt:168 */
         784  +
                &_inner.meta
         785  +
                /* OperationErrorGenerator.kt:326 */
         786  +
            } /* OperationErrorGenerator.kt:318 */
  722    787   
        }
         788  +
        /* OperationErrorGenerator.kt:164 */
  723    789   
    }
         790  +
    /* OperationErrorGenerator.kt:163 */
  724    791   
}
         792  +
/* OperationErrorGenerator.kt:109 */
  725    793   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for SimpleInputParamsError {
         794  +
    /* OperationErrorGenerator.kt:110 */
  726    795   
    fn create_unhandled_error(
  727    796   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  728    797   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  729    798   
    ) -> Self {
         799  +
        /* OperationErrorGenerator.kt:121 */
  730    800   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  731    801   
            source,
  732    802   
            meta: meta.unwrap_or_default(),
  733    803   
        })
         804  +
        /* OperationErrorGenerator.kt:110 */
  734    805   
    }
         806  +
    /* OperationErrorGenerator.kt:109 */
  735    807   
}
  736    808   
         809  +
/* CodegenDelegator.kt:255 */
  737    810   
pub use crate::operation::simple_input_params::_simple_input_params_output::SimpleInputParamsOutput;
  738    811   
         812  +
/* CodegenDelegator.kt:255 */
  739    813   
pub use crate::operation::simple_input_params::_simple_input_params_input::SimpleInputParamsInput;
  740    814   
         815  +
/* RustModule.kt:172 */
  741    816   
mod _simple_input_params_input;
  742    817   
         818  +
/* RustModule.kt:172 */
  743    819   
mod _simple_input_params_output;
  744    820   
  745         -
/// Builders
         821  +
/// /* CodegenDelegator.kt:51 */Builders
  746    822   
pub mod builders;

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

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

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

@@ -1,1 +265,343 @@
    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 has_query_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  225    286   
        self.inner = self.inner.has_query_name(input.into());
  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_has_query_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  230    293   
        self.inner = self.inner.set_has_query_name(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_has_query_name(&self) -> &::std::option::Option<::std::string::String> {
  235    300   
        self.inner.get_has_query_name()
  236    301   
    }
         302  +
    /* FluentBuilderGenerator.kt:498 */
  237    303   
    #[allow(missing_docs)] // documentation missing in model
         304  +
                           /* FluentBuilderGenerator.kt:500 */
  238    305   
    pub fn has_query_and_xml_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  239    306   
        self.inner = self.inner.has_query_and_xml_name(input.into());
  240    307   
        self
  241    308   
    }
         309  +
    /* FluentBuilderGenerator.kt:498 */
  242    310   
    #[allow(missing_docs)] // documentation missing in model
         311  +
                           /* FluentBuilderGenerator.kt:500 */
  243    312   
    pub fn set_has_query_and_xml_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  244    313   
        self.inner = self.inner.set_has_query_and_xml_name(input);
  245    314   
        self
  246    315   
    }
         316  +
    /* FluentBuilderGenerator.kt:518 */
  247    317   
    #[allow(missing_docs)] // documentation missing in model
         318  +
                           /* FluentBuilderGenerator.kt:520 */
  248    319   
    pub fn get_has_query_and_xml_name(&self) -> &::std::option::Option<::std::string::String> {
  249    320   
        self.inner.get_has_query_and_xml_name()
  250    321   
    }
         322  +
    /* FluentBuilderGenerator.kt:498 */
  251    323   
    #[allow(missing_docs)] // documentation missing in model
         324  +
                           /* FluentBuilderGenerator.kt:500 */
  252    325   
    pub fn uses_xml_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  253    326   
        self.inner = self.inner.uses_xml_name(input.into());
  254    327   
        self
  255    328   
    }
         329  +
    /* FluentBuilderGenerator.kt:498 */
  256    330   
    #[allow(missing_docs)] // documentation missing in model
         331  +
                           /* FluentBuilderGenerator.kt:500 */
  257    332   
    pub fn set_uses_xml_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  258    333   
        self.inner = self.inner.set_uses_xml_name(input);
  259    334   
        self
  260    335   
    }
         336  +
    /* FluentBuilderGenerator.kt:518 */
  261    337   
    #[allow(missing_docs)] // documentation missing in model
         338  +
                           /* FluentBuilderGenerator.kt:520 */
  262    339   
    pub fn get_uses_xml_name(&self) -> &::std::option::Option<::std::string::String> {
  263    340   
        self.inner.get_uses_xml_name()
  264    341   
    }
         342  +
    /* FluentBuilderGenerator.kt:282 */
  265    343   
}

tmp-codegen-diff/codegen-client-test/ec2_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   
            "EC2 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: Ec2SimpleScalarProperties
  244    261   
    #[::tokio::test]
  245    262   
    #[::tracing_test::traced_test]
  246    263   
    async fn ec2_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   
                }
  624         -
            }
         670  +
                /* OperationErrorGenerator.kt:326 */
         671  +
            } /* OperationErrorGenerator.kt:318 */
  625    672   
        }
         673  +
        /* OperationErrorGenerator.kt:134 */
  626    674   
    }
         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/ec2_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/ec2_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   
}

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

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

tmp-codegen-diff/codegen-client-test/ec2_query/rust-client-codegen/src/operation/xml_blobs.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 `XmlBlobs`.
           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 XmlBlobs;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl XmlBlobs {
    7         -
    /// Creates a new `XmlBlobs`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `XmlBlobs`
          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::xml_blobs::XmlBlobsInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::xml_blobs::XmlBlobsOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::xml_blobs::XmlBlobsError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -53,62 +362,438 @@
   73     82   
                runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
   74     83   
            }
   75     84   
            runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
   76     85   
                config_override,
   77     86   
                client_config.config.clone(),
   78     87   
                &client_config.runtime_components,
   79     88   
            ));
   80     89   
        }
   81     90   
        runtime_plugins
   82     91   
    }
          92  +
    /* OperationGenerator.kt:85 */
   83     93   
}
          94  +
/* OperationRuntimePluginGenerator.kt:55 */
   84     95   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for XmlBlobs {
   85     96   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
   86     97   
        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("XmlBlobs");
   87     98   
   88     99   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   89    100   
            XmlBlobsRequestSerializer,
   90    101   
        ));
   91    102   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
   92    103   
            XmlBlobsResponseDeserializer,
   93    104   
        ));
   94    105   
   95    106   
        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
   96    107   
            ::aws_smithy_runtime_api::client::auth::static_resolver::StaticAuthSchemeOptionResolverParams::new(),
   97    108   
        ));
   98    109   
   99    110   
        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new("XmlBlobs", "EC2 Protocol"));
  100    111   
  101    112   
        ::std::option::Option::Some(cfg.freeze())
  102    113   
    }
  103    114   
  104    115   
    fn runtime_components(
  105    116   
        &self,
  106    117   
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
  107    118   
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
  108    119   
        #[allow(unused_mut)]
  109    120   
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("XmlBlobs")
  110    121   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  111    122   
            .with_interceptor(XmlBlobsEndpointParamsInterceptor)
  112    123   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  113    124   
                crate::operation::xml_blobs::XmlBlobsError,
  114    125   
            >::new())
  115    126   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  116    127   
                crate::operation::xml_blobs::XmlBlobsError,
  117    128   
            >::new());
  118    129   
  119    130   
        ::std::borrow::Cow::Owned(rcb)
  120    131   
    }
  121    132   
}
  122    133   
         134  +
/* ResponseDeserializerGenerator.kt:64 */
  123    135   
#[derive(Debug)]
  124    136   
struct XmlBlobsResponseDeserializer;
  125    137   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for XmlBlobsResponseDeserializer {
  126    138   
    fn deserialize_nonstreaming(
  127    139   
        &self,
  128    140   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
  129    141   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  130    142   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  131    143   
        let headers = response.headers();
  132    144   
        let body = response.body().bytes().expect("body loaded");
  133    145   
        #[allow(unused_mut)]
  134    146   
        let mut force_error = false;
  135    147   
  136    148   
        let parse_result = if !success && status != 200 || force_error {
  137    149   
            crate::protocol_serde::shape_xml_blobs::de_xml_blobs_http_error(status, headers, body)
  138    150   
        } else {
  139    151   
            crate::protocol_serde::shape_xml_blobs::de_xml_blobs_http_response(status, headers, body)
  140    152   
        };
  141    153   
        crate::protocol_serde::type_erase_result(parse_result)
  142    154   
    }
  143    155   
}
         156  +
/* RequestSerializerGenerator.kt:67 */
  144    157   
#[derive(Debug)]
  145    158   
struct XmlBlobsRequestSerializer;
  146    159   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for XmlBlobsRequestSerializer {
  147    160   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  148    161   
    fn serialize_input(
  149    162   
        &self,
  150    163   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  151    164   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  152    165   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  153    166   
        let input = input.downcast::<crate::operation::xml_blobs::XmlBlobsInput>().expect("correct type");
  154    167   
        let _header_serialization_settings = _cfg
  155    168   
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  156    169   
            .cloned()
  157    170   
            .unwrap_or_default();
  158    171   
        let mut request_builder = {
  159    172   
            fn uri_base(
  160    173   
                _input: &crate::operation::xml_blobs::XmlBlobsInput,
  161    174   
                output: &mut ::std::string::String,
  162    175   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  163    176   
                use ::std::fmt::Write as _;
  164    177   
                ::std::write!(output, "/").expect("formatting should succeed");
  165    178   
                ::std::result::Result::Ok(())
  166    179   
            }
  167    180   
            #[allow(clippy::unnecessary_wraps)]
  168    181   
            fn update_http_builder(
  169    182   
                input: &crate::operation::xml_blobs::XmlBlobsInput,
  170    183   
                builder: ::http::request::Builder,
  171    184   
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  172    185   
                let mut uri = ::std::string::String::new();
  173    186   
                uri_base(input, &mut uri)?;
  174    187   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  175    188   
            }
  176    189   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  177    190   
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
  178    191   
            builder
  179    192   
        };
  180    193   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_xml_blobs_input::ser_xml_blobs_input_input_input(&input)?);
  181    194   
  182    195   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  183    196   
    }
  184    197   
}
         198  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  185    199   
#[derive(Debug)]
  186    200   
struct XmlBlobsEndpointParamsInterceptor;
  187    201   
  188    202   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for XmlBlobsEndpointParamsInterceptor {
  189    203   
    fn name(&self) -> &'static str {
  190    204   
        "XmlBlobsEndpointParamsInterceptor"
  191    205   
    }
  192    206   
  193    207   
    fn read_before_execution(
  194    208   
        &self,
  195    209   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  196    210   
            '_,
  197    211   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  198    212   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  199    213   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  200    214   
        >,
  201    215   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  202    216   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  203    217   
        let _input = context
  204    218   
            .input()
  205    219   
            .downcast_ref::<XmlBlobsInput>()
  206    220   
            .ok_or("failed to downcast to XmlBlobsInput")?;
  207    221   
  208    222   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  209    223   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  210    224   
        })?;
  211    225   
        cfg.interceptor_state()
  212    226   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  213    227   
        ::std::result::Result::Ok(())
  214    228   
    }
  215    229   
}
  216    230   
  217    231   
// The get_* functions below are generated from JMESPath expressions in the
  218    232   
// operationContextParams trait. They target the operation's input shape.
  219    233   
         234  +
/* RustType.kt:516 */
  220    235   
#[allow(unreachable_code, unused_variables)]
         236  +
/* RustType.kt:516 */
  221    237   
#[cfg(test)]
         238  +
/* ProtocolTestGenerator.kt:98 */
  222    239   
mod xml_blobs_test {
  223    240   
  224    241   
    /// Blobs are base64 encoded
  225    242   
    /// Test ID: Ec2XmlBlobs
  226    243   
    #[::tokio::test]
  227    244   
    #[::tracing_test::traced_test]
  228    245   
    async fn ec2_xml_blobs_response() {
  229    246   
        let expected_output = crate::operation::xml_blobs::XmlBlobsOutput::builder()
  230    247   
            .set_data(::std::option::Option::Some(::aws_smithy_types::Blob::new("value")))
  231    248   
            .build();
  232    249   
        let mut http_response = ::aws_smithy_runtime_api::http::Response::try_from(::http::response::Builder::new()
  233    250   
        .header("Content-Type", "text/xml;charset=UTF-8")
  234    251   
        .status(200)
  235    252   
                    .body(::aws_smithy_types::body::SdkBody::from("<XmlBlobsResponse xmlns=\"https://example.com/\">\n    <data>dmFsdWU=</data>\n    <requestId>requestid</requestId>\n</XmlBlobsResponse>\n"))
  236    253   
                    .unwrap()
  237    254   
                    ).unwrap();
  238    255   
        use ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin;
  239    256   
        use ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse;
  240    257   
  241    258   
        let op = crate::operation::xml_blobs::XmlBlobs::new();
  242    259   
        let config = op.config().expect("the operation has config");
  243    260   
        let de = config
  244    261   
            .load::<::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer>()
  245    262   
            .expect("the config must have a deserializer");
  246    263   
  247    264   
        let parsed = de.deserialize_streaming(&mut http_response);
  248    265   
        let parsed = parsed.unwrap_or_else(|| {
  249    266   
            let http_response = http_response.map(|body| {
  250    267   
                ::aws_smithy_types::body::SdkBody::from(::bytes::Bytes::copy_from_slice(&::aws_smithy_protocol_test::decode_body_data(
  251    268   
                    body.bytes().unwrap(),
  252    269   
                    ::aws_smithy_protocol_test::MediaType::from("application/xml"),
  253    270   
                )))
  254    271   
            });
  255    272   
            de.deserialize_nonstreaming(&http_response)
  256    273   
        });
  257    274   
        let parsed = parsed
  258    275   
            .expect("should be successful response")
  259    276   
            .downcast::<crate::operation::xml_blobs::XmlBlobsOutput>()
  260    277   
            .unwrap();
  261    278   
        ::pretty_assertions::assert_eq!(parsed.data, expected_output.data, "Unexpected value for `data`");
  262    279   
    }
         280  +
         281  +
    /* ProtocolTestGenerator.kt:98 */
  263    282   
}
  264    283   
         284  +
/* OperationErrorGenerator.kt:79 */
  265    285   
/// Error type for the `XmlBlobsError` operation.
         286  +
/* RustType.kt:516 */
  266    287   
#[non_exhaustive]
         288  +
/* RustType.kt:516 */
  267    289   
#[derive(::std::fmt::Debug)]
  268         -
pub enum XmlBlobsError {
         290  +
pub /* OperationErrorGenerator.kt:81 */ enum XmlBlobsError {
         291  +
    /* OperationErrorGenerator.kt:88 */
  269    292   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  270    293   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  271    294   
    variable wildcard pattern and check `.code()`:
  272    295   
     \
  273    296   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  274    297   
     \
  275    298   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-XmlBlobsError) for what information is available for the error.")]
  276    299   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         300  +
    /* OperationErrorGenerator.kt:81 */
  277    301   
}
         302  +
/* OperationErrorGenerator.kt:218 */
  278    303   
impl XmlBlobsError {
         304  +
    /* OperationErrorGenerator.kt:219 */
  279    305   
    /// Creates the `XmlBlobsError::Unhandled` variant from any error type.
  280    306   
    pub fn unhandled(
  281    307   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  282    308   
    ) -> Self {
  283    309   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  284    310   
            source: err.into(),
  285    311   
            meta: ::std::default::Default::default(),
  286    312   
        })
  287    313   
    }
  288    314   
  289    315   
    /// Creates the `XmlBlobsError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  290    316   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  291    317   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  292    318   
            source: err.clone().into(),
  293    319   
            meta: err,
  294    320   
        })
  295    321   
    }
  296         -
    ///
         322  +
    /// /* OperationErrorGenerator.kt:236 */
  297    323   
    /// Returns error metadata, which includes the error code, message,
  298    324   
    /// request ID, and potentially additional information.
  299    325   
    ///
         326  +
    /* OperationErrorGenerator.kt:242 */
  300    327   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         328  +
        /* OperationErrorGenerator.kt:243 */
  301    329   
        match self {
  302         -
            Self::Unhandled(e) => &e.meta,
         330  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         331  +
            /* OperationErrorGenerator.kt:243 */
  303    332   
        }
         333  +
        /* OperationErrorGenerator.kt:242 */
  304    334   
    }
         335  +
    /* OperationErrorGenerator.kt:218 */
  305    336   
}
         337  +
/* OperationErrorGenerator.kt:269 */
  306    338   
impl ::std::error::Error for XmlBlobsError {
         339  +
    /* OperationErrorGenerator.kt:270 */
  307    340   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         341  +
        /* OperationErrorGenerator.kt:318 */
  308    342   
        match self {
  309         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         343  +
            /* OperationErrorGenerator.kt:326 */
         344  +
            Self::Unhandled(_inner) => {
         345  +
                /* OperationErrorGenerator.kt:279 */
         346  +
                ::std::option::Option::Some(&*_inner.source)
         347  +
                /* OperationErrorGenerator.kt:326 */
         348  +
            } /* OperationErrorGenerator.kt:318 */
  310    349   
        }
         350  +
        /* OperationErrorGenerator.kt:270 */
  311    351   
    }
         352  +
    /* OperationErrorGenerator.kt:269 */
  312    353   
}
         354  +
/* OperationErrorGenerator.kt:133 */
  313    355   
impl ::std::fmt::Display for XmlBlobsError {
         356  +
    /* OperationErrorGenerator.kt:134 */
  314    357   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         358  +
        /* OperationErrorGenerator.kt:318 */
  315    359   
        match self {
         360  +
            /* OperationErrorGenerator.kt:326 */
  316    361   
            Self::Unhandled(_inner) => {
         362  +
                /* OperationErrorGenerator.kt:139 */
  317    363   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  318    364   
                    write!(f, "unhandled error ({code})")
  319    365   
                } else {
  320    366   
                    f.write_str("unhandled error")
  321    367   
                }
  322         -
            }
         368  +
                /* OperationErrorGenerator.kt:326 */
         369  +
            } /* OperationErrorGenerator.kt:318 */
  323    370   
        }
         371  +
        /* OperationErrorGenerator.kt:134 */
  324    372   
    }
         373  +
    /* OperationErrorGenerator.kt:133 */
  325    374   
}
         375  +
/* OperationErrorGenerator.kt:182 */
  326    376   
impl ::aws_smithy_types::retry::ProvideErrorKind for XmlBlobsError {
         377  +
    /* OperationErrorGenerator.kt:186 */
  327    378   
    fn code(&self) -> ::std::option::Option<&str> {
         379  +
        /* OperationErrorGenerator.kt:187 */
  328    380   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         381  +
        /* OperationErrorGenerator.kt:186 */
  329    382   
    }
         383  +
    /* OperationErrorGenerator.kt:190 */
  330    384   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         385  +
        /* OperationErrorGenerator.kt:197 */
  331    386   
        ::std::option::Option::None
         387  +
        /* OperationErrorGenerator.kt:190 */
  332    388   
    }
         389  +
    /* OperationErrorGenerator.kt:182 */
  333    390   
}
         391  +
/* OperationErrorGenerator.kt:163 */
  334    392   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for XmlBlobsError {
         393  +
    /* OperationErrorGenerator.kt:164 */
  335    394   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         395  +
        /* OperationErrorGenerator.kt:318 */
  336    396   
        match self {
  337         -
            Self::Unhandled(_inner) => &_inner.meta,
         397  +
            /* OperationErrorGenerator.kt:326 */
         398  +
            Self::Unhandled(_inner) => {
         399  +
                /* OperationErrorGenerator.kt:168 */
         400  +
                &_inner.meta
         401  +
                /* OperationErrorGenerator.kt:326 */
         402  +
            } /* OperationErrorGenerator.kt:318 */
  338    403   
        }
         404  +
        /* OperationErrorGenerator.kt:164 */
  339    405   
    }
         406  +
    /* OperationErrorGenerator.kt:163 */
  340    407   
}
         408  +
/* OperationErrorGenerator.kt:109 */
  341    409   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for XmlBlobsError {
         410  +
    /* OperationErrorGenerator.kt:110 */
  342    411   
    fn create_unhandled_error(
  343    412   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  344    413   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  345    414   
    ) -> Self {
         415  +
        /* OperationErrorGenerator.kt:121 */
  346    416   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  347    417   
            source,
  348    418   
            meta: meta.unwrap_or_default(),
  349    419   
        })
         420  +
        /* OperationErrorGenerator.kt:110 */
  350    421   
    }
         422  +
    /* OperationErrorGenerator.kt:109 */
  351    423   
}
  352    424   
         425  +
/* CodegenDelegator.kt:255 */
  353    426   
pub use crate::operation::xml_blobs::_xml_blobs_output::XmlBlobsOutput;
  354    427   
         428  +
/* CodegenDelegator.kt:255 */
  355    429   
pub use crate::operation::xml_blobs::_xml_blobs_input::XmlBlobsInput;
  356    430   
         431  +
/* RustModule.kt:172 */
  357    432   
mod _xml_blobs_input;
  358    433   
         434  +
/* RustModule.kt:172 */
  359    435   
mod _xml_blobs_output;
  360    436   
  361         -
/// Builders
         437  +
/// /* CodegenDelegator.kt:51 */Builders
  362    438   
pub mod builders;

tmp-codegen-diff/codegen-client-test/ec2_query/rust-client-codegen/src/operation/xml_blobs/_xml_blobs_input.rs

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