Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943

Files changed:

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

@@ -1,1 +23,40 @@
    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 HttpRequestWithLabelsAndTimestampFormatOutput {}
           8  +
pub /* StructureGenerator.kt:201 */ struct HttpRequestWithLabelsAndTimestampFormatOutput {/* StructureGenerator.kt:201 */}
           9  +
/* ClientCodegenVisitor.kt:237 */
    6     10   
impl HttpRequestWithLabelsAndTimestampFormatOutput {
    7         -
    /// Creates a new builder-style object to manufacture [`HttpRequestWithLabelsAndTimestampFormatOutput`](crate::operation::http_request_with_labels_and_timestamp_format::HttpRequestWithLabelsAndTimestampFormatOutput).
          11  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`HttpRequestWithLabelsAndTimestampFormatOutput`](crate::operation::http_request_with_labels_and_timestamp_format::HttpRequestWithLabelsAndTimestampFormatOutput).
          12  +
    /* BuilderGenerator.kt:175 */
    8     13   
    pub fn builder() -> crate::operation::http_request_with_labels_and_timestamp_format::builders::HttpRequestWithLabelsAndTimestampFormatOutputBuilder
    9     14   
    {
          15  +
        /* BuilderGenerator.kt:176 */
   10     16   
        crate::operation::http_request_with_labels_and_timestamp_format::builders::HttpRequestWithLabelsAndTimestampFormatOutputBuilder::default()
          17  +
        /* BuilderGenerator.kt:175 */
   11     18   
    }
          19  +
    /* ClientCodegenVisitor.kt:237 */
   12     20   
}
   13     21   
   14         -
/// A builder for [`HttpRequestWithLabelsAndTimestampFormatOutput`](crate::operation::http_request_with_labels_and_timestamp_format::HttpRequestWithLabelsAndTimestampFormatOutput).
          22  +
/// /* BuilderGenerator.kt:342 */A builder for [`HttpRequestWithLabelsAndTimestampFormatOutput`](crate::operation::http_request_with_labels_and_timestamp_format::HttpRequestWithLabelsAndTimestampFormatOutput).
          23  +
/* RustType.kt:516 */
   15     24   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          25  +
/* RustType.kt:516 */
   16     26   
#[non_exhaustive]
   17         -
pub struct HttpRequestWithLabelsAndTimestampFormatOutputBuilder {}
          27  +
/* BuilderGenerator.kt:345 */
          28  +
pub struct HttpRequestWithLabelsAndTimestampFormatOutputBuilder {/* BuilderGenerator.kt:345 */}
          29  +
/* BuilderGenerator.kt:355 */
   18     30   
impl HttpRequestWithLabelsAndTimestampFormatOutputBuilder {
   19         -
    /// Consumes the builder and constructs a [`HttpRequestWithLabelsAndTimestampFormatOutput`](crate::operation::http_request_with_labels_and_timestamp_format::HttpRequestWithLabelsAndTimestampFormatOutput).
          31  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`HttpRequestWithLabelsAndTimestampFormatOutput`](crate::operation::http_request_with_labels_and_timestamp_format::HttpRequestWithLabelsAndTimestampFormatOutput).
          32  +
    /* BuilderGenerator.kt:253 */
   20     33   
    pub fn build(self) -> crate::operation::http_request_with_labels_and_timestamp_format::HttpRequestWithLabelsAndTimestampFormatOutput {
   21         -
        crate::operation::http_request_with_labels_and_timestamp_format::HttpRequestWithLabelsAndTimestampFormatOutput {}
          34  +
        /* BuilderGenerator.kt:477 */
          35  +
        crate::operation::http_request_with_labels_and_timestamp_format::HttpRequestWithLabelsAndTimestampFormatOutput {
          36  +
        /* BuilderGenerator.kt:477 */}
          37  +
        /* BuilderGenerator.kt:253 */
   22     38   
    }
          39  +
    /* BuilderGenerator.kt:355 */
   23     40   
}

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

@@ -1,1 +213,267 @@
    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::http_request_with_labels_and_timestamp_format::_http_request_with_labels_and_timestamp_format_output::HttpRequestWithLabelsAndTimestampFormatOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::http_request_with_labels_and_timestamp_format::_http_request_with_labels_and_timestamp_format_input::HttpRequestWithLabelsAndTimestampFormatInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::http_request_with_labels_and_timestamp_format::builders::HttpRequestWithLabelsAndTimestampFormatInputBuilder {
    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::http_request_with_labels_and_timestamp_format::HttpRequestWithLabelsAndTimestampFormatOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::http_request_with_labels_and_timestamp_format::HttpRequestWithLabelsAndTimestampFormatError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.http_request_with_labels_and_timestamp_format();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `HttpRequestWithLabelsAndTimestampFormat`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `HttpRequestWithLabelsAndTimestampFormat`.
   24     27   
///
   25         -
/// The example tests how requests serialize different timestamp formats in the URI path.
          28  +
/// /* FluentBuilderGenerator.kt:130 */The example tests how requests serialize different timestamp formats in the URI path.
          29  +
/* RustType.kt:516 */
   26     30   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          31  +
/* FluentBuilderGenerator.kt:270 */
   27     32   
pub struct HttpRequestWithLabelsAndTimestampFormatFluentBuilder {
   28     33   
    handle: ::std::sync::Arc<crate::client::Handle>,
   29     34   
    inner: crate::operation::http_request_with_labels_and_timestamp_format::builders::HttpRequestWithLabelsAndTimestampFormatInputBuilder,
   30     35   
    config_override: ::std::option::Option<crate::config::Builder>,
   31     36   
}
          37  +
/* FluentBuilderGenerator.kt:381 */
   32     38   
impl
   33     39   
    crate::client::customize::internal::CustomizableSend<
   34     40   
        crate::operation::http_request_with_labels_and_timestamp_format::HttpRequestWithLabelsAndTimestampFormatOutput,
   35     41   
        crate::operation::http_request_with_labels_and_timestamp_format::HttpRequestWithLabelsAndTimestampFormatError,
   36     42   
    > for HttpRequestWithLabelsAndTimestampFormatFluentBuilder
   37     43   
{
   38     44   
    fn send(
   39     45   
        self,
   40     46   
        config_override: crate::config::Builder,
   41     47   
    ) -> crate::client::customize::internal::BoxFuture<
   42     48   
        crate::client::customize::internal::SendResult<
   43     49   
            crate::operation::http_request_with_labels_and_timestamp_format::HttpRequestWithLabelsAndTimestampFormatOutput,
   44     50   
            crate::operation::http_request_with_labels_and_timestamp_format::HttpRequestWithLabelsAndTimestampFormatError,
   45     51   
        >,
   46     52   
    > {
   47     53   
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
   48     54   
    }
   49     55   
}
          56  +
/* FluentBuilderGenerator.kt:282 */
   50     57   
impl HttpRequestWithLabelsAndTimestampFormatFluentBuilder {
          58  +
    /* FluentBuilderGenerator.kt:288 */
   51     59   
    /// Creates a new `HttpRequestWithLabelsAndTimestampFormatFluentBuilder`.
   52     60   
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
   53     61   
        Self {
   54     62   
            handle,
   55     63   
            inner: ::std::default::Default::default(),
   56     64   
            config_override: ::std::option::Option::None,
   57     65   
        }
   58     66   
    }
          67  +
    /* FluentBuilderGenerator.kt:301 */
   59     68   
    /// Access the HttpRequestWithLabelsAndTimestampFormat as a reference.
   60     69   
    pub fn as_input(
   61     70   
        &self,
   62     71   
    ) -> &crate::operation::http_request_with_labels_and_timestamp_format::builders::HttpRequestWithLabelsAndTimestampFormatInputBuilder {
   63     72   
        &self.inner
   64     73   
    }
          74  +
    /* FluentBuilderGenerator.kt:145 */
   65     75   
    /// Sends the request and returns the response.
   66     76   
    ///
   67     77   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   68     78   
    /// can be matched against.
   69     79   
    ///
   70     80   
    /// By default, any retryable failures will be retried twice. Retry behavior
   71     81   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   72     82   
    /// set when configuring the client.
   73     83   
    pub async fn send(
   74     84   
        self,
   75     85   
    ) -> ::std::result::Result<
   76     86   
        crate::operation::http_request_with_labels_and_timestamp_format::HttpRequestWithLabelsAndTimestampFormatOutput,
   77     87   
        ::aws_smithy_runtime_api::client::result::SdkError<
   78     88   
            crate::operation::http_request_with_labels_and_timestamp_format::HttpRequestWithLabelsAndTimestampFormatError,
   79     89   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   80     90   
        >,
   81     91   
    > {
   82     92   
        let input = self
   83     93   
            .inner
   84     94   
            .build()
   85     95   
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
   86     96   
        let runtime_plugins =
   87     97   
            crate::operation::http_request_with_labels_and_timestamp_format::HttpRequestWithLabelsAndTimestampFormat::operation_runtime_plugins(
   88     98   
                self.handle.runtime_plugins.clone(),
   89     99   
                &self.handle.conf,
   90    100   
                self.config_override,
   91    101   
            );
   92    102   
        crate::operation::http_request_with_labels_and_timestamp_format::HttpRequestWithLabelsAndTimestampFormat::orchestrate(&runtime_plugins, input)
   93    103   
            .await
   94    104   
    }
   95    105   
   96    106   
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
   97    107   
    pub fn customize(
   98    108   
        self,
   99    109   
    ) -> crate::client::customize::CustomizableOperation<
  100    110   
        crate::operation::http_request_with_labels_and_timestamp_format::HttpRequestWithLabelsAndTimestampFormatOutput,
  101    111   
        crate::operation::http_request_with_labels_and_timestamp_format::HttpRequestWithLabelsAndTimestampFormatError,
  102    112   
        Self,
  103    113   
    > {
  104    114   
        crate::client::customize::CustomizableOperation::new(self)
  105    115   
    }
         116  +
    /* FluentBuilderGenerator.kt:315 */
  106    117   
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
  107    118   
        self.set_config_override(::std::option::Option::Some(config_override.into()));
  108    119   
        self
  109    120   
    }
  110    121   
  111    122   
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
  112    123   
        self.config_override = config_override;
  113    124   
        self
  114    125   
    }
         126  +
    /* FluentBuilderGenerator.kt:498 */
  115    127   
    #[allow(missing_docs)] // documentation missing in model
         128  +
                           /* FluentBuilderGenerator.kt:500 */
  116    129   
    pub fn member_epoch_seconds(mut self, input: ::aws_smithy_types::DateTime) -> Self {
  117    130   
        self.inner = self.inner.member_epoch_seconds(input);
  118    131   
        self
  119    132   
    }
         133  +
    /* FluentBuilderGenerator.kt:498 */
  120    134   
    #[allow(missing_docs)] // documentation missing in model
         135  +
                           /* FluentBuilderGenerator.kt:500 */
  121    136   
    pub fn set_member_epoch_seconds(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
  122    137   
        self.inner = self.inner.set_member_epoch_seconds(input);
  123    138   
        self
  124    139   
    }
         140  +
    /* FluentBuilderGenerator.kt:518 */
  125    141   
    #[allow(missing_docs)] // documentation missing in model
         142  +
                           /* FluentBuilderGenerator.kt:520 */
  126    143   
    pub fn get_member_epoch_seconds(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
  127    144   
        self.inner.get_member_epoch_seconds()
  128    145   
    }
         146  +
    /* FluentBuilderGenerator.kt:498 */
  129    147   
    #[allow(missing_docs)] // documentation missing in model
         148  +
                           /* FluentBuilderGenerator.kt:500 */
  130    149   
    pub fn member_http_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
  131    150   
        self.inner = self.inner.member_http_date(input);
  132    151   
        self
  133    152   
    }
         153  +
    /* FluentBuilderGenerator.kt:498 */
  134    154   
    #[allow(missing_docs)] // documentation missing in model
         155  +
                           /* FluentBuilderGenerator.kt:500 */
  135    156   
    pub fn set_member_http_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
  136    157   
        self.inner = self.inner.set_member_http_date(input);
  137    158   
        self
  138    159   
    }
         160  +
    /* FluentBuilderGenerator.kt:518 */
  139    161   
    #[allow(missing_docs)] // documentation missing in model
         162  +
                           /* FluentBuilderGenerator.kt:520 */
  140    163   
    pub fn get_member_http_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
  141    164   
        self.inner.get_member_http_date()
  142    165   
    }
         166  +
    /* FluentBuilderGenerator.kt:498 */
  143    167   
    #[allow(missing_docs)] // documentation missing in model
         168  +
                           /* FluentBuilderGenerator.kt:500 */
  144    169   
    pub fn member_date_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
  145    170   
        self.inner = self.inner.member_date_time(input);
  146    171   
        self
  147    172   
    }
         173  +
    /* FluentBuilderGenerator.kt:498 */
  148    174   
    #[allow(missing_docs)] // documentation missing in model
         175  +
                           /* FluentBuilderGenerator.kt:500 */
  149    176   
    pub fn set_member_date_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
  150    177   
        self.inner = self.inner.set_member_date_time(input);
  151    178   
        self
  152    179   
    }
         180  +
    /* FluentBuilderGenerator.kt:518 */
  153    181   
    #[allow(missing_docs)] // documentation missing in model
         182  +
                           /* FluentBuilderGenerator.kt:520 */
  154    183   
    pub fn get_member_date_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
  155    184   
        self.inner.get_member_date_time()
  156    185   
    }
         186  +
    /* FluentBuilderGenerator.kt:498 */
  157    187   
    #[allow(missing_docs)] // documentation missing in model
         188  +
                           /* FluentBuilderGenerator.kt:500 */
  158    189   
    pub fn default_format(mut self, input: ::aws_smithy_types::DateTime) -> Self {
  159    190   
        self.inner = self.inner.default_format(input);
  160    191   
        self
  161    192   
    }
         193  +
    /* FluentBuilderGenerator.kt:498 */
  162    194   
    #[allow(missing_docs)] // documentation missing in model
         195  +
                           /* FluentBuilderGenerator.kt:500 */
  163    196   
    pub fn set_default_format(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
  164    197   
        self.inner = self.inner.set_default_format(input);
  165    198   
        self
  166    199   
    }
         200  +
    /* FluentBuilderGenerator.kt:518 */
  167    201   
    #[allow(missing_docs)] // documentation missing in model
         202  +
                           /* FluentBuilderGenerator.kt:520 */
  168    203   
    pub fn get_default_format(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
  169    204   
        self.inner.get_default_format()
  170    205   
    }
         206  +
    /* FluentBuilderGenerator.kt:498 */
  171    207   
    #[allow(missing_docs)] // documentation missing in model
         208  +
                           /* FluentBuilderGenerator.kt:500 */
  172    209   
    pub fn target_epoch_seconds(mut self, input: ::aws_smithy_types::DateTime) -> Self {
  173    210   
        self.inner = self.inner.target_epoch_seconds(input);
  174    211   
        self
  175    212   
    }
         213  +
    /* FluentBuilderGenerator.kt:498 */
  176    214   
    #[allow(missing_docs)] // documentation missing in model
         215  +
                           /* FluentBuilderGenerator.kt:500 */
  177    216   
    pub fn set_target_epoch_seconds(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
  178    217   
        self.inner = self.inner.set_target_epoch_seconds(input);
  179    218   
        self
  180    219   
    }
         220  +
    /* FluentBuilderGenerator.kt:518 */
  181    221   
    #[allow(missing_docs)] // documentation missing in model
         222  +
                           /* FluentBuilderGenerator.kt:520 */
  182    223   
    pub fn get_target_epoch_seconds(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
  183    224   
        self.inner.get_target_epoch_seconds()
  184    225   
    }
         226  +
    /* FluentBuilderGenerator.kt:498 */
  185    227   
    #[allow(missing_docs)] // documentation missing in model
         228  +
                           /* FluentBuilderGenerator.kt:500 */
  186    229   
    pub fn target_http_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
  187    230   
        self.inner = self.inner.target_http_date(input);
  188    231   
        self
  189    232   
    }
         233  +
    /* FluentBuilderGenerator.kt:498 */
  190    234   
    #[allow(missing_docs)] // documentation missing in model
         235  +
                           /* FluentBuilderGenerator.kt:500 */
  191    236   
    pub fn set_target_http_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
  192    237   
        self.inner = self.inner.set_target_http_date(input);
  193    238   
        self
  194    239   
    }
         240  +
    /* FluentBuilderGenerator.kt:518 */
  195    241   
    #[allow(missing_docs)] // documentation missing in model
         242  +
                           /* FluentBuilderGenerator.kt:520 */
  196    243   
    pub fn get_target_http_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
  197    244   
        self.inner.get_target_http_date()
  198    245   
    }
         246  +
    /* FluentBuilderGenerator.kt:498 */
  199    247   
    #[allow(missing_docs)] // documentation missing in model
         248  +
                           /* FluentBuilderGenerator.kt:500 */
  200    249   
    pub fn target_date_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
  201    250   
        self.inner = self.inner.target_date_time(input);
  202    251   
        self
  203    252   
    }
         253  +
    /* FluentBuilderGenerator.kt:498 */
  204    254   
    #[allow(missing_docs)] // documentation missing in model
         255  +
                           /* FluentBuilderGenerator.kt:500 */
  205    256   
    pub fn set_target_date_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
  206    257   
        self.inner = self.inner.set_target_date_time(input);
  207    258   
        self
  208    259   
    }
         260  +
    /* FluentBuilderGenerator.kt:518 */
  209    261   
    #[allow(missing_docs)] // documentation missing in model
         262  +
                           /* FluentBuilderGenerator.kt:520 */
  210    263   
    pub fn get_target_date_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
  211    264   
        self.inner.get_target_date_time()
  212    265   
    }
         266  +
    /* FluentBuilderGenerator.kt:282 */
  213    267   
}

