Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/xml_empty_lists/builders.rs

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

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/xml_empty_maps.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 `XmlEmptyMaps`.
           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 XmlEmptyMaps;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl XmlEmptyMaps {
    7         -
    /// Creates a new `XmlEmptyMaps`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `XmlEmptyMaps`
          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_maps::XmlEmptyMapsInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::xml_empty_maps::XmlEmptyMapsOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::xml_empty_maps::XmlEmptyMapsError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -57,66 +262,279 @@
   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 XmlEmptyMaps {
   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("XmlEmptyMaps");
   91    102   
   92    103   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   93    104   
            XmlEmptyMapsRequestSerializer,
   94    105   
        ));
   95    106   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
   96    107   
            XmlEmptyMapsResponseDeserializer,
   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   
            "XmlEmptyMaps",
  105    116   
            "Query 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("XmlEmptyMaps")
  117    128   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  118    129   
            .with_interceptor(XmlEmptyMapsEndpointParamsInterceptor)
  119    130   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  120    131   
                crate::operation::xml_empty_maps::XmlEmptyMapsError,
  121    132   
            >::new())
  122    133   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  123    134   
                crate::operation::xml_empty_maps::XmlEmptyMapsError,
  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 XmlEmptyMapsResponseDeserializer;
  132    144   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for XmlEmptyMapsResponseDeserializer {
  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_maps::de_xml_empty_maps_http_error(status, headers, body)
  145    157   
        } else {
  146    158   
            crate::protocol_serde::shape_xml_empty_maps::de_xml_empty_maps_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 XmlEmptyMapsRequestSerializer;
  153    166   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for XmlEmptyMapsRequestSerializer {
  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_maps::XmlEmptyMapsInput>()
  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_maps::XmlEmptyMapsInput,
  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, "/").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_maps::XmlEmptyMapsInput,
  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/x-www-form-urlencoded");
  187    200   
            builder
  188    201   
        };
  189    202   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_xml_empty_maps_input::ser_xml_empty_maps_input_input_input(
  190    203   
            &input,
  191    204   
        )?);
  192    205   
  193    206   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  194    207   
    }
  195    208   
}
         209  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  196    210   
#[derive(Debug)]
  197    211   
struct XmlEmptyMapsEndpointParamsInterceptor;
  198    212   
  199    213   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for XmlEmptyMapsEndpointParamsInterceptor {
  200    214   
    fn name(&self) -> &'static str {
  201    215   
        "XmlEmptyMapsEndpointParamsInterceptor"
  202    216   
    }
  203    217   
  204    218   
    fn read_before_execution(
  205    219   
        &self,
  206    220   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  207    221   
            '_,
  208    222   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  209    223   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  210    224   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  211    225   
        >,
  212    226   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  213    227   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  214    228   
        let _input = context
  215    229   
            .input()
  216    230   
            .downcast_ref::<XmlEmptyMapsInput>()
  217    231   
            .ok_or("failed to downcast to XmlEmptyMapsInput")?;
  218    232   
  219    233   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  220    234   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  221    235   
        })?;
  222    236   
        cfg.interceptor_state()
  223    237   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  224    238   
        ::std::result::Result::Ok(())
  225    239   
    }
  226    240   
}
  227    241   
  228    242   
// The get_* functions below are generated from JMESPath expressions in the
  229    243   
// operationContextParams trait. They target the operation's input shape.
  230    244   
         245  +
/* RustType.kt:516 */
  231    246   
#[allow(unreachable_code, unused_variables)]
         247  +
/* RustType.kt:516 */
  232    248   
#[cfg(test)]
         249  +
/* ProtocolTestGenerator.kt:98 */
  233    250   
mod xml_empty_maps_test {
  234    251   
  235    252   
    /// Deserializes Empty XML maps
  236    253   
    /// Test ID: QueryXmlEmptyMaps
  237    254   
    #[::tokio::test]
  238    255   
    #[::tracing_test::traced_test]
  239    256   
    async fn query_xml_empty_maps_response() {
  240    257   
        let expected_output = crate::operation::xml_empty_maps::XmlEmptyMapsOutput::builder()
  241    258   
            .set_my_map(::std::option::Option::Some(::std::collections::HashMap::new()))
  242    259   
            .build();
@@ -284,301 +413,489 @@
  304    321   
                )))
  305    322   
            });
  306    323   
            de.deserialize_nonstreaming(&http_response)
  307    324   
        });
  308    325   
        let parsed = parsed
  309    326   
            .expect("should be successful response")
  310    327   
            .downcast::<crate::operation::xml_empty_maps::XmlEmptyMapsOutput>()
  311    328   
            .unwrap();
  312    329   
        ::pretty_assertions::assert_eq!(parsed.my_map, expected_output.my_map, "Unexpected value for `my_map`");
  313    330   
    }
         331  +
         332  +
    /* ProtocolTestGenerator.kt:98 */
  314    333   
}
  315    334   
         335  +
/* OperationErrorGenerator.kt:79 */
  316    336   
/// Error type for the `XmlEmptyMapsError` operation.
         337  +
/* RustType.kt:516 */
  317    338   
#[non_exhaustive]
         339  +
/* RustType.kt:516 */
  318    340   
#[derive(::std::fmt::Debug)]
  319         -
pub enum XmlEmptyMapsError {
         341  +
pub /* OperationErrorGenerator.kt:81 */ enum XmlEmptyMapsError {
         342  +
    /* OperationErrorGenerator.kt:88 */
  320    343   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  321    344   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  322    345   
    variable wildcard pattern and check `.code()`:
  323    346   
     \
  324    347   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  325    348   
     \
  326    349   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-XmlEmptyMapsError) for what information is available for the error.")]
  327    350   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         351  +
    /* OperationErrorGenerator.kt:81 */
  328    352   
}
         353  +
/* OperationErrorGenerator.kt:218 */
  329    354   
impl XmlEmptyMapsError {
         355  +
    /* OperationErrorGenerator.kt:219 */
  330    356   
    /// Creates the `XmlEmptyMapsError::Unhandled` variant from any error type.
  331    357   
    pub fn unhandled(
  332    358   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  333    359   
    ) -> Self {
  334    360   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  335    361   
            source: err.into(),
  336    362   
            meta: ::std::default::Default::default(),
  337    363   
        })
  338    364   
    }
  339    365   
  340    366   
    /// Creates the `XmlEmptyMapsError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  341    367   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  342    368   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  343    369   
            source: err.clone().into(),
  344    370   
            meta: err,
  345    371   
        })
  346    372   
    }
  347         -
    ///
         373  +
    /// /* OperationErrorGenerator.kt:236 */
  348    374   
    /// Returns error metadata, which includes the error code, message,
  349    375   
    /// request ID, and potentially additional information.
  350    376   
    ///
         377  +
    /* OperationErrorGenerator.kt:242 */
  351    378   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         379  +
        /* OperationErrorGenerator.kt:243 */
  352    380   
        match self {
  353         -
            Self::Unhandled(e) => &e.meta,
         381  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         382  +
            /* OperationErrorGenerator.kt:243 */
  354    383   
        }
         384  +
        /* OperationErrorGenerator.kt:242 */
  355    385   
    }
         386  +
    /* OperationErrorGenerator.kt:218 */
  356    387   
}
         388  +
/* OperationErrorGenerator.kt:269 */
  357    389   
impl ::std::error::Error for XmlEmptyMapsError {
         390  +
    /* OperationErrorGenerator.kt:270 */
  358    391   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         392  +
        /* OperationErrorGenerator.kt:318 */
  359    393   
        match self {
  360         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         394  +
            /* OperationErrorGenerator.kt:326 */
         395  +
            Self::Unhandled(_inner) => {
         396  +
                /* OperationErrorGenerator.kt:279 */
         397  +
                ::std::option::Option::Some(&*_inner.source)
         398  +
                /* OperationErrorGenerator.kt:326 */
         399  +
            } /* OperationErrorGenerator.kt:318 */
  361    400   
        }
         401  +
        /* OperationErrorGenerator.kt:270 */
  362    402   
    }
         403  +
    /* OperationErrorGenerator.kt:269 */
  363    404   
}
         405  +
/* OperationErrorGenerator.kt:133 */
  364    406   
impl ::std::fmt::Display for XmlEmptyMapsError {
         407  +
    /* OperationErrorGenerator.kt:134 */
  365    408   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         409  +
        /* OperationErrorGenerator.kt:318 */
  366    410   
        match self {
         411  +
            /* OperationErrorGenerator.kt:326 */
  367    412   
            Self::Unhandled(_inner) => {
         413  +
                /* OperationErrorGenerator.kt:139 */
  368    414   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  369    415   
                    write!(f, "unhandled error ({code})")
  370    416   
                } else {
  371    417   
                    f.write_str("unhandled error")
  372    418   
                }
         419  +
                /* OperationErrorGenerator.kt:326 */
         420  +
            } /* OperationErrorGenerator.kt:318 */
  373    421   
        }
         422  +
        /* OperationErrorGenerator.kt:134 */
  374    423   
    }
  375         -
    }
         424  +
    /* OperationErrorGenerator.kt:133 */
  376    425   
}
         426  +
/* OperationErrorGenerator.kt:182 */
  377    427   
impl ::aws_smithy_types::retry::ProvideErrorKind for XmlEmptyMapsError {
         428  +
    /* OperationErrorGenerator.kt:186 */
  378    429   
    fn code(&self) -> ::std::option::Option<&str> {
         430  +
        /* OperationErrorGenerator.kt:187 */
  379    431   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         432  +
        /* OperationErrorGenerator.kt:186 */
  380    433   
    }
         434  +
    /* OperationErrorGenerator.kt:190 */
  381    435   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         436  +
        /* OperationErrorGenerator.kt:197 */
  382    437   
        ::std::option::Option::None
         438  +
        /* OperationErrorGenerator.kt:190 */
  383    439   
    }
         440  +
    /* OperationErrorGenerator.kt:182 */
  384    441   
}
         442  +
/* OperationErrorGenerator.kt:163 */
  385    443   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for XmlEmptyMapsError {
         444  +
    /* OperationErrorGenerator.kt:164 */
  386    445   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         446  +
        /* OperationErrorGenerator.kt:318 */
  387    447   
        match self {
  388         -
            Self::Unhandled(_inner) => &_inner.meta,
         448  +
            /* OperationErrorGenerator.kt:326 */
         449  +
            Self::Unhandled(_inner) => {
         450  +
                /* OperationErrorGenerator.kt:168 */
         451  +
                &_inner.meta
         452  +
                /* OperationErrorGenerator.kt:326 */
         453  +
            } /* OperationErrorGenerator.kt:318 */
  389    454   
        }
         455  +
        /* OperationErrorGenerator.kt:164 */
  390    456   
    }
         457  +
    /* OperationErrorGenerator.kt:163 */
  391    458   
}
         459  +
/* OperationErrorGenerator.kt:109 */
  392    460   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for XmlEmptyMapsError {
         461  +
    /* OperationErrorGenerator.kt:110 */
  393    462   
    fn create_unhandled_error(
  394    463   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  395    464   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  396    465   
    ) -> Self {
         466  +
        /* OperationErrorGenerator.kt:121 */
  397    467   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  398    468   
            source,
  399    469   
            meta: meta.unwrap_or_default(),
  400    470   
        })
         471  +
        /* OperationErrorGenerator.kt:110 */
  401    472   
    }
         473  +
    /* OperationErrorGenerator.kt:109 */
  402    474   
}
  403    475   
         476  +
/* CodegenDelegator.kt:255 */
  404    477   
pub use crate::operation::xml_empty_maps::_xml_empty_maps_output::XmlEmptyMapsOutput;
  405    478   
         479  +
/* CodegenDelegator.kt:255 */
  406    480   
pub use crate::operation::xml_empty_maps::_xml_empty_maps_input::XmlEmptyMapsInput;
  407    481   
         482  +
/* RustModule.kt:172 */
  408    483   
mod _xml_empty_maps_input;
  409    484   
         485  +
/* RustModule.kt:172 */
  410    486   
mod _xml_empty_maps_output;
  411    487   
  412         -
/// Builders
         488  +
/// /* CodegenDelegator.kt:51 */Builders
  413    489   
pub mod builders;

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/xml_empty_maps/_xml_empty_maps_input.rs

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

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/xml_empty_maps/_xml_empty_maps_output.rs

@@ -1,1 +55,97 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* StructureGenerator.kt:197 */
    2      3   
#[allow(missing_docs)] // documentation missing in model
           4  +
/* RustType.kt:516 */
    3      5   
#[non_exhaustive]
           6  +
/* RustType.kt:516 */
    4      7   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    5         -
