Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/list_contributor_insights/_list_contributor_insights_input.rs

@@ -1,1 +98,163 @@
    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 ListContributorInsightsInput {
    6         -
    /// <p>The name of the table.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct ListContributorInsightsInput {
           9  +
    /// /* StructureGenerator.kt:231 */<p>The name of the table.</p>
    7     10   
    pub table_name: ::std::option::Option<::std::string::String>,
    8         -
    /// <p>A token to for the desired page, if there is one.</p>
          11  +
    /// /* StructureGenerator.kt:231 */<p>A token to for the desired page, if there is one.</p>
    9     12   
    pub next_token: ::std::option::Option<::std::string::String>,
   10         -
    /// <p>Maximum number of results to return per page.</p>
          13  +
    /// /* StructureGenerator.kt:231 */<p>Maximum number of results to return per page.</p>
   11     14   
    pub max_results: ::std::option::Option<i32>,
          15  +
    /* StructureGenerator.kt:201 */
   12     16   
}
          17  +
/* StructureGenerator.kt:135 */
   13     18   
impl ListContributorInsightsInput {
   14         -
    /// <p>The name of the table.</p>
          19  +
    /// /* StructureGenerator.kt:231 */<p>The name of the table.</p>
          20  +
    /* StructureGenerator.kt:166 */
   15     21   
    pub fn table_name(&self) -> ::std::option::Option<&str> {
          22  +
        /* StructureGenerator.kt:169 */
   16     23   
        self.table_name.as_deref()
          24  +
        /* StructureGenerator.kt:166 */
   17     25   
    }
   18         -
    /// <p>A token to for the desired page, if there is one.</p>
          26  +
    /// /* StructureGenerator.kt:231 */<p>A token to for the desired page, if there is one.</p>
          27  +
    /* StructureGenerator.kt:166 */
   19     28   
    pub fn next_token(&self) -> ::std::option::Option<&str> {
          29  +
        /* StructureGenerator.kt:169 */
   20     30   
        self.next_token.as_deref()
          31  +
        /* StructureGenerator.kt:166 */
   21     32   
    }
   22         -
    /// <p>Maximum number of results to return per page.</p>
          33  +
    /// /* StructureGenerator.kt:231 */<p>Maximum number of results to return per page.</p>
          34  +
    /* StructureGenerator.kt:166 */
   23     35   
    pub fn max_results(&self) -> ::std::option::Option<i32> {
          36  +
        /* StructureGenerator.kt:168 */
   24     37   
        self.max_results
          38  +
        /* StructureGenerator.kt:166 */
   25     39   
    }
          40  +
    /* StructureGenerator.kt:135 */
   26     41   
}
          42  +
/* ClientCodegenVisitor.kt:237 */
   27     43   
impl ListContributorInsightsInput {
   28         -
    /// Creates a new builder-style object to manufacture [`ListContributorInsightsInput`](crate::operation::list_contributor_insights::ListContributorInsightsInput).
          44  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ListContributorInsightsInput`](crate::operation::list_contributor_insights::ListContributorInsightsInput).
          45  +
    /* BuilderGenerator.kt:175 */
   29     46   
    pub fn builder() -> crate::operation::list_contributor_insights::builders::ListContributorInsightsInputBuilder {
          47  +
        /* BuilderGenerator.kt:176 */
   30     48   
        crate::operation::list_contributor_insights::builders::ListContributorInsightsInputBuilder::default()
          49  +
        /* BuilderGenerator.kt:175 */
   31     50   
    }
          51  +
    /* ClientCodegenVisitor.kt:237 */
   32     52   
}
   33     53   
   34         -
/// A builder for [`ListContributorInsightsInput`](crate::operation::list_contributor_insights::ListContributorInsightsInput).
          54  +
/// /* BuilderGenerator.kt:342 */A builder for [`ListContributorInsightsInput`](crate::operation::list_contributor_insights::ListContributorInsightsInput).
          55  +
/* RustType.kt:516 */
   35     56   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          57  +
/* RustType.kt:516 */
   36     58   
#[non_exhaustive]
          59  +
/* BuilderGenerator.kt:345 */
   37     60   
pub struct ListContributorInsightsInputBuilder {
   38         -
    pub(crate) table_name: ::std::option::Option<::std::string::String>,
   39         -
    pub(crate) next_token: ::std::option::Option<::std::string::String>,
   40         -
    pub(crate) max_results: ::std::option::Option<i32>,
          61  +
    /* BuilderGenerator.kt:275 */ pub(crate) table_name: ::std::option::Option<::std::string::String>,
          62  +
    /* BuilderGenerator.kt:275 */ pub(crate) next_token: ::std::option::Option<::std::string::String>,
          63  +
    /* BuilderGenerator.kt:275 */ pub(crate) max_results: ::std::option::Option<i32>,
          64  +
    /* BuilderGenerator.kt:345 */
   41     65   
}
          66  +
/* BuilderGenerator.kt:355 */
   42     67   
impl ListContributorInsightsInputBuilder {
   43         -
    /// <p>The name of the table.</p>
          68  +
    /// /* BuilderGenerator.kt:286 */<p>The name of the table.</p>
          69  +
    /* BuilderGenerator.kt:291 */
   44     70   
    pub fn table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          71  +
        /* BuilderGenerator.kt:292 */
   45     72   
        self.table_name = ::std::option::Option::Some(input.into());
          73  +
        /* BuilderGenerator.kt:293 */
   46     74   
        self
          75  +
        /* BuilderGenerator.kt:291 */
   47     76   
    }
   48         -
    /// <p>The name of the table.</p>
          77  +
    /// /* BuilderGenerator.kt:312 */<p>The name of the table.</p>
          78  +
    /* BuilderGenerator.kt:314 */
   49     79   
    pub fn set_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          80  +
        /* BuilderGenerator.kt:315 */
   50     81   
        self.table_name = input;
   51     82   
        self
          83  +
        /* BuilderGenerator.kt:314 */
   52     84   
    }
   53         -
    /// <p>The name of the table.</p>
          85  +
    /// /* BuilderGenerator.kt:334 */<p>The name of the table.</p>
          86  +
    /* BuilderGenerator.kt:336 */
   54     87   
    pub fn get_table_name(&self) -> &::std::option::Option<::std::string::String> {
          88  +
        /* BuilderGenerator.kt:337 */
   55     89   
        &self.table_name
          90  +
        /* BuilderGenerator.kt:336 */
   56     91   
    }
   57         -
    /// <p>A token to for the desired page, if there is one.</p>
          92  +
    /// /* BuilderGenerator.kt:286 */<p>A token to for the desired page, if there is one.</p>
          93  +
    /* BuilderGenerator.kt:291 */
   58     94   
    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          95  +
        /* BuilderGenerator.kt:292 */
   59     96   
        self.next_token = ::std::option::Option::Some(input.into());
          97  +
        /* BuilderGenerator.kt:293 */
   60     98   
        self
          99  +
        /* BuilderGenerator.kt:291 */
   61    100   
    }
   62         -
    /// <p>A token to for the desired page, if there is one.</p>
         101  +
    /// /* BuilderGenerator.kt:312 */<p>A token to for the desired page, if there is one.</p>
         102  +
    /* BuilderGenerator.kt:314 */
   63    103   
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         104  +
        /* BuilderGenerator.kt:315 */
   64    105   
        self.next_token = input;
   65    106   
        self
         107  +
        /* BuilderGenerator.kt:314 */
   66    108   
    }
   67         -
    /// <p>A token to for the desired page, if there is one.</p>
         109  +
    /// /* BuilderGenerator.kt:334 */<p>A token to for the desired page, if there is one.</p>
         110  +
    /* BuilderGenerator.kt:336 */
   68    111   
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
         112  +
        /* BuilderGenerator.kt:337 */
   69    113   
        &self.next_token
         114  +
        /* BuilderGenerator.kt:336 */
   70    115   
    }
   71         -
    /// <p>Maximum number of results to return per page.</p>
         116  +
    /// /* BuilderGenerator.kt:286 */<p>Maximum number of results to return per page.</p>
         117  +
    /* BuilderGenerator.kt:291 */
   72    118   
    pub fn max_results(mut self, input: i32) -> Self {
         119  +
        /* BuilderGenerator.kt:292 */
   73    120   
        self.max_results = ::std::option::Option::Some(input);
         121  +
        /* BuilderGenerator.kt:293 */
   74    122   
        self
         123  +
        /* BuilderGenerator.kt:291 */
   75    124   
    }
   76         -
    /// <p>Maximum number of results to return per page.</p>
         125  +
    /// /* BuilderGenerator.kt:312 */<p>Maximum number of results to return per page.</p>
         126  +
    /* BuilderGenerator.kt:314 */
   77    127   
    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
         128  +
        /* BuilderGenerator.kt:315 */
   78    129   
        self.max_results = input;
   79    130   
        self
         131  +
        /* BuilderGenerator.kt:314 */
   80    132   
    }
   81         -
    /// <p>Maximum number of results to return per page.</p>
         133  +
    /// /* BuilderGenerator.kt:334 */<p>Maximum number of results to return per page.</p>
         134  +
    /* BuilderGenerator.kt:336 */
   82    135   
    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
         136  +
        /* BuilderGenerator.kt:337 */
   83    137   
        &self.max_results
         138  +
        /* BuilderGenerator.kt:336 */
   84    139   
    }
   85         -
    /// Consumes the builder and constructs a [`ListContributorInsightsInput`](crate::operation::list_contributor_insights::ListContributorInsightsInput).
         140  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ListContributorInsightsInput`](crate::operation::list_contributor_insights::ListContributorInsightsInput).
         141  +
    /* BuilderGenerator.kt:253 */
   86    142   
    pub fn build(
   87    143   
        self,
   88    144   
    ) -> ::std::result::Result<
   89    145   
        crate::operation::list_contributor_insights::ListContributorInsightsInput,
   90    146   
        ::aws_smithy_types::error::operation::BuildError,
   91    147   
    > {
   92         -
        ::std::result::Result::Ok(crate::operation::list_contributor_insights::ListContributorInsightsInput {
   93         -
            table_name: self.table_name,
         148  +
        /* BuilderGenerator.kt:254 */
         149  +
        ::std::result::Result::Ok(
         150  +
            /* BuilderGenerator.kt:477 */
         151  +
            crate::operation::list_contributor_insights::ListContributorInsightsInput {
         152  +
                /* BuilderGenerator.kt:481 */ table_name: self.table_name,
         153  +
                /* BuilderGenerator.kt:481 */
   94    154   
                next_token: self.next_token,
         155  +
                /* BuilderGenerator.kt:481 */
   95    156   
                max_results: self.max_results,
   96         -
        })
         157  +
                /* BuilderGenerator.kt:477 */
         158  +
            }, /* BuilderGenerator.kt:254 */
         159  +
        )
         160  +
        /* BuilderGenerator.kt:253 */
   97    161   
    }
         162  +
    /* BuilderGenerator.kt:355 */
   98    163   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/list_contributor_insights/_list_contributor_insights_output.rs

@@ -1,1 +82,136 @@
    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 ListContributorInsightsOutput {
    6         -
    /// <p>A list of ContributorInsightsSummary.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct ListContributorInsightsOutput {
           9  +
    /// /* StructureGenerator.kt:231 */<p>A list of ContributorInsightsSummary.</p>
    7     10   
    pub contributor_insights_summaries: ::std::option::Option<::std::vec::Vec<crate::types::ContributorInsightsSummary>>,
    8         -
    /// <p>A token to go to the next page if there is one.</p>
          11  +
    /// /* StructureGenerator.kt:231 */<p>A token to go to the next page if there is one.</p>
    9     12   
    pub next_token: ::std::option::Option<::std::string::String>,
          13  +
    /* StructureGenerator.kt:201 */
   10     14   
}
          15  +
/* StructureGenerator.kt:135 */
   11     16   
impl ListContributorInsightsOutput {
   12         -
    /// <p>A list of ContributorInsightsSummary.</p>
   13         -
    ///
   14         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.contributor_insights_summaries.is_none()`.
          17  +
    /// /* StructureGenerator.kt:231 */<p>A list of ContributorInsightsSummary.</p>
          18  +
    /// /* StructureGenerator.kt:162 */
          19  +
    /// /* 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 `.contributor_insights_summaries.is_none()`.
          20  +
    /* StructureGenerator.kt:166 */
   15     21   
    pub fn contributor_insights_summaries(&self) -> &[crate::types::ContributorInsightsSummary] {
   16         -
        self.contributor_insights_summaries.as_deref().unwrap_or_default()
          22  +
        /* StructureGenerator.kt:169 */
          23  +
        self.contributor_insights_summaries
          24  +
            .as_deref()
          25  +
            /* StructureGenerator.kt:175 */
          26  +
            .unwrap_or_default()
          27  +
        /* StructureGenerator.kt:166 */
   17     28   
    }
   18         -
    /// <p>A token to go to the next page if there is one.</p>
          29  +
    /// /* StructureGenerator.kt:231 */<p>A token to go to the next page if there is one.</p>
          30  +
    /* StructureGenerator.kt:166 */
   19     31   
    pub fn next_token(&self) -> ::std::option::Option<&str> {
          32  +
        /* StructureGenerator.kt:169 */
   20     33   
        self.next_token.as_deref()
          34  +
        /* StructureGenerator.kt:166 */
   21     35   
    }
          36  +
    /* StructureGenerator.kt:135 */
   22     37   
}
          38  +
/* ClientCodegenVisitor.kt:237 */
   23     39   
impl ListContributorInsightsOutput {
   24         -
    /// Creates a new builder-style object to manufacture [`ListContributorInsightsOutput`](crate::operation::list_contributor_insights::ListContributorInsightsOutput).
          40  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ListContributorInsightsOutput`](crate::operation::list_contributor_insights::ListContributorInsightsOutput).
          41  +
    /* BuilderGenerator.kt:175 */
   25     42   
    pub fn builder() -> crate::operation::list_contributor_insights::builders::ListContributorInsightsOutputBuilder {
          43  +
        /* BuilderGenerator.kt:176 */
   26     44   
        crate::operation::list_contributor_insights::builders::ListContributorInsightsOutputBuilder::default()
          45  +
        /* BuilderGenerator.kt:175 */
   27     46   
    }
          47  +
    /* ClientCodegenVisitor.kt:237 */
   28     48   
}
   29     49   
   30         -
/// A builder for [`ListContributorInsightsOutput`](crate::operation::list_contributor_insights::ListContributorInsightsOutput).
          50  +
/// /* BuilderGenerator.kt:342 */A builder for [`ListContributorInsightsOutput`](crate::operation::list_contributor_insights::ListContributorInsightsOutput).
          51  +
/* RustType.kt:516 */
   31     52   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          53  +
