Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943

Files changed:

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

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

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

@@ -1,1 +365,473 @@
    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::input_and_output_with_headers::_input_and_output_with_headers_output::InputAndOutputWithHeadersOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::input_and_output_with_headers::_input_and_output_with_headers_input::InputAndOutputWithHeadersInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::input_and_output_with_headers::builders::InputAndOutputWithHeadersInputBuilder {
    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::input_and_output_with_headers::InputAndOutputWithHeadersOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::input_and_output_with_headers::InputAndOutputWithHeadersError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.input_and_output_with_headers();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `InputAndOutputWithHeaders`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `InputAndOutputWithHeaders`.
   24     27   
///
   25         -
/// The example tests how requests and responses are serialized when there is no input or output payload but there are HTTP header bindings.
          28  +
/// /* FluentBuilderGenerator.kt:130 */The example tests how requests and responses are serialized when there is no input or output payload but there are HTTP header bindings.
          29  +
/* RustType.kt:516 */
   26     30   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          31  +
/* FluentBuilderGenerator.kt:270 */
   27     32   
pub struct InputAndOutputWithHeadersFluentBuilder {
   28     33   
    handle: ::std::sync::Arc<crate::client::Handle>,
   29     34   
    inner: crate::operation::input_and_output_with_headers::builders::InputAndOutputWithHeadersInputBuilder,
   30     35   
    config_override: ::std::option::Option<crate::config::Builder>,
   31     36   
}
          37  +
/* FluentBuilderGenerator.kt:381 */
   32     38   
impl
   33     39   
    crate::client::customize::internal::CustomizableSend<
   34     40   
        crate::operation::input_and_output_with_headers::InputAndOutputWithHeadersOutput,
   35     41   
        crate::operation::input_and_output_with_headers::InputAndOutputWithHeadersError,
   36     42   
    > for InputAndOutputWithHeadersFluentBuilder
   37     43   
{
   38     44   
    fn send(
   39     45   
        self,
   40     46   
        config_override: crate::config::Builder,
   41     47   
    ) -> crate::client::customize::internal::BoxFuture<
   42     48   
        crate::client::customize::internal::SendResult<
   43     49   
            crate::operation::input_and_output_with_headers::InputAndOutputWithHeadersOutput,
   44     50   
            crate::operation::input_and_output_with_headers::InputAndOutputWithHeadersError,
   45     51   
        >,
   46     52   
    > {
   47     53   
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
   48     54   
    }
   49     55   
}
          56  +
/* FluentBuilderGenerator.kt:282 */
   50     57   
impl InputAndOutputWithHeadersFluentBuilder {
          58  +
    /* FluentBuilderGenerator.kt:288 */
   51     59   
    /// Creates a new `InputAndOutputWithHeadersFluentBuilder`.
   52     60   
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
   53     61   
        Self {
   54     62   
            handle,
   55     63   
            inner: ::std::default::Default::default(),
   56     64   
            config_override: ::std::option::Option::None,
   57     65   
        }
   58     66   
    }
          67  +
    /* FluentBuilderGenerator.kt:301 */
   59     68   
    /// Access the InputAndOutputWithHeaders as a reference.
   60     69   
    pub fn as_input(&self) -> &crate::operation::input_and_output_with_headers::builders::InputAndOutputWithHeadersInputBuilder {
   61     70   
        &self.inner
   62     71   
    }
          72  +
    /* FluentBuilderGenerator.kt:145 */
   63     73   
    /// Sends the request and returns the response.
   64     74   
    ///
   65     75   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   66     76   
    /// can be matched against.
   67     77   
    ///
   68     78   
    /// By default, any retryable failures will be retried twice. Retry behavior
   69     79   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   70     80   
    /// set when configuring the client.
   71     81   
    pub async fn send(
   72     82   
        self,
   73     83   
    ) -> ::std::result::Result<
   74     84   
        crate::operation::input_and_output_with_headers::InputAndOutputWithHeadersOutput,
   75     85   
        ::aws_smithy_runtime_api::client::result::SdkError<
   76     86   
            crate::operation::input_and_output_with_headers::InputAndOutputWithHeadersError,
   77     87   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   78     88   
        >,
   79     89   
    > {
   80     90   
        let input = self
   81     91   
            .inner
   82     92   
            .build()
   83     93   
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
   84     94   
        let runtime_plugins = crate::operation::input_and_output_with_headers::InputAndOutputWithHeaders::operation_runtime_plugins(
   85     95   
            self.handle.runtime_plugins.clone(),
   86     96   
            &self.handle.conf,
   87     97   
            self.config_override,
   88     98   
        );
   89     99   
        crate::operation::input_and_output_with_headers::InputAndOutputWithHeaders::orchestrate(&runtime_plugins, input).await
   90    100   
    }
   91    101   
   92    102   
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
   93    103   
    pub fn customize(
   94    104   
        self,
   95    105   
    ) -> crate::client::customize::CustomizableOperation<
   96    106   
        crate::operation::input_and_output_with_headers::InputAndOutputWithHeadersOutput,
   97    107   
        crate::operation::input_and_output_with_headers::InputAndOutputWithHeadersError,
   98    108   
        Self,
   99    109   
    > {
  100    110   
        crate::client::customize::CustomizableOperation::new(self)
  101    111   
    }
         112  +
    /* FluentBuilderGenerator.kt:315 */
  102    113   
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
  103    114   
        self.set_config_override(::std::option::Option::Some(config_override.into()));
  104    115   
        self
  105    116   
    }
  106    117   
  107    118   
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
  108    119   
        self.config_override = config_override;
  109    120   
        self
  110    121   
    }
         122  +
    /* FluentBuilderGenerator.kt:498 */
  111    123   
    #[allow(missing_docs)] // documentation missing in model
         124  +
                           /* FluentBuilderGenerator.kt:500 */
  112    125   
    pub fn header_string(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  113    126   
        self.inner = self.inner.header_string(input.into());
  114    127   
        self
  115    128   
    }
         129  +
    /* FluentBuilderGenerator.kt:498 */
  116    130   
    #[allow(missing_docs)] // documentation missing in model
         131  +
                           /* FluentBuilderGenerator.kt:500 */
  117    132   
    pub fn set_header_string(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  118    133   
        self.inner = self.inner.set_header_string(input);
  119    134   
        self
  120    135   
    }
         136  +
    /* FluentBuilderGenerator.kt:518 */
  121    137   
    #[allow(missing_docs)] // documentation missing in model
         138  +
                           /* FluentBuilderGenerator.kt:520 */
  122    139   
    pub fn get_header_string(&self) -> &::std::option::Option<::std::string::String> {
  123    140   
        self.inner.get_header_string()
  124    141   
    }
         142  +
    /* FluentBuilderGenerator.kt:498 */
  125    143   
    #[allow(missing_docs)] // documentation missing in model
         144  +
                           /* FluentBuilderGenerator.kt:500 */
  126    145   
    pub fn header_byte(mut self, input: i8) -> Self {
  127    146   
        self.inner = self.inner.header_byte(input);
  128    147   
        self
  129    148   
    }
         149  +
    /* FluentBuilderGenerator.kt:498 */
  130    150   
    #[allow(missing_docs)] // documentation missing in model
         151  +
                           /* FluentBuilderGenerator.kt:500 */
  131    152   
    pub fn set_header_byte(mut self, input: ::std::option::Option<i8>) -> Self {
  132    153   
        self.inner = self.inner.set_header_byte(input);
  133    154   
        self
  134    155   
    }
         156  +
    /* FluentBuilderGenerator.kt:518 */
  135    157   
    #[allow(missing_docs)] // documentation missing in model
         158  +
                           /* FluentBuilderGenerator.kt:520 */
  136    159   
    pub fn get_header_byte(&self) -> &::std::option::Option<i8> {
  137    160   
        self.inner.get_header_byte()
  138    161   
    }
         162  +
    /* FluentBuilderGenerator.kt:498 */
  139    163   
    #[allow(missing_docs)] // documentation missing in model
         164  +
                           /* FluentBuilderGenerator.kt:500 */
  140    165   
    pub fn header_short(mut self, input: i16) -> Self {
  141    166   
        self.inner = self.inner.header_short(input);
  142    167   
        self
  143    168   
    }
         169  +
    /* FluentBuilderGenerator.kt:498 */
  144    170   
    #[allow(missing_docs)] // documentation missing in model
         171  +
                           /* FluentBuilderGenerator.kt:500 */
  145    172   
    pub fn set_header_short(mut self, input: ::std::option::Option<i16>) -> Self {
  146    173   
        self.inner = self.inner.set_header_short(input);
  147    174   
        self
  148    175   
    }
         176  +
    /* FluentBuilderGenerator.kt:518 */
  149    177   
    #[allow(missing_docs)] // documentation missing in model
         178  +
                           /* FluentBuilderGenerator.kt:520 */
  150    179   
    pub fn get_header_short(&self) -> &::std::option::Option<i16> {
  151    180   
        self.inner.get_header_short()
  152    181   
    }
         182  +
    /* FluentBuilderGenerator.kt:498 */
  153    183   
    #[allow(missing_docs)] // documentation missing in model
         184  +
                           /* FluentBuilderGenerator.kt:500 */
  154    185   
    pub fn header_integer(mut self, input: i32) -> Self {
  155    186   
        self.inner = self.inner.header_integer(input);
  156    187   
        self
  157    188   
    }
         189  +
    /* FluentBuilderGenerator.kt:498 */
  158    190   
    #[allow(missing_docs)] // documentation missing in model
         191  +
                           /* FluentBuilderGenerator.kt:500 */
  159    192   
    pub fn set_header_integer(mut self, input: ::std::option::Option<i32>) -> Self {
  160    193   
        self.inner = self.inner.set_header_integer(input);
  161    194   
        self
  162    195   
    }
         196  +
    /* FluentBuilderGenerator.kt:518 */
  163    197   
    #[allow(missing_docs)] // documentation missing in model
         198  +
                           /* FluentBuilderGenerator.kt:520 */
  164    199   
    pub fn get_header_integer(&self) -> &::std::option::Option<i32> {
  165    200   
        self.inner.get_header_integer()
  166    201   
    }
         202  +
    /* FluentBuilderGenerator.kt:498 */
  167    203   
    #[allow(missing_docs)] // documentation missing in model
         204  +
                           /* FluentBuilderGenerator.kt:500 */
  168    205   
    pub fn header_long(mut self, input: i64) -> Self {
  169    206   
        self.inner = self.inner.header_long(input);
  170    207   
        self
  171    208   
    }
         209  +
    /* FluentBuilderGenerator.kt:498 */
  172    210   
    #[allow(missing_docs)] // documentation missing in model
         211  +
                           /* FluentBuilderGenerator.kt:500 */
  173    212   
    pub fn set_header_long(mut self, input: ::std::option::Option<i64>) -> Self {
  174    213   
        self.inner = self.inner.set_header_long(input);
  175    214   
        self
  176    215   
    }
         216  +
    /* FluentBuilderGenerator.kt:518 */
  177    217   
    #[allow(missing_docs)] // documentation missing in model
         218  +
                           /* FluentBuilderGenerator.kt:520 */
  178    219   
    pub fn get_header_long(&self) -> &::std::option::Option<i64> {
  179    220   
        self.inner.get_header_long()
  180    221   
    }
         222  +
    /* FluentBuilderGenerator.kt:498 */
  181    223   
    #[allow(missing_docs)] // documentation missing in model
         224  +
                           /* FluentBuilderGenerator.kt:500 */
  182    225   
    pub fn header_float(mut self, input: f32) -> Self {
  183    226   
        self.inner = self.inner.header_float(input);
  184    227   
        self
  185    228   
    }
         229  +
    /* FluentBuilderGenerator.kt:498 */
  186    230   
    #[allow(missing_docs)] // documentation missing in model
         231  +
                           /* FluentBuilderGenerator.kt:500 */
  187    232   
    pub fn set_header_float(mut self, input: ::std::option::Option<f32>) -> Self {
  188    233   
        self.inner = self.inner.set_header_float(input);
  189    234   
        self
  190    235   
    }
         236  +
    /* FluentBuilderGenerator.kt:518 */
  191    237   
    #[allow(missing_docs)] // documentation missing in model
         238  +
                           /* FluentBuilderGenerator.kt:520 */
  192    239   
    pub fn get_header_float(&self) -> &::std::option::Option<f32> {
  193    240   
        self.inner.get_header_float()
  194    241   
    }
         242  +
    /* FluentBuilderGenerator.kt:498 */
  195    243   
    #[allow(missing_docs)] // documentation missing in model
         244  +
                           /* FluentBuilderGenerator.kt:500 */
  196    245   
    pub fn header_double(mut self, input: f64) -> Self {
  197    246   
        self.inner = self.inner.header_double(input);
  198    247   
        self
  199    248   
    }
         249  +
    /* FluentBuilderGenerator.kt:498 */
  200    250   
    #[allow(missing_docs)] // documentation missing in model
         251  +
                           /* FluentBuilderGenerator.kt:500 */
  201    252   
    pub fn set_header_double(mut self, input: ::std::option::Option<f64>) -> Self {
  202    253   
        self.inner = self.inner.set_header_double(input);
  203    254   
        self
  204    255   
    }
         256  +
    /* FluentBuilderGenerator.kt:518 */
  205    257   
    #[allow(missing_docs)] // documentation missing in model
         258  +
                           /* FluentBuilderGenerator.kt:520 */
  206    259   
    pub fn get_header_double(&self) -> &::std::option::Option<f64> {
  207    260   
        self.inner.get_header_double()
  208    261   
    }
         262  +
    /* FluentBuilderGenerator.kt:498 */
  209    263   
    #[allow(missing_docs)] // documentation missing in model
         264  +
                           /* FluentBuilderGenerator.kt:500 */
  210    265   
    pub fn header_true_bool(mut self, input: bool) -> Self {
  211    266   
        self.inner = self.inner.header_true_bool(input);
  212    267   
        self
  213    268   
    }
         269  +
    /* FluentBuilderGenerator.kt:498 */
  214    270   
    #[allow(missing_docs)] // documentation missing in model
         271  +
                           /* FluentBuilderGenerator.kt:500 */
  215    272   
    pub fn set_header_true_bool(mut self, input: ::std::option::Option<bool>) -> Self {
  216    273   
        self.inner = self.inner.set_header_true_bool(input);
  217    274   
        self
  218    275   
    }
         276  +
    /* FluentBuilderGenerator.kt:518 */
  219    277   
    #[allow(missing_docs)] // documentation missing in model
         278  +
                           /* FluentBuilderGenerator.kt:520 */
  220    279   
    pub fn get_header_true_bool(&self) -> &::std::option::Option<bool> {
  221    280   
        self.inner.get_header_true_bool()
  222    281   
    }
         282  +
    /* FluentBuilderGenerator.kt:498 */
  223    283   
    #[allow(missing_docs)] // documentation missing in model
         284  +
                           /* FluentBuilderGenerator.kt:500 */
  224    285   
    pub fn header_false_bool(mut self, input: bool) -> Self {
  225    286   
        self.inner = self.inner.header_false_bool(input);
  226    287   
        self
  227    288   
    }
         289  +
    /* FluentBuilderGenerator.kt:498 */
  228    290   
    #[allow(missing_docs)] // documentation missing in model
         291  +
                           /* FluentBuilderGenerator.kt:500 */
  229    292   
    pub fn set_header_false_bool(mut self, input: ::std::option::Option<bool>) -> Self {
  230    293   
        self.inner = self.inner.set_header_false_bool(input);
  231    294   
        self
  232    295   
    }
         296  +
    /* FluentBuilderGenerator.kt:518 */
  233    297   
    #[allow(missing_docs)] // documentation missing in model
         298  +
                           /* FluentBuilderGenerator.kt:520 */
  234    299   
    pub fn get_header_false_bool(&self) -> &::std::option::Option<bool> {
  235    300   
        self.inner.get_header_false_bool()
  236    301   
    }
  237         -
    ///
         302  +
    /// /* FluentBuilderGenerator.kt:436 */
  238    303   
    /// Appends an item to `headerStringList`.
  239    304   
    ///
  240    305   
    /// To override the contents of this collection use [`set_header_string_list`](Self::set_header_string_list).
  241    306   
    ///
         307  +
    /* FluentBuilderGenerator.kt:443 */
  242    308   
    #[allow(missing_docs)] // documentation missing in model
         309  +
                           /* FluentBuilderGenerator.kt:446 */
  243    310   
    pub fn header_string_list(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  244    311   
        self.inner = self.inner.header_string_list(input.into());
  245    312   
        self
  246    313   
    }
         314  +
    /* FluentBuilderGenerator.kt:498 */
  247    315   
    #[allow(missing_docs)] // documentation missing in model
         316  +
                           /* FluentBuilderGenerator.kt:500 */
  248    317   
    pub fn set_header_string_list(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
  249    318   
        self.inner = self.inner.set_header_string_list(input);
  250    319   
        self
  251    320   
    }
         321  +
    /* FluentBuilderGenerator.kt:518 */
  252    322   
    #[allow(missing_docs)] // documentation missing in model
         323  +
                           /* FluentBuilderGenerator.kt:520 */
  253    324   
    pub fn get_header_string_list(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
  254    325   
        self.inner.get_header_string_list()
  255    326   
    }
  256         -
    ///
         327  +
    /// /* FluentBuilderGenerator.kt:436 */
  257    328   
    /// Appends an item to `headerStringSet`.
  258    329   
    ///
  259    330   
    /// To override the contents of this collection use [`set_header_string_set`](Self::set_header_string_set).
  260    331   
    ///
         332  +
    /* FluentBuilderGenerator.kt:443 */
  261    333   
    #[allow(missing_docs)] // documentation missing in model
         334  +
                           /* FluentBuilderGenerator.kt:446 */
  262    335   
    pub fn header_string_set(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  263    336   
        self.inner = self.inner.header_string_set(input.into());
  264    337   
        self
  265    338   
    }
         339  +
    /* FluentBuilderGenerator.kt:498 */
  266    340   
    #[allow(missing_docs)] // documentation missing in model
         341  +
                           /* FluentBuilderGenerator.kt:500 */
  267    342   
    pub fn set_header_string_set(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
  268    343   
        self.inner = self.inner.set_header_string_set(input);
  269    344   
        self
  270    345   
    }
         346  +
    /* FluentBuilderGenerator.kt:518 */
  271    347   
    #[allow(missing_docs)] // documentation missing in model
         348  +
                           /* FluentBuilderGenerator.kt:520 */
  272    349   
    pub fn get_header_string_set(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
  273    350   
        self.inner.get_header_string_set()
  274    351   
    }
  275         -
    ///
         352  +
    /// /* FluentBuilderGenerator.kt:436 */
  276    353   
    /// Appends an item to `headerIntegerList`.
  277    354   
    ///
  278    355   
    /// To override the contents of this collection use [`set_header_integer_list`](Self::set_header_integer_list).
  279    356   
    ///
         357  +
    /* FluentBuilderGenerator.kt:443 */
  280    358   
    #[allow(missing_docs)] // documentation missing in model
         359  +
                           /* FluentBuilderGenerator.kt:446 */
  281    360   
    pub fn header_integer_list(mut self, input: i32) -> Self {
  282    361   
        self.inner = self.inner.header_integer_list(input);
  283    362   
        self
  284    363   
    }
         364  +
    /* FluentBuilderGenerator.kt:498 */
  285    365   
    #[allow(missing_docs)] // documentation missing in model
         366  +
                           /* FluentBuilderGenerator.kt:500 */
  286    367   
    pub fn set_header_integer_list(mut self, input: ::std::option::Option<::std::vec::Vec<i32>>) -> Self {
  287    368   
        self.inner = self.inner.set_header_integer_list(input);
  288    369   
        self
  289    370   
    }
         371  +
    /* FluentBuilderGenerator.kt:518 */
  290    372   
    #[allow(missing_docs)] // documentation missing in model
         373  +
                           /* FluentBuilderGenerator.kt:520 */
  291    374   
    pub fn get_header_integer_list(&self) -> &::std::option::Option<::std::vec::Vec<i32>> {
  292    375   
        self.inner.get_header_integer_list()
  293    376   
    }
  294         -
    ///
         377  +
    /// /* FluentBuilderGenerator.kt:436 */
  295    378   
    /// Appends an item to `headerBooleanList`.
  296    379   
    ///
  297    380   
    /// To override the contents of this collection use [`set_header_boolean_list`](Self::set_header_boolean_list).
  298    381   
    ///
         382  +
    /* FluentBuilderGenerator.kt:443 */
  299    383   
    #[allow(missing_docs)] // documentation missing in model
         384  +
                           /* FluentBuilderGenerator.kt:446 */
  300    385   
    pub fn header_boolean_list(mut self, input: bool) -> Self {
  301    386   
        self.inner = self.inner.header_boolean_list(input);
  302    387   
        self
  303    388   
    }
         389  +
    /* FluentBuilderGenerator.kt:498 */
  304    390   
    #[allow(missing_docs)] // documentation missing in model
         391  +
                           /* FluentBuilderGenerator.kt:500 */
  305    392   
    pub fn set_header_boolean_list(mut self, input: ::std::option::Option<::std::vec::Vec<bool>>) -> Self {
  306    393   
        self.inner = self.inner.set_header_boolean_list(input);
  307    394   
        self
  308    395   
    }
         396  +
    /* FluentBuilderGenerator.kt:518 */
  309    397   
    #[allow(missing_docs)] // documentation missing in model
         398  +
                           /* FluentBuilderGenerator.kt:520 */
  310    399   
    pub fn get_header_boolean_list(&self) -> &::std::option::Option<::std::vec::Vec<bool>> {
  311    400   
        self.inner.get_header_boolean_list()
  312    401   
    }
  313         -
    ///
         402  +
    /// /* FluentBuilderGenerator.kt:436 */
  314    403   
    /// Appends an item to `headerTimestampList`.
  315    404   
    ///
  316    405   
    /// To override the contents of this collection use [`set_header_timestamp_list`](Self::set_header_timestamp_list).
  317    406   
    ///
         407  +
    /* FluentBuilderGenerator.kt:443 */
  318    408   
    #[allow(missing_docs)] // documentation missing in model
         409  +
                           /* FluentBuilderGenerator.kt:446 */
  319    410   
    pub fn header_timestamp_list(mut self, input: ::aws_smithy_types::DateTime) -> Self {
  320    411   
        self.inner = self.inner.header_timestamp_list(input);
  321    412   
        self
  322    413   
    }
         414  +
    /* FluentBuilderGenerator.kt:498 */
  323    415   
    #[allow(missing_docs)] // documentation missing in model
         416  +
                           /* FluentBuilderGenerator.kt:500 */
  324    417   
    pub fn set_header_timestamp_list(mut self, input: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>) -> Self {
  325    418   
        self.inner = self.inner.set_header_timestamp_list(input);
  326    419   
        self
  327    420   
    }
         421  +
    /* FluentBuilderGenerator.kt:518 */
  328    422   
    #[allow(missing_docs)] // documentation missing in model
         423  +
                           /* FluentBuilderGenerator.kt:520 */
  329    424   
    pub fn get_header_timestamp_list(&self) -> &::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>> {
  330    425   
        self.inner.get_header_timestamp_list()
  331    426   
    }
         427  +
    /* FluentBuilderGenerator.kt:498 */
  332    428   
    #[allow(missing_docs)] // documentation missing in model
         429  +
                           /* FluentBuilderGenerator.kt:500 */
  333    430   
    pub fn header_enum(mut self, input: crate::types::FooEnum) -> Self {
  334    431   
        self.inner = self.inner.header_enum(input);
  335    432   
        self
  336    433   
    }
         434  +
    /* FluentBuilderGenerator.kt:498 */
  337    435   
    #[allow(missing_docs)] // documentation missing in model
         436  +
                           /* FluentBuilderGenerator.kt:500 */
  338    437   
    pub fn set_header_enum(mut self, input: ::std::option::Option<crate::types::FooEnum>) -> Self {
  339    438   
        self.inner = self.inner.set_header_enum(input);
  340    439   
        self
  341    440   
    }
         441  +
    /* FluentBuilderGenerator.kt:518 */
  342    442   
    #[allow(missing_docs)] // documentation missing in model
         443  +
                           /* FluentBuilderGenerator.kt:520 */
  343    444   
    pub fn get_header_enum(&self) -> &::std::option::Option<crate::types::FooEnum> {
  344    445   
        self.inner.get_header_enum()
  345    446   
    }
  346         -
    ///
         447  +
    /// /* FluentBuilderGenerator.kt:436 */
  347    448   
    /// Appends an item to `headerEnumList`.
  348    449   
    ///
  349    450   
    /// To override the contents of this collection use [`set_header_enum_list`](Self::set_header_enum_list).
  350    451   
    ///
         452  +
    /* FluentBuilderGenerator.kt:443 */
  351    453   
    #[allow(missing_docs)] // documentation missing in model
         454  +
                           /* FluentBuilderGenerator.kt:446 */
  352    455   
    pub fn header_enum_list(mut self, input: crate::types::FooEnum) -> Self {
  353    456   
        self.inner = self.inner.header_enum_list(input);
  354    457   
        self
  355    458   
    }
         459  +
    /* FluentBuilderGenerator.kt:498 */
  356    460   
    #[allow(missing_docs)] // documentation missing in model
         461  +
                           /* FluentBuilderGenerator.kt:500 */
  357    462   
    pub fn set_header_enum_list(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::FooEnum>>) -> Self {
  358    463   
        self.inner = self.inner.set_header_enum_list(input);
  359    464   
        self
  360    465   
    }
         466  +
    /* FluentBuilderGenerator.kt:518 */
  361    467   
    #[allow(missing_docs)] // documentation missing in model
         468  +
                           /* FluentBuilderGenerator.kt:520 */
  362    469   
    pub fn get_header_enum_list(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::FooEnum>> {
  363    470   
        self.inner.get_header_enum_list()
  364    471   
    }
         472  +
    /* FluentBuilderGenerator.kt:282 */
  365    473   
}