pub struct XmlEmptyMapsOutput {
           8  +
pub /* StructureGenerator.kt:201 */ struct XmlEmptyMapsOutput {
           9  +
    /* StructureGenerator.kt:231 */
    6     10   
    #[allow(missing_docs)] // documentation missing in model
    7     11   
    pub my_map: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::GreetingStruct>>,
          12  +
    /* StructureGenerator.kt:201 */
    8     13   
}
          14  +
/* StructureGenerator.kt:135 */
    9     15   
impl XmlEmptyMapsOutput {
          16  +
    /* StructureGenerator.kt:231 */
   10     17   
    #[allow(missing_docs)] // documentation missing in model
          18  +
                           /* StructureGenerator.kt:166 */
   11     19   
    pub fn my_map(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, crate::types::GreetingStruct>> {
          20  +
        /* StructureGenerator.kt:170 */
   12     21   
        self.my_map.as_ref()
          22  +
        /* StructureGenerator.kt:166 */
   13     23   
    }
          24  +
    /* StructureGenerator.kt:135 */
   14     25   
}
          26  +
/* ClientCodegenVisitor.kt:237 */
   15     27   
impl XmlEmptyMapsOutput {
   16         -
    /// Creates a new builder-style object to manufacture [`XmlEmptyMapsOutput`](crate::operation::xml_empty_maps::XmlEmptyMapsOutput).
          28  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`XmlEmptyMapsOutput`](crate::operation::xml_empty_maps::XmlEmptyMapsOutput).
          29  +
    /* BuilderGenerator.kt:175 */
   17     30   
    pub fn builder() -> crate::operation::xml_empty_maps::builders::XmlEmptyMapsOutputBuilder {
          31  +
        /* BuilderGenerator.kt:176 */
   18     32   
        crate::operation::xml_empty_maps::builders::XmlEmptyMapsOutputBuilder::default()
          33  +
        /* BuilderGenerator.kt:175 */
   19     34   
    }
          35  +
    /* ClientCodegenVisitor.kt:237 */
   20     36   
}
   21     37   
   22         -
/// A builder for [`XmlEmptyMapsOutput`](crate::operation::xml_empty_maps::XmlEmptyMapsOutput).
          38  +
/// /* BuilderGenerator.kt:342 */A builder for [`XmlEmptyMapsOutput`](crate::operation::xml_empty_maps::XmlEmptyMapsOutput).
          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 XmlEmptyMapsOutputBuilder {
          45  +
    /* BuilderGenerator.kt:275 */
   26     46   
    pub(crate) my_map: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::GreetingStruct>>,
          47  +
    /* BuilderGenerator.kt:345 */
   27     48   
}
          49  +
/* BuilderGenerator.kt:355 */
   28     50   
impl XmlEmptyMapsOutputBuilder {
   29         -
    /// Adds a key-value pair to `my_map`.
          51  +
    /// /* BuilderGenerator.kt:436 */Adds a key-value pair to `my_map`.
          52  +
    /* BuilderGenerator.kt:437 */
   30     53   
    ///
   31         -
    /// To override the contents of this collection use [`set_my_map`](Self::set_my_map).
          54  +
    /// /* BuilderGenerator.kt:438 */To override the contents of this collection use [`set_my_map`](Self::set_my_map).
          55  +
    /* BuilderGenerator.kt:439 */
   32     56   
    ///
          57  +
    /* BuilderGenerator.kt:445 */
   33     58   
    pub fn my_map(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::GreetingStruct) -> Self {
          59  +
        /* BuilderGenerator.kt:448 */
   34     60   
        let mut hash_map = self.my_map.unwrap_or_default();
   35     61   
        hash_map.insert(k.into(), v);
   36     62   
        self.my_map = ::std::option::Option::Some(hash_map);
   37     63   
        self
          64  +
        /* BuilderGenerator.kt:445 */
   38     65   
    }
          66  +
    /* BuilderGenerator.kt:312 */
   39     67   
    #[allow(missing_docs)] // documentation missing in model
          68  +
                           /* BuilderGenerator.kt:314 */
   40     69   
    pub fn set_my_map(
   41     70   
        mut self,
   42     71   
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::GreetingStruct>>,
   43     72   
    ) -> Self {
          73  +
        /* BuilderGenerator.kt:315 */
   44     74   
        self.my_map = input;
   45     75   
        self
          76  +
        /* BuilderGenerator.kt:314 */
   46     77   
    }
          78  +
    /* BuilderGenerator.kt:334 */
   47     79   
    #[allow(missing_docs)] // documentation missing in model
          80  +
                           /* BuilderGenerator.kt:336 */
   48     81   
    pub fn get_my_map(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::GreetingStruct>> {
          82  +
        /* BuilderGenerator.kt:337 */
   49     83   
        &self.my_map
          84  +
        /* BuilderGenerator.kt:336 */
   50     85   
    }
   51         -
    /// Consumes the builder and constructs a [`XmlEmptyMapsOutput`](crate::operation::xml_empty_maps::XmlEmptyMapsOutput).
          86  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`XmlEmptyMapsOutput`](crate::operation::xml_empty_maps::XmlEmptyMapsOutput).
          87  +
    /* BuilderGenerator.kt:253 */
   52     88   
    pub fn build(self) -> crate::operation::xml_empty_maps::XmlEmptyMapsOutput {
   53         -
        crate::operation::xml_empty_maps::XmlEmptyMapsOutput { my_map: self.my_map }
          89  +
        /* BuilderGenerator.kt:477 */
          90  +
        crate::operation::xml_empty_maps::XmlEmptyMapsOutput {
          91  +
            /* BuilderGenerator.kt:481 */ my_map: self.my_map,
          92  +
            /* BuilderGenerator.kt:477 */
   54     93   
        }
          94  +
        /* BuilderGenerator.kt:253 */
          95  +
    }
          96  +
    /* BuilderGenerator.kt:355 */
   55     97   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/xml_empty_maps/builders.rs

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

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/xml_enums.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 `XmlEnums`.
           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 XmlEnums;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl XmlEnums {
    7         -
    /// Creates a new `XmlEnums`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `XmlEnums`
          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_enums::XmlEnumsInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::xml_enums::XmlEnumsOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::xml_enums::XmlEnumsError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -53,62 +254,271 @@
   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 XmlEnums {
   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("XmlEnums");
   87     98   
   88     99   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   89    100   
            XmlEnumsRequestSerializer,
   90    101   
        ));
   91    102   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
   92    103   
            XmlEnumsResponseDeserializer,
   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   
            "XmlEnums",
  101    112   
            "Query 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("XmlEnums")
  113    124   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  114    125   
            .with_interceptor(XmlEnumsEndpointParamsInterceptor)
  115    126   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  116    127   
                crate::operation::xml_enums::XmlEnumsError,
  117    128   
            >::new())
  118    129   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  119    130   
                crate::operation::xml_enums::XmlEnumsError,
  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 XmlEnumsResponseDeserializer;
  128    140   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for XmlEnumsResponseDeserializer {
  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_enums::de_xml_enums_http_error(status, headers, body)
  141    153   
        } else {
  142    154   
            crate::protocol_serde::shape_xml_enums::de_xml_enums_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 XmlEnumsRequestSerializer;
  149    162   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for XmlEnumsRequestSerializer {
  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_enums::XmlEnumsInput>().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_enums::XmlEnumsInput,
  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, "/").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_enums::XmlEnumsInput,
  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/x-www-form-urlencoded");
  181    194   
            builder
  182    195   
        };
  183    196   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_xml_enums_input::ser_xml_enums_input_input_input(&input)?);
  184    197   
  185    198   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  186    199   
    }
  187    200   
}
         201  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  188    202   
#[derive(Debug)]
  189    203   
struct XmlEnumsEndpointParamsInterceptor;
  190    204   
  191    205   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for XmlEnumsEndpointParamsInterceptor {
  192    206   
    fn name(&self) -> &'static str {
  193    207   
        "XmlEnumsEndpointParamsInterceptor"
  194    208   
    }
  195    209   
  196    210   
    fn read_before_execution(
  197    211   
        &self,
  198    212   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  199    213   
            '_,
  200    214   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  201    215   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  202    216   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  203    217   
        >,
  204    218   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  205    219   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  206    220   
        let _input = context
  207    221   
            .input()
  208    222   
            .downcast_ref::<XmlEnumsInput>()
  209    223   
            .ok_or("failed to downcast to XmlEnumsInput")?;
  210    224   
  211    225   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  212    226   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  213    227   
        })?;
  214    228   
        cfg.interceptor_state()
  215    229   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  216    230   
        ::std::result::Result::Ok(())
  217    231   
    }
  218    232   
}
  219    233   
  220    234   
// The get_* functions below are generated from JMESPath expressions in the
  221    235   
// operationContextParams trait. They target the operation's input shape.
  222    236   
         237  +
/* RustType.kt:516 */
  223    238   
#[allow(unreachable_code, unused_variables)]
         239  +
/* RustType.kt:516 */
  224    240   
#[cfg(test)]
         241  +
/* ProtocolTestGenerator.kt:98 */
  225    242   
mod xml_enums_test {
  226    243   
  227    244   
    /// Serializes simple scalar properties
  228    245   
    /// Test ID: QueryXmlEnums
  229    246   
    #[::tokio::test]
  230    247   
    #[::tracing_test::traced_test]
  231    248   
    async fn query_xml_enums_response() {
  232    249   
        let expected_output = crate::operation::xml_enums::XmlEnumsOutput::builder()
  233    250   
            .set_foo_enum1(::std::option::Option::Some(
  234    251   
                "Foo".parse::<crate::types::FooEnum>().expect("static value validated to member"),
@@ -273,290 +402,478 @@
  293    310   
        ::pretty_assertions::assert_eq!(parsed.foo_enum2, expected_output.foo_enum2, "Unexpected value for `foo_enum2`");
  294    311   
        ::pretty_assertions::assert_eq!(parsed.foo_enum3, expected_output.foo_enum3, "Unexpected value for `foo_enum3`");
  295    312   
        ::pretty_assertions::assert_eq!(
  296    313   
            parsed.foo_enum_list,
  297    314   
            expected_output.foo_enum_list,
  298    315   
            "Unexpected value for `foo_enum_list`"
  299    316   
        );
  300    317   
        ::pretty_assertions::assert_eq!(parsed.foo_enum_set, expected_output.foo_enum_set, "Unexpected value for `foo_enum_set`");
  301    318   
        ::pretty_assertions::assert_eq!(parsed.foo_enum_map, expected_output.foo_enum_map, "Unexpected value for `foo_enum_map`");
  302    319   
    }
         320  +
         321  +
    /* ProtocolTestGenerator.kt:98 */
  303    322   
}
  304    323   
         324  +
/* OperationErrorGenerator.kt:79 */
  305    325   
/// Error type for the `XmlEnumsError` operation.
         326  +
/* RustType.kt:516 */
  306    327   
#[non_exhaustive]
         328  +
/* RustType.kt:516 */
  307    329   
#[derive(::std::fmt::Debug)]
  308         -
pub enum XmlEnumsError {
         330  +
pub /* OperationErrorGenerator.kt:81 */ enum XmlEnumsError {
         331  +
    /* OperationErrorGenerator.kt:88 */
  309    332   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  310    333   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  311    334   
    variable wildcard pattern and check `.code()`:
  312    335   
     \
  313    336   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  314    337   
     \
  315    338   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-XmlEnumsError) for what information is available for the error.")]
  316    339   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         340  +
    /* OperationErrorGenerator.kt:81 */
  317    341   
}
         342  +
/* OperationErrorGenerator.kt:218 */
  318    343   
impl XmlEnumsError {
         344  +
    /* OperationErrorGenerator.kt:219 */
  319    345   
    /// Creates the `XmlEnumsError::Unhandled` variant from any error type.
  320    346   
    pub fn unhandled(
  321    347   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  322    348   
    ) -> Self {
  323    349   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  324    350   
            source: err.into(),
  325    351   
            meta: ::std::default::Default::default(),
  326    352   
        })
  327    353   
    }
  328    354   
  329    355   
    /// Creates the `XmlEnumsError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  330    356   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  331    357   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  332    358   
            source: err.clone().into(),
  333    359   
            meta: err,
  334    360   
        })
  335    361   
    }
  336         -
    ///
         362  +
    /// /* OperationErrorGenerator.kt:236 */
  337    363   
    /// Returns error metadata, which includes the error code, message,
  338    364   
    /// request ID, and potentially additional information.
  339    365   
    ///
         366  +
    /* OperationErrorGenerator.kt:242 */
  340    367   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         368  +
        /* OperationErrorGenerator.kt:243 */
  341    369   
        match self {
  342         -
            Self::Unhandled(e) => &e.meta,
         370  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         371  +
            /* OperationErrorGenerator.kt:243 */
  343    372   
        }
         373  +
        /* OperationErrorGenerator.kt:242 */
  344    374   
    }
         375  +
    /* OperationErrorGenerator.kt:218 */
  345    376   
}
         377  +
/* OperationErrorGenerator.kt:269 */
  346    378   
