Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

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

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

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

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

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

@@ -1,1 +124,142 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CodegenDelegator.kt:255 */
    2      3   
pub use crate::operation::xml_empty_strings::_xml_empty_strings_output::XmlEmptyStringsOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::xml_empty_strings::_xml_empty_strings_input::XmlEmptyStringsInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::xml_empty_strings::builders::XmlEmptyStringsInputBuilder {
    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_strings::XmlEmptyStringsOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::xml_empty_strings::XmlEmptyStringsError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.xml_empty_strings();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `XmlEmptyStrings`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `XmlEmptyStrings`.
   24     27   
///
          28  +
/* RustType.kt:516 */
   25     29   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          30  +
/* FluentBuilderGenerator.kt:270 */
   26     31   
pub struct XmlEmptyStringsFluentBuilder {
   27     32   
    handle: ::std::sync::Arc<crate::client::Handle>,
   28     33   
    inner: crate::operation::xml_empty_strings::builders::XmlEmptyStringsInputBuilder,
   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_strings::XmlEmptyStringsOutput,
   34     40   
        crate::operation::xml_empty_strings::XmlEmptyStringsError,
   35     41   
    > for XmlEmptyStringsFluentBuilder
   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_strings::XmlEmptyStringsOutput,
   43     49   
            crate::operation::xml_empty_strings::XmlEmptyStringsError,
   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 XmlEmptyStringsFluentBuilder {
          57  +
    /* FluentBuilderGenerator.kt:288 */
   50     58   
    /// Creates a new `XmlEmptyStringsFluentBuilder`.
   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 XmlEmptyStrings as a reference.
   59     68   
    pub fn as_input(&self) -> &crate::operation::xml_empty_strings::builders::XmlEmptyStringsInputBuilder {
   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_strings::XmlEmptyStringsOutput,
   74     84   
        ::aws_smithy_runtime_api::client::result::SdkError<
   75     85   
            crate::operation::xml_empty_strings::XmlEmptyStringsError,
   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_strings::XmlEmptyStrings::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_strings::XmlEmptyStrings::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_strings::XmlEmptyStringsOutput,
   96    106   
        crate::operation::xml_empty_strings::XmlEmptyStringsError,
   97    107   
        Self,
   98    108   
    > {
   99    109   
        crate::client::customize::CustomizableOperation::new(self)
  100    110   
    }
         111  +
    /* FluentBuilderGenerator.kt:315 */
  101    112   
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
  102    113   
        self.set_config_override(::std::option::Option::Some(config_override.into()));
  103    114   
        self
  104    115   
    }
  105    116   
  106    117   
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
  107    118   
        self.config_override = config_override;
  108    119   
        self
  109    120   
    }
         121  +
    /* FluentBuilderGenerator.kt:498 */
  110    122   
    #[allow(missing_docs)] // documentation missing in model
         123  +
                           /* FluentBuilderGenerator.kt:500 */
  111    124   
    pub fn empty_string(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  112    125   
        self.inner = self.inner.empty_string(input.into());
  113    126   
        self
  114    127   
    }
         128  +
    /* FluentBuilderGenerator.kt:498 */
  115    129   
    #[allow(missing_docs)] // documentation missing in model
         130  +
                           /* FluentBuilderGenerator.kt:500 */
  116    131   
    pub fn set_empty_string(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  117    132   
        self.inner = self.inner.set_empty_string(input);
  118    133   
        self
  119    134   
    }
         135  +
    /* FluentBuilderGenerator.kt:518 */
  120    136   
    #[allow(missing_docs)] // documentation missing in model
         137  +
                           /* FluentBuilderGenerator.kt:520 */
  121    138   
    pub fn get_empty_string(&self) -> &::std::option::Option<::std::string::String> {
  122    139   
        self.inner.get_empty_string()
  123    140   
    }
         141  +
    /* FluentBuilderGenerator.kt:282 */
  124    142   
}

tmp-codegen-diff/codegen-client-test/rest_xml/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 +257,274 @@
   73     82   
                runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
   74     83   
            }
   75     84   
            runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
   76     85   
                config_override,
   77     86   
                client_config.config.clone(),
   78     87   
                &client_config.runtime_components,
   79     88   
            ));
   80     89   
        }
   81     90   
        runtime_plugins
   82     91   
    }
          92  +
    /* OperationGenerator.kt:85 */
   83     93   
}
          94  +
/* OperationRuntimePluginGenerator.kt:55 */
   84     95   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for 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   
            "Rest Xml Protocol",
  102    113   
        ));
  103    114   
  104    115   
        ::std::option::Option::Some(cfg.freeze())
  105    116   
    }
  106    117   
  107    118   
    fn runtime_components(
  108    119   
        &self,
  109    120   
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
  110    121   
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
  111    122   
        #[allow(unused_mut)]
  112    123   
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("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, "/XmlEnums").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("PUT").uri(uri))
  178    191   
            }
  179    192   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  180    193   
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/xml");
  181    194   
            builder
  182    195   
        };
  183    196   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_xml_enums::ser_xml_enums_op_input(&input)?);
  184    197   
        if let Some(content_length) = body.content_length() {
  185    198   
            let content_length = content_length.to_string();
  186    199   
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
  187    200   
        }
  188    201   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  189    202   
    }
  190    203   
}
         204  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  191    205   
#[derive(Debug)]
  192    206   