tmp-codegen-diff/codegen-client-test/rest_xml/rust-client-codegen/src/operation/nested_xml_map_with_xml_name.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 `NestedXmlMapWithXmlName`.
           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 NestedXmlMapWithXmlName;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl NestedXmlMapWithXmlName {
    7         -
    /// Creates a new `NestedXmlMapWithXmlName`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `NestedXmlMapWithXmlName`
          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::nested_xml_map_with_xml_name::NestedXmlMapWithXmlNameInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::nested_xml_map_with_xml_name::NestedXmlMapWithXmlNameOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::nested_xml_map_with_xml_name::NestedXmlMapWithXmlNameError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -63,72 +271,288 @@
   83     92   
                runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
   84     93   
            }
   85     94   
            runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
   86     95   
                config_override,
   87     96   
                client_config.config.clone(),
   88     97   
                &client_config.runtime_components,
   89     98   
            ));
   90     99   
        }
   91    100   
        runtime_plugins
   92    101   
    }
         102  +
    /* OperationGenerator.kt:85 */
   93    103   
}
         104  +
/* OperationRuntimePluginGenerator.kt:55 */
   94    105   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for NestedXmlMapWithXmlName {
   95    106   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
   96    107   
        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("NestedXmlMapWithXmlName");
   97    108   
   98    109   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   99    110   
            NestedXmlMapWithXmlNameRequestSerializer,
  100    111   
        ));
  101    112   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
  102    113   
            NestedXmlMapWithXmlNameResponseDeserializer,
  103    114   
        ));
  104    115   
  105    116   
        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
  106    117   
            ::aws_smithy_runtime_api::client::auth::static_resolver::StaticAuthSchemeOptionResolverParams::new(),
  107    118   
        ));
  108    119   
  109    120   
        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
  110    121   
            "NestedXmlMapWithXmlName",
  111    122   
            "Rest Xml Protocol",
  112    123   
        ));
  113    124   
  114    125   
        ::std::option::Option::Some(cfg.freeze())
  115    126   
    }
  116    127   
  117    128   
    fn runtime_components(
  118    129   
        &self,
  119    130   
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
  120    131   
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
  121    132   
        #[allow(unused_mut)]
  122    133   
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("NestedXmlMapWithXmlName")
  123    134   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  124    135   
            .with_interceptor(NestedXmlMapWithXmlNameEndpointParamsInterceptor)
  125    136   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  126    137   
                crate::operation::nested_xml_map_with_xml_name::NestedXmlMapWithXmlNameError,
  127    138   
            >::new())
  128    139   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  129    140   
                crate::operation::nested_xml_map_with_xml_name::NestedXmlMapWithXmlNameError,
  130    141   
            >::new());
  131    142   
  132    143   
        ::std::borrow::Cow::Owned(rcb)
  133    144   
    }
  134    145   
}
  135    146   
         147  +