tmp-codegen-diff/codegen-client-test/rest_xml/rust-client-codegen/src/operation/http_response_code.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 `HttpResponseCode`.
           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 HttpResponseCode;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl HttpResponseCode {
    7         -
    /// Creates a new `HttpResponseCode`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `HttpResponseCode`
          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::http_response_code::HttpResponseCodeInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::http_response_code::HttpResponseCodeOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::http_response_code::HttpResponseCodeError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -63,72 +378,454 @@
   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 HttpResponseCode {
   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("HttpResponseCode");
   97    108   
   98    109   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   99    110   
            HttpResponseCodeRequestSerializer,
  100    111   
        ));
  101    112   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
  102    113   
            HttpResponseCodeResponseDeserializer,
  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   
            "HttpResponseCode",
  111    122   
            "Rest Xml Protocol",
  112    123   
        ));
  113    124   
  114    125   
        ::std::option::Option::Some(cfg.freeze())
  115    126   
    }
  116    127   
  117    128   
    fn runtime_components(
  118    129   
        &self,
  119    130   
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
  120    131   
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
  121    132   
        #[allow(unused_mut)]
  122    133   
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("HttpResponseCode")
  123    134   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  124    135   
            .with_interceptor(HttpResponseCodeEndpointParamsInterceptor)
  125    136   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  126    137   
                crate::operation::http_response_code::HttpResponseCodeError,
  127    138   
            >::new())
  128    139   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  129    140   
                crate::operation::http_response_code::HttpResponseCodeError,
  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 HttpResponseCodeResponseDeserializer;
  138    150   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for HttpResponseCodeResponseDeserializer {
  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_http_response_code::de_http_response_code_http_error(status, headers, body)
  151    163   
        } else {
  152    164   
            crate::protocol_serde::shape_http_response_code::de_http_response_code_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 HttpResponseCodeRequestSerializer;
  159    172   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for HttpResponseCodeRequestSerializer {
  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::http_response_code::HttpResponseCodeInput>()
  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::http_response_code::HttpResponseCodeInput,
  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, "/HttpResponseCode").expect("formatting should succeed");
  180    193   
                ::std::result::Result::Ok(())
  181    194   
            }
  182    195   
            #[allow(clippy::unnecessary_wraps)]
  183    196   
            fn update_http_builder(
  184    197   
                input: &crate::operation::http_response_code::HttpResponseCodeInput,
  185    198   
                builder: ::http::request::Builder,
  186    199   
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  187    200   
                let mut uri = ::std::string::String::new();
  188    201   
                uri_base(input, &mut uri)?;
  189    202   
                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
  190    203   
            }
  191    204   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  192    205   
            builder
  193    206   
        };
  194    207   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  195    208   
  196    209   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  197    210   
    }
  198    211   
}
         212  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  199    213   
#[derive(Debug)]
  200    214   
struct HttpResponseCodeEndpointParamsInterceptor;
  201    215   
  202    216   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for HttpResponseCodeEndpointParamsInterceptor {
  203    217   
    fn name(&self) -> &'static str {
  204    218   
        "HttpResponseCodeEndpointParamsInterceptor"
  205    219   
    }
  206    220   
  207    221   
    fn read_before_execution(
  208    222   
        &self,
  209    223   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  210    224   
            '_,
  211    225   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  212    226   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  213    227   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  214    228   
        >,
  215    229   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  216    230   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  217    231   
        let _input = context
  218    232   
            .input()
  219    233   
            .downcast_ref::<HttpResponseCodeInput>()
  220    234   
            .ok_or("failed to downcast to HttpResponseCodeInput")?;
  221    235   
  222    236   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  223    237   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  224    238   
        })?;
  225    239   
        cfg.interceptor_state()
  226    240   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  227    241   
        ::std::result::Result::Ok(())
  228    242   
    }
  229    243   
}
  230    244   
  231    245   
// The get_* functions below are generated from JMESPath expressions in the
  232    246   
// operationContextParams trait. They target the operation's input shape.
  233    247   
         248  +
/* RustType.kt:516 */
  234    249   
#[allow(unreachable_code, unused_variables)]
         250  +
/* RustType.kt:516 */
  235    251   
#[cfg(test)]
         252  +
/* ProtocolTestGenerator.kt:98 */
  236    253   
mod http_response_code_test {
  237    254   
  238    255   
    /// Binds the http response code to an output structure.
  239    256   
    /// Test ID: RestXmlHttpResponseCode
  240    257   
    #[::tokio::test]
  241    258   
    #[::tracing_test::traced_test]
  242    259   
    async fn rest_xml_http_response_code_response() {
  243    260   
        let expected_output = crate::operation::http_response_code::HttpResponseCodeOutput::builder()
  244    261   
            .set_status(::std::option::Option::Some(201))
  245    262   
            .build();
  246    263   
        let mut http_response = ::aws_smithy_runtime_api::http::Response::try_from(
  247    264   
            ::http::response::Builder::new()
  248    265   
                .header("Content-Type", "application/xml")
  249    266   
                .status(201)
  250    267   
                .body(::aws_smithy_types::body::SdkBody::from(""))
  251    268   
                .unwrap(),
  252    269   
        )
  253    270   
        .unwrap();
  254    271   
        use ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin;
  255    272   
        use ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse;
  256    273   
  257    274   
        let op = crate::operation::http_response_code::HttpResponseCode::new();
  258    275   
        let config = op.config().expect("the operation has config");
  259    276   
        let de = config
  260    277   
            .load::<::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer>()
  261    278   
            .expect("the config must have a deserializer");
  262    279   
  263    280   
        let parsed = de.deserialize_streaming(&mut http_response);
  264    281   
        let parsed = parsed.unwrap_or_else(|| {
  265    282   
            let http_response = http_response.map(|body| {
  266    283   
                ::aws_smithy_types::body::SdkBody::from(::bytes::Bytes::copy_from_slice(&::aws_smithy_protocol_test::decode_body_data(
  267    284   
                    body.bytes().unwrap(),
  268    285   
                    ::aws_smithy_protocol_test::MediaType::from("application/xml"),
  269    286   
                )))
  270    287   
            });
  271    288   
            de.deserialize_nonstreaming(&http_response)
  272    289   
        });
  273    290   
        let parsed = parsed
  274    291   
            .expect("should be successful response")
  275    292   
            .downcast::<crate::operation::http_response_code::HttpResponseCodeOutput>()
  276    293   
            .unwrap();
  277    294   
        ::pretty_assertions::assert_eq!(parsed.status, expected_output.status, "Unexpected value for `status`");
  278    295   
    }
         296  +
         297  +
    /* ProtocolTestGenerator.kt:98 */
  279    298   
}
  280    299   
         300  +
/* OperationErrorGenerator.kt:79 */
  281    301   
/// Error type for the `HttpResponseCodeError` operation.
         302  +
/* RustType.kt:516 */
  282    303   
#[non_exhaustive]
         304  +
/* RustType.kt:516 */
  283    305   
#[derive(::std::fmt::Debug)]
  284         -
pub enum HttpResponseCodeError {
         306  +
pub /* OperationErrorGenerator.kt:81 */ enum HttpResponseCodeError {
         307  +
    /* OperationErrorGenerator.kt:88 */
  285    308   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  286    309   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  287    310   
    variable wildcard pattern and check `.code()`:
  288    311   
     \
  289    312   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  290    313   
     \
  291    314   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-HttpResponseCodeError) for what information is available for the error.")]
  292    315   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         316  +
    /* OperationErrorGenerator.kt:81 */
  293    317   
}
         318  +
/* OperationErrorGenerator.kt:218 */
  294    319   
impl HttpResponseCodeError {
         320  +
    /* OperationErrorGenerator.kt:219 */
  295    321   
    /// Creates the `HttpResponseCodeError::Unhandled` variant from any error type.
  296    322   
    pub fn unhandled(
  297    323   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  298    324   
    ) -> Self {
  299    325   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  300    326   
            source: err.into(),
  301    327   
            meta: ::std::default::Default::default(),
  302    328   
        })
  303    329   
    }
  304    330   
  305    331   
    /// Creates the `HttpResponseCodeError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  306    332   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  307    333   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  308    334   
            source: err.clone().into(),
  309    335   
            meta: err,
  310    336   
        })
  311    337   
    }
  312         -
    ///
         338  +
    /// /* OperationErrorGenerator.kt:236 */
  313    339   
    /// Returns error metadata, which includes the error code, message,
  314    340   
    /// request ID, and potentially additional information.
  315    341   
    ///
         342  +
    /* OperationErrorGenerator.kt:242 */
  316    343   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         344  +
        /* OperationErrorGenerator.kt:243 */
  317    345   
        match self {
  318         -
            Self::Unhandled(e) => &e.meta,
         346  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         347  +
            /* OperationErrorGenerator.kt:243 */
  319    348   
        }
         349  +
        /* OperationErrorGenerator.kt:242 */
  320    350   
    }
         351  +
    /* OperationErrorGenerator.kt:218 */
  321    352   
}
         353  +
/* OperationErrorGenerator.kt:269 */
  322    354   
impl ::std::error::Error for HttpResponseCodeError {
         355  +
    /* OperationErrorGenerator.kt:270 */
  323    356   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         357  +
        /* OperationErrorGenerator.kt:318 */
  324    358   
        match self {
  325         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         359  +
            /* OperationErrorGenerator.kt:326 */
         360  +
            Self::Unhandled(_inner) => {
         361  +
                /* OperationErrorGenerator.kt:279 */
         362  +
                ::std::option::Option::Some(&*_inner.source)
         363  +
                /* OperationErrorGenerator.kt:326 */
         364  +
            } /* OperationErrorGenerator.kt:318 */
  326    365   
        }
         366  +
        /* OperationErrorGenerator.kt:270 */
  327    367   
    }
         368  +
    /* OperationErrorGenerator.kt:269 */
  328    369   
}
         370  +
/* OperationErrorGenerator.kt:133 */
  329    371   
impl ::std::fmt::Display for HttpResponseCodeError {
         372  +
    /* OperationErrorGenerator.kt:134 */
  330    373   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         374  +
        /* OperationErrorGenerator.kt:318 */
  331    375   
        match self {
         376  +
            /* OperationErrorGenerator.kt:326 */
  332    377   
            Self::Unhandled(_inner) => {
         378  +
                /* OperationErrorGenerator.kt:139 */
  333    379   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  334    380   
                    write!(f, "unhandled error ({code})")
  335    381   
                } else {
  336    382   
                    f.write_str("unhandled error")
  337    383   
                }
  338         -
            }
         384  +
                /* OperationErrorGenerator.kt:326 */
         385  +
            } /* OperationErrorGenerator.kt:318 */
  339    386   
        }
         387  +
        /* OperationErrorGenerator.kt:134 */
  340    388   
    }
         389  +
    /* OperationErrorGenerator.kt:133 */
  341    390   
}
         391  +
/* OperationErrorGenerator.kt:182 */
  342    392   
impl ::aws_smithy_types::retry::ProvideErrorKind for HttpResponseCodeError {
         393  +
    /* OperationErrorGenerator.kt:186 */
  343    394   
    fn code(&self) -> ::std::option::Option<&str> {
         395  +
        /* OperationErrorGenerator.kt:187 */
  344    396   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         397  +
        /* OperationErrorGenerator.kt:186 */
  345    398   
    }
         399  +
    /* OperationErrorGenerator.kt:190 */
  346    400   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         401  +
        /* OperationErrorGenerator.kt:197 */
  347    402   
        ::std::option::Option::None
         403  +
        /* OperationErrorGenerator.kt:190 */
  348    404   
    }
         405  +
    /* OperationErrorGenerator.kt:182 */
  349    406   
}
         407  +
/* OperationErrorGenerator.kt:163 */
  350    408   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for HttpResponseCodeError {
         409  +
    /* OperationErrorGenerator.kt:164 */
  351    410   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         411  +
        /* OperationErrorGenerator.kt:318 */
  352    412   
        match self {
  353         -
            Self::Unhandled(_inner) => &_inner.meta,
         413  +
            /* OperationErrorGenerator.kt:326 */
         414  +
            Self::Unhandled(_inner) => {
         415  +
                /* OperationErrorGenerator.kt:168 */
         416  +
                &_inner.meta
         417  +
                /* OperationErrorGenerator.kt:326 */
         418  +
            } /* OperationErrorGenerator.kt:318 */
  354    419   
        }
         420  +
        /* OperationErrorGenerator.kt:164 */
  355    421   
    }
         422  +
    /* OperationErrorGenerator.kt:163 */
  356    423   
}
         424  +
/* OperationErrorGenerator.kt:109 */
  357    425   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for HttpResponseCodeError {
         426  +
    /* OperationErrorGenerator.kt:110 */
  358    427   
    fn create_unhandled_error(
  359    428   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  360    429   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  361    430   
    ) -> Self {
         431  +
        /* OperationErrorGenerator.kt:121 */
  362    432   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  363    433   
            source,
  364    434   
            meta: meta.unwrap_or_default(),
  365    435   
        })
         436  +
        /* OperationErrorGenerator.kt:110 */
  366    437   
    }
         438  +
    /* OperationErrorGenerator.kt:109 */
  367    439   
}
  368    440   
         441  +
/* CodegenDelegator.kt:255 */
  369    442   
pub use crate::operation::http_response_code::_http_response_code_output::HttpResponseCodeOutput;
  370    443   
         444  +