struct XmlEnumsEndpointParamsInterceptor;
  193    207   
  194    208   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for XmlEnumsEndpointParamsInterceptor {
  195    209   
    fn name(&self) -> &'static str {
  196    210   
        "XmlEnumsEndpointParamsInterceptor"
  197    211   
    }
  198    212   
  199    213   
    fn read_before_execution(
  200    214   
        &self,
  201    215   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  202    216   
            '_,
  203    217   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  204    218   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  205    219   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  206    220   
        >,
  207    221   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  208    222   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  209    223   
        let _input = context
  210    224   
            .input()
  211    225   
            .downcast_ref::<XmlEnumsInput>()
  212    226   
            .ok_or("failed to downcast to XmlEnumsInput")?;
  213    227   
  214    228   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  215    229   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  216    230   
        })?;
  217    231   
        cfg.interceptor_state()
  218    232   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  219    233   
        ::std::result::Result::Ok(())
  220    234   
    }
  221    235   
}
  222    236   
  223    237   
// The get_* functions below are generated from JMESPath expressions in the
  224    238   
// operationContextParams trait. They target the operation's input shape.
  225    239   
         240  +
/* RustType.kt:516 */
  226    241   
#[allow(unreachable_code, unused_variables)]
         242  +
/* RustType.kt:516 */
  227    243   
#[cfg(test)]
         244  +
/* ProtocolTestGenerator.kt:98 */
  228    245   
mod xml_enums_test {
  229    246   
  230    247   
    /// Serializes simple scalar properties
  231    248   
    /// Test ID: XmlEnums
  232    249   
    #[::tokio::test]
  233    250   
    #[::tracing_test::traced_test]
  234    251   
    async fn xml_enums_request() {
  235    252   
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  236    253   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  237    254   
@@ -331,348 +460,536 @@
  351    368   
        ::pretty_assertions::assert_eq!(parsed.foo_enum2, expected_output.foo_enum2, "Unexpected value for `foo_enum2`");
  352    369   
        ::pretty_assertions::assert_eq!(parsed.foo_enum3, expected_output.foo_enum3, "Unexpected value for `foo_enum3`");
  353    370   
        ::pretty_assertions::assert_eq!(
  354    371   
            parsed.foo_enum_list,
  355    372   
            expected_output.foo_enum_list,
  356    373   
            "Unexpected value for `foo_enum_list`"
  357    374   
        );
  358    375   
        ::pretty_assertions::assert_eq!(parsed.foo_enum_set, expected_output.foo_enum_set, "Unexpected value for `foo_enum_set`");
  359    376   
        ::pretty_assertions::assert_eq!(parsed.foo_enum_map, expected_output.foo_enum_map, "Unexpected value for `foo_enum_map`");
  360    377   
    }
         378  +
         379  +
    /* ProtocolTestGenerator.kt:98 */
  361    380   
}
  362    381   
         382  +
/* OperationErrorGenerator.kt:79 */
  363    383   
/// Error type for the `XmlEnumsError` operation.
         384  +
/* RustType.kt:516 */
  364    385   
#[non_exhaustive]
         386  +
/* RustType.kt:516 */
  365    387   
#[derive(::std::fmt::Debug)]
  366         -
pub enum XmlEnumsError {
         388  +
pub /* OperationErrorGenerator.kt:81 */ enum XmlEnumsError {
         389  +
    /* OperationErrorGenerator.kt:88 */
  367    390   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  368    391   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  369    392   
    variable wildcard pattern and check `.code()`:
  370    393   
     \
  371    394   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  372    395   
     \
  373    396   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-XmlEnumsError) for what information is available for the error.")]
  374    397   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         398  +
    /* OperationErrorGenerator.kt:81 */
  375    399   
}
         400  +
/* OperationErrorGenerator.kt:218 */
  376    401   
impl XmlEnumsError {
         402  +
    /* OperationErrorGenerator.kt:219 */
  377    403   
    /// Creates the `XmlEnumsError::Unhandled` variant from any error type.
  378    404   
    pub fn unhandled(
  379    405   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  380    406   
    ) -> Self {
  381    407   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  382    408   
            source: err.into(),
  383    409   
            meta: ::std::default::Default::default(),
  384    410   
        })
  385    411   
    }
  386    412   
  387    413   
    /// Creates the `XmlEnumsError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  388    414   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  389    415   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  390    416   
            source: err.clone().into(),
  391    417   
            meta: err,
  392    418   
        })
  393    419   
    }
  394         -
    ///
         420  +
    /// /* OperationErrorGenerator.kt:236 */
  395    421   
    /// Returns error metadata, which includes the error code, message,
  396    422   
    /// request ID, and potentially additional information.
  397    423   
    ///
         424  +
    /* OperationErrorGenerator.kt:242 */
  398    425   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         426  +
        /* OperationErrorGenerator.kt:243 */
  399    427   
        match self {
  400         -
            Self::Unhandled(e) => &e.meta,
         428  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         429  +
            /* OperationErrorGenerator.kt:243 */
  401    430   
        }
         431  +
        /* OperationErrorGenerator.kt:242 */
  402    432   
    }
         433  +
    /* OperationErrorGenerator.kt:218 */
  403    434   
}
         435  +
/* OperationErrorGenerator.kt:269 */
  404    436   
