Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_timestamp_path_epoch/builders.rs

@@ -1,1 +124,142 @@
    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::malformed_timestamp_path_epoch::_malformed_timestamp_path_epoch_output::MalformedTimestampPathEpochOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::malformed_timestamp_path_epoch::_malformed_timestamp_path_epoch_input::MalformedTimestampPathEpochInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::malformed_timestamp_path_epoch::builders::MalformedTimestampPathEpochInputBuilder {
    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::malformed_timestamp_path_epoch::MalformedTimestampPathEpochOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::malformed_timestamp_path_epoch::MalformedTimestampPathEpochError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.malformed_timestamp_path_epoch();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `MalformedTimestampPathEpoch`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `MalformedTimestampPathEpoch`.
   24     27   
///
          28  +
/* RustType.kt:516 */
   25     29   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          30  +
/* FluentBuilderGenerator.kt:270 */
   26     31   
pub struct MalformedTimestampPathEpochFluentBuilder {
   27     32   
    handle: ::std::sync::Arc<crate::client::Handle>,
   28     33   
    inner: crate::operation::malformed_timestamp_path_epoch::builders::MalformedTimestampPathEpochInputBuilder,
   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::malformed_timestamp_path_epoch::MalformedTimestampPathEpochOutput,
   34     40   
        crate::operation::malformed_timestamp_path_epoch::MalformedTimestampPathEpochError,
   35     41   
    > for MalformedTimestampPathEpochFluentBuilder
   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::malformed_timestamp_path_epoch::MalformedTimestampPathEpochOutput,
   43     49   
            crate::operation::malformed_timestamp_path_epoch::MalformedTimestampPathEpochError,
   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 MalformedTimestampPathEpochFluentBuilder {
          57  +
    /* FluentBuilderGenerator.kt:288 */
   50     58   
    /// Creates a new `MalformedTimestampPathEpochFluentBuilder`.
   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 MalformedTimestampPathEpoch as a reference.
   59     68   
    pub fn as_input(&self) -> &crate::operation::malformed_timestamp_path_epoch::builders::MalformedTimestampPathEpochInputBuilder {
   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::malformed_timestamp_path_epoch::MalformedTimestampPathEpochOutput,
   74     84   
        ::aws_smithy_runtime_api::client::result::SdkError<
   75     85   
            crate::operation::malformed_timestamp_path_epoch::MalformedTimestampPathEpochError,
   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::malformed_timestamp_path_epoch::MalformedTimestampPathEpoch::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::malformed_timestamp_path_epoch::MalformedTimestampPathEpoch::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::malformed_timestamp_path_epoch::MalformedTimestampPathEpochOutput,
   96    106   
        crate::operation::malformed_timestamp_path_epoch::MalformedTimestampPathEpochError,
   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 timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
  112    125   
        self.inner = self.inner.timestamp(input);
  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_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
  117    132   
        self.inner = self.inner.set_timestamp(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_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
  122    139   
        self.inner.get_timestamp()
  123    140   
    }
         141  +
    /* FluentBuilderGenerator.kt:282 */
  124    142   
}

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_timestamp_path_http_date.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 `MalformedTimestampPathHttpDate`.
           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 MalformedTimestampPathHttpDate;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl MalformedTimestampPathHttpDate {
    7         -
    /// Creates a new `MalformedTimestampPathHttpDate`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `MalformedTimestampPathHttpDate`
          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::malformed_timestamp_path_http_date::MalformedTimestampPathHttpDateInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::malformed_timestamp_path_http_date::MalformedTimestampPathHttpDateOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::malformed_timestamp_path_http_date::MalformedTimestampPathHttpDateError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -63,72 +344,415 @@
   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 MalformedTimestampPathHttpDate {
   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("MalformedTimestampPathHttpDate");
   97    108   
   98    109   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   99    110   
            MalformedTimestampPathHttpDateRequestSerializer,
  100    111   
        ));
  101    112   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
  102    113   
            MalformedTimestampPathHttpDateResponseDeserializer,
  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   
            "MalformedTimestampPathHttpDate",
  111    122   
            "Rest Json 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("MalformedTimestampPathHttpDate")
  123    134   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  124    135   
            .with_interceptor(MalformedTimestampPathHttpDateEndpointParamsInterceptor)
  125    136   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  126    137   
                crate::operation::malformed_timestamp_path_http_date::MalformedTimestampPathHttpDateError,
  127    138   
            >::new())
  128    139   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  129    140   
                crate::operation::malformed_timestamp_path_http_date::MalformedTimestampPathHttpDateError,
  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 MalformedTimestampPathHttpDateResponseDeserializer;
  138    150   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for MalformedTimestampPathHttpDateResponseDeserializer {
  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_malformed_timestamp_path_http_date::de_malformed_timestamp_path_http_date_http_error(status, headers, body)
  151    163   
        } else {
  152    164   
            crate::protocol_serde::shape_malformed_timestamp_path_http_date::de_malformed_timestamp_path_http_date_http_response(
  153    165   
                status, headers, body,
  154    166   
            )
  155    167   
        };
  156    168   
        crate::protocol_serde::type_erase_result(parse_result)
  157    169   
    }
  158    170   
}
         171  +
/* RequestSerializerGenerator.kt:67 */
  159    172   
#[derive(Debug)]
  160    173   
struct MalformedTimestampPathHttpDateRequestSerializer;
  161    174   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for MalformedTimestampPathHttpDateRequestSerializer {
  162    175   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  163    176   
    fn serialize_input(
  164    177   
        &self,
  165    178   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  166    179   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  167    180   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  168    181   
        let input = input
  169    182   
            .downcast::<crate::operation::malformed_timestamp_path_http_date::MalformedTimestampPathHttpDateInput>()
  170    183   
            .expect("correct type");
  171    184   
        let _header_serialization_settings = _cfg
  172    185   
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  173    186   
            .cloned()
  174    187   
            .unwrap_or_default();
  175    188   
        let mut request_builder = {
  176    189   
            fn uri_base(
  177    190   
                _input: &crate::operation::malformed_timestamp_path_http_date::MalformedTimestampPathHttpDateInput,
  178    191   
                output: &mut ::std::string::String,
  179    192   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  180    193   
                use ::std::fmt::Write as _;
  181    194   
                let input_1 = &_input.timestamp;
  182    195   
                let input_1 = input_1
  183    196   
                    .as_ref()
  184    197   
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("timestamp", "cannot be empty or unset"))?;
  185    198   
                let timestamp = ::aws_smithy_http::label::fmt_timestamp(input_1, ::aws_smithy_types::date_time::Format::HttpDate)?;
  186    199   
                if timestamp.is_empty() {
  187    200   
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  188    201   
                        "timestamp",
  189    202   
                        "cannot be empty or unset",
  190    203   
                    ));
  191    204   
                }
  192    205   
                ::std::write!(output, "/MalformedTimestampPathHttpDate/{timestamp}", timestamp = timestamp).expect("formatting should succeed");
  193    206   
                ::std::result::Result::Ok(())
  194    207   
            }
  195    208   
            #[allow(clippy::unnecessary_wraps)]
  196    209   
            fn update_http_builder(
  197    210   
                input: &crate::operation::malformed_timestamp_path_http_date::MalformedTimestampPathHttpDateInput,
  198    211   
                builder: ::http::request::Builder,
  199    212   
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  200    213   
                let mut uri = ::std::string::String::new();
  201    214   
                uri_base(input, &mut uri)?;
  202    215   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  203    216   
            }
  204    217   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  205    218   
            builder
  206    219   
        };
  207    220   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  208    221   
  209    222   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  210    223   
    }
  211    224   
}
         225  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  212    226   
#[derive(Debug)]
  213    227   
