Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943

Files changed:

tmp-codegen-diff/codegen-client-test/rest_json/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_json/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_json/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 +265,282 @@
   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 Json Protocol",
  112    123   
        ));
  113    124   
  114    125   
        ::std::option::Option::Some(cfg.freeze())
  115    126   
    }
  116    127   
  117    128   
    fn runtime_components(
  118    129   
        &self,
  119    130   
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
  120    131   
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
  121    132   
        #[allow(unused_mut)]
  122    133   
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("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
  239    256   
    /// of an operation. As of January 2021, server implementations
  240    257   
    /// are expected to respond with a JSON object regardless of
  241    258   
    /// if the output parameters are empty.
  242    259   
    /// Test ID: RestJsonIgnoreQueryParamsInResponse
  243    260   
    #[::tokio::test]
  244    261   
    #[::tracing_test::traced_test]
  245    262   
    async fn rest_json_ignore_query_params_in_response_response() {
@@ -291,308 +420,496 @@
  311    328   
                )))
  312    329   
            });
  313    330   
            de.deserialize_nonstreaming(&http_response)
  314    331   
        });
  315    332   
        let parsed = parsed
  316    333   
            .expect("should be successful response")
  317    334   
            .downcast::<crate::operation::ignore_query_params_in_response::IgnoreQueryParamsInResponseOutput>()
  318    335   
            .unwrap();
  319    336   
        ::pretty_assertions::assert_eq!(parsed.baz, expected_output.baz, "Unexpected value for `baz`");
  320    337   
    }
         338  +
         339  +
    /* ProtocolTestGenerator.kt:98 */
  321    340   
}
  322    341   
         342  +
/* OperationErrorGenerator.kt:79 */
  323    343   
/// Error type for the `IgnoreQueryParamsInResponseError` operation.
         344  +
/* RustType.kt:516 */
  324    345   
#[non_exhaustive]
         346  +
/* RustType.kt:516 */
  325    347   
#[derive(::std::fmt::Debug)]
  326         -
pub enum IgnoreQueryParamsInResponseError {
         348  +
pub /* OperationErrorGenerator.kt:81 */ enum IgnoreQueryParamsInResponseError {
         349  +
    /* OperationErrorGenerator.kt:88 */
  327    350   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  328    351   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  329    352   
    variable wildcard pattern and check `.code()`:
  330    353   
     \
  331    354   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  332    355   
     \
  333    356   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-IgnoreQueryParamsInResponseError) for what information is available for the error.")]
  334    357   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         358  +
    /* OperationErrorGenerator.kt:81 */
  335    359   
}
         360  +
/* OperationErrorGenerator.kt:218 */
  336    361   
impl IgnoreQueryParamsInResponseError {
         362  +
    /* OperationErrorGenerator.kt:219 */
  337    363   
    /// Creates the `IgnoreQueryParamsInResponseError::Unhandled` variant from any error type.
  338    364   
    pub fn unhandled(
  339    365   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  340    366   
    ) -> Self {
  341    367   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  342    368   
            source: err.into(),
  343    369   
            meta: ::std::default::Default::default(),
  344    370   
        })
  345    371   
    }
  346    372   
  347    373   
    /// Creates the `IgnoreQueryParamsInResponseError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  348    374   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  349    375   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  350    376   
            source: err.clone().into(),
  351    377   
            meta: err,
  352    378   
        })
  353    379   
    }
  354         -
    ///
         380  +
    /// /* OperationErrorGenerator.kt:236 */
  355    381   
    /// Returns error metadata, which includes the error code, message,
  356    382   
    /// request ID, and potentially additional information.
  357    383   
    ///
         384  +
    /* OperationErrorGenerator.kt:242 */
  358    385   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         386  +
        /* OperationErrorGenerator.kt:243 */
  359    387   
        match self {
  360         -
            Self::Unhandled(e) => &e.meta,
         388  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         389  +
            /* OperationErrorGenerator.kt:243 */
  361    390   
        }
         391  +
        /* OperationErrorGenerator.kt:242 */
  362    392   
    }
         393  +
    /* OperationErrorGenerator.kt:218 */
  363    394   
}
         395  +
/* OperationErrorGenerator.kt:269 */
  364    396   
impl ::std::error::Error for IgnoreQueryParamsInResponseError {
         397  +
    /* OperationErrorGenerator.kt:270 */
  365    398   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         399  +
        /* OperationErrorGenerator.kt:318 */
  366    400   
        match self {
  367         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         401  +
            /* OperationErrorGenerator.kt:326 */
         402  +
            Self::Unhandled(_inner) => {
         403  +
                /* OperationErrorGenerator.kt:279 */
         404  +
                ::std::option::Option::Some(&*_inner.source)
         405  +
                /* OperationErrorGenerator.kt:326 */
         406  +
            } /* OperationErrorGenerator.kt:318 */
  368    407   
        }
         408  +
        /* OperationErrorGenerator.kt:270 */
  369    409   
    }
         410  +
    /* OperationErrorGenerator.kt:269 */
  370    411   
}
         412  +
