Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943

Files changed:

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

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

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

@@ -1,1 +395,494 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CodegenDelegator.kt:255 */
    2      3   
pub use crate::operation::xml_empty_lists::_xml_empty_lists_output::XmlEmptyListsOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::xml_empty_lists::_xml_empty_lists_input::XmlEmptyListsInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::xml_empty_lists::builders::XmlEmptyListsInputBuilder {
    7     10   
    /// Sends a request with this input using the given client.
    8     11   
    pub async fn send_with(
    9     12   
        self,
   10     13   
        client: &crate::Client,
   11     14   
    ) -> ::std::result::Result<
   12     15   
        crate::operation::xml_empty_lists::XmlEmptyListsOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::xml_empty_lists::XmlEmptyListsError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.xml_empty_lists();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `XmlEmptyLists`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `XmlEmptyLists`.
   24     27   
///
          28  +
/* RustType.kt:516 */
   25     29   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          30  +
/* FluentBuilderGenerator.kt:270 */
   26     31   
pub struct XmlEmptyListsFluentBuilder {
   27     32   
    handle: ::std::sync::Arc<crate::client::Handle>,
   28     33   
    inner: crate::operation::xml_empty_lists::builders::XmlEmptyListsInputBuilder,
   29     34   
    config_override: ::std::option::Option<crate::config::Builder>,
   30     35   
}
          36  +
/* FluentBuilderGenerator.kt:381 */
   31     37   
impl
   32     38   
    crate::client::customize::internal::CustomizableSend<
   33     39   
        crate::operation::xml_empty_lists::XmlEmptyListsOutput,
   34     40   
        crate::operation::xml_empty_lists::XmlEmptyListsError,
   35     41   
    > for XmlEmptyListsFluentBuilder
   36     42   
{
   37     43   
    fn send(
   38     44   
        self,
   39     45   
        config_override: crate::config::Builder,
   40     46   
    ) -> crate::client::customize::internal::BoxFuture<
   41     47   
        crate::client::customize::internal::SendResult<
   42     48   
            crate::operation::xml_empty_lists::XmlEmptyListsOutput,
   43     49   
            crate::operation::xml_empty_lists::XmlEmptyListsError,
   44     50   
        >,
   45     51   
    > {
   46     52   
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
   47     53   
    }
   48     54   
}
          55  +
/* FluentBuilderGenerator.kt:282 */
   49     56   
impl XmlEmptyListsFluentBuilder {
          57  +
    /* FluentBuilderGenerator.kt:288 */
   50     58   
    /// Creates a new `XmlEmptyListsFluentBuilder`.
   51     59   
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
   52     60   
        Self {
   53     61   
            handle,
   54     62   
            inner: ::std::default::Default::default(),
   55     63   
            config_override: ::std::option::Option::None,
   56     64   
        }
   57     65   
    }
          66  +
    /* FluentBuilderGenerator.kt:301 */
   58     67   
    /// Access the XmlEmptyLists as a reference.
   59     68   
    pub fn as_input(&self) -> &crate::operation::xml_empty_lists::builders::XmlEmptyListsInputBuilder {
   60     69   
        &self.inner
   61     70   
    }
          71  +
    /* FluentBuilderGenerator.kt:145 */
   62     72   
    /// Sends the request and returns the response.
   63     73   
    ///
   64     74   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   65     75   
    /// can be matched against.
   66     76   
    ///
   67     77   
    /// By default, any retryable failures will be retried twice. Retry behavior
   68     78   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   69     79   
    /// set when configuring the client.
   70     80   
    pub async fn send(
   71     81   
        self,
   72     82   
    ) -> ::std::result::Result<
   73     83   
        crate::operation::xml_empty_lists::XmlEmptyListsOutput,
   74     84   
        ::aws_smithy_runtime_api::client::result::SdkError<
   75     85   
            crate::operation::xml_empty_lists::XmlEmptyListsError,
   76     86   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   77     87   
        >,
   78     88   
    > {
   79     89   
        let input = self
   80     90   
            .inner
   81     91   
            .build()
   82     92   
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
   83     93   
        let runtime_plugins = crate::operation::xml_empty_lists::XmlEmptyLists::operation_runtime_plugins(
   84     94   
            self.handle.runtime_plugins.clone(),
   85     95   
            &self.handle.conf,
   86     96   
            self.config_override,
   87     97   
        );
   88     98   
        crate::operation::xml_empty_lists::XmlEmptyLists::orchestrate(&runtime_plugins, input).await
   89     99   
    }
   90    100   
   91    101   
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
   92    102   
    pub fn customize(
   93    103   
        self,
   94    104   
    ) -> crate::client::customize::CustomizableOperation<
   95    105   
        crate::operation::xml_empty_lists::XmlEmptyListsOutput,
   96    106   
        crate::operation::xml_empty_lists::XmlEmptyListsError,
   97    107   
        Self,
   98    108   
    > {
   99    109   
        crate::client::customize::CustomizableOperation::new(self)
  100    110   
    }
         111  +
    /* FluentBuilderGenerator.kt:315 */
  101    112   
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
  102    113   
        self.set_config_override(::std::option::Option::Some(config_override.into()));
  103    114   
        self
  104    115   
    }
  105    116   
  106    117   
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
  107    118   
        self.config_override = config_override;
  108    119   
        self
  109    120   
    }
  110         -
    ///
         121  +
    /// /* FluentBuilderGenerator.kt:436 */
  111    122   
    /// Appends an item to `stringList`.
  112    123   
    ///
  113    124   
    /// To override the contents of this collection use [`set_string_list`](Self::set_string_list).
  114    125   
    ///
         126  +
    /* FluentBuilderGenerator.kt:443 */
  115    127   
    #[allow(missing_docs)] // documentation missing in model
         128  +
                           /* FluentBuilderGenerator.kt:446 */
  116    129   
    pub fn string_list(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  117    130   
        self.inner = self.inner.string_list(input.into());
  118    131   
        self
  119    132   
    }
         133  +
    /* FluentBuilderGenerator.kt:498 */
  120    134   
    #[allow(missing_docs)] // documentation missing in model
         135  +
                           /* FluentBuilderGenerator.kt:500 */
  121    136   
    pub fn set_string_list(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
  122    137   
        self.inner = self.inner.set_string_list(input);
  123    138   
        self
  124    139   
    }
         140  +
    /* FluentBuilderGenerator.kt:518 */
  125    141   
    #[allow(missing_docs)] // documentation missing in model
         142  +
                           /* FluentBuilderGenerator.kt:520 */
  126    143   
    pub fn get_string_list(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
  127    144   
        self.inner.get_string_list()
  128    145   
    }
  129         -
    ///
         146  +
    /// /* FluentBuilderGenerator.kt:436 */
  130    147   
    /// Appends an item to `stringSet`.
  131    148   
    ///
  132    149   
    /// To override the contents of this collection use [`set_string_set`](Self::set_string_set).
  133    150   
    ///
         151  +
    /* FluentBuilderGenerator.kt:443 */
  134    152   
    #[allow(missing_docs)] // documentation missing in model
         153  +
                           /* FluentBuilderGenerator.kt:446 */
  135    154   
    pub fn string_set(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  136    155   
        self.inner = self.inner.string_set(input.into());
  137    156   
        self
  138    157   
    }
         158  +
    /* FluentBuilderGenerator.kt:498 */
  139    159   
    #[allow(missing_docs)] // documentation missing in model
         160  +
                           /* FluentBuilderGenerator.kt:500 */
  140    161   
    pub fn set_string_set(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
  141    162   
        self.inner = self.inner.set_string_set(input);
  142    163   
        self
  143    164   
    }
         165  +
    /* FluentBuilderGenerator.kt:518 */
  144    166   
    #[allow(missing_docs)] // documentation missing in model
         167  +
                           /* FluentBuilderGenerator.kt:520 */
  145    168   
    pub fn get_string_set(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
  146    169   
        self.inner.get_string_set()
  147    170   
    }
  148         -
    ///
         171  +
    /// /* FluentBuilderGenerator.kt:436 */
  149    172   
    /// Appends an item to `integerList`.
  150    173   
    ///
  151    174   
    /// To override the contents of this collection use [`set_integer_list`](Self::set_integer_list).
  152    175   
    ///
         176  +
    /* FluentBuilderGenerator.kt:443 */
  153    177   
    #[allow(missing_docs)] // documentation missing in model
         178  +
                           /* FluentBuilderGenerator.kt:446 */
  154    179   
    pub fn integer_list(mut self, input: i32) -> Self {
  155    180   
        self.inner = self.inner.integer_list(input);
  156    181   
        self
  157    182   
    }
         183  +
    /* FluentBuilderGenerator.kt:498 */
  158    184   
    #[allow(missing_docs)] // documentation missing in model
         185  +
                           /* FluentBuilderGenerator.kt:500 */
  159    186   
    pub fn set_integer_list(mut self, input: ::std::option::Option<::std::vec::Vec<i32>>) -> Self {
  160    187   
        self.inner = self.inner.set_integer_list(input);
  161    188   
        self
  162    189   
    }
         190  +
    /* FluentBuilderGenerator.kt:518 */
  163    191   
    #[allow(missing_docs)] // documentation missing in model
         192  +
                           /* FluentBuilderGenerator.kt:520 */
  164    193   
    pub fn get_integer_list(&self) -> &::std::option::Option<::std::vec::Vec<i32>> {
  165    194   
        self.inner.get_integer_list()
  166    195   
    }
  167         -
    ///
         196  +
    /// /* FluentBuilderGenerator.kt:436 */
  168    197   
    /// Appends an item to `booleanList`.
  169    198   
    ///
  170    199   
    /// To override the contents of this collection use [`set_boolean_list`](Self::set_boolean_list).
  171    200   
    ///
         201  +
    /* FluentBuilderGenerator.kt:443 */
  172    202   
    #[allow(missing_docs)] // documentation missing in model
         203  +
                           /* FluentBuilderGenerator.kt:446 */
  173    204   
    pub fn boolean_list(mut self, input: bool) -> Self {
  174    205   
        self.inner = self.inner.boolean_list(input);
  175    206   
        self
  176    207   
    }
         208  +
    /* FluentBuilderGenerator.kt:498 */
  177    209   
    #[allow(missing_docs)] // documentation missing in model
         210  +
                           /* FluentBuilderGenerator.kt:500 */
  178    211   
    pub fn set_boolean_list(mut self, input: ::std::option::Option<::std::vec::Vec<bool>>) -> Self {
  179    212   
        self.inner = self.inner.set_boolean_list(input);
  180    213   
        self
  181    214   
    }
         215  +
    /* FluentBuilderGenerator.kt:518 */
  182    216   
    #[allow(missing_docs)] // documentation missing in model
         217  +
                           /* FluentBuilderGenerator.kt:520 */
  183    218   
    pub fn get_boolean_list(&self) -> &::std::option::Option<::std::vec::Vec<bool>> {
  184    219   
        self.inner.get_boolean_list()
  185    220   
    }
  186         -
    ///
         221  +
    /// /* FluentBuilderGenerator.kt:436 */
  187    222   
    /// Appends an item to `timestampList`.
  188    223   
    ///
  189    224   
    /// To override the contents of this collection use [`set_timestamp_list`](Self::set_timestamp_list).
  190    225   
    ///
         226  +
    /* FluentBuilderGenerator.kt:443 */
  191    227   
    #[allow(missing_docs)] // documentation missing in model
         228  +
                           /* FluentBuilderGenerator.kt:446 */
  192    229   
    pub fn timestamp_list(mut self, input: ::aws_smithy_types::DateTime) -> Self {
  193    230   
        self.inner = self.inner.timestamp_list(input);
  194    231   
        self
  195    232   
    }
         233  +
    /* FluentBuilderGenerator.kt:498 */
  196    234   
    #[allow(missing_docs)] // documentation missing in model
         235  +
                           /* FluentBuilderGenerator.kt:500 */
  197    236   
    pub fn set_timestamp_list(mut self, input: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>) -> Self {
  198    237   
        self.inner = self.inner.set_timestamp_list(input);
  199    238   
        self
  200    239   
    }
         240  +
    /* FluentBuilderGenerator.kt:518 */
  201    241   
    #[allow(missing_docs)] // documentation missing in model
         242  +
                           /* FluentBuilderGenerator.kt:520 */
  202    243   
    pub fn get_timestamp_list(&self) -> &::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>> {
  203    244   
        self.inner.get_timestamp_list()
  204    245   
    }
  205         -
    ///
         246  +
    /// /* FluentBuilderGenerator.kt:436 */
  206    247   
    /// Appends an item to `enumList`.
  207    248   
    ///
  208    249   
    /// To override the contents of this collection use [`set_enum_list`](Self::set_enum_list).
  209    250   
    ///
         251  +
    /* FluentBuilderGenerator.kt:443 */
  210    252   
    #[allow(missing_docs)] // documentation missing in model
         253  +
                           /* FluentBuilderGenerator.kt:446 */
  211    254   
    pub fn enum_list(mut self, input: crate::types::FooEnum) -> Self {
  212    255   
        self.inner = self.inner.enum_list(input);
  213    256   
        self
  214    257   
    }
         258  +
    /* FluentBuilderGenerator.kt:498 */
  215    259   
    #[allow(missing_docs)] // documentation missing in model
         260  +
                           /* FluentBuilderGenerator.kt:500 */
  216    261   
    pub fn set_enum_list(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::FooEnum>>) -> Self {
  217    262   
        self.inner = self.inner.set_enum_list(input);
  218    263   
        self
  219    264   
    }
         265  +
    /* FluentBuilderGenerator.kt:518 */
  220    266   
    #[allow(missing_docs)] // documentation missing in model
         267  +
                           /* FluentBuilderGenerator.kt:520 */
  221    268   
    pub fn get_enum_list(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::FooEnum>> {
  222    269   
        self.inner.get_enum_list()
  223    270   
    }
  224         -
    ///
         271  +
    /// /* FluentBuilderGenerator.kt:436 */
  225    272   
    /// Appends an item to `intEnumList`.
  226    273   
    ///
  227    274   
    /// To override the contents of this collection use [`set_int_enum_list`](Self::set_int_enum_list).
  228    275   
    ///
         276  +
    /* FluentBuilderGenerator.kt:443 */
  229    277   
    #[allow(missing_docs)] // documentation missing in model
         278  +
                           /* FluentBuilderGenerator.kt:446 */
  230    279   
    pub fn int_enum_list(mut self, input: i32) -> Self {
  231    280   
        self.inner = self.inner.int_enum_list(input);
  232    281   
        self
  233    282   
    }
         283  +
    /* FluentBuilderGenerator.kt:498 */
  234    284   
    #[allow(missing_docs)] // documentation missing in model
         285  +
                           /* FluentBuilderGenerator.kt:500 */
  235    286   
    pub fn set_int_enum_list(mut self, input: ::std::option::Option<::std::vec::Vec<i32>>) -> Self {
  236    287   
        self.inner = self.inner.set_int_enum_list(input);
  237    288   
        self
  238    289   
    }
         290  +
    /* FluentBuilderGenerator.kt:518 */
  239    291   
    #[allow(missing_docs)] // documentation missing in model
         292  +
                           /* FluentBuilderGenerator.kt:520 */
  240    293   
    pub fn get_int_enum_list(&self) -> &::std::option::Option<::std::vec::Vec<i32>> {
  241    294   
        self.inner.get_int_enum_list()
  242    295   
    }
  243         -
    ///
         296  +
    /// /* FluentBuilderGenerator.kt:436 */
  244    297   
    /// Appends an item to `nestedStringList`.
  245    298   
    ///
  246    299   
    /// To override the contents of this collection use [`set_nested_string_list`](Self::set_nested_string_list).
  247    300   
    ///
  248         -
    /// A list of lists of strings.
         301  +
    /// /* FluentBuilderGenerator.kt:443 */A list of lists of strings.
         302  +
    /* FluentBuilderGenerator.kt:446 */
  249    303   
    pub fn nested_string_list(mut self, input: ::std::vec::Vec<::std::string::String>) -> Self {
  250    304   
        self.inner = self.inner.nested_string_list(input);
  251    305   
        self
  252    306   
    }
  253         -
    /// A list of lists of strings.
         307  +
    /// /* FluentBuilderGenerator.kt:498 */A list of lists of strings.
         308  +
    /* FluentBuilderGenerator.kt:500 */
  254    309   
    pub fn set_nested_string_list(mut self, input: ::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>) -> Self {
  255    310   
        self.inner = self.inner.set_nested_string_list(input);
  256    311   
        self
  257    312   
    }
  258         -
    /// A list of lists of strings.
         313  +
    /// /* FluentBuilderGenerator.kt:518 */A list of lists of strings.
         314  +
    /* FluentBuilderGenerator.kt:520 */
  259    315   
    pub fn get_nested_string_list(&self) -> &::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>> {
  260    316   
        self.inner.get_nested_string_list()
  261    317   
    }
  262         -
    ///
         318  +
    /// /* FluentBuilderGenerator.kt:436 */
  263    319   
    /// Appends an item to `renamedListMembers`.
  264    320   
    ///
  265    321   
    /// To override the contents of this collection use [`set_renamed_list_members`](Self::set_renamed_list_members).
  266    322   
    ///
         323  +
    /* FluentBuilderGenerator.kt:443 */
  267    324   
    #[allow(missing_docs)] // documentation missing in model
         325  +
                           /* FluentBuilderGenerator.kt:446 */
  268    326   
    pub fn renamed_list_members(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  269    327   
        self.inner = self.inner.renamed_list_members(input.into());
  270    328   
        self
  271    329   
    }
         330  +
    /* FluentBuilderGenerator.kt:498 */
  272    331   
    #[allow(missing_docs)] // documentation missing in model
         332  +
                           /* FluentBuilderGenerator.kt:500 */
  273    333   
    pub fn set_renamed_list_members(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
  274    334   
        self.inner = self.inner.set_renamed_list_members(input);
  275    335   
        self
  276    336   
    }
         337  +
    /* FluentBuilderGenerator.kt:518 */
  277    338   
    #[allow(missing_docs)] // documentation missing in model
         339  +
                           /* FluentBuilderGenerator.kt:520 */
  278    340   
    pub fn get_renamed_list_members(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
  279    341   
        self.inner.get_renamed_list_members()
  280    342   
    }
  281         -
    ///
         343  +
    /// /* FluentBuilderGenerator.kt:436 */
  282    344   
    /// Appends an item to `flattenedList`.
  283    345   
    ///
  284    346   
    /// To override the contents of this collection use [`set_flattened_list`](Self::set_flattened_list).
  285    347   
    ///
         348  +
    /* FluentBuilderGenerator.kt:443 */
  286    349   
    #[allow(missing_docs)] // documentation missing in model
         350  +
                           /* FluentBuilderGenerator.kt:446 */
  287    351   
    pub fn flattened_list(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  288    352   
        self.inner = self.inner.flattened_list(input.into());
  289    353   
        self
  290    354   
    }
         355  +
    /* FluentBuilderGenerator.kt:498 */
  291    356   
    #[allow(missing_docs)] // documentation missing in model
         357  +
                           /* FluentBuilderGenerator.kt:500 */
  292    358   
    pub fn set_flattened_list(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
  293    359   
        self.inner = self.inner.set_flattened_list(input);
  294    360   
        self
  295    361   
    }
         362  +
    /* FluentBuilderGenerator.kt:518 */
  296    363   
    #[allow(missing_docs)] // documentation missing in model
         364  +
                           /* FluentBuilderGenerator.kt:520 */
  297    365   
    pub fn get_flattened_list(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
  298    366   
        self.inner.get_flattened_list()
  299    367   
    }
  300         -
    ///
         368  +
    /// /* FluentBuilderGenerator.kt:436 */
  301    369   
    /// Appends an item to `flattenedList2`.
  302    370   
    ///
  303    371   
    /// To override the contents of this collection use [`set_flattened_list2`](Self::set_flattened_list2).
  304    372   
    ///
         373  +
    /* FluentBuilderGenerator.kt:443 */
  305    374   
    #[allow(missing_docs)] // documentation missing in model
         375  +
                           /* FluentBuilderGenerator.kt:446 */
  306    376   
    pub fn flattened_list2(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  307    377   
        self.inner = self.inner.flattened_list2(input.into());
  308    378   
        self
  309    379   
    }
         380  +
    /* FluentBuilderGenerator.kt:498 */
  310    381   
    #[allow(missing_docs)] // documentation missing in model
         382  +
                           /* FluentBuilderGenerator.kt:500 */
  311    383   
    pub fn set_flattened_list2(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
  312    384   
        self.inner = self.inner.set_flattened_list2(input);
  313    385   
        self
  314    386   
    }
         387  +
    /* FluentBuilderGenerator.kt:518 */
  315    388   
    #[allow(missing_docs)] // documentation missing in model
         389  +
                           /* FluentBuilderGenerator.kt:520 */
  316    390   
    pub fn get_flattened_list2(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
  317    391   
        self.inner.get_flattened_list2()
  318    392   
    }
  319         -
    ///
         393  +
    /// /* FluentBuilderGenerator.kt:436 */
  320    394   
    /// Appends an item to `flattenedListWithMemberNamespace`.
  321    395   
    ///
  322    396   
    /// To override the contents of this collection use [`set_flattened_list_with_member_namespace`](Self::set_flattened_list_with_member_namespace).
  323    397   
    ///
         398  +
    /* FluentBuilderGenerator.kt:443 */
  324    399   
    #[allow(missing_docs)] // documentation missing in model
         400  +
                           /* FluentBuilderGenerator.kt:446 */
  325    401   
    pub fn flattened_list_with_member_namespace(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  326    402   
        self.inner = self.inner.flattened_list_with_member_namespace(input.into());
  327    403   
        self
  328    404   
    }
         405  +
    /* FluentBuilderGenerator.kt:498 */
  329    406   
    #[allow(missing_docs)] // documentation missing in model
         407  +
                           /* FluentBuilderGenerator.kt:500 */
  330    408   
    pub fn set_flattened_list_with_member_namespace(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
  331    409   
        self.inner = self.inner.set_flattened_list_with_member_namespace(input);
  332    410   
        self
  333    411   
    }
         412  +
    /* FluentBuilderGenerator.kt:518 */
  334    413   
    #[allow(missing_docs)] // documentation missing in model
         414  +
                           /* FluentBuilderGenerator.kt:520 */
  335    415   
    pub fn get_flattened_list_with_member_namespace(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
  336    416   
        self.inner.get_flattened_list_with_member_namespace()
  337    417   
    }
  338         -
    ///
         418  +
    /// /* FluentBuilderGenerator.kt:436 */
  339    419   
    /// Appends an item to `flattenedListWithNamespace`.
  340    420   
    ///
  341    421   
    /// To override the contents of this collection use [`set_flattened_list_with_namespace`](Self::set_flattened_list_with_namespace).
  342    422   
    ///
         423  +
    /* FluentBuilderGenerator.kt:443 */
  343    424   
    #[allow(missing_docs)] // documentation missing in model
         425  +
                           /* FluentBuilderGenerator.kt:446 */
  344    426   
    pub fn flattened_list_with_namespace(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  345    427   
        self.inner = self.inner.flattened_list_with_namespace(input.into());
  346    428   
        self
  347    429   
    }
         430  +
    /* FluentBuilderGenerator.kt:498 */
  348    431   
    #[allow(missing_docs)] // documentation missing in model
         432  +
                           /* FluentBuilderGenerator.kt:500 */
  349    433   
    pub fn set_flattened_list_with_namespace(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
  350    434   
        self.inner = self.inner.set_flattened_list_with_namespace(input);
  351    435   
        self
  352    436   
    }
         437  +
    /* FluentBuilderGenerator.kt:518 */
  353    438   
    #[allow(missing_docs)] // documentation missing in model
         439  +
                           /* FluentBuilderGenerator.kt:520 */
  354    440   
    pub fn get_flattened_list_with_namespace(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
  355    441   
        self.inner.get_flattened_list_with_namespace()
  356    442   
    }
  357         -
    ///
         443  +
    /// /* FluentBuilderGenerator.kt:436 */
  358    444   
    /// Appends an item to `structureList`.
  359    445   
    ///
  360    446   
    /// To override the contents of this collection use [`set_structure_list`](Self::set_structure_list).
  361    447   
    ///
         448  +
    /* FluentBuilderGenerator.kt:443 */
  362    449   
    #[allow(missing_docs)] // documentation missing in model
         450  +
                           /* FluentBuilderGenerator.kt:446 */
  363    451   
    pub fn structure_list(mut self, input: crate::types::StructureListMember) -> Self {
  364    452   
        self.inner = self.inner.structure_list(input);
  365    453   
        self
  366    454   
    }
         455  +
    /* FluentBuilderGenerator.kt:498 */
  367    456   
    #[allow(missing_docs)] // documentation missing in model
         457  +
                           /* FluentBuilderGenerator.kt:500 */
  368    458   
    pub fn set_structure_list(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::StructureListMember>>) -> Self {
  369    459   
        self.inner = self.inner.set_structure_list(input);
  370    460   
        self
  371    461   
    }
         462  +
    /* FluentBuilderGenerator.kt:518 */
  372    463   
    #[allow(missing_docs)] // documentation missing in model
         464  +
                           /* FluentBuilderGenerator.kt:520 */
  373    465   
    pub fn get_structure_list(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::StructureListMember>> {
  374    466   
        self.inner.get_structure_list()
  375    467   
    }
  376         -
    ///
         468  +
    /// /* FluentBuilderGenerator.kt:436 */
  377    469   
    /// Appends an item to `flattenedStructureList`.
  378    470   
    ///
  379    471   
    /// To override the contents of this collection use [`set_flattened_structure_list`](Self::set_flattened_structure_list).
  380    472   
    ///
         473  +
    /* FluentBuilderGenerator.kt:443 */
  381    474   
    #[allow(missing_docs)] // documentation missing in model
         475  +
                           /* FluentBuilderGenerator.kt:446 */
  382    476   
    pub fn flattened_structure_list(mut self, input: crate::types::StructureListMember) -> Self {
  383    477   
        self.inner = self.inner.flattened_structure_list(input);
  384    478   
        self
  385    479   
    }
         480  +
    /* FluentBuilderGenerator.kt:498 */
  386    481   
    #[allow(missing_docs)] // documentation missing in model
         482  +
                           /* FluentBuilderGenerator.kt:500 */
  387    483   
    pub fn set_flattened_structure_list(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::StructureListMember>>) -> Self {
  388    484   
        self.inner = self.inner.set_flattened_structure_list(input);
  389    485   
        self
  390    486   
    }
         487  +
    /* FluentBuilderGenerator.kt:518 */
  391    488   
    #[allow(missing_docs)] // documentation missing in model
         489  +
                           /* FluentBuilderGenerator.kt:520 */
  392    490   
    pub fn get_flattened_structure_list(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::StructureListMember>> {
  393    491   
        self.inner.get_flattened_structure_list()
  394    492   
    }
         493  +
    /* FluentBuilderGenerator.kt:282 */
  395    494   
}

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

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

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

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

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

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

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

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

tmp-codegen-diff/codegen-client-test/rest_xml/rust-client-codegen/src/operation/xml_empty_strings.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 `XmlEmptyStrings`.
           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 XmlEmptyStrings;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl XmlEmptyStrings {
    7         -
    /// Creates a new `XmlEmptyStrings`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `XmlEmptyStrings`
          13  +
    /* OperationGenerator.kt:87 */
    8     14   
    pub fn new() -> Self {
          15  +
        /* OperationGenerator.kt:88 */
    9     16   
        Self
          17  +
        /* OperationGenerator.kt:87 */
   10     18   
    }
          19  +
    /* OperationGenerator.kt:138 */
   11     20   
    pub(crate) async fn orchestrate(
   12     21   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     22   
        input: crate::operation::xml_empty_strings::XmlEmptyStringsInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::xml_empty_strings::XmlEmptyStringsOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::xml_empty_strings::XmlEmptyStringsError,
   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 XmlEmptyStrings {
   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("XmlEmptyStrings");
   91    102   
   92    103   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   93    104   
            XmlEmptyStringsRequestSerializer,
   94    105   
        ));
   95    106   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
   96    107   
            XmlEmptyStringsResponseDeserializer,
   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   
            "XmlEmptyStrings",
  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("XmlEmptyStrings")
  117    128   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  118    129   
            .with_interceptor(XmlEmptyStringsEndpointParamsInterceptor)
  119    130   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  120    131   
                crate::operation::xml_empty_strings::XmlEmptyStringsError,
  121    132   
            >::new())
  122    133   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  123    134   
                crate::operation::xml_empty_strings::XmlEmptyStringsError,
  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 XmlEmptyStringsResponseDeserializer;
  132    144   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for XmlEmptyStringsResponseDeserializer {
  133    145   
    fn deserialize_nonstreaming(
  134    146   
        &self,
  135    147   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
  136    148   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  137    149   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  138    150   
        let headers = response.headers();
  139    151   
        let body = response.body().bytes().expect("body loaded");
  140    152   
        #[allow(unused_mut)]
  141    153   
        let mut force_error = false;
  142    154   
  143    155   
        let parse_result = if !success && status != 200 || force_error {
  144    156   
            crate::protocol_serde::shape_xml_empty_strings::de_xml_empty_strings_http_error(status, headers, body)
  145    157   
        } else {
  146    158   
            crate::protocol_serde::shape_xml_empty_strings::de_xml_empty_strings_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 XmlEmptyStringsRequestSerializer;
  153    166   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for XmlEmptyStringsRequestSerializer {
  154    167   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  155    168   
    fn serialize_input(
  156    169   
        &self,
  157    170   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  158    171   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  159    172   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  160    173   
        let input = input
  161    174   
            .downcast::<crate::operation::xml_empty_strings::XmlEmptyStringsInput>()
  162    175   
            .expect("correct type");
  163    176   
        let _header_serialization_settings = _cfg
  164    177   
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  165    178   
            .cloned()
  166    179   
            .unwrap_or_default();
  167    180   
        let mut request_builder = {
  168    181   
            fn uri_base(
  169    182   
                _input: &crate::operation::xml_empty_strings::XmlEmptyStringsInput,
  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, "/XmlEmptyStrings").expect("formatting should succeed");
  174    187   
                ::std::result::Result::Ok(())
  175    188   
            }
  176    189   
            #[allow(clippy::unnecessary_wraps)]
  177    190   
            fn update_http_builder(
  178    191   
                input: &crate::operation::xml_empty_strings::XmlEmptyStringsInput,
  179    192   
                builder: ::http::request::Builder,
  180    193   
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  181    194   
                let mut uri = ::std::string::String::new();
  182    195   
                uri_base(input, &mut uri)?;
  183    196   
                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
  184    197   
            }
  185    198   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  186    199   
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/xml");
  187    200   
            builder
  188    201   
        };
  189    202   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_xml_empty_strings::ser_xml_empty_strings_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 XmlEmptyStringsEndpointParamsInterceptor;
  199    213   
  200    214   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for XmlEmptyStringsEndpointParamsInterceptor {
  201    215   
    fn name(&self) -> &'static str {
  202    216   
        "XmlEmptyStringsEndpointParamsInterceptor"
  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::<XmlEmptyStringsInput>()
  218    232   
            .ok_or("failed to downcast to XmlEmptyStringsInput")?;
  219    233   
  220    234   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  221    235   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  222    236   
        })?;
  223    237   
        cfg.interceptor_state()
  224    238   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  225    239   
        ::std::result::Result::Ok(())
  226    240   
    }
  227    241   
}
  228    242   
  229    243   
// The get_* functions below are generated from JMESPath expressions in the
  230    244   
// operationContextParams trait. They target the operation's input shape.
  231    245   
         246  +
/* RustType.kt:516 */
  232    247   
#[allow(unreachable_code, unused_variables)]
         248  +
/* RustType.kt:516 */
  233    249   
#[cfg(test)]
         250  +
/* ProtocolTestGenerator.kt:98 */
  234    251   
mod xml_empty_strings_test {
  235    252   
  236    253   
    /// Serializes xml empty strings
  237    254   
    /// Test ID: XmlEmptyStrings
  238    255   
    #[::tokio::test]
  239    256   
    #[::tracing_test::traced_test]
  240    257   
    async fn xml_empty_strings_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   
@@ -322,339 +451,527 @@
  342    359   
                )))
  343    360   
            });
  344    361   
            de.deserialize_nonstreaming(&http_response)
  345    362   
        });
  346    363   
        let parsed = parsed
  347    364   
            .expect("should be successful response")
  348    365   
            .downcast::<crate::operation::xml_empty_strings::XmlEmptyStringsOutput>()
  349    366   
            .unwrap();
  350    367   
        ::pretty_assertions::assert_eq!(parsed.empty_string, expected_output.empty_string, "Unexpected value for `empty_string`");
  351    368   
    }
         369  +
         370  +
    /* ProtocolTestGenerator.kt:98 */
  352    371   
}
  353    372   
         373  +