impl ::std::error::Error for XmlEnumsError {
         379  +
    /* OperationErrorGenerator.kt:270 */
  347    380   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         381  +
        /* OperationErrorGenerator.kt:318 */
  348    382   
        match self {
  349         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         383  +
            /* OperationErrorGenerator.kt:326 */
         384  +
            Self::Unhandled(_inner) => {
         385  +
                /* OperationErrorGenerator.kt:279 */
         386  +
                ::std::option::Option::Some(&*_inner.source)
         387  +
                /* OperationErrorGenerator.kt:326 */
         388  +
            } /* OperationErrorGenerator.kt:318 */
  350    389   
        }
         390  +
        /* OperationErrorGenerator.kt:270 */
  351    391   
    }
         392  +
    /* OperationErrorGenerator.kt:269 */
  352    393   
}
         394  +
/* OperationErrorGenerator.kt:133 */
  353    395   
impl ::std::fmt::Display for XmlEnumsError {
         396  +
    /* OperationErrorGenerator.kt:134 */
  354    397   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         398  +
        /* OperationErrorGenerator.kt:318 */
  355    399   
        match self {
         400  +
            /* OperationErrorGenerator.kt:326 */
  356    401   
            Self::Unhandled(_inner) => {
         402  +
                /* OperationErrorGenerator.kt:139 */
  357    403   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  358    404   
                    write!(f, "unhandled error ({code})")
  359    405   
                } else {
  360    406   
                    f.write_str("unhandled error")
  361    407   
                }
         408  +
                /* OperationErrorGenerator.kt:326 */
         409  +
            } /* OperationErrorGenerator.kt:318 */
  362    410   
        }
         411  +
        /* OperationErrorGenerator.kt:134 */
  363    412   
    }
  364         -
    }
         413  +
    /* OperationErrorGenerator.kt:133 */
  365    414   
}
         415  +
/* OperationErrorGenerator.kt:182 */
  366    416   
impl ::aws_smithy_types::retry::ProvideErrorKind for XmlEnumsError {
         417  +
    /* OperationErrorGenerator.kt:186 */
  367    418   
    fn code(&self) -> ::std::option::Option<&str> {
         419  +
        /* OperationErrorGenerator.kt:187 */
  368    420   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         421  +
        /* OperationErrorGenerator.kt:186 */
  369    422   
    }
         423  +
    /* OperationErrorGenerator.kt:190 */
  370    424   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         425  +
        /* OperationErrorGenerator.kt:197 */
  371    426   
        ::std::option::Option::None
         427  +
        /* OperationErrorGenerator.kt:190 */
  372    428   
    }
         429  +
    /* OperationErrorGenerator.kt:182 */
  373    430   
}
         431  +
/* OperationErrorGenerator.kt:163 */
  374    432   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for XmlEnumsError {
         433  +
    /* OperationErrorGenerator.kt:164 */
  375    434   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         435  +
        /* OperationErrorGenerator.kt:318 */
  376    436   
        match self {
  377         -
            Self::Unhandled(_inner) => &_inner.meta,
         437  +
            /* OperationErrorGenerator.kt:326 */
         438  +
            Self::Unhandled(_inner) => {
         439  +
                /* OperationErrorGenerator.kt:168 */
         440  +
                &_inner.meta
         441  +
                /* OperationErrorGenerator.kt:326 */
         442  +
            } /* OperationErrorGenerator.kt:318 */
  378    443   
        }
         444  +
        /* OperationErrorGenerator.kt:164 */
  379    445   
    }
         446  +
    /* OperationErrorGenerator.kt:163 */
  380    447   
}
         448  +
/* OperationErrorGenerator.kt:109 */
  381    449   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for XmlEnumsError {
         450  +
    /* OperationErrorGenerator.kt:110 */
  382    451   
    fn create_unhandled_error(
  383    452   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  384    453   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  385    454   
    ) -> Self {
         455  +
        /* OperationErrorGenerator.kt:121 */
  386    456   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  387    457   
            source,
  388    458   
            meta: meta.unwrap_or_default(),
  389    459   
        })
         460  +
        /* OperationErrorGenerator.kt:110 */
  390    461   
    }
         462  +
    /* OperationErrorGenerator.kt:109 */
  391    463   
}
  392    464   
         465  +
/* CodegenDelegator.kt:255 */
  393    466   
pub use crate::operation::xml_enums::_xml_enums_output::XmlEnumsOutput;
  394    467   
         468  +
/* CodegenDelegator.kt:255 */
  395    469   
pub use crate::operation::xml_enums::_xml_enums_input::XmlEnumsInput;
  396    470   
         471  +
/* RustModule.kt:172 */
  397    472   
mod _xml_enums_input;
  398    473   
         474  +
/* RustModule.kt:172 */
  399    475   
mod _xml_enums_output;
  400    476   
  401         -
/// Builders
         477  +
/// /* CodegenDelegator.kt:51 */Builders
  402    478   
pub mod builders;

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/xml_enums/_xml_enums_input.rs

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

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/xml_enums/_xml_enums_output.rs