/* ResponseDeserializerGenerator.kt:64 */
  136    148   
#[derive(Debug)]
  137    149   
struct NestedXmlMapWithXmlNameResponseDeserializer;
  138    150   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for NestedXmlMapWithXmlNameResponseDeserializer {
  139    151   
    fn deserialize_nonstreaming(
  140    152   
        &self,
  141    153   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
  142    154   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  143    155   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  144    156   
        let headers = response.headers();
  145    157   
        let body = response.body().bytes().expect("body loaded");
  146    158   
        #[allow(unused_mut)]
  147    159   
        let mut force_error = false;
  148    160   
  149    161   
        let parse_result = if !success && status != 200 || force_error {
  150    162   
            crate::protocol_serde::shape_nested_xml_map_with_xml_name::de_nested_xml_map_with_xml_name_http_error(status, headers, body)
  151    163   
        } else {
  152    164   
            crate::protocol_serde::shape_nested_xml_map_with_xml_name::de_nested_xml_map_with_xml_name_http_response(status, headers, body)
  153    165   
        };
  154    166   
        crate::protocol_serde::type_erase_result(parse_result)
  155    167   
    }
  156    168   
}
         169  +
/* RequestSerializerGenerator.kt:67 */
  157    170   
#[derive(Debug)]
  158    171   