impl ::std::error::Error for XmlEnumsError {
         437  +
    /* OperationErrorGenerator.kt:270 */
  405    438   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         439  +
        /* OperationErrorGenerator.kt:318 */
  406    440   
        match self {
  407         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         441  +
            /* OperationErrorGenerator.kt:326 */
         442  +
            Self::Unhandled(_inner) => {
         443  +
                /* OperationErrorGenerator.kt:279 */
         444  +
                ::std::option::Option::Some(&*_inner.source)
         445  +
                /* OperationErrorGenerator.kt:326 */
         446  +
            } /* OperationErrorGenerator.kt:318 */
  408    447   
        }
         448  +
        /* OperationErrorGenerator.kt:270 */
  409    449   
    }
         450  +
    /* OperationErrorGenerator.kt:269 */
  410    451   
}
         452  +
/* OperationErrorGenerator.kt:133 */
  411    453   
impl ::std::fmt::Display for XmlEnumsError {
         454  +
    /* OperationErrorGenerator.kt:134 */
  412    455   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         456  +
        /* OperationErrorGenerator.kt:318 */
  413    457   
        match self {
         458  +
            /* OperationErrorGenerator.kt:326 */
  414    459   
            Self::Unhandled(_inner) => {
         460  +
                /* OperationErrorGenerator.kt:139 */
  415    461   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  416    462   
                    write!(f, "unhandled error ({code})")
  417    463   
                } else {
  418    464   
                    f.write_str("unhandled error")
  419    465   
                }
         466  +
                /* OperationErrorGenerator.kt:326 */
         467  +
            } /* OperationErrorGenerator.kt:318 */
  420    468   
        }
         469  +
        /* OperationErrorGenerator.kt:134 */
  421    470   
    }
  422         -
    }
         471  +
    /* OperationErrorGenerator.kt:133 */
  423    472   
}
         473  +
/* OperationErrorGenerator.kt:182 */
  424    474   
impl ::aws_smithy_types::retry::ProvideErrorKind for XmlEnumsError {
         475  +
    /* OperationErrorGenerator.kt:186 */
  425    476   
    fn code(&self) -> ::std::option::Option<&str> {
         477  +
        /* OperationErrorGenerator.kt:187 */
  426    478   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         479  +
        /* OperationErrorGenerator.kt:186 */
  427    480   
    }
         481  +
    /* OperationErrorGenerator.kt:190 */
  428    482   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         483  +
        /* OperationErrorGenerator.kt:197 */
  429    484   
        ::std::option::Option::None
         485  +
        /* OperationErrorGenerator.kt:190 */
  430    486   
    }
         487  +
    /* OperationErrorGenerator.kt:182 */
  431    488   
}
         489  +
/* OperationErrorGenerator.kt:163 */
  432    490   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for XmlEnumsError {
         491  +
    /* OperationErrorGenerator.kt:164 */
  433    492   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         493  +
        /* OperationErrorGenerator.kt:318 */
  434    494   
        match self {
  435         -
            Self::Unhandled(_inner) => &_inner.meta,
         495  +
            /* OperationErrorGenerator.kt:326 */
         496  +
            Self::Unhandled(_inner) => {
         497  +
                /* OperationErrorGenerator.kt:168 */
         498  +
                &_inner.meta
         499  +
                /* OperationErrorGenerator.kt:326 */
         500  +
            } /* OperationErrorGenerator.kt:318 */
  436    501   
        }
         502  +
        /* OperationErrorGenerator.kt:164 */
  437    503   
    }
         504  +
    /* OperationErrorGenerator.kt:163 */
  438    505   
}
         506  +
/* OperationErrorGenerator.kt:109 */
  439    507   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for XmlEnumsError {
         508  +
    /* OperationErrorGenerator.kt:110 */
  440    509   
    fn create_unhandled_error(
  441    510   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  442    511   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  443    512   
    ) -> Self {
         513  +
        /* OperationErrorGenerator.kt:121 */
  444    514   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  445    515   
            source,
  446    516   
            meta: meta.unwrap_or_default(),
  447    517   
        })
         518  +
        /* OperationErrorGenerator.kt:110 */
  448    519   
    }
         520  +
    /* OperationErrorGenerator.kt:109 */
  449    521   
}
  450    522   
         523  +
/* CodegenDelegator.kt:255 */
  451    524   
pub use crate::operation::xml_enums::_xml_enums_output::XmlEnumsOutput;
  452    525   
         526  +
/* CodegenDelegator.kt:255 */
  453    527   
pub use crate::operation::xml_enums::_xml_enums_input::XmlEnumsInput;
  454    528   
         529  +
/* RustModule.kt:172 */
  455    530   
mod _xml_enums_input;
  456    531   
         532  +
/* RustModule.kt:172 */
  457    533   
mod _xml_enums_output;
  458    534   
  459         -
/// Builders
         535  +
/// /* CodegenDelegator.kt:51 */Builders
  460    536   
pub mod builders;

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