/* CodegenDelegator.kt:255 */
  371    445   
pub use crate::operation::http_response_code::_http_response_code_input::HttpResponseCodeInput;
  372    446   
         447  +
/* RustModule.kt:172 */
  373    448   
mod _http_response_code_input;
  374    449   
         450  +
/* RustModule.kt:172 */
  375    451   
mod _http_response_code_output;
  376    452   
  377         -
/// Builders
         453  +
/// /* CodegenDelegator.kt:51 */Builders
  378    454   
pub mod builders;

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

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

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

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

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

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

tmp-codegen-diff/codegen-client-test/rest_xml/rust-client-codegen/src/operation/http_string_payload.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 `HttpStringPayload`.
           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 HttpStringPayload;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl HttpStringPayload {
    7         -
    /// Creates a new `HttpStringPayload`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `HttpStringPayload`
          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::http_string_payload::HttpStringPayloadInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::http_string_payload::HttpStringPayloadOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::http_string_payload::HttpStringPayloadError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -63,72 +271,288 @@
   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 HttpStringPayload {
   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("HttpStringPayload");
   97    108   
   98    109   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   99    110   
            HttpStringPayloadRequestSerializer,
  100    111   
        ));
  101    112   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
  102    113   
            HttpStringPayloadResponseDeserializer,
  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   
            "HttpStringPayload",
  111    122   
            "Rest Xml Protocol",
  112    123   
        ));
  113    124   
  114    125   
        ::std::option::Option::Some(cfg.freeze())
  115    126   
    }
  116    127   
  117    128   
    fn runtime_components(
  118    129   
        &self,
  119    130   
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
  120    131   
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
  121    132   
        #[allow(unused_mut)]
  122    133   
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("HttpStringPayload")
  123    134   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  124    135   
            .with_interceptor(HttpStringPayloadEndpointParamsInterceptor)
  125    136   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  126    137   
                crate::operation::http_string_payload::HttpStringPayloadError,
  127    138   
            >::new())
  128    139   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  129    140   
                crate::operation::http_string_payload::HttpStringPayloadError,
  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 HttpStringPayloadResponseDeserializer;
  138    150   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for HttpStringPayloadResponseDeserializer {
  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_http_string_payload::de_http_string_payload_http_error(status, headers, body)
  151    163   
        } else {
  152    164   
            crate::protocol_serde::shape_http_string_payload::de_http_string_payload_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 HttpStringPayloadRequestSerializer;
  159    172   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for HttpStringPayloadRequestSerializer {
  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::http_string_payload::HttpStringPayloadInput>()
  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::http_string_payload::HttpStringPayloadInput,
  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, "/StringPayload").expect("formatting should succeed");
  180    193   
                ::std::result::Result::Ok(())
  181    194   
            }
  182    195   
            #[allow(clippy::unnecessary_wraps)]
  183    196   
            fn update_http_builder(
  184    197   
                input: &crate::operation::http_string_payload::HttpStringPayloadInput,
  185    198   
                builder: ::http::request::Builder,
  186    199   
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  187    200   
                let mut uri = ::std::string::String::new();
  188    201   
                uri_base(input, &mut uri)?;
  189    202   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  190    203   
            }
  191    204   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  192    205   
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "text/plain");
  193    206   
            builder
  194    207   
        };
  195    208   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_http_string_payload_input::ser_payload_http_payload(
  196    209   
            input.payload,
  197    210   
        )?);
  198    211   
        if let Some(content_length) = body.content_length() {
  199    212   
            let content_length = content_length.to_string();
  200    213   
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
  201    214   
        }
  202    215   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  203    216   
    }
  204    217   
}
         218  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  205    219   
#[derive(Debug)]
  206    220   
struct HttpStringPayloadEndpointParamsInterceptor;
  207    221   
  208    222   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for HttpStringPayloadEndpointParamsInterceptor {
  209    223   
    fn name(&self) -> &'static str {
  210    224   
        "HttpStringPayloadEndpointParamsInterceptor"
  211    225   
    }
  212    226   
  213    227   
    fn read_before_execution(
  214    228   
        &self,
  215    229   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  216    230   
            '_,
  217    231   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  218    232   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  219    233   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  220    234   
        >,
  221    235   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  222    236   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  223    237   
        let _input = context
  224    238   
            .input()
  225    239   
            .downcast_ref::<HttpStringPayloadInput>()
  226    240   
            .ok_or("failed to downcast to HttpStringPayloadInput")?;
  227    241   
  228    242   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  229    243   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  230    244   
        })?;
  231    245   
        cfg.interceptor_state()
  232    246   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  233    247   
        ::std::result::Result::Ok(())
  234    248   
    }
  235    249   
}
  236    250   
  237    251   
// The get_* functions below are generated from JMESPath expressions in the
  238    252   
// operationContextParams trait. They target the operation's input shape.
  239    253   
         254  +
/* RustType.kt:516 */
  240    255   
#[allow(unreachable_code, unused_variables)]
         256  +
/* RustType.kt:516 */
  241    257   
#[cfg(test)]
         258  +
/* ProtocolTestGenerator.kt:98 */
  242    259   
mod http_string_payload_test {
  243    260   
  244    261   
    /// Test ID: RestXmlStringPayloadRequest
  245    262   
    #[::tokio::test]
  246    263   
    #[::tracing_test::traced_test]
  247    264   
    async fn rest_xml_string_payload_request_request() {
  248    265   
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  249    266   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  250    267   
  251    268   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
@@ -281,298 +410,486 @@
  301    318   
                )))
  302    319   
            });
  303    320   
            de.deserialize_nonstreaming(&http_response)
  304    321   
        });
  305    322   
        let parsed = parsed
  306    323   
            .expect("should be successful response")
  307    324   
            .downcast::<crate::operation::http_string_payload::HttpStringPayloadOutput>()
  308    325   
            .unwrap();
  309    326   
        ::pretty_assertions::assert_eq!(parsed.payload, expected_output.payload, "Unexpected value for `payload`");
  310    327   
    }
         328  +
         329  +
    /* ProtocolTestGenerator.kt:98 */
  311    330   
}
  312    331   
         332  +
/* OperationErrorGenerator.kt:79 */
  313    333   
/// Error type for the `HttpStringPayloadError` operation.
         334  +
/* RustType.kt:516 */
  314    335   
#[non_exhaustive]
         336  +
/* RustType.kt:516 */
  315    337   
#[derive(::std::fmt::Debug)]
  316         -
pub enum HttpStringPayloadError {
         338  +
pub /* OperationErrorGenerator.kt:81 */ enum HttpStringPayloadError {
         339  +
    /* OperationErrorGenerator.kt:88 */
  317    340   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  318    341   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  319    342   
    variable wildcard pattern and check `.code()`:
  320    343   
     \
  321    344   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  322    345   
     \
  323    346   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-HttpStringPayloadError) for what information is available for the error.")]
  324    347   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         348  +
    /* OperationErrorGenerator.kt:81 */
  325    349   
}
         350  +
/* OperationErrorGenerator.kt:218 */
  326    351   
impl HttpStringPayloadError {
         352  +
    /* OperationErrorGenerator.kt:219 */
  327    353   
    /// Creates the `HttpStringPayloadError::Unhandled` variant from any error type.
  328    354   
    pub fn unhandled(
  329    355   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  330    356   
    ) -> Self {
  331    357   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  332    358   
            source: err.into(),
  333    359   
            meta: ::std::default::Default::default(),
  334    360   
        })
  335    361   
    }
  336    362   
  337    363   
    /// Creates the `HttpStringPayloadError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  338    364   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  339    365   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  340    366   
            source: err.clone().into(),
  341    367   
            meta: err,
  342    368   
        })
  343    369   
    }
  344         -
    ///
         370  +
    /// /* OperationErrorGenerator.kt:236 */
  345    371   
    /// Returns error metadata, which includes the error code, message,
  346    372   
    /// request ID, and potentially additional information.
  347    373   
    ///
         374  +
    /* OperationErrorGenerator.kt:242 */
  348    375   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         376  +
        /* OperationErrorGenerator.kt:243 */
  349    377   
        match self {
  350         -
            Self::Unhandled(e) => &e.meta,
         378  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         379  +
            /* OperationErrorGenerator.kt:243 */
  351    380   
        }
         381  +
        /* OperationErrorGenerator.kt:242 */
  352    382   
    }
         383  +
    /* OperationErrorGenerator.kt:218 */
  353    384   
}
         385  +
/* OperationErrorGenerator.kt:269 */
  354    386   
impl ::std::error::Error for HttpStringPayloadError {
         387  +
    /* OperationErrorGenerator.kt:270 */
  355    388   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         389  +
        /* OperationErrorGenerator.kt:318 */
  356    390   
        match self {
  357         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         391  +
            /* OperationErrorGenerator.kt:326 */
         392  +
            Self::Unhandled(_inner) => {
         393  +
                /* OperationErrorGenerator.kt:279 */
         394  +
                ::std::option::Option::Some(&*_inner.source)
         395  +
                /* OperationErrorGenerator.kt:326 */
         396  +
            } /* OperationErrorGenerator.kt:318 */
  358    397   
        }
         398  +
        /* OperationErrorGenerator.kt:270 */
  359    399   
    }
         400  +
    /* OperationErrorGenerator.kt:269 */
  360    401   
}
         402  +
/* OperationErrorGenerator.kt:133 */
  361    403   
impl ::std::fmt::Display for HttpStringPayloadError {
         404  +
    /* OperationErrorGenerator.kt:134 */
  362    405   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         406  +
        /* OperationErrorGenerator.kt:318 */
  363    407   
        match self {
         408  +
            /* OperationErrorGenerator.kt:326 */
  364    409   
            Self::Unhandled(_inner) => {
         410  +
                /* OperationErrorGenerator.kt:139 */
  365    411   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  366    412   
                    write!(f, "unhandled error ({code})")
  367    413   
                } else {
  368    414   
                    f.write_str("unhandled error")
  369    415   
                }
  370         -
            }
         416  +
                /* OperationErrorGenerator.kt:326 */
         417  +
            } /* OperationErrorGenerator.kt:318 */
  371    418   
        }
         419  +
        /* OperationErrorGenerator.kt:134 */
  372    420   
    }
         421  +
    /* OperationErrorGenerator.kt:133 */
  373    422   
}
         423  +
/* OperationErrorGenerator.kt:182 */
  374    424   
impl ::aws_smithy_types::retry::ProvideErrorKind for HttpStringPayloadError {
         425  +
    /* OperationErrorGenerator.kt:186 */
  375    426   
    fn code(&self) -> ::std::option::Option<&str> {
         427  +
        /* OperationErrorGenerator.kt:187 */
  376    428   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         429  +
        /* OperationErrorGenerator.kt:186 */
  377    430   
    }
         431  +
    /* OperationErrorGenerator.kt:190 */
  378    432   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         433  +
        /* OperationErrorGenerator.kt:197 */
  379    434   
        ::std::option::Option::None
         435  +
        /* OperationErrorGenerator.kt:190 */
  380    436   
    }
         437  +
    /* OperationErrorGenerator.kt:182 */
  381    438   
}
         439  +
/* OperationErrorGenerator.kt:163 */
  382    440   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for HttpStringPayloadError {
         441  +
    /* OperationErrorGenerator.kt:164 */
  383    442   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         443  +
        /* OperationErrorGenerator.kt:318 */
  384    444   
        match self {
  385         -
            Self::Unhandled(_inner) => &_inner.meta,
         445  +
            /* OperationErrorGenerator.kt:326 */
         446  +
            Self::Unhandled(_inner) => {
         447  +
                /* OperationErrorGenerator.kt:168 */
         448  +
                &_inner.meta
         449  +
                /* OperationErrorGenerator.kt:326 */
         450  +
            } /* OperationErrorGenerator.kt:318 */
  386    451   
        }
         452  +
        /* OperationErrorGenerator.kt:164 */
  387    453   
    }
         454  +
    /* OperationErrorGenerator.kt:163 */
  388    455   
}
         456  +
/* OperationErrorGenerator.kt:109 */
  389    457   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for HttpStringPayloadError {
         458  +
    /* OperationErrorGenerator.kt:110 */
  390    459   
    fn create_unhandled_error(
  391    460   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  392    461   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  393    462   
    ) -> Self {
         463  +
        /* OperationErrorGenerator.kt:121 */
  394    464   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  395    465   
            source,
  396    466   
            meta: meta.unwrap_or_default(),
  397    467   
        })
         468  +
        /* OperationErrorGenerator.kt:110 */
  398    469   
    }
         470  +
    /* OperationErrorGenerator.kt:109 */
  399    471   
}
  400    472   
         473  +
/* CodegenDelegator.kt:255 */
  401    474   
pub use crate::operation::http_string_payload::_http_string_payload_output::HttpStringPayloadOutput;
  402    475   
         476  +
/* CodegenDelegator.kt:255 */
  403    477   
pub use crate::operation::http_string_payload::_http_string_payload_input::HttpStringPayloadInput;
  404    478   
         479  +
/* RustModule.kt:172 */
  405    480   
mod _http_string_payload_input;
  406    481   
         482  +
/* RustModule.kt:172 */
  407    483   
mod _http_string_payload_output;
  408    484   
  409         -
/// Builders
         485  +
/// /* CodegenDelegator.kt:51 */Builders
  410    486   
pub mod builders;

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

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

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

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