/* RustType.kt:516 */
   32     54   
#[non_exhaustive]
          55  +
/* BuilderGenerator.kt:345 */
   33     56   
pub struct ListContributorInsightsOutputBuilder {
          57  +
    /* BuilderGenerator.kt:275 */
   34     58   
    pub(crate) contributor_insights_summaries: ::std::option::Option<::std::vec::Vec<crate::types::ContributorInsightsSummary>>,
   35         -
    pub(crate) next_token: ::std::option::Option<::std::string::String>,
          59  +
    /* BuilderGenerator.kt:275 */ pub(crate) next_token: ::std::option::Option<::std::string::String>,
          60  +
    /* BuilderGenerator.kt:345 */
   36     61   
}
          62  +
/* BuilderGenerator.kt:355 */
   37     63   
impl ListContributorInsightsOutputBuilder {
   38         -
    /// Appends an item to `contributor_insights_summaries`.
          64  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `contributor_insights_summaries`.
          65  +
    /* BuilderGenerator.kt:411 */
   39     66   
    ///
   40         -
    /// To override the contents of this collection use [`set_contributor_insights_summaries`](Self::set_contributor_insights_summaries).
          67  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_contributor_insights_summaries`](Self::set_contributor_insights_summaries).
          68  +
    /* BuilderGenerator.kt:413 */
   41     69   
    ///
   42         -
    /// <p>A list of ContributorInsightsSummary.</p>
          70  +
    /// /* BuilderGenerator.kt:414 */<p>A list of ContributorInsightsSummary.</p>
          71  +
    /* BuilderGenerator.kt:418 */
   43     72   
    pub fn contributor_insights_summaries(mut self, input: crate::types::ContributorInsightsSummary) -> Self {
          73  +
        /* BuilderGenerator.kt:419 */
   44     74   
        let mut v = self.contributor_insights_summaries.unwrap_or_default();
   45     75   
        v.push(input);
   46     76   
        self.contributor_insights_summaries = ::std::option::Option::Some(v);
   47     77   
        self
          78  +
        /* BuilderGenerator.kt:418 */
   48     79   
    }
   49         -
    /// <p>A list of ContributorInsightsSummary.</p>
          80  +
    /// /* BuilderGenerator.kt:312 */<p>A list of ContributorInsightsSummary.</p>
          81  +
    /* BuilderGenerator.kt:314 */
   50     82   
    pub fn set_contributor_insights_summaries(
   51     83   
        mut self,
   52     84   
        input: ::std::option::Option<::std::vec::Vec<crate::types::ContributorInsightsSummary>>,
   53     85   
    ) -> Self {
          86  +
        /* BuilderGenerator.kt:315 */
   54     87   
        self.contributor_insights_summaries = input;
   55     88   
        self
          89  +
        /* BuilderGenerator.kt:314 */
   56     90   
    }
   57         -
    /// <p>A list of ContributorInsightsSummary.</p>
          91  +
    /// /* BuilderGenerator.kt:334 */<p>A list of ContributorInsightsSummary.</p>
          92  +
    /* BuilderGenerator.kt:336 */
   58     93   
    pub fn get_contributor_insights_summaries(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ContributorInsightsSummary>> {
          94  +
        /* BuilderGenerator.kt:337 */
   59     95   
        &self.contributor_insights_summaries
          96  +
        /* BuilderGenerator.kt:336 */
   60     97   
    }
   61         -
    /// <p>A token to go to the next page if there is one.</p>
          98  +
    /// /* BuilderGenerator.kt:286 */<p>A token to go to the next page if there is one.</p>
          99  +
    /* BuilderGenerator.kt:291 */
   62    100   
    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         101  +
        /* BuilderGenerator.kt:292 */
   63    102   
        self.next_token = ::std::option::Option::Some(input.into());
         103  +
        /* BuilderGenerator.kt:293 */
   64    104   
        self
         105  +
        /* BuilderGenerator.kt:291 */
   65    106   
    }
   66         -
    /// <p>A token to go to the next page if there is one.</p>
         107  +
    /// /* BuilderGenerator.kt:312 */<p>A token to go to the next page if there is one.</p>
         108  +
    /* BuilderGenerator.kt:314 */
   67    109   
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         110  +
        /* BuilderGenerator.kt:315 */
   68    111   
        self.next_token = input;
   69    112   
        self
         113  +
        /* BuilderGenerator.kt:314 */
   70    114   
    }
   71         -
    /// <p>A token to go to the next page if there is one.</p>
         115  +
    /// /* BuilderGenerator.kt:334 */<p>A token to go to the next page if there is one.</p>
         116  +
    /* BuilderGenerator.kt:336 */
   72    117   
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
         118  +
        /* BuilderGenerator.kt:337 */
   73    119   
        &self.next_token
         120  +
        /* BuilderGenerator.kt:336 */
   74    121   
    }
   75         -
    /// Consumes the builder and constructs a [`ListContributorInsightsOutput`](crate::operation::list_contributor_insights::ListContributorInsightsOutput).
         122  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ListContributorInsightsOutput`](crate::operation::list_contributor_insights::ListContributorInsightsOutput).
         123  +
    /* BuilderGenerator.kt:253 */
   76    124   
    pub fn build(self) -> crate::operation::list_contributor_insights::ListContributorInsightsOutput {
         125  +
        /* BuilderGenerator.kt:477 */
   77    126   
        crate::operation::list_contributor_insights::ListContributorInsightsOutput {
         127  +
            /* BuilderGenerator.kt:481 */
   78    128   
            contributor_insights_summaries: self.contributor_insights_summaries,
         129  +
            /* BuilderGenerator.kt:481 */
   79    130   
            next_token: self.next_token,
         131  +
            /* BuilderGenerator.kt:477 */
   80    132   
        }
         133  +
        /* BuilderGenerator.kt:253 */
   81    134   
    }
         135  +
    /* BuilderGenerator.kt:355 */
   82    136   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/list_contributor_insights/builders.rs

@@ -1,1 +159,181 @@
    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::list_contributor_insights::_list_contributor_insights_output::ListContributorInsightsOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::list_contributor_insights::_list_contributor_insights_input::ListContributorInsightsInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::list_contributor_insights::builders::ListContributorInsightsInputBuilder {
    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::list_contributor_insights::ListContributorInsightsOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::list_contributor_insights::ListContributorInsightsError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.list_contributor_insights();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `ListContributorInsights`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `ListContributorInsights`.
   24     27   
///
   25         -
/// <p>Returns a list of ContributorInsightsSummary for a table and all its global secondary indexes.</p>
          28  +
/// /* FluentBuilderGenerator.kt:130 */<p>Returns a list of ContributorInsightsSummary for a table and all its global secondary indexes.</p>
          29  +
/* RustType.kt:516 */
   26     30   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          31  +
/* FluentBuilderGenerator.kt:270 */
   27     32   
pub struct ListContributorInsightsFluentBuilder {
   28     33   
    handle: ::std::sync::Arc<crate::client::Handle>,
   29     34   
    inner: crate::operation::list_contributor_insights::builders::ListContributorInsightsInputBuilder,
   30     35   
    config_override: ::std::option::Option<crate::config::Builder>,
   31     36   
}
          37  +
/* FluentBuilderGenerator.kt:381 */
   32     38   
impl
   33     39   
    crate::client::customize::internal::CustomizableSend<
   34     40   
        crate::operation::list_contributor_insights::ListContributorInsightsOutput,
   35     41   
        crate::operation::list_contributor_insights::ListContributorInsightsError,
   36     42   
    > for ListContributorInsightsFluentBuilder
   37     43   
{
   38     44   
    fn send(
   39     45   
        self,
   40     46   
        config_override: crate::config::Builder,
   41     47   
    ) -> crate::client::customize::internal::BoxFuture<
   42     48   
        crate::client::customize::internal::SendResult<
   43     49   
            crate::operation::list_contributor_insights::ListContributorInsightsOutput,
   44     50   
            crate::operation::list_contributor_insights::ListContributorInsightsError,
   45     51   
        >,
   46     52   
    > {
   47     53   
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
   48     54   
    }
   49     55   
}
          56  +
/* FluentBuilderGenerator.kt:282 */
   50     57   
impl ListContributorInsightsFluentBuilder {
          58  +
    /* FluentBuilderGenerator.kt:288 */
   51     59   
    /// Creates a new `ListContributorInsightsFluentBuilder`.
   52     60   
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
   53     61   
        Self {
   54     62   
            handle,
   55     63   
            inner: ::std::default::Default::default(),
   56     64   
            config_override: ::std::option::Option::None,
   57     65   
        }
   58     66   
    }
          67  +
    /* FluentBuilderGenerator.kt:301 */
   59     68   
    /// Access the ListContributorInsights as a reference.
   60     69   
    pub fn as_input(&self) -> &crate::operation::list_contributor_insights::builders::ListContributorInsightsInputBuilder {
   61     70   
        &self.inner
   62     71   
    }
          72  +
    /* FluentBuilderGenerator.kt:145 */
   63     73   
    /// Sends the request and returns the response.
   64     74   
    ///
   65     75   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   66     76   
    /// can be matched against.
   67     77   
    ///
   68     78   
    /// By default, any retryable failures will be retried twice. Retry behavior
   69     79   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   70     80   
    /// set when configuring the client.
   71     81   
    pub async fn send(
   72     82   
        self,
   73     83   
    ) -> ::std::result::Result<
   74     84   
        crate::operation::list_contributor_insights::ListContributorInsightsOutput,
   75     85   
        ::aws_smithy_runtime_api::client::result::SdkError<
   76     86   
            crate::operation::list_contributor_insights::ListContributorInsightsError,
   77     87   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   78     88   
        >,
   79     89   
    > {
   80     90   
        let input = self
   81     91   
            .inner
   82     92   
            .build()
   83     93   
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
   84     94   
        let runtime_plugins = crate::operation::list_contributor_insights::ListContributorInsights::operation_runtime_plugins(
   85     95   
            self.handle.runtime_plugins.clone(),
   86     96   
            &self.handle.conf,
   87     97   
            self.config_override,
   88     98   
        );
   89     99   
        crate::operation::list_contributor_insights::ListContributorInsights::orchestrate(&runtime_plugins, input).await
   90    100   
    }
   91    101   
   92    102   
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
   93    103   
    pub fn customize(
   94    104   
        self,
   95    105   
    ) -> crate::client::customize::CustomizableOperation<
   96    106   
        crate::operation::list_contributor_insights::ListContributorInsightsOutput,
   97    107   
        crate::operation::list_contributor_insights::ListContributorInsightsError,
   98    108   
        Self,
   99    109   
    > {
  100    110   
        crate::client::customize::CustomizableOperation::new(self)
  101    111   
    }
         112  +
    /* FluentBuilderGenerator.kt:315 */
  102    113   
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
  103    114   
        self.set_config_override(::std::option::Option::Some(config_override.into()));
  104    115   
        self
  105    116   
    }
  106    117   
  107    118   
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
  108    119   
        self.config_override = config_override;
  109    120   
        self
  110    121   
    }
         122  +
    /* FluentBuilderGenerator.kt:340 */
  111    123   
    /// Create a paginator for this request
  112    124   
    ///
  113    125   
    /// Paginators are used by calling [`send().await`](crate::operation::list_contributor_insights::paginator::ListContributorInsightsPaginator::send) which returns a [`PaginationStream`](aws_smithy_async::future::pagination_stream::PaginationStream).
  114    126   
    pub fn into_paginator(self) -> crate::operation::list_contributor_insights::paginator::ListContributorInsightsPaginator {
  115    127   
        crate::operation::list_contributor_insights::paginator::ListContributorInsightsPaginator::new(self.handle, self.inner)
  116    128   
    }
  117         -
    /// <p>The name of the table.</p>
         129  +
    /// /* FluentBuilderGenerator.kt:498 */<p>The name of the table.</p>
         130  +
    /* FluentBuilderGenerator.kt:500 */
  118    131   
    pub fn table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  119    132   
        self.inner = self.inner.table_name(input.into());
  120    133   
        self
  121    134   
    }
  122         -
    /// <p>The name of the table.</p>
         135  +
    /// /* FluentBuilderGenerator.kt:498 */<p>The name of the table.</p>
         136  +
    /* FluentBuilderGenerator.kt:500 */
  123    137   
    pub fn set_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  124    138   
        self.inner = self.inner.set_table_name(input);
  125    139   
        self
  126    140   
    }
  127         -
    /// <p>The name of the table.</p>
         141  +
    /// /* FluentBuilderGenerator.kt:518 */<p>The name of the table.</p>
         142  +
    /* FluentBuilderGenerator.kt:520 */
  128    143   
    pub fn get_table_name(&self) -> &::std::option::Option<::std::string::String> {
  129    144   
        self.inner.get_table_name()
  130    145   
    }
  131         -
    /// <p>A token to for the desired page, if there is one.</p>
         146  +
    /// /* FluentBuilderGenerator.kt:498 */<p>A token to for the desired page, if there is one.</p>
         147  +
    /* FluentBuilderGenerator.kt:500 */
  132    148   
    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  133    149   
        self.inner = self.inner.next_token(input.into());
  134    150   
        self
  135    151   
    }
  136         -
    /// <p>A token to for the desired page, if there is one.</p>
         152  +
    /// /* FluentBuilderGenerator.kt:498 */<p>A token to for the desired page, if there is one.</p>
         153  +
    /* FluentBuilderGenerator.kt:500 */
  137    154   
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  138    155   
        self.inner = self.inner.set_next_token(input);
  139    156   
        self
  140    157   
    }
  141         -
    /// <p>A token to for the desired page, if there is one.</p>
         158  +
    /// /* FluentBuilderGenerator.kt:518 */<p>A token to for the desired page, if there is one.</p>
         159  +
    /* FluentBuilderGenerator.kt:520 */
  142    160   
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
  143    161   
        self.inner.get_next_token()
  144    162   
    }
  145         -
    /// <p>Maximum number of results to return per page.</p>
         163  +
    /// /* FluentBuilderGenerator.kt:498 */<p>Maximum number of results to return per page.</p>
         164  +
    /* FluentBuilderGenerator.kt:500 */
  146    165   
    pub fn max_results(mut self, input: i32) -> Self {
  147    166   
        self.inner = self.inner.max_results(input);
  148    167   
        self
  149    168   
    }
  150         -
    /// <p>Maximum number of results to return per page.</p>
         169  +
    /// /* FluentBuilderGenerator.kt:498 */<p>Maximum number of results to return per page.</p>
         170  +
    /* FluentBuilderGenerator.kt:500 */
  151    171   
    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
  152    172   
        self.inner = self.inner.set_max_results(input);
  153    173   
        self
  154    174   
    }
  155         -
    /// <p>Maximum number of results to return per page.</p>
         175  +
    /// /* FluentBuilderGenerator.kt:518 */<p>Maximum number of results to return per page.</p>
         176  +
    /* FluentBuilderGenerator.kt:520 */
  156    177   
    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
  157    178   
        self.inner.get_max_results()
  158    179   
    }
         180  +
    /* FluentBuilderGenerator.kt:282 */
  159    181   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/list_contributor_insights/paginator.rs

