Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-client-test/rest_xml/rust-client-codegen/src/operation/query_params_as_string_list_map/builders.rs

@@ -1,1 +146,170 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CodegenDelegator.kt:255 */
    2      3   
pub use crate::operation::query_params_as_string_list_map::_query_params_as_string_list_map_output::QueryParamsAsStringListMapOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::query_params_as_string_list_map::_query_params_as_string_list_map_input::QueryParamsAsStringListMapInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::query_params_as_string_list_map::builders::QueryParamsAsStringListMapInputBuilder {
    7     10   
    /// Sends a request with this input using the given client.
    8     11   
    pub async fn send_with(
    9     12   
        self,
   10     13   
        client: &crate::Client,
   11     14   
    ) -> ::std::result::Result<
   12     15   
        crate::operation::query_params_as_string_list_map::QueryParamsAsStringListMapOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::query_params_as_string_list_map::QueryParamsAsStringListMapError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.query_params_as_string_list_map();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `QueryParamsAsStringListMap`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `QueryParamsAsStringListMap`.
   24     27   
///
          28  +
/* RustType.kt:516 */
   25     29   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          30  +
/* FluentBuilderGenerator.kt:270 */
   26     31   
pub struct QueryParamsAsStringListMapFluentBuilder {
   27     32   
    handle: ::std::sync::Arc<crate::client::Handle>,
   28     33   
    inner: crate::operation::query_params_as_string_list_map::builders::QueryParamsAsStringListMapInputBuilder,
   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::query_params_as_string_list_map::QueryParamsAsStringListMapOutput,
   34     40   
        crate::operation::query_params_as_string_list_map::QueryParamsAsStringListMapError,
   35     41   
    > for QueryParamsAsStringListMapFluentBuilder
   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::query_params_as_string_list_map::QueryParamsAsStringListMapOutput,
   43     49   
            crate::operation::query_params_as_string_list_map::QueryParamsAsStringListMapError,
   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 QueryParamsAsStringListMapFluentBuilder {
          57  +
    /* FluentBuilderGenerator.kt:288 */
   50     58   
    /// Creates a new `QueryParamsAsStringListMapFluentBuilder`.
   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 QueryParamsAsStringListMap as a reference.
   59     68   
    pub fn as_input(&self) -> &crate::operation::query_params_as_string_list_map::builders::QueryParamsAsStringListMapInputBuilder {
   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::query_params_as_string_list_map::QueryParamsAsStringListMapOutput,
   74     84   
        ::aws_smithy_runtime_api::client::result::SdkError<
   75     85   
            crate::operation::query_params_as_string_list_map::QueryParamsAsStringListMapError,
   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::query_params_as_string_list_map::QueryParamsAsStringListMap::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::query_params_as_string_list_map::QueryParamsAsStringListMap::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::query_params_as_string_list_map::QueryParamsAsStringListMapOutput,
   96    106   
        crate::operation::query_params_as_string_list_map::QueryParamsAsStringListMapError,
   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:498 */
  110    122   
    #[allow(missing_docs)] // documentation missing in model
         123  +
                           /* FluentBuilderGenerator.kt:500 */
  111    124   
    pub fn qux(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  112    125   
        self.inner = self.inner.qux(input.into());
  113    126   
        self
  114    127   
    }
         128  +
    /* FluentBuilderGenerator.kt:498 */
  115    129   
    #[allow(missing_docs)] // documentation missing in model
         130  +
                           /* FluentBuilderGenerator.kt:500 */
  116    131   
    pub fn set_qux(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  117    132   
        self.inner = self.inner.set_qux(input);
  118    133   
        self
  119    134   
    }
         135  +
    /* FluentBuilderGenerator.kt:518 */
  120    136   
    #[allow(missing_docs)] // documentation missing in model
         137  +
                           /* FluentBuilderGenerator.kt:520 */
  121    138   
    pub fn get_qux(&self) -> &::std::option::Option<::std::string::String> {
  122    139   
        self.inner.get_qux()
  123    140   
    }
  124         -
    ///
         141  +
    /// /* FluentBuilderGenerator.kt:466 */
  125    142   
    /// Adds a key-value pair to `foo`.
  126    143   
    ///
  127    144   
    /// To override the contents of this collection use [`set_foo`](Self::set_foo).
  128    145   
    ///
         146  +
    /* FluentBuilderGenerator.kt:473 */
  129    147   
    #[allow(missing_docs)] // documentation missing in model
         148  +
                           /* FluentBuilderGenerator.kt:475 */
  130    149   
    pub fn foo(mut self, k: impl ::std::convert::Into<::std::string::String>, v: ::std::vec::Vec<::std::string::String>) -> Self {
  131    150   
        self.inner = self.inner.foo(k.into(), v);
  132    151   
        self
  133    152   
    }
         153  +
    /* FluentBuilderGenerator.kt:498 */
  134    154   
    #[allow(missing_docs)] // documentation missing in model
         155  +
                           /* FluentBuilderGenerator.kt:500 */
  135    156   
    pub fn set_foo(
  136    157   
        mut self,
  137    158   
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>>,
  138    159   
    ) -> Self {
  139    160   
        self.inner = self.inner.set_foo(input);
  140    161   
        self
  141    162   
    }
         163  +
    /* FluentBuilderGenerator.kt:518 */
  142    164   
    #[allow(missing_docs)] // documentation missing in model
         165  +
                           /* FluentBuilderGenerator.kt:520 */
  143    166   
    pub fn get_foo(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>> {
  144    167   
        self.inner.get_foo()
  145    168   
    }
         169  +
    /* FluentBuilderGenerator.kt:282 */
  146    170   
}

tmp-codegen-diff/codegen-client-test/rest_xml/rust-client-codegen/src/operation/query_precedence.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 `QueryPrecedence`.
           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 QueryPrecedence;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl QueryPrecedence {
    7         -
    /// Creates a new `QueryPrecedence`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `QueryPrecedence`
          13  +
    /* OperationGenerator.kt:87 */
    8     14   
    pub fn new() -> Self {
          15  +
        /* OperationGenerator.kt:88 */
    9     16   
        Self
          17  +
        /* OperationGenerator.kt:87 */
   10     18   
    }
          19  +
    /* OperationGenerator.kt:138 */
   11     20   
    pub(crate) async fn orchestrate(
   12     21   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     22   
        input: crate::operation::query_precedence::QueryPrecedenceInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::query_precedence::QueryPrecedenceOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::query_precedence::QueryPrecedenceError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -57,66 +180,193 @@
   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 QueryPrecedence {
   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("QueryPrecedence");
   91    102   
   92    103   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   93    104   
            QueryPrecedenceRequestSerializer,
   94    105   
        ));
   95    106   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
   96    107   
            QueryPrecedenceResponseDeserializer,
   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   
            "QueryPrecedence",
  105    116   
            "Rest Xml 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("QueryPrecedence")
  117    128   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  118    129   
            .with_interceptor(QueryPrecedenceEndpointParamsInterceptor)
  119    130   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  120    131   
                crate::operation::query_precedence::QueryPrecedenceError,
  121    132   
            >::new())
  122    133   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  123    134   
                crate::operation::query_precedence::QueryPrecedenceError,
  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 QueryPrecedenceResponseDeserializer;
  132    144   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for QueryPrecedenceResponseDeserializer {
  133    145   
    fn deserialize_nonstreaming(
  134    146   
        &self,
  135    147   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
  136    148   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  137    149   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  138    150   
        let headers = response.headers();
  139    151   
        let body = response.body().bytes().expect("body loaded");
  140    152   
        #[allow(unused_mut)]
  141    153   
        let mut force_error = false;
  142    154   
  143    155   
        let parse_result = if !success && status != 200 || force_error {
  144    156   
            crate::protocol_serde::shape_query_precedence::de_query_precedence_http_error(status, headers, body)
  145    157   
        } else {
  146    158   
            crate::protocol_serde::shape_query_precedence::de_query_precedence_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 QueryPrecedenceRequestSerializer;
  153    166   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for QueryPrecedenceRequestSerializer {
  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
@@ -186,199 +385,461 @@
  206    219   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  207    220   
            }
  208    221   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  209    222   
            builder
  210    223   
        };
  211    224   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  212    225   
  213    226   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  214    227   
    }
  215    228   
}
         229  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  216    230   
#[derive(Debug)]
  217    231   
struct QueryPrecedenceEndpointParamsInterceptor;
  218    232   
  219    233   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for QueryPrecedenceEndpointParamsInterceptor {
  220    234   
    fn name(&self) -> &'static str {
  221    235   
        "QueryPrecedenceEndpointParamsInterceptor"
  222    236   
    }
  223    237   
  224    238   
    fn read_before_execution(
  225    239   
        &self,
  226    240   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  227    241   
            '_,
  228    242   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  229    243   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  230    244   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  231    245   
        >,
  232    246   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  233    247   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  234    248   
        let _input = context
  235    249   
            .input()
  236    250   
            .downcast_ref::<QueryPrecedenceInput>()
  237    251   
            .ok_or("failed to downcast to QueryPrecedenceInput")?;
  238    252   
  239    253   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  240    254   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  241    255   
        })?;
  242    256   
        cfg.interceptor_state()
  243    257   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  244    258   
        ::std::result::Result::Ok(())
  245    259   
    }
  246    260   
}
  247    261   
  248    262   
// The get_* functions below are generated from JMESPath expressions in the
  249    263   
// operationContextParams trait. They target the operation's input shape.
  250    264   
         265  +
/* RustType.kt:516 */
  251    266   
#[allow(unreachable_code, unused_variables)]
         267  +
/* RustType.kt:516 */
  252    268   
#[cfg(test)]
         269  +
/* ProtocolTestGenerator.kt:98 */
  253    270   
mod query_precedence_test {
  254    271   
  255    272   
    /// Prefer named query parameters when serializing
  256    273   
    /// Test ID: RestXmlQueryPrecedence
  257    274   
    #[::tokio::test]
  258    275   
    #[::tracing_test::traced_test]
  259    276   
    async fn rest_xml_query_precedence_request() {
  260    277   
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  261    278   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  262    279   
  263    280   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  264    281   
        let result = client
  265    282   
            .query_precedence()
  266    283   
            .set_foo(::std::option::Option::Some("named".to_owned()))
  267    284   
            .set_baz(::std::option::Option::Some({
  268    285   
                let mut ret = ::std::collections::HashMap::new();
  269    286   
                ret.insert("bar".to_owned(), "fromMap".to_owned());
  270    287   
                ret.insert("qux".to_owned(), "alsoFromMap".to_owned());
  271    288   
                ret
  272    289   
            }))
  273    290   
            .send()
  274    291   
            .await;
  275    292   
        let _ = dbg!(result);
  276    293   
        let http_request = request_receiver.expect_request();
  277    294   
        let expected_query_params = &["bar=named", "qux=alsoFromMap"];
  278    295   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_query_string(&http_request, expected_query_params));
  279    296   
        let body = http_request.body().bytes().expect("body should be strict");
  280    297   
        // No body.
  281    298   
        ::pretty_assertions::assert_eq!(&body, &bytes::Bytes::new());
  282    299   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  283    300   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  284    301   
        ::pretty_assertions::assert_eq!(uri.path(), "/Precedence", "path was incorrect");
  285    302   
    }
         303  +
         304  +
    /* ProtocolTestGenerator.kt:98 */
  286    305   
}
  287    306   
         307  +