tmp-codegen-diff/codegen-client-test/rest_xml/rust-client-codegen/src/operation/http_string_payload/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::http_string_payload::_http_string_payload_output::HttpStringPayloadOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::http_string_payload::_http_string_payload_input::HttpStringPayloadInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::http_string_payload::builders::HttpStringPayloadInputBuilder {
    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::http_string_payload::HttpStringPayloadOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::http_string_payload::HttpStringPayloadError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.http_string_payload();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `HttpStringPayload`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `HttpStringPayload`.
   24     27   
///
          28  +
/* RustType.kt:516 */
   25     29   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          30  +
/* FluentBuilderGenerator.kt:270 */
   26     31   
pub struct HttpStringPayloadFluentBuilder {
   27     32   
    handle: ::std::sync::Arc<crate::client::Handle>,
   28     33   
    inner: crate::operation::http_string_payload::builders::HttpStringPayloadInputBuilder,
   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::http_string_payload::HttpStringPayloadOutput,
   34     40   
        crate::operation::http_string_payload::HttpStringPayloadError,
   35     41   
    > for HttpStringPayloadFluentBuilder
   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::http_string_payload::HttpStringPayloadOutput,
   43     49   
            crate::operation::http_string_payload::HttpStringPayloadError,
   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 HttpStringPayloadFluentBuilder {
          57  +
    /* FluentBuilderGenerator.kt:288 */
   50     58   
    /// Creates a new `HttpStringPayloadFluentBuilder`.
   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 HttpStringPayload as a reference.
   59     68   
    pub fn as_input(&self) -> &crate::operation::http_string_payload::builders::HttpStringPayloadInputBuilder {
   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::http_string_payload::HttpStringPayloadOutput,
   74     84   
        ::aws_smithy_runtime_api::client::result::SdkError<
   75     85   
            crate::operation::http_string_payload::HttpStringPayloadError,
   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::http_string_payload::HttpStringPayload::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::http_string_payload::HttpStringPayload::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::http_string_payload::HttpStringPayloadOutput,
   96    106   
        crate::operation::http_string_payload::HttpStringPayloadError,
   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 payload(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  112    125   
        self.inner = self.inner.payload(input.into());
  113    126   
        self
  114    127   
    }
         128  +
    /* FluentBuilderGenerator.kt:498 */
  115    129   
    #[allow(missing_docs)] // documentation missing in model
         130  +
                           /* FluentBuilderGenerator.kt:500 */
  116    131   
    pub fn set_payload(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  117    132   
        self.inner = self.inner.set_payload(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_payload(&self) -> &::std::option::Option<::std::string::String> {
  122    139   
        self.inner.get_payload()
  123    140   
    }
         141  +
    /* FluentBuilderGenerator.kt:282 */
  124    142   
}

tmp-codegen-diff/codegen-client-test/rest_xml/rust-client-codegen/src/operation/ignore_query_params_in_response.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 `IgnoreQueryParamsInResponse`.
           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 IgnoreQueryParamsInResponse;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl IgnoreQueryParamsInResponse {
    7         -
    /// Creates a new `IgnoreQueryParamsInResponse`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `IgnoreQueryParamsInResponse`
          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::ignore_query_params_in_response::IgnoreQueryParamsInResponseInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::ignore_query_params_in_response::IgnoreQueryParamsInResponseOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::ignore_query_params_in_response::IgnoreQueryParamsInResponseError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -63,72 +380,456 @@
   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 IgnoreQueryParamsInResponse {
   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("IgnoreQueryParamsInResponse");
   97    108   
   98    109   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   99    110   
            IgnoreQueryParamsInResponseRequestSerializer,
  100    111   
        ));
  101    112   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
  102    113   
            IgnoreQueryParamsInResponseResponseDeserializer,
  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   
            "IgnoreQueryParamsInResponse",
  111    122   
            "Rest Xml Protocol",
  112    123   
        ));
  113    124   
  114    125   
        ::std::option::Option::Some(cfg.freeze())
  115    126   
    }
  116    127   
  117    128   
    fn runtime_components(
  118    129   
        &self,
  119    130   
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
  120    131   
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
  121    132   
        #[allow(unused_mut)]
  122    133   
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("IgnoreQueryParamsInResponse")
  123    134   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  124    135   
            .with_interceptor(IgnoreQueryParamsInResponseEndpointParamsInterceptor)
  125    136   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  126    137   
                crate::operation::ignore_query_params_in_response::IgnoreQueryParamsInResponseError,
  127    138   
            >::new())
  128    139   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  129    140   
                crate::operation::ignore_query_params_in_response::IgnoreQueryParamsInResponseError,
  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 IgnoreQueryParamsInResponseResponseDeserializer;
  138    150   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for IgnoreQueryParamsInResponseResponseDeserializer {
  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_ignore_query_params_in_response::de_ignore_query_params_in_response_http_error(status, headers, body)
  151    163   
        } else {
  152    164   
            crate::protocol_serde::shape_ignore_query_params_in_response::de_ignore_query_params_in_response_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 IgnoreQueryParamsInResponseRequestSerializer;
  159    172   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for IgnoreQueryParamsInResponseRequestSerializer {
  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::ignore_query_params_in_response::IgnoreQueryParamsInResponseInput>()
  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::ignore_query_params_in_response::IgnoreQueryParamsInResponseInput,
  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, "/IgnoreQueryParamsInResponse").expect("formatting should succeed");
  180    193   
                ::std::result::Result::Ok(())
  181    194   
            }
  182    195   
            #[allow(clippy::unnecessary_wraps)]
  183    196   
            fn update_http_builder(
  184    197   
                input: &crate::operation::ignore_query_params_in_response::IgnoreQueryParamsInResponseInput,
  185    198   
                builder: ::http::request::Builder,
  186    199   
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  187    200   
                let mut uri = ::std::string::String::new();
  188    201   
                uri_base(input, &mut uri)?;
  189    202   
                ::std::result::Result::Ok(builder.method("GET").uri(uri))
  190    203   
            }
  191    204   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  192    205   
            builder
  193    206   
        };
  194    207   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  195    208   
  196    209   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  197    210   
    }
  198    211   
}
         212  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  199    213   
#[derive(Debug)]
  200    214   
struct IgnoreQueryParamsInResponseEndpointParamsInterceptor;
  201    215   
  202    216   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for IgnoreQueryParamsInResponseEndpointParamsInterceptor {
  203    217   
    fn name(&self) -> &'static str {
  204    218   
        "IgnoreQueryParamsInResponseEndpointParamsInterceptor"
  205    219   
    }
  206    220   
  207    221   
    fn read_before_execution(
  208    222   
        &self,
  209    223   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  210    224   
            '_,
  211    225   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  212    226   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  213    227   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  214    228   
        >,
  215    229   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  216    230   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  217    231   
        let _input = context
  218    232   
            .input()
  219    233   
            .downcast_ref::<IgnoreQueryParamsInResponseInput>()
  220    234   
            .ok_or("failed to downcast to IgnoreQueryParamsInResponseInput")?;
  221    235   
  222    236   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  223    237   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  224    238   
        })?;
  225    239   
        cfg.interceptor_state()
  226    240   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  227    241   
        ::std::result::Result::Ok(())
  228    242   
    }
  229    243   
}
  230    244   
  231    245   
// The get_* functions below are generated from JMESPath expressions in the
  232    246   
// operationContextParams trait. They target the operation's input shape.
  233    247   
         248  +
/* RustType.kt:516 */
  234    249   
#[allow(unreachable_code, unused_variables)]
         250  +
/* RustType.kt:516 */
  235    251   
#[cfg(test)]
         252  +
/* ProtocolTestGenerator.kt:98 */
  236    253   
mod ignore_query_params_in_response_test {
  237    254   
  238    255   
    /// Query parameters must be ignored when serializing the output of an operation
  239    256   
    /// Test ID: IgnoreQueryParamsInResponse
  240    257   
    #[::tokio::test]
  241    258   
    #[::tracing_test::traced_test]
  242    259   
    async fn ignore_query_params_in_response_response() {
  243    260   
        let expected_output = crate::operation::ignore_query_params_in_response::IgnoreQueryParamsInResponseOutput::builder()
  244    261   
            .set_baz(::std::option::Option::Some("bam".to_owned()))
  245    262   
            .build();
  246    263   
        let mut http_response = ::aws_smithy_runtime_api::http::Response::try_from(
  247    264   
            ::http::response::Builder::new()
  248    265   
                .header("Content-Type", "application/xml")
  249    266   
                .status(200)
  250    267   
                .body(::aws_smithy_types::body::SdkBody::from(
  251    268   
                    "<IgnoreQueryParamsInResponseOutput><baz>bam</baz></IgnoreQueryParamsInResponseOutput>",
  252    269   
                ))
  253    270   
                .unwrap(),
  254    271   
        )
  255    272   
        .unwrap();
  256    273   
        use ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin;
  257    274   
        use ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse;
  258    275   
  259    276   
        let op = crate::operation::ignore_query_params_in_response::IgnoreQueryParamsInResponse::new();
  260    277   
        let config = op.config().expect("the operation has config");
  261    278   
        let de = config
  262    279   
            .load::<::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer>()
  263    280   
            .expect("the config must have a deserializer");
  264    281   
  265    282   
        let parsed = de.deserialize_streaming(&mut http_response);
  266    283   
        let parsed = parsed.unwrap_or_else(|| {
  267    284   
            let http_response = http_response.map(|body| {
  268    285   
                ::aws_smithy_types::body::SdkBody::from(::bytes::Bytes::copy_from_slice(&::aws_smithy_protocol_test::decode_body_data(
  269    286   
                    body.bytes().unwrap(),
  270    287   
                    ::aws_smithy_protocol_test::MediaType::from("application/xml"),
  271    288   
                )))
  272    289   
            });
  273    290   
            de.deserialize_nonstreaming(&http_response)
  274    291   
        });
  275    292   
        let parsed = parsed
  276    293   
            .expect("should be successful response")
  277    294   
            .downcast::<crate::operation::ignore_query_params_in_response::IgnoreQueryParamsInResponseOutput>()
  278    295   
            .unwrap();
  279    296   
        ::pretty_assertions::assert_eq!(parsed.baz, expected_output.baz, "Unexpected value for `baz`");
  280    297   
    }
         298  +
         299  +
    /* ProtocolTestGenerator.kt:98 */
  281    300   
}
  282    301   
         302  +
/* OperationErrorGenerator.kt:79 */
  283    303   
/// Error type for the `IgnoreQueryParamsInResponseError` operation.
         304  +
/* RustType.kt:516 */
  284    305   
#[non_exhaustive]
         306  +
/* RustType.kt:516 */
  285    307   
#[derive(::std::fmt::Debug)]
  286         -
pub enum IgnoreQueryParamsInResponseError {
         308  +
pub /* OperationErrorGenerator.kt:81 */ enum IgnoreQueryParamsInResponseError {
         309  +
    /* OperationErrorGenerator.kt:88 */
  287    310   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  288    311   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  289    312   
    variable wildcard pattern and check `.code()`:
  290    313   
     \
  291    314   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  292    315   
     \
  293    316   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-IgnoreQueryParamsInResponseError) for what information is available for the error.")]
  294    317   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         318  +
    /* OperationErrorGenerator.kt:81 */
  295    319   
}
         320  +
/* OperationErrorGenerator.kt:218 */
  296    321   
impl IgnoreQueryParamsInResponseError {
         322  +
    /* OperationErrorGenerator.kt:219 */
  297    323   
    /// Creates the `IgnoreQueryParamsInResponseError::Unhandled` variant from any error type.
  298    324   
    pub fn unhandled(
  299    325   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  300    326   
    ) -> Self {
  301    327   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  302    328   
            source: err.into(),
  303    329   
            meta: ::std::default::Default::default(),
  304    330   
        })
  305    331   
    }
  306    332   
  307    333   
    /// Creates the `IgnoreQueryParamsInResponseError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  308    334   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  309    335   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  310    336   
            source: err.clone().into(),
  311    337   
            meta: err,
  312    338   
        })
  313    339   
    }
  314         -
    ///
         340  +
    /// /* OperationErrorGenerator.kt:236 */
  315    341   
    /// Returns error metadata, which includes the error code, message,
  316    342   
    /// request ID, and potentially additional information.
  317    343   
    ///
         344  +
    /* OperationErrorGenerator.kt:242 */
  318    345   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         346  +
        /* OperationErrorGenerator.kt:243 */
  319    347   
        match self {
  320         -
            Self::Unhandled(e) => &e.meta,
         348  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         349  +
            /* OperationErrorGenerator.kt:243 */
  321    350   
        }
         351  +
        /* OperationErrorGenerator.kt:242 */
  322    352   
    }
         353  +
    /* OperationErrorGenerator.kt:218 */
  323    354   
}
         355  +
/* OperationErrorGenerator.kt:269 */
  324    356   
impl ::std::error::Error for IgnoreQueryParamsInResponseError {
         357  +
    /* OperationErrorGenerator.kt:270 */
  325    358   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         359  +
        /* OperationErrorGenerator.kt:318 */
  326    360   
        match self {
  327         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         361  +
            /* OperationErrorGenerator.kt:326 */
         362  +
            Self::Unhandled(_inner) => {
         363  +
                /* OperationErrorGenerator.kt:279 */
         364  +
                ::std::option::Option::Some(&*_inner.source)
         365  +
                /* OperationErrorGenerator.kt:326 */
         366  +
            } /* OperationErrorGenerator.kt:318 */
  328    367   
        }
         368  +
        /* OperationErrorGenerator.kt:270 */
  329    369   
    }
         370  +
    /* OperationErrorGenerator.kt:269 */
  330    371   
}
         372  +
/* OperationErrorGenerator.kt:133 */
  331    373   
impl ::std::fmt::Display for IgnoreQueryParamsInResponseError {
         374  +
    /* OperationErrorGenerator.kt:134 */
  332    375   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         376  +
        /* OperationErrorGenerator.kt:318 */
  333    377   
        match self {
         378  +
            /* OperationErrorGenerator.kt:326 */
  334    379   
            Self::Unhandled(_inner) => {
         380  +
                /* OperationErrorGenerator.kt:139 */
  335    381   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  336    382   
                    write!(f, "unhandled error ({code})")
  337    383   
                } else {
  338    384   
                    f.write_str("unhandled error")
  339    385   
                }
  340         -
            }
         386  +
                /* OperationErrorGenerator.kt:326 */
         387  +
            } /* OperationErrorGenerator.kt:318 */
  341    388   
        }
         389  +
        /* OperationErrorGenerator.kt:134 */
  342    390   
    }
         391  +
    /* OperationErrorGenerator.kt:133 */
  343    392   
}
         393  +
/* OperationErrorGenerator.kt:182 */
  344    394   
impl ::aws_smithy_types::retry::ProvideErrorKind for IgnoreQueryParamsInResponseError {
         395  +
    /* OperationErrorGenerator.kt:186 */
  345    396   
    fn code(&self) -> ::std::option::Option<&str> {
         397  +
        /* OperationErrorGenerator.kt:187 */
  346    398   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         399  +
        /* OperationErrorGenerator.kt:186 */
  347    400   
    }
         401  +
    /* OperationErrorGenerator.kt:190 */
  348    402   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         403  +
        /* OperationErrorGenerator.kt:197 */
  349    404   
        ::std::option::Option::None
         405  +
        /* OperationErrorGenerator.kt:190 */
  350    406   
    }
         407  +
    /* OperationErrorGenerator.kt:182 */
  351    408   
}
         409  +
/* OperationErrorGenerator.kt:163 */
  352    410   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for IgnoreQueryParamsInResponseError {
         411  +
    /* OperationErrorGenerator.kt:164 */
  353    412   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         413  +
        /* OperationErrorGenerator.kt:318 */
  354    414   
        match self {
  355         -
            Self::Unhandled(_inner) => &_inner.meta,
         415  +
            /* OperationErrorGenerator.kt:326 */
         416  +
            Self::Unhandled(_inner) => {
         417  +
                /* OperationErrorGenerator.kt:168 */
         418  +
                &_inner.meta
         419  +
                /* OperationErrorGenerator.kt:326 */
         420  +
            } /* OperationErrorGenerator.kt:318 */
  356    421   
        }
         422  +
        /* OperationErrorGenerator.kt:164 */
  357    423   
    }
         424  +
    /* OperationErrorGenerator.kt:163 */
  358    425   
}
         426  +
/* OperationErrorGenerator.kt:109 */
  359    427   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for IgnoreQueryParamsInResponseError {
         428  +
    /* OperationErrorGenerator.kt:110 */
  360    429   
    fn create_unhandled_error(
  361    430   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  362    431   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  363    432   
    ) -> Self {
         433  +
        /* OperationErrorGenerator.kt:121 */
  364    434   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  365    435   
            source,
  366    436   
            meta: meta.unwrap_or_default(),
  367    437   
        })
         438  +
        /* OperationErrorGenerator.kt:110 */
  368    439   
    }
         440  +
    /* OperationErrorGenerator.kt:109 */
  369    441   
}
  370    442   
         443  +
/* CodegenDelegator.kt:255 */
  371    444   
pub use crate::operation::ignore_query_params_in_response::_ignore_query_params_in_response_output::IgnoreQueryParamsInResponseOutput;
  372    445   
         446  +
/* CodegenDelegator.kt:255 */
  373    447   
pub use crate::operation::ignore_query_params_in_response::_ignore_query_params_in_response_input::IgnoreQueryParamsInResponseInput;
  374    448   
         449  +
/* RustModule.kt:172 */
  375    450   
mod _ignore_query_params_in_response_input;
  376    451   
         452  +
/* RustModule.kt:172 */
  377    453   
mod _ignore_query_params_in_response_output;
  378    454   
  379         -
/// Builders
         455  +
/// /* CodegenDelegator.kt:51 */Builders
  380    456   
pub mod builders;

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

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

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

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

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

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