@@ -1,1 +31,32 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* PaginatorGenerator.kt:121 */
    2      3   
/// Paginator for [`ListContributorInsights`](crate::operation::list_contributor_insights::ListContributorInsights)
    3      4   
pub struct ListContributorInsightsPaginator {
    4      5   
    handle: std::sync::Arc<crate::client::Handle>,
    5      6   
    builder: crate::operation::list_contributor_insights::builders::ListContributorInsightsInputBuilder,
    6      7   
    stop_on_duplicate_token: bool,
    7      8   
}
    8      9   
    9     10   
impl ListContributorInsightsPaginator {
   10     11   
    /// Create a new paginator-wrapper
   11     12   
    pub(crate) fn new(

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/list_exports.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 `ListExports`.
           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 ListExports;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl ListExports {
    7         -
    /// Creates a new `ListExports`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `ListExports`
          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::list_exports::ListExportsInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::list_exports::ListExportsOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::list_exports::ListExportsError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -57,66 +357,476 @@
   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 ListExports {
   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("ListExports");
   91    102   
   92    103   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   93    104   
            ListExportsRequestSerializer,
   94    105   
        ));
   95    106   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
   96    107   
            ListExportsResponseDeserializer,
   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("ListExports", "DynamoDB"));
  104    115   
  105    116   
        ::std::option::Option::Some(cfg.freeze())
  106    117   
    }
  107    118   
  108    119   
    fn runtime_components(
  109    120   
        &self,
  110    121   
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
  111    122   
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
  112    123   
        #[allow(unused_mut)]
  113    124   
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("ListExports")
  114    125   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  115    126   
            .with_interceptor(ListExportsEndpointParamsInterceptor)
  116    127   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  117    128   
                crate::operation::list_exports::ListExportsError,
  118    129   
            >::new())
  119    130   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  120    131   
                crate::operation::list_exports::ListExportsError,
  121    132   
            >::new());
  122    133   
  123    134   
        ::std::borrow::Cow::Owned(rcb)
  124    135   
    }
  125    136   
}
  126    137   
         138  +
/* ResponseDeserializerGenerator.kt:64 */
  127    139   
#[derive(Debug)]
  128    140   
struct ListExportsResponseDeserializer;
  129    141   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ListExportsResponseDeserializer {
  130    142   
    fn deserialize_nonstreaming(
  131    143   
        &self,
  132    144   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
  133    145   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  134    146   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  135    147   
        let headers = response.headers();
  136    148   
        let body = response.body().bytes().expect("body loaded");
  137    149   
        #[allow(unused_mut)]
  138    150   
        let mut force_error = false;
  139    151   
  140    152   
        let parse_result = if !success && status != 200 || force_error {
  141    153   
            crate::protocol_serde::shape_list_exports::de_list_exports_http_error(status, headers, body)
  142    154   
        } else {
  143    155   
            crate::protocol_serde::shape_list_exports::de_list_exports_http_response(status, headers, body)
  144    156   
        };
  145    157   
        crate::protocol_serde::type_erase_result(parse_result)
  146    158   
    }
  147    159   
}
         160  +
/* RequestSerializerGenerator.kt:67 */
  148    161   
#[derive(Debug)]
  149    162   
struct ListExportsRequestSerializer;
  150    163   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ListExportsRequestSerializer {
  151    164   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  152    165   
    fn serialize_input(
  153    166   
        &self,
  154    167   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  155    168   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  156    169   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  157    170   
        let input = input
  158    171   
            .downcast::<crate::operation::list_exports::ListExportsInput>()
  159    172   
            .expect("correct type");
  160    173   
        let _header_serialization_settings = _cfg
  161    174   
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  162    175   
            .cloned()
  163    176   
            .unwrap_or_default();
  164    177   
        let mut request_builder = {
  165    178   
            fn uri_base(
  166    179   
                _input: &crate::operation::list_exports::ListExportsInput,
  167    180   
                output: &mut ::std::string::String,
  168    181   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  169    182   
                use ::std::fmt::Write as _;
  170    183   
                ::std::write!(output, "/").expect("formatting should succeed");
  171    184   
                ::std::result::Result::Ok(())
  172    185   
            }
  173    186   
            #[allow(clippy::unnecessary_wraps)]
  174    187   
            fn update_http_builder(
  175    188   
                input: &crate::operation::list_exports::ListExportsInput,
  176    189   
                builder: ::http::request::Builder,
  177    190   
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  178    191   
                let mut uri = ::std::string::String::new();
  179    192   
                uri_base(input, &mut uri)?;
  180    193   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  181    194   
            }
  182    195   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  183    196   
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-amz-json-1.0");
  184    197   
            builder = _header_serialization_settings.set_default_header(
  185    198   
                builder,
  186    199   
                ::http::header::HeaderName::from_static("x-amz-target"),
  187    200   
                "DynamoDB_20120810.ListExports",
  188    201   
            );
  189    202   
            builder
  190    203   
        };
  191    204   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_list_exports::ser_list_exports_input(&input)?);
  192    205   
        if let Some(content_length) = body.content_length() {
  193    206   
            let content_length = content_length.to_string();
  194    207   
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
  195    208   
        }
  196    209   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  197    210   
    }
  198    211   
}
         212  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  199    213   
#[derive(Debug)]
  200    214   
struct ListExportsEndpointParamsInterceptor;
  201    215   
  202    216   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListExportsEndpointParamsInterceptor {
  203    217   
    fn name(&self) -> &'static str {
  204    218   
        "ListExportsEndpointParamsInterceptor"
  205    219   
    }
  206    220   
  207    221   
    fn read_before_execution(
  208    222   
        &self,
  209    223   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  210    224   
            '_,
  211    225   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  212    226   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  213    227   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  214    228   
        >,
  215    229   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  216    230   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  217    231   
        let _input = context
  218    232   
            .input()
  219    233   
            .downcast_ref::<ListExportsInput>()
  220    234   
            .ok_or("failed to downcast to ListExportsInput")?;
  221    235   
  222    236   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  223    237   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  224    238   
        })?;
  225    239   
        cfg.interceptor_state()
  226    240   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  227    241   
        ::std::result::Result::Ok(())
  228    242   
    }
  229    243   
}
  230    244   
  231    245   
// The get_* functions below are generated from JMESPath expressions in the
  232    246   
// operationContextParams trait. They target the operation's input shape.
  233    247   
         248  +
/* OperationErrorGenerator.kt:79 */
  234    249   
/// Error type for the `ListExportsError` operation.
         250  +
/* RustType.kt:516 */
  235    251   
#[non_exhaustive]
         252  +
/* RustType.kt:516 */
  236    253   
#[derive(::std::fmt::Debug)]
  237         -
pub enum ListExportsError {
  238         -
    /// <p>An error occurred on the server side.</p>
         254  +
pub /* OperationErrorGenerator.kt:81 */ enum ListExportsError {
         255  +
    /// /* OperationErrorGenerator.kt:83 */<p>An error occurred on the server side.</p>
         256  +
    /* OperationErrorGenerator.kt:86 */
  239    257   
    InternalServerError(crate::types::error::InternalServerError),
  240         -
    /// <p>There is no limit to the number of daily on-demand backups that can be taken.</p>
         258  +
    /// /* OperationErrorGenerator.kt:83 */<p>There is no limit to the number of daily on-demand backups that can be taken.</p>
  241    259   
    /// <p>Up to 50 simultaneous table operations are allowed per account. These operations include <code>CreateTable</code>, <code>UpdateTable</code>, <code>DeleteTable</code>,<code>UpdateTimeToLive</code>, <code>RestoreTableFromBackup</code>, and <code>RestoreTableToPointInTime</code>.</p>
  242    260   
    /// <p>The only exception is when you are creating a table with one or more secondary indexes. You can have up to 25 such requests running at a time; however, if the table or index specifications are complex, DynamoDB might temporarily reduce the number of concurrent operations.</p>
  243    261   
    /// <p>There is a soft account quota of 256 tables.</p>
         262  +
    /* OperationErrorGenerator.kt:86 */
  244    263   
    LimitExceededError(crate::types::error::LimitExceededError),
         264  +
    /* OperationErrorGenerator.kt:88 */
  245    265   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  246    266   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  247    267   
    variable wildcard pattern and check `.code()`:
  248    268   
     \
  249    269   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  250    270   
     \
  251    271   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-ListExportsError) for what information is available for the error.")]
  252    272   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         273  +
    /* OperationErrorGenerator.kt:81 */
  253    274   
}
         275  +
/* OperationErrorGenerator.kt:218 */
  254    276   
impl ListExportsError {
         277  +
    /* OperationErrorGenerator.kt:219 */
  255    278   
    /// Creates the `ListExportsError::Unhandled` variant from any error type.
  256    279   
    pub fn unhandled(
  257    280   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  258    281   
    ) -> Self {
  259    282   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  260    283   
            source: err.into(),
  261    284   
            meta: ::std::default::Default::default(),
  262    285   
        })
  263    286   
    }
  264    287   
  265    288   
    /// Creates the `ListExportsError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  266    289   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  267    290   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  268    291   
            source: err.clone().into(),
  269    292   
            meta: err,
  270    293   
        })
  271    294   
    }
  272         -
    ///
         295  +
    /// /* OperationErrorGenerator.kt:236 */
  273    296   
    /// Returns error metadata, which includes the error code, message,
  274    297   
    /// request ID, and potentially additional information.
  275    298   
    ///
         299  +
    /* OperationErrorGenerator.kt:242 */
  276    300   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         301  +
        /* OperationErrorGenerator.kt:243 */
  277    302   
        match self {
         303  +
            /* OperationErrorGenerator.kt:246 */
  278    304   
            Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         305  +
            /* OperationErrorGenerator.kt:246 */
  279    306   
            Self::LimitExceededError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
  280         -
            Self::Unhandled(e) => &e.meta,
         307  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         308  +
            /* OperationErrorGenerator.kt:243 */
  281    309   
        }
         310  +
        /* OperationErrorGenerator.kt:242 */
  282    311   
    }
         312  +
    /* OperationErrorGenerator.kt:257 */
  283    313   
    /// Returns `true` if the error kind is `ListExportsError::InternalServerError`.
         314  +
    /* OperationErrorGenerator.kt:258 */
  284    315   
    pub fn is_internal_server_error(&self) -> bool {
         316  +
        /* OperationErrorGenerator.kt:259 */
  285    317   
        matches!(self, Self::InternalServerError(_))
         318  +
        /* OperationErrorGenerator.kt:258 */
  286    319   
    }
         320  +
    /* OperationErrorGenerator.kt:257 */
  287    321   
    /// Returns `true` if the error kind is `ListExportsError::LimitExceededError`.
         322  +
    /* OperationErrorGenerator.kt:258 */
  288    323   
    pub fn is_limit_exceeded_error(&self) -> bool {
         324  +
        /* OperationErrorGenerator.kt:259 */
  289    325   
        matches!(self, Self::LimitExceededError(_))
         326  +
        /* OperationErrorGenerator.kt:258 */
  290    327   
    }
         328  +
    /* OperationErrorGenerator.kt:218 */
  291    329   
}
         330  +
/* OperationErrorGenerator.kt:269 */
  292    331   
impl ::std::error::Error for ListExportsError {
         332  +
    /* OperationErrorGenerator.kt:270 */
  293    333   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         334  +
        /* OperationErrorGenerator.kt:318 */
  294    335   
        match self {
  295         -
            Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner),
  296         -
            Self::LimitExceededError(_inner) => ::std::option::Option::Some(_inner),
  297         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         336  +
            /* OperationErrorGenerator.kt:321 */
         337  +
            Self::InternalServerError(_inner) =>
         338  +
            /* OperationErrorGenerator.kt:283 */
         339  +
            {
         340  +
                ::std::option::Option::Some(_inner)
         341  +
            }
         342  +
            ,
         343  +
            /* OperationErrorGenerator.kt:321 */
         344  +
            Self::LimitExceededError(_inner) =>
         345  +
            /* OperationErrorGenerator.kt:283 */
         346  +
            {
         347  +
                ::std::option::Option::Some(_inner)
         348  +
            }
         349  +
            ,
         350  +
            /* OperationErrorGenerator.kt:326 */
         351  +
            Self::Unhandled(_inner) => {
         352  +
                /* OperationErrorGenerator.kt:279 */
         353  +
                ::std::option::Option::Some(&*_inner.source)
         354  +
                /* OperationErrorGenerator.kt:326 */
         355  +
            } /* OperationErrorGenerator.kt:318 */
  298    356   
        }
         357  +
        /* OperationErrorGenerator.kt:270 */
  299    358   
    }
         359  +
    /* OperationErrorGenerator.kt:269 */
  300    360   
}
         361  +
/* OperationErrorGenerator.kt:133 */
  301    362   
impl ::std::fmt::Display for ListExportsError {
         363  +
    /* OperationErrorGenerator.kt:134 */
  302    364   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         365  +
        /* OperationErrorGenerator.kt:318 */
  303    366   
        match self {
  304         -
            Self::InternalServerError(_inner) => _inner.fmt(f),
  305         -
            Self::LimitExceededError(_inner) => _inner.fmt(f),
         367  +
            /* OperationErrorGenerator.kt:321 */
         368  +
            Self::InternalServerError(_inner) =>
         369  +
            /* OperationErrorGenerator.kt:151 */
         370  +
            {
         371  +
                _inner.fmt(f)
         372  +
            }
         373  +
            ,
         374  +
            /* OperationErrorGenerator.kt:321 */
         375  +
            Self::LimitExceededError(_inner) =>
         376  +
            /* OperationErrorGenerator.kt:151 */
         377  +
            {
         378  +
                _inner.fmt(f)
         379  +
            }
         380  +
            ,
         381  +
            /* OperationErrorGenerator.kt:326 */
  306    382   
            Self::Unhandled(_inner) => {
         383  +
                /* OperationErrorGenerator.kt:139 */
  307    384   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  308    385   
                    write!(f, "unhandled error ({code})")
  309    386   
                } else {
  310    387   
                    f.write_str("unhandled error")
  311    388   
                }
         389  +
                /* OperationErrorGenerator.kt:326 */
         390  +
            } /* OperationErrorGenerator.kt:318 */
  312    391   
        }
         392  +
        /* OperationErrorGenerator.kt:134 */
  313    393   
    }
  314         -
    }
         394  +
    /* OperationErrorGenerator.kt:133 */
  315    395   
}
         396  +