@@ -1,1 +181,325 @@
    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 {
           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 XmlEnumsInput {
          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 XmlEnumsInput {
   50         -
    /// Creates a new builder-style object to manufacture [`XmlEnumsInput`](crate::operation::xml_enums::XmlEnumsInput).
          93  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`XmlEnumsInput`](crate::operation::xml_enums::XmlEnumsInput).
          94  +
    /* BuilderGenerator.kt:175 */
   51     95   
    pub fn builder() -> crate::operation::xml_enums::builders::XmlEnumsInputBuilder {
          96  +
        /* BuilderGenerator.kt:176 */
   52     97   
        crate::operation::xml_enums::builders::XmlEnumsInputBuilder::default()
          98  +
        /* BuilderGenerator.kt:175 */
   53     99   
    }
         100  +
    /* ClientCodegenVisitor.kt:237 */
   54    101   
}
   55    102   
   56         -
/// A builder for [`XmlEnumsInput`](crate::operation::xml_enums::XmlEnumsInput).
         103  +
/// /* BuilderGenerator.kt:342 */A builder for [`XmlEnumsInput`](crate::operation::xml_enums::XmlEnumsInput).
         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 XmlEnumsInputBuilder {
   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 XmlEnumsInputBuilder {
         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 [`XmlEnumsInput`](crate::operation::xml_enums::XmlEnumsInput).
         301  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`XmlEnumsInput`](crate::operation::xml_enums::XmlEnumsInput).
         302  +
    /* BuilderGenerator.kt:253 */
  171    303   
    pub fn build(self) -> ::std::result::Result<crate::operation::xml_enums::XmlEnumsInput, ::aws_smithy_types::error::operation::BuildError> {
  172         -
        ::std::result::Result::Ok(crate::operation::xml_enums::XmlEnumsInput {
  173         -
            foo_enum1: self.foo_enum1,
         304  +
        /* BuilderGenerator.kt:254 */
         305  +
        ::std::result::Result::Ok(
         306  +
            /* BuilderGenerator.kt:477 */
         307  +
            crate::operation::xml_enums::XmlEnumsInput {
         308  +
                /* BuilderGenerator.kt:481 */ foo_enum1: self.foo_enum1,
         309  +
                /* BuilderGenerator.kt:481 */
  174    310   
                foo_enum2: self.foo_enum2,
         311  +
                /* BuilderGenerator.kt:481 */
  175    312   
                foo_enum3: self.foo_enum3,
         313  +
                /* BuilderGenerator.kt:481 */
  176    314   
                foo_enum_list: self.foo_enum_list,
         315  +
                /* BuilderGenerator.kt:481 */
  177    316   
                foo_enum_set: self.foo_enum_set,
         317  +
                /* BuilderGenerator.kt:481 */
  178    318   
                foo_enum_map: self.foo_enum_map,
  179         -
        })
         319  +
                /* BuilderGenerator.kt:477 */
         320  +
            }, /* BuilderGenerator.kt:254 */
         321  +
        )
         322  +
        /* BuilderGenerator.kt:253 */
  180    323   
    }
         324  +
    /* BuilderGenerator.kt:355 */
  181    325   
}

tmp-codegen-diff/codegen-client-test/rest_xml/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/rest_xml/rust-client-codegen/src/operation/xml_enums/builders.rs

@@ -1,1 +204,252 @@
    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:498 */
  102    114   
    #[allow(missing_docs)] // documentation missing in model
         115  +
                           /* FluentBuilderGenerator.kt:500 */
  103    116   
    pub fn foo_enum1(mut self, input: crate::types::FooEnum) -> Self {
  104    117   
        self.inner = self.inner.foo_enum1(input);
  105    118   
        self
  106    119   
    }
         120  +
    /* FluentBuilderGenerator.kt:498 */
  107    121   
    #[allow(missing_docs)] // documentation missing in model
         122  +
                           /* FluentBuilderGenerator.kt:500 */
  108    123   
    pub fn set_foo_enum1(mut self, input: ::std::option::Option<crate::types::FooEnum>) -> Self {
  109    124   
        self.inner = self.inner.set_foo_enum1(input);
  110    125   
        self
  111    126   
    }
         127  +
    /* FluentBuilderGenerator.kt:518 */
  112    128   
    #[allow(missing_docs)] // documentation missing in model
         129  +
                           /* FluentBuilderGenerator.kt:520 */
  113    130   
    pub fn get_foo_enum1(&self) -> &::std::option::Option<crate::types::FooEnum> {
  114    131   
        self.inner.get_foo_enum1()
  115    132   
    }
         133  +
    /* FluentBuilderGenerator.kt:498 */
  116    134   
    #[allow(missing_docs)] // documentation missing in model
         135  +
                           /* FluentBuilderGenerator.kt:500 */
  117    136   
    pub fn foo_enum2(mut self, input: crate::types::FooEnum) -> Self {
  118    137   
        self.inner = self.inner.foo_enum2(input);
  119    138   
        self
  120    139   
    }
         140  +
    /* FluentBuilderGenerator.kt:498 */
  121    141   
    #[allow(missing_docs)] // documentation missing in model
         142  +
                           /* FluentBuilderGenerator.kt:500 */
  122    143   
    pub fn set_foo_enum2(mut self, input: ::std::option::Option<crate::types::FooEnum>) -> Self {
  123    144   
        self.inner = self.inner.set_foo_enum2(input);
  124    145   
        self
  125    146   
    }
         147  +
    /* FluentBuilderGenerator.kt:518 */
  126    148   
    #[allow(missing_docs)] // documentation missing in model
         149  +
                           /* FluentBuilderGenerator.kt:520 */
  127    150   
    pub fn get_foo_enum2(&self) -> &::std::option::Option<crate::types::FooEnum> {
  128    151   
        self.inner.get_foo_enum2()
  129    152   
    }
         153  +
    /* FluentBuilderGenerator.kt:498 */
  130    154   
    #[allow(missing_docs)] // documentation missing in model
         155  +
                           /* FluentBuilderGenerator.kt:500 */
  131    156   
    pub fn foo_enum3(mut self, input: crate::types::FooEnum) -> Self {
  132    157   
        self.inner = self.inner.foo_enum3(input);
  133    158   
        self
  134    159   
    }
         160  +
    /* FluentBuilderGenerator.kt:498 */
  135    161   
    #[allow(missing_docs)] // documentation missing in model
         162  +
                           /* FluentBuilderGenerator.kt:500 */
  136    163   
    pub fn set_foo_enum3(mut self, input: ::std::option::Option<crate::types::FooEnum>) -> Self {
  137    164   
        self.inner = self.inner.set_foo_enum3(input);
  138    165   
        self
  139    166   
    }
         167  +
    /* FluentBuilderGenerator.kt:518 */
  140    168   
    #[allow(missing_docs)] // documentation missing in model
         169  +
                           /* FluentBuilderGenerator.kt:520 */
  141    170   
    pub fn get_foo_enum3(&self) -> &::std::option::Option<crate::types::FooEnum> {
  142    171   
        self.inner.get_foo_enum3()
  143    172   
    }
  144         -
    ///
         173  +
    /// /* FluentBuilderGenerator.kt:436 */
  145    174   
    /// Appends an item to `fooEnumList`.
  146    175   
    ///
  147    176   
    /// To override the contents of this collection use [`set_foo_enum_list`](Self::set_foo_enum_list).
  148    177   
    ///
         178  +
    /* FluentBuilderGenerator.kt:443 */
  149    179   
    #[allow(missing_docs)] // documentation missing in model
         180  +
                           /* FluentBuilderGenerator.kt:446 */
  150    181   
    pub fn foo_enum_list(mut self, input: crate::types::FooEnum) -> Self {
  151    182   
        self.inner = self.inner.foo_enum_list(input);
  152    183   
        self
  153    184   
    }
         185  +
    /* FluentBuilderGenerator.kt:498 */
  154    186   
    #[allow(missing_docs)] // documentation missing in model
         187  +
                           /* FluentBuilderGenerator.kt:500 */
  155    188   
    pub fn set_foo_enum_list(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::FooEnum>>) -> Self {
  156    189   
        self.inner = self.inner.set_foo_enum_list(input);
  157    190   
        self
  158    191   
    }
         192  +
    /* FluentBuilderGenerator.kt:518 */
  159    193   
    #[allow(missing_docs)] // documentation missing in model
         194  +
                           /* FluentBuilderGenerator.kt:520 */
  160    195   
    pub fn get_foo_enum_list(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::FooEnum>> {
  161    196   
        self.inner.get_foo_enum_list()
  162    197   
    }
  163         -
    ///
         198  +
    /// /* FluentBuilderGenerator.kt:436 */
  164    199   
    /// Appends an item to `fooEnumSet`.
  165    200   
    ///
  166    201   
    /// To override the contents of this collection use [`set_foo_enum_set`](Self::set_foo_enum_set).
  167    202   
    ///
         203  +
    /* FluentBuilderGenerator.kt:443 */
  168    204   
    #[allow(missing_docs)] // documentation missing in model
         205  +
                           /* FluentBuilderGenerator.kt:446 */
  169    206   
    pub fn foo_enum_set(mut self, input: crate::types::FooEnum) -> Self {
  170    207   
        self.inner = self.inner.foo_enum_set(input);
  171    208   
        self
  172    209   
    }
         210  +
    /* FluentBuilderGenerator.kt:498 */
  173    211   
    #[allow(missing_docs)] // documentation missing in model
         212  +
                           /* FluentBuilderGenerator.kt:500 */
  174    213   
    pub fn set_foo_enum_set(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::FooEnum>>) -> Self {
  175    214   
        self.inner = self.inner.set_foo_enum_set(input);
  176    215   
        self
  177    216   
    }
         217  +
    /* FluentBuilderGenerator.kt:518 */
  178    218   
    #[allow(missing_docs)] // documentation missing in model
         219  +
                           /* FluentBuilderGenerator.kt:520 */
  179    220   
    pub fn get_foo_enum_set(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::FooEnum>> {
  180    221   
        self.inner.get_foo_enum_set()
  181    222   
    }
  182         -
    ///
         223  +
    /// /* FluentBuilderGenerator.kt:466 */
  183    224   
    /// Adds a key-value pair to `fooEnumMap`.
  184    225   
    ///
  185    226   
    /// To override the contents of this collection use [`set_foo_enum_map`](Self::set_foo_enum_map).
  186    227   
    ///
         228  +
    /* FluentBuilderGenerator.kt:473 */
  187    229   
    #[allow(missing_docs)] // documentation missing in model
         230  +
                           /* FluentBuilderGenerator.kt:475 */
  188    231   
    pub fn foo_enum_map(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::FooEnum) -> Self {
  189    232   
        self.inner = self.inner.foo_enum_map(k.into(), v);
  190    233   
        self
  191    234   
    }
         235  +
    /* FluentBuilderGenerator.kt:498 */
  192    236   
    #[allow(missing_docs)] // documentation missing in model
         237  +
                           /* FluentBuilderGenerator.kt:500 */
  193    238   
    pub fn set_foo_enum_map(
  194    239   
        mut self,
  195    240   
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::FooEnum>>,
  196    241   
    ) -> Self {
  197    242   
        self.inner = self.inner.set_foo_enum_map(input);
  198    243   
        self
  199    244   
    }
         245  +
    /* FluentBuilderGenerator.kt:518 */
  200    246   
    #[allow(missing_docs)] // documentation missing in model
         247  +
                           /* FluentBuilderGenerator.kt:520 */
  201    248   
    pub fn get_foo_enum_map(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::FooEnum>> {
  202    249   
        self.inner.get_foo_enum_map()
  203    250   
    }
         251  +
    /* FluentBuilderGenerator.kt:282 */
  204    252   
}

tmp-codegen-diff/codegen-client-test/rest_xml/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 +263,280 @@
   77     86   
                runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
   78     87   
            }
   79     88   
            runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
   80     89   
                config_override,
   81     90   
                client_config.config.clone(),
   82     91   
                &client_config.runtime_components,
   83     92   
            ));
   84     93   
        }
   85     94   
        runtime_plugins
   86     95   
    }
          96  +
    /* OperationGenerator.kt:85 */
   87     97   
}
          98  +