struct NestedXmlMapWithXmlNameRequestSerializer;
  159    172   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for NestedXmlMapWithXmlNameRequestSerializer {
  160    173   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  161    174   
    fn serialize_input(
  162    175   
        &self,
  163    176   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  164    177   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  165    178   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  166    179   
        let input = input
  167    180   
            .downcast::<crate::operation::nested_xml_map_with_xml_name::NestedXmlMapWithXmlNameInput>()
  168    181   
            .expect("correct type");
  169    182   
        let _header_serialization_settings = _cfg
  170    183   
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  171    184   
            .cloned()
  172    185   
            .unwrap_or_default();
  173    186   
        let mut request_builder = {
  174    187   
            fn uri_base(
  175    188   
                _input: &crate::operation::nested_xml_map_with_xml_name::NestedXmlMapWithXmlNameInput,
  176    189   
                output: &mut ::std::string::String,
  177    190   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  178    191   
                use ::std::fmt::Write as _;
  179    192   
                ::std::write!(output, "/NestedXmlMapWithXmlName").expect("formatting should succeed");
  180    193   
                ::std::result::Result::Ok(())
  181    194   
            }
  182    195   
            #[allow(clippy::unnecessary_wraps)]
  183    196   
            fn update_http_builder(
  184    197   
                input: &crate::operation::nested_xml_map_with_xml_name::NestedXmlMapWithXmlNameInput,
  185    198   
                builder: ::http::request::Builder,
  186    199   
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  187    200   
                let mut uri = ::std::string::String::new();
  188    201   
                uri_base(input, &mut uri)?;
  189    202   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  190    203   
            }
  191    204   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  192    205   
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/xml");
  193    206   
            builder
  194    207   
        };
  195    208   
        let body = ::aws_smithy_types::body::SdkBody::from(
  196    209   
            crate::protocol_serde::shape_nested_xml_map_with_xml_name::ser_nested_xml_map_with_xml_name_op_input(&input)?,
  197    210   
        );
  198    211   
        if let Some(content_length) = body.content_length() {
  199    212   
            let content_length = content_length.to_string();
  200    213   
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
  201    214   
        }
  202    215   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  203    216   
    }
  204    217   
}
         218  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  205    219   
#[derive(Debug)]
  206    220   
struct NestedXmlMapWithXmlNameEndpointParamsInterceptor;
  207    221   
  208    222   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for NestedXmlMapWithXmlNameEndpointParamsInterceptor {
  209    223   
    fn name(&self) -> &'static str {
  210    224   
        "NestedXmlMapWithXmlNameEndpointParamsInterceptor"
  211    225   
    }
  212    226   
  213    227   
    fn read_before_execution(
  214    228   
        &self,
  215    229   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  216    230   
            '_,
  217    231   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  218    232   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  219    233   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  220    234   
        >,
  221    235   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  222    236   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  223    237   
        let _input = context
  224    238   
            .input()
  225    239   
            .downcast_ref::<NestedXmlMapWithXmlNameInput>()
  226    240   
            .ok_or("failed to downcast to NestedXmlMapWithXmlNameInput")?;
  227    241   
  228    242   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  229    243   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  230    244   
        })?;
  231    245   
        cfg.interceptor_state()
  232    246   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  233    247   
        ::std::result::Result::Ok(())
  234    248   
    }
  235    249   
}
  236    250   
  237    251   
// The get_* functions below are generated from JMESPath expressions in the
  238    252   
// operationContextParams trait. They target the operation's input shape.
  239    253   
         254  +
/* RustType.kt:516 */
  240    255   
#[allow(unreachable_code, unused_variables)]
         256  +
/* RustType.kt:516 */
  241    257   
#[cfg(test)]
         258  +
/* ProtocolTestGenerator.kt:98 */
  242    259   
mod nested_xml_map_with_xml_name_test {
  243    260   
  244    261   
    /// Serializes nested XML Maps in requests that have xmlName on members
  245    262   
    /// Test ID: NestedXmlMapWithXmlNameSerializes
  246    263   
    #[::tokio::test]
  247    264   
    #[::tracing_test::traced_test]
  248    265   
    #[should_panic]
  249    266   
    async fn nested_xml_map_with_xml_name_serializes_request() {
  250    267   
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  251    268   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
@@ -417,434 +546,622 @@
  437    454   
        let parsed = parsed
  438    455   
            .expect("should be successful response")
  439    456   
            .downcast::<crate::operation::nested_xml_map_with_xml_name::NestedXmlMapWithXmlNameOutput>()
  440    457   
            .unwrap();
  441    458   
        ::pretty_assertions::assert_eq!(
  442    459   
            parsed.nested_xml_map_with_xml_name_map,
  443    460   
            expected_output.nested_xml_map_with_xml_name_map,
  444    461   
            "Unexpected value for `nested_xml_map_with_xml_name_map`"
  445    462   
        );
  446    463   
    }
         464  +
         465  +
    /* ProtocolTestGenerator.kt:98 */
  447    466   
}
  448    467   
         468  +
/* OperationErrorGenerator.kt:79 */
  449    469   
/// Error type for the `NestedXmlMapWithXmlNameError` operation.
         470  +
/* RustType.kt:516 */
  450    471   
#[non_exhaustive]
         472  +
/* RustType.kt:516 */
  451    473   
#[derive(::std::fmt::Debug)]
  452         -
pub enum NestedXmlMapWithXmlNameError {
         474  +
pub /* OperationErrorGenerator.kt:81 */ enum NestedXmlMapWithXmlNameError {
         475  +
    /* OperationErrorGenerator.kt:88 */
  453    476   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  454    477   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  455    478   
    variable wildcard pattern and check `.code()`:
  456    479   
     \
  457    480   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  458    481   
     \
  459    482   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-NestedXmlMapWithXmlNameError) for what information is available for the error.")]
  460    483   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         484  +
    /* OperationErrorGenerator.kt:81 */
  461    485   
}
         486  +
/* OperationErrorGenerator.kt:218 */
  462    487   
impl NestedXmlMapWithXmlNameError {
         488  +
    /* OperationErrorGenerator.kt:219 */
  463    489   
    /// Creates the `NestedXmlMapWithXmlNameError::Unhandled` variant from any error type.
  464    490   
    pub fn unhandled(
  465    491   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  466    492   
    ) -> Self {
  467    493   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  468    494   
            source: err.into(),
  469    495   
            meta: ::std::default::Default::default(),
  470    496   
        })
  471    497   
    }
  472    498   
  473    499   
    /// Creates the `NestedXmlMapWithXmlNameError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  474    500   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  475    501   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  476    502   
            source: err.clone().into(),
  477    503   
            meta: err,
  478    504   
        })
  479    505   
    }
  480         -
    ///
         506  +
    /// /* OperationErrorGenerator.kt:236 */
  481    507   
    /// Returns error metadata, which includes the error code, message,
  482    508   
    /// request ID, and potentially additional information.
  483    509   
    ///
         510  +
    /* OperationErrorGenerator.kt:242 */
  484    511   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         512  +
        /* OperationErrorGenerator.kt:243 */
  485    513   
        match self {
  486         -
            Self::Unhandled(e) => &e.meta,
         514  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         515  +
            /* OperationErrorGenerator.kt:243 */
  487    516   
        }
         517  +
        /* OperationErrorGenerator.kt:242 */
  488    518   
    }
         519  +
    /* OperationErrorGenerator.kt:218 */
  489    520   
}
         521  +
/* OperationErrorGenerator.kt:269 */
  490    522   
impl ::std::error::Error for NestedXmlMapWithXmlNameError {
         523  +
    /* OperationErrorGenerator.kt:270 */
  491    524   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         525  +
        /* OperationErrorGenerator.kt:318 */
  492    526   
        match self {
  493         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         527  +
            /* OperationErrorGenerator.kt:326 */
         528  +
            Self::Unhandled(_inner) => {
         529  +
                /* OperationErrorGenerator.kt:279 */
         530  +
                ::std::option::Option::Some(&*_inner.source)
         531  +
                /* OperationErrorGenerator.kt:326 */
         532  +
            } /* OperationErrorGenerator.kt:318 */
  494    533   
        }
         534  +
        /* OperationErrorGenerator.kt:270 */
  495    535   
    }
         536  +
    /* OperationErrorGenerator.kt:269 */
  496    537   
}
         538  +
/* OperationErrorGenerator.kt:133 */
  497    539   
impl ::std::fmt::Display for NestedXmlMapWithXmlNameError {
         540  +
    /* OperationErrorGenerator.kt:134 */
  498    541   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         542  +
        /* OperationErrorGenerator.kt:318 */
  499    543   
        match self {
         544  +
            /* OperationErrorGenerator.kt:326 */
  500    545   
            Self::Unhandled(_inner) => {
         546  +
                /* OperationErrorGenerator.kt:139 */
  501    547   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  502    548   
                    write!(f, "unhandled error ({code})")
  503    549   
                } else {
  504    550   
                    f.write_str("unhandled error")
  505    551   
                }
  506         -
            }
         552  +
                /* OperationErrorGenerator.kt:326 */
         553  +
            } /* OperationErrorGenerator.kt:318 */
  507    554   
        }
         555  +
        /* OperationErrorGenerator.kt:134 */
  508    556   
    }
         557  +
    /* OperationErrorGenerator.kt:133 */
  509    558   
}
         559  +
/* OperationErrorGenerator.kt:182 */
  510    560   
impl ::aws_smithy_types::retry::ProvideErrorKind for NestedXmlMapWithXmlNameError {
         561  +
    /* OperationErrorGenerator.kt:186 */
  511    562   
    fn code(&self) -> ::std::option::Option<&str> {
         563  +
        /* OperationErrorGenerator.kt:187 */
  512    564   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         565  +
        /* OperationErrorGenerator.kt:186 */
  513    566   
    }
         567  +
    /* OperationErrorGenerator.kt:190 */
  514    568   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         569  +
        /* OperationErrorGenerator.kt:197 */
  515    570   
        ::std::option::Option::None
         571  +
        /* OperationErrorGenerator.kt:190 */
  516    572   
    }
         573  +
    /* OperationErrorGenerator.kt:182 */
  517    574   
}
         575  +
/* OperationErrorGenerator.kt:163 */
  518    576   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for NestedXmlMapWithXmlNameError {
         577  +
    /* OperationErrorGenerator.kt:164 */
  519    578   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         579  +
        /* OperationErrorGenerator.kt:318 */
  520    580   
        match self {
  521         -
            Self::Unhandled(_inner) => &_inner.meta,
         581  +
            /* OperationErrorGenerator.kt:326 */
         582  +
            Self::Unhandled(_inner) => {
         583  +
                /* OperationErrorGenerator.kt:168 */
         584  +
                &_inner.meta
         585  +
                /* OperationErrorGenerator.kt:326 */
         586  +
            } /* OperationErrorGenerator.kt:318 */
  522    587   
        }
         588  +
        /* OperationErrorGenerator.kt:164 */
  523    589   
    }
         590  +
    /* OperationErrorGenerator.kt:163 */
  524    591   
}
         592  +