/* OperationErrorGenerator.kt:182 */
  316    397   
impl ::aws_smithy_types::retry::ProvideErrorKind for ListExportsError {
         398  +
    /* OperationErrorGenerator.kt:186 */
  317    399   
    fn code(&self) -> ::std::option::Option<&str> {
         400  +
        /* OperationErrorGenerator.kt:187 */
  318    401   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         402  +
        /* OperationErrorGenerator.kt:186 */
  319    403   
    }
         404  +
    /* OperationErrorGenerator.kt:190 */
  320    405   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         406  +
        /* OperationErrorGenerator.kt:197 */
  321    407   
        ::std::option::Option::None
         408  +
        /* OperationErrorGenerator.kt:190 */
  322    409   
    }
         410  +
    /* OperationErrorGenerator.kt:182 */
  323    411   
}
         412  +
/* OperationErrorGenerator.kt:163 */
  324    413   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for ListExportsError {
         414  +
    /* OperationErrorGenerator.kt:164 */
  325    415   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         416  +
        /* OperationErrorGenerator.kt:318 */
  326    417   
        match self {
  327         -
            Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  328         -
            Self::LimitExceededError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  329         -
            Self::Unhandled(_inner) => &_inner.meta,
         418  +
            /* OperationErrorGenerator.kt:321 */
         419  +
            Self::InternalServerError(_inner) =>
         420  +
            /* OperationErrorGenerator.kt:169 */
         421  +
            {
         422  +
                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
         423  +
            }
         424  +
            ,
         425  +
            /* OperationErrorGenerator.kt:321 */
         426  +
            Self::LimitExceededError(_inner) =>
         427  +
            /* OperationErrorGenerator.kt:169 */
         428  +
            {
         429  +
                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
         430  +
            }
         431  +
            ,
         432  +
            /* OperationErrorGenerator.kt:326 */
         433  +
            Self::Unhandled(_inner) => {
         434  +
                /* OperationErrorGenerator.kt:168 */
         435  +
                &_inner.meta
         436  +
                /* OperationErrorGenerator.kt:326 */
         437  +
            } /* OperationErrorGenerator.kt:318 */
  330    438   
        }
         439  +
        /* OperationErrorGenerator.kt:164 */
  331    440   
    }
         441  +
    /* OperationErrorGenerator.kt:163 */
  332    442   
}
         443  +
/* OperationErrorGenerator.kt:109 */
  333    444   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for ListExportsError {
         445  +
    /* OperationErrorGenerator.kt:110 */
  334    446   
    fn create_unhandled_error(
  335    447   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  336    448   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  337    449   
    ) -> Self {
         450  +
        /* OperationErrorGenerator.kt:121 */
  338    451   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  339    452   
            source,
  340    453   
            meta: meta.unwrap_or_default(),
  341    454   
        })
         455  +
        /* OperationErrorGenerator.kt:110 */
  342    456   
    }
         457  +
    /* OperationErrorGenerator.kt:109 */
  343    458   
}
  344    459   
         460  +
/* CodegenDelegator.kt:255 */
  345    461   
pub use crate::operation::list_exports::_list_exports_output::ListExportsOutput;
  346    462   
         463  +
/* CodegenDelegator.kt:255 */
  347    464   
pub use crate::operation::list_exports::_list_exports_input::ListExportsInput;
  348    465   
         466  +
/* RustModule.kt:172 */
  349    467   
mod _list_exports_input;
  350    468   
         469  +
/* RustModule.kt:172 */
  351    470   
mod _list_exports_output;
  352    471   
  353         -
/// Builders
         472  +
/// /* CodegenDelegator.kt:51 */Builders
  354    473   
pub mod builders;
  355    474   
  356         -
/// Paginator for this operation
         475  +
/// /* CodegenDelegator.kt:51 */Paginator for this operation
  357    476   
pub mod paginator;

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/list_exports/_list_exports_input.rs

@@ -1,1 +93,158 @@
    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 ListExportsInput {
    6         -
    /// <p>The Amazon Resource Name (ARN) associated with the exported table.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct ListExportsInput {
           9  +
    /// /* StructureGenerator.kt:231 */<p>The Amazon Resource Name (ARN) associated with the exported table.</p>
    7     10   
    pub table_arn: ::std::option::Option<::std::string::String>,
    8         -
    /// <p>Maximum number of results to return per page.</p>
          11  +
    /// /* StructureGenerator.kt:231 */<p>Maximum number of results to return per page.</p>
    9     12   
    pub max_results: ::std::option::Option<i32>,
   10         -
    /// <p>An optional string that, if supplied, must be copied from the output of a previous call to <code>ListExports</code>. When provided in this manner, the API fetches the next page of results.</p>
          13  +
    /// /* StructureGenerator.kt:231 */<p>An optional string that, if supplied, must be copied from the output of a previous call to <code>ListExports</code>. When provided in this manner, the API fetches the next page of results.</p>
   11     14   
    pub next_token: ::std::option::Option<::std::string::String>,
          15  +
    /* StructureGenerator.kt:201 */
   12     16   
}
          17  +
/* StructureGenerator.kt:135 */
   13     18   
impl ListExportsInput {
   14         -
    /// <p>The Amazon Resource Name (ARN) associated with the exported table.</p>
          19  +
    /// /* StructureGenerator.kt:231 */<p>The Amazon Resource Name (ARN) associated with the exported table.</p>
          20  +
    /* StructureGenerator.kt:166 */
   15     21   
    pub fn table_arn(&self) -> ::std::option::Option<&str> {
          22  +
        /* StructureGenerator.kt:169 */
   16     23   
        self.table_arn.as_deref()
          24  +
        /* StructureGenerator.kt:166 */
   17     25   
    }
   18         -
    /// <p>Maximum number of results to return per page.</p>
          26  +
    /// /* StructureGenerator.kt:231 */<p>Maximum number of results to return per page.</p>
          27  +
    /* StructureGenerator.kt:166 */
   19     28   
    pub fn max_results(&self) -> ::std::option::Option<i32> {
          29  +
        /* StructureGenerator.kt:168 */
   20     30   
        self.max_results
          31  +
        /* StructureGenerator.kt:166 */
   21     32   
    }
   22         -
    /// <p>An optional string that, if supplied, must be copied from the output of a previous call to <code>ListExports</code>. When provided in this manner, the API fetches the next page of results.</p>
          33  +
    /// /* StructureGenerator.kt:231 */<p>An optional string that, if supplied, must be copied from the output of a previous call to <code>ListExports</code>. When provided in this manner, the API fetches the next page of results.</p>
          34  +
    /* StructureGenerator.kt:166 */
   23     35   
    pub fn next_token(&self) -> ::std::option::Option<&str> {
          36  +
        /* StructureGenerator.kt:169 */
   24     37   
        self.next_token.as_deref()
          38  +
        /* StructureGenerator.kt:166 */
   25     39   
    }
          40  +
    /* StructureGenerator.kt:135 */
   26     41   
}
          42  +
/* ClientCodegenVisitor.kt:237 */
   27     43   
impl ListExportsInput {
   28         -
    /// Creates a new builder-style object to manufacture [`ListExportsInput`](crate::operation::list_exports::ListExportsInput).
          44  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ListExportsInput`](crate::operation::list_exports::ListExportsInput).
          45  +
    /* BuilderGenerator.kt:175 */
   29     46   
    pub fn builder() -> crate::operation::list_exports::builders::ListExportsInputBuilder {
          47  +
        /* BuilderGenerator.kt:176 */
   30     48   
        crate::operation::list_exports::builders::ListExportsInputBuilder::default()
          49  +
        /* BuilderGenerator.kt:175 */
   31     50   
    }
          51  +
    /* ClientCodegenVisitor.kt:237 */
   32     52   
}
   33     53   
   34         -
/// A builder for [`ListExportsInput`](crate::operation::list_exports::ListExportsInput).
          54  +
/// /* BuilderGenerator.kt:342 */A builder for [`ListExportsInput`](crate::operation::list_exports::ListExportsInput).
          55  +
/* RustType.kt:516 */
   35     56   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          57  +
/* RustType.kt:516 */
   36     58   
#[non_exhaustive]
          59  +
/* BuilderGenerator.kt:345 */
   37     60   
pub struct ListExportsInputBuilder {
   38         -
    pub(crate) table_arn: ::std::option::Option<::std::string::String>,
   39         -
    pub(crate) max_results: ::std::option::Option<i32>,
   40         -
    pub(crate) next_token: ::std::option::Option<::std::string::String>,
          61  +
    /* BuilderGenerator.kt:275 */ pub(crate) table_arn: ::std::option::Option<::std::string::String>,
          62  +
    /* BuilderGenerator.kt:275 */ pub(crate) max_results: ::std::option::Option<i32>,
          63  +
    /* BuilderGenerator.kt:275 */ pub(crate) next_token: ::std::option::Option<::std::string::String>,
          64  +
    /* BuilderGenerator.kt:345 */
   41     65   
}
          66  +
/* BuilderGenerator.kt:355 */
   42     67   
impl ListExportsInputBuilder {
   43         -
    /// <p>The Amazon Resource Name (ARN) associated with the exported table.</p>
          68  +
    /// /* BuilderGenerator.kt:286 */<p>The Amazon Resource Name (ARN) associated with the exported table.</p>
          69  +
    /* BuilderGenerator.kt:291 */
   44     70   
    pub fn table_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          71  +
        /* BuilderGenerator.kt:292 */
   45     72   
        self.table_arn = ::std::option::Option::Some(input.into());
          73  +
        /* BuilderGenerator.kt:293 */
   46     74   
        self
          75  +
        /* BuilderGenerator.kt:291 */
   47     76   
    }
   48         -
    /// <p>The Amazon Resource Name (ARN) associated with the exported table.</p>
          77  +
    /// /* BuilderGenerator.kt:312 */<p>The Amazon Resource Name (ARN) associated with the exported table.</p>
          78  +
    /* BuilderGenerator.kt:314 */
   49     79   
    pub fn set_table_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          80  +
        /* BuilderGenerator.kt:315 */
   50     81   
        self.table_arn = input;
   51     82   
        self
          83  +
        /* BuilderGenerator.kt:314 */
   52     84   
    }
   53         -
    /// <p>The Amazon Resource Name (ARN) associated with the exported table.</p>
          85  +
    /// /* BuilderGenerator.kt:334 */<p>The Amazon Resource Name (ARN) associated with the exported table.</p>
          86  +
    /* BuilderGenerator.kt:336 */
   54     87   
    pub fn get_table_arn(&self) -> &::std::option::Option<::std::string::String> {
          88  +
        /* BuilderGenerator.kt:337 */
   55     89   
        &self.table_arn
          90  +
        /* BuilderGenerator.kt:336 */
   56     91   
    }
   57         -
    /// <p>Maximum number of results to return per page.</p>
          92  +
    /// /* BuilderGenerator.kt:286 */<p>Maximum number of results to return per page.</p>
          93  +
    /* BuilderGenerator.kt:291 */
   58     94   
    pub fn max_results(mut self, input: i32) -> Self {
          95  +
        /* BuilderGenerator.kt:292 */
   59     96   
        self.max_results = ::std::option::Option::Some(input);
          97  +
        /* BuilderGenerator.kt:293 */
   60     98   
        self
          99  +
        /* BuilderGenerator.kt:291 */
   61    100   
    }
   62         -
    /// <p>Maximum number of results to return per page.</p>
         101  +
    /// /* BuilderGenerator.kt:312 */<p>Maximum number of results to return per page.</p>
         102  +
    /* BuilderGenerator.kt:314 */
   63    103   
    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
         104  +
        /* BuilderGenerator.kt:315 */
   64    105   
        self.max_results = input;
   65    106   
        self
         107  +
        /* BuilderGenerator.kt:314 */
   66    108   
    }
   67         -
    /// <p>Maximum number of results to return per page.</p>
         109  +
    /// /* BuilderGenerator.kt:334 */<p>Maximum number of results to return per page.</p>
         110  +
    /* BuilderGenerator.kt:336 */
   68    111   
    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
         112  +
        /* BuilderGenerator.kt:337 */
   69    113   
        &self.max_results
         114  +
        /* BuilderGenerator.kt:336 */
   70    115   
    }
   71         -
    /// <p>An optional string that, if supplied, must be copied from the output of a previous call to <code>ListExports</code>. When provided in this manner, the API fetches the next page of results.</p>
         116  +
    /// /* BuilderGenerator.kt:286 */<p>An optional string that, if supplied, must be copied from the output of a previous call to <code>ListExports</code>. When provided in this manner, the API fetches the next page of results.</p>
         117  +
    /* BuilderGenerator.kt:291 */
   72    118   
    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         119  +
        /* BuilderGenerator.kt:292 */
   73    120   
        self.next_token = ::std::option::Option::Some(input.into());
         121  +
        /* BuilderGenerator.kt:293 */
   74    122   
        self
         123  +
        /* BuilderGenerator.kt:291 */
   75    124   
    }
   76         -
    /// <p>An optional string that, if supplied, must be copied from the output of a previous call to <code>ListExports</code>. When provided in this manner, the API fetches the next page of results.</p>
         125  +
    /// /* BuilderGenerator.kt:312 */<p>An optional string that, if supplied, must be copied from the output of a previous call to <code>ListExports</code>. When provided in this manner, the API fetches the next page of results.</p>
         126  +
    /* BuilderGenerator.kt:314 */
   77    127   
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         128  +
        /* BuilderGenerator.kt:315 */
   78    129   
        self.next_token = input;
   79    130   
        self
         131  +
        /* BuilderGenerator.kt:314 */
   80    132   
    }
   81         -
    /// <p>An optional string that, if supplied, must be copied from the output of a previous call to <code>ListExports</code>. When provided in this manner, the API fetches the next page of results.</p>
         133  +
    /// /* BuilderGenerator.kt:334 */<p>An optional string that, if supplied, must be copied from the output of a previous call to <code>ListExports</code>. When provided in this manner, the API fetches the next page of results.</p>
         134  +
    /* BuilderGenerator.kt:336 */
   82    135   
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
         136  +
        /* BuilderGenerator.kt:337 */
   83    137   
        &self.next_token
         138  +
        /* BuilderGenerator.kt:336 */
   84    139   
    }
   85         -
    /// Consumes the builder and constructs a [`ListExportsInput`](crate::operation::list_exports::ListExportsInput).
         140  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ListExportsInput`](crate::operation::list_exports::ListExportsInput).
         141  +
    /* BuilderGenerator.kt:253 */
   86    142   
    pub fn build(self) -> ::std::result::Result<crate::operation::list_exports::ListExportsInput, ::aws_smithy_types::error::operation::BuildError> {
   87         -
        ::std::result::Result::Ok(crate::operation::list_exports::ListExportsInput {
   88         -
            table_arn: self.table_arn,
         143  +
        /* BuilderGenerator.kt:254 */
         144  +
        ::std::result::Result::Ok(
         145  +
            /* BuilderGenerator.kt:477 */
         146  +
            crate::operation::list_exports::ListExportsInput {
         147  +
                /* BuilderGenerator.kt:481 */ table_arn: self.table_arn,
         148  +
                /* BuilderGenerator.kt:481 */
   89    149   
                max_results: self.max_results,
         150  +
                /* BuilderGenerator.kt:481 */
   90    151   
                next_token: self.next_token,
   91         -
        })
         152  +
                /* BuilderGenerator.kt:477 */
         153  +
            }, /* BuilderGenerator.kt:254 */
         154  +
        )
         155  +
        /* BuilderGenerator.kt:253 */
   92    156   
    }
         157  +
    /* BuilderGenerator.kt:355 */
   93    158   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/list_exports/_list_exports_output.rs