@@ -1,1 +181,322 @@
    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 XmlEnumsOutput {
           8  +
pub /* StructureGenerator.kt:201 */ struct XmlEnumsOutput {
           9  +
    /* StructureGenerator.kt:231 */
    6     10   
    #[allow(missing_docs)] // documentation missing in model
    7     11   
    pub foo_enum1: ::std::option::Option<crate::types::FooEnum>,
          12  +
    /* StructureGenerator.kt:231 */
    8     13   
    #[allow(missing_docs)] // documentation missing in model
    9     14   
    pub foo_enum2: ::std::option::Option<crate::types::FooEnum>,
          15  +
    /* StructureGenerator.kt:231 */
   10     16   
    #[allow(missing_docs)] // documentation missing in model
   11     17   
    pub foo_enum3: ::std::option::Option<crate::types::FooEnum>,
          18  +
    /* StructureGenerator.kt:231 */
   12     19   
    #[allow(missing_docs)] // documentation missing in model
   13     20   
    pub foo_enum_list: ::std::option::Option<::std::vec::Vec<crate::types::FooEnum>>,
          21  +
    /* StructureGenerator.kt:231 */
   14     22   
    #[allow(missing_docs)] // documentation missing in model
   15     23   
    pub foo_enum_set: ::std::option::Option<::std::vec::Vec<crate::types::FooEnum>>,
          24  +
    /* StructureGenerator.kt:231 */
   16     25   
    #[allow(missing_docs)] // documentation missing in model
   17     26   
    pub foo_enum_map: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::FooEnum>>,
          27  +
    /* StructureGenerator.kt:201 */
   18     28   
}
          29  +
/* StructureGenerator.kt:135 */
   19     30   
impl XmlEnumsOutput {
          31  +
    /* StructureGenerator.kt:231 */
   20     32   
    #[allow(missing_docs)] // documentation missing in model
          33  +
                           /* StructureGenerator.kt:166 */
   21     34   
    pub fn foo_enum1(&self) -> ::std::option::Option<&crate::types::FooEnum> {
          35  +
        /* StructureGenerator.kt:170 */
   22     36   
        self.foo_enum1.as_ref()
          37  +
        /* StructureGenerator.kt:166 */
   23     38   
    }
          39  +
    /* StructureGenerator.kt:231 */
   24     40   
    #[allow(missing_docs)] // documentation missing in model
          41  +
                           /* StructureGenerator.kt:166 */
   25     42   
    pub fn foo_enum2(&self) -> ::std::option::Option<&crate::types::FooEnum> {
          43  +
        /* StructureGenerator.kt:170 */
   26     44   
        self.foo_enum2.as_ref()
          45  +
        /* StructureGenerator.kt:166 */
   27     46   
    }
          47  +
    /* StructureGenerator.kt:231 */
   28     48   
    #[allow(missing_docs)] // documentation missing in model
          49  +
                           /* StructureGenerator.kt:166 */
   29     50   
    pub fn foo_enum3(&self) -> ::std::option::Option<&crate::types::FooEnum> {
          51  +
        /* StructureGenerator.kt:170 */
   30     52   
        self.foo_enum3.as_ref()
          53  +
        /* StructureGenerator.kt:166 */
   31     54   
    }
          55  +
    /* StructureGenerator.kt:231 */
   32     56   
    #[allow(missing_docs)] // documentation missing in model
   33         -
    ///
   34         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.foo_enum_list.is_none()`.
          57  +
    /// /* StructureGenerator.kt:162 */
          58  +
    /// /* 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 `.foo_enum_list.is_none()`.
          59  +
    /* StructureGenerator.kt:166 */
   35     60   
    pub fn foo_enum_list(&self) -> &[crate::types::FooEnum] {
   36         -
        self.foo_enum_list.as_deref().unwrap_or_default()
          61  +
        /* StructureGenerator.kt:169 */
          62  +
        self.foo_enum_list
          63  +
            .as_deref()
          64  +
            /* StructureGenerator.kt:175 */
          65  +
            .unwrap_or_default()
          66  +
        /* StructureGenerator.kt:166 */
   37     67   
    }
          68  +
    /* StructureGenerator.kt:231 */
   38     69   
    #[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 `.foo_enum_set.is_none()`.
          70  +
    /// /* StructureGenerator.kt:162 */
          71  +
    /// /* 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 `.foo_enum_set.is_none()`.
          72  +
    /* StructureGenerator.kt:166 */
   41     73   
    pub fn foo_enum_set(&self) -> &[crate::types::FooEnum] {
   42         -
        self.foo_enum_set.as_deref().unwrap_or_default()
          74  +
        /* StructureGenerator.kt:169 */
          75  +
        self.foo_enum_set
          76  +
            .as_deref()
          77  +
            /* StructureGenerator.kt:175 */
          78  +
            .unwrap_or_default()
          79  +
        /* StructureGenerator.kt:166 */
   43     80   
    }
          81  +
    /* StructureGenerator.kt:231 */
   44     82   
    #[allow(missing_docs)] // documentation missing in model
          83  +
                           /* StructureGenerator.kt:166 */
   45     84   
    pub fn foo_enum_map(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, crate::types::FooEnum>> {
          85  +
        /* StructureGenerator.kt:170 */
   46     86   
        self.foo_enum_map.as_ref()
          87  +
        /* StructureGenerator.kt:166 */
   47     88   
    }
          89  +
    /* StructureGenerator.kt:135 */
   48     90   
}
          91  +
/* ClientCodegenVisitor.kt:237 */
   49     92   
impl XmlEnumsOutput {
   50         -
    /// Creates a new builder-style object to manufacture [`XmlEnumsOutput`](crate::operation::xml_enums::XmlEnumsOutput).
          93  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`XmlEnumsOutput`](crate::operation::xml_enums::XmlEnumsOutput).
          94  +
    /* BuilderGenerator.kt:175 */
   51     95   
    pub fn builder() -> crate::operation::xml_enums::builders::XmlEnumsOutputBuilder {
          96  +
        /* BuilderGenerator.kt:176 */
   52     97   
        crate::operation::xml_enums::builders::XmlEnumsOutputBuilder::default()
          98  +
        /* BuilderGenerator.kt:175 */
   53     99   
    }
         100  +
    /* ClientCodegenVisitor.kt:237 */
   54    101   
}
   55    102   
   56         -
/// A builder for [`XmlEnumsOutput`](crate::operation::xml_enums::XmlEnumsOutput).
         103  +
/// /* BuilderGenerator.kt:342 */A builder for [`XmlEnumsOutput`](crate::operation::xml_enums::XmlEnumsOutput).
         104  +
/* RustType.kt:516 */
   57    105   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         106  +
/* RustType.kt:516 */
   58    107   
#[non_exhaustive]
         108  +
/* BuilderGenerator.kt:345 */
   59    109   
pub struct XmlEnumsOutputBuilder {
   60         -
    pub(crate) foo_enum1: ::std::option::Option<crate::types::FooEnum>,
   61         -
    pub(crate) foo_enum2: ::std::option::Option<crate::types::FooEnum>,
   62         -
    pub(crate) foo_enum3: ::std::option::Option<crate::types::FooEnum>,
   63         -
    pub(crate) foo_enum_list: ::std::option::Option<::std::vec::Vec<crate::types::FooEnum>>,
   64         -
    pub(crate) foo_enum_set: ::std::option::Option<::std::vec::Vec<crate::types::FooEnum>>,
         110  +
    /* BuilderGenerator.kt:275 */ pub(crate) foo_enum1: ::std::option::Option<crate::types::FooEnum>,
         111  +
    /* BuilderGenerator.kt:275 */ pub(crate) foo_enum2: ::std::option::Option<crate::types::FooEnum>,
         112  +
    /* BuilderGenerator.kt:275 */ pub(crate) foo_enum3: ::std::option::Option<crate::types::FooEnum>,
         113  +
    /* BuilderGenerator.kt:275 */ pub(crate) foo_enum_list: ::std::option::Option<::std::vec::Vec<crate::types::FooEnum>>,
         114  +
    /* BuilderGenerator.kt:275 */ pub(crate) foo_enum_set: ::std::option::Option<::std::vec::Vec<crate::types::FooEnum>>,
         115  +
    /* BuilderGenerator.kt:275 */
   65    116   
    pub(crate) foo_enum_map: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::FooEnum>>,
         117  +
    /* BuilderGenerator.kt:345 */
   66    118   
}
         119  +
/* BuilderGenerator.kt:355 */
   67    120   
impl XmlEnumsOutputBuilder {
         121  +
    /* BuilderGenerator.kt:286 */
   68    122   
    #[allow(missing_docs)] // documentation missing in model
         123  +
                           /* BuilderGenerator.kt:291 */
   69    124   
    pub fn foo_enum1(mut self, input: crate::types::FooEnum) -> Self {
         125  +
        /* BuilderGenerator.kt:292 */
   70    126   
        self.foo_enum1 = ::std::option::Option::Some(input);
         127  +
        /* BuilderGenerator.kt:293 */
   71    128   
        self
         129  +
        /* BuilderGenerator.kt:291 */
   72    130   
    }
         131  +
    /* BuilderGenerator.kt:312 */
   73    132   
    #[allow(missing_docs)] // documentation missing in model
         133  +
                           /* BuilderGenerator.kt:314 */
   74    134   
    pub fn set_foo_enum1(mut self, input: ::std::option::Option<crate::types::FooEnum>) -> Self {
         135  +
        /* BuilderGenerator.kt:315 */
   75    136   
        self.foo_enum1 = input;
   76    137   
        self
         138  +
        /* BuilderGenerator.kt:314 */
   77    139   
    }
         140  +
    /* BuilderGenerator.kt:334 */
   78    141   
    #[allow(missing_docs)] // documentation missing in model
         142  +
                           /* BuilderGenerator.kt:336 */
   79    143   
    pub fn get_foo_enum1(&self) -> &::std::option::Option<crate::types::FooEnum> {
         144  +
        /* BuilderGenerator.kt:337 */
   80    145   
        &self.foo_enum1
         146  +
        /* BuilderGenerator.kt:336 */
   81    147   
    }
         148  +
    /* BuilderGenerator.kt:286 */
   82    149   
    #[allow(missing_docs)] // documentation missing in model
         150  +
                           /* BuilderGenerator.kt:291 */
   83    151   
    pub fn foo_enum2(mut self, input: crate::types::FooEnum) -> Self {
         152  +
        /* BuilderGenerator.kt:292 */
   84    153   
        self.foo_enum2 = ::std::option::Option::Some(input);
         154  +
        /* BuilderGenerator.kt:293 */
   85    155   
        self
         156  +
        /* BuilderGenerator.kt:291 */
   86    157   
    }
         158  +
    /* BuilderGenerator.kt:312 */
   87    159   
    #[allow(missing_docs)] // documentation missing in model
         160  +
                           /* BuilderGenerator.kt:314 */
   88    161   
    pub fn set_foo_enum2(mut self, input: ::std::option::Option<crate::types::FooEnum>) -> Self {
         162  +
        /* BuilderGenerator.kt:315 */
   89    163   
        self.foo_enum2 = input;
   90    164   
        self
         165  +
        /* BuilderGenerator.kt:314 */
   91    166   
    }
         167  +
    /* BuilderGenerator.kt:334 */
   92    168   
    #[allow(missing_docs)] // documentation missing in model
         169  +
                           /* BuilderGenerator.kt:336 */
   93    170   
    pub fn get_foo_enum2(&self) -> &::std::option::Option<crate::types::FooEnum> {
         171  +
        /* BuilderGenerator.kt:337 */
   94    172   
        &self.foo_enum2
         173  +
        /* BuilderGenerator.kt:336 */
   95    174   
    }
         175  +
    /* BuilderGenerator.kt:286 */
   96    176   
    #[allow(missing_docs)] // documentation missing in model
         177  +
                           /* BuilderGenerator.kt:291 */
   97    178   
    pub fn foo_enum3(mut self, input: crate::types::FooEnum) -> Self {
         179  +
        /* BuilderGenerator.kt:292 */
   98    180   
        self.foo_enum3 = ::std::option::Option::Some(input);
         181  +
        /* BuilderGenerator.kt:293 */
   99    182   
        self
         183  +
        /* BuilderGenerator.kt:291 */
  100    184   
    }
         185  +
    /* BuilderGenerator.kt:312 */
  101    186   
    #[allow(missing_docs)] // documentation missing in model
         187  +
                           /* BuilderGenerator.kt:314 */
  102    188   
    pub fn set_foo_enum3(mut self, input: ::std::option::Option<crate::types::FooEnum>) -> Self {
         189  +
        /* BuilderGenerator.kt:315 */
  103    190   
        self.foo_enum3 = input;
  104    191   
        self
         192  +
        /* BuilderGenerator.kt:314 */
  105    193   
    }
         194  +
    /* BuilderGenerator.kt:334 */
  106    195   
    #[allow(missing_docs)] // documentation missing in model
         196  +
                           /* BuilderGenerator.kt:336 */
  107    197   
    pub fn get_foo_enum3(&self) -> &::std::option::Option<crate::types::FooEnum> {
         198  +
        /* BuilderGenerator.kt:337 */
  108    199   
        &self.foo_enum3
         200  +
        /* BuilderGenerator.kt:336 */
  109    201   
    }
  110         -
    /// Appends an item to `foo_enum_list`.
         202  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `foo_enum_list`.
         203  +
    /* BuilderGenerator.kt:411 */
  111    204   
    ///
  112         -
    /// To override the contents of this collection use [`set_foo_enum_list`](Self::set_foo_enum_list).
         205  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_foo_enum_list`](Self::set_foo_enum_list).
         206  +
    /* BuilderGenerator.kt:413 */
  113    207   
    ///
         208  +
    /* BuilderGenerator.kt:418 */
  114    209   
    pub fn foo_enum_list(mut self, input: crate::types::FooEnum) -> Self {
         210  +
        /* BuilderGenerator.kt:419 */
  115    211   
        let mut v = self.foo_enum_list.unwrap_or_default();
  116    212   
        v.push(input);
  117    213   
        self.foo_enum_list = ::std::option::Option::Some(v);
  118    214   
        self
         215  +
        /* BuilderGenerator.kt:418 */
  119    216   
    }
         217  +
    /* BuilderGenerator.kt:312 */
  120    218   
    #[allow(missing_docs)] // documentation missing in model
         219  +
                           /* BuilderGenerator.kt:314 */
  121    220   
    pub fn set_foo_enum_list(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::FooEnum>>) -> Self {
         221  +
        /* BuilderGenerator.kt:315 */
  122    222   
        self.foo_enum_list = input;
  123    223   
        self
         224  +
        /* BuilderGenerator.kt:314 */
  124    225   
    }
         226  +
    /* BuilderGenerator.kt:334 */
  125    227   
    #[allow(missing_docs)] // documentation missing in model
         228  +
                           /* BuilderGenerator.kt:336 */
  126    229   
    pub fn get_foo_enum_list(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::FooEnum>> {
         230  +
        /* BuilderGenerator.kt:337 */
  127    231   
        &self.foo_enum_list
         232  +
        /* BuilderGenerator.kt:336 */
  128    233   
    }
  129         -
    /// Appends an item to `foo_enum_set`.
         234  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `foo_enum_set`.
         235  +
    /* BuilderGenerator.kt:411 */
  130    236   
    ///
  131         -
    /// To override the contents of this collection use [`set_foo_enum_set`](Self::set_foo_enum_set).
         237  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_foo_enum_set`](Self::set_foo_enum_set).
         238  +
    /* BuilderGenerator.kt:413 */
  132    239   
    ///
         240  +
    /* BuilderGenerator.kt:418 */
  133    241   
    pub fn foo_enum_set(mut self, input: crate::types::FooEnum) -> Self {
         242  +
        /* BuilderGenerator.kt:419 */
  134    243   
        let mut v = self.foo_enum_set.unwrap_or_default();
  135    244   
        v.push(input);
  136    245   
        self.foo_enum_set = ::std::option::Option::Some(v);
  137    246   
        self
         247  +
        /* BuilderGenerator.kt:418 */
  138    248   
    }
         249  +
    /* BuilderGenerator.kt:312 */
  139    250   
    #[allow(missing_docs)] // documentation missing in model
         251  +
                           /* BuilderGenerator.kt:314 */
  140    252   
    pub fn set_foo_enum_set(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::FooEnum>>) -> Self {
         253  +
        /* BuilderGenerator.kt:315 */
  141    254   
        self.foo_enum_set = input;
  142    255   
        self
         256  +
        /* BuilderGenerator.kt:314 */
  143    257   
    }
         258  +
    /* BuilderGenerator.kt:334 */
  144    259   
    #[allow(missing_docs)] // documentation missing in model
         260  +
                           /* BuilderGenerator.kt:336 */
  145    261   
    pub fn get_foo_enum_set(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::FooEnum>> {
         262  +
        /* BuilderGenerator.kt:337 */
  146    263   
        &self.foo_enum_set
         264  +
        /* BuilderGenerator.kt:336 */
  147    265   
    }
  148         -
    /// Adds a key-value pair to `foo_enum_map`.
         266  +
    /// /* BuilderGenerator.kt:436 */Adds a key-value pair to `foo_enum_map`.
         267  +
    /* BuilderGenerator.kt:437 */
  149    268   
    ///
  150         -
    /// To override the contents of this collection use [`set_foo_enum_map`](Self::set_foo_enum_map).
         269  +
    /// /* BuilderGenerator.kt:438 */To override the contents of this collection use [`set_foo_enum_map`](Self::set_foo_enum_map).
         270  +
    /* BuilderGenerator.kt:439 */
  151    271   
    ///
         272  +
    /* BuilderGenerator.kt:445 */
  152    273   
    pub fn foo_enum_map(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::FooEnum) -> Self {
         274  +
        /* BuilderGenerator.kt:448 */
  153    275   
        let mut hash_map = self.foo_enum_map.unwrap_or_default();
  154    276   
        hash_map.insert(k.into(), v);
  155    277   
        self.foo_enum_map = ::std::option::Option::Some(hash_map);
  156    278   
        self
         279  +
        /* BuilderGenerator.kt:445 */
  157    280   
    }
         281  +
    /* BuilderGenerator.kt:312 */
  158    282   
    #[allow(missing_docs)] // documentation missing in model
         283  +
                           /* BuilderGenerator.kt:314 */
  159    284   
    pub fn set_foo_enum_map(
  160    285   
        mut self,
  161    286   
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::FooEnum>>,
  162    287   
    ) -> Self {
         288  +
        /* BuilderGenerator.kt:315 */
  163    289   
        self.foo_enum_map = input;
  164    290   
        self
         291  +
        /* BuilderGenerator.kt:314 */
  165    292   
    }
         293  +
    /* BuilderGenerator.kt:334 */
  166    294   
    #[allow(missing_docs)] // documentation missing in model
         295  +
                           /* BuilderGenerator.kt:336 */
  167    296   
    pub fn get_foo_enum_map(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::FooEnum>> {
         297  +
        /* BuilderGenerator.kt:337 */
  168    298   
        &self.foo_enum_map
         299  +
        /* BuilderGenerator.kt:336 */
  169    300   
    }
  170         -
    /// Consumes the builder and constructs a [`XmlEnumsOutput`](crate::operation::xml_enums::XmlEnumsOutput).
         301  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`XmlEnumsOutput`](crate::operation::xml_enums::XmlEnumsOutput).
         302  +
    /* BuilderGenerator.kt:253 */
  171    303   
    pub fn build(self) -> crate::operation::xml_enums::XmlEnumsOutput {
         304  +
        /* BuilderGenerator.kt:477 */
  172    305   
        crate::operation::xml_enums::XmlEnumsOutput {
  173         -
            foo_enum1: self.foo_enum1,
         306  +
            /* BuilderGenerator.kt:481 */ foo_enum1: self.foo_enum1,
         307  +
            /* BuilderGenerator.kt:481 */
  174    308   
            foo_enum2: self.foo_enum2,
         309  +
            /* BuilderGenerator.kt:481 */
  175    310   
            foo_enum3: self.foo_enum3,
         311  +
            /* BuilderGenerator.kt:481 */
  176    312   
            foo_enum_list: self.foo_enum_list,
         313  +
            /* BuilderGenerator.kt:481 */
  177    314   
            foo_enum_set: self.foo_enum_set,
         315  +
            /* BuilderGenerator.kt:481 */
  178    316   
            foo_enum_map: self.foo_enum_map,
         317  +
            /* BuilderGenerator.kt:477 */
  179    318   
        }
         319  +
        /* BuilderGenerator.kt:253 */
  180    320   
    }
         321  +
    /* BuilderGenerator.kt:355 */
  181    322   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/xml_enums/builders.rs

@@ -1,1 +102,114 @@
    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_enums::_xml_enums_output::XmlEnumsOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::xml_enums::_xml_enums_input::XmlEnumsInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::xml_enums::builders::XmlEnumsInputBuilder {
    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_enums::XmlEnumsOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::xml_enums::XmlEnumsError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.xml_enums();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `XmlEnums`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `XmlEnums`.
   24     27   
///
   25         -
/// This example serializes enums as top level properties, in lists, sets, and maps.
          28  +
/// /* FluentBuilderGenerator.kt:130 */This example serializes enums as top level properties, in lists, sets, and maps.
          29  +
/* RustType.kt:516 */
   26     30   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          31  +
/* FluentBuilderGenerator.kt:270 */
   27     32   
pub struct XmlEnumsFluentBuilder {
   28     33   
    handle: ::std::sync::Arc<crate::client::Handle>,
   29     34   
    inner: crate::operation::xml_enums::builders::XmlEnumsInputBuilder,
   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_enums::XmlEnumsOutput, crate::operation::xml_enums::XmlEnumsError>
   33     39   
    for XmlEnumsFluentBuilder
   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_enums::XmlEnumsOutput, crate::operation::xml_enums::XmlEnumsError>,
   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 XmlEnumsFluentBuilder {
          52  +
    /* FluentBuilderGenerator.kt:288 */
   45     53   
    /// Creates a new `XmlEnumsFluentBuilder`.
   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 XmlEnums as a reference.
   54     63   
    pub fn as_input(&self) -> &crate::operation::xml_enums::builders::XmlEnumsInputBuilder {
   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_enums::XmlEnumsOutput,
   69     79   
        ::aws_smithy_runtime_api::client::result::SdkError<
   70     80   
            crate::operation::xml_enums::XmlEnumsError,
   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_enums::XmlEnums::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_enums::XmlEnums::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_enums::XmlEnumsOutput, crate::operation::xml_enums::XmlEnumsError, 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:282 */
  102    114   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/xml_int_enums.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 `XmlIntEnums`.
           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 XmlIntEnums;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl XmlIntEnums {
    7         -
    /// Creates a new `XmlIntEnums`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `XmlIntEnums`
          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_int_enums::XmlIntEnumsInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::xml_int_enums::XmlIntEnumsOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::xml_int_enums::XmlIntEnumsError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -57,66 +392,468 @@
   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 XmlIntEnums {
   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("XmlIntEnums");
   91    102   
   92    103   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   93    104   
            XmlIntEnumsRequestSerializer,
   94    105   
        ));
   95    106   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
   96    107   
            XmlIntEnumsResponseDeserializer,
   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   
            "XmlIntEnums",
  105    116   
            "Query 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("XmlIntEnums")
  117    128   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  118    129   
            .with_interceptor(XmlIntEnumsEndpointParamsInterceptor)
  119    130   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  120    131   
                crate::operation::xml_int_enums::XmlIntEnumsError,
  121    132   
            >::new())
  122    133   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  123    134   
                crate::operation::xml_int_enums::XmlIntEnumsError,
  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 XmlIntEnumsResponseDeserializer;
  132    144   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for XmlIntEnumsResponseDeserializer {
  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_int_enums::de_xml_int_enums_http_error(status, headers, body)
  145    157   
        } else {
  146    158   
            crate::protocol_serde::shape_xml_int_enums::de_xml_int_enums_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 XmlIntEnumsRequestSerializer;
  153    166   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for XmlIntEnumsRequestSerializer {
  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_int_enums::XmlIntEnumsInput>()
  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_int_enums::XmlIntEnumsInput,
  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, "/").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_int_enums::XmlIntEnumsInput,
  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/x-www-form-urlencoded");
  187    200   
            builder
  188    201   
        };
  189    202   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_xml_int_enums_input::ser_xml_int_enums_input_input_input(
  190    203   
            &input,
  191    204   
        )?);
  192    205   
  193    206   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  194    207   
    }
  195    208   
}
         209  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  196    210   
#[derive(Debug)]
  197    211   
struct XmlIntEnumsEndpointParamsInterceptor;
  198    212   
  199    213   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for XmlIntEnumsEndpointParamsInterceptor {
  200    214   
    fn name(&self) -> &'static str {
  201    215   
        "XmlIntEnumsEndpointParamsInterceptor"
  202    216   
    }
  203    217   
  204    218   
    fn read_before_execution(
  205    219   
        &self,
  206    220   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  207    221   
            '_,
  208    222   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  209    223   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  210    224   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  211    225   
        >,
  212    226   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  213    227   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  214    228   
        let _input = context
  215    229   
            .input()
  216    230   
            .downcast_ref::<XmlIntEnumsInput>()
  217    231   
            .ok_or("failed to downcast to XmlIntEnumsInput")?;
  218    232   
  219    233   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  220    234   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  221    235   
        })?;
  222    236   
        cfg.interceptor_state()
  223    237   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  224    238   
        ::std::result::Result::Ok(())
  225    239   
    }
  226    240   
}
  227    241   
  228    242   
// The get_* functions below are generated from JMESPath expressions in the
  229    243   
// operationContextParams trait. They target the operation's input shape.
  230    244   
         245  +
/* RustType.kt:516 */
  231    246   
#[allow(unreachable_code, unused_variables)]
         247  +
/* RustType.kt:516 */
  232    248   
#[cfg(test)]
         249  +
/* ProtocolTestGenerator.kt:98 */
  233    250   
mod xml_int_enums_test {
  234    251   
  235    252   
    /// Serializes simple scalar properties
  236    253   
    /// Test ID: QueryXmlIntEnums
  237    254   
    #[::tokio::test]
  238    255   
    #[::tracing_test::traced_test]
  239    256   
    async fn query_xml_int_enums_response() {
  240    257   
        let expected_output = crate::operation::xml_int_enums::XmlIntEnumsOutput::builder()
  241    258   
            .set_int_enum1(::std::option::Option::Some(1))
  242    259   
            .set_int_enum2(::std::option::Option::Some(2))
  243    260   
            .set_int_enum3(::std::option::Option::Some(3))
  244    261   
            .set_int_enum_list(::std::option::Option::Some(vec![1, 2]))
  245    262   
            .set_int_enum_set(::std::option::Option::Some(vec![1, 2]))
  246    263   
            .set_int_enum_map(::std::option::Option::Some({
  247    264   
                let mut ret = ::std::collections::HashMap::new();
  248    265   
                ret.insert("a".to_owned(), 1);
  249    266   
                ret.insert("b".to_owned(), 2);
  250    267   
                ret
  251    268   
            }))
  252    269   
            .build();
  253    270   
        let mut http_response = ::aws_smithy_runtime_api::http::Response::try_from(::http::response::Builder::new()
  254    271   
        .header("Content-Type", "text/xml")
  255    272   
        .status(200)
  256    273   
                    .body(::aws_smithy_types::body::SdkBody::from("<XmlIntEnumsResponse xmlns=\"https://example.com/\">\n    <XmlIntEnumsResult>\n        <intEnum1>1</intEnum1>\n        <intEnum2>2</intEnum2>\n        <intEnum3>3</intEnum3>\n        <intEnumList>\n            <member>1</member>\n            <member>2</member>\n        </intEnumList>\n        <intEnumSet>\n            <member>1</member>\n            <member>2</member>\n        </intEnumSet>\n        <intEnumMap>\n            <entry>\n                <key>a</key>\n                <value>1</value>\n            </entry>\n            <entry>\n                <key>b</key>\n                <value>2</value>\n            </entry>\n        </intEnumMap>\n    </XmlIntEnumsResult>\n</XmlIntEnumsResponse>\n"))
  257    274   
                    .unwrap()
  258    275   
                    ).unwrap();
  259    276   
        use ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin;
  260    277   
        use ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse;
  261    278   
  262    279   
        let op = crate::operation::xml_int_enums::XmlIntEnums::new();
  263    280   
        let config = op.config().expect("the operation has config");
  264    281   
        let de = config
  265    282   
            .load::<::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer>()
  266    283   
            .expect("the config must have a deserializer");
  267    284   
  268    285   
        let parsed = de.deserialize_streaming(&mut http_response);
  269    286   
        let parsed = parsed.unwrap_or_else(|| {
  270    287   
            let http_response = http_response.map(|body| {
  271    288   
                ::aws_smithy_types::body::SdkBody::from(::bytes::Bytes::copy_from_slice(&::aws_smithy_protocol_test::decode_body_data(
  272    289   
                    body.bytes().unwrap(),
  273    290   
                    ::aws_smithy_protocol_test::MediaType::from("application/xml"),
  274    291   
                )))
  275    292   
            });
  276    293   
            de.deserialize_nonstreaming(&http_response)
  277    294   
        });
  278    295   
        let parsed = parsed
  279    296   
            .expect("should be successful response")
  280    297   
            .downcast::<crate::operation::xml_int_enums::XmlIntEnumsOutput>()
  281    298   
            .unwrap();
  282    299   
        ::pretty_assertions::assert_eq!(parsed.int_enum1, expected_output.int_enum1, "Unexpected value for `int_enum1`");
  283    300   
        ::pretty_assertions::assert_eq!(parsed.int_enum2, expected_output.int_enum2, "Unexpected value for `int_enum2`");
  284    301   
        ::pretty_assertions::assert_eq!(parsed.int_enum3, expected_output.int_enum3, "Unexpected value for `int_enum3`");
  285    302   
        ::pretty_assertions::assert_eq!(
  286    303   
            parsed.int_enum_list,
  287    304   
            expected_output.int_enum_list,
  288    305   
            "Unexpected value for `int_enum_list`"
  289    306   
        );
  290    307   
        ::pretty_assertions::assert_eq!(parsed.int_enum_set, expected_output.int_enum_set, "Unexpected value for `int_enum_set`");
  291    308   
        ::pretty_assertions::assert_eq!(parsed.int_enum_map, expected_output.int_enum_map, "Unexpected value for `int_enum_map`");
  292    309   
    }
         310  +
         311  +
    /* ProtocolTestGenerator.kt:98 */
  293    312   
}
  294    313   
         314  +
/* OperationErrorGenerator.kt:79 */
  295    315   
/// Error type for the `XmlIntEnumsError` operation.
         316  +
/* RustType.kt:516 */
  296    317   
#[non_exhaustive]
         318  +
/* RustType.kt:516 */
  297    319   
#[derive(::std::fmt::Debug)]
  298         -
pub enum XmlIntEnumsError {
         320  +
pub /* OperationErrorGenerator.kt:81 */ enum XmlIntEnumsError {
         321  +
    /* OperationErrorGenerator.kt:88 */
  299    322   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  300    323   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  301    324   
    variable wildcard pattern and check `.code()`:
  302    325   
     \
  303    326   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  304    327   
     \
  305    328   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-XmlIntEnumsError) for what information is available for the error.")]
  306    329   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         330  +
    /* OperationErrorGenerator.kt:81 */
  307    331   
}
         332  +
/* OperationErrorGenerator.kt:218 */
  308    333   
impl XmlIntEnumsError {
         334  +
    /* OperationErrorGenerator.kt:219 */
  309    335   
    /// Creates the `XmlIntEnumsError::Unhandled` variant from any error type.
  310    336   
    pub fn unhandled(
  311    337   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  312    338   
    ) -> Self {
  313    339   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  314    340   
            source: err.into(),
  315    341   
            meta: ::std::default::Default::default(),
  316    342   
        })
  317    343   
    }
  318    344   
  319    345   
    /// Creates the `XmlIntEnumsError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  320    346   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  321    347   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  322    348   
            source: err.clone().into(),
  323    349   
            meta: err,
  324    350   
        })
  325    351   
    }
  326         -
    ///
         352  +
    /// /* OperationErrorGenerator.kt:236 */
  327    353   
    /// Returns error metadata, which includes the error code, message,
  328    354   
    /// request ID, and potentially additional information.
  329    355   
    ///
         356  +
    /* OperationErrorGenerator.kt:242 */
  330    357   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         358  +
        /* OperationErrorGenerator.kt:243 */
  331    359   
        match self {
  332         -
            Self::Unhandled(e) => &e.meta,
         360  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         361  +
            /* OperationErrorGenerator.kt:243 */
  333    362   
        }
         363  +
        /* OperationErrorGenerator.kt:242 */
  334    364   
    }
         365  +
    /* OperationErrorGenerator.kt:218 */
  335    366   
}
         367  +