/* OperationErrorGenerator.kt:79 */
  354    374   
/// Error type for the `XmlEmptyStringsError` operation.
         375  +
/* RustType.kt:516 */
  355    376   
#[non_exhaustive]
         377  +
/* RustType.kt:516 */
  356    378   
#[derive(::std::fmt::Debug)]
  357         -
pub enum XmlEmptyStringsError {
         379  +
pub /* OperationErrorGenerator.kt:81 */ enum XmlEmptyStringsError {
         380  +
    /* OperationErrorGenerator.kt:88 */
  358    381   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  359    382   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  360    383   
    variable wildcard pattern and check `.code()`:
  361    384   
     \
  362    385   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  363    386   
     \
  364    387   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-XmlEmptyStringsError) for what information is available for the error.")]
  365    388   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         389  +
    /* OperationErrorGenerator.kt:81 */
  366    390   
}
         391  +
/* OperationErrorGenerator.kt:218 */
  367    392   
impl XmlEmptyStringsError {
         393  +
    /* OperationErrorGenerator.kt:219 */
  368    394   
    /// Creates the `XmlEmptyStringsError::Unhandled` variant from any error type.
  369    395   
    pub fn unhandled(
  370    396   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  371    397   
    ) -> Self {
  372    398   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  373    399   
            source: err.into(),
  374    400   
            meta: ::std::default::Default::default(),
  375    401   
        })
  376    402   
    }
  377    403   
  378    404   
    /// Creates the `XmlEmptyStringsError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  379    405   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  380    406   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  381    407   
            source: err.clone().into(),
  382    408   
            meta: err,
  383    409   
        })
  384    410   
    }
  385         -
    ///
         411  +
    /// /* OperationErrorGenerator.kt:236 */
  386    412   
    /// Returns error metadata, which includes the error code, message,
  387    413   
    /// request ID, and potentially additional information.
  388    414   
    ///
         415  +
    /* OperationErrorGenerator.kt:242 */
  389    416   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         417  +
        /* OperationErrorGenerator.kt:243 */
  390    418   
        match self {
  391         -
            Self::Unhandled(e) => &e.meta,
         419  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         420  +
            /* OperationErrorGenerator.kt:243 */
  392    421   
        }
         422  +
        /* OperationErrorGenerator.kt:242 */
  393    423   
    }
         424  +
    /* OperationErrorGenerator.kt:218 */
  394    425   
}
         426  +
