Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943

Files changed:

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

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

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

@@ -1,1 +125,143 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CodegenDelegator.kt:255 */
    2      3   
pub use crate::operation::xml_attributes_on_payload::_xml_attributes_on_payload_output::XmlAttributesOnPayloadOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::xml_attributes_on_payload::_xml_attributes_on_payload_input::XmlAttributesOnPayloadInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::xml_attributes_on_payload::builders::XmlAttributesOnPayloadInputBuilder {
    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::xml_attributes_on_payload::XmlAttributesOnPayloadOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::xml_attributes_on_payload::XmlAttributesOnPayloadError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.xml_attributes_on_payload();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `XmlAttributesOnPayload`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `XmlAttributesOnPayload`.
   24     27   
///
   25         -
/// This example serializes an XML attributes on a document targeted by httpPayload.
          28  +
/// /* FluentBuilderGenerator.kt:130 */This example serializes an XML attributes on a document targeted by httpPayload.
          29  +
/* RustType.kt:516 */
   26     30   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          31  +
/* FluentBuilderGenerator.kt:270 */
   27     32   
pub struct XmlAttributesOnPayloadFluentBuilder {
   28     33   
    handle: ::std::sync::Arc<crate::client::Handle>,
   29     34   
    inner: crate::operation::xml_attributes_on_payload::builders::XmlAttributesOnPayloadInputBuilder,
   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::xml_attributes_on_payload::XmlAttributesOnPayloadOutput,
   35     41   
        crate::operation::xml_attributes_on_payload::XmlAttributesOnPayloadError,
   36     42   
    > for XmlAttributesOnPayloadFluentBuilder
   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::xml_attributes_on_payload::XmlAttributesOnPayloadOutput,
   44     50   
            crate::operation::xml_attributes_on_payload::XmlAttributesOnPayloadError,
   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 XmlAttributesOnPayloadFluentBuilder {
          58  +
    /* FluentBuilderGenerator.kt:288 */
   51     59   
    /// Creates a new `XmlAttributesOnPayloadFluentBuilder`.
   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 XmlAttributesOnPayload as a reference.
   60     69   
    pub fn as_input(&self) -> &crate::operation::xml_attributes_on_payload::builders::XmlAttributesOnPayloadInputBuilder {
   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::xml_attributes_on_payload::XmlAttributesOnPayloadOutput,
   75     85   
        ::aws_smithy_runtime_api::client::result::SdkError<
   76     86   
            crate::operation::xml_attributes_on_payload::XmlAttributesOnPayloadError,
   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::xml_attributes_on_payload::XmlAttributesOnPayload::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::xml_attributes_on_payload::XmlAttributesOnPayload::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::xml_attributes_on_payload::XmlAttributesOnPayloadOutput,
   97    107   
        crate::operation::xml_attributes_on_payload::XmlAttributesOnPayloadError,
   98    108   
        Self,
   99    109   
    > {
  100    110   
        crate::client::customize::CustomizableOperation::new(self)
  101    111   
    }
         112  +
    /* FluentBuilderGenerator.kt:315 */
  102    113   
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
  103    114   
        self.set_config_override(::std::option::Option::Some(config_override.into()));
  104    115   
        self
  105    116   
    }
  106    117   
  107    118   
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
  108    119   
        self.config_override = config_override;
  109    120   
        self
  110    121   
    }
         122  +
    /* FluentBuilderGenerator.kt:498 */
  111    123   
    #[allow(missing_docs)] // documentation missing in model
         124  +
                           /* FluentBuilderGenerator.kt:500 */
  112    125   
    pub fn payload(mut self, input: crate::types::XmlAttributesPayloadRequest) -> Self {
  113    126   
        self.inner = self.inner.payload(input);
  114    127   
        self
  115    128   
    }
         129  +
    /* FluentBuilderGenerator.kt:498 */
  116    130   
    #[allow(missing_docs)] // documentation missing in model
         131  +
                           /* FluentBuilderGenerator.kt:500 */
  117    132   
    pub fn set_payload(mut self, input: ::std::option::Option<crate::types::XmlAttributesPayloadRequest>) -> Self {
  118    133   
        self.inner = self.inner.set_payload(input);
  119    134   
        self
  120    135   
    }
         136  +
    /* FluentBuilderGenerator.kt:518 */
  121    137   
    #[allow(missing_docs)] // documentation missing in model
         138  +
                           /* FluentBuilderGenerator.kt:520 */
  122    139   
    pub fn get_payload(&self) -> &::std::option::Option<crate::types::XmlAttributesPayloadRequest> {
  123    140   
        self.inner.get_payload()
  124    141   
    }
         142  +
    /* FluentBuilderGenerator.kt:282 */
  125    143   
}

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

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

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

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

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

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

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

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

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

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

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

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

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

@@ -1,1 +125,143 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CodegenDelegator.kt:255 */
    2      3   
pub use crate::operation::xml_empty_blobs::_xml_empty_blobs_output::XmlEmptyBlobsOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::xml_empty_blobs::_xml_empty_blobs_input::XmlEmptyBlobsInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::xml_empty_blobs::builders::XmlEmptyBlobsInputBuilder {
    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::xml_empty_blobs::XmlEmptyBlobsOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::xml_empty_blobs::XmlEmptyBlobsError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.xml_empty_blobs();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `XmlEmptyBlobs`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `XmlEmptyBlobs`.
   24     27   
///
   25         -
/// Blobs are base64 encoded
          28  +
/// /* FluentBuilderGenerator.kt:130 */Blobs are base64 encoded
          29  +
/* RustType.kt:516 */
   26     30   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          31  +
/* FluentBuilderGenerator.kt:270 */
   27     32   
pub struct XmlEmptyBlobsFluentBuilder {
   28     33   
    handle: ::std::sync::Arc<crate::client::Handle>,
   29     34   
    inner: crate::operation::xml_empty_blobs::builders::XmlEmptyBlobsInputBuilder,
   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::xml_empty_blobs::XmlEmptyBlobsOutput,
   35     41   
        crate::operation::xml_empty_blobs::XmlEmptyBlobsError,
   36     42   
    > for XmlEmptyBlobsFluentBuilder
   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::xml_empty_blobs::XmlEmptyBlobsOutput,
   44     50   
            crate::operation::xml_empty_blobs::XmlEmptyBlobsError,
   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 XmlEmptyBlobsFluentBuilder {
          58  +
    /* FluentBuilderGenerator.kt:288 */
   51     59   
    /// Creates a new `XmlEmptyBlobsFluentBuilder`.
   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 XmlEmptyBlobs as a reference.
   60     69   
    pub fn as_input(&self) -> &crate::operation::xml_empty_blobs::builders::XmlEmptyBlobsInputBuilder {
   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::xml_empty_blobs::XmlEmptyBlobsOutput,
   75     85   
        ::aws_smithy_runtime_api::client::result::SdkError<
   76     86   
            crate::operation::xml_empty_blobs::XmlEmptyBlobsError,
   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::xml_empty_blobs::XmlEmptyBlobs::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::xml_empty_blobs::XmlEmptyBlobs::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::xml_empty_blobs::XmlEmptyBlobsOutput,
   97    107   
        crate::operation::xml_empty_blobs::XmlEmptyBlobsError,
   98    108   
        Self,
   99    109   
    > {
  100    110   
        crate::client::customize::CustomizableOperation::new(self)
  101    111   
    }
         112  +
    /* FluentBuilderGenerator.kt:315 */
  102    113   
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
  103    114   
        self.set_config_override(::std::option::Option::Some(config_override.into()));
  104    115   
        self
  105    116   
    }
  106    117   
  107    118   
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
  108    119   
        self.config_override = config_override;
  109    120   
        self
  110    121   
    }
         122  +
    /* FluentBuilderGenerator.kt:498 */
  111    123   
    #[allow(missing_docs)] // documentation missing in model
         124  +
                           /* FluentBuilderGenerator.kt:500 */
  112    125   
    pub fn data(mut self, input: ::aws_smithy_types::Blob) -> Self {
  113    126   
        self.inner = self.inner.data(input);
  114    127   
        self
  115    128   
    }
         129  +
    /* FluentBuilderGenerator.kt:498 */
  116    130   
    #[allow(missing_docs)] // documentation missing in model
         131  +
                           /* FluentBuilderGenerator.kt:500 */
  117    132   
    pub fn set_data(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
  118    133   
        self.inner = self.inner.set_data(input);
  119    134   
        self
  120    135   
    }
         136  +
    /* FluentBuilderGenerator.kt:518 */
  121    137   
    #[allow(missing_docs)] // documentation missing in model
         138  +
                           /* FluentBuilderGenerator.kt:520 */
  122    139   
    pub fn get_data(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
  123    140   
        self.inner.get_data()
  124    141   
    }
         142  +
    /* FluentBuilderGenerator.kt:282 */
  125    143   
}

tmp-codegen-diff/codegen-client-test/rest_xml/rust-client-codegen/src/operation/xml_empty_lists.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 `XmlEmptyLists`.
           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 XmlEmptyLists;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl XmlEmptyLists {
    7         -
    /// Creates a new `XmlEmptyLists`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `XmlEmptyLists`
          13  +
    /* OperationGenerator.kt:87 */
    8     14   
    pub fn new() -> Self {
          15  +
        /* OperationGenerator.kt:88 */
    9     16   
        Self
          17  +
        /* OperationGenerator.kt:87 */
   10     18   
    }
          19  +
    /* OperationGenerator.kt:138 */
   11     20   
    pub(crate) async fn orchestrate(
   12     21   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     22   
        input: crate::operation::xml_empty_lists::XmlEmptyListsInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::xml_empty_lists::XmlEmptyListsOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::xml_empty_lists::XmlEmptyListsError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -57,66 +263,280 @@
   77     86   
                runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
   78     87   
            }
   79     88   
            runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
   80     89   
                config_override,
   81     90   
                client_config.config.clone(),
   82     91   
                &client_config.runtime_components,
   83     92   
            ));
   84     93   
        }
   85     94   
        runtime_plugins
   86     95   
    }
          96  +
    /* OperationGenerator.kt:85 */
   87     97   
}
          98  +