/* OperationErrorGenerator.kt:133 */
  371    413   
impl ::std::fmt::Display for IgnoreQueryParamsInResponseError {
         414  +
    /* OperationErrorGenerator.kt:134 */
  372    415   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         416  +
        /* OperationErrorGenerator.kt:318 */
  373    417   
        match self {
         418  +
            /* OperationErrorGenerator.kt:326 */
  374    419   
            Self::Unhandled(_inner) => {
         420  +
                /* OperationErrorGenerator.kt:139 */
  375    421   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  376    422   
                    write!(f, "unhandled error ({code})")
  377    423   
                } else {
  378    424   
                    f.write_str("unhandled error")
  379    425   
                }
  380         -
            }
         426  +
                /* OperationErrorGenerator.kt:326 */
         427  +
            } /* OperationErrorGenerator.kt:318 */
  381    428   
        }
         429  +
        /* OperationErrorGenerator.kt:134 */
  382    430   
    }
         431  +
    /* OperationErrorGenerator.kt:133 */
  383    432   
}
         433  +
/* OperationErrorGenerator.kt:182 */
  384    434   
impl ::aws_smithy_types::retry::ProvideErrorKind for IgnoreQueryParamsInResponseError {
         435  +
    /* OperationErrorGenerator.kt:186 */
  385    436   
    fn code(&self) -> ::std::option::Option<&str> {
         437  +
        /* OperationErrorGenerator.kt:187 */
  386    438   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         439  +
        /* OperationErrorGenerator.kt:186 */
  387    440   
    }
         441  +
    /* OperationErrorGenerator.kt:190 */
  388    442   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         443  +
        /* OperationErrorGenerator.kt:197 */
  389    444   
        ::std::option::Option::None
         445  +
        /* OperationErrorGenerator.kt:190 */
  390    446   
    }
         447  +
    /* OperationErrorGenerator.kt:182 */
  391    448   
}
         449  +
/* OperationErrorGenerator.kt:163 */
  392    450   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for IgnoreQueryParamsInResponseError {
         451  +
    /* OperationErrorGenerator.kt:164 */
  393    452   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         453  +
        /* OperationErrorGenerator.kt:318 */
  394    454   
        match self {
  395         -
            Self::Unhandled(_inner) => &_inner.meta,
         455  +
            /* OperationErrorGenerator.kt:326 */
         456  +
            Self::Unhandled(_inner) => {
         457  +
                /* OperationErrorGenerator.kt:168 */
         458  +
                &_inner.meta
         459  +
                /* OperationErrorGenerator.kt:326 */
         460  +
            } /* OperationErrorGenerator.kt:318 */
  396    461   
        }
         462  +
        /* OperationErrorGenerator.kt:164 */
  397    463   
    }
         464  +
    /* OperationErrorGenerator.kt:163 */
  398    465   
}
         466  +
/* OperationErrorGenerator.kt:109 */
  399    467   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for IgnoreQueryParamsInResponseError {
         468  +
    /* OperationErrorGenerator.kt:110 */
  400    469   
    fn create_unhandled_error(
  401    470   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  402    471   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  403    472   
    ) -> Self {
         473  +
        /* OperationErrorGenerator.kt:121 */
  404    474   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  405    475   
            source,
  406    476   
            meta: meta.unwrap_or_default(),
  407    477   
        })
         478  +
        /* OperationErrorGenerator.kt:110 */
  408    479   
    }
         480  +
    /* OperationErrorGenerator.kt:109 */
  409    481   
}
  410    482   
         483  +
/* CodegenDelegator.kt:255 */
  411    484   
pub use crate::operation::ignore_query_params_in_response::_ignore_query_params_in_response_output::IgnoreQueryParamsInResponseOutput;
  412    485   
         486  +
/* CodegenDelegator.kt:255 */
  413    487   
pub use crate::operation::ignore_query_params_in_response::_ignore_query_params_in_response_input::IgnoreQueryParamsInResponseInput;
  414    488   
         489  +
/* RustModule.kt:172 */
  415    490   
mod _ignore_query_params_in_response_input;
  416    491   
         492  +
/* RustModule.kt:172 */
  417    493   
mod _ignore_query_params_in_response_output;
  418    494   
  419         -
/// Builders
         495  +