/* OperationErrorGenerator.kt:79 */
  288    308   
/// Error type for the `QueryPrecedenceError` operation.
         309  +
/* RustType.kt:516 */
  289    310   
#[non_exhaustive]
         311  +
/* RustType.kt:516 */
  290    312   
#[derive(::std::fmt::Debug)]
  291         -
pub enum QueryPrecedenceError {
         313  +
pub /* OperationErrorGenerator.kt:81 */ enum QueryPrecedenceError {
         314  +
    /* OperationErrorGenerator.kt:88 */
  292    315   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  293    316   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  294    317   
    variable wildcard pattern and check `.code()`:
  295    318   
     \
  296    319   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  297    320   
     \
  298    321   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-QueryPrecedenceError) for what information is available for the error.")]
  299    322   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         323  +
    /* OperationErrorGenerator.kt:81 */
  300    324   
}
         325  +
/* OperationErrorGenerator.kt:218 */
  301    326   
impl QueryPrecedenceError {
         327  +
    /* OperationErrorGenerator.kt:219 */
  302    328   
    /// Creates the `QueryPrecedenceError::Unhandled` variant from any error type.
  303    329   
    pub fn unhandled(
  304    330   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  305    331   
    ) -> Self {
  306    332   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  307    333   
            source: err.into(),
  308    334   
            meta: ::std::default::Default::default(),
  309    335   
        })
  310    336   
    }
  311    337   
  312    338   
    /// Creates the `QueryPrecedenceError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  313    339   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  314    340   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  315    341   
            source: err.clone().into(),
  316    342   
            meta: err,
  317    343   
        })
  318    344   
    }
  319         -
    ///
         345  +
    /// /* OperationErrorGenerator.kt:236 */
  320    346   
    /// Returns error metadata, which includes the error code, message,
  321    347   
    /// request ID, and potentially additional information.
  322    348   
    ///
         349  +
    /* OperationErrorGenerator.kt:242 */
  323    350   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         351  +
        /* OperationErrorGenerator.kt:243 */
  324    352   
        match self {
  325         -
            Self::Unhandled(e) => &e.meta,
         353  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         354  +
            /* OperationErrorGenerator.kt:243 */
  326    355   
        }
         356  +
        /* OperationErrorGenerator.kt:242 */
  327    357   
    }
         358  +
    /* OperationErrorGenerator.kt:218 */
  328    359   
}
         360  +
/* OperationErrorGenerator.kt:269 */
  329    361   
impl ::std::error::Error for QueryPrecedenceError {
         362  +
    /* OperationErrorGenerator.kt:270 */
  330    363   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         364  +
        /* OperationErrorGenerator.kt:318 */
  331    365   
        match self {
  332         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         366  +
            /* OperationErrorGenerator.kt:326 */
         367  +
            Self::Unhandled(_inner) => {
         368  +
                /* OperationErrorGenerator.kt:279 */
         369  +
                ::std::option::Option::Some(&*_inner.source)
         370  +
                /* OperationErrorGenerator.kt:326 */
         371  +
            } /* OperationErrorGenerator.kt:318 */
  333    372   
        }
         373  +
        /* OperationErrorGenerator.kt:270 */
  334    374   
    }
         375  +
    /* OperationErrorGenerator.kt:269 */
  335    376   
}
         377  +
/* OperationErrorGenerator.kt:133 */
  336    378   
impl ::std::fmt::Display for QueryPrecedenceError {
         379  +
    /* OperationErrorGenerator.kt:134 */
  337    380   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         381  +
        /* OperationErrorGenerator.kt:318 */
  338    382   
        match self {
         383  +
            /* OperationErrorGenerator.kt:326 */
  339    384   
            Self::Unhandled(_inner) => {
         385  +
                /* OperationErrorGenerator.kt:139 */
  340    386   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  341    387   
                    write!(f, "unhandled error ({code})")
  342    388   
                } else {
  343    389   
                    f.write_str("unhandled error")
  344    390   
                }
         391  +
                /* OperationErrorGenerator.kt:326 */
         392  +
            } /* OperationErrorGenerator.kt:318 */
  345    393   
        }
         394  +
        /* OperationErrorGenerator.kt:134 */
  346    395   
    }
  347         -
    }
         396  +
    /* OperationErrorGenerator.kt:133 */
  348    397   
}
         398  +
/* OperationErrorGenerator.kt:182 */
  349    399   
impl ::aws_smithy_types::retry::ProvideErrorKind for QueryPrecedenceError {
         400  +
    /* OperationErrorGenerator.kt:186 */
  350    401   
    fn code(&self) -> ::std::option::Option<&str> {
         402  +
        /* OperationErrorGenerator.kt:187 */
  351    403   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         404  +
        /* OperationErrorGenerator.kt:186 */
  352    405   
    }
         406  +
    /* OperationErrorGenerator.kt:190 */
  353    407   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         408  +
        /* OperationErrorGenerator.kt:197 */
  354    409   
        ::std::option::Option::None
         410  +
        /* OperationErrorGenerator.kt:190 */
  355    411   
    }
         412  +
    /* OperationErrorGenerator.kt:182 */
  356    413   
}
         414  +
/* OperationErrorGenerator.kt:163 */
  357    415   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for QueryPrecedenceError {
         416  +
    /* OperationErrorGenerator.kt:164 */
  358    417   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         418  +
        /* OperationErrorGenerator.kt:318 */
  359    419   
        match self {
  360         -
            Self::Unhandled(_inner) => &_inner.meta,
         420  +
            /* OperationErrorGenerator.kt:326 */
         421  +
            Self::Unhandled(_inner) => {
         422  +
                /* OperationErrorGenerator.kt:168 */
         423  +
                &_inner.meta
         424  +
                /* OperationErrorGenerator.kt:326 */
         425  +
            } /* OperationErrorGenerator.kt:318 */
  361    426   
        }
         427  +
        /* OperationErrorGenerator.kt:164 */
  362    428   
    }
         429  +
    /* OperationErrorGenerator.kt:163 */
  363    430   
}
         431  +
/* OperationErrorGenerator.kt:109 */
  364    432   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for QueryPrecedenceError {
         433  +
    /* OperationErrorGenerator.kt:110 */
  365    434   
    fn create_unhandled_error(
  366    435   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  367    436   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  368    437   
    ) -> Self {
         438  +
        /* OperationErrorGenerator.kt:121 */
  369    439   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  370    440   
            source,
  371    441   
            meta: meta.unwrap_or_default(),
  372    442   
        })
         443  +
        /* OperationErrorGenerator.kt:110 */
  373    444   
    }
         445  +
    /* OperationErrorGenerator.kt:109 */
  374    446   
}
  375    447   
         448  +