/* OperationErrorGenerator.kt:109 */
  525    593   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for NestedXmlMapWithXmlNameError {
         594  +
    /* OperationErrorGenerator.kt:110 */
  526    595   
    fn create_unhandled_error(
  527    596   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  528    597   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  529    598   
    ) -> Self {
         599  +
        /* OperationErrorGenerator.kt:121 */
  530    600   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  531    601   
            source,
  532    602   
            meta: meta.unwrap_or_default(),
  533    603   
        })
         604  +
        /* OperationErrorGenerator.kt:110 */
  534    605   
    }
         606  +
    /* OperationErrorGenerator.kt:109 */
  535    607   
}
  536    608   
         609  +
/* CodegenDelegator.kt:255 */
  537    610   
pub use crate::operation::nested_xml_map_with_xml_name::_nested_xml_map_with_xml_name_output::NestedXmlMapWithXmlNameOutput;
  538    611   
         612  +
/* CodegenDelegator.kt:255 */
  539    613   
pub use crate::operation::nested_xml_map_with_xml_name::_nested_xml_map_with_xml_name_input::NestedXmlMapWithXmlNameInput;
  540    614   
         615  +
/* RustModule.kt:172 */
  541    616   
mod _nested_xml_map_with_xml_name_input;
  542    617   
         618  +
/* RustModule.kt:172 */
  543    619   
mod _nested_xml_map_with_xml_name_output;
  544    620   
  545         -
/// Builders
         621  +
/// /* CodegenDelegator.kt:51 */Builders
  546    622   
pub mod builders;

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

@@ -1,1 +80,124 @@
    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 NestedXmlMapWithXmlNameInput {
           8  +
pub /* StructureGenerator.kt:201 */ struct NestedXmlMapWithXmlNameInput {
           9  +
    /* StructureGenerator.kt:231 */
    6     10   
    #[allow(missing_docs)] // documentation missing in model
    7     11   
    pub nested_xml_map_with_xml_name_map: ::std::option::Option<
    8     12   
        ::std::collections::HashMap<::std::string::String, ::std::collections::HashMap<::std::string::String, ::std::string::String>>,
    9     13   
    >,
          14  +
    /* StructureGenerator.kt:201 */
   10     15   
}
          16  +
/* StructureGenerator.kt:135 */
   11     17   
impl NestedXmlMapWithXmlNameInput {
          18  +
    /* StructureGenerator.kt:231 */
   12     19   
    #[allow(missing_docs)] // documentation missing in model
          20  +
                           /* StructureGenerator.kt:166 */
   13     21   
    pub fn nested_xml_map_with_xml_name_map(
   14     22   
        &self,
   15     23   
    ) -> ::std::option::Option<
   16     24   
        &::std::collections::HashMap<::std::string::String, ::std::collections::HashMap<::std::string::String, ::std::string::String>>,
   17     25   
    > {
          26  +
        /* StructureGenerator.kt:170 */
   18     27   
        self.nested_xml_map_with_xml_name_map.as_ref()
          28  +
        /* StructureGenerator.kt:166 */
   19     29   
    }
          30  +
    /* StructureGenerator.kt:135 */
   20     31   
}
          32  +
/* ClientCodegenVisitor.kt:237 */
   21     33   
impl NestedXmlMapWithXmlNameInput {
   22         -
    /// Creates a new builder-style object to manufacture [`NestedXmlMapWithXmlNameInput`](crate::operation::nested_xml_map_with_xml_name::NestedXmlMapWithXmlNameInput).
          34  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`NestedXmlMapWithXmlNameInput`](crate::operation::nested_xml_map_with_xml_name::NestedXmlMapWithXmlNameInput).
          35  +
    /* BuilderGenerator.kt:175 */
   23     36   
    pub fn builder() -> crate::operation::nested_xml_map_with_xml_name::builders::NestedXmlMapWithXmlNameInputBuilder {
          37  +
        /* BuilderGenerator.kt:176 */
   24     38   
        crate::operation::nested_xml_map_with_xml_name::builders::NestedXmlMapWithXmlNameInputBuilder::default()
          39  +
        /* BuilderGenerator.kt:175 */
   25     40   
    }
          41  +
    /* ClientCodegenVisitor.kt:237 */
   26     42   
}
   27     43   
   28         -
/// A builder for [`NestedXmlMapWithXmlNameInput`](crate::operation::nested_xml_map_with_xml_name::NestedXmlMapWithXmlNameInput).
          44  +
/// /* BuilderGenerator.kt:342 */A builder for [`NestedXmlMapWithXmlNameInput`](crate::operation::nested_xml_map_with_xml_name::NestedXmlMapWithXmlNameInput).
          45  +
/* RustType.kt:516 */
   29     46   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          47  +
/* RustType.kt:516 */
   30     48   
#[non_exhaustive]
          49  +
/* BuilderGenerator.kt:345 */
   31     50   
pub struct NestedXmlMapWithXmlNameInputBuilder {
          51  +
    /* BuilderGenerator.kt:275 */
   32     52   
    pub(crate) nested_xml_map_with_xml_name_map: ::std::option::Option<
   33     53   
        ::std::collections::HashMap<::std::string::String, ::std::collections::HashMap<::std::string::String, ::std::string::String>>,
   34     54   
    >,
          55  +
    /* BuilderGenerator.kt:345 */
   35     56   
}
          57  +
/* BuilderGenerator.kt:355 */
   36     58   
impl NestedXmlMapWithXmlNameInputBuilder {
   37         -
    /// Adds a key-value pair to `nested_xml_map_with_xml_name_map`.
          59  +
    /// /* BuilderGenerator.kt:436 */Adds a key-value pair to `nested_xml_map_with_xml_name_map`.
          60  +
    /* BuilderGenerator.kt:437 */
   38     61   
    ///
   39         -
    /// To override the contents of this collection use [`set_nested_xml_map_with_xml_name_map`](Self::set_nested_xml_map_with_xml_name_map).
          62  +
    /// /* BuilderGenerator.kt:438 */To override the contents of this collection use [`set_nested_xml_map_with_xml_name_map`](Self::set_nested_xml_map_with_xml_name_map).
          63  +
    /* BuilderGenerator.kt:439 */
   40     64   
    ///
          65  +
    /* BuilderGenerator.kt:445 */
   41     66   
    pub fn nested_xml_map_with_xml_name_map(
   42     67   
        mut self,
   43     68   
        k: impl ::std::convert::Into<::std::string::String>,
   44     69   
        v: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
   45     70   
    ) -> Self {
          71  +
        /* BuilderGenerator.kt:448 */
   46     72   
        let mut hash_map = self.nested_xml_map_with_xml_name_map.unwrap_or_default();
   47     73   
        hash_map.insert(k.into(), v);
   48     74   
        self.nested_xml_map_with_xml_name_map = ::std::option::Option::Some(hash_map);
   49     75   
        self
          76  +
        /* BuilderGenerator.kt:445 */
   50     77   
    }
          78  +
    /* BuilderGenerator.kt:312 */
   51     79   
    #[allow(missing_docs)] // documentation missing in model
          80  +
                           /* BuilderGenerator.kt:314 */
   52     81   
    pub fn set_nested_xml_map_with_xml_name_map(
   53     82   
        mut self,
   54     83   
        input: ::std::option::Option<
   55     84   
            ::std::collections::HashMap<::std::string::String, ::std::collections::HashMap<::std::string::String, ::std::string::String>>,
   56     85   
        >,
   57     86   
    ) -> Self {
          87  +
        /* BuilderGenerator.kt:315 */
   58     88   
        self.nested_xml_map_with_xml_name_map = input;
   59     89   
        self
          90  +
        /* BuilderGenerator.kt:314 */
   60     91   
    }
          92  +
    /* BuilderGenerator.kt:334 */
   61     93   
    #[allow(missing_docs)] // documentation missing in model
          94  +
                           /* BuilderGenerator.kt:336 */
   62     95   
    pub fn get_nested_xml_map_with_xml_name_map(
   63     96   
        &self,
   64     97   
    ) -> &::std::option::Option<
   65     98   
        ::std::collections::HashMap<::std::string::String, ::std::collections::HashMap<::std::string::String, ::std::string::String>>,
   66     99   
    > {
         100  +
        /* BuilderGenerator.kt:337 */
   67    101   
        &self.nested_xml_map_with_xml_name_map
         102  +
        /* BuilderGenerator.kt:336 */
   68    103   
    }
   69         -
    /// Consumes the builder and constructs a [`NestedXmlMapWithXmlNameInput`](crate::operation::nested_xml_map_with_xml_name::NestedXmlMapWithXmlNameInput).
         104  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`NestedXmlMapWithXmlNameInput`](crate::operation::nested_xml_map_with_xml_name::NestedXmlMapWithXmlNameInput).
         105  +
    /* BuilderGenerator.kt:253 */
   70    106   
    pub fn build(
   71    107   
        self,
   72    108   
    ) -> ::std::result::Result<
   73    109   
        crate::operation::nested_xml_map_with_xml_name::NestedXmlMapWithXmlNameInput,
   74    110   
        ::aws_smithy_types::error::operation::BuildError,
   75    111   
    > {
   76         -
        ::std::result::Result::Ok(crate::operation::nested_xml_map_with_xml_name::NestedXmlMapWithXmlNameInput {
   77         -
            nested_xml_map_with_xml_name_map: self.nested_xml_map_with_xml_name_map,
   78         -
        })
         112  +
        /* BuilderGenerator.kt:254 */
         113  +
        ::std::result::Result::Ok(
         114  +
            /* BuilderGenerator.kt:477 */
         115  +
            crate::operation::nested_xml_map_with_xml_name::NestedXmlMapWithXmlNameInput {
         116  +
                /* BuilderGenerator.kt:481 */
         117  +
                nested_xml_map_with_xml_name_map: self.nested_xml_map_with_xml_name_map,
         118  +
                /* BuilderGenerator.kt:477 */
         119  +
            }, /* BuilderGenerator.kt:254 */
         120  +
        )
         121  +
        /* BuilderGenerator.kt:253 */
   79    122   
    }
         123  +
    /* BuilderGenerator.kt:355 */
   80    124   
}

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

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

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