tmp-codegen-diff/codegen-client-test/rest_xml/rust-client-codegen/src/operation/input_and_output_with_headers.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 `InputAndOutputWithHeaders`.
           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 InputAndOutputWithHeaders;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl InputAndOutputWithHeaders {
    7         -
    /// Creates a new `InputAndOutputWithHeaders`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `InputAndOutputWithHeaders`
          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::input_and_output_with_headers::InputAndOutputWithHeadersInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::input_and_output_with_headers::InputAndOutputWithHeadersOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::input_and_output_with_headers::InputAndOutputWithHeadersError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -63,72 +266,283 @@
   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 InputAndOutputWithHeaders {
   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("InputAndOutputWithHeaders");
   97    108   
   98    109   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   99    110   
            InputAndOutputWithHeadersRequestSerializer,
  100    111   
        ));
  101    112   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
  102    113   
            InputAndOutputWithHeadersResponseDeserializer,
  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   
            "InputAndOutputWithHeaders",
  111    122   
            "Rest Xml Protocol",
  112    123   
        ));
  113    124   
  114    125   
        ::std::option::Option::Some(cfg.freeze())
  115    126   
    }
  116    127   
  117    128   
    fn runtime_components(
  118    129   
        &self,
  119    130   
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
  120    131   
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
  121    132   
        #[allow(unused_mut)]
  122    133   
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("InputAndOutputWithHeaders")
  123    134   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  124    135   
            .with_interceptor(InputAndOutputWithHeadersEndpointParamsInterceptor)
  125    136   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  126    137   
                crate::operation::input_and_output_with_headers::InputAndOutputWithHeadersError,
  127    138   
            >::new())
  128    139   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  129    140   
                crate::operation::input_and_output_with_headers::InputAndOutputWithHeadersError,
  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 InputAndOutputWithHeadersResponseDeserializer;
  138    150   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for InputAndOutputWithHeadersResponseDeserializer {
  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_input_and_output_with_headers::de_input_and_output_with_headers_http_error(status, headers, body)
  151    163   
        } else {
  152    164   
            crate::protocol_serde::shape_input_and_output_with_headers::de_input_and_output_with_headers_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 InputAndOutputWithHeadersRequestSerializer;
  159    172   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for InputAndOutputWithHeadersRequestSerializer {
  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::input_and_output_with_headers::InputAndOutputWithHeadersInput>()
  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::input_and_output_with_headers::InputAndOutputWithHeadersInput,
  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, "/InputAndOutputWithHeaders").expect("formatting should succeed");
  180    193   
                ::std::result::Result::Ok(())
  181    194   
            }
  182    195   
            #[allow(clippy::unnecessary_wraps)]
  183    196   
            fn update_http_builder(
  184    197   
                input: &crate::operation::input_and_output_with_headers::InputAndOutputWithHeadersInput,
  185    198   
                builder: ::http::request::Builder,
  186    199   
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  187    200   
                let mut uri = ::std::string::String::new();
  188    201   
                uri_base(input, &mut uri)?;
  189    202   
                let builder = crate::protocol_serde::shape_input_and_output_with_headers::ser_input_and_output_with_headers_headers(input, builder)?;
  190    203   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  191    204   
            }
  192    205   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  193    206   
            builder
  194    207   
        };
  195    208   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  196    209   
  197    210   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  198    211   
    }
  199    212   
}
         213  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  200    214   
#[derive(Debug)]
  201    215   
struct InputAndOutputWithHeadersEndpointParamsInterceptor;
  202    216   
  203    217   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for InputAndOutputWithHeadersEndpointParamsInterceptor {
  204    218   
    fn name(&self) -> &'static str {
  205    219   
        "InputAndOutputWithHeadersEndpointParamsInterceptor"
  206    220   
    }
  207    221   
  208    222   
    fn read_before_execution(
  209    223   
        &self,
  210    224   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  211    225   
            '_,
  212    226   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  213    227   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  214    228   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  215    229   
        >,
  216    230   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  217    231   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  218    232   
        let _input = context
  219    233   
            .input()
  220    234   
            .downcast_ref::<InputAndOutputWithHeadersInput>()
  221    235   
            .ok_or("failed to downcast to InputAndOutputWithHeadersInput")?;
  222    236   
  223    237   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  224    238   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  225    239   
        })?;
  226    240   
        cfg.interceptor_state()
  227    241   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  228    242   
        ::std::result::Result::Ok(())
  229    243   
    }
  230    244   
}
  231    245   
  232    246   
// The get_* functions below are generated from JMESPath expressions in the
  233    247   
// operationContextParams trait. They target the operation's input shape.
  234    248   
         249  +
/* RustType.kt:516 */
  235    250   
#[allow(unreachable_code, unused_variables)]
         251  +
/* RustType.kt:516 */
  236    252   
#[cfg(test)]
         253  +
/* ProtocolTestGenerator.kt:98 */
  237    254   
mod input_and_output_with_headers_test {
  238    255   
    use ::aws_smithy_protocol_test::FloatEquals;
  239    256   
  240    257   
    /// Tests requests with string header bindings
  241    258   
    /// Test ID: InputAndOutputWithStringHeaders
  242    259   
    #[::tokio::test]
  243    260   
    #[::tracing_test::traced_test]
  244    261   
    async fn input_and_output_with_string_headers_request() {
  245    262   
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  246    263   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
@@ -1365,1382 +1494,1570 @@
 1385   1402   
            expected_output.header_timestamp_list,
 1386   1403   
            "Unexpected value for `header_timestamp_list`"
 1387   1404   
        );
 1388   1405   
        ::pretty_assertions::assert_eq!(parsed.header_enum, expected_output.header_enum, "Unexpected value for `header_enum`");
 1389   1406   
        ::pretty_assertions::assert_eq!(
 1390   1407   
            parsed.header_enum_list,
 1391   1408   
            expected_output.header_enum_list,
 1392   1409   
            "Unexpected value for `header_enum_list`"
 1393   1410   
        );
 1394   1411   
    }
        1412  +
        1413  +
    /* ProtocolTestGenerator.kt:98 */
 1395   1414   
}
 1396   1415   
        1416  +
/* OperationErrorGenerator.kt:79 */
 1397   1417   
/// Error type for the `InputAndOutputWithHeadersError` operation.
        1418  +
/* RustType.kt:516 */
 1398   1419   
#[non_exhaustive]
        1420  +
/* RustType.kt:516 */
 1399   1421   
#[derive(::std::fmt::Debug)]
 1400         -
pub enum InputAndOutputWithHeadersError {
        1422  +
pub /* OperationErrorGenerator.kt:81 */ enum InputAndOutputWithHeadersError {
        1423  +
    /* OperationErrorGenerator.kt:88 */
 1401   1424   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
 1402   1425   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
 1403   1426   
    variable wildcard pattern and check `.code()`:
 1404   1427   
     \
 1405   1428   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
 1406   1429   
     \
 1407   1430   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-InputAndOutputWithHeadersError) for what information is available for the error.")]
 1408   1431   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
        1432  +
    /* OperationErrorGenerator.kt:81 */
 1409   1433   
}
        1434  +
/* OperationErrorGenerator.kt:218 */
 1410   1435   
impl InputAndOutputWithHeadersError {
        1436  +
    /* OperationErrorGenerator.kt:219 */
 1411   1437   
    /// Creates the `InputAndOutputWithHeadersError::Unhandled` variant from any error type.
 1412   1438   
    pub fn unhandled(
 1413   1439   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
 1414   1440   
    ) -> Self {
 1415   1441   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
 1416   1442   
            source: err.into(),
 1417   1443   
            meta: ::std::default::Default::default(),
 1418   1444   
        })
 1419   1445   
    }
 1420   1446   
 1421   1447   
    /// Creates the `InputAndOutputWithHeadersError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
 1422   1448   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
 1423   1449   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
 1424   1450   
            source: err.clone().into(),
 1425   1451   
            meta: err,
 1426   1452   
        })
 1427   1453   
    }
 1428         -
    ///
        1454  +
    /// /* OperationErrorGenerator.kt:236 */
 1429   1455   
    /// Returns error metadata, which includes the error code, message,
 1430   1456   
    /// request ID, and potentially additional information.
 1431   1457   
    ///
        1458  +
    /* OperationErrorGenerator.kt:242 */
 1432   1459   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
        1460  +
        /* OperationErrorGenerator.kt:243 */
 1433   1461   
        match self {
 1434         -
            Self::Unhandled(e) => &e.meta,
        1462  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
        1463  +
            /* OperationErrorGenerator.kt:243 */
 1435   1464   
        }
        1465  +
        /* OperationErrorGenerator.kt:242 */
 1436   1466   
    }
        1467  +
    /* OperationErrorGenerator.kt:218 */
 1437   1468   
}
        1469  +
/* OperationErrorGenerator.kt:269 */
 1438   1470   
impl ::std::error::Error for InputAndOutputWithHeadersError {
        1471  +
    /* OperationErrorGenerator.kt:270 */
 1439   1472   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
        1473  +
        /* OperationErrorGenerator.kt:318 */
 1440   1474   
        match self {
 1441         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
        1475  +
            /* OperationErrorGenerator.kt:326 */
        1476  +
            Self::Unhandled(_inner) => {
        1477  +
                /* OperationErrorGenerator.kt:279 */
        1478  +
                ::std::option::Option::Some(&*_inner.source)
        1479  +
                /* OperationErrorGenerator.kt:326 */
        1480  +
            } /* OperationErrorGenerator.kt:318 */
 1442   1481   
        }
        1482  +
        /* OperationErrorGenerator.kt:270 */
 1443   1483   
    }
        1484  +
    /* OperationErrorGenerator.kt:269 */
 1444   1485   
}
        1486  +
/* OperationErrorGenerator.kt:133 */
 1445   1487   
impl ::std::fmt::Display for InputAndOutputWithHeadersError {
        1488  +
    /* OperationErrorGenerator.kt:134 */
 1446   1489   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        1490  +
        /* OperationErrorGenerator.kt:318 */
 1447   1491   
        match self {
        1492  +
            /* OperationErrorGenerator.kt:326 */
 1448   1493   
            Self::Unhandled(_inner) => {
        1494  +
                /* OperationErrorGenerator.kt:139 */
 1449   1495   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
 1450   1496   
                    write!(f, "unhandled error ({code})")
 1451   1497   
                } else {
 1452   1498   
                    f.write_str("unhandled error")
 1453   1499   
                }
 1454         -
            }
        1500  +
                /* OperationErrorGenerator.kt:326 */
        1501  +
            } /* OperationErrorGenerator.kt:318 */
 1455   1502   
        }
        1503  +
        /* OperationErrorGenerator.kt:134 */
 1456   1504   
    }
        1505  +
    /* OperationErrorGenerator.kt:133 */
 1457   1506   
}
        1507  +
/* OperationErrorGenerator.kt:182 */
 1458   1508   
impl ::aws_smithy_types::retry::ProvideErrorKind for InputAndOutputWithHeadersError {
        1509  +
    /* OperationErrorGenerator.kt:186 */
 1459   1510   
    fn code(&self) -> ::std::option::Option<&str> {
        1511  +
        /* OperationErrorGenerator.kt:187 */
 1460   1512   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
        1513  +
        /* OperationErrorGenerator.kt:186 */
 1461   1514   
    }
        1515  +
    /* OperationErrorGenerator.kt:190 */
 1462   1516   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
        1517  +
        /* OperationErrorGenerator.kt:197 */
 1463   1518   
        ::std::option::Option::None
        1519  +
        /* OperationErrorGenerator.kt:190 */
 1464   1520   
    }
        1521  +
    /* OperationErrorGenerator.kt:182 */
 1465   1522   
}
        1523  +
/* OperationErrorGenerator.kt:163 */
 1466   1524   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for InputAndOutputWithHeadersError {
        1525  +
    /* OperationErrorGenerator.kt:164 */
 1467   1526   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
        1527  +
        /* OperationErrorGenerator.kt:318 */
 1468   1528   
        match self {
 1469         -
            Self::Unhandled(_inner) => &_inner.meta,
        1529  +
            /* OperationErrorGenerator.kt:326 */
        1530  +
            Self::Unhandled(_inner) => {
        1531  +
                /* OperationErrorGenerator.kt:168 */
        1532  +
                &_inner.meta
        1533  +
                /* OperationErrorGenerator.kt:326 */
        1534  +
            } /* OperationErrorGenerator.kt:318 */
 1470   1535   
        }
        1536  +
        /* OperationErrorGenerator.kt:164 */
 1471   1537   
    }
        1538  +
    /* OperationErrorGenerator.kt:163 */
 1472   1539   
}
        1540  +
/* OperationErrorGenerator.kt:109 */
 1473   1541   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for InputAndOutputWithHeadersError {
        1542  +
    /* OperationErrorGenerator.kt:110 */
 1474   1543   
    fn create_unhandled_error(
 1475   1544   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
 1476   1545   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
 1477   1546   
    ) -> Self {
        1547  +
        /* OperationErrorGenerator.kt:121 */
 1478   1548   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
 1479   1549   
            source,
 1480   1550   
            meta: meta.unwrap_or_default(),
 1481   1551   
        })
        1552  +
        /* OperationErrorGenerator.kt:110 */
 1482   1553   
    }
        1554  +
    /* OperationErrorGenerator.kt:109 */
 1483   1555   
}
 1484   1556   
        1557  +
/* CodegenDelegator.kt:255 */
 1485   1558   
pub use crate::operation::input_and_output_with_headers::_input_and_output_with_headers_output::InputAndOutputWithHeadersOutput;
 1486   1559   
        1560  +
/* CodegenDelegator.kt:255 */
 1487   1561   
pub use crate::operation::input_and_output_with_headers::_input_and_output_with_headers_input::InputAndOutputWithHeadersInput;
 1488   1562   
        1563  +
/* RustModule.kt:172 */
 1489   1564   
mod _input_and_output_with_headers_input;
 1490   1565   
        1566  +
/* RustModule.kt:172 */
 1491   1567   
mod _input_and_output_with_headers_output;
 1492   1568   
 1493         -
/// Builders
        1569  +
/// /* CodegenDelegator.kt:51 */Builders
 1494   1570   
pub mod builders;

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