/* CodegenDelegator.kt:255 */
  376    449   
pub use crate::operation::query_precedence::_query_precedence_output::QueryPrecedenceOutput;
  377    450   
         451  +
/* CodegenDelegator.kt:255 */
  378    452   
pub use crate::operation::query_precedence::_query_precedence_input::QueryPrecedenceInput;
  379    453   
         454  +
/* RustModule.kt:172 */
  380    455   
mod _query_precedence_input;
  381    456   
         457  +
/* RustModule.kt:172 */
  382    458   
mod _query_precedence_output;
  383    459   
  384         -
/// Builders
         460  +
/// /* CodegenDelegator.kt:51 */Builders
  385    461   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rest_xml/rust-client-codegen/src/operation/query_precedence/_query_precedence_input.rs

@@ -1,1 +78,140 @@
    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 QueryPrecedenceInput {
           8  +
pub /* StructureGenerator.kt:201 */ struct QueryPrecedenceInput {
           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 baz: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
          15  +
    /* StructureGenerator.kt:201 */
   10     16   
}
          17  +
/* StructureGenerator.kt:135 */
   11     18   
impl QueryPrecedenceInput {
          19  +
    /* StructureGenerator.kt:231 */
   12     20   
    #[allow(missing_docs)] // documentation missing in model
          21  +
                           /* StructureGenerator.kt:166 */
   13     22   
    pub fn foo(&self) -> ::std::option::Option<&str> {
          23  +
        /* StructureGenerator.kt:169 */
   14     24   
        self.foo.as_deref()
          25  +
        /* StructureGenerator.kt:166 */
   15     26   
    }
          27  +
    /* StructureGenerator.kt:231 */
   16     28   
    #[allow(missing_docs)] // documentation missing in model
          29  +
                           /* StructureGenerator.kt:166 */
   17     30   
    pub fn baz(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
          31  +
        /* StructureGenerator.kt:170 */
   18     32   
        self.baz.as_ref()
          33  +
        /* StructureGenerator.kt:166 */
   19     34   
    }
          35  +
    /* StructureGenerator.kt:135 */
   20     36   
}
          37  +
/* ClientCodegenVisitor.kt:237 */
   21     38   
impl QueryPrecedenceInput {
   22         -
    /// Creates a new builder-style object to manufacture [`QueryPrecedenceInput`](crate::operation::query_precedence::QueryPrecedenceInput).
          39  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`QueryPrecedenceInput`](crate::operation::query_precedence::QueryPrecedenceInput).
          40  +
    /* BuilderGenerator.kt:175 */
   23     41   
    pub fn builder() -> crate::operation::query_precedence::builders::QueryPrecedenceInputBuilder {
          42  +
        /* BuilderGenerator.kt:176 */
   24     43   
        crate::operation::query_precedence::builders::QueryPrecedenceInputBuilder::default()
          44  +
        /* BuilderGenerator.kt:175 */
   25     45   
    }
          46  +
    /* ClientCodegenVisitor.kt:237 */
   26     47   
}
   27     48   
   28         -
/// A builder for [`QueryPrecedenceInput`](crate::operation::query_precedence::QueryPrecedenceInput).
          49  +
/// /* BuilderGenerator.kt:342 */A builder for [`QueryPrecedenceInput`](crate::operation::query_precedence::QueryPrecedenceInput).
          50  +
/* RustType.kt:516 */
   29     51   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          52  +
/* RustType.kt:516 */
   30     53   
#[non_exhaustive]
          54  +
/* BuilderGenerator.kt:345 */
   31     55   
pub struct QueryPrecedenceInputBuilder {
   32         -
    pub(crate) foo: ::std::option::Option<::std::string::String>,
          56  +
    /* BuilderGenerator.kt:275 */ pub(crate) foo: ::std::option::Option<::std::string::String>,
          57  +
    /* BuilderGenerator.kt:275 */
   33     58   
    pub(crate) baz: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
          59  +
    /* BuilderGenerator.kt:345 */
   34     60   
}
          61  +
/* BuilderGenerator.kt:355 */
   35     62   
impl QueryPrecedenceInputBuilder {
          63  +
    /* BuilderGenerator.kt:286 */
   36     64   
    #[allow(missing_docs)] // documentation missing in model
          65  +
                           /* BuilderGenerator.kt:291 */
   37     66   
    pub fn foo(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          67  +
        /* BuilderGenerator.kt:292 */
   38     68   
        self.foo = ::std::option::Option::Some(input.into());
          69  +
        /* BuilderGenerator.kt:293 */
   39     70   
        self
          71  +
        /* BuilderGenerator.kt:291 */
   40     72   
    }
          73  +
    /* BuilderGenerator.kt:312 */
   41     74   
    #[allow(missing_docs)] // documentation missing in model
          75  +
                           /* BuilderGenerator.kt:314 */
   42     76   
    pub fn set_foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          77  +
        /* BuilderGenerator.kt:315 */
   43     78   
        self.foo = input;
   44     79   
        self
          80  +
        /* BuilderGenerator.kt:314 */
   45     81   
    }
          82  +
    /* BuilderGenerator.kt:334 */
   46     83   
    #[allow(missing_docs)] // documentation missing in model
          84  +
                           /* BuilderGenerator.kt:336 */
   47     85   
    pub fn get_foo(&self) -> &::std::option::Option<::std::string::String> {
          86  +
        /* BuilderGenerator.kt:337 */
   48     87   
        &self.foo
          88  +
        /* BuilderGenerator.kt:336 */
   49     89   
    }
   50         -
    /// Adds a key-value pair to `baz`.
          90  +
    /// /* BuilderGenerator.kt:436 */Adds a key-value pair to `baz`.
          91  +
    /* BuilderGenerator.kt:437 */
   51     92   
    ///
   52         -
    /// To override the contents of this collection use [`set_baz`](Self::set_baz).
          93  +
    /// /* BuilderGenerator.kt:438 */To override the contents of this collection use [`set_baz`](Self::set_baz).
          94  +
    /* BuilderGenerator.kt:439 */
   53     95   
    ///
          96  +
    /* BuilderGenerator.kt:445 */
   54     97   
    pub fn baz(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
          98  +
        /* BuilderGenerator.kt:448 */
   55     99   
        let mut hash_map = self.baz.unwrap_or_default();
   56    100   
        hash_map.insert(k.into(), v.into());
   57    101   
        self.baz = ::std::option::Option::Some(hash_map);
   58    102   
        self
         103  +
        /* BuilderGenerator.kt:445 */
   59    104   
    }
         105  +
    /* BuilderGenerator.kt:312 */
   60    106   
    #[allow(missing_docs)] // documentation missing in model
         107  +
                           /* BuilderGenerator.kt:314 */
   61    108   
    pub fn set_baz(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
         109  +
        /* BuilderGenerator.kt:315 */
   62    110   
        self.baz = input;
   63    111   
        self
         112  +
        /* BuilderGenerator.kt:314 */
   64    113   
    }
         114  +
    /* BuilderGenerator.kt:334 */
   65    115   
    #[allow(missing_docs)] // documentation missing in model
         116  +
                           /* BuilderGenerator.kt:336 */
   66    117   
    pub fn get_baz(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
         118  +
        /* BuilderGenerator.kt:337 */
   67    119   
        &self.baz
         120  +
        /* BuilderGenerator.kt:336 */
   68    121   
    }
   69         -
    /// Consumes the builder and constructs a [`QueryPrecedenceInput`](crate::operation::query_precedence::QueryPrecedenceInput).
         122  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`QueryPrecedenceInput`](crate::operation::query_precedence::QueryPrecedenceInput).
         123  +
    /* BuilderGenerator.kt:253 */
   70    124   
    pub fn build(
   71    125   
        self,
   72    126   
    ) -> ::std::result::Result<crate::operation::query_precedence::QueryPrecedenceInput, ::aws_smithy_types::error::operation::BuildError> {
   73         -
        ::std::result::Result::Ok(crate::operation::query_precedence::QueryPrecedenceInput {
   74         -
            foo: self.foo,
         127  +
        /* BuilderGenerator.kt:254 */
         128  +
        ::std::result::Result::Ok(
         129  +
            /* BuilderGenerator.kt:477 */
         130  +
            crate::operation::query_precedence::QueryPrecedenceInput {
         131  +
                /* BuilderGenerator.kt:481 */ foo: self.foo,
         132  +
                /* BuilderGenerator.kt:481 */
   75    133   
                baz: self.baz,
   76         -
        })
         134  +
                /* BuilderGenerator.kt:477 */
         135  +
            }, /* BuilderGenerator.kt:254 */
         136  +
        )
         137  +
        /* BuilderGenerator.kt:253 */
   77    138   
    }
         139  +
    /* BuilderGenerator.kt:355 */
   78    140   
}

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