/* OperationErrorGenerator.kt:269 */
  395    427   
impl ::std::error::Error for XmlEmptyStringsError {
         428  +
    /* OperationErrorGenerator.kt:270 */
  396    429   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         430  +
        /* OperationErrorGenerator.kt:318 */
  397    431   
        match self {
  398         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         432  +
            /* OperationErrorGenerator.kt:326 */
         433  +
            Self::Unhandled(_inner) => {
         434  +
                /* OperationErrorGenerator.kt:279 */
         435  +
                ::std::option::Option::Some(&*_inner.source)
         436  +
                /* OperationErrorGenerator.kt:326 */
         437  +
            } /* OperationErrorGenerator.kt:318 */
  399    438   
        }
         439  +
        /* OperationErrorGenerator.kt:270 */
  400    440   
    }
         441  +
    /* OperationErrorGenerator.kt:269 */
  401    442   
}
         443  +
/* OperationErrorGenerator.kt:133 */
  402    444   
impl ::std::fmt::Display for XmlEmptyStringsError {
         445  +
    /* OperationErrorGenerator.kt:134 */
  403    446   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         447  +
        /* OperationErrorGenerator.kt:318 */
  404    448   
        match self {
         449  +
            /* OperationErrorGenerator.kt:326 */
  405    450   
            Self::Unhandled(_inner) => {
         451  +
                /* OperationErrorGenerator.kt:139 */
  406    452   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  407    453   
                    write!(f, "unhandled error ({code})")
  408    454   
                } else {
  409    455   
                    f.write_str("unhandled error")
  410    456   
                }
  411         -
            }
         457  +
                /* OperationErrorGenerator.kt:326 */
         458  +
            } /* OperationErrorGenerator.kt:318 */
  412    459   
        }
         460  +
        /* OperationErrorGenerator.kt:134 */
  413    461   
    }
         462  +
    /* OperationErrorGenerator.kt:133 */
  414    463   
}
         464  +