struct MalformedTimestampPathHttpDateEndpointParamsInterceptor;
  214    228   
  215    229   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for MalformedTimestampPathHttpDateEndpointParamsInterceptor {
  216    230   
    fn name(&self) -> &'static str {
  217    231   
        "MalformedTimestampPathHttpDateEndpointParamsInterceptor"
  218    232   
    }
  219    233   
  220    234   
    fn read_before_execution(
  221    235   
        &self,
  222    236   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  223    237   
            '_,
  224    238   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  225    239   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  226    240   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  227    241   
        >,
  228    242   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  229    243   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  230    244   
        let _input = context
  231    245   
            .input()
  232    246   
            .downcast_ref::<MalformedTimestampPathHttpDateInput>()
  233    247   
            .ok_or("failed to downcast to MalformedTimestampPathHttpDateInput")?;
  234    248   
  235    249   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  236    250   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  237    251   
        })?;
  238    252   
        cfg.interceptor_state()
  239    253   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  240    254   
        ::std::result::Result::Ok(())
  241    255   
    }
  242    256   
}
  243    257   
  244    258   
// The get_* functions below are generated from JMESPath expressions in the
  245    259   
// operationContextParams trait. They target the operation's input shape.
  246    260   
         261  +
/* OperationErrorGenerator.kt:79 */
  247    262   
/// Error type for the `MalformedTimestampPathHttpDateError` operation.
         263  +
/* RustType.kt:516 */
  248    264   
#[non_exhaustive]
         265  +
/* RustType.kt:516 */
  249    266   
#[derive(::std::fmt::Debug)]
  250         -
pub enum MalformedTimestampPathHttpDateError {
         267  +
pub /* OperationErrorGenerator.kt:81 */ enum MalformedTimestampPathHttpDateError {
         268  +
    /* OperationErrorGenerator.kt:88 */
  251    269   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  252    270   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  253    271   
    variable wildcard pattern and check `.code()`:
  254    272   
     \
  255    273   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  256    274   
     \
  257    275   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-MalformedTimestampPathHttpDateError) for what information is available for the error.")]
  258    276   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         277  +
    /* OperationErrorGenerator.kt:81 */
  259    278   
}
         279  +
/* OperationErrorGenerator.kt:218 */
  260    280   
impl MalformedTimestampPathHttpDateError {
         281  +
    /* OperationErrorGenerator.kt:219 */
  261    282   
    /// Creates the `MalformedTimestampPathHttpDateError::Unhandled` variant from any error type.
  262    283   
    pub fn unhandled(
  263    284   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  264    285   
    ) -> Self {
  265    286   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  266    287   
            source: err.into(),
  267    288   
            meta: ::std::default::Default::default(),
  268    289   
        })
  269    290   
    }
  270    291   
  271    292   
    /// Creates the `MalformedTimestampPathHttpDateError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  272    293   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  273    294   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  274    295   
            source: err.clone().into(),
  275    296   
            meta: err,
  276    297   
        })
  277    298   
    }
  278         -
    ///
         299  +
    /// /* OperationErrorGenerator.kt:236 */
  279    300   
    /// Returns error metadata, which includes the error code, message,
  280    301   
    /// request ID, and potentially additional information.
  281    302   
    ///
         303  +
    /* OperationErrorGenerator.kt:242 */
  282    304   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         305  +
        /* OperationErrorGenerator.kt:243 */
  283    306   
        match self {
  284         -
            Self::Unhandled(e) => &e.meta,
         307  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         308  +
            /* OperationErrorGenerator.kt:243 */
  285    309   
        }
         310  +
        /* OperationErrorGenerator.kt:242 */
  286    311   
    }
         312  +
    /* OperationErrorGenerator.kt:218 */
  287    313   
}
         314  +
/* OperationErrorGenerator.kt:269 */
  288    315   
impl ::std::error::Error for MalformedTimestampPathHttpDateError {
         316  +
    /* OperationErrorGenerator.kt:270 */
  289    317   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         318  +
        /* OperationErrorGenerator.kt:318 */
  290    319   
        match self {
  291         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         320  +
            /* OperationErrorGenerator.kt:326 */
         321  +
            Self::Unhandled(_inner) => {
         322  +
                /* OperationErrorGenerator.kt:279 */
         323  +
                ::std::option::Option::Some(&*_inner.source)
         324  +
                /* OperationErrorGenerator.kt:326 */
         325  +
            } /* OperationErrorGenerator.kt:318 */
  292    326   
        }
         327  +
        /* OperationErrorGenerator.kt:270 */
  293    328   
    }
         329  +
    /* OperationErrorGenerator.kt:269 */
  294    330   
}
         331  +
/* OperationErrorGenerator.kt:133 */
  295    332   
impl ::std::fmt::Display for MalformedTimestampPathHttpDateError {
         333  +
    /* OperationErrorGenerator.kt:134 */
  296    334   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         335  +
        /* OperationErrorGenerator.kt:318 */
  297    336   
        match self {
         337  +
            /* OperationErrorGenerator.kt:326 */
  298    338   
            Self::Unhandled(_inner) => {
         339  +
                /* OperationErrorGenerator.kt:139 */
  299    340   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  300    341   
                    write!(f, "unhandled error ({code})")
  301    342   
                } else {
  302    343   
                    f.write_str("unhandled error")
  303    344   
                }
         345  +
                /* OperationErrorGenerator.kt:326 */
         346  +
            } /* OperationErrorGenerator.kt:318 */
  304    347   
        }
         348  +
        /* OperationErrorGenerator.kt:134 */
  305    349   
    }
  306         -
    }
         350  +
    /* OperationErrorGenerator.kt:133 */
  307    351   
}
         352  +
/* OperationErrorGenerator.kt:182 */
  308    353   
impl ::aws_smithy_types::retry::ProvideErrorKind for MalformedTimestampPathHttpDateError {
         354  +
    /* OperationErrorGenerator.kt:186 */
  309    355   
    fn code(&self) -> ::std::option::Option<&str> {
         356  +
        /* OperationErrorGenerator.kt:187 */
  310    357   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         358  +
        /* OperationErrorGenerator.kt:186 */
  311    359   
    }
         360  +
    /* OperationErrorGenerator.kt:190 */
  312    361   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         362  +
        /* OperationErrorGenerator.kt:197 */
  313    363   
        ::std::option::Option::None
         364  +
        /* OperationErrorGenerator.kt:190 */
  314    365   
    }
         366  +
    /* OperationErrorGenerator.kt:182 */
  315    367   
}
         368  +
/* OperationErrorGenerator.kt:163 */
  316    369   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for MalformedTimestampPathHttpDateError {
         370  +
    /* OperationErrorGenerator.kt:164 */
  317    371   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         372  +
        /* OperationErrorGenerator.kt:318 */
  318    373   
        match self {
  319         -
            Self::Unhandled(_inner) => &_inner.meta,
         374  +
            /* OperationErrorGenerator.kt:326 */
         375  +
            Self::Unhandled(_inner) => {
         376  +
                /* OperationErrorGenerator.kt:168 */
         377  +
                &_inner.meta
         378  +
                /* OperationErrorGenerator.kt:326 */
         379  +
            } /* OperationErrorGenerator.kt:318 */
  320    380   
        }
         381  +
        /* OperationErrorGenerator.kt:164 */
  321    382   
    }
         383  +
    /* OperationErrorGenerator.kt:163 */
  322    384   
}
         385  +
/* OperationErrorGenerator.kt:109 */
  323    386   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for MalformedTimestampPathHttpDateError {
         387  +
    /* OperationErrorGenerator.kt:110 */
  324    388   
    fn create_unhandled_error(
  325    389   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  326    390   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  327    391   
    ) -> Self {
         392  +
        /* OperationErrorGenerator.kt:121 */
  328    393   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  329    394   
            source,
  330    395   
            meta: meta.unwrap_or_default(),
  331    396   
        })
         397  +
        /* OperationErrorGenerator.kt:110 */
  332    398   
    }
         399  +
    /* OperationErrorGenerator.kt:109 */
  333    400   
}
  334    401   
         402  +
/* CodegenDelegator.kt:255 */
  335    403   
pub use crate::operation::malformed_timestamp_path_http_date::_malformed_timestamp_path_http_date_output::MalformedTimestampPathHttpDateOutput;
  336    404   
         405  +
/* CodegenDelegator.kt:255 */
  337    406   
pub use crate::operation::malformed_timestamp_path_http_date::_malformed_timestamp_path_http_date_input::MalformedTimestampPathHttpDateInput;
  338    407   
         408  +
/* RustModule.kt:172 */
  339    409   
mod _malformed_timestamp_path_http_date_input;
  340    410   
         411  +
/* RustModule.kt:172 */
  341    412   