/* OperationRuntimePluginGenerator.kt:55 */
   88     99   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for XmlEmptyLists {
   89    100   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
   90    101   
        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("XmlEmptyLists");
   91    102   
   92    103   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   93    104   
            XmlEmptyListsRequestSerializer,
   94    105   
        ));
   95    106   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
   96    107   
            XmlEmptyListsResponseDeserializer,
   97    108   
        ));
   98    109   
   99    110   
        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
  100    111   
            ::aws_smithy_runtime_api::client::auth::static_resolver::StaticAuthSchemeOptionResolverParams::new(),
  101    112   
        ));
  102    113   
  103    114   
        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
  104    115   
            "XmlEmptyLists",
  105    116   
            "Rest Xml Protocol",
  106    117   
        ));
  107    118   
  108    119   
        ::std::option::Option::Some(cfg.freeze())
  109    120   
    }
  110    121   
  111    122   
    fn runtime_components(
  112    123   
        &self,
  113    124   
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
  114    125   
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
  115    126   
        #[allow(unused_mut)]
  116    127   
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("XmlEmptyLists")
  117    128   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  118    129   
            .with_interceptor(XmlEmptyListsEndpointParamsInterceptor)
  119    130   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  120    131   
                crate::operation::xml_empty_lists::XmlEmptyListsError,
  121    132   
            >::new())
  122    133   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  123    134   
                crate::operation::xml_empty_lists::XmlEmptyListsError,
  124    135   
            >::new());
  125    136   
  126    137   
        ::std::borrow::Cow::Owned(rcb)
  127    138   
    }
  128    139   
}
  129    140   
         141  +