@@ -1,1 +426,767 @@
    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 InputAndOutputWithHeadersInput {
           8  +
pub /* StructureGenerator.kt:201 */ struct InputAndOutputWithHeadersInput {
           9  +
    /* StructureGenerator.kt:231 */
    6     10   
    #[allow(missing_docs)] // documentation missing in model
    7     11   
    pub header_string: ::std::option::Option<::std::string::String>,
    8         -
    #[allow(missing_docs)] // documentation missing in model
          12  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
    9     13   
    pub header_byte: ::std::option::Option<i8>,
   10         -
    #[allow(missing_docs)] // documentation missing in model
          14  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   11     15   
    pub header_short: ::std::option::Option<i16>,
          16  +
    /* StructureGenerator.kt:231 */
   12     17   
    #[allow(missing_docs)] // documentation missing in model
   13     18   
    pub header_integer: ::std::option::Option<i32>,
   14         -
    #[allow(missing_docs)] // documentation missing in model
          19  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   15     20   
    pub header_long: ::std::option::Option<i64>,
   16         -
    #[allow(missing_docs)] // documentation missing in model
          21  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   17     22   
    pub header_float: ::std::option::Option<f32>,
   18         -
    #[allow(missing_docs)] // documentation missing in model
          23  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   19     24   
    pub header_double: ::std::option::Option<f64>,
          25  +
    /* StructureGenerator.kt:231 */
   20     26   
    #[allow(missing_docs)] // documentation missing in model
   21     27   
    pub header_true_bool: ::std::option::Option<bool>,
          28  +
    /* StructureGenerator.kt:231 */
   22     29   
    #[allow(missing_docs)] // documentation missing in model
   23     30   
    pub header_false_bool: ::std::option::Option<bool>,
          31  +
    /* StructureGenerator.kt:231 */
   24     32   
    #[allow(missing_docs)] // documentation missing in model
   25     33   
    pub header_string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
          34  +
    /* StructureGenerator.kt:231 */
   26     35   
    #[allow(missing_docs)] // documentation missing in model
   27     36   
    pub header_string_set: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
          37  +
    /* StructureGenerator.kt:231 */
   28     38   
    #[allow(missing_docs)] // documentation missing in model
   29     39   
    pub header_integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
          40  +
    /* StructureGenerator.kt:231 */
   30     41   
    #[allow(missing_docs)] // documentation missing in model
   31     42   
    pub header_boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
          43  +
    /* StructureGenerator.kt:231 */
   32     44   
    #[allow(missing_docs)] // documentation missing in model
   33     45   
    pub header_timestamp_list: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>,
          46  +
    /* StructureGenerator.kt:231 */
   34     47   
    #[allow(missing_docs)] // documentation missing in model
   35     48   
    pub header_enum: ::std::option::Option<crate::types::FooEnum>,
          49  +
    /* StructureGenerator.kt:231 */
   36     50   
    #[allow(missing_docs)] // documentation missing in model
   37     51   
    pub header_enum_list: ::std::option::Option<::std::vec::Vec<crate::types::FooEnum>>,
          52  +
    /* StructureGenerator.kt:201 */
   38     53   
}
          54  +
/* StructureGenerator.kt:135 */
   39     55   
impl InputAndOutputWithHeadersInput {
          56  +
    /* StructureGenerator.kt:231 */
   40     57   
    #[allow(missing_docs)] // documentation missing in model
          58  +
                           /* StructureGenerator.kt:166 */
   41     59   
    pub fn header_string(&self) -> ::std::option::Option<&str> {
          60  +
        /* StructureGenerator.kt:169 */
   42     61   
        self.header_string.as_deref()
          62  +
        /* StructureGenerator.kt:166 */
   43     63   
    }
          64  +
    /* StructureGenerator.kt:231 */
   44     65   
    #[allow(missing_docs)] // documentation missing in model
          66  +
                           /* StructureGenerator.kt:166 */
   45     67   
    pub fn header_byte(&self) -> ::std::option::Option<i8> {
          68  +
        /* StructureGenerator.kt:168 */
   46     69   
        self.header_byte
          70  +
        /* StructureGenerator.kt:166 */
   47     71   
    }
          72  +
    /* StructureGenerator.kt:231 */
   48     73   
    #[allow(missing_docs)] // documentation missing in model
          74  +
                           /* StructureGenerator.kt:166 */
   49     75   
    pub fn header_short(&self) -> ::std::option::Option<i16> {
          76  +
        /* StructureGenerator.kt:168 */
   50     77   
        self.header_short
          78  +
        /* StructureGenerator.kt:166 */
   51     79   
    }
          80  +
    /* StructureGenerator.kt:231 */
   52     81   
    #[allow(missing_docs)] // documentation missing in model
          82  +
                           /* StructureGenerator.kt:166 */
   53     83   
    pub fn header_integer(&self) -> ::std::option::Option<i32> {
          84  +
        /* StructureGenerator.kt:168 */
   54     85   
        self.header_integer
          86  +
        /* StructureGenerator.kt:166 */
   55     87   
    }
          88  +
    /* StructureGenerator.kt:231 */
   56     89   
    #[allow(missing_docs)] // documentation missing in model
          90  +
                           /* StructureGenerator.kt:166 */
   57     91   
    pub fn header_long(&self) -> ::std::option::Option<i64> {
          92  +
        /* StructureGenerator.kt:168 */
   58     93   
        self.header_long
          94  +
        /* StructureGenerator.kt:166 */
   59     95   
    }
          96  +
    /* StructureGenerator.kt:231 */
   60     97   
    #[allow(missing_docs)] // documentation missing in model
          98  +
                           /* StructureGenerator.kt:166 */
   61     99   
    pub fn header_float(&self) -> ::std::option::Option<f32> {
         100  +
        /* StructureGenerator.kt:168 */
   62    101   
        self.header_float
         102  +
        /* StructureGenerator.kt:166 */
   63    103   
    }
         104  +
    /* StructureGenerator.kt:231 */
   64    105   
    #[allow(missing_docs)] // documentation missing in model
         106  +
                           /* StructureGenerator.kt:166 */
   65    107   
    pub fn header_double(&self) -> ::std::option::Option<f64> {
         108  +
        /* StructureGenerator.kt:168 */
   66    109   
        self.header_double
         110  +
        /* StructureGenerator.kt:166 */
   67    111   
    }
         112  +
    /* StructureGenerator.kt:231 */
   68    113   
    #[allow(missing_docs)] // documentation missing in model
         114  +
                           /* StructureGenerator.kt:166 */
   69    115   
    pub fn header_true_bool(&self) -> ::std::option::Option<bool> {
         116  +
        /* StructureGenerator.kt:168 */
   70    117   
        self.header_true_bool
         118  +
        /* StructureGenerator.kt:166 */
   71    119   
    }
         120  +
    /* StructureGenerator.kt:231 */
   72    121   
    #[allow(missing_docs)] // documentation missing in model
         122  +
                           /* StructureGenerator.kt:166 */
   73    123   
    pub fn header_false_bool(&self) -> ::std::option::Option<bool> {
         124  +
        /* StructureGenerator.kt:168 */
   74    125   
        self.header_false_bool
         126  +
        /* StructureGenerator.kt:166 */
   75    127   
    }
         128  +
    /* StructureGenerator.kt:231 */
   76    129   
    #[allow(missing_docs)] // documentation missing in model
   77         -
    ///
   78         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.header_string_list.is_none()`.
         130  +
    /// /* StructureGenerator.kt:162 */
         131  +
    /// /* StructureGenerator.kt:163 */If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.header_string_list.is_none()`.
         132  +
    /* StructureGenerator.kt:166 */
   79    133   
    pub fn header_string_list(&self) -> &[::std::string::String] {
   80         -
        self.header_string_list.as_deref().unwrap_or_default()
   81         -
    }
   82         -
    #[allow(missing_docs)] // documentation missing in model
   83         -
    ///
   84         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.header_string_set.is_none()`.
         134  +
        /* StructureGenerator.kt:169 */
         135  +
        self.header_string_list
         136  +
            .as_deref()
         137  +
            /* StructureGenerator.kt:175 */
         138  +
            .unwrap_or_default()
         139  +
        /* StructureGenerator.kt:166 */
         140  +
    }
         141  +
    /* StructureGenerator.kt:231 */
         142  +
    #[allow(missing_docs)] // documentation missing in model
         143  +
    /// /* StructureGenerator.kt:162 */
         144  +
    /// /* StructureGenerator.kt:163 */If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.header_string_set.is_none()`.
         145  +
    /* StructureGenerator.kt:166 */
   85    146   
    pub fn header_string_set(&self) -> &[::std::string::String] {
   86         -
        self.header_string_set.as_deref().unwrap_or_default()
   87         -
    }
   88         -
    #[allow(missing_docs)] // documentation missing in model
   89         -
    ///
   90         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.header_integer_list.is_none()`.
         147  +
        /* StructureGenerator.kt:169 */
         148  +
        self.header_string_set
         149  +
            .as_deref()
         150  +
            /* StructureGenerator.kt:175 */
         151  +
            .unwrap_or_default()
         152  +
        /* StructureGenerator.kt:166 */
         153  +
    }
         154  +
    /* StructureGenerator.kt:231 */
         155  +
    #[allow(missing_docs)] // documentation missing in model
         156  +
    /// /* StructureGenerator.kt:162 */
         157  +
    /// /* StructureGenerator.kt:163 */If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.header_integer_list.is_none()`.
         158  +
    /* StructureGenerator.kt:166 */
   91    159   
    pub fn header_integer_list(&self) -> &[i32] {
   92         -
        self.header_integer_list.as_deref().unwrap_or_default()
   93         -
    }
   94         -
    #[allow(missing_docs)] // documentation missing in model
   95         -
    ///
   96         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.header_boolean_list.is_none()`.
         160  +
        /* StructureGenerator.kt:169 */
         161  +
        self.header_integer_list
         162  +
            .as_deref()
         163  +
            /* StructureGenerator.kt:175 */
         164  +
            .unwrap_or_default()
         165  +
        /* StructureGenerator.kt:166 */
         166  +
    }
         167  +
    /* StructureGenerator.kt:231 */
         168  +
    #[allow(missing_docs)] // documentation missing in model
         169  +
    /// /* StructureGenerator.kt:162 */
         170  +
    /// /* StructureGenerator.kt:163 */If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.header_boolean_list.is_none()`.
         171  +
    /* StructureGenerator.kt:166 */
   97    172   
    pub fn header_boolean_list(&self) -> &[bool] {
   98         -
        self.header_boolean_list.as_deref().unwrap_or_default()
   99         -
    }
  100         -
    #[allow(missing_docs)] // documentation missing in model
  101         -
    ///
  102         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.header_timestamp_list.is_none()`.
         173  +
        /* StructureGenerator.kt:169 */
         174  +
        self.header_boolean_list
         175  +
            .as_deref()
         176  +
            /* StructureGenerator.kt:175 */
         177  +
            .unwrap_or_default()
         178  +
        /* StructureGenerator.kt:166 */
         179  +
    }
         180  +
    /* StructureGenerator.kt:231 */
         181  +
    #[allow(missing_docs)] // documentation missing in model
         182  +
    /// /* StructureGenerator.kt:162 */
         183  +
    /// /* StructureGenerator.kt:163 */If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.header_timestamp_list.is_none()`.
         184  +
    /* StructureGenerator.kt:166 */
  103    185   
    pub fn header_timestamp_list(&self) -> &[::aws_smithy_types::DateTime] {
  104         -
        self.header_timestamp_list.as_deref().unwrap_or_default()
         186  +
        /* StructureGenerator.kt:169 */
         187  +
        self.header_timestamp_list
         188  +
            .as_deref()
         189  +
            /* StructureGenerator.kt:175 */
         190  +
            .unwrap_or_default()
         191  +
        /* StructureGenerator.kt:166 */
  105    192   
    }
         193  +
    /* StructureGenerator.kt:231 */
  106    194   
    #[allow(missing_docs)] // documentation missing in model
         195  +
                           /* StructureGenerator.kt:166 */
  107    196   
    pub fn header_enum(&self) -> ::std::option::Option<&crate::types::FooEnum> {
         197  +
        /* StructureGenerator.kt:170 */
  108    198   
        self.header_enum.as_ref()
         199  +
        /* StructureGenerator.kt:166 */
  109    200   
    }
         201  +
    /* StructureGenerator.kt:231 */
  110    202   
    #[allow(missing_docs)] // documentation missing in model
  111         -
    ///
  112         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.header_enum_list.is_none()`.
         203  +
    /// /* StructureGenerator.kt:162 */
         204  +
    /// /* StructureGenerator.kt:163 */If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.header_enum_list.is_none()`.
         205  +
    /* StructureGenerator.kt:166 */
  113    206   
    pub fn header_enum_list(&self) -> &[crate::types::FooEnum] {
  114         -
        self.header_enum_list.as_deref().unwrap_or_default()
  115         -
    }
         207  +
        /* StructureGenerator.kt:169 */
         208  +
        self.header_enum_list
         209  +
            .as_deref()
         210  +
            /* StructureGenerator.kt:175 */
         211  +
            .unwrap_or_default()
         212  +
        /* StructureGenerator.kt:166 */
         213  +
    }
         214  +
    /* StructureGenerator.kt:135 */
  116    215   
}
         216  +
/* ClientCodegenVisitor.kt:237 */
  117    217   
impl InputAndOutputWithHeadersInput {
  118         -
    /// Creates a new builder-style object to manufacture [`InputAndOutputWithHeadersInput`](crate::operation::input_and_output_with_headers::InputAndOutputWithHeadersInput).
         218  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`InputAndOutputWithHeadersInput`](crate::operation::input_and_output_with_headers::InputAndOutputWithHeadersInput).
         219  +
    /* BuilderGenerator.kt:175 */
  119    220   
    pub fn builder() -> crate::operation::input_and_output_with_headers::builders::InputAndOutputWithHeadersInputBuilder {
         221  +
        /* BuilderGenerator.kt:176 */
  120    222   
        crate::operation::input_and_output_with_headers::builders::InputAndOutputWithHeadersInputBuilder::default()
         223  +
        /* BuilderGenerator.kt:175 */
  121    224   
    }
         225  +
    /* ClientCodegenVisitor.kt:237 */
  122    226   
}
  123    227   
  124         -
/// A builder for [`InputAndOutputWithHeadersInput`](crate::operation::input_and_output_with_headers::InputAndOutputWithHeadersInput).
         228  +
/// /* BuilderGenerator.kt:342 */A builder for [`InputAndOutputWithHeadersInput`](crate::operation::input_and_output_with_headers::InputAndOutputWithHeadersInput).
         229  +
/* RustType.kt:516 */
  125    230   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         231  +
/* RustType.kt:516 */
  126    232   
#[non_exhaustive]
         233  +
/* BuilderGenerator.kt:345 */
  127    234   
pub struct InputAndOutputWithHeadersInputBuilder {
  128         -
    pub(crate) header_string: ::std::option::Option<::std::string::String>,
  129         -
    pub(crate) header_byte: ::std::option::Option<i8>,
  130         -
    pub(crate) header_short: ::std::option::Option<i16>,
  131         -
    pub(crate) header_integer: ::std::option::Option<i32>,
  132         -
    pub(crate) header_long: ::std::option::Option<i64>,
  133         -
    pub(crate) header_float: ::std::option::Option<f32>,
  134         -
    pub(crate) header_double: ::std::option::Option<f64>,
  135         -
    pub(crate) header_true_bool: ::std::option::Option<bool>,
  136         -
    pub(crate) header_false_bool: ::std::option::Option<bool>,
  137         -
    pub(crate) header_string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
  138         -
    pub(crate) header_string_set: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
  139         -
    pub(crate) header_integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
  140         -
    pub(crate) header_boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
  141         -
    pub(crate) header_timestamp_list: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>,
  142         -
    pub(crate) header_enum: ::std::option::Option<crate::types::FooEnum>,
         235  +
    /* BuilderGenerator.kt:275 */ pub(crate) header_string: ::std::option::Option<::std::string::String>,
         236  +
    /* BuilderGenerator.kt:275 */ pub(crate) header_byte: ::std::option::Option<i8>,
         237  +
    /* BuilderGenerator.kt:275 */ pub(crate) header_short: ::std::option::Option<i16>,
         238  +
    /* BuilderGenerator.kt:275 */ pub(crate) header_integer: ::std::option::Option<i32>,
         239  +
    /* BuilderGenerator.kt:275 */ pub(crate) header_long: ::std::option::Option<i64>,
         240  +
    /* BuilderGenerator.kt:275 */ pub(crate) header_float: ::std::option::Option<f32>,
         241  +
    /* BuilderGenerator.kt:275 */ pub(crate) header_double: ::std::option::Option<f64>,
         242  +
    /* BuilderGenerator.kt:275 */ pub(crate) header_true_bool: ::std::option::Option<bool>,
         243  +
    /* BuilderGenerator.kt:275 */ pub(crate) header_false_bool: ::std::option::Option<bool>,
         244  +
    /* BuilderGenerator.kt:275 */ pub(crate) header_string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
         245  +
    /* BuilderGenerator.kt:275 */ pub(crate) header_string_set: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
         246  +
    /* BuilderGenerator.kt:275 */ pub(crate) header_integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
         247  +
    /* BuilderGenerator.kt:275 */ pub(crate) header_boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
         248  +
    /* BuilderGenerator.kt:275 */ pub(crate) header_timestamp_list: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>,
         249  +
    /* BuilderGenerator.kt:275 */ pub(crate) header_enum: ::std::option::Option<crate::types::FooEnum>,
         250  +
    /* BuilderGenerator.kt:275 */
  143    251   
    pub(crate) header_enum_list: ::std::option::Option<::std::vec::Vec<crate::types::FooEnum>>,
         252  +
    /* BuilderGenerator.kt:345 */
  144    253   
}
         254  +