tmp-codegen-diff/codegen-client-test/rest_xml/rust-client-codegen/src/operation/query_precedence/builders.rs

@@ -1,1 +143,167 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CodegenDelegator.kt:255 */
    2      3   
pub use crate::operation::query_precedence::_query_precedence_output::QueryPrecedenceOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::query_precedence::_query_precedence_input::QueryPrecedenceInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::query_precedence::builders::QueryPrecedenceInputBuilder {
    7     10   
    /// Sends a request with this input using the given client.
    8     11   
    pub async fn send_with(
    9     12   
        self,
   10     13   
        client: &crate::Client,
   11     14   
    ) -> ::std::result::Result<
   12     15   
        crate::operation::query_precedence::QueryPrecedenceOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::query_precedence::QueryPrecedenceError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.query_precedence();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `QueryPrecedence`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `QueryPrecedence`.
   24     27   
///
          28  +
/* RustType.kt:516 */
   25     29   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          30  +
/* FluentBuilderGenerator.kt:270 */
   26     31   
pub struct QueryPrecedenceFluentBuilder {
   27     32   
    handle: ::std::sync::Arc<crate::client::Handle>,
   28     33   
    inner: crate::operation::query_precedence::builders::QueryPrecedenceInputBuilder,
   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::query_precedence::QueryPrecedenceOutput,
   34     40   
        crate::operation::query_precedence::QueryPrecedenceError,
   35     41   
    > for QueryPrecedenceFluentBuilder
   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::query_precedence::QueryPrecedenceOutput,
   43     49   
            crate::operation::query_precedence::QueryPrecedenceError,
   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 QueryPrecedenceFluentBuilder {
          57  +
    /* FluentBuilderGenerator.kt:288 */
   50     58   
    /// Creates a new `QueryPrecedenceFluentBuilder`.
   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 QueryPrecedence as a reference.
   59     68   
    pub fn as_input(&self) -> &crate::operation::query_precedence::builders::QueryPrecedenceInputBuilder {
   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::query_precedence::QueryPrecedenceOutput,
   74     84   
        ::aws_smithy_runtime_api::client::result::SdkError<
   75     85   
            crate::operation::query_precedence::QueryPrecedenceError,
   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::query_precedence::QueryPrecedence::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::query_precedence::QueryPrecedence::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::query_precedence::QueryPrecedenceOutput,
   96    106   
        crate::operation::query_precedence::QueryPrecedenceError,
   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:498 */
  110    122   
    #[allow(missing_docs)] // documentation missing in model
         123  +
                           /* FluentBuilderGenerator.kt:500 */
  111    124   
    pub fn foo(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  112    125   
        self.inner = self.inner.foo(input.into());
  113    126   
        self
  114    127   
    }
         128  +
    /* FluentBuilderGenerator.kt:498 */
  115    129   
    #[allow(missing_docs)] // documentation missing in model
         130  +
                           /* FluentBuilderGenerator.kt:500 */
  116    131   
    pub fn set_foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  117    132   
        self.inner = self.inner.set_foo(input);
  118    133   
        self
  119    134   
    }
         135  +
    /* FluentBuilderGenerator.kt:518 */
  120    136   
    #[allow(missing_docs)] // documentation missing in model
         137  +
                           /* FluentBuilderGenerator.kt:520 */
  121    138   
    pub fn get_foo(&self) -> &::std::option::Option<::std::string::String> {
  122    139   
        self.inner.get_foo()
  123    140   
    }
  124         -
    ///
         141  +
    /// /* FluentBuilderGenerator.kt:466 */
  125    142   
    /// Adds a key-value pair to `baz`.
  126    143   
    ///
  127    144   
    /// To override the contents of this collection use [`set_baz`](Self::set_baz).
  128    145   
    ///
         146  +
    /* FluentBuilderGenerator.kt:473 */
  129    147   
    #[allow(missing_docs)] // documentation missing in model
         148  +
                           /* FluentBuilderGenerator.kt:475 */
  130    149   
    pub fn baz(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
  131    150   
        self.inner = self.inner.baz(k.into(), v.into());
  132    151   
        self
  133    152   
    }
         153  +
    /* FluentBuilderGenerator.kt:498 */
  134    154   
    #[allow(missing_docs)] // documentation missing in model
         155  +
                           /* FluentBuilderGenerator.kt:500 */
  135    156   
    pub fn set_baz(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
  136    157   
        self.inner = self.inner.set_baz(input);
  137    158   
        self
  138    159   
    }
         160  +
    /* FluentBuilderGenerator.kt:518 */
  139    161   
    #[allow(missing_docs)] // documentation missing in model
         162  +
                           /* FluentBuilderGenerator.kt:520 */
  140    163   
    pub fn get_baz(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
  141    164   
        self.inner.get_baz()
  142    165   
    }
         166  +
    /* FluentBuilderGenerator.kt:282 */
  143    167   
}

tmp-codegen-diff/codegen-client-test/rest_xml/rust-client-codegen/src/operation/recursive_shapes.rs

@@ -1,1 +40,49 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* OperationGenerator.kt:77 */
    2      3   
/// Orchestration and serialization glue logic for `RecursiveShapes`.
           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 RecursiveShapes;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl RecursiveShapes {
    7         -
    /// Creates a new `RecursiveShapes`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `RecursiveShapes`
          13  +
    /* OperationGenerator.kt:87 */
    8     14   
    pub fn new() -> Self {
          15  +
        /* OperationGenerator.kt:88 */
    9     16   
        Self
          17  +
        /* OperationGenerator.kt:87 */
   10     18   
    }
          19  +
    /* OperationGenerator.kt:138 */
   11     20   
    pub(crate) async fn orchestrate(
   12     21   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     22   
        input: crate::operation::recursive_shapes::RecursiveShapesInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::recursive_shapes::RecursiveShapesOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::recursive_shapes::RecursiveShapesError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -57,66 +263,280 @@
   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 RecursiveShapes {
   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("RecursiveShapes");
   91    102   
   92    103   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   93    104   
            RecursiveShapesRequestSerializer,
   94    105   
        ));
   95    106   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
   96    107   
            RecursiveShapesResponseDeserializer,
   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   
            "RecursiveShapes",
  105    116   
            "Rest Xml 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("RecursiveShapes")
  117    128   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  118    129   
            .with_interceptor(RecursiveShapesEndpointParamsInterceptor)
  119    130   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  120    131   
                crate::operation::recursive_shapes::RecursiveShapesError,
  121    132   
            >::new())
  122    133   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  123    134   
                crate::operation::recursive_shapes::RecursiveShapesError,
  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 RecursiveShapesResponseDeserializer;
  132    144   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for RecursiveShapesResponseDeserializer {
  133    145   
    fn deserialize_nonstreaming(
  134    146   
        &self,
  135    147   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
  136    148   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  137    149   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  138    150   
        let headers = response.headers();
  139    151   
        let body = response.body().bytes().expect("body loaded");
  140    152   
        #[allow(unused_mut)]
  141    153   
        let mut force_error = false;
  142    154   
  143    155   
        let parse_result = if !success && status != 200 || force_error {
  144    156   
            crate::protocol_serde::shape_recursive_shapes::de_recursive_shapes_http_error(status, headers, body)
  145    157   
        } else {
  146    158   
            crate::protocol_serde::shape_recursive_shapes::de_recursive_shapes_http_response(status, headers, body)
  147    159   
        };
  148    160   
        crate::protocol_serde::type_erase_result(parse_result)
  149    161   
    }
  150    162   
}
         163  +
/* RequestSerializerGenerator.kt:67 */
  151    164   
#[derive(Debug)]
  152    165   
struct RecursiveShapesRequestSerializer;
  153    166   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for RecursiveShapesRequestSerializer {
  154    167   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  155    168   
    fn serialize_input(
  156    169   
        &self,
  157    170   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  158    171   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  159    172   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  160    173   
        let input = input
  161    174   
            .downcast::<crate::operation::recursive_shapes::RecursiveShapesInput>()
  162    175   
            .expect("correct type");
  163    176   
        let _header_serialization_settings = _cfg
  164    177   
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  165    178   
            .cloned()
  166    179   
            .unwrap_or_default();
  167    180   
        let mut request_builder = {
  168    181   
            fn uri_base(
  169    182   
                _input: &crate::operation::recursive_shapes::RecursiveShapesInput,
  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, "/RecursiveShapes").expect("formatting should succeed");
  174    187   
                ::std::result::Result::Ok(())
  175    188   
            }
  176    189   
            #[allow(clippy::unnecessary_wraps)]
  177    190   
            fn update_http_builder(
  178    191   
                input: &crate::operation::recursive_shapes::RecursiveShapesInput,
  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("PUT").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/xml");
  187    200   
            builder
  188    201   
        };
  189    202   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_recursive_shapes::ser_recursive_shapes_op_input(&input)?);
  190    203   
        if let Some(content_length) = body.content_length() {
  191    204   
            let content_length = content_length.to_string();
  192    205   
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
  193    206   
        }
  194    207   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  195    208   
    }
  196    209   
}
         210  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  197    211   
#[derive(Debug)]
  198    212   
struct RecursiveShapesEndpointParamsInterceptor;
  199    213   
  200    214   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for RecursiveShapesEndpointParamsInterceptor {
  201    215   
    fn name(&self) -> &'static str {
  202    216   
        "RecursiveShapesEndpointParamsInterceptor"
  203    217   
    }
  204    218   
  205    219   
    fn read_before_execution(
  206    220   
        &self,
  207    221   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  208    222   
            '_,
  209    223   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  210    224   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  211    225   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  212    226   
        >,
  213    227   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  214    228   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  215    229   
        let _input = context
  216    230   
            .input()
  217    231   
            .downcast_ref::<RecursiveShapesInput>()
  218    232   
            .ok_or("failed to downcast to RecursiveShapesInput")?;
  219    233   
  220    234   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  221    235   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  222    236   
        })?;
  223    237   
        cfg.interceptor_state()
  224    238   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  225    239   
        ::std::result::Result::Ok(())
  226    240   
    }
  227    241   
}
  228    242   
  229    243   