mod _malformed_timestamp_path_http_date_output;
  342    413   
  343         -
/// Builders
         414  +
/// /* CodegenDelegator.kt:51 */Builders
  344    415   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_timestamp_path_http_date/_malformed_timestamp_path_http_date_input.rs

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

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

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_timestamp_path_http_date/builders.rs

@@ -1,1 +124,142 @@
    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::malformed_timestamp_path_http_date::_malformed_timestamp_path_http_date_output::MalformedTimestampPathHttpDateOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::malformed_timestamp_path_http_date::_malformed_timestamp_path_http_date_input::MalformedTimestampPathHttpDateInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::malformed_timestamp_path_http_date::builders::MalformedTimestampPathHttpDateInputBuilder {
    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::malformed_timestamp_path_http_date::MalformedTimestampPathHttpDateOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::malformed_timestamp_path_http_date::MalformedTimestampPathHttpDateError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.malformed_timestamp_path_http_date();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `MalformedTimestampPathHttpDate`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `MalformedTimestampPathHttpDate`.
   24     27   
///
          28  +
/* RustType.kt:516 */
   25     29   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          30  +
/* FluentBuilderGenerator.kt:270 */
   26     31   
pub struct MalformedTimestampPathHttpDateFluentBuilder {
   27     32   
    handle: ::std::sync::Arc<crate::client::Handle>,
   28     33   
    inner: crate::operation::malformed_timestamp_path_http_date::builders::MalformedTimestampPathHttpDateInputBuilder,
   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::malformed_timestamp_path_http_date::MalformedTimestampPathHttpDateOutput,
   34     40   
        crate::operation::malformed_timestamp_path_http_date::MalformedTimestampPathHttpDateError,
   35     41   
    > for MalformedTimestampPathHttpDateFluentBuilder
   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::malformed_timestamp_path_http_date::MalformedTimestampPathHttpDateOutput,
   43     49   
            crate::operation::malformed_timestamp_path_http_date::MalformedTimestampPathHttpDateError,
   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 MalformedTimestampPathHttpDateFluentBuilder {
          57  +
    /* FluentBuilderGenerator.kt:288 */
   50     58   
    /// Creates a new `MalformedTimestampPathHttpDateFluentBuilder`.
   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 MalformedTimestampPathHttpDate as a reference.
   59     68   
    pub fn as_input(&self) -> &crate::operation::malformed_timestamp_path_http_date::builders::MalformedTimestampPathHttpDateInputBuilder {
   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::malformed_timestamp_path_http_date::MalformedTimestampPathHttpDateOutput,
   74     84   
        ::aws_smithy_runtime_api::client::result::SdkError<
   75     85   
            crate::operation::malformed_timestamp_path_http_date::MalformedTimestampPathHttpDateError,
   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::malformed_timestamp_path_http_date::MalformedTimestampPathHttpDate::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::malformed_timestamp_path_http_date::MalformedTimestampPathHttpDate::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::malformed_timestamp_path_http_date::MalformedTimestampPathHttpDateOutput,
   96    106   
        crate::operation::malformed_timestamp_path_http_date::MalformedTimestampPathHttpDateError,
   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 timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
  112    125   
        self.inner = self.inner.timestamp(input);
  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_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
  117    132   
        self.inner = self.inner.set_timestamp(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_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
  122    139   
        self.inner.get_timestamp()
  123    140   
    }
         141  +
    /* FluentBuilderGenerator.kt:282 */
  124    142   
}

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_timestamp_query_default.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 `MalformedTimestampQueryDefault`.
           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 MalformedTimestampQueryDefault;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl MalformedTimestampQueryDefault {
    7         -
    /// Creates a new `MalformedTimestampQueryDefault`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `MalformedTimestampQueryDefault`
          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::malformed_timestamp_query_default::MalformedTimestampQueryDefaultInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::malformed_timestamp_query_default::MalformedTimestampQueryDefaultOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::malformed_timestamp_query_default::MalformedTimestampQueryDefaultError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -63,72 +347,418 @@
   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 MalformedTimestampQueryDefault {
   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("MalformedTimestampQueryDefault");
   97    108   
   98    109   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   99    110   
            MalformedTimestampQueryDefaultRequestSerializer,
  100    111   
        ));
  101    112   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
  102    113   
            MalformedTimestampQueryDefaultResponseDeserializer,
  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   
            "MalformedTimestampQueryDefault",
  111    122   
            "Rest Json 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("MalformedTimestampQueryDefault")
  123    134   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  124    135   
            .with_interceptor(MalformedTimestampQueryDefaultEndpointParamsInterceptor)
  125    136   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  126    137   
                crate::operation::malformed_timestamp_query_default::MalformedTimestampQueryDefaultError,
  127    138   
            >::new())
  128    139   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  129    140   
                crate::operation::malformed_timestamp_query_default::MalformedTimestampQueryDefaultError,
  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 MalformedTimestampQueryDefaultResponseDeserializer;
  138    150   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for MalformedTimestampQueryDefaultResponseDeserializer {
  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_malformed_timestamp_query_default::de_malformed_timestamp_query_default_http_error(status, headers, body)
  151    163   
        } else {
  152    164   
            crate::protocol_serde::shape_malformed_timestamp_query_default::de_malformed_timestamp_query_default_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 MalformedTimestampQueryDefaultRequestSerializer;
  159    172   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for MalformedTimestampQueryDefaultRequestSerializer {
  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::malformed_timestamp_query_default::MalformedTimestampQueryDefaultInput>()
  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::malformed_timestamp_query_default::MalformedTimestampQueryDefaultInput,
  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, "/MalformedTimestampQueryDefault").expect("formatting should succeed");
  180    193   
                ::std::result::Result::Ok(())
  181    194   
            }
  182    195   
            fn uri_query(
  183    196   
                _input: &crate::operation::malformed_timestamp_query_default::MalformedTimestampQueryDefaultInput,
  184    197   
                mut output: &mut ::std::string::String,
  185    198   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  186    199   
                let mut query = ::aws_smithy_http::query::Writer::new(output);
  187    200   
                let inner_1 = &_input.timestamp;
  188    201   
                let inner_1 = inner_1
  189    202   
                    .as_ref()
  190    203   
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("timestamp", "cannot be empty or unset"))?;
  191    204   
                query.push_kv(
  192    205   
                    "timestamp",
  193    206   
                    &::aws_smithy_http::query::fmt_timestamp(inner_1, ::aws_smithy_types::date_time::Format::DateTime)?,
  194    207   
                );
  195    208   
                ::std::result::Result::Ok(())
  196    209   
            }
  197    210   
            #[allow(clippy::unnecessary_wraps)]
  198    211   
            fn update_http_builder(
  199    212   
                input: &crate::operation::malformed_timestamp_query_default::MalformedTimestampQueryDefaultInput,
  200    213   
                builder: ::http::request::Builder,
  201    214   
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  202    215   
                let mut uri = ::std::string::String::new();
  203    216   
                uri_base(input, &mut uri)?;
  204    217   
                uri_query(input, &mut uri)?;
  205    218   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  206    219   
            }
  207    220   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  208    221   
            builder
  209    222   
        };
  210    223   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  211    224   
  212    225   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  213    226   
    }
  214    227   
}
         228  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  215    229   
#[derive(Debug)]
  216    230   
struct MalformedTimestampQueryDefaultEndpointParamsInterceptor;
  217    231   
  218    232   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for MalformedTimestampQueryDefaultEndpointParamsInterceptor {
  219    233   
    fn name(&self) -> &'static str {
  220    234   
        "MalformedTimestampQueryDefaultEndpointParamsInterceptor"
  221    235   
    }
  222    236   
  223    237   
    fn read_before_execution(
  224    238   
        &self,
  225    239   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  226    240   
            '_,
  227    241   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  228    242   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  229    243   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  230    244   
        >,
  231    245   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  232    246   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  233    247   
        let _input = context
  234    248   
            .input()
  235    249   
            .downcast_ref::<MalformedTimestampQueryDefaultInput>()
  236    250   
            .ok_or("failed to downcast to MalformedTimestampQueryDefaultInput")?;
  237    251   
  238    252   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  239    253   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  240    254   
        })?;
  241    255   
        cfg.interceptor_state()
  242    256   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  243    257   
        ::std::result::Result::Ok(())
  244    258   
    }
  245    259   
}
  246    260   
  247    261   