/* OperationErrorGenerator.kt:269 */
  336    368   
impl ::std::error::Error for XmlIntEnumsError {
         369  +
    /* OperationErrorGenerator.kt:270 */
  337    370   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         371  +
        /* OperationErrorGenerator.kt:318 */
  338    372   
        match self {
  339         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         373  +
            /* OperationErrorGenerator.kt:326 */
         374  +
            Self::Unhandled(_inner) => {
         375  +
                /* OperationErrorGenerator.kt:279 */
         376  +
                ::std::option::Option::Some(&*_inner.source)
         377  +
                /* OperationErrorGenerator.kt:326 */
         378  +
            } /* OperationErrorGenerator.kt:318 */
  340    379   
        }
         380  +
        /* OperationErrorGenerator.kt:270 */
  341    381   
    }
         382  +
    /* OperationErrorGenerator.kt:269 */
  342    383   
}
         384  +
/* OperationErrorGenerator.kt:133 */
  343    385   
impl ::std::fmt::Display for XmlIntEnumsError {
         386  +
    /* OperationErrorGenerator.kt:134 */
  344    387   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         388  +
        /* OperationErrorGenerator.kt:318 */
  345    389   
        match self {
         390  +
            /* OperationErrorGenerator.kt:326 */
  346    391   
            Self::Unhandled(_inner) => {
         392  +
                /* OperationErrorGenerator.kt:139 */
  347    393   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  348    394   
                    write!(f, "unhandled error ({code})")
  349    395   
                } else {
  350    396   
                    f.write_str("unhandled error")
  351    397   
                }
         398  +
                /* OperationErrorGenerator.kt:326 */
         399  +
            } /* OperationErrorGenerator.kt:318 */
  352    400   
        }
         401  +
        /* OperationErrorGenerator.kt:134 */
  353    402   
    }
  354         -
    }
         403  +
    /* OperationErrorGenerator.kt:133 */
  355    404   
}
         405  +