@@ -1,1 +143,161 @@
    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::nested_xml_map_with_xml_name::_nested_xml_map_with_xml_name_output::NestedXmlMapWithXmlNameOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::nested_xml_map_with_xml_name::_nested_xml_map_with_xml_name_input::NestedXmlMapWithXmlNameInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::nested_xml_map_with_xml_name::builders::NestedXmlMapWithXmlNameInputBuilder {
    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::nested_xml_map_with_xml_name::NestedXmlMapWithXmlNameOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::nested_xml_map_with_xml_name::NestedXmlMapWithXmlNameError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.nested_xml_map_with_xml_name();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `NestedXmlMapWithXmlName`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `NestedXmlMapWithXmlName`.
   24     27   
///
   25         -
/// Nested Xml Maps with key/values with @xmlName
          28  +
/// /* FluentBuilderGenerator.kt:130 */Nested Xml Maps with key/values with @xmlName
          29  +
/* RustType.kt:516 */
   26     30   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          31  +
/* FluentBuilderGenerator.kt:270 */
   27     32   
pub struct NestedXmlMapWithXmlNameFluentBuilder {
   28     33   
    handle: ::std::sync::Arc<crate::client::Handle>,
   29     34   
    inner: crate::operation::nested_xml_map_with_xml_name::builders::NestedXmlMapWithXmlNameInputBuilder,
   30     35   
    config_override: ::std::option::Option<crate::config::Builder>,
   31     36   
}
          37  +
/* FluentBuilderGenerator.kt:381 */
   32     38   
impl
   33     39   
    crate::client::customize::internal::CustomizableSend<
   34     40   
        crate::operation::nested_xml_map_with_xml_name::NestedXmlMapWithXmlNameOutput,
   35     41   
        crate::operation::nested_xml_map_with_xml_name::NestedXmlMapWithXmlNameError,
   36     42   
    > for NestedXmlMapWithXmlNameFluentBuilder
   37     43   
{
   38     44   
    fn send(
   39     45   
        self,
   40     46   
        config_override: crate::config::Builder,
   41     47   
    ) -> crate::client::customize::internal::BoxFuture<
   42     48   
        crate::client::customize::internal::SendResult<
   43     49   
            crate::operation::nested_xml_map_with_xml_name::NestedXmlMapWithXmlNameOutput,
   44     50   
            crate::operation::nested_xml_map_with_xml_name::NestedXmlMapWithXmlNameError,
   45     51   
        >,
   46     52   
    > {
   47     53   
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
   48     54   
    }
   49     55   
}
          56  +
/* FluentBuilderGenerator.kt:282 */
   50     57   
impl NestedXmlMapWithXmlNameFluentBuilder {
          58  +
    /* FluentBuilderGenerator.kt:288 */
   51     59   
    /// Creates a new `NestedXmlMapWithXmlNameFluentBuilder`.
   52     60   
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
   53     61   
        Self {
   54     62   
            handle,
   55     63   
            inner: ::std::default::Default::default(),
   56     64   
            config_override: ::std::option::Option::None,
   57     65   
        }
   58     66   
    }
          67  +
    /* FluentBuilderGenerator.kt:301 */
   59     68   
    /// Access the NestedXmlMapWithXmlName as a reference.
   60     69   
    pub fn as_input(&self) -> &crate::operation::nested_xml_map_with_xml_name::builders::NestedXmlMapWithXmlNameInputBuilder {
   61     70   
        &self.inner
   62     71   
    }
          72  +
    /* FluentBuilderGenerator.kt:145 */
   63     73   
    /// Sends the request and returns the response.
   64     74   
    ///
   65     75   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   66     76   
    /// can be matched against.
   67     77   
    ///
   68     78   
    /// By default, any retryable failures will be retried twice. Retry behavior
   69     79   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   70     80   
    /// set when configuring the client.
   71     81   
    pub async fn send(
   72     82   
        self,
   73     83   
    ) -> ::std::result::Result<
   74     84   
        crate::operation::nested_xml_map_with_xml_name::NestedXmlMapWithXmlNameOutput,
   75     85   
        ::aws_smithy_runtime_api::client::result::SdkError<
   76     86   
            crate::operation::nested_xml_map_with_xml_name::NestedXmlMapWithXmlNameError,
   77     87   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   78     88   
        >,
   79     89   
    > {
   80     90   
        let input = self
   81     91   
            .inner
   82     92   
            .build()
   83     93   
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
   84     94   
        let runtime_plugins = crate::operation::nested_xml_map_with_xml_name::NestedXmlMapWithXmlName::operation_runtime_plugins(
   85     95   
            self.handle.runtime_plugins.clone(),
   86     96   
            &self.handle.conf,
   87     97   
            self.config_override,
   88     98   
        );
   89     99   
        crate::operation::nested_xml_map_with_xml_name::NestedXmlMapWithXmlName::orchestrate(&runtime_plugins, input).await
   90    100   
    }
   91    101   
   92    102   
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
   93    103   
    pub fn customize(
   94    104   
        self,
   95    105   
    ) -> crate::client::customize::CustomizableOperation<
   96    106   
        crate::operation::nested_xml_map_with_xml_name::NestedXmlMapWithXmlNameOutput,
   97    107   
        crate::operation::nested_xml_map_with_xml_name::NestedXmlMapWithXmlNameError,
   98    108   
        Self,
   99    109   
    > {
  100    110   
        crate::client::customize::CustomizableOperation::new(self)
  101    111   
    }
         112  +
    /* FluentBuilderGenerator.kt:315 */
  102    113   
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
  103    114   
        self.set_config_override(::std::option::Option::Some(config_override.into()));
  104    115   
        self
  105    116   
    }
  106    117   
  107    118   
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
  108    119   
        self.config_override = config_override;
  109    120   
        self
  110    121   
    }
  111         -
    ///
         122  +
    /// /* FluentBuilderGenerator.kt:466 */
  112    123   
    /// Adds a key-value pair to `nestedXmlMapWithXmlNameMap`.
  113    124   
    ///
  114    125   
    /// To override the contents of this collection use [`set_nested_xml_map_with_xml_name_map`](Self::set_nested_xml_map_with_xml_name_map).
  115    126   
    ///
         127  +
    /* FluentBuilderGenerator.kt:473 */
  116    128   
    #[allow(missing_docs)] // documentation missing in model
         129  +
                           /* FluentBuilderGenerator.kt:475 */
  117    130   
    pub fn nested_xml_map_with_xml_name_map(
  118    131   
        mut self,
  119    132   
        k: impl ::std::convert::Into<::std::string::String>,
  120    133   
        v: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
  121    134   
    ) -> Self {
  122    135   
        self.inner = self.inner.nested_xml_map_with_xml_name_map(k.into(), v);
  123    136   
        self
  124    137   
    }
         138  +
    /* FluentBuilderGenerator.kt:498 */
  125    139   
    #[allow(missing_docs)] // documentation missing in model
         140  +
                           /* FluentBuilderGenerator.kt:500 */
  126    141   
    pub fn set_nested_xml_map_with_xml_name_map(
  127    142   
        mut self,
  128    143   
        input: ::std::option::Option<
  129    144   
            ::std::collections::HashMap<::std::string::String, ::std::collections::HashMap<::std::string::String, ::std::string::String>>,
  130    145   
        >,
  131    146   
    ) -> Self {
  132    147   
        self.inner = self.inner.set_nested_xml_map_with_xml_name_map(input);
  133    148   
        self
  134    149   
    }
         150  +
    /* FluentBuilderGenerator.kt:518 */
  135    151   
    #[allow(missing_docs)] // documentation missing in model
         152  +
                           /* FluentBuilderGenerator.kt:520 */
  136    153   
    pub fn get_nested_xml_map_with_xml_name_map(
  137    154   
        &self,
  138    155   
    ) -> &::std::option::Option<
  139    156   
        ::std::collections::HashMap<::std::string::String, ::std::collections::HashMap<::std::string::String, ::std::string::String>>,
  140    157   
    > {
  141    158   
        self.inner.get_nested_xml_map_with_xml_name_map()
  142    159   
    }
         160  +
    /* FluentBuilderGenerator.kt:282 */
  143    161   
}

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

@@ -1,1 +40,49 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* OperationGenerator.kt:77 */
    2      3   
/// Orchestration and serialization glue logic for `NestedXmlMaps`.
           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 NestedXmlMaps;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl NestedXmlMaps {
    7         -
    /// Creates a new `NestedXmlMaps`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `NestedXmlMaps`
          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::nested_xml_maps::NestedXmlMapsInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::nested_xml_maps::NestedXmlMapsOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::nested_xml_maps::NestedXmlMapsError,
   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 NestedXmlMaps {
   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("NestedXmlMaps");
   91    102   
   92    103   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   93    104   
            NestedXmlMapsRequestSerializer,
   94    105   
        ));
   95    106   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
   96    107   
            NestedXmlMapsResponseDeserializer,
   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   
            "NestedXmlMaps",
  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("NestedXmlMaps")
  117    128   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  118    129   
            .with_interceptor(NestedXmlMapsEndpointParamsInterceptor)
  119    130   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  120    131   
                crate::operation::nested_xml_maps::NestedXmlMapsError,
  121    132   
            >::new())
  122    133   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  123    134   
                crate::operation::nested_xml_maps::NestedXmlMapsError,
  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 NestedXmlMapsResponseDeserializer;
  132    144   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for NestedXmlMapsResponseDeserializer {
  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_nested_xml_maps::de_nested_xml_maps_http_error(status, headers, body)
  145    157   
        } else {
  146    158   
            crate::protocol_serde::shape_nested_xml_maps::de_nested_xml_maps_http_response(status, headers, body)
  147    159   
        };
  148    160   
        crate::protocol_serde::type_erase_result(parse_result)
  149    161   
    }
  150    162   
}
         163  +
/* RequestSerializerGenerator.kt:67 */
  151    164   
#[derive(Debug)]
  152    165   