// The get_* functions below are generated from JMESPath expressions in the
  230    244   
// operationContextParams trait. They target the operation's input shape.
  231    245   
         246  +
/* RustType.kt:516 */
  232    247   
#[allow(unreachable_code, unused_variables)]
         248  +
/* RustType.kt:516 */
  233    249   
#[cfg(test)]
         250  +
/* ProtocolTestGenerator.kt:98 */
  234    251   
mod recursive_shapes_test {
  235    252   
  236    253   
    /// Serializes recursive structures
  237    254   
    /// Test ID: RecursiveShapes
  238    255   
    #[::tokio::test]
  239    256   
    #[::tracing_test::traced_test]
  240    257   
    async fn recursive_shapes_request() {
  241    258   
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  242    259   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  243    260   
@@ -310,327 +439,515 @@
  330    347   
                )))
  331    348   
            });
  332    349   
            de.deserialize_nonstreaming(&http_response)
  333    350   
        });
  334    351   
        let parsed = parsed
  335    352   
            .expect("should be successful response")
  336    353   
            .downcast::<crate::operation::recursive_shapes::RecursiveShapesOutput>()
  337    354   
            .unwrap();
  338    355   
        ::pretty_assertions::assert_eq!(parsed.nested, expected_output.nested, "Unexpected value for `nested`");
  339    356   
    }
         357  +
         358  +
    /* ProtocolTestGenerator.kt:98 */
  340    359   
}
  341    360   
         361  +
/* OperationErrorGenerator.kt:79 */
  342    362   
/// Error type for the `RecursiveShapesError` operation.
         363  +
/* RustType.kt:516 */
  343    364   
#[non_exhaustive]
         365  +
/* RustType.kt:516 */
  344    366   
#[derive(::std::fmt::Debug)]
  345         -
pub enum RecursiveShapesError {
         367  +
pub /* OperationErrorGenerator.kt:81 */ enum RecursiveShapesError {
         368  +
    /* OperationErrorGenerator.kt:88 */
  346    369   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  347    370   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  348    371   
    variable wildcard pattern and check `.code()`:
  349    372   
     \
  350    373   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  351    374   
     \
  352    375   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-RecursiveShapesError) for what information is available for the error.")]
  353    376   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         377  +
    /* OperationErrorGenerator.kt:81 */
  354    378   
}
         379  +
/* OperationErrorGenerator.kt:218 */
  355    380   
impl RecursiveShapesError {
         381  +
    /* OperationErrorGenerator.kt:219 */
  356    382   
    /// Creates the `RecursiveShapesError::Unhandled` variant from any error type.
  357    383   
    pub fn unhandled(
  358    384   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  359    385   
    ) -> Self {
  360    386   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  361    387   
            source: err.into(),
  362    388   
            meta: ::std::default::Default::default(),
  363    389   
        })
  364    390   
    }
  365    391   
  366    392   
    /// Creates the `RecursiveShapesError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  367    393   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  368    394   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  369    395   
            source: err.clone().into(),
  370    396   
            meta: err,
  371    397   
        })
  372    398   
    }
  373         -
    ///
         399  +
    /// /* OperationErrorGenerator.kt:236 */
  374    400   
    /// Returns error metadata, which includes the error code, message,
  375    401   
    /// request ID, and potentially additional information.
  376    402   
    ///
         403  +
    /* OperationErrorGenerator.kt:242 */
  377    404   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         405  +
        /* OperationErrorGenerator.kt:243 */
  378    406   
        match self {
  379         -
            Self::Unhandled(e) => &e.meta,
         407  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         408  +
            /* OperationErrorGenerator.kt:243 */
  380    409   
        }
         410  +
        /* OperationErrorGenerator.kt:242 */
  381    411   
    }
         412  +
    /* OperationErrorGenerator.kt:218 */
  382    413   
}
         414  +
/* OperationErrorGenerator.kt:269 */
  383    415   
impl ::std::error::Error for RecursiveShapesError {
         416  +
    /* OperationErrorGenerator.kt:270 */
  384    417   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         418  +
        /* OperationErrorGenerator.kt:318 */
  385    419   
        match self {
  386         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         420  +
            /* OperationErrorGenerator.kt:326 */
         421  +
            Self::Unhandled(_inner) => {
         422  +
                /* OperationErrorGenerator.kt:279 */
         423  +
                ::std::option::Option::Some(&*_inner.source)
         424  +
                /* OperationErrorGenerator.kt:326 */
         425  +
            } /* OperationErrorGenerator.kt:318 */
  387    426   
        }
         427  +
        /* OperationErrorGenerator.kt:270 */
  388    428   
    }
         429  +
    /* OperationErrorGenerator.kt:269 */
  389    430   
}
         431  +
/* OperationErrorGenerator.kt:133 */
  390    432   
impl ::std::fmt::Display for RecursiveShapesError {
         433  +
    /* OperationErrorGenerator.kt:134 */
  391    434   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         435  +
        /* OperationErrorGenerator.kt:318 */
  392    436   
        match self {
         437  +
            /* OperationErrorGenerator.kt:326 */
  393    438   
            Self::Unhandled(_inner) => {
         439  +
                /* OperationErrorGenerator.kt:139 */
  394    440   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  395    441   
                    write!(f, "unhandled error ({code})")
  396    442   
                } else {
  397    443   
                    f.write_str("unhandled error")
  398    444   
                }
         445  +
                /* OperationErrorGenerator.kt:326 */
         446  +
            } /* OperationErrorGenerator.kt:318 */
  399    447   
        }
         448  +
        /* OperationErrorGenerator.kt:134 */
  400    449   
    }
  401         -
    }
         450  +
    /* OperationErrorGenerator.kt:133 */
  402    451   
}
         452  +
/* OperationErrorGenerator.kt:182 */
  403    453   
impl ::aws_smithy_types::retry::ProvideErrorKind for RecursiveShapesError {
         454  +
    /* OperationErrorGenerator.kt:186 */
  404    455   
    fn code(&self) -> ::std::option::Option<&str> {
         456  +
        /* OperationErrorGenerator.kt:187 */
  405    457   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         458  +
        /* OperationErrorGenerator.kt:186 */
  406    459   
    }
         460  +
    /* OperationErrorGenerator.kt:190 */
  407    461   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         462  +
        /* OperationErrorGenerator.kt:197 */
  408    463   
        ::std::option::Option::None
         464  +
        /* OperationErrorGenerator.kt:190 */
  409    465   
    }
         466  +
    /* OperationErrorGenerator.kt:182 */
  410    467   
}
         468  +
/* OperationErrorGenerator.kt:163 */
  411    469   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for RecursiveShapesError {
         470  +
    /* OperationErrorGenerator.kt:164 */
  412    471   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         472  +
        /* OperationErrorGenerator.kt:318 */
  413    473   
        match self {
  414         -
            Self::Unhandled(_inner) => &_inner.meta,
         474  +
            /* OperationErrorGenerator.kt:326 */
         475  +
            Self::Unhandled(_inner) => {
         476  +
                /* OperationErrorGenerator.kt:168 */
         477  +
                &_inner.meta
         478  +
                /* OperationErrorGenerator.kt:326 */
         479  +
            } /* OperationErrorGenerator.kt:318 */
  415    480   
        }
         481  +
        /* OperationErrorGenerator.kt:164 */
  416    482   
    }
         483  +
    /* OperationErrorGenerator.kt:163 */
  417    484   
}
         485  +