/* OperationErrorGenerator.kt:182 */
  356    406   
impl ::aws_smithy_types::retry::ProvideErrorKind for XmlIntEnumsError {
         407  +
    /* OperationErrorGenerator.kt:186 */
  357    408   
    fn code(&self) -> ::std::option::Option<&str> {
         409  +
        /* OperationErrorGenerator.kt:187 */
  358    410   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         411  +
        /* OperationErrorGenerator.kt:186 */
  359    412   
    }
         413  +
    /* OperationErrorGenerator.kt:190 */
  360    414   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         415  +
        /* OperationErrorGenerator.kt:197 */
  361    416   
        ::std::option::Option::None
         417  +
        /* OperationErrorGenerator.kt:190 */
  362    418   
    }
         419  +
    /* OperationErrorGenerator.kt:182 */
  363    420   
}
         421  +
/* OperationErrorGenerator.kt:163 */
  364    422   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for XmlIntEnumsError {
         423  +
    /* OperationErrorGenerator.kt:164 */
  365    424   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         425  +
        /* OperationErrorGenerator.kt:318 */
  366    426   
        match self {
  367         -
            Self::Unhandled(_inner) => &_inner.meta,
         427  +
            /* OperationErrorGenerator.kt:326 */
         428  +
            Self::Unhandled(_inner) => {
         429  +
                /* OperationErrorGenerator.kt:168 */
         430  +
                &_inner.meta
         431  +
                /* OperationErrorGenerator.kt:326 */
         432  +
            } /* OperationErrorGenerator.kt:318 */
  368    433   
        }
         434  +
        /* OperationErrorGenerator.kt:164 */
  369    435   
    }
         436  +
    /* OperationErrorGenerator.kt:163 */
  370    437   
}
         438  +
/* OperationErrorGenerator.kt:109 */
  371    439   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for XmlIntEnumsError {
         440  +
    /* OperationErrorGenerator.kt:110 */
  372    441   
    fn create_unhandled_error(
  373    442   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  374    443   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  375    444   
    ) -> Self {
         445  +
        /* OperationErrorGenerator.kt:121 */
  376    446   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  377    447   
            source,
  378    448   
            meta: meta.unwrap_or_default(),
  379    449   
        })
         450  +
        /* OperationErrorGenerator.kt:110 */
  380    451   
    }
         452  +
    /* OperationErrorGenerator.kt:109 */
  381    453   
}
  382    454   
         455  +
/* CodegenDelegator.kt:255 */
  383    456   
pub use crate::operation::xml_int_enums::_xml_int_enums_output::XmlIntEnumsOutput;
  384    457   
         458  +
/* CodegenDelegator.kt:255 */
  385    459   
pub use crate::operation::xml_int_enums::_xml_int_enums_input::XmlIntEnumsInput;
  386    460   
         461  +
/* RustModule.kt:172 */
  387    462   
mod _xml_int_enums_input;
  388    463   
         464  +
/* RustModule.kt:172 */
  389    465   
mod _xml_int_enums_output;
  390    466   
  391         -
/// Builders
         467  +
/// /* CodegenDelegator.kt:51 */Builders
  392    468   
pub mod builders;

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/xml_int_enums/_xml_int_enums_input.rs

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

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/xml_int_enums/_xml_int_enums_output.rs