@@ -1,1 +79,131 @@
    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 ListExportsOutput {
    6         -
    /// <p>A list of <code>ExportSummary</code> objects.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct ListExportsOutput {
           9  +
    /// /* StructureGenerator.kt:231 */<p>A list of <code>ExportSummary</code> objects.</p>
    7     10   
    pub export_summaries: ::std::option::Option<::std::vec::Vec<crate::types::ExportSummary>>,
    8         -
    /// <p>If this value is returned, there are additional results to be displayed. To retrieve them, call <code>ListExports</code> again, with <code>NextToken</code> set to this value.</p>
          11  +
    /// /* StructureGenerator.kt:231 */<p>If this value is returned, there are additional results to be displayed. To retrieve them, call <code>ListExports</code> again, with <code>NextToken</code> set to this value.</p>
    9     12   
    pub next_token: ::std::option::Option<::std::string::String>,
          13  +
    /* StructureGenerator.kt:201 */
   10     14   
}
          15  +
/* StructureGenerator.kt:135 */
   11     16   
impl ListExportsOutput {
   12         -
    /// <p>A list of <code>ExportSummary</code> objects.</p>
   13         -
    ///
   14         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.export_summaries.is_none()`.
          17  +
    /// /* StructureGenerator.kt:231 */<p>A list of <code>ExportSummary</code> objects.</p>
          18  +
    /// /* StructureGenerator.kt:162 */
          19  +
    /// /* 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 `.export_summaries.is_none()`.
          20  +
    /* StructureGenerator.kt:166 */
   15     21   
    pub fn export_summaries(&self) -> &[crate::types::ExportSummary] {
   16         -
        self.export_summaries.as_deref().unwrap_or_default()
          22  +
        /* StructureGenerator.kt:169 */
          23  +
        self.export_summaries
          24  +
            .as_deref()
          25  +
            /* StructureGenerator.kt:175 */
          26  +
            .unwrap_or_default()
          27  +
        /* StructureGenerator.kt:166 */
   17     28   
    }
   18         -
    /// <p>If this value is returned, there are additional results to be displayed. To retrieve them, call <code>ListExports</code> again, with <code>NextToken</code> set to this value.</p>
          29  +
    /// /* StructureGenerator.kt:231 */<p>If this value is returned, there are additional results to be displayed. To retrieve them, call <code>ListExports</code> again, with <code>NextToken</code> set to this value.</p>
          30  +
    /* StructureGenerator.kt:166 */
   19     31   
    pub fn next_token(&self) -> ::std::option::Option<&str> {
          32  +
        /* StructureGenerator.kt:169 */
   20     33   
        self.next_token.as_deref()
          34  +
        /* StructureGenerator.kt:166 */
   21     35   
    }
          36  +
    /* StructureGenerator.kt:135 */
   22     37   
}
          38  +
/* ClientCodegenVisitor.kt:237 */
   23     39   
impl ListExportsOutput {
   24         -
    /// Creates a new builder-style object to manufacture [`ListExportsOutput`](crate::operation::list_exports::ListExportsOutput).
          40  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ListExportsOutput`](crate::operation::list_exports::ListExportsOutput).
          41  +
    /* BuilderGenerator.kt:175 */
   25     42   
    pub fn builder() -> crate::operation::list_exports::builders::ListExportsOutputBuilder {
          43  +
        /* BuilderGenerator.kt:176 */
   26     44   
        crate::operation::list_exports::builders::ListExportsOutputBuilder::default()
          45  +
        /* BuilderGenerator.kt:175 */
   27     46   
    }
          47  +
    /* ClientCodegenVisitor.kt:237 */
   28     48   
}
   29     49   
   30         -
/// A builder for [`ListExportsOutput`](crate::operation::list_exports::ListExportsOutput).
          50  +
/// /* BuilderGenerator.kt:342 */A builder for [`ListExportsOutput`](crate::operation::list_exports::ListExportsOutput).
          51  +
/* RustType.kt:516 */
   31     52   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          53  +
/* RustType.kt:516 */
   32     54   
#[non_exhaustive]
          55  +
/* BuilderGenerator.kt:345 */
   33     56   
pub struct ListExportsOutputBuilder {
   34         -
    pub(crate) export_summaries: ::std::option::Option<::std::vec::Vec<crate::types::ExportSummary>>,
   35         -
    pub(crate) next_token: ::std::option::Option<::std::string::String>,
          57  +
    /* BuilderGenerator.kt:275 */ pub(crate) export_summaries: ::std::option::Option<::std::vec::Vec<crate::types::ExportSummary>>,
          58  +
    /* BuilderGenerator.kt:275 */ pub(crate) next_token: ::std::option::Option<::std::string::String>,
          59  +
    /* BuilderGenerator.kt:345 */
   36     60   
}
          61  +
/* BuilderGenerator.kt:355 */
   37     62   
impl ListExportsOutputBuilder {
   38         -
    /// Appends an item to `export_summaries`.
          63  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `export_summaries`.
          64  +
    /* BuilderGenerator.kt:411 */
   39     65   
    ///
   40         -
    /// To override the contents of this collection use [`set_export_summaries`](Self::set_export_summaries).
          66  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_export_summaries`](Self::set_export_summaries).
          67  +
    /* BuilderGenerator.kt:413 */
   41     68   
    ///
   42         -
    /// <p>A list of <code>ExportSummary</code> objects.</p>
          69  +
    /// /* BuilderGenerator.kt:414 */<p>A list of <code>ExportSummary</code> objects.</p>
          70  +
    /* BuilderGenerator.kt:418 */
   43     71   
    pub fn export_summaries(mut self, input: crate::types::ExportSummary) -> Self {
          72  +
        /* BuilderGenerator.kt:419 */
   44     73   
        let mut v = self.export_summaries.unwrap_or_default();
   45     74   
        v.push(input);
   46     75   
        self.export_summaries = ::std::option::Option::Some(v);
   47     76   
        self
          77  +
        /* BuilderGenerator.kt:418 */
   48     78   
    }
   49         -
    /// <p>A list of <code>ExportSummary</code> objects.</p>
          79  +
    /// /* BuilderGenerator.kt:312 */<p>A list of <code>ExportSummary</code> objects.</p>
          80  +
    /* BuilderGenerator.kt:314 */
   50     81   
    pub fn set_export_summaries(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ExportSummary>>) -> Self {
          82  +
        /* BuilderGenerator.kt:315 */
   51     83   
        self.export_summaries = input;
   52     84   
        self
          85  +
        /* BuilderGenerator.kt:314 */
   53     86   
    }
   54         -
    /// <p>A list of <code>ExportSummary</code> objects.</p>
          87  +
    /// /* BuilderGenerator.kt:334 */<p>A list of <code>ExportSummary</code> objects.</p>
          88  +
    /* BuilderGenerator.kt:336 */
   55     89   
    pub fn get_export_summaries(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ExportSummary>> {
          90  +
        /* BuilderGenerator.kt:337 */
   56     91   
        &self.export_summaries
          92  +
        /* BuilderGenerator.kt:336 */
   57     93   
    }
   58         -
    /// <p>If this value is returned, there are additional results to be displayed. To retrieve them, call <code>ListExports</code> again, with <code>NextToken</code> set to this value.</p>
          94  +
    /// /* BuilderGenerator.kt:286 */<p>If this value is returned, there are additional results to be displayed. To retrieve them, call <code>ListExports</code> again, with <code>NextToken</code> set to this value.</p>
          95  +
    /* BuilderGenerator.kt:291 */
   59     96   
    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          97  +
        /* BuilderGenerator.kt:292 */
   60     98   
        self.next_token = ::std::option::Option::Some(input.into());
          99  +
        /* BuilderGenerator.kt:293 */
   61    100   
        self
         101  +
        /* BuilderGenerator.kt:291 */
   62    102   
    }
   63         -
    /// <p>If this value is returned, there are additional results to be displayed. To retrieve them, call <code>ListExports</code> again, with <code>NextToken</code> set to this value.</p>
         103  +
    /// /* BuilderGenerator.kt:312 */<p>If this value is returned, there are additional results to be displayed. To retrieve them, call <code>ListExports</code> again, with <code>NextToken</code> set to this value.</p>
         104  +
    /* BuilderGenerator.kt:314 */
   64    105   
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         106  +
        /* BuilderGenerator.kt:315 */
   65    107   
        self.next_token = input;
   66    108   
        self
         109  +
        /* BuilderGenerator.kt:314 */
   67    110   
    }
   68         -
    /// <p>If this value is returned, there are additional results to be displayed. To retrieve them, call <code>ListExports</code> again, with <code>NextToken</code> set to this value.</p>
         111  +
    /// /* BuilderGenerator.kt:334 */<p>If this value is returned, there are additional results to be displayed. To retrieve them, call <code>ListExports</code> again, with <code>NextToken</code> set to this value.</p>
         112  +
    /* BuilderGenerator.kt:336 */
   69    113   
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
         114  +
        /* BuilderGenerator.kt:337 */
   70    115   
        &self.next_token
         116  +
        /* BuilderGenerator.kt:336 */
   71    117   
    }
   72         -
    /// Consumes the builder and constructs a [`ListExportsOutput`](crate::operation::list_exports::ListExportsOutput).
         118  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ListExportsOutput`](crate::operation::list_exports::ListExportsOutput).
         119  +
    /* BuilderGenerator.kt:253 */
   73    120   
    pub fn build(self) -> crate::operation::list_exports::ListExportsOutput {
         121  +
        /* BuilderGenerator.kt:477 */
   74    122   
        crate::operation::list_exports::ListExportsOutput {
   75         -
            export_summaries: self.export_summaries,
         123  +
            /* BuilderGenerator.kt:481 */ export_summaries: self.export_summaries,
         124  +
            /* BuilderGenerator.kt:481 */
   76    125   
            next_token: self.next_token,
         126  +
            /* BuilderGenerator.kt:477 */
   77    127   
        }
         128  +
        /* BuilderGenerator.kt:253 */
   78    129   
    }
         130  +
    /* BuilderGenerator.kt:355 */
   79    131   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/list_exports/builders.rs