/* ResponseDeserializerGenerator.kt:64 */
  130    142   
#[derive(Debug)]
  131    143   
struct XmlEmptyListsResponseDeserializer;
  132    144   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for XmlEmptyListsResponseDeserializer {
  133    145   
    fn deserialize_nonstreaming(
  134    146   
        &self,
  135    147   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
  136    148   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  137    149   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  138    150   
        let headers = response.headers();
  139    151   
        let body = response.body().bytes().expect("body loaded");
  140    152   
        #[allow(unused_mut)]
  141    153   
        let mut force_error = false;
  142    154   
  143    155   
        let parse_result = if !success && status != 200 || force_error {
  144    156   
            crate::protocol_serde::shape_xml_empty_lists::de_xml_empty_lists_http_error(status, headers, body)
  145    157   
        } else {
  146    158   
            crate::protocol_serde::shape_xml_empty_lists::de_xml_empty_lists_http_response(status, headers, body)
  147    159   
        };
  148    160   
        crate::protocol_serde::type_erase_result(parse_result)
  149    161   
    }
  150    162   
}
         163  +
/* RequestSerializerGenerator.kt:67 */
  151    164   
#[derive(Debug)]
  152    165   
struct XmlEmptyListsRequestSerializer;
  153    166   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for XmlEmptyListsRequestSerializer {
  154    167   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  155    168   
    fn serialize_input(
  156    169   
        &self,
  157    170   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  158    171   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  159    172   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  160    173   
        let input = input
  161    174   
            .downcast::<crate::operation::xml_empty_lists::XmlEmptyListsInput>()
  162    175   
            .expect("correct type");
  163    176   
        let _header_serialization_settings = _cfg
  164    177   
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  165    178   
            .cloned()
  166    179   
            .unwrap_or_default();
  167    180   
        let mut request_builder = {
  168    181   
            fn uri_base(
  169    182   
                _input: &crate::operation::xml_empty_lists::XmlEmptyListsInput,
  170    183   
                output: &mut ::std::string::String,
  171    184   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  172    185   
                use ::std::fmt::Write as _;
  173    186   
                ::std::write!(output, "/XmlEmptyLists").expect("formatting should succeed");
  174    187   
                ::std::result::Result::Ok(())
  175    188   
            }
  176    189   
            #[allow(clippy::unnecessary_wraps)]
  177    190   
            fn update_http_builder(
  178    191   
                input: &crate::operation::xml_empty_lists::XmlEmptyListsInput,
  179    192   
                builder: ::http::request::Builder,
  180    193   
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  181    194   
                let mut uri = ::std::string::String::new();
  182    195   
                uri_base(input, &mut uri)?;
  183    196   
                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
  184    197   
            }
  185    198   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  186    199   
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/xml");
  187    200   
            builder
  188    201   
        };
  189    202   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_xml_empty_lists::ser_xml_empty_lists_op_input(&input)?);
  190    203   
        if let Some(content_length) = body.content_length() {
  191    204   
            let content_length = content_length.to_string();
  192    205   
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
  193    206   
        }
  194    207   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  195    208   
    }
  196    209   
}
         210  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  197    211   