@@ -1,1 +178,316 @@
    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 XmlIntEnumsOutput {
    6         -
    #[allow(missing_docs)] // documentation missing in model
           8  +
pub /* StructureGenerator.kt:201 */ struct XmlIntEnumsOutput {
           9  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
    7     10   
    pub int_enum1: ::std::option::Option<i32>,
    8         -
    #[allow(missing_docs)] // documentation missing in model
          11  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
    9     12   
    pub int_enum2: ::std::option::Option<i32>,
   10         -
    #[allow(missing_docs)] // documentation missing in model
          13  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   11     14   
    pub int_enum3: ::std::option::Option<i32>,
          15  +
    /* StructureGenerator.kt:231 */
   12     16   
    #[allow(missing_docs)] // documentation missing in model
   13     17   
    pub int_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
          18  +
    /* StructureGenerator.kt:231 */
   14     19   
    #[allow(missing_docs)] // documentation missing in model
   15     20   
    pub int_enum_set: ::std::option::Option<::std::vec::Vec<i32>>,
          21  +
    /* StructureGenerator.kt:231 */
   16     22   
    #[allow(missing_docs)] // documentation missing in model
   17     23   
    pub int_enum_map: ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
          24  +
    /* StructureGenerator.kt:201 */
   18     25   
}
          26  +
/* StructureGenerator.kt:135 */
   19     27   
impl XmlIntEnumsOutput {
          28  +
    /* StructureGenerator.kt:231 */
   20     29   
    #[allow(missing_docs)] // documentation missing in model
          30  +
                           /* StructureGenerator.kt:166 */
   21     31   
    pub fn int_enum1(&self) -> ::std::option::Option<i32> {
          32  +
        /* StructureGenerator.kt:168 */
   22     33   
        self.int_enum1
          34  +
        /* StructureGenerator.kt:166 */
   23     35   
    }
          36  +
    /* StructureGenerator.kt:231 */
   24     37   
    #[allow(missing_docs)] // documentation missing in model
          38  +
                           /* StructureGenerator.kt:166 */
   25     39   
    pub fn int_enum2(&self) -> ::std::option::Option<i32> {
          40  +
        /* StructureGenerator.kt:168 */
   26     41   
        self.int_enum2
          42  +
        /* StructureGenerator.kt:166 */
   27     43   
    }
          44  +
    /* StructureGenerator.kt:231 */
   28     45   
    #[allow(missing_docs)] // documentation missing in model
          46  +
                           /* StructureGenerator.kt:166 */
   29     47   
    pub fn int_enum3(&self) -> ::std::option::Option<i32> {
          48  +
        /* StructureGenerator.kt:168 */
   30     49   
        self.int_enum3
          50  +
        /* StructureGenerator.kt:166 */
   31     51   
    }
          52  +
    /* StructureGenerator.kt:231 */
   32     53   
    #[allow(missing_docs)] // documentation missing in model
   33         -
    ///
   34         -
    /// 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()`.
          54  +
    /// /* StructureGenerator.kt:162 */
          55  +
    /// /* 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()`.
          56  +
    /* StructureGenerator.kt:166 */
   35     57   
    pub fn int_enum_list(&self) -> &[i32] {
   36         -
        self.int_enum_list.as_deref().unwrap_or_default()
          58  +
        /* StructureGenerator.kt:169 */
          59  +
        self.int_enum_list
          60  +
            .as_deref()
          61  +
            /* StructureGenerator.kt:175 */
          62  +
            .unwrap_or_default()
          63  +
        /* StructureGenerator.kt:166 */
   37     64   
    }
          65  +
    /* StructureGenerator.kt:231 */
   38     66   
    #[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 `.int_enum_set.is_none()`.
          67  +
    /// /* StructureGenerator.kt:162 */
          68  +
    /// /* 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_set.is_none()`.
          69  +
    /* StructureGenerator.kt:166 */
   41     70   
    pub fn int_enum_set(&self) -> &[i32] {
   42         -
        self.int_enum_set.as_deref().unwrap_or_default()
          71  +
        /* StructureGenerator.kt:169 */
          72  +
        self.int_enum_set
          73  +
            .as_deref()
          74  +
            /* StructureGenerator.kt:175 */
          75  +
            .unwrap_or_default()
          76  +
        /* StructureGenerator.kt:166 */
   43     77   
    }
          78  +
    /* StructureGenerator.kt:231 */
   44     79   
    #[allow(missing_docs)] // documentation missing in model
          80  +
                           /* StructureGenerator.kt:166 */
   45     81   
    pub fn int_enum_map(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, i32>> {
          82  +
        /* StructureGenerator.kt:170 */
   46     83   
        self.int_enum_map.as_ref()
          84  +
        /* StructureGenerator.kt:166 */
   47     85   
    }
          86  +
    /* StructureGenerator.kt:135 */
   48     87   
}
          88  +
/* ClientCodegenVisitor.kt:237 */
   49     89   
impl XmlIntEnumsOutput {
   50         -
    /// Creates a new builder-style object to manufacture [`XmlIntEnumsOutput`](crate::operation::xml_int_enums::XmlIntEnumsOutput).
          90  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`XmlIntEnumsOutput`](crate::operation::xml_int_enums::XmlIntEnumsOutput).
          91  +
    /* BuilderGenerator.kt:175 */
   51     92   
    pub fn builder() -> crate::operation::xml_int_enums::builders::XmlIntEnumsOutputBuilder {
          93  +
        /* BuilderGenerator.kt:176 */
   52     94   
        crate::operation::xml_int_enums::builders::XmlIntEnumsOutputBuilder::default()
          95  +
        /* BuilderGenerator.kt:175 */
   53     96   
    }
          97  +
    /* ClientCodegenVisitor.kt:237 */
   54     98   
}
   55     99   
   56         -
/// A builder for [`XmlIntEnumsOutput`](crate::operation::xml_int_enums::XmlIntEnumsOutput).
         100  +
/// /* BuilderGenerator.kt:342 */A builder for [`XmlIntEnumsOutput`](crate::operation::xml_int_enums::XmlIntEnumsOutput).
         101  +
/* RustType.kt:516 */
   57    102   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         103  +
/* RustType.kt:516 */
   58    104   
#[non_exhaustive]
         105  +
/* BuilderGenerator.kt:345 */
   59    106   
pub struct XmlIntEnumsOutputBuilder {
   60         -
    pub(crate) int_enum1: ::std::option::Option<i32>,
   61         -
    pub(crate) int_enum2: ::std::option::Option<i32>,
   62         -
    pub(crate) int_enum3: ::std::option::Option<i32>,
   63         -
    pub(crate) int_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
   64         -
    pub(crate) int_enum_set: ::std::option::Option<::std::vec::Vec<i32>>,
         107  +
    /* BuilderGenerator.kt:275 */ pub(crate) int_enum1: ::std::option::Option<i32>,
         108  +
    /* BuilderGenerator.kt:275 */ pub(crate) int_enum2: ::std::option::Option<i32>,
         109  +
    /* BuilderGenerator.kt:275 */ pub(crate) int_enum3: ::std::option::Option<i32>,
         110  +
    /* BuilderGenerator.kt:275 */ pub(crate) int_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
         111  +
    /* BuilderGenerator.kt:275 */ pub(crate) int_enum_set: ::std::option::Option<::std::vec::Vec<i32>>,
         112  +
    /* BuilderGenerator.kt:275 */
   65    113   
    pub(crate) int_enum_map: ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
         114  +
    /* BuilderGenerator.kt:345 */
   66    115   
}
         116  +
/* BuilderGenerator.kt:355 */
   67    117   
impl XmlIntEnumsOutputBuilder {
         118  +
    /* BuilderGenerator.kt:286 */
   68    119   
    #[allow(missing_docs)] // documentation missing in model
         120  +
                           /* BuilderGenerator.kt:291 */
   69    121   
    pub fn int_enum1(mut self, input: i32) -> Self {
         122  +
        /* BuilderGenerator.kt:292 */
   70    123   
        self.int_enum1 = ::std::option::Option::Some(input);
         124  +
        /* BuilderGenerator.kt:293 */
   71    125   
        self
         126  +
        /* BuilderGenerator.kt:291 */
   72    127   
    }
         128  +
    /* BuilderGenerator.kt:312 */
   73    129   
    #[allow(missing_docs)] // documentation missing in model
         130  +
                           /* BuilderGenerator.kt:314 */
   74    131   
    pub fn set_int_enum1(mut self, input: ::std::option::Option<i32>) -> Self {
         132  +
        /* BuilderGenerator.kt:315 */
   75    133   
        self.int_enum1 = input;
   76    134   
        self
         135  +
        /* BuilderGenerator.kt:314 */
   77    136   
    }
         137  +
    /* BuilderGenerator.kt:334 */
   78    138   
    #[allow(missing_docs)] // documentation missing in model
         139  +
                           /* BuilderGenerator.kt:336 */
   79    140   
    pub fn get_int_enum1(&self) -> &::std::option::Option<i32> {
         141  +
        /* BuilderGenerator.kt:337 */
   80    142   
        &self.int_enum1
         143  +
        /* BuilderGenerator.kt:336 */
   81    144   
    }
         145  +
    /* BuilderGenerator.kt:286 */
   82    146   
    #[allow(missing_docs)] // documentation missing in model
         147  +
                           /* BuilderGenerator.kt:291 */
   83    148   
    pub fn int_enum2(mut self, input: i32) -> Self {
         149  +
        /* BuilderGenerator.kt:292 */
   84    150   
        self.int_enum2 = ::std::option::Option::Some(input);
         151  +
        /* BuilderGenerator.kt:293 */
   85    152   
        self
         153  +
        /* BuilderGenerator.kt:291 */
   86    154   
    }
         155  +
    /* BuilderGenerator.kt:312 */
   87    156   
    #[allow(missing_docs)] // documentation missing in model
         157  +
                           /* BuilderGenerator.kt:314 */
   88    158   
    pub fn set_int_enum2(mut self, input: ::std::option::Option<i32>) -> Self {
         159  +
        /* BuilderGenerator.kt:315 */
   89    160   
        self.int_enum2 = input;
   90    161   
        self
         162  +
        /* BuilderGenerator.kt:314 */
   91    163   
    }
         164  +
    /* BuilderGenerator.kt:334 */
   92    165   
    #[allow(missing_docs)] // documentation missing in model
         166  +
                           /* BuilderGenerator.kt:336 */
   93    167   
    pub fn get_int_enum2(&self) -> &::std::option::Option<i32> {
         168  +
        /* BuilderGenerator.kt:337 */
   94    169   
        &self.int_enum2
         170  +
        /* BuilderGenerator.kt:336 */
   95    171   
    }
         172  +
    /* BuilderGenerator.kt:286 */
   96    173   
    #[allow(missing_docs)] // documentation missing in model
         174  +
                           /* BuilderGenerator.kt:291 */
   97    175   
    pub fn int_enum3(mut self, input: i32) -> Self {
         176  +
        /* BuilderGenerator.kt:292 */
   98    177   
        self.int_enum3 = ::std::option::Option::Some(input);
         178  +
        /* BuilderGenerator.kt:293 */
   99    179   
        self
         180  +
        /* BuilderGenerator.kt:291 */
  100    181   
    }
         182  +
    /* BuilderGenerator.kt:312 */
  101    183   
    #[allow(missing_docs)] // documentation missing in model
         184  +
                           /* BuilderGenerator.kt:314 */
  102    185   
    pub fn set_int_enum3(mut self, input: ::std::option::Option<i32>) -> Self {
         186  +
        /* BuilderGenerator.kt:315 */
  103    187   
        self.int_enum3 = input;
  104    188   
        self
         189  +
        /* BuilderGenerator.kt:314 */
  105    190   
    }
         191  +
    /* BuilderGenerator.kt:334 */
  106    192   
    #[allow(missing_docs)] // documentation missing in model
         193  +
                           /* BuilderGenerator.kt:336 */
  107    194   
    pub fn get_int_enum3(&self) -> &::std::option::Option<i32> {
         195  +
        /* BuilderGenerator.kt:337 */
  108    196   
        &self.int_enum3
         197  +
        /* BuilderGenerator.kt:336 */
  109    198   
    }
  110         -
    /// Appends an item to `int_enum_list`.
         199  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `int_enum_list`.
         200  +
    /* BuilderGenerator.kt:411 */
  111    201   
    ///
  112         -
    /// To override the contents of this collection use [`set_int_enum_list`](Self::set_int_enum_list).
         202  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_int_enum_list`](Self::set_int_enum_list).
         203  +
    /* BuilderGenerator.kt:413 */
  113    204   
    ///
         205  +
    /* BuilderGenerator.kt:418 */
  114    206   
    pub fn int_enum_list(mut self, input: i32) -> Self {
         207  +
        /* BuilderGenerator.kt:419 */
  115    208   
        let mut v = self.int_enum_list.unwrap_or_default();
  116    209   
        v.push(input);
  117    210   
        self.int_enum_list = ::std::option::Option::Some(v);
  118    211   
        self
         212  +
        /* BuilderGenerator.kt:418 */
  119    213   
    }
         214  +
    /* BuilderGenerator.kt:312 */
  120    215   
    #[allow(missing_docs)] // documentation missing in model
         216  +
                           /* BuilderGenerator.kt:314 */
  121    217   
    pub fn set_int_enum_list(mut self, input: ::std::option::Option<::std::vec::Vec<i32>>) -> Self {
         218  +
        /* BuilderGenerator.kt:315 */
  122    219   
        self.int_enum_list = input;
  123    220   
        self
         221  +
        /* BuilderGenerator.kt:314 */
  124    222   
    }
         223  +
    /* BuilderGenerator.kt:334 */
  125    224   
    #[allow(missing_docs)] // documentation missing in model
         225  +
                           /* BuilderGenerator.kt:336 */
  126    226   
    pub fn get_int_enum_list(&self) -> &::std::option::Option<::std::vec::Vec<i32>> {
         227  +
        /* BuilderGenerator.kt:337 */
  127    228   
        &self.int_enum_list
         229  +
        /* BuilderGenerator.kt:336 */
  128    230   
    }
  129         -
    /// Appends an item to `int_enum_set`.
         231  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `int_enum_set`.
         232  +
    /* BuilderGenerator.kt:411 */
  130    233   
    ///
  131         -
    /// To override the contents of this collection use [`set_int_enum_set`](Self::set_int_enum_set).
         234  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_int_enum_set`](Self::set_int_enum_set).
         235  +
    /* BuilderGenerator.kt:413 */
  132    236   
    ///
         237  +
    /* BuilderGenerator.kt:418 */
  133    238   
    pub fn int_enum_set(mut self, input: i32) -> Self {
         239  +
        /* BuilderGenerator.kt:419 */
  134    240   
        let mut v = self.int_enum_set.unwrap_or_default();
  135    241   
        v.push(input);
  136    242   
        self.int_enum_set = ::std::option::Option::Some(v);
  137    243   
        self
         244  +
        /* BuilderGenerator.kt:418 */
  138    245   
    }
         246  +
    /* BuilderGenerator.kt:312 */
  139    247   
    #[allow(missing_docs)] // documentation missing in model
         248  +
                           /* BuilderGenerator.kt:314 */
  140    249   
    pub fn set_int_enum_set(mut self, input: ::std::option::Option<::std::vec::Vec<i32>>) -> Self {
         250  +
        /* BuilderGenerator.kt:315 */
  141    251   
        self.int_enum_set = input;
  142    252   
        self
         253  +
        /* BuilderGenerator.kt:314 */
  143    254   
    }
         255  +
    /* BuilderGenerator.kt:334 */
  144    256   
    #[allow(missing_docs)] // documentation missing in model
         257  +
                           /* BuilderGenerator.kt:336 */
  145    258   
    pub fn get_int_enum_set(&self) -> &::std::option::Option<::std::vec::Vec<i32>> {
         259  +
        /* BuilderGenerator.kt:337 */
  146    260   
        &self.int_enum_set
         261  +
        /* BuilderGenerator.kt:336 */
  147    262   
    }
  148         -
    /// Adds a key-value pair to `int_enum_map`.
         263  +
    /// /* BuilderGenerator.kt:436 */Adds a key-value pair to `int_enum_map`.
         264  +
    /* BuilderGenerator.kt:437 */
  149    265   
    ///
  150         -
    /// To override the contents of this collection use [`set_int_enum_map`](Self::set_int_enum_map).
         266  +
    /// /* BuilderGenerator.kt:438 */To override the contents of this collection use [`set_int_enum_map`](Self::set_int_enum_map).
         267  +
    /* BuilderGenerator.kt:439 */
  151    268   
    ///
         269  +
    /* BuilderGenerator.kt:445 */
  152    270   
    pub fn int_enum_map(mut self, k: impl ::std::convert::Into<::std::string::String>, v: i32) -> Self {
         271  +
        /* BuilderGenerator.kt:448 */
  153    272   
        let mut hash_map = self.int_enum_map.unwrap_or_default();
  154    273   
        hash_map.insert(k.into(), v);
  155    274   
        self.int_enum_map = ::std::option::Option::Some(hash_map);
  156    275   
        self
         276  +
        /* BuilderGenerator.kt:445 */
  157    277   
    }
         278  +
    /* BuilderGenerator.kt:312 */
  158    279   
    #[allow(missing_docs)] // documentation missing in model
         280  +
                           /* BuilderGenerator.kt:314 */
  159    281   
    pub fn set_int_enum_map(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>) -> Self {
         282  +
        /* BuilderGenerator.kt:315 */
  160    283   
        self.int_enum_map = input;
  161    284   
        self
         285  +
        /* BuilderGenerator.kt:314 */
  162    286   
    }
         287  +
    /* BuilderGenerator.kt:334 */
  163    288   
    #[allow(missing_docs)] // documentation missing in model
         289  +
                           /* BuilderGenerator.kt:336 */
  164    290   
    pub fn get_int_enum_map(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, i32>> {
         291  +
        /* BuilderGenerator.kt:337 */
  165    292   
        &self.int_enum_map
         293  +
        /* BuilderGenerator.kt:336 */
  166    294   
    }
  167         -
    /// Consumes the builder and constructs a [`XmlIntEnumsOutput`](crate::operation::xml_int_enums::XmlIntEnumsOutput).
         295  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`XmlIntEnumsOutput`](crate::operation::xml_int_enums::XmlIntEnumsOutput).
         296  +
    /* BuilderGenerator.kt:253 */
  168    297   
    pub fn build(self) -> crate::operation::xml_int_enums::XmlIntEnumsOutput {
         298  +
        /* BuilderGenerator.kt:477 */
  169    299   
        crate::operation::xml_int_enums::XmlIntEnumsOutput {
  170         -
            int_enum1: self.int_enum1,
         300  +
            /* BuilderGenerator.kt:481 */ int_enum1: self.int_enum1,
         301  +
            /* BuilderGenerator.kt:481 */
  171    302   
            int_enum2: self.int_enum2,
         303  +
            /* BuilderGenerator.kt:481 */
  172    304   
            int_enum3: self.int_enum3,
         305  +
            /* BuilderGenerator.kt:481 */
  173    306   
            int_enum_list: self.int_enum_list,
         307  +
            /* BuilderGenerator.kt:481 */
  174    308   
            int_enum_set: self.int_enum_set,
         309  +
            /* BuilderGenerator.kt:481 */
  175    310   
            int_enum_map: self.int_enum_map,
         311  +
            /* BuilderGenerator.kt:477 */
  176    312   
        }
         313  +
        /* BuilderGenerator.kt:253 */
  177    314   
    }
         315  +
    /* BuilderGenerator.kt:355 */
  178    316   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/xml_int_enums/builders.rs

@@ -1,1 +111,123 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CodegenDelegator.kt:255 */
    2      3   
pub use crate::operation::xml_int_enums::_xml_int_enums_output::XmlIntEnumsOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::xml_int_enums::_xml_int_enums_input::XmlIntEnumsInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::xml_int_enums::builders::XmlIntEnumsInputBuilder {
    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_int_enums::XmlIntEnumsOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::xml_int_enums::XmlIntEnumsError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.xml_int_enums();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `XmlIntEnums`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `XmlIntEnums`.
   24     27   
///
   25         -
/// This example serializes enums as top level properties, in lists, sets, and maps.
          28  +
/// /* FluentBuilderGenerator.kt:130 */This example serializes enums as top level properties, in lists, sets, and maps.
          29  +
/* RustType.kt:516 */
   26     30   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          31  +
/* FluentBuilderGenerator.kt:270 */
   27     32   
pub struct XmlIntEnumsFluentBuilder {
   28     33   
    handle: ::std::sync::Arc<crate::client::Handle>,
   29     34   
    inner: crate::operation::xml_int_enums::builders::XmlIntEnumsInputBuilder,
   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_int_enums::XmlIntEnumsOutput,
   35     41   
        crate::operation::xml_int_enums::XmlIntEnumsError,
   36     42   
    > for XmlIntEnumsFluentBuilder
   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_int_enums::XmlIntEnumsOutput,
   44     50   
            crate::operation::xml_int_enums::XmlIntEnumsError,
   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 XmlIntEnumsFluentBuilder {
          58  +
    /* FluentBuilderGenerator.kt:288 */
   51     59   
    /// Creates a new `XmlIntEnumsFluentBuilder`.
   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 XmlIntEnums as a reference.
   60     69   
    pub fn as_input(&self) -> &crate::operation::xml_int_enums::builders::XmlIntEnumsInputBuilder {
   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_int_enums::XmlIntEnumsOutput,
   75     85   
        ::aws_smithy_runtime_api::client::result::SdkError<
   76     86   
            crate::operation::xml_int_enums::XmlIntEnumsError,
   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_int_enums::XmlIntEnums::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_int_enums::XmlIntEnums::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_int_enums::XmlIntEnumsOutput,
   97    107   
        crate::operation::xml_int_enums::XmlIntEnumsError,
   98    108   
        Self,
   99    109   
    > {
  100    110   
        crate::client::customize::CustomizableOperation::new(self)
  101    111   
    }
         112  +
    /* FluentBuilderGenerator.kt:315 */
  102    113   
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
  103    114   
        self.set_config_override(::std::option::Option::Some(config_override.into()));
  104    115   
        self
  105    116   
    }
  106    117   
  107    118   
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
  108    119   
        self.config_override = config_override;
  109    120   
        self
  110    121   
    }
         122  +
    /* FluentBuilderGenerator.kt:282 */
  111    123   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/xml_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 `XmlLists`.
           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 XmlLists;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl XmlLists {
    7         -
    /// Creates a new `XmlLists`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `XmlLists`
          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_lists::XmlListsInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::xml_lists::XmlListsOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::xml_lists::XmlListsError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -53,62 +254,271 @@
   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 XmlLists {
   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("XmlLists");
   87     98   
   88     99   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   89    100   
            XmlListsRequestSerializer,
   90    101   
        ));
   91    102   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
   92    103   
            XmlListsResponseDeserializer,
   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   
            "XmlLists",
  101    112   
            "Query 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("XmlLists")
  113    124   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  114    125   
            .with_interceptor(XmlListsEndpointParamsInterceptor)
  115    126   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  116    127   
                crate::operation::xml_lists::XmlListsError,
  117    128   
            >::new())
  118    129   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  119    130   
                crate::operation::xml_lists::XmlListsError,
  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 XmlListsResponseDeserializer;
  128    140   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for XmlListsResponseDeserializer {
  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_lists::de_xml_lists_http_error(status, headers, body)
  141    153   
        } else {
  142    154   
            crate::protocol_serde::shape_xml_lists::de_xml_lists_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 XmlListsRequestSerializer;
  149    162   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for XmlListsRequestSerializer {
  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_lists::XmlListsInput>().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_lists::XmlListsInput,
  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, "/").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_lists::XmlListsInput,
  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/x-www-form-urlencoded");
  181    194   
            builder
  182    195   
        };
  183    196   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_xml_lists_input::ser_xml_lists_input_input_input(&input)?);
  184    197   
  185    198   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  186    199   
    }
  187    200   
}
         201  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  188    202   