// The get_* functions below are generated from JMESPath expressions in the
  248    262   
// operationContextParams trait. They target the operation's input shape.
  249    263   
         264  +
/* OperationErrorGenerator.kt:79 */
  250    265   
/// Error type for the `MalformedTimestampQueryDefaultError` operation.
         266  +
/* RustType.kt:516 */
  251    267   
#[non_exhaustive]
         268  +
/* RustType.kt:516 */
  252    269   
#[derive(::std::fmt::Debug)]
  253         -
pub enum MalformedTimestampQueryDefaultError {
         270  +
pub /* OperationErrorGenerator.kt:81 */ enum MalformedTimestampQueryDefaultError {
         271  +
    /* OperationErrorGenerator.kt:88 */
  254    272   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  255    273   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  256    274   
    variable wildcard pattern and check `.code()`:
  257    275   
     \
  258    276   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  259    277   
     \
  260    278   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-MalformedTimestampQueryDefaultError) for what information is available for the error.")]
  261    279   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         280  +
    /* OperationErrorGenerator.kt:81 */
  262    281   
}
         282  +
/* OperationErrorGenerator.kt:218 */
  263    283   
impl MalformedTimestampQueryDefaultError {
         284  +
    /* OperationErrorGenerator.kt:219 */
  264    285   
    /// Creates the `MalformedTimestampQueryDefaultError::Unhandled` variant from any error type.
  265    286   
    pub fn unhandled(
  266    287   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  267    288   
    ) -> Self {
  268    289   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  269    290   
            source: err.into(),
  270    291   
            meta: ::std::default::Default::default(),
  271    292   
        })
  272    293   
    }
  273    294   
  274    295   
    /// Creates the `MalformedTimestampQueryDefaultError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  275    296   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  276    297   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  277    298   
            source: err.clone().into(),
  278    299   
            meta: err,
  279    300   
        })
  280    301   
    }
  281         -
    ///
         302  +
    /// /* OperationErrorGenerator.kt:236 */
  282    303   
    /// Returns error metadata, which includes the error code, message,
  283    304   
    /// request ID, and potentially additional information.
  284    305   
    ///
         306  +
    /* OperationErrorGenerator.kt:242 */
  285    307   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         308  +
        /* OperationErrorGenerator.kt:243 */
  286    309   
        match self {
  287         -
            Self::Unhandled(e) => &e.meta,
         310  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         311  +
            /* OperationErrorGenerator.kt:243 */
  288    312   
        }
         313  +
        /* OperationErrorGenerator.kt:242 */
  289    314   
    }
         315  +
    /* OperationErrorGenerator.kt:218 */
  290    316   
}
         317  +
/* OperationErrorGenerator.kt:269 */
  291    318   
impl ::std::error::Error for MalformedTimestampQueryDefaultError {
         319  +
    /* OperationErrorGenerator.kt:270 */
  292    320   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         321  +
        /* OperationErrorGenerator.kt:318 */
  293    322   
        match self {
  294         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         323  +
            /* OperationErrorGenerator.kt:326 */
         324  +
            Self::Unhandled(_inner) => {
         325  +
                /* OperationErrorGenerator.kt:279 */
         326  +
                ::std::option::Option::Some(&*_inner.source)
         327  +
                /* OperationErrorGenerator.kt:326 */
         328  +
            } /* OperationErrorGenerator.kt:318 */
  295    329   
        }
         330  +
        /* OperationErrorGenerator.kt:270 */
  296    331   
    }
         332  +
    /* OperationErrorGenerator.kt:269 */
  297    333   
}
         334  +
/* OperationErrorGenerator.kt:133 */
  298    335   
impl ::std::fmt::Display for MalformedTimestampQueryDefaultError {
         336  +
    /* OperationErrorGenerator.kt:134 */
  299    337   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         338  +
        /* OperationErrorGenerator.kt:318 */
  300    339   
        match self {
         340  +
            /* OperationErrorGenerator.kt:326 */
  301    341   
            Self::Unhandled(_inner) => {
         342  +
                /* OperationErrorGenerator.kt:139 */
  302    343   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  303    344   
                    write!(f, "unhandled error ({code})")
  304    345   
                } else {
  305    346   
                    f.write_str("unhandled error")
  306    347   
                }
         348  +
                /* OperationErrorGenerator.kt:326 */
         349  +
            } /* OperationErrorGenerator.kt:318 */
  307    350   
        }
         351  +
        /* OperationErrorGenerator.kt:134 */
  308    352   
    }
  309         -
    }
         353  +
    /* OperationErrorGenerator.kt:133 */
  310    354   
}
         355  +
/* OperationErrorGenerator.kt:182 */
  311    356   
impl ::aws_smithy_types::retry::ProvideErrorKind for MalformedTimestampQueryDefaultError {
         357  +
    /* OperationErrorGenerator.kt:186 */
  312    358   
    fn code(&self) -> ::std::option::Option<&str> {
         359  +
        /* OperationErrorGenerator.kt:187 */
  313    360   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         361  +
        /* OperationErrorGenerator.kt:186 */
  314    362   
    }
         363  +
    /* OperationErrorGenerator.kt:190 */
  315    364   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         365  +
        /* OperationErrorGenerator.kt:197 */
  316    366   
        ::std::option::Option::None
         367  +
        /* OperationErrorGenerator.kt:190 */
  317    368   
    }
         369  +
    /* OperationErrorGenerator.kt:182 */
  318    370   
}
         371  +
/* OperationErrorGenerator.kt:163 */
  319    372   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for MalformedTimestampQueryDefaultError {
         373  +
    /* OperationErrorGenerator.kt:164 */
  320    374   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         375  +
        /* OperationErrorGenerator.kt:318 */
  321    376   
        match self {
  322         -
            Self::Unhandled(_inner) => &_inner.meta,
         377  +
            /* OperationErrorGenerator.kt:326 */
         378  +
            Self::Unhandled(_inner) => {
         379  +
                /* OperationErrorGenerator.kt:168 */
         380  +
                &_inner.meta
         381  +
                /* OperationErrorGenerator.kt:326 */
         382  +
            } /* OperationErrorGenerator.kt:318 */
  323    383   
        }
         384  +
        /* OperationErrorGenerator.kt:164 */
  324    385   
    }
         386  +
    /* OperationErrorGenerator.kt:163 */
  325    387   
}
         388  +
/* OperationErrorGenerator.kt:109 */
  326    389   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for MalformedTimestampQueryDefaultError {
         390  +
    /* OperationErrorGenerator.kt:110 */
  327    391   
    fn create_unhandled_error(
  328    392   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  329    393   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  330    394   
    ) -> Self {
         395  +
        /* OperationErrorGenerator.kt:121 */
  331    396   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  332    397   
            source,
  333    398   
            meta: meta.unwrap_or_default(),
  334    399   
        })
         400  +
        /* OperationErrorGenerator.kt:110 */
  335    401   
    }
         402  +
    /* OperationErrorGenerator.kt:109 */
  336    403   
}
  337    404   
         405  +
/* CodegenDelegator.kt:255 */
  338    406   
pub use crate::operation::malformed_timestamp_query_default::_malformed_timestamp_query_default_output::MalformedTimestampQueryDefaultOutput;
  339    407   
         408  +
/* CodegenDelegator.kt:255 */
  340    409   
pub use crate::operation::malformed_timestamp_query_default::_malformed_timestamp_query_default_input::MalformedTimestampQueryDefaultInput;
  341    410   
         411  +
/* RustModule.kt:172 */
  342    412   
mod _malformed_timestamp_query_default_input;
  343    413   
         414  +
/* RustModule.kt:172 */
  344    415   
mod _malformed_timestamp_query_default_output;
  345    416   
  346         -
/// Builders
         417  +
/// /* CodegenDelegator.kt:51 */Builders
  347    418   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_timestamp_query_default/_malformed_timestamp_query_default_input.rs

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

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

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_timestamp_query_default/builders.rs