@@ -1,1 +159,181 @@
    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::list_exports::_list_exports_output::ListExportsOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::list_exports::_list_exports_input::ListExportsInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::list_exports::builders::ListExportsInputBuilder {
    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::list_exports::ListExportsOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::list_exports::ListExportsError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.list_exports();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `ListExports`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `ListExports`.
   24     27   
///
   25         -
/// <p>Lists completed exports within the past 90 days.</p>
          28  +
/// /* FluentBuilderGenerator.kt:130 */<p>Lists completed exports within the past 90 days.</p>
          29  +
/* RustType.kt:516 */
   26     30   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          31  +
/* FluentBuilderGenerator.kt:270 */
   27     32   
pub struct ListExportsFluentBuilder {
   28     33   
    handle: ::std::sync::Arc<crate::client::Handle>,
   29     34   
    inner: crate::operation::list_exports::builders::ListExportsInputBuilder,
   30     35   
    config_override: ::std::option::Option<crate::config::Builder>,
   31     36   
}
          37  +
/* FluentBuilderGenerator.kt:381 */
   32     38   
impl
   33     39   
    crate::client::customize::internal::CustomizableSend<
   34     40   
        crate::operation::list_exports::ListExportsOutput,
   35     41   
        crate::operation::list_exports::ListExportsError,
   36     42   
    > for ListExportsFluentBuilder
   37     43   
{
   38     44   
    fn send(
   39     45   
        self,
   40     46   
        config_override: crate::config::Builder,
   41     47   
    ) -> crate::client::customize::internal::BoxFuture<
   42     48   
        crate::client::customize::internal::SendResult<
   43     49   
            crate::operation::list_exports::ListExportsOutput,
   44     50   
            crate::operation::list_exports::ListExportsError,
   45     51   
        >,
   46     52   
    > {
   47     53   
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
   48     54   
    }
   49     55   
}
          56  +
/* FluentBuilderGenerator.kt:282 */
   50     57   
impl ListExportsFluentBuilder {
          58  +
    /* FluentBuilderGenerator.kt:288 */
   51     59   
    /// Creates a new `ListExportsFluentBuilder`.
   52     60   
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
   53     61   
        Self {
   54     62   
            handle,
   55     63   
            inner: ::std::default::Default::default(),
   56     64   
            config_override: ::std::option::Option::None,
   57     65   
        }
   58     66   
    }
          67  +
    /* FluentBuilderGenerator.kt:301 */
   59     68   
    /// Access the ListExports as a reference.
   60     69   
    pub fn as_input(&self) -> &crate::operation::list_exports::builders::ListExportsInputBuilder {
   61     70   
        &self.inner
   62     71   
    }
          72  +
    /* FluentBuilderGenerator.kt:145 */
   63     73   
    /// Sends the request and returns the response.
   64     74   
    ///
   65     75   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   66     76   
    /// can be matched against.
   67     77   
    ///
   68     78   
    /// By default, any retryable failures will be retried twice. Retry behavior
   69     79   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   70     80   
    /// set when configuring the client.
   71     81   
    pub async fn send(
   72     82   
        self,
   73     83   
    ) -> ::std::result::Result<
   74     84   
        crate::operation::list_exports::ListExportsOutput,
   75     85   
        ::aws_smithy_runtime_api::client::result::SdkError<
   76     86   
            crate::operation::list_exports::ListExportsError,
   77     87   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   78     88   
        >,
   79     89   
    > {
   80     90   
        let input = self
   81     91   
            .inner
   82     92   
            .build()
   83     93   
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
   84     94   
        let runtime_plugins = crate::operation::list_exports::ListExports::operation_runtime_plugins(
   85     95   
            self.handle.runtime_plugins.clone(),
   86     96   
            &self.handle.conf,
   87     97   
            self.config_override,
   88     98   
        );
   89     99   
        crate::operation::list_exports::ListExports::orchestrate(&runtime_plugins, input).await
   90    100   
    }
   91    101   
   92    102   
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
   93    103   
    pub fn customize(
   94    104   
        self,
   95    105   
    ) -> crate::client::customize::CustomizableOperation<
   96    106   
        crate::operation::list_exports::ListExportsOutput,
   97    107   
        crate::operation::list_exports::ListExportsError,
   98    108   
        Self,
   99    109   
    > {
  100    110   
        crate::client::customize::CustomizableOperation::new(self)
  101    111   
    }
         112  +
    /* FluentBuilderGenerator.kt:315 */
  102    113   
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
  103    114   
        self.set_config_override(::std::option::Option::Some(config_override.into()));
  104    115   
        self
  105    116   
    }
  106    117   
  107    118   
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
  108    119   
        self.config_override = config_override;
  109    120   
        self
  110    121   
    }
         122  +
    /* FluentBuilderGenerator.kt:340 */
  111    123   
    /// Create a paginator for this request
  112    124   
    ///
  113    125   
    /// Paginators are used by calling [`send().await`](crate::operation::list_exports::paginator::ListExportsPaginator::send) which returns a [`PaginationStream`](aws_smithy_async::future::pagination_stream::PaginationStream).
  114    126   
    pub fn into_paginator(self) -> crate::operation::list_exports::paginator::ListExportsPaginator {
  115    127   
        crate::operation::list_exports::paginator::ListExportsPaginator::new(self.handle, self.inner)
  116    128   
    }
  117         -
    /// <p>The Amazon Resource Name (ARN) associated with the exported table.</p>
         129  +
    /// /* FluentBuilderGenerator.kt:498 */<p>The Amazon Resource Name (ARN) associated with the exported table.</p>
         130  +
    /* FluentBuilderGenerator.kt:500 */
  118    131   
    pub fn table_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  119    132   
        self.inner = self.inner.table_arn(input.into());
  120    133   
        self
  121    134   
    }
  122         -
    /// <p>The Amazon Resource Name (ARN) associated with the exported table.</p>
         135  +
    /// /* FluentBuilderGenerator.kt:498 */<p>The Amazon Resource Name (ARN) associated with the exported table.</p>
         136  +
    /* FluentBuilderGenerator.kt:500 */
  123    137   
    pub fn set_table_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  124    138   
        self.inner = self.inner.set_table_arn(input);
  125    139   
        self
  126    140   
    }
  127         -
    /// <p>The Amazon Resource Name (ARN) associated with the exported table.</p>
         141  +
    /// /* FluentBuilderGenerator.kt:518 */<p>The Amazon Resource Name (ARN) associated with the exported table.</p>
         142  +
    /* FluentBuilderGenerator.kt:520 */
  128    143   
    pub fn get_table_arn(&self) -> &::std::option::Option<::std::string::String> {
  129    144   
        self.inner.get_table_arn()
  130    145   
    }
  131         -
    /// <p>Maximum number of results to return per page.</p>
         146  +
    /// /* FluentBuilderGenerator.kt:498 */<p>Maximum number of results to return per page.</p>
         147  +
    /* FluentBuilderGenerator.kt:500 */
  132    148   
    pub fn max_results(mut self, input: i32) -> Self {
  133    149   
        self.inner = self.inner.max_results(input);
  134    150   
        self
  135    151   
    }
  136         -
    /// <p>Maximum number of results to return per page.</p>
         152  +
    /// /* FluentBuilderGenerator.kt:498 */<p>Maximum number of results to return per page.</p>
         153  +
    /* FluentBuilderGenerator.kt:500 */
  137    154   
    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
  138    155   
        self.inner = self.inner.set_max_results(input);
  139    156   
        self
  140    157   
    }
  141         -
    /// <p>Maximum number of results to return per page.</p>
         158  +
    /// /* FluentBuilderGenerator.kt:518 */<p>Maximum number of results to return per page.</p>
         159  +
    /* FluentBuilderGenerator.kt:520 */
  142    160   
    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
  143    161   
        self.inner.get_max_results()
  144    162   
    }
  145         -
    /// <p>An optional string that, if supplied, must be copied from the output of a previous call to <code>ListExports</code>. When provided in this manner, the API fetches the next page of results.</p>
         163  +
    /// /* FluentBuilderGenerator.kt:498 */<p>An optional string that, if supplied, must be copied from the output of a previous call to <code>ListExports</code>. When provided in this manner, the API fetches the next page of results.</p>
         164  +
    /* FluentBuilderGenerator.kt:500 */
  146    165   
    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  147    166   
        self.inner = self.inner.next_token(input.into());
  148    167   
        self
  149    168   
    }
  150         -
    /// <p>An optional string that, if supplied, must be copied from the output of a previous call to <code>ListExports</code>. When provided in this manner, the API fetches the next page of results.</p>
         169  +
    /// /* FluentBuilderGenerator.kt:498 */<p>An optional string that, if supplied, must be copied from the output of a previous call to <code>ListExports</code>. When provided in this manner, the API fetches the next page of results.</p>
         170  +
    /* FluentBuilderGenerator.kt:500 */
  151    171   
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  152    172   
        self.inner = self.inner.set_next_token(input);
  153    173   
        self
  154    174   
    }
  155         -
    /// <p>An optional string that, if supplied, must be copied from the output of a previous call to <code>ListExports</code>. When provided in this manner, the API fetches the next page of results.</p>
         175  +
    /// /* FluentBuilderGenerator.kt:518 */<p>An optional string that, if supplied, must be copied from the output of a previous call to <code>ListExports</code>. When provided in this manner, the API fetches the next page of results.</p>
         176  +
    /* FluentBuilderGenerator.kt:520 */
  156    177   
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
  157    178   
        self.inner.get_next_token()
  158    179   
    }
         180  +
    /* FluentBuilderGenerator.kt:282 */
  159    181   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/list_exports/paginator.rs

@@ -1,1 +31,32 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* PaginatorGenerator.kt:121 */
    2      3   
/// Paginator for [`ListExports`](crate::operation::list_exports::ListExports)
    3      4   
pub struct ListExportsPaginator {
    4      5   
    handle: std::sync::Arc<crate::client::Handle>,
    5      6   
    builder: crate::operation::list_exports::builders::ListExportsInputBuilder,
    6      7   
    stop_on_duplicate_token: bool,
    7      8   
}
    8      9   
    9     10   
impl ListExportsPaginator {
   10     11   
    /// Create a new paginator-wrapper
   11     12   
    pub(crate) fn new(

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/list_global_tables.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 `ListGlobalTables`.
           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 ListGlobalTables;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl ListGlobalTables {
    7         -
    /// Creates a new `ListGlobalTables`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `ListGlobalTables`
          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::list_global_tables::ListGlobalTablesInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::list_global_tables::ListGlobalTablesOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::list_global_tables::ListGlobalTablesError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -57,66 +354,474 @@
   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 ListGlobalTables {
   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("ListGlobalTables");
   91    102   
   92    103   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   93    104   
            ListGlobalTablesRequestSerializer,
   94    105   
        ));
   95    106   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
   96    107   
            ListGlobalTablesResponseDeserializer,
   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   
            "ListGlobalTables",
  105    116   
            "DynamoDB",
  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("ListGlobalTables")
  117    128   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  118    129   
            .with_interceptor(ListGlobalTablesEndpointParamsInterceptor)
  119    130   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  120    131   
                crate::operation::list_global_tables::ListGlobalTablesError,
  121    132   
            >::new())
  122    133   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  123    134   
                crate::operation::list_global_tables::ListGlobalTablesError,
  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 ListGlobalTablesResponseDeserializer;
  132    144   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ListGlobalTablesResponseDeserializer {
  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_list_global_tables::de_list_global_tables_http_error(status, headers, body)
  145    157   
        } else {
  146    158   
            crate::protocol_serde::shape_list_global_tables::de_list_global_tables_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 ListGlobalTablesRequestSerializer;
  153    166   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ListGlobalTablesRequestSerializer {
  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::list_global_tables::ListGlobalTablesInput>()
  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::list_global_tables::ListGlobalTablesInput,
  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::list_global_tables::ListGlobalTablesInput,
  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-amz-json-1.0");
  187    200   
            builder = _header_serialization_settings.set_default_header(
  188    201   
                builder,
  189    202   
                ::http::header::HeaderName::from_static("x-amz-target"),
  190    203   
                "DynamoDB_20120810.ListGlobalTables",
  191    204   
            );
  192    205   
            builder
  193    206   
        };
  194    207   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_list_global_tables::ser_list_global_tables_input(&input)?);
  195    208   
        if let Some(content_length) = body.content_length() {
  196    209   
            let content_length = content_length.to_string();
  197    210   
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
  198    211   
        }
  199    212   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  200    213   
    }
  201    214   
}
         215  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  202    216   
#[derive(Debug)]
  203    217   
struct ListGlobalTablesEndpointParamsInterceptor;
  204    218   
  205    219   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListGlobalTablesEndpointParamsInterceptor {
  206    220   
    fn name(&self) -> &'static str {
  207    221   
        "ListGlobalTablesEndpointParamsInterceptor"
  208    222   
    }
  209    223   
  210    224   
    fn read_before_execution(
  211    225   
        &self,
  212    226   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  213    227   
            '_,
  214    228   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  215    229   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  216    230   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  217    231   
        >,
  218    232   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  219    233   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  220    234   
        let _input = context
  221    235   
            .input()
  222    236   
            .downcast_ref::<ListGlobalTablesInput>()
  223    237   
            .ok_or("failed to downcast to ListGlobalTablesInput")?;
  224    238   
  225    239   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  226    240   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  227    241   
        })?;
  228    242   
        cfg.interceptor_state()
  229    243   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  230    244   
        ::std::result::Result::Ok(())
  231    245   
    }
  232    246   
}
  233    247   
  234    248   
// The get_* functions below are generated from JMESPath expressions in the
  235    249   
// operationContextParams trait. They target the operation's input shape.
  236    250   
         251  +
/* OperationErrorGenerator.kt:79 */
  237    252   
/// Error type for the `ListGlobalTablesError` operation.
         253  +
/* RustType.kt:516 */
  238    254   
#[non_exhaustive]
         255  +
/* RustType.kt:516 */
  239    256   
#[derive(::std::fmt::Debug)]
  240         -
pub enum ListGlobalTablesError {
  241         -
    /// <p>An error occurred on the server side.</p>
         257  +
pub /* OperationErrorGenerator.kt:81 */ enum ListGlobalTablesError {
         258  +
    /// /* OperationErrorGenerator.kt:83 */<p>An error occurred on the server side.</p>
         259  +
    /* OperationErrorGenerator.kt:86 */
  242    260   
    InternalServerError(crate::types::error::InternalServerError),
         261  +
    /* OperationErrorGenerator.kt:83 */
  243    262   
    #[allow(missing_docs)] // documentation missing in model
         263  +
    /* OperationErrorGenerator.kt:86 */
  244    264   
    InvalidEndpointError(crate::types::error::InvalidEndpointError),
         265  +
    /* OperationErrorGenerator.kt:88 */
  245    266   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  246    267   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  247    268   
    variable wildcard pattern and check `.code()`:
  248    269   
     \
  249    270   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  250    271   
     \
  251    272   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-ListGlobalTablesError) for what information is available for the error.")]
  252    273   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         274  +
    /* OperationErrorGenerator.kt:81 */
  253    275   
}
         276  +
/* OperationErrorGenerator.kt:218 */
  254    277   
impl ListGlobalTablesError {
         278  +
    /* OperationErrorGenerator.kt:219 */
  255    279   
    /// Creates the `ListGlobalTablesError::Unhandled` variant from any error type.
  256    280   
    pub fn unhandled(
  257    281   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  258    282   
    ) -> Self {
  259    283   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  260    284   
            source: err.into(),
  261    285   
            meta: ::std::default::Default::default(),
  262    286   
        })
  263    287   
    }
  264    288   
  265    289   
    /// Creates the `ListGlobalTablesError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  266    290   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  267    291   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  268    292   
            source: err.clone().into(),
  269    293   
            meta: err,
  270    294   
        })
  271    295   
    }
  272         -
    ///
         296  +
    /// /* OperationErrorGenerator.kt:236 */
  273    297   
    /// Returns error metadata, which includes the error code, message,
  274    298   
    /// request ID, and potentially additional information.
  275    299   
    ///
         300  +
    /* OperationErrorGenerator.kt:242 */
  276    301   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         302  +
        /* OperationErrorGenerator.kt:243 */
  277    303   
        match self {
         304  +
            /* OperationErrorGenerator.kt:246 */
  278    305   
            Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         306  +
            /* OperationErrorGenerator.kt:246 */
  279    307   
            Self::InvalidEndpointError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
  280         -
            Self::Unhandled(e) => &e.meta,
         308  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         309  +
            /* OperationErrorGenerator.kt:243 */
  281    310   
        }
         311  +
        /* OperationErrorGenerator.kt:242 */
  282    312   
    }
         313  +
    /* OperationErrorGenerator.kt:257 */
  283    314   
    /// Returns `true` if the error kind is `ListGlobalTablesError::InternalServerError`.
         315  +
    /* OperationErrorGenerator.kt:258 */
  284    316   
    pub fn is_internal_server_error(&self) -> bool {
         317  +
        /* OperationErrorGenerator.kt:259 */
  285    318   
        matches!(self, Self::InternalServerError(_))
         319  +
        /* OperationErrorGenerator.kt:258 */
  286    320   
    }
         321  +
    /* OperationErrorGenerator.kt:257 */
  287    322   
    /// Returns `true` if the error kind is `ListGlobalTablesError::InvalidEndpointError`.
         323  +
    /* OperationErrorGenerator.kt:258 */
  288    324   
    pub fn is_invalid_endpoint_error(&self) -> bool {
         325  +
        /* OperationErrorGenerator.kt:259 */
  289    326   
        matches!(self, Self::InvalidEndpointError(_))
         327  +
        /* OperationErrorGenerator.kt:258 */
  290    328   
    }
         329  +
    /* OperationErrorGenerator.kt:218 */
  291    330   
}
         331  +
/* OperationErrorGenerator.kt:269 */
  292    332   