struct NestedXmlMapsRequestSerializer;
  153    166   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for NestedXmlMapsRequestSerializer {
  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::nested_xml_maps::NestedXmlMapsInput>()
  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::nested_xml_maps::NestedXmlMapsInput,
  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, "/NestedXmlMaps").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::nested_xml_maps::NestedXmlMapsInput,
  179    192   
                builder: ::http::request::Builder,
  180    193   
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  181    194   
                let mut uri = ::std::string::String::new();
  182    195   
                uri_base(input, &mut uri)?;
  183    196   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  184    197   
            }
  185    198   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  186    199   
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/xml");
  187    200   
            builder
  188    201   
        };
  189    202   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_nested_xml_maps::ser_nested_xml_maps_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 NestedXmlMapsEndpointParamsInterceptor;
  199    213   
  200    214   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for NestedXmlMapsEndpointParamsInterceptor {
  201    215   
    fn name(&self) -> &'static str {
  202    216   
        "NestedXmlMapsEndpointParamsInterceptor"
  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::<NestedXmlMapsInput>()
  218    232   
            .ok_or("failed to downcast to NestedXmlMapsInput")?;
  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 nested_xml_maps_test {
  235    252   
  236    253   
    /// Tests requests with nested maps.
  237    254   
    /// Test ID: NestedXmlMapRequest
  238    255   
    #[::tokio::test]
  239    256   
    #[::tracing_test::traced_test]
  240    257   
    async fn nested_xml_map_request_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   
@@ -395,412 +524,600 @@
  415    432   
            .expect("should be successful response")
  416    433   
            .downcast::<crate::operation::nested_xml_maps::NestedXmlMapsOutput>()
  417    434   
            .unwrap();
  418    435   
        ::pretty_assertions::assert_eq!(parsed.nested_map, expected_output.nested_map, "Unexpected value for `nested_map`");
  419    436   
        ::pretty_assertions::assert_eq!(
  420    437   
            parsed.flat_nested_map,
  421    438   
            expected_output.flat_nested_map,
  422    439   
            "Unexpected value for `flat_nested_map`"
  423    440   
        );
  424    441   
    }
         442  +
         443  +
    /* ProtocolTestGenerator.kt:98 */
  425    444   
}
  426    445   
         446  +
/* OperationErrorGenerator.kt:79 */
  427    447   
/// Error type for the `NestedXmlMapsError` operation.
         448  +
/* RustType.kt:516 */
  428    449   
#[non_exhaustive]
         450  +
/* RustType.kt:516 */
  429    451   
#[derive(::std::fmt::Debug)]
  430         -
pub enum NestedXmlMapsError {
         452  +
pub /* OperationErrorGenerator.kt:81 */ enum NestedXmlMapsError {
         453  +
    /* OperationErrorGenerator.kt:88 */
  431    454   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  432    455   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  433    456   
    variable wildcard pattern and check `.code()`:
  434    457   
     \
  435    458   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  436    459   
     \
  437    460   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-NestedXmlMapsError) for what information is available for the error.")]
  438    461   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         462  +
    /* OperationErrorGenerator.kt:81 */
  439    463   
}
         464  +
/* OperationErrorGenerator.kt:218 */
  440    465   
impl NestedXmlMapsError {
         466  +
    /* OperationErrorGenerator.kt:219 */
  441    467   
    /// Creates the `NestedXmlMapsError::Unhandled` variant from any error type.
  442    468   
    pub fn unhandled(
  443    469   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  444    470   
    ) -> Self {
  445    471   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  446    472   
            source: err.into(),
  447    473   
            meta: ::std::default::Default::default(),
  448    474   
        })
  449    475   
    }
  450    476   
  451    477   
    /// Creates the `NestedXmlMapsError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  452    478   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  453    479   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  454    480   
            source: err.clone().into(),
  455    481   
            meta: err,
  456    482   
        })
  457    483   
    }
  458         -
    ///
         484  +
    /// /* OperationErrorGenerator.kt:236 */
  459    485   
    /// Returns error metadata, which includes the error code, message,
  460    486   
    /// request ID, and potentially additional information.
  461    487   
    ///
         488  +
    /* OperationErrorGenerator.kt:242 */
  462    489   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         490  +
        /* OperationErrorGenerator.kt:243 */
  463    491   
        match self {
  464         -
            Self::Unhandled(e) => &e.meta,
         492  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         493  +
            /* OperationErrorGenerator.kt:243 */
  465    494   
        }
         495  +
        /* OperationErrorGenerator.kt:242 */
  466    496   
    }
         497  +
    /* OperationErrorGenerator.kt:218 */
  467    498   
}
         499  +
/* OperationErrorGenerator.kt:269 */
  468    500   
impl ::std::error::Error for NestedXmlMapsError {
         501  +
    /* OperationErrorGenerator.kt:270 */
  469    502   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         503  +
        /* OperationErrorGenerator.kt:318 */
  470    504   
        match self {
  471         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         505  +
            /* OperationErrorGenerator.kt:326 */
         506  +
            Self::Unhandled(_inner) => {
         507  +
                /* OperationErrorGenerator.kt:279 */
         508  +
                ::std::option::Option::Some(&*_inner.source)
         509  +
                /* OperationErrorGenerator.kt:326 */
         510  +
            } /* OperationErrorGenerator.kt:318 */
  472    511   
        }
         512  +
        /* OperationErrorGenerator.kt:270 */
  473    513   
    }
         514  +
    /* OperationErrorGenerator.kt:269 */
  474    515   
}
         516  +
/* OperationErrorGenerator.kt:133 */
  475    517   
impl ::std::fmt::Display for NestedXmlMapsError {
         518  +
    /* OperationErrorGenerator.kt:134 */
  476    519   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         520  +
        /* OperationErrorGenerator.kt:318 */
  477    521   
        match self {
         522  +
            /* OperationErrorGenerator.kt:326 */
  478    523   
            Self::Unhandled(_inner) => {
         524  +
                /* OperationErrorGenerator.kt:139 */
  479    525   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  480    526   
                    write!(f, "unhandled error ({code})")
  481    527   
                } else {
  482    528   
                    f.write_str("unhandled error")
  483    529   
                }
  484         -
            }
         530  +
                /* OperationErrorGenerator.kt:326 */
         531  +
            } /* OperationErrorGenerator.kt:318 */
  485    532   
        }
         533  +
        /* OperationErrorGenerator.kt:134 */
  486    534   
    }
         535  +
    /* OperationErrorGenerator.kt:133 */
  487    536   
}
         537  +
/* OperationErrorGenerator.kt:182 */
  488    538   
impl ::aws_smithy_types::retry::ProvideErrorKind for NestedXmlMapsError {
         539  +
    /* OperationErrorGenerator.kt:186 */
  489    540   
    fn code(&self) -> ::std::option::Option<&str> {
         541  +
        /* OperationErrorGenerator.kt:187 */
  490    542   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         543  +
        /* OperationErrorGenerator.kt:186 */
  491    544   
    }
         545  +
    /* OperationErrorGenerator.kt:190 */
  492    546   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         547  +
        /* OperationErrorGenerator.kt:197 */
  493    548   
        ::std::option::Option::None
         549  +
        /* OperationErrorGenerator.kt:190 */
  494    550   
    }
         551  +
    /* OperationErrorGenerator.kt:182 */
  495    552   
}
         553  +
/* OperationErrorGenerator.kt:163 */
  496    554   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for NestedXmlMapsError {
         555  +
    /* OperationErrorGenerator.kt:164 */
  497    556   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         557  +
        /* OperationErrorGenerator.kt:318 */
  498    558   
        match self {
  499         -
            Self::Unhandled(_inner) => &_inner.meta,
         559  +
            /* OperationErrorGenerator.kt:326 */
         560  +
            Self::Unhandled(_inner) => {
         561  +
                /* OperationErrorGenerator.kt:168 */
         562  +
                &_inner.meta
         563  +
                /* OperationErrorGenerator.kt:326 */
         564  +
            } /* OperationErrorGenerator.kt:318 */
  500    565   
        }
         566  +
        /* OperationErrorGenerator.kt:164 */
  501    567   
    }
         568  +
    /* OperationErrorGenerator.kt:163 */
  502    569   
}
         570  +
/* OperationErrorGenerator.kt:109 */
  503    571   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for NestedXmlMapsError {
         572  +
    /* OperationErrorGenerator.kt:110 */
  504    573   
    fn create_unhandled_error(
  505    574   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  506    575   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  507    576   
    ) -> Self {
         577  +
        /* OperationErrorGenerator.kt:121 */
  508    578   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  509    579   
            source,
  510    580   
            meta: meta.unwrap_or_default(),
  511    581   
        })
         582  +
        /* OperationErrorGenerator.kt:110 */
  512    583   
    }
         584  +
    /* OperationErrorGenerator.kt:109 */
  513    585   
}
  514    586   
         587  +
/* CodegenDelegator.kt:255 */
  515    588   
pub use crate::operation::nested_xml_maps::_nested_xml_maps_output::NestedXmlMapsOutput;
  516    589   
         590  +
/* CodegenDelegator.kt:255 */
  517    591   
pub use crate::operation::nested_xml_maps::_nested_xml_maps_input::NestedXmlMapsInput;
  518    592   
         593  +
/* RustModule.kt:172 */
  519    594   
mod _nested_xml_maps_input;
  520    595   
         596  +
/* RustModule.kt:172 */
  521    597   
mod _nested_xml_maps_output;
  522    598   
  523         -
/// Builders
         599  +
/// /* CodegenDelegator.kt:51 */Builders
  524    600   
pub mod builders;

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