/* OperationRuntimePluginGenerator.kt:55 */
   88     99   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for 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   
            "Rest Xml Protocol",
  106    117   
        ));
  107    118   
  108    119   
        ::std::option::Option::Some(cfg.freeze())
  109    120   
    }
  110    121   
  111    122   
    fn runtime_components(
  112    123   
        &self,
  113    124   
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
  114    125   
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
  115    126   
        #[allow(unused_mut)]
  116    127   
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("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, "/XmlIntEnums").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("PUT").uri(uri))
  184    197   
            }
  185    198   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  186    199   
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/xml");
  187    200   
            builder
  188    201   
        };
  189    202   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_xml_int_enums::ser_xml_int_enums_op_input(&input)?);
  190    203   
        if let Some(content_length) = body.content_length() {
  191    204   
            let content_length = content_length.to_string();
  192    205   
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
  193    206   
        }
  194    207   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  195    208   
    }
  196    209   
}
         210  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  197    211   
#[derive(Debug)]
  198    212   
struct XmlIntEnumsEndpointParamsInterceptor;
  199    213   
  200    214   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for XmlIntEnumsEndpointParamsInterceptor {
  201    215   
    fn name(&self) -> &'static str {
  202    216   
        "XmlIntEnumsEndpointParamsInterceptor"
  203    217   
    }
  204    218   
  205    219   
    fn read_before_execution(
  206    220   
        &self,
  207    221   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  208    222   
            '_,
  209    223   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  210    224   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  211    225   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  212    226   
        >,
  213    227   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  214    228   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  215    229   
        let _input = context
  216    230   
            .input()
  217    231   
            .downcast_ref::<XmlIntEnumsInput>()
  218    232   
            .ok_or("failed to downcast to XmlIntEnumsInput")?;
  219    233   
  220    234   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  221    235   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  222    236   
        })?;
  223    237   
        cfg.interceptor_state()
  224    238   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  225    239   
        ::std::result::Result::Ok(())
  226    240   
    }
  227    241   
}
  228    242   
  229    243   