/* OperationErrorGenerator.kt:109 */
  418    486   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for RecursiveShapesError {
         487  +
    /* OperationErrorGenerator.kt:110 */
  419    488   
    fn create_unhandled_error(
  420    489   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  421    490   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  422    491   
    ) -> Self {
         492  +
        /* OperationErrorGenerator.kt:121 */
  423    493   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  424    494   
            source,
  425    495   
            meta: meta.unwrap_or_default(),
  426    496   
        })
         497  +
        /* OperationErrorGenerator.kt:110 */
  427    498   
    }
         499  +
    /* OperationErrorGenerator.kt:109 */
  428    500   
}
  429    501   
         502  +
/* CodegenDelegator.kt:255 */
  430    503   
pub use crate::operation::recursive_shapes::_recursive_shapes_output::RecursiveShapesOutput;
  431    504   
         505  +
/* CodegenDelegator.kt:255 */
  432    506   
pub use crate::operation::recursive_shapes::_recursive_shapes_input::RecursiveShapesInput;
  433    507   
         508  +
/* RustModule.kt:172 */
  434    509   
mod _recursive_shapes_input;
  435    510   
         511  +
/* RustModule.kt:172 */
  436    512   
mod _recursive_shapes_output;
  437    513   
  438         -
/// Builders
         514  +
/// /* CodegenDelegator.kt:51 */Builders
  439    515   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rest_xml/rust-client-codegen/src/operation/recursive_shapes/_recursive_shapes_input.rs

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

tmp-codegen-diff/codegen-client-test/rest_xml/rust-client-codegen/src/operation/recursive_shapes/_recursive_shapes_output.rs

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

tmp-codegen-diff/codegen-client-test/rest_xml/rust-client-codegen/src/operation/recursive_shapes/builders.rs

@@ -1,1 +125,143 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CodegenDelegator.kt:255 */
    2      3   
pub use crate::operation::recursive_shapes::_recursive_shapes_output::RecursiveShapesOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::recursive_shapes::_recursive_shapes_input::RecursiveShapesInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::recursive_shapes::builders::RecursiveShapesInputBuilder {
    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_shapes::RecursiveShapesOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::recursive_shapes::RecursiveShapesError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.recursive_shapes();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `RecursiveShapes`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `RecursiveShapes`.
   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 RecursiveShapesFluentBuilder {
   28     33   
    handle: ::std::sync::Arc<crate::client::Handle>,
   29     34   
    inner: crate::operation::recursive_shapes::builders::RecursiveShapesInputBuilder,
   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_shapes::RecursiveShapesOutput,
   35     41   
        crate::operation::recursive_shapes::RecursiveShapesError,
   36     42   
    > for RecursiveShapesFluentBuilder
   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_shapes::RecursiveShapesOutput,
   44     50   
            crate::operation::recursive_shapes::RecursiveShapesError,
   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 RecursiveShapesFluentBuilder {
          58  +
    /* FluentBuilderGenerator.kt:288 */
   51     59   
    /// Creates a new `RecursiveShapesFluentBuilder`.
   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 RecursiveShapes as a reference.
   60     69   
    pub fn as_input(&self) -> &crate::operation::recursive_shapes::builders::RecursiveShapesInputBuilder {
   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_shapes::RecursiveShapesOutput,
   75     85   
        ::aws_smithy_runtime_api::client::result::SdkError<
   76     86   
            crate::operation::recursive_shapes::RecursiveShapesError,
   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_shapes::RecursiveShapes::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_shapes::RecursiveShapes::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_shapes::RecursiveShapesOutput,
   97    107   
        crate::operation::recursive_shapes::RecursiveShapesError,
   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 nested(mut self, input: crate::types::RecursiveShapesInputOutputNested1) -> Self {
  113    126   
        self.inner = self.inner.nested(input);
  114    127   
        self
  115    128   
    }
         129  +
    /* FluentBuilderGenerator.kt:498 */
  116    130   
    #[allow(missing_docs)] // documentation missing in model
         131  +
                           /* FluentBuilderGenerator.kt:500 */
  117    132   
    pub fn set_nested(mut self, input: ::std::option::Option<crate::types::RecursiveShapesInputOutputNested1>) -> Self {
  118    133   
        self.inner = self.inner.set_nested(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_nested(&self) -> &::std::option::Option<crate::types::RecursiveShapesInputOutputNested1> {
  123    140   
        self.inner.get_nested()
  124    141   
    }
         142  +
    /* FluentBuilderGenerator.kt:282 */
  125    143   
}

tmp-codegen-diff/codegen-client-test/rest_xml/rust-client-codegen/src/operation/simple_scalar_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 `SimpleScalarProperties`.
           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 SimpleScalarProperties;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl SimpleScalarProperties {
    7         -
    /// Creates a new `SimpleScalarProperties`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `SimpleScalarProperties`
          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_properties::SimpleScalarPropertiesInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::simple_scalar_properties::SimpleScalarPropertiesError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -63,72 +272,289 @@
   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 SimpleScalarProperties {
   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("SimpleScalarProperties");
   97    108   
   98    109   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   99    110   
            SimpleScalarPropertiesRequestSerializer,
  100    111   
        ));
  101    112   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
  102    113   
            SimpleScalarPropertiesResponseDeserializer,
  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   
            "SimpleScalarProperties",
  111    122   
            "Rest Xml 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("SimpleScalarProperties")
  123    134   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  124    135   
            .with_interceptor(SimpleScalarPropertiesEndpointParamsInterceptor)
  125    136   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  126    137   
                crate::operation::simple_scalar_properties::SimpleScalarPropertiesError,
  127    138   
            >::new())
  128    139   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  129    140   
                crate::operation::simple_scalar_properties::SimpleScalarPropertiesError,
  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 SimpleScalarPropertiesResponseDeserializer;
  138    150   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for SimpleScalarPropertiesResponseDeserializer {
  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_properties::de_simple_scalar_properties_http_error(status, headers, body)
  151    163   
        } else {
  152    164   
            crate::protocol_serde::shape_simple_scalar_properties::de_simple_scalar_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 SimpleScalarPropertiesRequestSerializer;
  159    172   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for SimpleScalarPropertiesRequestSerializer {
  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_properties::SimpleScalarPropertiesInput>()
  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_properties::SimpleScalarPropertiesInput,
  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, "/SimpleScalarProperties").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_properties::SimpleScalarPropertiesInput,
  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   
                let builder = crate::protocol_serde::shape_simple_scalar_properties::ser_simple_scalar_properties_headers(input, builder)?;
  190    203   
                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
  191    204   
            }
  192    205   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  193    206   
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/xml");
  194    207   
            builder
  195    208   
        };
  196    209   
        let body = ::aws_smithy_types::body::SdkBody::from(
  197    210   
            crate::protocol_serde::shape_simple_scalar_properties::ser_simple_scalar_properties_op_input(&input)?,
  198    211   
        );
  199    212   
        if let Some(content_length) = body.content_length() {
  200    213   
            let content_length = content_length.to_string();
  201    214   
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
  202    215   
        }
  203    216   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  204    217   
    }
  205    218   
}
         219  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  206    220   
#[derive(Debug)]
  207    221   
struct SimpleScalarPropertiesEndpointParamsInterceptor;
  208    222   
  209    223   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for SimpleScalarPropertiesEndpointParamsInterceptor {
  210    224   
    fn name(&self) -> &'static str {
  211    225   
        "SimpleScalarPropertiesEndpointParamsInterceptor"
  212    226   
    }
  213    227   
  214    228   
    fn read_before_execution(
  215    229   
        &self,
  216    230   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  217    231   
            '_,
  218    232   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  219    233   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  220    234   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  221    235   
        >,
  222    236   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  223    237   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  224    238   
        let _input = context
  225    239   
            .input()
  226    240   
            .downcast_ref::<SimpleScalarPropertiesInput>()
  227    241   
            .ok_or("failed to downcast to SimpleScalarPropertiesInput")?;
  228    242   
  229    243   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  230    244   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  231    245   
        })?;
  232    246   
        cfg.interceptor_state()
  233    247   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  234    248   
        ::std::result::Result::Ok(())
  235    249   
    }
  236    250   
}
  237    251   
  238    252   
// The get_* functions below are generated from JMESPath expressions in the
  239    253   
// operationContextParams trait. They target the operation's input shape.
  240    254   
         255  +
/* RustType.kt:516 */
  241    256   
#[allow(unreachable_code, unused_variables)]
         257  +
/* RustType.kt:516 */
  242    258   
#[cfg(test)]
         259  +
/* ProtocolTestGenerator.kt:98 */
  243    260   