impl ::std::error::Error for ListGlobalTablesError {
         333  +
    /* OperationErrorGenerator.kt:270 */
  293    334   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         335  +
        /* OperationErrorGenerator.kt:318 */
  294    336   
        match self {
  295         -
            Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner),
  296         -
            Self::InvalidEndpointError(_inner) => ::std::option::Option::Some(_inner),
  297         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         337  +
            /* OperationErrorGenerator.kt:321 */
         338  +
            Self::InternalServerError(_inner) =>
         339  +
            /* OperationErrorGenerator.kt:283 */
         340  +
            {
         341  +
                ::std::option::Option::Some(_inner)
         342  +
            }
         343  +
            ,
         344  +
            /* OperationErrorGenerator.kt:321 */
         345  +
            Self::InvalidEndpointError(_inner) =>
         346  +
            /* OperationErrorGenerator.kt:283 */
         347  +
            {
         348  +
                ::std::option::Option::Some(_inner)
         349  +
            }
         350  +
            ,
         351  +
            /* OperationErrorGenerator.kt:326 */
         352  +
            Self::Unhandled(_inner) => {
         353  +
                /* OperationErrorGenerator.kt:279 */
         354  +
                ::std::option::Option::Some(&*_inner.source)
         355  +
                /* OperationErrorGenerator.kt:326 */
         356  +
            } /* OperationErrorGenerator.kt:318 */
  298    357   
        }
         358  +
        /* OperationErrorGenerator.kt:270 */
  299    359   
    }
         360  +
    /* OperationErrorGenerator.kt:269 */
  300    361   
}
         362  +
/* OperationErrorGenerator.kt:133 */
  301    363   
impl ::std::fmt::Display for ListGlobalTablesError {
         364  +
    /* OperationErrorGenerator.kt:134 */
  302    365   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         366  +
        /* OperationErrorGenerator.kt:318 */
  303    367   
        match self {
  304         -
            Self::InternalServerError(_inner) => _inner.fmt(f),
  305         -
            Self::InvalidEndpointError(_inner) => _inner.fmt(f),
         368  +
            /* OperationErrorGenerator.kt:321 */
         369  +
            Self::InternalServerError(_inner) =>
         370  +
            /* OperationErrorGenerator.kt:151 */
         371  +
            {
         372  +
                _inner.fmt(f)
         373  +
            }
         374  +
            ,
         375  +
            /* OperationErrorGenerator.kt:321 */
         376  +
            Self::InvalidEndpointError(_inner) =>
         377  +
            /* OperationErrorGenerator.kt:151 */
         378  +
            {
         379  +
                _inner.fmt(f)
         380  +
            }
         381  +
            ,
         382  +
            /* OperationErrorGenerator.kt:326 */
  306    383   
            Self::Unhandled(_inner) => {
         384  +
                /* OperationErrorGenerator.kt:139 */
  307    385   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  308    386   
                    write!(f, "unhandled error ({code})")
  309    387   
                } else {
  310    388   
                    f.write_str("unhandled error")
  311    389   
                }
         390  +
                /* OperationErrorGenerator.kt:326 */
         391  +
            } /* OperationErrorGenerator.kt:318 */
  312    392   
        }
         393  +
        /* OperationErrorGenerator.kt:134 */
  313    394   
    }
  314         -
    }
         395  +
    /* OperationErrorGenerator.kt:133 */
  315    396   
}
         397  +
/* OperationErrorGenerator.kt:182 */
  316    398   
impl ::aws_smithy_types::retry::ProvideErrorKind for ListGlobalTablesError {
         399  +
    /* OperationErrorGenerator.kt:186 */
  317    400   
    fn code(&self) -> ::std::option::Option<&str> {
         401  +
        /* OperationErrorGenerator.kt:187 */
  318    402   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         403  +
        /* OperationErrorGenerator.kt:186 */
  319    404   
    }
         405  +
    /* OperationErrorGenerator.kt:190 */
  320    406   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         407  +
        /* OperationErrorGenerator.kt:197 */
  321    408   
        ::std::option::Option::None
         409  +
        /* OperationErrorGenerator.kt:190 */
  322    410   
    }
         411  +
    /* OperationErrorGenerator.kt:182 */
  323    412   
}
         413  +
/* OperationErrorGenerator.kt:163 */
  324    414   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for ListGlobalTablesError {
         415  +
    /* OperationErrorGenerator.kt:164 */
  325    416   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         417  +
        /* OperationErrorGenerator.kt:318 */
  326    418   
        match self {
  327         -
            Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  328         -
            Self::InvalidEndpointError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  329         -
            Self::Unhandled(_inner) => &_inner.meta,
         419  +
            /* OperationErrorGenerator.kt:321 */
         420  +
            Self::InternalServerError(_inner) =>
         421  +
            /* OperationErrorGenerator.kt:169 */
         422  +
            {
         423  +
                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
         424  +
            }
         425  +
            ,
         426  +
            /* OperationErrorGenerator.kt:321 */
         427  +
            Self::InvalidEndpointError(_inner) =>
         428  +
            /* OperationErrorGenerator.kt:169 */
         429  +
            {
         430  +
                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
         431  +
            }
         432  +
            ,
         433  +
            /* OperationErrorGenerator.kt:326 */
         434  +
            Self::Unhandled(_inner) => {
         435  +
                /* OperationErrorGenerator.kt:168 */
         436  +
                &_inner.meta
         437  +
                /* OperationErrorGenerator.kt:326 */
         438  +
            } /* OperationErrorGenerator.kt:318 */
  330    439   
        }
         440  +
        /* OperationErrorGenerator.kt:164 */
  331    441   
    }
         442  +
    /* OperationErrorGenerator.kt:163 */
  332    443   
}
         444  +
/* OperationErrorGenerator.kt:109 */
  333    445   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for ListGlobalTablesError {
         446  +
    /* OperationErrorGenerator.kt:110 */
  334    447   
    fn create_unhandled_error(
  335    448   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  336    449   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  337    450   
    ) -> Self {
         451  +
        /* OperationErrorGenerator.kt:121 */
  338    452   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  339    453   
            source,
  340    454   
            meta: meta.unwrap_or_default(),
  341    455   
        })
         456  +
        /* OperationErrorGenerator.kt:110 */
  342    457   
    }
         458  +
    /* OperationErrorGenerator.kt:109 */
  343    459   
}
  344    460   
         461  +
/* CodegenDelegator.kt:255 */
  345    462   
pub use crate::operation::list_global_tables::_list_global_tables_output::ListGlobalTablesOutput;
  346    463   
         464  +
/* CodegenDelegator.kt:255 */
  347    465   
pub use crate::operation::list_global_tables::_list_global_tables_input::ListGlobalTablesInput;
  348    466   
         467  +
/* RustModule.kt:172 */
  349    468   
mod _list_global_tables_input;
  350    469   
         470  +
/* RustModule.kt:172 */
  351    471   
mod _list_global_tables_output;
  352    472   
  353         -
/// Builders
         473  +
/// /* CodegenDelegator.kt:51 */Builders
  354    474   
pub mod builders;

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/list_global_tables/_list_global_tables_input.rs

@@ -1,1 +100,166 @@
    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 ListGlobalTablesInput {
    6         -
    /// <p>The first global table name that this operation will evaluate.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct ListGlobalTablesInput {
           9  +
    /// /* StructureGenerator.kt:231 */<p>The first global table name that this operation will evaluate.</p>
    7     10   
    pub exclusive_start_global_table_name: ::std::option::Option<::std::string::String>,
    8         -
    /// <p>The maximum number of table names to return, if the parameter is not specified DynamoDB defaults to 100.</p>
          11  +
    /// /* StructureGenerator.kt:231 */<p>The maximum number of table names to return, if the parameter is not specified DynamoDB defaults to 100.</p>
    9     12   
    /// <p>If the number of global tables DynamoDB finds reaches this limit, it stops the operation and returns the table names collected up to that point, with a table name in the <code>LastEvaluatedGlobalTableName</code> to apply in a subsequent operation to the <code>ExclusiveStartGlobalTableName</code> parameter.</p>
   10     13   
    pub limit: ::std::option::Option<i32>,
   11         -
    /// <p>Lists the global tables in a specific Region.</p>
          14  +
    /// /* StructureGenerator.kt:231 */<p>Lists the global tables in a specific Region.</p>
   12     15   
    pub region_name: ::std::option::Option<::std::string::String>,
          16  +
    /* StructureGenerator.kt:201 */
   13     17   
}
          18  +
/* StructureGenerator.kt:135 */
   14     19   
impl ListGlobalTablesInput {
   15         -
    /// <p>The first global table name that this operation will evaluate.</p>
          20  +
    /// /* StructureGenerator.kt:231 */<p>The first global table name that this operation will evaluate.</p>
          21  +
    /* StructureGenerator.kt:166 */
   16     22   
    pub fn exclusive_start_global_table_name(&self) -> ::std::option::Option<&str> {
          23  +
        /* StructureGenerator.kt:169 */
   17     24   
        self.exclusive_start_global_table_name.as_deref()
          25  +
        /* StructureGenerator.kt:166 */
   18     26   
    }
   19         -
    /// <p>The maximum number of table names to return, if the parameter is not specified DynamoDB defaults to 100.</p>
          27  +
    /// /* StructureGenerator.kt:231 */<p>The maximum number of table names to return, if the parameter is not specified DynamoDB defaults to 100.</p>
   20     28   
    /// <p>If the number of global tables DynamoDB finds reaches this limit, it stops the operation and returns the table names collected up to that point, with a table name in the <code>LastEvaluatedGlobalTableName</code> to apply in a subsequent operation to the <code>ExclusiveStartGlobalTableName</code> parameter.</p>
          29  +
    /* StructureGenerator.kt:166 */
   21     30   
    pub fn limit(&self) -> ::std::option::Option<i32> {
          31  +
        /* StructureGenerator.kt:168 */
   22     32   
        self.limit
          33  +
        /* StructureGenerator.kt:166 */
   23     34   
    }
   24         -
    /// <p>Lists the global tables in a specific Region.</p>
          35  +
    /// /* StructureGenerator.kt:231 */<p>Lists the global tables in a specific Region.</p>
          36  +
    /* StructureGenerator.kt:166 */
   25     37   
    pub fn region_name(&self) -> ::std::option::Option<&str> {
          38  +
        /* StructureGenerator.kt:169 */
   26     39   
        self.region_name.as_deref()
          40  +
        /* StructureGenerator.kt:166 */
   27     41   
    }
          42  +
    /* StructureGenerator.kt:135 */
   28     43   
}
          44  +
/* ClientCodegenVisitor.kt:237 */
   29     45   