#[derive(Debug)]
  198    212   
struct XmlEmptyListsEndpointParamsInterceptor;
  199    213   
  200    214   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for XmlEmptyListsEndpointParamsInterceptor {
  201    215   
    fn name(&self) -> &'static str {
  202    216   
        "XmlEmptyListsEndpointParamsInterceptor"
  203    217   
    }
  204    218   
  205    219   
    fn read_before_execution(
  206    220   
        &self,
  207    221   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  208    222   
            '_,
  209    223   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  210    224   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  211    225   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  212    226   
        >,
  213    227   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  214    228   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  215    229   
        let _input = context
  216    230   
            .input()
  217    231   
            .downcast_ref::<XmlEmptyListsInput>()
  218    232   
            .ok_or("failed to downcast to XmlEmptyListsInput")?;
  219    233   
  220    234   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  221    235   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  222    236   
        })?;
  223    237   
        cfg.interceptor_state()
  224    238   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  225    239   
        ::std::result::Result::Ok(())
  226    240   
    }
  227    241   
}
  228    242   
  229    243   
// The get_* functions below are generated from JMESPath expressions in the
  230    244   
// operationContextParams trait. They target the operation's input shape.
  231    245   
         246  +
/* RustType.kt:516 */
  232    247   
#[allow(unreachable_code, unused_variables)]
         248  +
/* RustType.kt:516 */
  233    249   
#[cfg(test)]
         250  +
/* ProtocolTestGenerator.kt:98 */
  234    251   