// The get_* functions below are generated from JMESPath expressions in the
  230    244   
// operationContextParams trait. They target the operation's input shape.
  231    245   
         246  +
/* RustType.kt:516 */
  232    247   
#[allow(unreachable_code, unused_variables)]
         248  +
/* RustType.kt:516 */
  233    249   
#[cfg(test)]
         250  +
/* ProtocolTestGenerator.kt:98 */
  234    251   
mod xml_int_enums_test {
  235    252   
  236    253   
    /// Serializes simple scalar properties
  237    254   
    /// Test ID: XmlIntEnums
  238    255   
    #[::tokio::test]
  239    256   
    #[::tracing_test::traced_test]
  240    257   
    async fn xml_int_enums_request() {
  241    258   
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  242    259   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  243    260   
@@ -301,318 +430,506 @@
  321    338   
        ::pretty_assertions::assert_eq!(parsed.int_enum2, expected_output.int_enum2, "Unexpected value for `int_enum2`");
  322    339   
        ::pretty_assertions::assert_eq!(parsed.int_enum3, expected_output.int_enum3, "Unexpected value for `int_enum3`");
  323    340   
        ::pretty_assertions::assert_eq!(
  324    341   
            parsed.int_enum_list,
  325    342   
            expected_output.int_enum_list,
  326    343   
            "Unexpected value for `int_enum_list`"
  327    344   
        );
  328    345   
        ::pretty_assertions::assert_eq!(parsed.int_enum_set, expected_output.int_enum_set, "Unexpected value for `int_enum_set`");
  329    346   
        ::pretty_assertions::assert_eq!(parsed.int_enum_map, expected_output.int_enum_map, "Unexpected value for `int_enum_map`");
  330    347   
    }
         348  +
         349  +
    /* ProtocolTestGenerator.kt:98 */
  331    350   
}
  332    351   
         352  +
/* OperationErrorGenerator.kt:79 */
  333    353   
/// Error type for the `XmlIntEnumsError` operation.
         354  +
/* RustType.kt:516 */
  334    355   
#[non_exhaustive]
         356  +
/* RustType.kt:516 */
  335    357   