#[derive(Debug)]
  189    203   
struct XmlListsEndpointParamsInterceptor;
  190    204   
  191    205   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for XmlListsEndpointParamsInterceptor {
  192    206   
    fn name(&self) -> &'static str {
  193    207   
        "XmlListsEndpointParamsInterceptor"
  194    208   
    }
  195    209   
  196    210   
    fn read_before_execution(
  197    211   
        &self,
  198    212   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  199    213   
            '_,
  200    214   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  201    215   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  202    216   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  203    217   
        >,
  204    218   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  205    219   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  206    220   
        let _input = context
  207    221   
            .input()
  208    222   
            .downcast_ref::<XmlListsInput>()
  209    223   
            .ok_or("failed to downcast to XmlListsInput")?;
  210    224   
  211    225   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  212    226   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  213    227   
        })?;
  214    228   
        cfg.interceptor_state()
  215    229   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  216    230   
        ::std::result::Result::Ok(())
  217    231   
    }
  218    232   
}
  219    233   
  220    234   
// The get_* functions below are generated from JMESPath expressions in the
  221    235   
// operationContextParams trait. They target the operation's input shape.
  222    236   
         237  +
/* RustType.kt:516 */
  223    238   
#[allow(unreachable_code, unused_variables)]
         239  +
/* RustType.kt:516 */
  224    240   
#[cfg(test)]
         241  +
/* ProtocolTestGenerator.kt:98 */
  225    242   
mod xml_lists_test {
  226    243   
  227    244   
    /// Tests for XML list serialization
  228    245   
    /// Test ID: QueryXmlLists
  229    246   
    #[::tokio::test]
  230    247   
    #[::tracing_test::traced_test]
  231    248   
    async fn query_xml_lists_response() {
  232    249   
        let expected_output = crate::operation::xml_lists::XmlListsOutput::builder()
  233    250   
            .set_string_list(::std::option::Option::Some(vec!["foo".to_owned(), "bar".to_owned()]))
  234    251   
            .set_string_set(::std::option::Option::Some(vec!["foo".to_owned(), "bar".to_owned()]))
@@ -316,333 +445,521 @@
  336    353   
            parsed.flattened_list_with_namespace,
  337    354   
            expected_output.flattened_list_with_namespace,
  338    355   
            "Unexpected value for `flattened_list_with_namespace`"
  339    356   
        );
  340    357   
        ::pretty_assertions::assert_eq!(
  341    358   
            parsed.structure_list,
  342    359   
            expected_output.structure_list,
  343    360   
            "Unexpected value for `structure_list`"
  344    361   
        );
  345    362   
    }
         363  +
         364  +
    /* ProtocolTestGenerator.kt:98 */
  346    365   
}
  347    366   
         367  +
/* OperationErrorGenerator.kt:79 */
  348    368   
/// Error type for the `XmlListsError` operation.
         369  +
/* RustType.kt:516 */
  349    370   
#[non_exhaustive]
         371  +
/* RustType.kt:516 */
  350    372   
#[derive(::std::fmt::Debug)]
  351         -
pub enum XmlListsError {
         373  +
pub /* OperationErrorGenerator.kt:81 */ enum XmlListsError {
         374  +
    /* OperationErrorGenerator.kt:88 */
  352    375   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  353    376   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  354    377   
    variable wildcard pattern and check `.code()`:
  355    378   
     \
  356    379   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  357    380   
     \
  358    381   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-XmlListsError) for what information is available for the error.")]
  359    382   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         383  +
    /* OperationErrorGenerator.kt:81 */
  360    384   
}
         385  +
/* OperationErrorGenerator.kt:218 */
  361    386   
impl XmlListsError {
         387  +
    /* OperationErrorGenerator.kt:219 */
  362    388   
    /// Creates the `XmlListsError::Unhandled` variant from any error type.
  363    389   
    pub fn unhandled(
  364    390   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  365    391   
    ) -> Self {
  366    392   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  367    393   
            source: err.into(),
  368    394   
            meta: ::std::default::Default::default(),
  369    395   
        })
  370    396   
    }
  371    397   
  372    398   
    /// Creates the `XmlListsError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  373    399   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  374    400   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  375    401   
            source: err.clone().into(),
  376    402   
            meta: err,
  377    403   
        })
  378    404   
    }
  379         -
    ///
         405  +
    /// /* OperationErrorGenerator.kt:236 */
  380    406   
    /// Returns error metadata, which includes the error code, message,
  381    407   
    /// request ID, and potentially additional information.
  382    408   
    ///
         409  +
    /* OperationErrorGenerator.kt:242 */
  383    410   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         411  +
        /* OperationErrorGenerator.kt:243 */
  384    412   
        match self {
  385         -
            Self::Unhandled(e) => &e.meta,
         413  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         414  +
            /* OperationErrorGenerator.kt:243 */
  386    415   
        }
         416  +
        /* OperationErrorGenerator.kt:242 */
  387    417   
    }
         418  +
    /* OperationErrorGenerator.kt:218 */
  388    419   
}
         420  +
/* OperationErrorGenerator.kt:269 */
  389    421   
impl ::std::error::Error for XmlListsError {
         422  +
    /* OperationErrorGenerator.kt:270 */
  390    423   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         424  +
        /* OperationErrorGenerator.kt:318 */
  391    425   
        match self {
  392         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         426  +
            /* OperationErrorGenerator.kt:326 */
         427  +
            Self::Unhandled(_inner) => {
         428  +
                /* OperationErrorGenerator.kt:279 */
         429  +
                ::std::option::Option::Some(&*_inner.source)
         430  +
                /* OperationErrorGenerator.kt:326 */
         431  +
            } /* OperationErrorGenerator.kt:318 */
  393    432   
        }
         433  +
        /* OperationErrorGenerator.kt:270 */
  394    434   
    }
         435  +
    /* OperationErrorGenerator.kt:269 */
  395    436   
}
         437  +
/* OperationErrorGenerator.kt:133 */
  396    438   
impl ::std::fmt::Display for XmlListsError {
         439  +
    /* OperationErrorGenerator.kt:134 */
  397    440   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         441  +
        /* OperationErrorGenerator.kt:318 */
  398    442   
        match self {
         443  +
            /* OperationErrorGenerator.kt:326 */
  399    444   
            Self::Unhandled(_inner) => {
         445  +
                /* OperationErrorGenerator.kt:139 */
  400    446   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  401    447   
                    write!(f, "unhandled error ({code})")
  402    448   
                } else {
  403    449   
                    f.write_str("unhandled error")
  404    450   
                }
         451  +
                /* OperationErrorGenerator.kt:326 */
         452  +
            } /* OperationErrorGenerator.kt:318 */
  405    453   
        }
         454  +
        /* OperationErrorGenerator.kt:134 */
  406    455   
    }
  407         -
    }
         456  +
    /* OperationErrorGenerator.kt:133 */
  408    457   
}
         458  +
/* OperationErrorGenerator.kt:182 */
  409    459   
impl ::aws_smithy_types::retry::ProvideErrorKind for XmlListsError {
         460  +
    /* OperationErrorGenerator.kt:186 */
  410    461   
    fn code(&self) -> ::std::option::Option<&str> {
         462  +
        /* OperationErrorGenerator.kt:187 */
  411    463   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         464  +
        /* OperationErrorGenerator.kt:186 */
  412    465   
    }
         466  +
    /* OperationErrorGenerator.kt:190 */
  413    467   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         468  +
        /* OperationErrorGenerator.kt:197 */
  414    469   
        ::std::option::Option::None
         470  +
        /* OperationErrorGenerator.kt:190 */
  415    471   
    }
         472  +
    /* OperationErrorGenerator.kt:182 */
  416    473   
}
         474  +
/* OperationErrorGenerator.kt:163 */
  417    475   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for XmlListsError {
         476  +
    /* OperationErrorGenerator.kt:164 */
  418    477   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         478  +
        /* OperationErrorGenerator.kt:318 */
  419    479   
        match self {
  420         -
            Self::Unhandled(_inner) => &_inner.meta,
         480  +
            /* OperationErrorGenerator.kt:326 */
         481  +
            Self::Unhandled(_inner) => {
         482  +
                /* OperationErrorGenerator.kt:168 */
         483  +
                &_inner.meta
         484  +
                /* OperationErrorGenerator.kt:326 */
         485  +
            } /* OperationErrorGenerator.kt:318 */
  421    486   
        }
         487  +
        /* OperationErrorGenerator.kt:164 */
  422    488   
    }
         489  +
    /* OperationErrorGenerator.kt:163 */
  423    490   
}
         491  +
/* OperationErrorGenerator.kt:109 */
  424    492   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for XmlListsError {
         493  +
    /* OperationErrorGenerator.kt:110 */
  425    494   
    fn create_unhandled_error(
  426    495   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  427    496   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  428    497   
    ) -> Self {
         498  +
        /* OperationErrorGenerator.kt:121 */
  429    499   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  430    500   
            source,
  431    501   
            meta: meta.unwrap_or_default(),
  432    502   
        })
         503  +
        /* OperationErrorGenerator.kt:110 */
  433    504   
    }
         505  +
    /* OperationErrorGenerator.kt:109 */
  434    506   
}
  435    507   
         508  +
/* CodegenDelegator.kt:255 */
  436    509   
pub use crate::operation::xml_lists::_xml_lists_output::XmlListsOutput;
  437    510   
         511  +
/* CodegenDelegator.kt:255 */
  438    512   
pub use crate::operation::xml_lists::_xml_lists_input::XmlListsInput;
  439    513   
         514  +
/* RustModule.kt:172 */
  440    515   
mod _xml_lists_input;
  441    516   
         517  +
/* RustModule.kt:172 */
  442    518   
mod _xml_lists_output;
  443    519   
  444         -
/// Builders
         520  +
/// /* CodegenDelegator.kt:51 */Builders
  445    521   
pub mod builders;

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/xml_lists/_xml_lists_input.rs

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

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/xml_lists/_xml_lists_output.rs

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