/// /* CodegenDelegator.kt:51 */Builders
  420    496   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rest_json/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_json/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_json/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_json/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 Json Protocol",
  112    123   
        ));
  113    124   
  114    125   
        ::std::option::Option::Some(cfg.freeze())
  115    126   
    }
  116    127   
  117    128   
    fn runtime_components(
  118    129   
        &self,
  119    130   
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
  120    131   
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
  121    132   
        #[allow(unused_mut)]
  122    133   
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("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: RestJsonInputAndOutputWithStringHeaders
  242    259   
    #[::tokio::test]
  243    260   
    #[::tracing_test::traced_test]
  244    261   
    async fn rest_json_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");
@@ -1734,1751 +1863,1939 @@
 1754   1771   
            parsed.header_integer_enum,
 1755   1772   
            expected_output.header_integer_enum,
 1756   1773   
            "Unexpected value for `header_integer_enum`"
 1757   1774   
        );
 1758   1775   
        ::pretty_assertions::assert_eq!(
 1759   1776   
            parsed.header_integer_enum_list,
 1760   1777   
            expected_output.header_integer_enum_list,
 1761   1778   
            "Unexpected value for `header_integer_enum_list`"
 1762   1779   
        );
 1763   1780   
    }
        1781  +
        1782  +
    /* ProtocolTestGenerator.kt:98 */
 1764   1783   
}
 1765   1784   
        1785  +
/* OperationErrorGenerator.kt:79 */
 1766   1786   
/// Error type for the `InputAndOutputWithHeadersError` operation.
        1787  +
/* RustType.kt:516 */
 1767   1788   
#[non_exhaustive]
        1789  +
/* RustType.kt:516 */
 1768   1790   
#[derive(::std::fmt::Debug)]
 1769         -
pub enum InputAndOutputWithHeadersError {
        1791  +
pub /* OperationErrorGenerator.kt:81 */ enum InputAndOutputWithHeadersError {
        1792  +
    /* OperationErrorGenerator.kt:88 */
 1770   1793   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
 1771   1794   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
 1772   1795   
    variable wildcard pattern and check `.code()`:
 1773   1796   
     \
 1774   1797   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
 1775   1798   
     \
 1776   1799   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-InputAndOutputWithHeadersError) for what information is available for the error.")]
 1777   1800   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
        1801  +
    /* OperationErrorGenerator.kt:81 */
 1778   1802   
}
        1803  +
/* OperationErrorGenerator.kt:218 */
 1779   1804   
impl InputAndOutputWithHeadersError {
        1805  +
    /* OperationErrorGenerator.kt:219 */
 1780   1806   
    /// Creates the `InputAndOutputWithHeadersError::Unhandled` variant from any error type.
 1781   1807   
    pub fn unhandled(
 1782   1808   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
 1783   1809   
    ) -> Self {
 1784   1810   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
 1785   1811   
            source: err.into(),
 1786   1812   
            meta: ::std::default::Default::default(),
 1787   1813   
        })
 1788   1814   
    }
 1789   1815   
 1790   1816   
    /// Creates the `InputAndOutputWithHeadersError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
 1791   1817   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
 1792   1818   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
 1793   1819   
            source: err.clone().into(),
 1794   1820   
            meta: err,
 1795   1821   
        })
 1796   1822   
    }
 1797         -
    ///
        1823  +
    /// /* OperationErrorGenerator.kt:236 */
 1798   1824   
    /// Returns error metadata, which includes the error code, message,
 1799   1825   
    /// request ID, and potentially additional information.
 1800   1826   
    ///
        1827  +
    /* OperationErrorGenerator.kt:242 */
 1801   1828   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
        1829  +
        /* OperationErrorGenerator.kt:243 */
 1802   1830   
        match self {
 1803         -
            Self::Unhandled(e) => &e.meta,
        1831  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
        1832  +
            /* OperationErrorGenerator.kt:243 */
 1804   1833   
        }
        1834  +
        /* OperationErrorGenerator.kt:242 */
 1805   1835   
    }
        1836  +
    /* OperationErrorGenerator.kt:218 */
 1806   1837   
}
        1838  +
/* OperationErrorGenerator.kt:269 */
 1807   1839   
impl ::std::error::Error for InputAndOutputWithHeadersError {
        1840  +
    /* OperationErrorGenerator.kt:270 */
 1808   1841   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
        1842  +
        /* OperationErrorGenerator.kt:318 */
 1809   1843   
        match self {
 1810         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
        1844  +
            /* OperationErrorGenerator.kt:326 */
        1845  +
            Self::Unhandled(_inner) => {
        1846  +
                /* OperationErrorGenerator.kt:279 */
        1847  +
                ::std::option::Option::Some(&*_inner.source)
        1848  +
                /* OperationErrorGenerator.kt:326 */
        1849  +
            } /* OperationErrorGenerator.kt:318 */
 1811   1850   
        }
        1851  +
        /* OperationErrorGenerator.kt:270 */
 1812   1852   
    }
        1853  +
    /* OperationErrorGenerator.kt:269 */
 1813   1854   
}
        1855  +