@@ -1,1 +124,142 @@
    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::malformed_timestamp_query_default::_malformed_timestamp_query_default_output::MalformedTimestampQueryDefaultOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::malformed_timestamp_query_default::_malformed_timestamp_query_default_input::MalformedTimestampQueryDefaultInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::malformed_timestamp_query_default::builders::MalformedTimestampQueryDefaultInputBuilder {
    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::malformed_timestamp_query_default::MalformedTimestampQueryDefaultOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::malformed_timestamp_query_default::MalformedTimestampQueryDefaultError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.malformed_timestamp_query_default();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `MalformedTimestampQueryDefault`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `MalformedTimestampQueryDefault`.
   24     27   
///
          28  +
/* RustType.kt:516 */
   25     29   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          30  +
/* FluentBuilderGenerator.kt:270 */
   26     31   
pub struct MalformedTimestampQueryDefaultFluentBuilder {
   27     32   
    handle: ::std::sync::Arc<crate::client::Handle>,
   28     33   
    inner: crate::operation::malformed_timestamp_query_default::builders::MalformedTimestampQueryDefaultInputBuilder,
   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::malformed_timestamp_query_default::MalformedTimestampQueryDefaultOutput,
   34     40   
        crate::operation::malformed_timestamp_query_default::MalformedTimestampQueryDefaultError,
   35     41   
    > for MalformedTimestampQueryDefaultFluentBuilder
   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::malformed_timestamp_query_default::MalformedTimestampQueryDefaultOutput,
   43     49   
            crate::operation::malformed_timestamp_query_default::MalformedTimestampQueryDefaultError,
   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 MalformedTimestampQueryDefaultFluentBuilder {
          57  +
    /* FluentBuilderGenerator.kt:288 */
   50     58   
    /// Creates a new `MalformedTimestampQueryDefaultFluentBuilder`.
   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 MalformedTimestampQueryDefault as a reference.
   59     68   
    pub fn as_input(&self) -> &crate::operation::malformed_timestamp_query_default::builders::MalformedTimestampQueryDefaultInputBuilder {
   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::malformed_timestamp_query_default::MalformedTimestampQueryDefaultOutput,
   74     84   
        ::aws_smithy_runtime_api::client::result::SdkError<
   75     85   
            crate::operation::malformed_timestamp_query_default::MalformedTimestampQueryDefaultError,
   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::malformed_timestamp_query_default::MalformedTimestampQueryDefault::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::malformed_timestamp_query_default::MalformedTimestampQueryDefault::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::malformed_timestamp_query_default::MalformedTimestampQueryDefaultOutput,
   96    106   
        crate::operation::malformed_timestamp_query_default::MalformedTimestampQueryDefaultError,
   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 timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
  112    125   
        self.inner = self.inner.timestamp(input);
  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_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
  117    132   
        self.inner = self.inner.set_timestamp(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_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
  122    139   
        self.inner.get_timestamp()
  123    140   
    }
         141  +
    /* FluentBuilderGenerator.kt:282 */
  124    142   
}

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_timestamp_query_epoch.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 `MalformedTimestampQueryEpoch`.
           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 MalformedTimestampQueryEpoch;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl MalformedTimestampQueryEpoch {
    7         -
    /// Creates a new `MalformedTimestampQueryEpoch`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `MalformedTimestampQueryEpoch`
          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::malformed_timestamp_query_epoch::MalformedTimestampQueryEpochInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::malformed_timestamp_query_epoch::MalformedTimestampQueryEpochOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::malformed_timestamp_query_epoch::MalformedTimestampQueryEpochError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -63,72 +347,418 @@
   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 MalformedTimestampQueryEpoch {
   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("MalformedTimestampQueryEpoch");
   97    108   
   98    109   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   99    110   
            MalformedTimestampQueryEpochRequestSerializer,
  100    111   
        ));
  101    112   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
  102    113   
            MalformedTimestampQueryEpochResponseDeserializer,
  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   
            "MalformedTimestampQueryEpoch",
  111    122   
            "Rest Json 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("MalformedTimestampQueryEpoch")
  123    134   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  124    135   
            .with_interceptor(MalformedTimestampQueryEpochEndpointParamsInterceptor)
  125    136   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  126    137   
                crate::operation::malformed_timestamp_query_epoch::MalformedTimestampQueryEpochError,
  127    138   
            >::new())
  128    139   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  129    140   
                crate::operation::malformed_timestamp_query_epoch::MalformedTimestampQueryEpochError,
  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 MalformedTimestampQueryEpochResponseDeserializer;
  138    150   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for MalformedTimestampQueryEpochResponseDeserializer {
  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_malformed_timestamp_query_epoch::de_malformed_timestamp_query_epoch_http_error(status, headers, body)
  151    163   
        } else {
  152    164   
            crate::protocol_serde::shape_malformed_timestamp_query_epoch::de_malformed_timestamp_query_epoch_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 MalformedTimestampQueryEpochRequestSerializer;
  159    172   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for MalformedTimestampQueryEpochRequestSerializer {
  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::malformed_timestamp_query_epoch::MalformedTimestampQueryEpochInput>()
  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::malformed_timestamp_query_epoch::MalformedTimestampQueryEpochInput,
  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, "/MalformedTimestampQueryEpoch").expect("formatting should succeed");
  180    193   
                ::std::result::Result::Ok(())
  181    194   
            }
  182    195   
            fn uri_query(
  183    196   
                _input: &crate::operation::malformed_timestamp_query_epoch::MalformedTimestampQueryEpochInput,
  184    197   
                mut output: &mut ::std::string::String,
  185    198   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  186    199   
                let mut query = ::aws_smithy_http::query::Writer::new(output);
  187    200   
                let inner_1 = &_input.timestamp;
  188    201   
                let inner_1 = inner_1
  189    202   
                    .as_ref()
  190    203   
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("timestamp", "cannot be empty or unset"))?;
  191    204   
                query.push_kv(
  192    205   
                    "timestamp",
  193    206   
                    &::aws_smithy_http::query::fmt_timestamp(inner_1, ::aws_smithy_types::date_time::Format::EpochSeconds)?,
  194    207   
                );
  195    208   
                ::std::result::Result::Ok(())
  196    209   
            }
  197    210   
            #[allow(clippy::unnecessary_wraps)]
  198    211   
            fn update_http_builder(
  199    212   
                input: &crate::operation::malformed_timestamp_query_epoch::MalformedTimestampQueryEpochInput,
  200    213   
                builder: ::http::request::Builder,
  201    214   
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  202    215   
                let mut uri = ::std::string::String::new();
  203    216   
                uri_base(input, &mut uri)?;
  204    217   
                uri_query(input, &mut uri)?;
  205    218   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  206    219   
            }
  207    220   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  208    221   
            builder
  209    222   
        };
  210    223   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  211    224   
  212    225   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  213    226   
    }
  214    227   
}
         228  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  215    229   
#[derive(Debug)]
  216    230   
struct MalformedTimestampQueryEpochEndpointParamsInterceptor;
  217    231   
  218    232   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for MalformedTimestampQueryEpochEndpointParamsInterceptor {
  219    233   
    fn name(&self) -> &'static str {
  220    234   
        "MalformedTimestampQueryEpochEndpointParamsInterceptor"
  221    235   
    }
  222    236   
  223    237   
    fn read_before_execution(
  224    238   
        &self,
  225    239   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  226    240   
            '_,
  227    241   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  228    242   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  229    243   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  230    244   
        >,
  231    245   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  232    246   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  233    247   
        let _input = context
  234    248   
            .input()
  235    249   
            .downcast_ref::<MalformedTimestampQueryEpochInput>()
  236    250   
            .ok_or("failed to downcast to MalformedTimestampQueryEpochInput")?;
  237    251   
  238    252   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  239    253   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  240    254   
        })?;
  241    255   
        cfg.interceptor_state()
  242    256   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  243    257   
        ::std::result::Result::Ok(())
  244    258   
    }
  245    259   
}
  246    260   
  247    261   
// The get_* functions below are generated from JMESPath expressions in the
  248    262   
// operationContextParams trait. They target the operation's input shape.
  249    263   
         264  +
/* OperationErrorGenerator.kt:79 */
  250    265   
/// Error type for the `MalformedTimestampQueryEpochError` operation.
         266  +
/* RustType.kt:516 */
  251    267   
#[non_exhaustive]
         268  +