@@ -1,1 +125,188 @@
    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 NestedXmlMapsInput {
           8  +
pub /* StructureGenerator.kt:201 */ struct NestedXmlMapsInput {
           9  +
    /* StructureGenerator.kt:231 */
    6     10   
    #[allow(missing_docs)] // documentation missing in model
    7     11   
    pub nested_map: ::std::option::Option<
    8     12   
        ::std::collections::HashMap<::std::string::String, ::std::collections::HashMap<::std::string::String, crate::types::FooEnum>>,
    9     13   
    >,
          14  +
    /* StructureGenerator.kt:231 */
   10     15   
    #[allow(missing_docs)] // documentation missing in model
   11     16   
    pub flat_nested_map: ::std::option::Option<
   12     17   
        ::std::collections::HashMap<::std::string::String, ::std::collections::HashMap<::std::string::String, crate::types::FooEnum>>,
   13     18   
    >,
          19  +
    /* StructureGenerator.kt:201 */
   14     20   
}
          21  +
/* StructureGenerator.kt:135 */
   15     22   
impl NestedXmlMapsInput {
          23  +
    /* StructureGenerator.kt:231 */
   16     24   
    #[allow(missing_docs)] // documentation missing in model
          25  +
                           /* StructureGenerator.kt:166 */
   17     26   
    pub fn nested_map(
   18     27   
        &self,
   19     28   
    ) -> ::std::option::Option<
   20     29   
        &::std::collections::HashMap<::std::string::String, ::std::collections::HashMap<::std::string::String, crate::types::FooEnum>>,
   21     30   
    > {
          31  +
        /* StructureGenerator.kt:170 */
   22     32   
        self.nested_map.as_ref()
          33  +
        /* StructureGenerator.kt:166 */
   23     34   
    }
          35  +
    /* StructureGenerator.kt:231 */
   24     36   
    #[allow(missing_docs)] // documentation missing in model
          37  +
                           /* StructureGenerator.kt:166 */
   25     38   
    pub fn flat_nested_map(
   26     39   
        &self,
   27     40   
    ) -> ::std::option::Option<
   28     41   
        &::std::collections::HashMap<::std::string::String, ::std::collections::HashMap<::std::string::String, crate::types::FooEnum>>,
   29     42   
    > {
          43  +
        /* StructureGenerator.kt:170 */
   30     44   
        self.flat_nested_map.as_ref()
          45  +
        /* StructureGenerator.kt:166 */
   31     46   
    }
          47  +
    /* StructureGenerator.kt:135 */
   32     48   
}
          49  +
/* ClientCodegenVisitor.kt:237 */
   33     50   
impl NestedXmlMapsInput {
   34         -
    /// Creates a new builder-style object to manufacture [`NestedXmlMapsInput`](crate::operation::nested_xml_maps::NestedXmlMapsInput).
          51  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`NestedXmlMapsInput`](crate::operation::nested_xml_maps::NestedXmlMapsInput).
          52  +
    /* BuilderGenerator.kt:175 */
   35     53   
    pub fn builder() -> crate::operation::nested_xml_maps::builders::NestedXmlMapsInputBuilder {
          54  +
        /* BuilderGenerator.kt:176 */
   36     55   
        crate::operation::nested_xml_maps::builders::NestedXmlMapsInputBuilder::default()
          56  +
        /* BuilderGenerator.kt:175 */
   37     57   
    }
          58  +
    /* ClientCodegenVisitor.kt:237 */
   38     59   
}
   39     60   
   40         -
/// A builder for [`NestedXmlMapsInput`](crate::operation::nested_xml_maps::NestedXmlMapsInput).
          61  +
/// /* BuilderGenerator.kt:342 */A builder for [`NestedXmlMapsInput`](crate::operation::nested_xml_maps::NestedXmlMapsInput).
          62  +
/* RustType.kt:516 */
   41     63   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          64  +
/* RustType.kt:516 */
   42     65   
#[non_exhaustive]
          66  +
/* BuilderGenerator.kt:345 */
   43     67   
pub struct NestedXmlMapsInputBuilder {
          68  +
    /* BuilderGenerator.kt:275 */
   44     69   
    pub(crate) nested_map: ::std::option::Option<
   45     70   
        ::std::collections::HashMap<::std::string::String, ::std::collections::HashMap<::std::string::String, crate::types::FooEnum>>,
   46     71   
    >,
          72  +
    /* BuilderGenerator.kt:275 */
   47     73   
    pub(crate) flat_nested_map: ::std::option::Option<
   48     74   
        ::std::collections::HashMap<::std::string::String, ::std::collections::HashMap<::std::string::String, crate::types::FooEnum>>,
   49     75   
    >,
          76  +
    /* BuilderGenerator.kt:345 */
   50     77   
}
          78  +
/* BuilderGenerator.kt:355 */
   51     79   
impl NestedXmlMapsInputBuilder {
   52         -
    /// Adds a key-value pair to `nested_map`.
          80  +
    /// /* BuilderGenerator.kt:436 */Adds a key-value pair to `nested_map`.
          81  +
    /* BuilderGenerator.kt:437 */
   53     82   
    ///
   54         -
    /// To override the contents of this collection use [`set_nested_map`](Self::set_nested_map).
          83  +
    /// /* BuilderGenerator.kt:438 */To override the contents of this collection use [`set_nested_map`](Self::set_nested_map).
          84  +
    /* BuilderGenerator.kt:439 */
   55     85   
    ///
          86  +
    /* BuilderGenerator.kt:445 */
   56     87   
    pub fn nested_map(
   57     88   
        mut self,
   58     89   
        k: impl ::std::convert::Into<::std::string::String>,
   59     90   
        v: ::std::collections::HashMap<::std::string::String, crate::types::FooEnum>,
   60     91   
    ) -> Self {
          92  +
        /* BuilderGenerator.kt:448 */
   61     93   
        let mut hash_map = self.nested_map.unwrap_or_default();
   62     94   
        hash_map.insert(k.into(), v);
   63     95   
        self.nested_map = ::std::option::Option::Some(hash_map);
   64     96   
        self
          97  +
        /* BuilderGenerator.kt:445 */
   65     98   
    }
          99  +
    /* BuilderGenerator.kt:312 */
   66    100   
    #[allow(missing_docs)] // documentation missing in model
         101  +
                           /* BuilderGenerator.kt:314 */
   67    102   
    pub fn set_nested_map(
   68    103   
        mut self,
   69    104   
        input: ::std::option::Option<
   70    105   
            ::std::collections::HashMap<::std::string::String, ::std::collections::HashMap<::std::string::String, crate::types::FooEnum>>,
   71    106   
        >,
   72    107   
    ) -> Self {
         108  +
        /* BuilderGenerator.kt:315 */
   73    109   
        self.nested_map = input;
   74    110   
        self
         111  +
        /* BuilderGenerator.kt:314 */
   75    112   
    }
         113  +
    /* BuilderGenerator.kt:334 */
   76    114   
    #[allow(missing_docs)] // documentation missing in model
         115  +
                           /* BuilderGenerator.kt:336 */
   77    116   
    pub fn get_nested_map(
   78    117   
        &self,
   79    118   
    ) -> &::std::option::Option<
   80    119   
        ::std::collections::HashMap<::std::string::String, ::std::collections::HashMap<::std::string::String, crate::types::FooEnum>>,
   81    120   
    > {
         121  +
        /* BuilderGenerator.kt:337 */
   82    122   
        &self.nested_map
         123  +
        /* BuilderGenerator.kt:336 */
   83    124   
    }
   84         -
    /// Adds a key-value pair to `flat_nested_map`.
         125  +
    /// /* BuilderGenerator.kt:436 */Adds a key-value pair to `flat_nested_map`.
         126  +
    /* BuilderGenerator.kt:437 */
   85    127   
    ///
   86         -
    /// To override the contents of this collection use [`set_flat_nested_map`](Self::set_flat_nested_map).
         128  +
    /// /* BuilderGenerator.kt:438 */To override the contents of this collection use [`set_flat_nested_map`](Self::set_flat_nested_map).
         129  +
    /* BuilderGenerator.kt:439 */
   87    130   
    ///
         131  +
    /* BuilderGenerator.kt:445 */
   88    132   
    pub fn flat_nested_map(
   89    133   
        mut self,
   90    134   
        k: impl ::std::convert::Into<::std::string::String>,
   91    135   
        v: ::std::collections::HashMap<::std::string::String, crate::types::FooEnum>,
   92    136   
    ) -> Self {
         137  +
        /* BuilderGenerator.kt:448 */
   93    138   
        let mut hash_map = self.flat_nested_map.unwrap_or_default();
   94    139   
        hash_map.insert(k.into(), v);
   95    140   
        self.flat_nested_map = ::std::option::Option::Some(hash_map);
   96    141   
        self
         142  +
        /* BuilderGenerator.kt:445 */
   97    143   
    }
         144  +
    /* BuilderGenerator.kt:312 */
   98    145   
    #[allow(missing_docs)] // documentation missing in model
         146  +
                           /* BuilderGenerator.kt:314 */
   99    147   
    pub fn set_flat_nested_map(
  100    148   
        mut self,
  101    149   
        input: ::std::option::Option<
  102    150   
            ::std::collections::HashMap<::std::string::String, ::std::collections::HashMap<::std::string::String, crate::types::FooEnum>>,
  103    151   
        >,
  104    152   
    ) -> Self {
         153  +
        /* BuilderGenerator.kt:315 */
  105    154   
        self.flat_nested_map = input;
  106    155   
        self
         156  +
        /* BuilderGenerator.kt:314 */
  107    157   
    }
         158  +
    /* BuilderGenerator.kt:334 */
  108    159   
    #[allow(missing_docs)] // documentation missing in model
         160  +
                           /* BuilderGenerator.kt:336 */
  109    161   
    pub fn get_flat_nested_map(
  110    162   
        &self,
  111    163   
    ) -> &::std::option::Option<
  112    164   
        ::std::collections::HashMap<::std::string::String, ::std::collections::HashMap<::std::string::String, crate::types::FooEnum>>,
  113    165   
    > {
         166  +
        /* BuilderGenerator.kt:337 */
  114    167   
        &self.flat_nested_map
         168  +
        /* BuilderGenerator.kt:336 */
  115    169   
    }
  116         -
    /// Consumes the builder and constructs a [`NestedXmlMapsInput`](crate::operation::nested_xml_maps::NestedXmlMapsInput).
         170  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`NestedXmlMapsInput`](crate::operation::nested_xml_maps::NestedXmlMapsInput).
         171  +
    /* BuilderGenerator.kt:253 */
  117    172   
    pub fn build(
  118    173   
        self,
  119    174   
    ) -> ::std::result::Result<crate::operation::nested_xml_maps::NestedXmlMapsInput, ::aws_smithy_types::error::operation::BuildError> {
  120         -
        ::std::result::Result::Ok(crate::operation::nested_xml_maps::NestedXmlMapsInput {
  121         -
            nested_map: self.nested_map,
  122         -
            flat_nested_map: self.flat_nested_map,
  123         -
        })
         175  +
        /* BuilderGenerator.kt:254 */
         176  +
        ::std::result::Result::Ok(
         177  +
            /* BuilderGenerator.kt:477 */
         178  +
            crate::operation::nested_xml_maps::NestedXmlMapsInput {
         179  +
                /* BuilderGenerator.kt:481 */ nested_map: self.nested_map,
         180  +
                /* BuilderGenerator.kt:481 */
         181  +
                flat_nested_map: self.flat_nested_map,
         182  +
                /* BuilderGenerator.kt:477 */
         183  +
            }, /* BuilderGenerator.kt:254 */
         184  +
        )
         185  +
        /* BuilderGenerator.kt:253 */
  124    186   
    }
         187  +
    /* BuilderGenerator.kt:355 */
  125    188   
}