/* OperationErrorGenerator.kt:182 */
  415    465   
impl ::aws_smithy_types::retry::ProvideErrorKind for XmlEmptyStringsError {
         466  +
    /* OperationErrorGenerator.kt:186 */
  416    467   
    fn code(&self) -> ::std::option::Option<&str> {
         468  +
        /* OperationErrorGenerator.kt:187 */
  417    469   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         470  +
        /* OperationErrorGenerator.kt:186 */
  418    471   
    }
         472  +
    /* OperationErrorGenerator.kt:190 */
  419    473   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         474  +
        /* OperationErrorGenerator.kt:197 */
  420    475   
        ::std::option::Option::None
         476  +
        /* OperationErrorGenerator.kt:190 */
  421    477   
    }
         478  +
    /* OperationErrorGenerator.kt:182 */
  422    479   
}
         480  +
/* OperationErrorGenerator.kt:163 */
  423    481   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for XmlEmptyStringsError {
         482  +
    /* OperationErrorGenerator.kt:164 */
  424    483   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         484  +
        /* OperationErrorGenerator.kt:318 */
  425    485   
        match self {
  426         -
            Self::Unhandled(_inner) => &_inner.meta,
         486  +
            /* OperationErrorGenerator.kt:326 */
         487  +
            Self::Unhandled(_inner) => {
         488  +
                /* OperationErrorGenerator.kt:168 */
         489  +
                &_inner.meta
         490  +
                /* OperationErrorGenerator.kt:326 */
         491  +
            } /* OperationErrorGenerator.kt:318 */
  427    492   
        }
         493  +
        /* OperationErrorGenerator.kt:164 */
  428    494   
    }
         495  +
    /* OperationErrorGenerator.kt:163 */
  429    496   
}
         497  +