#[derive(::std::fmt::Debug)]
  336         -
pub enum XmlIntEnumsError {
         358  +
pub /* OperationErrorGenerator.kt:81 */ enum XmlIntEnumsError {
         359  +
    /* OperationErrorGenerator.kt:88 */
  337    360   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  338    361   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  339    362   
    variable wildcard pattern and check `.code()`:
  340    363   
     \
  341    364   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  342    365   
     \
  343    366   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-XmlIntEnumsError) for what information is available for the error.")]
  344    367   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         368  +
    /* OperationErrorGenerator.kt:81 */
  345    369   
}
         370  +
/* OperationErrorGenerator.kt:218 */
  346    371   
impl XmlIntEnumsError {
         372  +
    /* OperationErrorGenerator.kt:219 */
  347    373   
    /// Creates the `XmlIntEnumsError::Unhandled` variant from any error type.
  348    374   
    pub fn unhandled(
  349    375   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  350    376   
    ) -> Self {
  351    377   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  352    378   
            source: err.into(),
  353    379   
            meta: ::std::default::Default::default(),
  354    380   
        })
  355    381   
    }
  356    382   
  357    383   
    /// Creates the `XmlIntEnumsError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  358    384   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  359    385   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  360    386   
            source: err.clone().into(),
  361    387   
            meta: err,
  362    388   
        })
  363    389   
    }
  364         -
    ///
         390  +
    /// /* OperationErrorGenerator.kt:236 */
  365    391   
    /// Returns error metadata, which includes the error code, message,
  366    392   
    /// request ID, and potentially additional information.
  367    393   
    ///
         394  +
    /* OperationErrorGenerator.kt:242 */
  368    395   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         396  +
        /* OperationErrorGenerator.kt:243 */
  369    397   
        match self {
  370         -
            Self::Unhandled(e) => &e.meta,
         398  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         399  +
            /* OperationErrorGenerator.kt:243 */
  371    400   
        }
         401  +
        /* OperationErrorGenerator.kt:242 */
  372    402   
    }
         403  +
    /* OperationErrorGenerator.kt:218 */
  373    404   
}
         405  +
/* OperationErrorGenerator.kt:269 */
  374    406   
impl ::std::error::Error for XmlIntEnumsError {
         407  +
    /* OperationErrorGenerator.kt:270 */
  375    408   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         409  +
        /* OperationErrorGenerator.kt:318 */
  376    410   
        match self {
  377         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         411  +
            /* OperationErrorGenerator.kt:326 */
         412  +
            Self::Unhandled(_inner) => {
         413  +
                /* OperationErrorGenerator.kt:279 */
         414  +
                ::std::option::Option::Some(&*_inner.source)
         415  +
                /* OperationErrorGenerator.kt:326 */
         416  +
            } /* OperationErrorGenerator.kt:318 */
  378    417   
        }
         418  +
        /* OperationErrorGenerator.kt:270 */
  379    419   
    }
         420  +
    /* OperationErrorGenerator.kt:269 */
  380    421   
}
         422  +
/* OperationErrorGenerator.kt:133 */
  381    423   
impl ::std::fmt::Display for XmlIntEnumsError {
         424  +
    /* OperationErrorGenerator.kt:134 */
  382    425   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         426  +
        /* OperationErrorGenerator.kt:318 */
  383    427   
        match self {
         428  +
            /* OperationErrorGenerator.kt:326 */
  384    429   
            Self::Unhandled(_inner) => {
         430  +
                /* OperationErrorGenerator.kt:139 */
  385    431   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  386    432   
                    write!(f, "unhandled error ({code})")
  387    433   
                } else {
  388    434   
                    f.write_str("unhandled error")
  389    435   
                }
         436  +
                /* OperationErrorGenerator.kt:326 */
         437  +
            } /* OperationErrorGenerator.kt:318 */
  390    438   
        }
         439  +
        /* OperationErrorGenerator.kt:134 */
  391    440   
    }
  392         -
    }
         441  +
    /* OperationErrorGenerator.kt:133 */
  393    442   
}
         443  +
/* OperationErrorGenerator.kt:182 */
  394    444   
impl ::aws_smithy_types::retry::ProvideErrorKind for XmlIntEnumsError {
         445  +
    /* OperationErrorGenerator.kt:186 */
  395    446   
    fn code(&self) -> ::std::option::Option<&str> {
         447  +
        /* OperationErrorGenerator.kt:187 */
  396    448   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         449  +
        /* OperationErrorGenerator.kt:186 */
  397    450   
    }
         451  +
    /* OperationErrorGenerator.kt:190 */
  398    452   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         453  +
        /* OperationErrorGenerator.kt:197 */
  399    454   
        ::std::option::Option::None
         455  +
        /* OperationErrorGenerator.kt:190 */
  400    456   
    }
         457  +
    /* OperationErrorGenerator.kt:182 */
  401    458   
}
         459  +
/* OperationErrorGenerator.kt:163 */
  402    460   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for XmlIntEnumsError {
         461  +
    /* OperationErrorGenerator.kt:164 */
  403    462   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         463  +
        /* OperationErrorGenerator.kt:318 */
  404    464   
        match self {
  405         -
            Self::Unhandled(_inner) => &_inner.meta,
         465  +
            /* OperationErrorGenerator.kt:326 */
         466  +
            Self::Unhandled(_inner) => {
         467  +
                /* OperationErrorGenerator.kt:168 */
         468  +
                &_inner.meta
         469  +
                /* OperationErrorGenerator.kt:326 */
         470  +
            } /* OperationErrorGenerator.kt:318 */
  406    471   
        }
         472  +
        /* OperationErrorGenerator.kt:164 */
  407    473   
    }
         474  +
    /* OperationErrorGenerator.kt:163 */
  408    475   
}
         476  +