/* BuilderGenerator.kt:355 */
  145    255   
impl InputAndOutputWithHeadersInputBuilder {
         256  +
    /* BuilderGenerator.kt:286 */
  146    257   
    #[allow(missing_docs)] // documentation missing in model
         258  +
                           /* BuilderGenerator.kt:291 */
  147    259   
    pub fn header_string(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         260  +
        /* BuilderGenerator.kt:292 */
  148    261   
        self.header_string = ::std::option::Option::Some(input.into());
         262  +
        /* BuilderGenerator.kt:293 */
  149    263   
        self
         264  +
        /* BuilderGenerator.kt:291 */
  150    265   
    }
         266  +
    /* BuilderGenerator.kt:312 */
  151    267   
    #[allow(missing_docs)] // documentation missing in model
         268  +
                           /* BuilderGenerator.kt:314 */
  152    269   
    pub fn set_header_string(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         270  +
        /* BuilderGenerator.kt:315 */
  153    271   
        self.header_string = input;
  154    272   
        self
         273  +
        /* BuilderGenerator.kt:314 */
  155    274   
    }
         275  +
    /* BuilderGenerator.kt:334 */
  156    276   
    #[allow(missing_docs)] // documentation missing in model
         277  +
                           /* BuilderGenerator.kt:336 */
  157    278   
    pub fn get_header_string(&self) -> &::std::option::Option<::std::string::String> {
         279  +
        /* BuilderGenerator.kt:337 */
  158    280   
        &self.header_string
         281  +
        /* BuilderGenerator.kt:336 */
  159    282   
    }
         283  +
    /* BuilderGenerator.kt:286 */
  160    284   
    #[allow(missing_docs)] // documentation missing in model
         285  +
                           /* BuilderGenerator.kt:291 */
  161    286   
    pub fn header_byte(mut self, input: i8) -> Self {
         287  +
        /* BuilderGenerator.kt:292 */
  162    288   
        self.header_byte = ::std::option::Option::Some(input);
         289  +
        /* BuilderGenerator.kt:293 */
  163    290   
        self
         291  +
        /* BuilderGenerator.kt:291 */
  164    292   
    }
         293  +
    /* BuilderGenerator.kt:312 */
  165    294   
    #[allow(missing_docs)] // documentation missing in model
         295  +
                           /* BuilderGenerator.kt:314 */
  166    296   
    pub fn set_header_byte(mut self, input: ::std::option::Option<i8>) -> Self {
         297  +
        /* BuilderGenerator.kt:315 */
  167    298   
        self.header_byte = input;
  168    299   
        self
         300  +
        /* BuilderGenerator.kt:314 */
  169    301   
    }
         302  +
    /* BuilderGenerator.kt:334 */
  170    303   
    #[allow(missing_docs)] // documentation missing in model
         304  +
                           /* BuilderGenerator.kt:336 */
  171    305   
    pub fn get_header_byte(&self) -> &::std::option::Option<i8> {
         306  +
        /* BuilderGenerator.kt:337 */
  172    307   
        &self.header_byte
         308  +
        /* BuilderGenerator.kt:336 */
  173    309   
    }
         310  +
    /* BuilderGenerator.kt:286 */
  174    311   
    #[allow(missing_docs)] // documentation missing in model
         312  +
                           /* BuilderGenerator.kt:291 */
  175    313   
    pub fn header_short(mut self, input: i16) -> Self {
         314  +
        /* BuilderGenerator.kt:292 */
  176    315   
        self.header_short = ::std::option::Option::Some(input);
         316  +
        /* BuilderGenerator.kt:293 */
  177    317   
        self
         318  +
        /* BuilderGenerator.kt:291 */
  178    319   
    }
         320  +
    /* BuilderGenerator.kt:312 */
  179    321   
    #[allow(missing_docs)] // documentation missing in model
         322  +
                           /* BuilderGenerator.kt:314 */
  180    323   
    pub fn set_header_short(mut self, input: ::std::option::Option<i16>) -> Self {
         324  +
        /* BuilderGenerator.kt:315 */
  181    325   
        self.header_short = input;
  182    326   
        self
         327  +
        /* BuilderGenerator.kt:314 */
  183    328   
    }
         329  +
    /* BuilderGenerator.kt:334 */
  184    330   
    #[allow(missing_docs)] // documentation missing in model
         331  +
                           /* BuilderGenerator.kt:336 */
  185    332   
    pub fn get_header_short(&self) -> &::std::option::Option<i16> {
         333  +
        /* BuilderGenerator.kt:337 */
  186    334   
        &self.header_short
         335  +
        /* BuilderGenerator.kt:336 */
  187    336   
    }
         337  +
    /* BuilderGenerator.kt:286 */
  188    338   
    #[allow(missing_docs)] // documentation missing in model
         339  +
                           /* BuilderGenerator.kt:291 */
  189    340   
    pub fn header_integer(mut self, input: i32) -> Self {
         341  +
        /* BuilderGenerator.kt:292 */
  190    342   
        self.header_integer = ::std::option::Option::Some(input);
         343  +
        /* BuilderGenerator.kt:293 */
  191    344   
        self
         345  +
        /* BuilderGenerator.kt:291 */
  192    346   
    }
         347  +
    /* BuilderGenerator.kt:312 */
  193    348   
    #[allow(missing_docs)] // documentation missing in model
         349  +
                           /* BuilderGenerator.kt:314 */
  194    350   
    pub fn set_header_integer(mut self, input: ::std::option::Option<i32>) -> Self {
         351  +
        /* BuilderGenerator.kt:315 */
  195    352   
        self.header_integer = input;
  196    353   
        self
         354  +
        /* BuilderGenerator.kt:314 */
  197    355   
    }
         356  +
    /* BuilderGenerator.kt:334 */
  198    357   
    #[allow(missing_docs)] // documentation missing in model
         358  +
                           /* BuilderGenerator.kt:336 */
  199    359   
    pub fn get_header_integer(&self) -> &::std::option::Option<i32> {
         360  +
        /* BuilderGenerator.kt:337 */
  200    361   
        &self.header_integer
         362  +
        /* BuilderGenerator.kt:336 */
  201    363   
    }
         364  +
    /* BuilderGenerator.kt:286 */
  202    365   
    #[allow(missing_docs)] // documentation missing in model
         366  +
                           /* BuilderGenerator.kt:291 */
  203    367   
    pub fn header_long(mut self, input: i64) -> Self {
         368  +
        /* BuilderGenerator.kt:292 */
  204    369   
        self.header_long = ::std::option::Option::Some(input);
         370  +
        /* BuilderGenerator.kt:293 */
  205    371   
        self
         372  +
        /* BuilderGenerator.kt:291 */
  206    373   
    }
         374  +
    /* BuilderGenerator.kt:312 */
  207    375   
    #[allow(missing_docs)] // documentation missing in model
         376  +
                           /* BuilderGenerator.kt:314 */
  208    377   
    pub fn set_header_long(mut self, input: ::std::option::Option<i64>) -> Self {
         378  +
        /* BuilderGenerator.kt:315 */
  209    379   
        self.header_long = input;
  210    380   
        self
         381  +
        /* BuilderGenerator.kt:314 */
  211    382   
    }
         383  +
    /* BuilderGenerator.kt:334 */
  212    384   
    #[allow(missing_docs)] // documentation missing in model
         385  +
                           /* BuilderGenerator.kt:336 */
  213    386   
    pub fn get_header_long(&self) -> &::std::option::Option<i64> {
         387  +
        /* BuilderGenerator.kt:337 */
  214    388   
        &self.header_long
         389  +
        /* BuilderGenerator.kt:336 */
  215    390   
    }
         391  +
    /* BuilderGenerator.kt:286 */
  216    392   
    #[allow(missing_docs)] // documentation missing in model
         393  +
                           /* BuilderGenerator.kt:291 */
  217    394   
    pub fn header_float(mut self, input: f32) -> Self {
         395  +
        /* BuilderGenerator.kt:292 */
  218    396   
        self.header_float = ::std::option::Option::Some(input);
         397  +
        /* BuilderGenerator.kt:293 */
  219    398   
        self
         399  +
        /* BuilderGenerator.kt:291 */
  220    400   
    }
         401  +
    /* BuilderGenerator.kt:312 */
  221    402   
    #[allow(missing_docs)] // documentation missing in model
         403  +
                           /* BuilderGenerator.kt:314 */
  222    404   
    pub fn set_header_float(mut self, input: ::std::option::Option<f32>) -> Self {
         405  +
        /* BuilderGenerator.kt:315 */
  223    406   
        self.header_float = input;
  224    407   
        self
         408  +
        /* BuilderGenerator.kt:314 */
  225    409   
    }
         410  +
    /* BuilderGenerator.kt:334 */
  226    411   
    #[allow(missing_docs)] // documentation missing in model
         412  +
                           /* BuilderGenerator.kt:336 */
  227    413   
    pub fn get_header_float(&self) -> &::std::option::Option<f32> {
         414  +
        /* BuilderGenerator.kt:337 */
  228    415   
        &self.header_float
         416  +
        /* BuilderGenerator.kt:336 */
  229    417   
    }
         418  +
    /* BuilderGenerator.kt:286 */
  230    419   
    #[allow(missing_docs)] // documentation missing in model
         420  +
                           /* BuilderGenerator.kt:291 */
  231    421   
    pub fn header_double(mut self, input: f64) -> Self {
         422  +
        /* BuilderGenerator.kt:292 */
  232    423   
        self.header_double = ::std::option::Option::Some(input);
         424  +
        /* BuilderGenerator.kt:293 */
  233    425   
        self
         426  +
        /* BuilderGenerator.kt:291 */
  234    427   
    }
         428  +
    /* BuilderGenerator.kt:312 */
  235    429   
    #[allow(missing_docs)] // documentation missing in model
         430  +
                           /* BuilderGenerator.kt:314 */
  236    431   
    pub fn set_header_double(mut self, input: ::std::option::Option<f64>) -> Self {
         432  +
        /* BuilderGenerator.kt:315 */
  237    433   
        self.header_double = input;
  238    434   
        self
         435  +
        /* BuilderGenerator.kt:314 */
  239    436   
    }
         437  +
    /* BuilderGenerator.kt:334 */
  240    438   
    #[allow(missing_docs)] // documentation missing in model
         439  +
                           /* BuilderGenerator.kt:336 */
  241    440   
    pub fn get_header_double(&self) -> &::std::option::Option<f64> {
         441  +
        /* BuilderGenerator.kt:337 */
  242    442   
        &self.header_double
         443  +
        /* BuilderGenerator.kt:336 */
  243    444   
    }
         445  +
    /* BuilderGenerator.kt:286 */
  244    446   
    #[allow(missing_docs)] // documentation missing in model
         447  +
                           /* BuilderGenerator.kt:291 */
  245    448   
    pub fn header_true_bool(mut self, input: bool) -> Self {
         449  +
        /* BuilderGenerator.kt:292 */
  246    450   
        self.header_true_bool = ::std::option::Option::Some(input);
         451  +
        /* BuilderGenerator.kt:293 */
  247    452   
        self
         453  +
        /* BuilderGenerator.kt:291 */
  248    454   
    }
         455  +
    /* BuilderGenerator.kt:312 */
  249    456   
    #[allow(missing_docs)] // documentation missing in model
         457  +
                           /* BuilderGenerator.kt:314 */
  250    458   
    pub fn set_header_true_bool(mut self, input: ::std::option::Option<bool>) -> Self {
         459  +
        /* BuilderGenerator.kt:315 */
  251    460   
        self.header_true_bool = input;
  252    461   
        self
         462  +
        /* BuilderGenerator.kt:314 */
  253    463   
    }
         464  +
    /* BuilderGenerator.kt:334 */
  254    465   
    #[allow(missing_docs)] // documentation missing in model
         466  +
                           /* BuilderGenerator.kt:336 */
  255    467   
    pub fn get_header_true_bool(&self) -> &::std::option::Option<bool> {
         468  +
        /* BuilderGenerator.kt:337 */
  256    469   
        &self.header_true_bool
         470  +
        /* BuilderGenerator.kt:336 */
  257    471   
    }
         472  +
    /* BuilderGenerator.kt:286 */
  258    473   
    #[allow(missing_docs)] // documentation missing in model
         474  +
                           /* BuilderGenerator.kt:291 */
  259    475   
    pub fn header_false_bool(mut self, input: bool) -> Self {
         476  +
        /* BuilderGenerator.kt:292 */
  260    477   
        self.header_false_bool = ::std::option::Option::Some(input);
         478  +
        /* BuilderGenerator.kt:293 */
  261    479   
        self
         480  +
        /* BuilderGenerator.kt:291 */
  262    481   
    }
         482  +
    /* BuilderGenerator.kt:312 */
  263    483   
    #[allow(missing_docs)] // documentation missing in model
         484  +
                           /* BuilderGenerator.kt:314 */
  264    485   
    pub fn set_header_false_bool(mut self, input: ::std::option::Option<bool>) -> Self {
         486  +
        /* BuilderGenerator.kt:315 */
  265    487   
        self.header_false_bool = input;
  266    488   
        self
         489  +
        /* BuilderGenerator.kt:314 */
  267    490   
    }
         491  +
    /* BuilderGenerator.kt:334 */
  268    492   
    #[allow(missing_docs)] // documentation missing in model
         493  +
                           /* BuilderGenerator.kt:336 */
  269    494   
    pub fn get_header_false_bool(&self) -> &::std::option::Option<bool> {
         495  +
        /* BuilderGenerator.kt:337 */
  270    496   
        &self.header_false_bool
         497  +
        /* BuilderGenerator.kt:336 */
  271    498   
    }
  272         -
    /// Appends an item to `header_string_list`.
         499  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `header_string_list`.
         500  +
    /* BuilderGenerator.kt:411 */
  273    501   
    ///
  274         -
    /// To override the contents of this collection use [`set_header_string_list`](Self::set_header_string_list).
         502  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_header_string_list`](Self::set_header_string_list).
         503  +
    /* BuilderGenerator.kt:413 */
  275    504   
    ///
         505  +
    /* BuilderGenerator.kt:418 */
  276    506   
    pub fn header_string_list(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         507  +
        /* BuilderGenerator.kt:419 */
  277    508   
        let mut v = self.header_string_list.unwrap_or_default();
  278    509   
        v.push(input.into());
  279    510   
        self.header_string_list = ::std::option::Option::Some(v);
  280    511   
        self
         512  +
        /* BuilderGenerator.kt:418 */
  281    513   
    }
         514  +
    /* BuilderGenerator.kt:312 */
  282    515   
    #[allow(missing_docs)] // documentation missing in model
         516  +
                           /* BuilderGenerator.kt:314 */
  283    517   
    pub fn set_header_string_list(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
         518  +
        /* BuilderGenerator.kt:315 */
  284    519   
        self.header_string_list = input;
  285    520   
        self
         521  +
        /* BuilderGenerator.kt:314 */
  286    522   
    }
         523  +
    /* BuilderGenerator.kt:334 */
  287    524   
    #[allow(missing_docs)] // documentation missing in model
         525  +
                           /* BuilderGenerator.kt:336 */
  288    526   
    pub fn get_header_string_list(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
         527  +
        /* BuilderGenerator.kt:337 */
  289    528   
        &self.header_string_list
         529  +
        /* BuilderGenerator.kt:336 */
  290    530   
    }
  291         -
    /// Appends an item to `header_string_set`.
         531  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `header_string_set`.
         532  +
    /* BuilderGenerator.kt:411 */
  292    533   
    ///
  293         -
    /// To override the contents of this collection use [`set_header_string_set`](Self::set_header_string_set).
         534  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_header_string_set`](Self::set_header_string_set).
         535  +
    /* BuilderGenerator.kt:413 */
  294    536   
    ///
         537  +
    /* BuilderGenerator.kt:418 */
  295    538   
    pub fn header_string_set(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         539  +
        /* BuilderGenerator.kt:419 */
  296    540   
        let mut v = self.header_string_set.unwrap_or_default();
  297    541   
        v.push(input.into());
  298    542   
        self.header_string_set = ::std::option::Option::Some(v);
  299    543   
        self
         544  +
        /* BuilderGenerator.kt:418 */
  300    545   
    }
         546  +
    /* BuilderGenerator.kt:312 */
  301    547   
    #[allow(missing_docs)] // documentation missing in model
         548  +
                           /* BuilderGenerator.kt:314 */
  302    549   
    pub fn set_header_string_set(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
         550  +
        /* BuilderGenerator.kt:315 */
  303    551   
        self.header_string_set = input;
  304    552   
        self
         553  +
        /* BuilderGenerator.kt:314 */
  305    554   
    }
         555  +
    /* BuilderGenerator.kt:334 */
  306    556   
    #[allow(missing_docs)] // documentation missing in model
         557  +
                           /* BuilderGenerator.kt:336 */
  307    558   
    pub fn get_header_string_set(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
         559  +
        /* BuilderGenerator.kt:337 */
  308    560   
        &self.header_string_set
         561  +
        /* BuilderGenerator.kt:336 */
  309    562   
    }
  310         -
    /// Appends an item to `header_integer_list`.
         563  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `header_integer_list`.
         564  +
    /* BuilderGenerator.kt:411 */
  311    565   
    ///
  312         -
    /// To override the contents of this collection use [`set_header_integer_list`](Self::set_header_integer_list).
         566  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_header_integer_list`](Self::set_header_integer_list).
         567  +
    /* BuilderGenerator.kt:413 */
  313    568   
    ///
         569  +
    /* BuilderGenerator.kt:418 */
  314    570   
    pub fn header_integer_list(mut self, input: i32) -> Self {
         571  +
        /* BuilderGenerator.kt:419 */
  315    572   
        let mut v = self.header_integer_list.unwrap_or_default();
  316    573   
        v.push(input);
  317    574   
        self.header_integer_list = ::std::option::Option::Some(v);
  318    575   
        self
         576  +
        /* BuilderGenerator.kt:418 */
  319    577   
    }
         578  +
    /* BuilderGenerator.kt:312 */
  320    579   
    #[allow(missing_docs)] // documentation missing in model
         580  +
                           /* BuilderGenerator.kt:314 */
  321    581   
    pub fn set_header_integer_list(mut self, input: ::std::option::Option<::std::vec::Vec<i32>>) -> Self {
         582  +
        /* BuilderGenerator.kt:315 */
  322    583   
        self.header_integer_list = input;
  323    584   
        self
         585  +
        /* BuilderGenerator.kt:314 */
  324    586   
    }
         587  +
    /* BuilderGenerator.kt:334 */
  325    588   
    #[allow(missing_docs)] // documentation missing in model
         589  +
                           /* BuilderGenerator.kt:336 */
  326    590   
    pub fn get_header_integer_list(&self) -> &::std::option::Option<::std::vec::Vec<i32>> {
         591  +
        /* BuilderGenerator.kt:337 */
  327    592   
        &self.header_integer_list
         593  +
        /* BuilderGenerator.kt:336 */
  328    594   
    }
  329         -
    /// Appends an item to `header_boolean_list`.
         595  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `header_boolean_list`.
         596  +
    /* BuilderGenerator.kt:411 */
  330    597   
    ///
  331         -
    /// To override the contents of this collection use [`set_header_boolean_list`](Self::set_header_boolean_list).
         598  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_header_boolean_list`](Self::set_header_boolean_list).
         599  +
    /* BuilderGenerator.kt:413 */
  332    600   
    ///
         601  +
    /* BuilderGenerator.kt:418 */
  333    602   
    pub fn header_boolean_list(mut self, input: bool) -> Self {
         603  +
        /* BuilderGenerator.kt:419 */
  334    604   
        let mut v = self.header_boolean_list.unwrap_or_default();
  335    605   
        v.push(input);
  336    606   
        self.header_boolean_list = ::std::option::Option::Some(v);
  337    607   
        self
         608  +
        /* BuilderGenerator.kt:418 */
  338    609   
    }
         610  +
    /* BuilderGenerator.kt:312 */
  339    611   
    #[allow(missing_docs)] // documentation missing in model
         612  +
                           /* BuilderGenerator.kt:314 */
  340    613   
    pub fn set_header_boolean_list(mut self, input: ::std::option::Option<::std::vec::Vec<bool>>) -> Self {
         614  +
        /* BuilderGenerator.kt:315 */
  341    615   
        self.header_boolean_list = input;
  342    616   
        self
         617  +
        /* BuilderGenerator.kt:314 */
  343    618   
    }
         619  +
    /* BuilderGenerator.kt:334 */
  344    620   
    #[allow(missing_docs)] // documentation missing in model
         621  +
                           /* BuilderGenerator.kt:336 */
  345    622   
    pub fn get_header_boolean_list(&self) -> &::std::option::Option<::std::vec::Vec<bool>> {
         623  +
        /* BuilderGenerator.kt:337 */
  346    624   
        &self.header_boolean_list
         625  +
        /* BuilderGenerator.kt:336 */
  347    626   
    }
  348         -
    /// Appends an item to `header_timestamp_list`.
         627  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `header_timestamp_list`.
         628  +
    /* BuilderGenerator.kt:411 */
  349    629   
    ///
  350         -
    /// To override the contents of this collection use [`set_header_timestamp_list`](Self::set_header_timestamp_list).
         630  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_header_timestamp_list`](Self::set_header_timestamp_list).
         631  +
    /* BuilderGenerator.kt:413 */
  351    632   
    ///
         633  +
    /* BuilderGenerator.kt:418 */
  352    634   
    pub fn header_timestamp_list(mut self, input: ::aws_smithy_types::DateTime) -> Self {
         635  +
        /* BuilderGenerator.kt:419 */
  353    636   
        let mut v = self.header_timestamp_list.unwrap_or_default();
  354    637   
        v.push(input);
  355    638   
        self.header_timestamp_list = ::std::option::Option::Some(v);
  356    639   
        self
         640  +
        /* BuilderGenerator.kt:418 */
  357    641   
    }
         642  +
    /* BuilderGenerator.kt:312 */
  358    643   
    #[allow(missing_docs)] // documentation missing in model
         644  +
                           /* BuilderGenerator.kt:314 */
  359    645   
    pub fn set_header_timestamp_list(mut self, input: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>) -> Self {
         646  +
        /* BuilderGenerator.kt:315 */
  360    647   
        self.header_timestamp_list = input;
  361    648   
        self
         649  +
        /* BuilderGenerator.kt:314 */
  362    650   
    }
         651  +
    /* BuilderGenerator.kt:334 */
  363    652   
    #[allow(missing_docs)] // documentation missing in model
         653  +
                           /* BuilderGenerator.kt:336 */
  364    654   
    pub fn get_header_timestamp_list(&self) -> &::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>> {
         655  +
        /* BuilderGenerator.kt:337 */
  365    656   
        &self.header_timestamp_list
         657  +
        /* BuilderGenerator.kt:336 */
  366    658   
    }
         659  +
    /* BuilderGenerator.kt:286 */
  367    660   
    #[allow(missing_docs)] // documentation missing in model
         661  +
                           /* BuilderGenerator.kt:291 */
  368    662   
    pub fn header_enum(mut self, input: crate::types::FooEnum) -> Self {
         663  +
        /* BuilderGenerator.kt:292 */
  369    664   
        self.header_enum = ::std::option::Option::Some(input);
         665  +
        /* BuilderGenerator.kt:293 */
  370    666   
        self
         667  +
        /* BuilderGenerator.kt:291 */
  371    668   
    }
         669  +
    /* BuilderGenerator.kt:312 */
  372    670   
    #[allow(missing_docs)] // documentation missing in model
         671  +
                           /* BuilderGenerator.kt:314 */
  373    672   
    pub fn set_header_enum(mut self, input: ::std::option::Option<crate::types::FooEnum>) -> Self {
         673  +
        /* BuilderGenerator.kt:315 */
  374    674   
        self.header_enum = input;
  375    675   
        self
         676  +
        /* BuilderGenerator.kt:314 */
  376    677   
    }
         678  +
    /* BuilderGenerator.kt:334 */
  377    679   
    #[allow(missing_docs)] // documentation missing in model
         680  +
                           /* BuilderGenerator.kt:336 */
  378    681   
    pub fn get_header_enum(&self) -> &::std::option::Option<crate::types::FooEnum> {
         682  +
        /* BuilderGenerator.kt:337 */
  379    683   
        &self.header_enum
         684  +
        /* BuilderGenerator.kt:336 */
  380    685   
    }
  381         -
    /// Appends an item to `header_enum_list`.
         686  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `header_enum_list`.
         687  +
    /* BuilderGenerator.kt:411 */
  382    688   
    ///
  383         -
    /// To override the contents of this collection use [`set_header_enum_list`](Self::set_header_enum_list).
         689  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_header_enum_list`](Self::set_header_enum_list).
         690  +
    /* BuilderGenerator.kt:413 */
  384    691   
    ///
         692  +
    /* BuilderGenerator.kt:418 */
  385    693   
    pub fn header_enum_list(mut self, input: crate::types::FooEnum) -> Self {
         694  +
        /* BuilderGenerator.kt:419 */
  386    695   
        let mut v = self.header_enum_list.unwrap_or_default();
  387    696   
        v.push(input);
  388    697   
        self.header_enum_list = ::std::option::Option::Some(v);
  389    698   
        self
         699  +
        /* BuilderGenerator.kt:418 */
  390    700   
    }
         701  +
    /* BuilderGenerator.kt:312 */
  391    702   
    #[allow(missing_docs)] // documentation missing in model
         703  +
                           /* BuilderGenerator.kt:314 */
  392    704   
    pub fn set_header_enum_list(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::FooEnum>>) -> Self {
         705  +
        /* BuilderGenerator.kt:315 */
  393    706   
        self.header_enum_list = input;
  394    707   
        self
         708  +
        /* BuilderGenerator.kt:314 */
  395    709   
    }
         710  +
    /* BuilderGenerator.kt:334 */
  396    711   
    #[allow(missing_docs)] // documentation missing in model
         712  +
                           /* BuilderGenerator.kt:336 */
  397    713   
    pub fn get_header_enum_list(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::FooEnum>> {
         714  +
        /* BuilderGenerator.kt:337 */
  398    715   
        &self.header_enum_list
         716  +
        /* BuilderGenerator.kt:336 */
  399    717   
    }
  400         -
    /// Consumes the builder and constructs a [`InputAndOutputWithHeadersInput`](crate::operation::input_and_output_with_headers::InputAndOutputWithHeadersInput).
         718  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`InputAndOutputWithHeadersInput`](crate::operation::input_and_output_with_headers::InputAndOutputWithHeadersInput).
         719  +
    /* BuilderGenerator.kt:253 */
  401    720   
    pub fn build(
  402    721   
        self,
  403    722   
    ) -> ::std::result::Result<
  404    723   
        crate::operation::input_and_output_with_headers::InputAndOutputWithHeadersInput,
  405    724   
        ::aws_smithy_types::error::operation::BuildError,
  406    725   
    > {
  407         -
        ::std::result::Result::Ok(crate::operation::input_and_output_with_headers::InputAndOutputWithHeadersInput {
  408         -
            header_string: self.header_string,
  409         -
            header_byte: self.header_byte,
  410         -
            header_short: self.header_short,
  411         -
            header_integer: self.header_integer,
  412         -
            header_long: self.header_long,
  413         -
            header_float: self.header_float,
  414         -
            header_double: self.header_double,
  415         -
            header_true_bool: self.header_true_bool,
  416         -
            header_false_bool: self.header_false_bool,
  417         -
            header_string_list: self.header_string_list,
  418         -
            header_string_set: self.header_string_set,
  419         -
            header_integer_list: self.header_integer_list,
  420         -
            header_boolean_list: self.header_boolean_list,
  421         -
            header_timestamp_list: self.header_timestamp_list,
  422         -
            header_enum: self.header_enum,
  423         -
            header_enum_list: self.header_enum_list,
  424         -
        })
  425         -
    }
         726  +
        /* BuilderGenerator.kt:254 */
         727  +
        ::std::result::Result::Ok(
         728  +
            /* BuilderGenerator.kt:477 */
         729  +
            crate::operation::input_and_output_with_headers::InputAndOutputWithHeadersInput {
         730  +
                /* BuilderGenerator.kt:481 */ header_string: self.header_string,
         731  +
                /* BuilderGenerator.kt:481 */
         732  +
                header_byte: self.header_byte,
         733  +
                /* BuilderGenerator.kt:481 */
         734  +
                header_short: self.header_short,
         735  +
                /* BuilderGenerator.kt:481 */
         736  +
                header_integer: self.header_integer,
         737  +
                /* BuilderGenerator.kt:481 */
         738  +
                header_long: self.header_long,
         739  +
                /* BuilderGenerator.kt:481 */
         740  +
                header_float: self.header_float,
         741  +
                /* BuilderGenerator.kt:481 */
         742  +
                header_double: self.header_double,
         743  +
                /* BuilderGenerator.kt:481 */
         744  +
                header_true_bool: self.header_true_bool,
         745  +
                /* BuilderGenerator.kt:481 */
         746  +
                header_false_bool: self.header_false_bool,
         747  +
                /* BuilderGenerator.kt:481 */
         748  +
                header_string_list: self.header_string_list,
         749  +
                /* BuilderGenerator.kt:481 */
         750  +
                header_string_set: self.header_string_set,
         751  +
                /* BuilderGenerator.kt:481 */
         752  +
                header_integer_list: self.header_integer_list,
         753  +
                /* BuilderGenerator.kt:481 */
         754  +
                header_boolean_list: self.header_boolean_list,
         755  +
                /* BuilderGenerator.kt:481 */
         756  +
                header_timestamp_list: self.header_timestamp_list,
         757  +
                /* BuilderGenerator.kt:481 */
         758  +
                header_enum: self.header_enum,
         759  +
                /* BuilderGenerator.kt:481 */
         760  +
                header_enum_list: self.header_enum_list,
         761  +
                /* BuilderGenerator.kt:477 */
         762  +
            }, /* BuilderGenerator.kt:254 */
         763  +
        )
         764  +
        /* BuilderGenerator.kt:253 */
         765  +
    }
         766  +
    /* BuilderGenerator.kt:355 */
  426    767   
}