mod xml_empty_lists_test {
  235    252   
  236    253   
    /// Serializes Empty XML lists
  237    254   
    /// Test ID: XmlEmptyLists
  238    255   
    #[::tokio::test]
  239    256   
    #[::tracing_test::traced_test]
  240    257   
    async fn xml_empty_lists_request() {
  241    258   
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  242    259   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  243    260   
@@ -334,351 +463,539 @@
  354    371   
            parsed.structure_list,
  355    372   
            expected_output.structure_list,
  356    373   
            "Unexpected value for `structure_list`"
  357    374   
        );
  358    375   
        ::pretty_assertions::assert_eq!(
  359    376   
            parsed.flattened_structure_list,
  360    377   
            expected_output.flattened_structure_list,
  361    378   
            "Unexpected value for `flattened_structure_list`"
  362    379   
        );
  363    380   
    }
         381  +
         382  +
    /* ProtocolTestGenerator.kt:98 */
  364    383   
}
  365    384   
         385  +
/* OperationErrorGenerator.kt:79 */
  366    386   
/// Error type for the `XmlEmptyListsError` operation.
         387  +
/* RustType.kt:516 */
  367    388   
#[non_exhaustive]
         389  +
/* RustType.kt:516 */
  368    390   
#[derive(::std::fmt::Debug)]
  369         -
pub enum XmlEmptyListsError {
         391  +
pub /* OperationErrorGenerator.kt:81 */ enum XmlEmptyListsError {
         392  +
    /* OperationErrorGenerator.kt:88 */
  370    393   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  371    394   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  372    395   
    variable wildcard pattern and check `.code()`:
  373    396   
     \
  374    397   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  375    398   
     \
  376    399   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-XmlEmptyListsError) for what information is available for the error.")]
  377    400   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         401  +
    /* OperationErrorGenerator.kt:81 */
  378    402   
}
         403  +
/* OperationErrorGenerator.kt:218 */
  379    404   
impl XmlEmptyListsError {
         405  +
    /* OperationErrorGenerator.kt:219 */
  380    406   
    /// Creates the `XmlEmptyListsError::Unhandled` variant from any error type.
  381    407   
    pub fn unhandled(
  382    408   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  383    409   
    ) -> Self {
  384    410   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  385    411   
            source: err.into(),
  386    412   
            meta: ::std::default::Default::default(),
  387    413   
        })
  388    414   
    }
  389    415   
  390    416   
    /// Creates the `XmlEmptyListsError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  391    417   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  392    418   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  393    419   
            source: err.clone().into(),
  394    420   
            meta: err,
  395    421   
        })
  396    422   
    }
  397         -
    ///
         423  +
    /// /* OperationErrorGenerator.kt:236 */
  398    424   
    /// Returns error metadata, which includes the error code, message,
  399    425   
    /// request ID, and potentially additional information.
  400    426   
    ///
         427  +
    /* OperationErrorGenerator.kt:242 */
  401    428   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         429  +
        /* OperationErrorGenerator.kt:243 */
  402    430   
        match self {
  403         -
            Self::Unhandled(e) => &e.meta,
         431  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         432  +
            /* OperationErrorGenerator.kt:243 */
  404    433   
        }
         434  +
        /* OperationErrorGenerator.kt:242 */
  405    435   
    }
         436  +
    /* OperationErrorGenerator.kt:218 */
  406    437   
}
         438  +
/* OperationErrorGenerator.kt:269 */
  407    439   
impl ::std::error::Error for XmlEmptyListsError {
         440  +
    /* OperationErrorGenerator.kt:270 */
  408    441   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         442  +
        /* OperationErrorGenerator.kt:318 */
  409    443   
        match self {
  410         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         444  +
            /* OperationErrorGenerator.kt:326 */
         445  +
            Self::Unhandled(_inner) => {
         446  +
                /* OperationErrorGenerator.kt:279 */
         447  +
                ::std::option::Option::Some(&*_inner.source)
         448  +
                /* OperationErrorGenerator.kt:326 */
         449  +
            } /* OperationErrorGenerator.kt:318 */
  411    450   
        }
         451  +
        /* OperationErrorGenerator.kt:270 */
  412    452   
    }
         453  +
    /* OperationErrorGenerator.kt:269 */
  413    454   
}
         455  +
/* OperationErrorGenerator.kt:133 */
  414    456   