/* RustType.kt:516 */
  252    269   
#[derive(::std::fmt::Debug)]
  253         -
pub enum MalformedTimestampQueryEpochError {
         270  +
pub /* OperationErrorGenerator.kt:81 */ enum MalformedTimestampQueryEpochError {
         271  +
    /* OperationErrorGenerator.kt:88 */
  254    272   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  255    273   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  256    274   
    variable wildcard pattern and check `.code()`:
  257    275   
     \
  258    276   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  259    277   
     \
  260    278   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-MalformedTimestampQueryEpochError) for what information is available for the error.")]
  261    279   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         280  +
    /* OperationErrorGenerator.kt:81 */
  262    281   
}
         282  +
/* OperationErrorGenerator.kt:218 */
  263    283   
impl MalformedTimestampQueryEpochError {
         284  +
    /* OperationErrorGenerator.kt:219 */
  264    285   
    /// Creates the `MalformedTimestampQueryEpochError::Unhandled` variant from any error type.
  265    286   
    pub fn unhandled(
  266    287   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  267    288   
    ) -> Self {
  268    289   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  269    290   
            source: err.into(),
  270    291   
            meta: ::std::default::Default::default(),
  271    292   
        })
  272    293   
    }
  273    294   
  274    295   
    /// Creates the `MalformedTimestampQueryEpochError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  275    296   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  276    297   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  277    298   
            source: err.clone().into(),
  278    299   
            meta: err,
  279    300   
        })
  280    301   
    }
  281         -
    ///
         302  +
    /// /* OperationErrorGenerator.kt:236 */
  282    303   
    /// Returns error metadata, which includes the error code, message,
  283    304   
    /// request ID, and potentially additional information.
  284    305   
    ///
         306  +
    /* OperationErrorGenerator.kt:242 */
  285    307   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         308  +
        /* OperationErrorGenerator.kt:243 */
  286    309   
        match self {
  287         -
            Self::Unhandled(e) => &e.meta,
         310  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         311  +
            /* OperationErrorGenerator.kt:243 */
  288    312   
        }
         313  +
        /* OperationErrorGenerator.kt:242 */
  289    314   
    }
         315  +
    /* OperationErrorGenerator.kt:218 */
  290    316   
}
         317  +
/* OperationErrorGenerator.kt:269 */
  291    318   
impl ::std::error::Error for MalformedTimestampQueryEpochError {
         319  +
    /* OperationErrorGenerator.kt:270 */
  292    320   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         321  +
        /* OperationErrorGenerator.kt:318 */
  293    322   
        match self {
  294         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         323  +
            /* OperationErrorGenerator.kt:326 */
         324  +
            Self::Unhandled(_inner) => {
         325  +
                /* OperationErrorGenerator.kt:279 */
         326  +
                ::std::option::Option::Some(&*_inner.source)
         327  +
                /* OperationErrorGenerator.kt:326 */
         328  +
            } /* OperationErrorGenerator.kt:318 */
  295    329   
        }
         330  +
        /* OperationErrorGenerator.kt:270 */
  296    331   
    }
         332  +
    /* OperationErrorGenerator.kt:269 */
  297    333   
}
         334  +
/* OperationErrorGenerator.kt:133 */
  298    335   
impl ::std::fmt::Display for MalformedTimestampQueryEpochError {
         336  +
    /* OperationErrorGenerator.kt:134 */
  299    337   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         338  +
        /* OperationErrorGenerator.kt:318 */
  300    339   
        match self {
         340  +
            /* OperationErrorGenerator.kt:326 */
  301    341   
            Self::Unhandled(_inner) => {
         342  +
                /* OperationErrorGenerator.kt:139 */
  302    343   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  303    344   
                    write!(f, "unhandled error ({code})")
  304    345   
                } else {
  305    346   
                    f.write_str("unhandled error")
  306    347   
                }
         348  +
                /* OperationErrorGenerator.kt:326 */
         349  +
            } /* OperationErrorGenerator.kt:318 */
  307    350   
        }
         351  +
        /* OperationErrorGenerator.kt:134 */
  308    352   
    }
  309         -
    }
         353  +
    /* OperationErrorGenerator.kt:133 */
  310    354   
}
         355  +
/* OperationErrorGenerator.kt:182 */
  311    356   
impl ::aws_smithy_types::retry::ProvideErrorKind for MalformedTimestampQueryEpochError {
         357  +
    /* OperationErrorGenerator.kt:186 */
  312    358   
    fn code(&self) -> ::std::option::Option<&str> {
         359  +
        /* OperationErrorGenerator.kt:187 */
  313    360   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         361  +
        /* OperationErrorGenerator.kt:186 */
  314    362   
    }
         363  +
    /* OperationErrorGenerator.kt:190 */
  315    364   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         365  +
        /* OperationErrorGenerator.kt:197 */
  316    366   
        ::std::option::Option::None
         367  +
        /* OperationErrorGenerator.kt:190 */
  317    368   
    }
         369  +
    /* OperationErrorGenerator.kt:182 */
  318    370   
}
         371  +
/* OperationErrorGenerator.kt:163 */
  319    372   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for MalformedTimestampQueryEpochError {
         373  +
    /* OperationErrorGenerator.kt:164 */
  320    374   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         375  +
        /* OperationErrorGenerator.kt:318 */
  321    376   
        match self {
  322         -
            Self::Unhandled(_inner) => &_inner.meta,
         377  +
            /* OperationErrorGenerator.kt:326 */
         378  +
            Self::Unhandled(_inner) => {
         379  +
                /* OperationErrorGenerator.kt:168 */
         380  +
                &_inner.meta
         381  +
                /* OperationErrorGenerator.kt:326 */
         382  +
            } /* OperationErrorGenerator.kt:318 */
  323    383   
        }
         384  +
        /* OperationErrorGenerator.kt:164 */
  324    385   
    }
         386  +
    /* OperationErrorGenerator.kt:163 */
  325    387   
}
         388  +
/* OperationErrorGenerator.kt:109 */
  326    389   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for MalformedTimestampQueryEpochError {
         390  +
    /* OperationErrorGenerator.kt:110 */
  327    391   
    fn create_unhandled_error(
  328    392   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  329    393   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  330    394   
    ) -> Self {
         395  +
        /* OperationErrorGenerator.kt:121 */
  331    396   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  332    397   
            source,
  333    398   
            meta: meta.unwrap_or_default(),
  334    399   
        })
         400  +
        /* OperationErrorGenerator.kt:110 */
  335    401   
    }
         402  +
    /* OperationErrorGenerator.kt:109 */
  336    403   
}
  337    404   
         405  +
/* CodegenDelegator.kt:255 */
  338    406   
pub use crate::operation::malformed_timestamp_query_epoch::_malformed_timestamp_query_epoch_output::MalformedTimestampQueryEpochOutput;
  339    407   
         408  +
/* CodegenDelegator.kt:255 */
  340    409   
pub use crate::operation::malformed_timestamp_query_epoch::_malformed_timestamp_query_epoch_input::MalformedTimestampQueryEpochInput;
  341    410   
         411  +
/* RustModule.kt:172 */
  342    412   
mod _malformed_timestamp_query_epoch_input;
  343    413   
         414  +
/* RustModule.kt:172 */
  344    415   
mod _malformed_timestamp_query_epoch_output;
  345    416   
  346         -
/// Builders
         417  +
/// /* CodegenDelegator.kt:51 */Builders
  347    418   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_timestamp_query_epoch/_malformed_timestamp_query_epoch_input.rs

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

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

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_timestamp_query_epoch/builders.rs