impl ListGlobalTablesInput {
   30         -
    /// Creates a new builder-style object to manufacture [`ListGlobalTablesInput`](crate::operation::list_global_tables::ListGlobalTablesInput).
          46  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ListGlobalTablesInput`](crate::operation::list_global_tables::ListGlobalTablesInput).
          47  +
    /* BuilderGenerator.kt:175 */
   31     48   
    pub fn builder() -> crate::operation::list_global_tables::builders::ListGlobalTablesInputBuilder {
          49  +
        /* BuilderGenerator.kt:176 */
   32     50   
        crate::operation::list_global_tables::builders::ListGlobalTablesInputBuilder::default()
          51  +
        /* BuilderGenerator.kt:175 */
   33     52   
    }
          53  +
    /* ClientCodegenVisitor.kt:237 */
   34     54   
}
   35     55   
   36         -
/// A builder for [`ListGlobalTablesInput`](crate::operation::list_global_tables::ListGlobalTablesInput).
          56  +
/// /* BuilderGenerator.kt:342 */A builder for [`ListGlobalTablesInput`](crate::operation::list_global_tables::ListGlobalTablesInput).
          57  +
/* RustType.kt:516 */
   37     58   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          59  +
/* RustType.kt:516 */
   38     60   
#[non_exhaustive]
          61  +
/* BuilderGenerator.kt:345 */
   39     62   
pub struct ListGlobalTablesInputBuilder {
   40         -
    pub(crate) exclusive_start_global_table_name: ::std::option::Option<::std::string::String>,
   41         -
    pub(crate) limit: ::std::option::Option<i32>,
   42         -
    pub(crate) region_name: ::std::option::Option<::std::string::String>,
          63  +
    /* BuilderGenerator.kt:275 */ pub(crate) exclusive_start_global_table_name: ::std::option::Option<::std::string::String>,
          64  +
    /* BuilderGenerator.kt:275 */ pub(crate) limit: ::std::option::Option<i32>,
          65  +
    /* BuilderGenerator.kt:275 */ pub(crate) region_name: ::std::option::Option<::std::string::String>,
          66  +
    /* BuilderGenerator.kt:345 */
   43     67   
}
          68  +
/* BuilderGenerator.kt:355 */
   44     69   
impl ListGlobalTablesInputBuilder {
   45         -
    /// <p>The first global table name that this operation will evaluate.</p>
          70  +
    /// /* BuilderGenerator.kt:286 */<p>The first global table name that this operation will evaluate.</p>
          71  +
    /* BuilderGenerator.kt:291 */
   46     72   
    pub fn exclusive_start_global_table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          73  +
        /* BuilderGenerator.kt:292 */
   47     74   
        self.exclusive_start_global_table_name = ::std::option::Option::Some(input.into());
          75  +
        /* BuilderGenerator.kt:293 */
   48     76   
        self
          77  +
        /* BuilderGenerator.kt:291 */
   49     78   
    }
   50         -
    /// <p>The first global table name that this operation will evaluate.</p>
          79  +
    /// /* BuilderGenerator.kt:312 */<p>The first global table name that this operation will evaluate.</p>
          80  +
    /* BuilderGenerator.kt:314 */
   51     81   
    pub fn set_exclusive_start_global_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          82  +
        /* BuilderGenerator.kt:315 */
   52     83   
        self.exclusive_start_global_table_name = input;
   53     84   
        self
          85  +
        /* BuilderGenerator.kt:314 */
   54     86   
    }
   55         -
    /// <p>The first global table name that this operation will evaluate.</p>
          87  +
    /// /* BuilderGenerator.kt:334 */<p>The first global table name that this operation will evaluate.</p>
          88  +
    /* BuilderGenerator.kt:336 */
   56     89   
    pub fn get_exclusive_start_global_table_name(&self) -> &::std::option::Option<::std::string::String> {
          90  +
        /* BuilderGenerator.kt:337 */
   57     91   
        &self.exclusive_start_global_table_name
          92  +
        /* BuilderGenerator.kt:336 */
   58     93   
    }
   59         -
    /// <p>The maximum number of table names to return, if the parameter is not specified DynamoDB defaults to 100.</p>
          94  +
    /// /* BuilderGenerator.kt:286 */<p>The maximum number of table names to return, if the parameter is not specified DynamoDB defaults to 100.</p>
   60     95   
    /// <p>If the number of global tables DynamoDB finds reaches this limit, it stops the operation and returns the table names collected up to that point, with a table name in the <code>LastEvaluatedGlobalTableName</code> to apply in a subsequent operation to the <code>ExclusiveStartGlobalTableName</code> parameter.</p>
          96  +
    /* BuilderGenerator.kt:291 */
   61     97   
    pub fn limit(mut self, input: i32) -> Self {
          98  +
        /* BuilderGenerator.kt:292 */
   62     99   
        self.limit = ::std::option::Option::Some(input);
         100  +
        /* BuilderGenerator.kt:293 */
   63    101   
        self
         102  +
        /* BuilderGenerator.kt:291 */
   64    103   
    }
   65         -
    /// <p>The maximum number of table names to return, if the parameter is not specified DynamoDB defaults to 100.</p>
         104  +
    /// /* BuilderGenerator.kt:312 */<p>The maximum number of table names to return, if the parameter is not specified DynamoDB defaults to 100.</p>
   66    105   
    /// <p>If the number of global tables DynamoDB finds reaches this limit, it stops the operation and returns the table names collected up to that point, with a table name in the <code>LastEvaluatedGlobalTableName</code> to apply in a subsequent operation to the <code>ExclusiveStartGlobalTableName</code> parameter.</p>
         106  +
    /* BuilderGenerator.kt:314 */
   67    107   
    pub fn set_limit(mut self, input: ::std::option::Option<i32>) -> Self {
         108  +
        /* BuilderGenerator.kt:315 */
   68    109   
        self.limit = input;
   69    110   
        self
         111  +
        /* BuilderGenerator.kt:314 */
   70    112   
    }
   71         -
    /// <p>The maximum number of table names to return, if the parameter is not specified DynamoDB defaults to 100.</p>
         113  +
    /// /* BuilderGenerator.kt:334 */<p>The maximum number of table names to return, if the parameter is not specified DynamoDB defaults to 100.</p>
   72    114   
    /// <p>If the number of global tables DynamoDB finds reaches this limit, it stops the operation and returns the table names collected up to that point, with a table name in the <code>LastEvaluatedGlobalTableName</code> to apply in a subsequent operation to the <code>ExclusiveStartGlobalTableName</code> parameter.</p>
         115  +
    /* BuilderGenerator.kt:336 */
   73    116   
    pub fn get_limit(&self) -> &::std::option::Option<i32> {
         117  +
        /* BuilderGenerator.kt:337 */
   74    118   
        &self.limit
         119  +
        /* BuilderGenerator.kt:336 */
   75    120   
    }
   76         -
    /// <p>Lists the global tables in a specific Region.</p>
         121  +
    /// /* BuilderGenerator.kt:286 */<p>Lists the global tables in a specific Region.</p>
         122  +
    /* BuilderGenerator.kt:291 */
   77    123   
    pub fn region_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         124  +
        /* BuilderGenerator.kt:292 */
   78    125   
        self.region_name = ::std::option::Option::Some(input.into());
         126  +
        /* BuilderGenerator.kt:293 */
   79    127   
        self
         128  +
        /* BuilderGenerator.kt:291 */
   80    129   
    }
   81         -
    /// <p>Lists the global tables in a specific Region.</p>
         130  +
    /// /* BuilderGenerator.kt:312 */<p>Lists the global tables in a specific Region.</p>
         131  +
    /* BuilderGenerator.kt:314 */
   82    132   
    pub fn set_region_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         133  +
        /* BuilderGenerator.kt:315 */
   83    134   
        self.region_name = input;
   84    135   
        self
         136  +
        /* BuilderGenerator.kt:314 */
   85    137   
    }
   86         -
    /// <p>Lists the global tables in a specific Region.</p>
         138  +
    /// /* BuilderGenerator.kt:334 */<p>Lists the global tables in a specific Region.</p>
         139  +
    /* BuilderGenerator.kt:336 */
   87    140   
    pub fn get_region_name(&self) -> &::std::option::Option<::std::string::String> {
         141  +
        /* BuilderGenerator.kt:337 */
   88    142   
        &self.region_name
         143  +
        /* BuilderGenerator.kt:336 */
   89    144   
    }
   90         -
    /// Consumes the builder and constructs a [`ListGlobalTablesInput`](crate::operation::list_global_tables::ListGlobalTablesInput).
         145  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ListGlobalTablesInput`](crate::operation::list_global_tables::ListGlobalTablesInput).
         146  +
    /* BuilderGenerator.kt:253 */
   91    147   
    pub fn build(
   92    148   
        self,
   93    149   
    ) -> ::std::result::Result<crate::operation::list_global_tables::ListGlobalTablesInput, ::aws_smithy_types::error::operation::BuildError> {
   94         -
        ::std::result::Result::Ok(crate::operation::list_global_tables::ListGlobalTablesInput {
         150  +
        /* BuilderGenerator.kt:254 */
         151  +
        ::std::result::Result::Ok(
         152  +
            /* BuilderGenerator.kt:477 */
         153  +
            crate::operation::list_global_tables::ListGlobalTablesInput {
         154  +
                /* BuilderGenerator.kt:481 */
   95    155   
                exclusive_start_global_table_name: self.exclusive_start_global_table_name,
         156  +
                /* BuilderGenerator.kt:481 */
   96    157   
                limit: self.limit,
         158  +
                /* BuilderGenerator.kt:481 */
   97    159   
                region_name: self.region_name,
   98         -
        })
         160  +
                /* BuilderGenerator.kt:477 */
         161  +
            }, /* BuilderGenerator.kt:254 */
         162  +
        )
         163  +
        /* BuilderGenerator.kt:253 */
   99    164   
    }
         165  +
    /* BuilderGenerator.kt:355 */
  100    166   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/list_global_tables/_list_global_tables_output.rs

@@ -1,1 +79,132 @@
    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 ListGlobalTablesOutput {
    6         -
    /// <p>List of global table names.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct ListGlobalTablesOutput {
           9  +
    /// /* StructureGenerator.kt:231 */<p>List of global table names.</p>
    7     10   
    pub global_tables: ::std::option::Option<::std::vec::Vec<crate::types::GlobalTable>>,
    8         -
    /// <p>Last evaluated global table name.</p>
          11  +
    /// /* StructureGenerator.kt:231 */<p>Last evaluated global table name.</p>
    9     12   
    pub last_evaluated_global_table_name: ::std::option::Option<::std::string::String>,
          13  +
    /* StructureGenerator.kt:201 */
   10     14   
}
          15  +
/* StructureGenerator.kt:135 */
   11     16   
impl ListGlobalTablesOutput {
   12         -
    /// <p>List of global table names.</p>
   13         -
    ///
   14         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.global_tables.is_none()`.
          17  +
    /// /* StructureGenerator.kt:231 */<p>List of global table names.</p>
          18  +
    /// /* StructureGenerator.kt:162 */
          19  +
    /// /* 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 `.global_tables.is_none()`.
          20  +
    /* StructureGenerator.kt:166 */
   15     21   
    pub fn global_tables(&self) -> &[crate::types::GlobalTable] {
   16         -
        self.global_tables.as_deref().unwrap_or_default()
          22  +
        /* StructureGenerator.kt:169 */
          23  +
        self.global_tables
          24  +
            .as_deref()
          25  +
            /* StructureGenerator.kt:175 */
          26  +
            .unwrap_or_default()
          27  +
        /* StructureGenerator.kt:166 */
   17     28   
    }
   18         -
    /// <p>Last evaluated global table name.</p>
          29  +
    /// /* StructureGenerator.kt:231 */<p>Last evaluated global table name.</p>
          30  +
    /* StructureGenerator.kt:166 */
   19     31   
    pub fn last_evaluated_global_table_name(&self) -> ::std::option::Option<&str> {
          32  +
        /* StructureGenerator.kt:169 */
   20     33   
        self.last_evaluated_global_table_name.as_deref()
          34  +
        /* StructureGenerator.kt:166 */
   21     35   
    }
          36  +
    /* StructureGenerator.kt:135 */
   22     37   
}
          38  +
/* ClientCodegenVisitor.kt:237 */
   23     39   
impl ListGlobalTablesOutput {
   24         -
    /// Creates a new builder-style object to manufacture [`ListGlobalTablesOutput`](crate::operation::list_global_tables::ListGlobalTablesOutput).
          40  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ListGlobalTablesOutput`](crate::operation::list_global_tables::ListGlobalTablesOutput).
          41  +
    /* BuilderGenerator.kt:175 */
   25     42   
    pub fn builder() -> crate::operation::list_global_tables::builders::ListGlobalTablesOutputBuilder {
          43  +
        /* BuilderGenerator.kt:176 */
   26     44   
        crate::operation::list_global_tables::builders::ListGlobalTablesOutputBuilder::default()
          45  +
        /* BuilderGenerator.kt:175 */
   27     46   
    }
          47  +
    /* ClientCodegenVisitor.kt:237 */
   28     48   
}
   29     49   
   30         -
/// A builder for [`ListGlobalTablesOutput`](crate::operation::list_global_tables::ListGlobalTablesOutput).
          50  +
/// /* BuilderGenerator.kt:342 */A builder for [`ListGlobalTablesOutput`](crate::operation::list_global_tables::ListGlobalTablesOutput).
          51  +
/* RustType.kt:516 */
   31     52   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          53  +
/* RustType.kt:516 */
   32     54   
#[non_exhaustive]
          55  +
/* BuilderGenerator.kt:345 */
   33     56   
pub struct ListGlobalTablesOutputBuilder {
   34         -
    pub(crate) global_tables: ::std::option::Option<::std::vec::Vec<crate::types::GlobalTable>>,
          57  +
    /* BuilderGenerator.kt:275 */ pub(crate) global_tables: ::std::option::Option<::std::vec::Vec<crate::types::GlobalTable>>,
          58  +
    /* BuilderGenerator.kt:275 */
   35     59   
    pub(crate) last_evaluated_global_table_name: ::std::option::Option<::std::string::String>,
          60  +
    /* BuilderGenerator.kt:345 */
   36     61   
}
          62  +
/* BuilderGenerator.kt:355 */
   37     63   
impl ListGlobalTablesOutputBuilder {
   38         -
    /// Appends an item to `global_tables`.
          64  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `global_tables`.
          65  +
    /* BuilderGenerator.kt:411 */
   39     66   
    ///
   40         -
    /// To override the contents of this collection use [`set_global_tables`](Self::set_global_tables).
          67  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_global_tables`](Self::set_global_tables).
          68  +
    /* BuilderGenerator.kt:413 */
   41     69   
    ///
   42         -
    /// <p>List of global table names.</p>
          70  +
    /// /* BuilderGenerator.kt:414 */<p>List of global table names.</p>
          71  +
    /* BuilderGenerator.kt:418 */
   43     72   
    pub fn global_tables(mut self, input: crate::types::GlobalTable) -> Self {
          73  +
        /* BuilderGenerator.kt:419 */
   44     74   
        let mut v = self.global_tables.unwrap_or_default();
   45     75   
        v.push(input);
   46     76   
        self.global_tables = ::std::option::Option::Some(v);
   47     77   
        self
          78  +
        /* BuilderGenerator.kt:418 */
   48     79   
    }
   49         -
    /// <p>List of global table names.</p>
          80  +
    /// /* BuilderGenerator.kt:312 */<p>List of global table names.</p>
          81  +
    /* BuilderGenerator.kt:314 */
   50     82   
    pub fn set_global_tables(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::GlobalTable>>) -> Self {
          83  +
        /* BuilderGenerator.kt:315 */
   51     84   
        self.global_tables = input;
   52     85   
        self
          86  +
        /* BuilderGenerator.kt:314 */
   53     87   
    }
   54         -
    /// <p>List of global table names.</p>
          88  +
    /// /* BuilderGenerator.kt:334 */<p>List of global table names.</p>
          89  +
    /* BuilderGenerator.kt:336 */
   55     90   
    pub fn get_global_tables(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::GlobalTable>> {
          91  +
        /* BuilderGenerator.kt:337 */
   56     92   
        &self.global_tables
          93  +
        /* BuilderGenerator.kt:336 */
   57     94   
    }
   58         -
    /// <p>Last evaluated global table name.</p>
          95  +
    /// /* BuilderGenerator.kt:286 */<p>Last evaluated global table name.</p>
          96  +
    /* BuilderGenerator.kt:291 */
   59     97   
    pub fn last_evaluated_global_table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          98  +
        /* BuilderGenerator.kt:292 */
   60     99   
        self.last_evaluated_global_table_name = ::std::option::Option::Some(input.into());
         100  +
        /* BuilderGenerator.kt:293 */
   61    101   
        self
         102  +
        /* BuilderGenerator.kt:291 */
   62    103   
    }
   63         -
    /// <p>Last evaluated global table name.</p>
         104  +
    /// /* BuilderGenerator.kt:312 */<p>Last evaluated global table name.</p>
         105  +
    /* BuilderGenerator.kt:314 */
   64    106   
    pub fn set_last_evaluated_global_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         107  +
        /* BuilderGenerator.kt:315 */
   65    108   
        self.last_evaluated_global_table_name = input;
   66    109   
        self
         110  +
        /* BuilderGenerator.kt:314 */
   67    111   
    }
   68         -
    /// <p>Last evaluated global table name.</p>
         112  +
    /// /* BuilderGenerator.kt:334 */<p>Last evaluated global table name.</p>
         113  +
    /* BuilderGenerator.kt:336 */
   69    114   
    pub fn get_last_evaluated_global_table_name(&self) -> &::std::option::Option<::std::string::String> {
         115  +
        /* BuilderGenerator.kt:337 */
   70    116   
        &self.last_evaluated_global_table_name
         117  +
        /* BuilderGenerator.kt:336 */
   71    118   
    }
   72         -
    /// Consumes the builder and constructs a [`ListGlobalTablesOutput`](crate::operation::list_global_tables::ListGlobalTablesOutput).
         119  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ListGlobalTablesOutput`](crate::operation::list_global_tables::ListGlobalTablesOutput).
         120  +
    /* BuilderGenerator.kt:253 */
   73    121   
    pub fn build(self) -> crate::operation::list_global_tables::ListGlobalTablesOutput {
         122  +
        /* BuilderGenerator.kt:477 */
   74    123   
        crate::operation::list_global_tables::ListGlobalTablesOutput {
   75         -
            global_tables: self.global_tables,
         124  +
            /* BuilderGenerator.kt:481 */ global_tables: self.global_tables,
         125  +
            /* BuilderGenerator.kt:481 */
   76    126   
            last_evaluated_global_table_name: self.last_evaluated_global_table_name,
         127  +
            /* BuilderGenerator.kt:477 */
   77    128   
        }
         129  +
        /* BuilderGenerator.kt:253 */
   78    130   
    }
         131  +
    /* BuilderGenerator.kt:355 */
   79    132   
}