impl ::std::fmt::Display for XmlEmptyListsError {
         457  +
    /* OperationErrorGenerator.kt:134 */
  415    458   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         459  +
        /* OperationErrorGenerator.kt:318 */
  416    460   
        match self {
         461  +
            /* OperationErrorGenerator.kt:326 */
  417    462   
            Self::Unhandled(_inner) => {
         463  +
                /* OperationErrorGenerator.kt:139 */
  418    464   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  419    465   
                    write!(f, "unhandled error ({code})")
  420    466   
                } else {
  421    467   
                    f.write_str("unhandled error")
  422    468   
                }
  423         -
            }
         469  +
                /* OperationErrorGenerator.kt:326 */
         470  +
            } /* OperationErrorGenerator.kt:318 */
  424    471   
        }
         472  +
        /* OperationErrorGenerator.kt:134 */
  425    473   
    }
         474  +
    /* OperationErrorGenerator.kt:133 */
  426    475   
}
         476  +
/* OperationErrorGenerator.kt:182 */
  427    477   
impl ::aws_smithy_types::retry::ProvideErrorKind for XmlEmptyListsError {
         478  +
    /* OperationErrorGenerator.kt:186 */
  428    479   
    fn code(&self) -> ::std::option::Option<&str> {
         480  +
        /* OperationErrorGenerator.kt:187 */
  429    481   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         482  +
        /* OperationErrorGenerator.kt:186 */
  430    483   
    }
         484  +
    /* OperationErrorGenerator.kt:190 */
  431    485   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         486  +
        /* OperationErrorGenerator.kt:197 */
  432    487   
        ::std::option::Option::None
         488  +
        /* OperationErrorGenerator.kt:190 */
  433    489   
    }
         490  +
    /* OperationErrorGenerator.kt:182 */
  434    491   
}
         492  +
/* OperationErrorGenerator.kt:163 */
  435    493   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for XmlEmptyListsError {
         494  +
    /* OperationErrorGenerator.kt:164 */
  436    495   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         496  +
        /* OperationErrorGenerator.kt:318 */
  437    497   
        match self {
  438         -
            Self::Unhandled(_inner) => &_inner.meta,
         498  +
            /* OperationErrorGenerator.kt:326 */
         499  +
            Self::Unhandled(_inner) => {
         500  +
                /* OperationErrorGenerator.kt:168 */
         501  +
                &_inner.meta
         502  +
                /* OperationErrorGenerator.kt:326 */
         503  +
            } /* OperationErrorGenerator.kt:318 */
  439    504   
        }
         505  +
        /* OperationErrorGenerator.kt:164 */
  440    506   
    }
         507  +
    /* OperationErrorGenerator.kt:163 */
  441    508   
}
         509  +
/* OperationErrorGenerator.kt:109 */
  442    510   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for XmlEmptyListsError {
         511  +
    /* OperationErrorGenerator.kt:110 */
  443    512   
    fn create_unhandled_error(
  444    513   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  445    514   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  446    515   
    ) -> Self {
         516  +
        /* OperationErrorGenerator.kt:121 */
  447    517   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  448    518   
            source,
  449    519   
            meta: meta.unwrap_or_default(),
  450    520   
        })
         521  +
        /* OperationErrorGenerator.kt:110 */
  451    522   
    }
         523  +
    /* OperationErrorGenerator.kt:109 */
  452    524   
}
  453    525   
         526  +
/* CodegenDelegator.kt:255 */
  454    527   
pub use crate::operation::xml_empty_lists::_xml_empty_lists_output::XmlEmptyListsOutput;
  455    528   
         529  +
/* CodegenDelegator.kt:255 */
  456    530   
pub use crate::operation::xml_empty_lists::_xml_empty_lists_input::XmlEmptyListsInput;
  457    531   
         532  +
/* RustModule.kt:172 */
  458    533   
mod _xml_empty_lists_input;
  459    534   
         535  +
/* RustModule.kt:172 */
  460    536   
mod _xml_empty_lists_output;
  461    537   
  462         -
/// Builders
         538  +
/// /* CodegenDelegator.kt:51 */Builders
  463    539   
pub mod builders;

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

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