@@ -1,1 +124,142 @@
    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::malformed_timestamp_query_epoch::_malformed_timestamp_query_epoch_output::MalformedTimestampQueryEpochOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::malformed_timestamp_query_epoch::_malformed_timestamp_query_epoch_input::MalformedTimestampQueryEpochInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::malformed_timestamp_query_epoch::builders::MalformedTimestampQueryEpochInputBuilder {
    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::malformed_timestamp_query_epoch::MalformedTimestampQueryEpochOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::malformed_timestamp_query_epoch::MalformedTimestampQueryEpochError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.malformed_timestamp_query_epoch();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `MalformedTimestampQueryEpoch`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `MalformedTimestampQueryEpoch`.
   24     27   
///
          28  +
/* RustType.kt:516 */
   25     29   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          30  +
/* FluentBuilderGenerator.kt:270 */
   26     31   
pub struct MalformedTimestampQueryEpochFluentBuilder {
   27     32   
    handle: ::std::sync::Arc<crate::client::Handle>,
   28     33   
    inner: crate::operation::malformed_timestamp_query_epoch::builders::MalformedTimestampQueryEpochInputBuilder,
   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::malformed_timestamp_query_epoch::MalformedTimestampQueryEpochOutput,
   34     40   
        crate::operation::malformed_timestamp_query_epoch::MalformedTimestampQueryEpochError,
   35     41   
    > for MalformedTimestampQueryEpochFluentBuilder
   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::malformed_timestamp_query_epoch::MalformedTimestampQueryEpochOutput,
   43     49   
            crate::operation::malformed_timestamp_query_epoch::MalformedTimestampQueryEpochError,
   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 MalformedTimestampQueryEpochFluentBuilder {
          57  +
    /* FluentBuilderGenerator.kt:288 */
   50     58   
    /// Creates a new `MalformedTimestampQueryEpochFluentBuilder`.
   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 MalformedTimestampQueryEpoch as a reference.
   59     68   
    pub fn as_input(&self) -> &crate::operation::malformed_timestamp_query_epoch::builders::MalformedTimestampQueryEpochInputBuilder {
   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::malformed_timestamp_query_epoch::MalformedTimestampQueryEpochOutput,
   74     84   
        ::aws_smithy_runtime_api::client::result::SdkError<
   75     85   
            crate::operation::malformed_timestamp_query_epoch::MalformedTimestampQueryEpochError,
   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::malformed_timestamp_query_epoch::MalformedTimestampQueryEpoch::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::malformed_timestamp_query_epoch::MalformedTimestampQueryEpoch::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::malformed_timestamp_query_epoch::MalformedTimestampQueryEpochOutput,
   96    106   
        crate::operation::malformed_timestamp_query_epoch::MalformedTimestampQueryEpochError,
   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 timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
  112    125   
        self.inner = self.inner.timestamp(input);
  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_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
  117    132   
        self.inner = self.inner.set_timestamp(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_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
  122    139   
        self.inner.get_timestamp()
  123    140   
    }
         141  +
    /* FluentBuilderGenerator.kt:282 */
  124    142   
}

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_timestamp_query_http_date.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 `MalformedTimestampQueryHttpDate`.
           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 MalformedTimestampQueryHttpDate;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl MalformedTimestampQueryHttpDate {
    7         -
    /// Creates a new `MalformedTimestampQueryHttpDate`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `MalformedTimestampQueryHttpDate`
          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::malformed_timestamp_query_http_date::MalformedTimestampQueryHttpDateInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::malformed_timestamp_query_http_date::MalformedTimestampQueryHttpDateOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::malformed_timestamp_query_http_date::MalformedTimestampQueryHttpDateError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -63,72 +349,420 @@
   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 MalformedTimestampQueryHttpDate {
   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("MalformedTimestampQueryHttpDate");
   97    108   
   98    109   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   99    110   
            MalformedTimestampQueryHttpDateRequestSerializer,
  100    111   
        ));
  101    112   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
  102    113   
            MalformedTimestampQueryHttpDateResponseDeserializer,
  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   
            "MalformedTimestampQueryHttpDate",
  111    122   
            "Rest Json 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("MalformedTimestampQueryHttpDate")
  123    134   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  124    135   
            .with_interceptor(MalformedTimestampQueryHttpDateEndpointParamsInterceptor)
  125    136   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  126    137   
                crate::operation::malformed_timestamp_query_http_date::MalformedTimestampQueryHttpDateError,
  127    138   
            >::new())
  128    139   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  129    140   
                crate::operation::malformed_timestamp_query_http_date::MalformedTimestampQueryHttpDateError,
  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 MalformedTimestampQueryHttpDateResponseDeserializer;
  138    150   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for MalformedTimestampQueryHttpDateResponseDeserializer {
  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_malformed_timestamp_query_http_date::de_malformed_timestamp_query_http_date_http_error(status, headers, body)
  151    163   
        } else {
  152    164   
            crate::protocol_serde::shape_malformed_timestamp_query_http_date::de_malformed_timestamp_query_http_date_http_response(
  153    165   
                status, headers, body,
  154    166   
            )
  155    167   
        };
  156    168   
        crate::protocol_serde::type_erase_result(parse_result)
  157    169   
    }
  158    170   
}
         171  +
/* RequestSerializerGenerator.kt:67 */
  159    172   
#[derive(Debug)]
  160    173   
struct MalformedTimestampQueryHttpDateRequestSerializer;
  161    174   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for MalformedTimestampQueryHttpDateRequestSerializer {
  162    175   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  163    176   
    fn serialize_input(
  164    177   
        &self,
  165    178   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  166    179   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  167    180   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  168    181   
        let input = input
  169    182   
            .downcast::<crate::operation::malformed_timestamp_query_http_date::MalformedTimestampQueryHttpDateInput>()
  170    183   
            .expect("correct type");
  171    184   
        let _header_serialization_settings = _cfg
  172    185   
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  173    186   
            .cloned()
  174    187   
            .unwrap_or_default();
  175    188   
        let mut request_builder = {
  176    189   
            fn uri_base(
  177    190   
                _input: &crate::operation::malformed_timestamp_query_http_date::MalformedTimestampQueryHttpDateInput,
  178    191   
                output: &mut ::std::string::String,
  179    192   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  180    193   
                use ::std::fmt::Write as _;
  181    194   
                ::std::write!(output, "/MalformedTimestampQueryHttpDate").expect("formatting should succeed");
  182    195   
                ::std::result::Result::Ok(())
  183    196   
            }
  184    197   
            fn uri_query(
  185    198   
                _input: &crate::operation::malformed_timestamp_query_http_date::MalformedTimestampQueryHttpDateInput,
  186    199   
                mut output: &mut ::std::string::String,
  187    200   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  188    201   
                let mut query = ::aws_smithy_http::query::Writer::new(output);
  189    202   
                let inner_1 = &_input.timestamp;
  190    203   
                let inner_1 = inner_1
  191    204   
                    .as_ref()
  192    205   
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("timestamp", "cannot be empty or unset"))?;
  193    206   
                query.push_kv(
  194    207   
                    "timestamp",
  195    208   
                    &::aws_smithy_http::query::fmt_timestamp(inner_1, ::aws_smithy_types::date_time::Format::HttpDate)?,
  196    209   
                );
  197    210   
                ::std::result::Result::Ok(())
  198    211   
            }
  199    212   
            #[allow(clippy::unnecessary_wraps)]
  200    213   
            fn update_http_builder(
  201    214   
                input: &crate::operation::malformed_timestamp_query_http_date::MalformedTimestampQueryHttpDateInput,
  202    215   
                builder: ::http::request::Builder,
  203    216   
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  204    217   
                let mut uri = ::std::string::String::new();
  205    218   
                uri_base(input, &mut uri)?;
  206    219   
                uri_query(input, &mut uri)?;
  207    220   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  208    221   
            }
  209    222   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  210    223   
            builder
  211    224   
        };
  212    225   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  213    226   
  214    227   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  215    228   
    }
  216    229   
}
         230  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  217    231   
#[derive(Debug)]
  218    232   
struct MalformedTimestampQueryHttpDateEndpointParamsInterceptor;
  219    233   
  220    234   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for MalformedTimestampQueryHttpDateEndpointParamsInterceptor {
  221    235   
    fn name(&self) -> &'static str {
  222    236   
        "MalformedTimestampQueryHttpDateEndpointParamsInterceptor"
  223    237   
    }
  224    238   
  225    239   
    fn read_before_execution(
  226    240   
        &self,
  227    241   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  228    242   
            '_,
  229    243   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  230    244   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  231    245   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  232    246   
        >,
  233    247   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  234    248   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  235    249   
        let _input = context
  236    250   
            .input()
  237    251   
            .downcast_ref::<MalformedTimestampQueryHttpDateInput>()
  238    252   
            .ok_or("failed to downcast to MalformedTimestampQueryHttpDateInput")?;
  239    253   
  240    254   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  241    255   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  242    256   
        })?;
  243    257   
        cfg.interceptor_state()
  244    258   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  245    259   
        ::std::result::Result::Ok(())
  246    260   
    }
  247    261   
}
  248    262   
  249    263   