mod simple_scalar_properties_test {
  244    261   
    use ::aws_smithy_protocol_test::FloatEquals;
  245    262   
  246    263   
    /// Serializes simple scalar properties
  247    264   
    /// Test ID: SimpleScalarProperties
  248    265   
    #[::tokio::test]
  249    266   
    #[::tracing_test::traced_test]
  250    267   
    async fn simple_scalar_properties_request() {
  251    268   
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  252    269   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
@@ -1121,1138 +1250,1326 @@
 1141   1158   
            expected_output.float_value,
 1142   1159   
            parsed.float_value
 1143   1160   
        );
 1144   1161   
        assert!(
 1145   1162   
            parsed.double_value.float_equals(&expected_output.double_value),
 1146   1163   
            "Unexpected value for `double_value` {:?} vs. {:?}",
 1147   1164   
            expected_output.double_value,
 1148   1165   
            parsed.double_value
 1149   1166   
        );
 1150   1167   
    }
        1168  +
        1169  +
    /* ProtocolTestGenerator.kt:98 */
 1151   1170   
}
 1152   1171   
        1172  +
/* OperationErrorGenerator.kt:79 */
 1153   1173   
/// Error type for the `SimpleScalarPropertiesError` operation.
        1174  +
/* RustType.kt:516 */
 1154   1175   
#[non_exhaustive]
        1176  +
/* RustType.kt:516 */
 1155   1177   
#[derive(::std::fmt::Debug)]
 1156         -
pub enum SimpleScalarPropertiesError {
        1178  +
pub /* OperationErrorGenerator.kt:81 */ enum SimpleScalarPropertiesError {
        1179  +
    /* OperationErrorGenerator.kt:88 */
 1157   1180   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
 1158   1181   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
 1159   1182   
    variable wildcard pattern and check `.code()`:
 1160   1183   
     \
 1161   1184   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
 1162   1185   
     \
 1163   1186   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-SimpleScalarPropertiesError) for what information is available for the error.")]
 1164   1187   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
        1188  +
    /* OperationErrorGenerator.kt:81 */
 1165   1189   
}
        1190  +
/* OperationErrorGenerator.kt:218 */
 1166   1191   
impl SimpleScalarPropertiesError {
        1192  +
    /* OperationErrorGenerator.kt:219 */
 1167   1193   
    /// Creates the `SimpleScalarPropertiesError::Unhandled` variant from any error type.
 1168   1194   
    pub fn unhandled(
 1169   1195   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
 1170   1196   
    ) -> Self {
 1171   1197   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
 1172   1198   
            source: err.into(),
 1173   1199   
            meta: ::std::default::Default::default(),
 1174   1200   
        })
 1175   1201   
    }
 1176   1202   
 1177   1203   
    /// Creates the `SimpleScalarPropertiesError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
 1178   1204   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
 1179   1205   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
 1180   1206   
            source: err.clone().into(),
 1181   1207   
            meta: err,
 1182   1208   
        })
 1183   1209   
    }
 1184         -
    ///
        1210  +
    /// /* OperationErrorGenerator.kt:236 */
 1185   1211   
    /// Returns error metadata, which includes the error code, message,
 1186   1212   
    /// request ID, and potentially additional information.
 1187   1213   
    ///
        1214  +
    /* OperationErrorGenerator.kt:242 */
 1188   1215   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
        1216  +
        /* OperationErrorGenerator.kt:243 */
 1189   1217   
        match self {
 1190         -
            Self::Unhandled(e) => &e.meta,
        1218  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
        1219  +
            /* OperationErrorGenerator.kt:243 */
 1191   1220   
        }
        1221  +
        /* OperationErrorGenerator.kt:242 */
 1192   1222   
    }
        1223  +
    /* OperationErrorGenerator.kt:218 */
 1193   1224   
}
        1225  +
/* OperationErrorGenerator.kt:269 */
 1194   1226   
impl ::std::error::Error for SimpleScalarPropertiesError {
        1227  +
    /* OperationErrorGenerator.kt:270 */
 1195   1228   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
        1229  +
        /* OperationErrorGenerator.kt:318 */
 1196   1230   
        match self {
 1197         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
        1231  +
            /* OperationErrorGenerator.kt:326 */
        1232  +
            Self::Unhandled(_inner) => {
        1233  +
                /* OperationErrorGenerator.kt:279 */
        1234  +
                ::std::option::Option::Some(&*_inner.source)
        1235  +
                /* OperationErrorGenerator.kt:326 */
        1236  +
            } /* OperationErrorGenerator.kt:318 */
 1198   1237   
        }
        1238  +
        /* OperationErrorGenerator.kt:270 */
 1199   1239   
    }
        1240  +
    /* OperationErrorGenerator.kt:269 */
 1200   1241   
}
        1242  +
/* OperationErrorGenerator.kt:133 */
 1201   1243   
impl ::std::fmt::Display for SimpleScalarPropertiesError {
        1244  +
    /* OperationErrorGenerator.kt:134 */
 1202   1245   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        1246  +
        /* OperationErrorGenerator.kt:318 */
 1203   1247   
        match self {
        1248  +
            /* OperationErrorGenerator.kt:326 */
 1204   1249   
            Self::Unhandled(_inner) => {
        1250  +
                /* OperationErrorGenerator.kt:139 */
 1205   1251   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
 1206   1252   
                    write!(f, "unhandled error ({code})")
 1207   1253   
                } else {
 1208   1254   
                    f.write_str("unhandled error")
 1209   1255   
                }
        1256  +
                /* OperationErrorGenerator.kt:326 */
        1257  +
            } /* OperationErrorGenerator.kt:318 */
 1210   1258   
        }
        1259  +
        /* OperationErrorGenerator.kt:134 */
 1211   1260   
    }
 1212         -
    }
        1261  +
    /* OperationErrorGenerator.kt:133 */
 1213   1262   
}
        1263  +
/* OperationErrorGenerator.kt:182 */
 1214   1264   
impl ::aws_smithy_types::retry::ProvideErrorKind for SimpleScalarPropertiesError {
        1265  +
    /* OperationErrorGenerator.kt:186 */
 1215   1266   
    fn code(&self) -> ::std::option::Option<&str> {
        1267  +
        /* OperationErrorGenerator.kt:187 */
 1216   1268   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
        1269  +
        /* OperationErrorGenerator.kt:186 */
 1217   1270   
    }
        1271  +
    /* OperationErrorGenerator.kt:190 */
 1218   1272   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
        1273  +
        /* OperationErrorGenerator.kt:197 */
 1219   1274   
        ::std::option::Option::None
        1275  +
        /* OperationErrorGenerator.kt:190 */
 1220   1276   
    }
        1277  +
    /* OperationErrorGenerator.kt:182 */
 1221   1278   
}
        1279  +
/* OperationErrorGenerator.kt:163 */
 1222   1280   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for SimpleScalarPropertiesError {
        1281  +
    /* OperationErrorGenerator.kt:164 */
 1223   1282   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
        1283  +
        /* OperationErrorGenerator.kt:318 */
 1224   1284   
        match self {
 1225         -
            Self::Unhandled(_inner) => &_inner.meta,
        1285  +
            /* OperationErrorGenerator.kt:326 */
        1286  +
            Self::Unhandled(_inner) => {
        1287  +
                /* OperationErrorGenerator.kt:168 */
        1288  +
                &_inner.meta
        1289  +
                /* OperationErrorGenerator.kt:326 */
        1290  +
            } /* OperationErrorGenerator.kt:318 */
 1226   1291   
        }
        1292  +
        /* OperationErrorGenerator.kt:164 */
 1227   1293   
    }
        1294  +
    /* OperationErrorGenerator.kt:163 */
 1228   1295   
}
        1296  +
/* OperationErrorGenerator.kt:109 */
 1229   1297   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for SimpleScalarPropertiesError {
        1298  +
    /* OperationErrorGenerator.kt:110 */
 1230   1299   
    fn create_unhandled_error(
 1231   1300   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
 1232   1301   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
 1233   1302   
    ) -> Self {
        1303  +
        /* OperationErrorGenerator.kt:121 */
 1234   1304   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
 1235   1305   
            source,
 1236   1306   
            meta: meta.unwrap_or_default(),
 1237   1307   
        })
        1308  +
        /* OperationErrorGenerator.kt:110 */
 1238   1309   
    }
        1310  +
    /* OperationErrorGenerator.kt:109 */
 1239   1311   
}
 1240   1312   
        1313  +
/* CodegenDelegator.kt:255 */
 1241   1314   
pub use crate::operation::simple_scalar_properties::_simple_scalar_properties_output::SimpleScalarPropertiesOutput;
 1242   1315   
        1316  +
/* CodegenDelegator.kt:255 */
 1243   1317   
pub use crate::operation::simple_scalar_properties::_simple_scalar_properties_input::SimpleScalarPropertiesInput;
 1244   1318   
        1319  +
/* RustModule.kt:172 */
 1245   1320   
mod _simple_scalar_properties_input;
 1246   1321   
        1322  +
/* RustModule.kt:172 */
 1247   1323   
mod _simple_scalar_properties_output;
 1248   1324   
 1249         -
/// Builders
        1325  +