/* OperationErrorGenerator.kt:109 */
  409    477   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for XmlIntEnumsError {
         478  +
    /* OperationErrorGenerator.kt:110 */
  410    479   
    fn create_unhandled_error(
  411    480   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  412    481   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  413    482   
    ) -> Self {
         483  +
        /* OperationErrorGenerator.kt:121 */
  414    484   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  415    485   
            source,
  416    486   
            meta: meta.unwrap_or_default(),
  417    487   
        })
         488  +
        /* OperationErrorGenerator.kt:110 */
  418    489   
    }
         490  +
    /* OperationErrorGenerator.kt:109 */
  419    491   
}
  420    492   
         493  +
/* CodegenDelegator.kt:255 */
  421    494   
pub use crate::operation::xml_int_enums::_xml_int_enums_output::XmlIntEnumsOutput;
  422    495   
         496  +
/* CodegenDelegator.kt:255 */
  423    497   
pub use crate::operation::xml_int_enums::_xml_int_enums_input::XmlIntEnumsInput;
  424    498   
         499  +
/* RustModule.kt:172 */
  425    500   
mod _xml_int_enums_input;
  426    501   
         502  +
/* RustModule.kt:172 */
  427    503   
mod _xml_int_enums_output;
  428    504   
  429         -
/// Builders
         505  +
/// /* CodegenDelegator.kt:51 */Builders
  430    506   
pub mod builders;

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

@@ -1,1 +178,319 @@
    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 {
    6         -
    #[allow(missing_docs)] // documentation missing in model
           8  +
pub /* StructureGenerator.kt:201 */ struct XmlIntEnumsInput {
           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 XmlIntEnumsInput {
          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 XmlIntEnumsInput {
   50         -
    /// Creates a new builder-style object to manufacture [`XmlIntEnumsInput`](crate::operation::xml_int_enums::XmlIntEnumsInput).
          90  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`XmlIntEnumsInput`](crate::operation::xml_int_enums::XmlIntEnumsInput).
          91  +
    /* BuilderGenerator.kt:175 */
   51     92   
    pub fn builder() -> crate::operation::xml_int_enums::builders::XmlIntEnumsInputBuilder {
          93  +
        /* BuilderGenerator.kt:176 */
   52     94   
        crate::operation::xml_int_enums::builders::XmlIntEnumsInputBuilder::default()
          95  +
        /* BuilderGenerator.kt:175 */
   53     96   
    }
          97  +
    /* ClientCodegenVisitor.kt:237 */
   54     98   
}
   55     99   
   56         -
/// A builder for [`XmlIntEnumsInput`](crate::operation::xml_int_enums::XmlIntEnumsInput).
         100  +
/// /* BuilderGenerator.kt:342 */A builder for [`XmlIntEnumsInput`](crate::operation::xml_int_enums::XmlIntEnumsInput).
         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 XmlIntEnumsInputBuilder {
   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 XmlIntEnumsInputBuilder {
         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 [`XmlIntEnumsInput`](crate::operation::xml_int_enums::XmlIntEnumsInput).
         295  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`XmlIntEnumsInput`](crate::operation::xml_int_enums::XmlIntEnumsInput).
         296  +
    /* BuilderGenerator.kt:253 */
  168    297   
    pub fn build(self) -> ::std::result::Result<crate::operation::xml_int_enums::XmlIntEnumsInput, ::aws_smithy_types::error::operation::BuildError> {
  169         -
        ::std::result::Result::Ok(crate::operation::xml_int_enums::XmlIntEnumsInput {
  170         -
            int_enum1: self.int_enum1,
         298  +
        /* BuilderGenerator.kt:254 */
         299  +
        ::std::result::Result::Ok(
         300  +
            /* BuilderGenerator.kt:477 */
         301  +
            crate::operation::xml_int_enums::XmlIntEnumsInput {
         302  +
                /* BuilderGenerator.kt:481 */ int_enum1: self.int_enum1,
         303  +
                /* BuilderGenerator.kt:481 */
  171    304   
                int_enum2: self.int_enum2,
         305  +
                /* BuilderGenerator.kt:481 */
  172    306   
                int_enum3: self.int_enum3,
         307  +
                /* BuilderGenerator.kt:481 */
  173    308   
                int_enum_list: self.int_enum_list,
         309  +
                /* BuilderGenerator.kt:481 */
  174    310   
                int_enum_set: self.int_enum_set,
         311  +
                /* BuilderGenerator.kt:481 */
  175    312   
                int_enum_map: self.int_enum_map,
  176         -
        })
         313  +
                /* BuilderGenerator.kt:477 */
         314  +
            }, /* BuilderGenerator.kt:254 */
         315  +
        )
         316  +
        /* BuilderGenerator.kt:253 */
  177    317   
    }
         318  +
    /* BuilderGenerator.kt:355 */
  178    319   
}

tmp-codegen-diff/codegen-client-test/rest_xml/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   
}