// The get_* functions below are generated from JMESPath expressions in the
  250    264   
// operationContextParams trait. They target the operation's input shape.
  251    265   
         266  +
/* OperationErrorGenerator.kt:79 */
  252    267   
/// Error type for the `MalformedTimestampQueryHttpDateError` operation.
         268  +
/* RustType.kt:516 */
  253    269   
#[non_exhaustive]
         270  +
/* RustType.kt:516 */
  254    271   
#[derive(::std::fmt::Debug)]
  255         -
pub enum MalformedTimestampQueryHttpDateError {
         272  +
pub /* OperationErrorGenerator.kt:81 */ enum MalformedTimestampQueryHttpDateError {
         273  +
    /* OperationErrorGenerator.kt:88 */
  256    274   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  257    275   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  258    276   
    variable wildcard pattern and check `.code()`:
  259    277   
     \
  260    278   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  261    279   
     \
  262    280   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-MalformedTimestampQueryHttpDateError) for what information is available for the error.")]
  263    281   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         282  +
    /* OperationErrorGenerator.kt:81 */
  264    283   
}
         284  +
/* OperationErrorGenerator.kt:218 */
  265    285   
impl MalformedTimestampQueryHttpDateError {
         286  +
    /* OperationErrorGenerator.kt:219 */
  266    287   
    /// Creates the `MalformedTimestampQueryHttpDateError::Unhandled` variant from any error type.
  267    288   
    pub fn unhandled(
  268    289   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  269    290   
    ) -> Self {
  270    291   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  271    292   
            source: err.into(),
  272    293   
            meta: ::std::default::Default::default(),
  273    294   
        })
  274    295   
    }
  275    296   
  276    297   
    /// Creates the `MalformedTimestampQueryHttpDateError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  277    298   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  278    299   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  279    300   
            source: err.clone().into(),
  280    301   
            meta: err,
  281    302   
        })
  282    303   
    }
  283         -
    ///
         304  +
    /// /* OperationErrorGenerator.kt:236 */
  284    305   
    /// Returns error metadata, which includes the error code, message,
  285    306   
    /// request ID, and potentially additional information.
  286    307   
    ///
         308  +
    /* OperationErrorGenerator.kt:242 */
  287    309   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         310  +
        /* OperationErrorGenerator.kt:243 */
  288    311   
        match self {
  289         -
            Self::Unhandled(e) => &e.meta,
         312  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         313  +
            /* OperationErrorGenerator.kt:243 */
  290    314   
        }
         315  +
        /* OperationErrorGenerator.kt:242 */
  291    316   
    }
         317  +
    /* OperationErrorGenerator.kt:218 */
  292    318   
}
         319  +
/* OperationErrorGenerator.kt:269 */
  293    320   
impl ::std::error::Error for MalformedTimestampQueryHttpDateError {
         321  +
    /* OperationErrorGenerator.kt:270 */
  294    322   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         323  +
        /* OperationErrorGenerator.kt:318 */
  295    324   
        match self {
  296         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         325  +
            /* OperationErrorGenerator.kt:326 */
         326  +
            Self::Unhandled(_inner) => {
         327  +
                /* OperationErrorGenerator.kt:279 */
         328  +
                ::std::option::Option::Some(&*_inner.source)
         329  +
                /* OperationErrorGenerator.kt:326 */
         330  +
            } /* OperationErrorGenerator.kt:318 */
  297    331   
        }
         332  +
        /* OperationErrorGenerator.kt:270 */
  298    333   
    }
         334  +
    /* OperationErrorGenerator.kt:269 */
  299    335   
}
         336  +
/* OperationErrorGenerator.kt:133 */
  300    337   
impl ::std::fmt::Display for MalformedTimestampQueryHttpDateError {
         338  +
    /* OperationErrorGenerator.kt:134 */
  301    339   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         340  +
        /* OperationErrorGenerator.kt:318 */
  302    341   
        match self {
         342  +
            /* OperationErrorGenerator.kt:326 */
  303    343   
            Self::Unhandled(_inner) => {
         344  +
                /* OperationErrorGenerator.kt:139 */
  304    345   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  305    346   
                    write!(f, "unhandled error ({code})")
  306    347   
                } else {
  307    348   
                    f.write_str("unhandled error")
  308    349   
                }
         350  +
                /* OperationErrorGenerator.kt:326 */
         351  +
            } /* OperationErrorGenerator.kt:318 */
  309    352   
        }
         353  +
        /* OperationErrorGenerator.kt:134 */
  310    354   
    }
  311         -
    }
         355  +
    /* OperationErrorGenerator.kt:133 */
  312    356   
}
         357  +
/* OperationErrorGenerator.kt:182 */
  313    358   
impl ::aws_smithy_types::retry::ProvideErrorKind for MalformedTimestampQueryHttpDateError {
         359  +
    /* OperationErrorGenerator.kt:186 */
  314    360   
    fn code(&self) -> ::std::option::Option<&str> {
         361  +
        /* OperationErrorGenerator.kt:187 */
  315    362   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         363  +
        /* OperationErrorGenerator.kt:186 */
  316    364   
    }
         365  +
    /* OperationErrorGenerator.kt:190 */
  317    366   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         367  +
        /* OperationErrorGenerator.kt:197 */
  318    368   
        ::std::option::Option::None
         369  +
        /* OperationErrorGenerator.kt:190 */
  319    370   
    }
         371  +
    /* OperationErrorGenerator.kt:182 */
  320    372   
}
         373  +
/* OperationErrorGenerator.kt:163 */
  321    374   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for MalformedTimestampQueryHttpDateError {
         375  +
    /* OperationErrorGenerator.kt:164 */
  322    376   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         377  +
        /* OperationErrorGenerator.kt:318 */
  323    378   
        match self {
  324         -
            Self::Unhandled(_inner) => &_inner.meta,
         379  +
            /* OperationErrorGenerator.kt:326 */
         380  +
            Self::Unhandled(_inner) => {
         381  +
                /* OperationErrorGenerator.kt:168 */
         382  +
                &_inner.meta
         383  +
                /* OperationErrorGenerator.kt:326 */
         384  +
            } /* OperationErrorGenerator.kt:318 */
  325    385   
        }
         386  +
        /* OperationErrorGenerator.kt:164 */
  326    387   
    }
         388  +
    /* OperationErrorGenerator.kt:163 */
  327    389   
}
         390  +
/* OperationErrorGenerator.kt:109 */
  328    391   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for MalformedTimestampQueryHttpDateError {
         392  +
    /* OperationErrorGenerator.kt:110 */
  329    393   
    fn create_unhandled_error(
  330    394   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  331    395   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  332    396   
    ) -> Self {
         397  +
        /* OperationErrorGenerator.kt:121 */
  333    398   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  334    399   
            source,
  335    400   
            meta: meta.unwrap_or_default(),
  336    401   
        })
         402  +
        /* OperationErrorGenerator.kt:110 */
  337    403   
    }
         404  +
    /* OperationErrorGenerator.kt:109 */
  338    405   
}
  339    406   
         407  +
/* CodegenDelegator.kt:255 */
  340    408   
pub use crate::operation::malformed_timestamp_query_http_date::_malformed_timestamp_query_http_date_output::MalformedTimestampQueryHttpDateOutput;
  341    409   
         410  +
/* CodegenDelegator.kt:255 */
  342    411   
pub use crate::operation::malformed_timestamp_query_http_date::_malformed_timestamp_query_http_date_input::MalformedTimestampQueryHttpDateInput;
  343    412   
         413  +
/* RustModule.kt:172 */
  344    414   
mod _malformed_timestamp_query_http_date_input;
  345    415   
         416  +
/* RustModule.kt:172 */
  346    417   
mod _malformed_timestamp_query_http_date_output;
  347    418   
  348         -
/// Builders
         419  +
/// /* CodegenDelegator.kt:51 */Builders
  349    420   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_timestamp_query_http_date/_malformed_timestamp_query_http_date_input.rs

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

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