/// /* CodegenDelegator.kt:51 */Builders
 1250   1326   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rest_xml/rust-client-codegen/src/operation/simple_scalar_properties/_simple_scalar_properties_input.rs

@@ -1,1 +252,460 @@
    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 SimpleScalarPropertiesInput {
           8  +
pub /* StructureGenerator.kt:201 */ struct SimpleScalarPropertiesInput {
           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 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 SimpleScalarPropertiesInput {
          38  +
    /* StructureGenerator.kt:231 */
   28     39   
    #[allow(missing_docs)] // documentation missing in model
          40  +
                           /* StructureGenerator.kt:166 */
   29     41   
    pub fn foo(&self) -> ::std::option::Option<&str> {
          42  +
        /* StructureGenerator.kt:169 */
   30     43   
        self.foo.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 string_value(&self) -> ::std::option::Option<&str> {
          50  +
        /* StructureGenerator.kt:169 */
   34     51   
        self.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 SimpleScalarPropertiesInput {
   70         -
    /// Creates a new builder-style object to manufacture [`SimpleScalarPropertiesInput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput).
         122  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`SimpleScalarPropertiesInput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput).
         123  +
    /* BuilderGenerator.kt:175 */
   71    124   
    pub fn builder() -> crate::operation::simple_scalar_properties::builders::SimpleScalarPropertiesInputBuilder {
         125  +
        /* BuilderGenerator.kt:176 */
   72    126   
        crate::operation::simple_scalar_properties::builders::SimpleScalarPropertiesInputBuilder::default()
         127  +
        /* BuilderGenerator.kt:175 */
   73    128   
    }
         129  +
    /* ClientCodegenVisitor.kt:237 */
   74    130   
}
   75    131   
   76         -
/// A builder for [`SimpleScalarPropertiesInput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput).
         132  +
/// /* BuilderGenerator.kt:342 */A builder for [`SimpleScalarPropertiesInput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput).
         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 SimpleScalarPropertiesInputBuilder {
   80         -
    pub(crate) foo: ::std::option::Option<::std::string::String>,
   81         -
    pub(crate) 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) foo: ::std::option::Option<::std::string::String>,
         140  +
    /* BuilderGenerator.kt:275 */ pub(crate) 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 SimpleScalarPropertiesInputBuilder {
         153  +
    /* BuilderGenerator.kt:286 */
   92    154   
    #[allow(missing_docs)] // documentation missing in model
         155  +
                           /* BuilderGenerator.kt:291 */
   93    156   
    pub fn foo(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         157  +
        /* BuilderGenerator.kt:292 */
   94    158   
        self.foo = ::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_foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         167  +
        /* BuilderGenerator.kt:315 */
   99    168   
        self.foo = 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_foo(&self) -> &::std::option::Option<::std::string::String> {
         176  +
        /* BuilderGenerator.kt:337 */
  104    177   
        &self.foo
         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 string_value(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         184  +
        /* BuilderGenerator.kt:292 */
  108    185   
        self.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_string_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         194  +
        /* BuilderGenerator.kt:315 */
  113    195   
        self.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_string_value(&self) -> &::std::option::Option<::std::string::String> {
         203  +
        /* BuilderGenerator.kt:337 */
  118    204   
        &self.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 [`SimpleScalarPropertiesInput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput).
         423  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`SimpleScalarPropertiesInput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput).
         424  +
    /* BuilderGenerator.kt:253 */
  233    425   
    pub fn build(
  234    426   
        self,
  235    427   
    ) -> ::std::result::Result<
  236    428   
        crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput,
  237    429   
        ::aws_smithy_types::error::operation::BuildError,
  238    430   
    > {
  239         -
        ::std::result::Result::Ok(crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput {
  240         -
            foo: self.foo,
         431  +
        /* BuilderGenerator.kt:254 */
         432  +
        ::std::result::Result::Ok(
         433  +
            /* BuilderGenerator.kt:477 */
         434  +
            crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput {
         435  +
                /* BuilderGenerator.kt:481 */ foo: self.foo,
         436  +
                /* BuilderGenerator.kt:481 */
  241    437   
                string_value: self.string_value,
         438  +
                /* BuilderGenerator.kt:481 */
  242    439   
                true_boolean_value: self.true_boolean_value,
         440  +
                /* BuilderGenerator.kt:481 */
  243    441   
                false_boolean_value: self.false_boolean_value,
         442  +
                /* BuilderGenerator.kt:481 */
  244    443   
                byte_value: self.byte_value,
         444  +
                /* BuilderGenerator.kt:481 */
  245    445   
                short_value: self.short_value,
         446  +
                /* BuilderGenerator.kt:481 */
  246    447   
                integer_value: self.integer_value,
         448  +
                /* BuilderGenerator.kt:481 */
  247    449   
                long_value: self.long_value,
         450  +
                /* BuilderGenerator.kt:481 */
  248    451   
                float_value: self.float_value,
         452  +
                /* BuilderGenerator.kt:481 */
  249    453   
                double_value: self.double_value,
  250         -
        })
         454  +
                /* BuilderGenerator.kt:477 */
         455  +
            }, /* BuilderGenerator.kt:254 */
         456  +
        )
         457  +
        /* BuilderGenerator.kt:253 */
  251    458   
    }
         459  +
    /* BuilderGenerator.kt:355 */
  252    460   
}

tmp-codegen-diff/codegen-client-test/rest_xml/rust-client-codegen/src/operation/simple_scalar_properties/_simple_scalar_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 SimpleScalarPropertiesOutput {
           8  +
pub /* StructureGenerator.kt:201 */ struct SimpleScalarPropertiesOutput {
           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 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 SimpleScalarPropertiesOutput {
          38  +
    /* StructureGenerator.kt:231 */
   28     39   
    #[allow(missing_docs)] // documentation missing in model
          40  +
                           /* StructureGenerator.kt:166 */
   29     41   
    pub fn foo(&self) -> ::std::option::Option<&str> {
          42  +
        /* StructureGenerator.kt:169 */
   30     43   
        self.foo.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 string_value(&self) -> ::std::option::Option<&str> {
          50  +
        /* StructureGenerator.kt:169 */
   34     51   
        self.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 SimpleScalarPropertiesOutput {
   70         -
    /// Creates a new builder-style object to manufacture [`SimpleScalarPropertiesOutput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput).
         122  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`SimpleScalarPropertiesOutput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput).
         123  +
    /* BuilderGenerator.kt:175 */
   71    124   
    pub fn builder() -> crate::operation::simple_scalar_properties::builders::SimpleScalarPropertiesOutputBuilder {
         125  +
        /* BuilderGenerator.kt:176 */
   72    126   
        crate::operation::simple_scalar_properties::builders::SimpleScalarPropertiesOutputBuilder::default()
         127  +
        /* BuilderGenerator.kt:175 */
   73    128   
    }
         129  +
    /* ClientCodegenVisitor.kt:237 */
   74    130   
}
   75    131   
   76         -
/// A builder for [`SimpleScalarPropertiesOutput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput).
         132  +
/// /* BuilderGenerator.kt:342 */A builder for [`SimpleScalarPropertiesOutput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput).
         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 SimpleScalarPropertiesOutputBuilder {
   80         -
    pub(crate) foo: ::std::option::Option<::std::string::String>,
   81         -
    pub(crate) 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) foo: ::std::option::Option<::std::string::String>,
         140  +
    /* BuilderGenerator.kt:275 */ pub(crate) 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 SimpleScalarPropertiesOutputBuilder {
         153  +
    /* BuilderGenerator.kt:286 */
   92    154   
    #[allow(missing_docs)] // documentation missing in model
         155  +
                           /* BuilderGenerator.kt:291 */
   93    156   
    pub fn foo(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         157  +
        /* BuilderGenerator.kt:292 */
   94    158   
        self.foo = ::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_foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         167  +
        /* BuilderGenerator.kt:315 */
   99    168   
        self.foo = 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_foo(&self) -> &::std::option::Option<::std::string::String> {
         176  +
        /* BuilderGenerator.kt:337 */
  104    177   
        &self.foo
         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 string_value(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         184  +
        /* BuilderGenerator.kt:292 */
  108    185   
        self.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_string_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         194  +
        /* BuilderGenerator.kt:315 */
  113    195   
        self.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_string_value(&self) -> &::std::option::Option<::std::string::String> {
         203  +
        /* BuilderGenerator.kt:337 */
  118    204   
        &self.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 [`SimpleScalarPropertiesOutput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput).
         423  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`SimpleScalarPropertiesOutput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput).
         424  +
    /* BuilderGenerator.kt:253 */
  233    425   
    pub fn build(self) -> crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput {
         426  +
        /* BuilderGenerator.kt:477 */
  234    427   
        crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput {
  235         -
            foo: self.foo,
         428  +
            /* BuilderGenerator.kt:481 */ foo: self.foo,
         429  +
            /* BuilderGenerator.kt:481 */
  236    430   
            string_value: self.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   
}