/* OperationErrorGenerator.kt:133 */
 1814   1856   
impl ::std::fmt::Display for InputAndOutputWithHeadersError {
        1857  +
    /* OperationErrorGenerator.kt:134 */
 1815   1858   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        1859  +
        /* OperationErrorGenerator.kt:318 */
 1816   1860   
        match self {
        1861  +
            /* OperationErrorGenerator.kt:326 */
 1817   1862   
            Self::Unhandled(_inner) => {
        1863  +
                /* OperationErrorGenerator.kt:139 */
 1818   1864   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
 1819   1865   
                    write!(f, "unhandled error ({code})")
 1820   1866   
                } else {
 1821   1867   
                    f.write_str("unhandled error")
 1822   1868   
                }
 1823         -
            }
        1869  +
                /* OperationErrorGenerator.kt:326 */
        1870  +
            } /* OperationErrorGenerator.kt:318 */
 1824   1871   
        }
        1872  +
        /* OperationErrorGenerator.kt:134 */
 1825   1873   
    }
        1874  +
    /* OperationErrorGenerator.kt:133 */
 1826   1875   
}
        1876  +
/* OperationErrorGenerator.kt:182 */
 1827   1877   
impl ::aws_smithy_types::retry::ProvideErrorKind for InputAndOutputWithHeadersError {
        1878  +
    /* OperationErrorGenerator.kt:186 */
 1828   1879   
    fn code(&self) -> ::std::option::Option<&str> {
        1880  +
        /* OperationErrorGenerator.kt:187 */
 1829   1881   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
        1882  +
        /* OperationErrorGenerator.kt:186 */
 1830   1883   
    }
        1884  +
    /* OperationErrorGenerator.kt:190 */
 1831   1885   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
        1886  +
        /* OperationErrorGenerator.kt:197 */
 1832   1887   
        ::std::option::Option::None
        1888  +
        /* OperationErrorGenerator.kt:190 */
 1833   1889   
    }
        1890  +
    /* OperationErrorGenerator.kt:182 */
 1834   1891   
}
        1892  +
/* OperationErrorGenerator.kt:163 */
 1835   1893   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for InputAndOutputWithHeadersError {
        1894  +
    /* OperationErrorGenerator.kt:164 */
 1836   1895   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
        1896  +
        /* OperationErrorGenerator.kt:318 */
 1837   1897   
        match self {
 1838         -
            Self::Unhandled(_inner) => &_inner.meta,
        1898  +
            /* OperationErrorGenerator.kt:326 */
        1899  +
            Self::Unhandled(_inner) => {
        1900  +
                /* OperationErrorGenerator.kt:168 */
        1901  +
                &_inner.meta
        1902  +
                /* OperationErrorGenerator.kt:326 */
        1903  +
            } /* OperationErrorGenerator.kt:318 */
 1839   1904   
        }
        1905  +
        /* OperationErrorGenerator.kt:164 */
 1840   1906   
    }
        1907  +
    /* OperationErrorGenerator.kt:163 */
 1841   1908   
}
        1909  +
/* OperationErrorGenerator.kt:109 */
 1842   1910   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for InputAndOutputWithHeadersError {
        1911  +
    /* OperationErrorGenerator.kt:110 */
 1843   1912   
    fn create_unhandled_error(
 1844   1913   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
 1845   1914   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
 1846   1915   
    ) -> Self {
        1916  +
        /* OperationErrorGenerator.kt:121 */
 1847   1917   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
 1848   1918   
            source,
 1849   1919   
            meta: meta.unwrap_or_default(),
 1850   1920   
        })
        1921  +
        /* OperationErrorGenerator.kt:110 */
 1851   1922   
    }
        1923  +
    /* OperationErrorGenerator.kt:109 */
 1852   1924   
}
 1853   1925   
        1926  +
/* CodegenDelegator.kt:255 */
 1854   1927   
pub use crate::operation::input_and_output_with_headers::_input_and_output_with_headers_output::InputAndOutputWithHeadersOutput;
 1855   1928   
        1929  +
/* CodegenDelegator.kt:255 */
 1856   1930   
pub use crate::operation::input_and_output_with_headers::_input_and_output_with_headers_input::InputAndOutputWithHeadersInput;
 1857   1931   
        1932  +
/* RustModule.kt:172 */
 1858   1933   
mod _input_and_output_with_headers_input;
 1859   1934   
        1935  +
/* RustModule.kt:172 */
 1860   1936   
mod _input_and_output_with_headers_output;
 1861   1937   
 1862         -
/// Builders
        1938  +
/// /* CodegenDelegator.kt:51 */Builders
 1863   1939   
pub mod builders;

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

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

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/input_and_output_with_headers/_input_and_output_with_headers_output.rs

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