Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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