/* OperationErrorGenerator.kt:109 */
  430    498   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for XmlEmptyStringsError {
         499  +
    /* OperationErrorGenerator.kt:110 */
  431    500   
    fn create_unhandled_error(
  432    501   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  433    502   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  434    503   
    ) -> Self {
         504  +
        /* OperationErrorGenerator.kt:121 */
  435    505   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  436    506   
            source,
  437    507   
            meta: meta.unwrap_or_default(),
  438    508   
        })
         509  +
        /* OperationErrorGenerator.kt:110 */
  439    510   
    }
         511  +
    /* OperationErrorGenerator.kt:109 */
  440    512   
}
  441    513   
         514  +
/* CodegenDelegator.kt:255 */
  442    515   
pub use crate::operation::xml_empty_strings::_xml_empty_strings_output::XmlEmptyStringsOutput;
  443    516   
         517  +
/* CodegenDelegator.kt:255 */
  444    518   
pub use crate::operation::xml_empty_strings::_xml_empty_strings_input::XmlEmptyStringsInput;
  445    519   
         520  +
/* RustModule.kt:172 */
  446    521   
mod _xml_empty_strings_input;
  447    522   
         523  +
/* RustModule.kt:172 */
  448    524   
mod _xml_empty_strings_output;
  449    525   
  450         -
/// Builders
         526  +
/// /* CodegenDelegator.kt:51 */Builders
  451    527   
pub mod builders;