Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943

Files changed:

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/update_continuous_backups/_update_continuous_backups_output.rs

@@ -1,1 +49,85 @@
    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 UpdateContinuousBackupsOutput {
    6         -
    /// <p>Represents the continuous backups and point in time recovery settings on the table.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct UpdateContinuousBackupsOutput {
           9  +
    /// /* StructureGenerator.kt:231 */<p>Represents the continuous backups and point in time recovery settings on the table.</p>
    7     10   
    pub continuous_backups_description: ::std::option::Option<crate::types::ContinuousBackupsDescription>,
          11  +
    /* StructureGenerator.kt:201 */
    8     12   
}
          13  +
/* StructureGenerator.kt:135 */
    9     14   
impl UpdateContinuousBackupsOutput {
   10         -
    /// <p>Represents the continuous backups and point in time recovery settings on the table.</p>
          15  +
    /// /* StructureGenerator.kt:231 */<p>Represents the continuous backups and point in time recovery settings on the table.</p>
          16  +
    /* StructureGenerator.kt:166 */
   11     17   
    pub fn continuous_backups_description(&self) -> ::std::option::Option<&crate::types::ContinuousBackupsDescription> {
          18  +
        /* StructureGenerator.kt:170 */
   12     19   
        self.continuous_backups_description.as_ref()
          20  +
        /* StructureGenerator.kt:166 */
   13     21   
    }
          22  +
    /* StructureGenerator.kt:135 */
   14     23   
}
          24  +
/* ClientCodegenVisitor.kt:237 */
   15     25   
impl UpdateContinuousBackupsOutput {
   16         -
    /// Creates a new builder-style object to manufacture [`UpdateContinuousBackupsOutput`](crate::operation::update_continuous_backups::UpdateContinuousBackupsOutput).
          26  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`UpdateContinuousBackupsOutput`](crate::operation::update_continuous_backups::UpdateContinuousBackupsOutput).
          27  +
    /* BuilderGenerator.kt:175 */
   17     28   
    pub fn builder() -> crate::operation::update_continuous_backups::builders::UpdateContinuousBackupsOutputBuilder {
          29  +
        /* BuilderGenerator.kt:176 */
   18     30   
        crate::operation::update_continuous_backups::builders::UpdateContinuousBackupsOutputBuilder::default()
          31  +
        /* BuilderGenerator.kt:175 */
   19     32   
    }
          33  +
    /* ClientCodegenVisitor.kt:237 */
   20     34   
}
   21     35   
   22         -
/// A builder for [`UpdateContinuousBackupsOutput`](crate::operation::update_continuous_backups::UpdateContinuousBackupsOutput).
          36  +
/// /* BuilderGenerator.kt:342 */A builder for [`UpdateContinuousBackupsOutput`](crate::operation::update_continuous_backups::UpdateContinuousBackupsOutput).
          37  +
/* RustType.kt:516 */
   23     38   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          39  +
/* RustType.kt:516 */
   24     40   
#[non_exhaustive]
          41  +
/* BuilderGenerator.kt:345 */
   25     42   
pub struct UpdateContinuousBackupsOutputBuilder {
          43  +
    /* BuilderGenerator.kt:275 */
   26     44   
    pub(crate) continuous_backups_description: ::std::option::Option<crate::types::ContinuousBackupsDescription>,
          45  +
    /* BuilderGenerator.kt:345 */
   27     46   
}
          47  +
/* BuilderGenerator.kt:355 */
   28     48   
impl UpdateContinuousBackupsOutputBuilder {
   29         -
    /// <p>Represents the continuous backups and point in time recovery settings on the table.</p>
          49  +
    /// /* BuilderGenerator.kt:286 */<p>Represents the continuous backups and point in time recovery settings on the table.</p>
          50  +
    /* BuilderGenerator.kt:291 */
   30     51   
    pub fn continuous_backups_description(mut self, input: crate::types::ContinuousBackupsDescription) -> Self {
          52  +
        /* BuilderGenerator.kt:292 */
   31     53   
        self.continuous_backups_description = ::std::option::Option::Some(input);
          54  +
        /* BuilderGenerator.kt:293 */
   32     55   
        self
          56  +
        /* BuilderGenerator.kt:291 */
   33     57   
    }
   34         -
    /// <p>Represents the continuous backups and point in time recovery settings on the table.</p>
          58  +
    /// /* BuilderGenerator.kt:312 */<p>Represents the continuous backups and point in time recovery settings on the table.</p>
          59  +
    /* BuilderGenerator.kt:314 */
   35     60   
    pub fn set_continuous_backups_description(mut self, input: ::std::option::Option<crate::types::ContinuousBackupsDescription>) -> Self {
          61  +
        /* BuilderGenerator.kt:315 */
   36     62   
        self.continuous_backups_description = input;
   37     63   
        self
          64  +
        /* BuilderGenerator.kt:314 */
   38     65   
    }
   39         -
    /// <p>Represents the continuous backups and point in time recovery settings on the table.</p>
          66  +
    /// /* BuilderGenerator.kt:334 */<p>Represents the continuous backups and point in time recovery settings on the table.</p>
          67  +
    /* BuilderGenerator.kt:336 */
   40     68   
    pub fn get_continuous_backups_description(&self) -> &::std::option::Option<crate::types::ContinuousBackupsDescription> {
          69  +
        /* BuilderGenerator.kt:337 */
   41     70   
        &self.continuous_backups_description
          71  +
        /* BuilderGenerator.kt:336 */
   42     72   
    }
   43         -
    /// Consumes the builder and constructs a [`UpdateContinuousBackupsOutput`](crate::operation::update_continuous_backups::UpdateContinuousBackupsOutput).
          73  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`UpdateContinuousBackupsOutput`](crate::operation::update_continuous_backups::UpdateContinuousBackupsOutput).
          74  +
    /* BuilderGenerator.kt:253 */
   44     75   
    pub fn build(self) -> crate::operation::update_continuous_backups::UpdateContinuousBackupsOutput {
          76  +
        /* BuilderGenerator.kt:477 */
   45     77   
        crate::operation::update_continuous_backups::UpdateContinuousBackupsOutput {
          78  +
            /* BuilderGenerator.kt:481 */
   46     79   
            continuous_backups_description: self.continuous_backups_description,
          80  +
            /* BuilderGenerator.kt:477 */
   47     81   
        }
          82  +
        /* BuilderGenerator.kt:253 */
   48     83   
    }
          84  +
    /* BuilderGenerator.kt:355 */
   49     85   
}

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

@@ -1,1 +141,159 @@
    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::update_continuous_backups::_update_continuous_backups_output::UpdateContinuousBackupsOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::update_continuous_backups::_update_continuous_backups_input::UpdateContinuousBackupsInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::update_continuous_backups::builders::UpdateContinuousBackupsInputBuilder {
    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::update_continuous_backups::UpdateContinuousBackupsOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::update_continuous_backups::UpdateContinuousBackupsError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.update_continuous_backups();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `UpdateContinuousBackups`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `UpdateContinuousBackups`.
   24     27   
///
   25         -
/// <p><code>UpdateContinuousBackups</code> enables or disables point in time recovery for the specified table. A successful <code>UpdateContinuousBackups</code> call returns the current <code>ContinuousBackupsDescription</code>. Continuous backups are <code>ENABLED</code> on all tables at table creation. If point in time recovery is enabled, <code>PointInTimeRecoveryStatus</code> will be set to ENABLED.</p>
          28  +
/// /* FluentBuilderGenerator.kt:130 */<p><code>UpdateContinuousBackups</code> enables or disables point in time recovery for the specified table. A successful <code>UpdateContinuousBackups</code> call returns the current <code>ContinuousBackupsDescription</code>. Continuous backups are <code>ENABLED</code> on all tables at table creation. If point in time recovery is enabled, <code>PointInTimeRecoveryStatus</code> will be set to ENABLED.</p>
   26     29   
/// <p>Once continuous backups and point in time recovery are enabled, you can restore to any point in time within <code>EarliestRestorableDateTime</code> and <code>LatestRestorableDateTime</code>.</p>
   27     30   
/// <p><code>LatestRestorableDateTime</code> is typically 5 minutes before the current time. You can restore your table to any point in time during the last 35 days.</p>
          31  +
/* RustType.kt:516 */
   28     32   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          33  +
/* FluentBuilderGenerator.kt:270 */
   29     34   
pub struct UpdateContinuousBackupsFluentBuilder {
   30     35   
    handle: ::std::sync::Arc<crate::client::Handle>,
   31     36   
    inner: crate::operation::update_continuous_backups::builders::UpdateContinuousBackupsInputBuilder,
   32     37   
    config_override: ::std::option::Option<crate::config::Builder>,
   33     38   
}
          39  +
/* FluentBuilderGenerator.kt:381 */
   34     40   
impl
   35     41   
    crate::client::customize::internal::CustomizableSend<
   36     42   
        crate::operation::update_continuous_backups::UpdateContinuousBackupsOutput,
   37     43   
        crate::operation::update_continuous_backups::UpdateContinuousBackupsError,
   38     44   
    > for UpdateContinuousBackupsFluentBuilder
   39     45   
{
   40     46   
    fn send(
   41     47   
        self,
   42     48   
        config_override: crate::config::Builder,
   43     49   
    ) -> crate::client::customize::internal::BoxFuture<
   44     50   
        crate::client::customize::internal::SendResult<
   45     51   
            crate::operation::update_continuous_backups::UpdateContinuousBackupsOutput,
   46     52   
            crate::operation::update_continuous_backups::UpdateContinuousBackupsError,
   47     53   
        >,
   48     54   
    > {
   49     55   
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
   50     56   
    }
   51     57   
}
          58  +
/* FluentBuilderGenerator.kt:282 */
   52     59   
impl UpdateContinuousBackupsFluentBuilder {
          60  +
    /* FluentBuilderGenerator.kt:288 */
   53     61   
    /// Creates a new `UpdateContinuousBackupsFluentBuilder`.
   54     62   
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
   55     63   
        Self {
   56     64   
            handle,
   57     65   
            inner: ::std::default::Default::default(),
   58     66   
            config_override: ::std::option::Option::None,
   59     67   
        }
   60     68   
    }
          69  +
    /* FluentBuilderGenerator.kt:301 */
   61     70   
    /// Access the UpdateContinuousBackups as a reference.
   62     71   
    pub fn as_input(&self) -> &crate::operation::update_continuous_backups::builders::UpdateContinuousBackupsInputBuilder {
   63     72   
        &self.inner
   64     73   
    }
          74  +
    /* FluentBuilderGenerator.kt:145 */
   65     75   
    /// Sends the request and returns the response.
   66     76   
    ///
   67     77   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   68     78   
    /// can be matched against.
   69     79   
    ///
   70     80   
    /// By default, any retryable failures will be retried twice. Retry behavior
   71     81   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   72     82   
    /// set when configuring the client.
   73     83   
    pub async fn send(
   74     84   
        self,
   75     85   
    ) -> ::std::result::Result<
   76     86   
        crate::operation::update_continuous_backups::UpdateContinuousBackupsOutput,
   77     87   
        ::aws_smithy_runtime_api::client::result::SdkError<
   78     88   
            crate::operation::update_continuous_backups::UpdateContinuousBackupsError,
   79     89   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   80     90   
        >,
   81     91   
    > {
   82     92   
        let input = self
   83     93   
            .inner
   84     94   
            .build()
   85     95   
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
   86     96   
        let runtime_plugins = crate::operation::update_continuous_backups::UpdateContinuousBackups::operation_runtime_plugins(
   87     97   
            self.handle.runtime_plugins.clone(),
   88     98   
            &self.handle.conf,
   89     99   
            self.config_override,
   90    100   
        );
   91    101   
        crate::operation::update_continuous_backups::UpdateContinuousBackups::orchestrate(&runtime_plugins, input).await
   92    102   
    }
   93    103   
   94    104   
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
   95    105   
    pub fn customize(
   96    106   
        self,
   97    107   
    ) -> crate::client::customize::CustomizableOperation<
   98    108   
        crate::operation::update_continuous_backups::UpdateContinuousBackupsOutput,
   99    109   
        crate::operation::update_continuous_backups::UpdateContinuousBackupsError,
  100    110   
        Self,
  101    111   
    > {
  102    112   
        crate::client::customize::CustomizableOperation::new(self)
  103    113   
    }
         114  +
    /* FluentBuilderGenerator.kt:315 */
  104    115   
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
  105    116   
        self.set_config_override(::std::option::Option::Some(config_override.into()));
  106    117   
        self
  107    118   
    }
  108    119   
  109    120   
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
  110    121   
        self.config_override = config_override;
  111    122   
        self
  112    123   
    }
  113         -
    /// <p>The name of the table.</p>
         124  +
    /// /* FluentBuilderGenerator.kt:498 */<p>The name of the table.</p>
         125  +
    /* FluentBuilderGenerator.kt:500 */
  114    126   
    pub fn table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  115    127   
        self.inner = self.inner.table_name(input.into());
  116    128   
        self
  117    129   
    }
  118         -
    /// <p>The name of the table.</p>
         130  +
    /// /* FluentBuilderGenerator.kt:498 */<p>The name of the table.</p>
         131  +
    /* FluentBuilderGenerator.kt:500 */
  119    132   
    pub fn set_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  120    133   
        self.inner = self.inner.set_table_name(input);
  121    134   
        self
  122    135   
    }
  123         -
    /// <p>The name of the table.</p>
         136  +
    /// /* FluentBuilderGenerator.kt:518 */<p>The name of the table.</p>
         137  +
    /* FluentBuilderGenerator.kt:520 */
  124    138   
    pub fn get_table_name(&self) -> &::std::option::Option<::std::string::String> {
  125    139   
        self.inner.get_table_name()
  126    140   
    }
  127         -
    /// <p>Represents the settings used to enable point in time recovery.</p>
         141  +
    /// /* FluentBuilderGenerator.kt:498 */<p>Represents the settings used to enable point in time recovery.</p>
         142  +
    /* FluentBuilderGenerator.kt:500 */
  128    143   
    pub fn point_in_time_recovery_specification(mut self, input: crate::types::PointInTimeRecoverySpecification) -> Self {
  129    144   
        self.inner = self.inner.point_in_time_recovery_specification(input);
  130    145   
        self
  131    146   
    }
  132         -
    /// <p>Represents the settings used to enable point in time recovery.</p>
         147  +
    /// /* FluentBuilderGenerator.kt:498 */<p>Represents the settings used to enable point in time recovery.</p>
         148  +
    /* FluentBuilderGenerator.kt:500 */
  133    149   
    pub fn set_point_in_time_recovery_specification(mut self, input: ::std::option::Option<crate::types::PointInTimeRecoverySpecification>) -> Self {
  134    150   
        self.inner = self.inner.set_point_in_time_recovery_specification(input);
  135    151   
        self
  136    152   
    }
  137         -
    /// <p>Represents the settings used to enable point in time recovery.</p>
         153  +
    /// /* FluentBuilderGenerator.kt:518 */<p>Represents the settings used to enable point in time recovery.</p>
         154  +
    /* FluentBuilderGenerator.kt:520 */
  138    155   
    pub fn get_point_in_time_recovery_specification(&self) -> &::std::option::Option<crate::types::PointInTimeRecoverySpecification> {
  139    156   
        self.inner.get_point_in_time_recovery_specification()
  140    157   
    }
         158  +
    /* FluentBuilderGenerator.kt:282 */
  141    159   
}

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

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/update_contributor_insights/_update_contributor_insights_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 UpdateContributorInsightsInput {
    6         -
    /// <p>The name of the table.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct UpdateContributorInsightsInput {
           9  +
    /// /* StructureGenerator.kt:231 */<p>The name of the table.</p>
    7     10   
    pub table_name: ::std::option::Option<::std::string::String>,
    8         -
    /// <p>The global secondary index name, if applicable.</p>
          11  +
    /// /* StructureGenerator.kt:231 */<p>The global secondary index name, if applicable.</p>
    9     12   
    pub index_name: ::std::option::Option<::std::string::String>,
   10         -
    /// <p>Represents the contributor insights action.</p>
          13  +
    /// /* StructureGenerator.kt:231 */<p>Represents the contributor insights action.</p>
   11     14   
    pub contributor_insights_action: ::std::option::Option<crate::types::ContributorInsightsAction>,
          15  +
    /* StructureGenerator.kt:201 */
   12     16   
}
          17  +
/* StructureGenerator.kt:135 */
   13     18   
impl UpdateContributorInsightsInput {
   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>The global secondary index name, if applicable.</p>
          26  +
    /// /* StructureGenerator.kt:231 */<p>The global secondary index name, if applicable.</p>
          27  +
    /* StructureGenerator.kt:166 */
   19     28   
    pub fn index_name(&self) -> ::std::option::Option<&str> {
          29  +
        /* StructureGenerator.kt:169 */
   20     30   
        self.index_name.as_deref()
          31  +
        /* StructureGenerator.kt:166 */
   21     32   
    }
   22         -
    /// <p>Represents the contributor insights action.</p>
          33  +
    /// /* StructureGenerator.kt:231 */<p>Represents the contributor insights action.</p>
          34  +
    /* StructureGenerator.kt:166 */
   23     35   
    pub fn contributor_insights_action(&self) -> ::std::option::Option<&crate::types::ContributorInsightsAction> {
          36  +
        /* StructureGenerator.kt:170 */
   24     37   
        self.contributor_insights_action.as_ref()
          38  +
        /* StructureGenerator.kt:166 */
   25     39   
    }
          40  +
    /* StructureGenerator.kt:135 */
   26     41   
}
          42  +
/* ClientCodegenVisitor.kt:237 */
   27     43   
impl UpdateContributorInsightsInput {
   28         -
    /// Creates a new builder-style object to manufacture [`UpdateContributorInsightsInput`](crate::operation::update_contributor_insights::UpdateContributorInsightsInput).
          44  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`UpdateContributorInsightsInput`](crate::operation::update_contributor_insights::UpdateContributorInsightsInput).
          45  +
    /* BuilderGenerator.kt:175 */
   29     46   
    pub fn builder() -> crate::operation::update_contributor_insights::builders::UpdateContributorInsightsInputBuilder {
          47  +
        /* BuilderGenerator.kt:176 */
   30     48   
        crate::operation::update_contributor_insights::builders::UpdateContributorInsightsInputBuilder::default()
          49  +
        /* BuilderGenerator.kt:175 */
   31     50   
    }
          51  +
    /* ClientCodegenVisitor.kt:237 */
   32     52   
}
   33     53   
   34         -
/// A builder for [`UpdateContributorInsightsInput`](crate::operation::update_contributor_insights::UpdateContributorInsightsInput).
          54  +
/// /* BuilderGenerator.kt:342 */A builder for [`UpdateContributorInsightsInput`](crate::operation::update_contributor_insights::UpdateContributorInsightsInput).
          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 UpdateContributorInsightsInputBuilder {
   38         -
    pub(crate) table_name: ::std::option::Option<::std::string::String>,
   39         -
    pub(crate) index_name: ::std::option::Option<::std::string::String>,
          61  +
    /* BuilderGenerator.kt:275 */ pub(crate) table_name: ::std::option::Option<::std::string::String>,
          62  +
    /* BuilderGenerator.kt:275 */ pub(crate) index_name: ::std::option::Option<::std::string::String>,
          63  +
    /* BuilderGenerator.kt:275 */
   40     64   
    pub(crate) contributor_insights_action: ::std::option::Option<crate::types::ContributorInsightsAction>,
          65  +
    /* BuilderGenerator.kt:345 */
   41     66   
}
          67  +
/* BuilderGenerator.kt:355 */
   42     68   
impl UpdateContributorInsightsInputBuilder {
   43         -
    /// <p>The name of the table.</p>
   44         -
    /// This field is required.
          69  +
    /// /* BuilderGenerator.kt:286 */<p>The name of the table.</p>
          70  +
    /// /* BuilderGenerator.kt:288 */This field is required.
          71  +
    /* BuilderGenerator.kt:291 */
   45     72   
    pub fn table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          73  +
        /* BuilderGenerator.kt:292 */
   46     74   
        self.table_name = ::std::option::Option::Some(input.into());
          75  +
        /* BuilderGenerator.kt:293 */
   47     76   
        self
          77  +
        /* BuilderGenerator.kt:291 */
   48     78   
    }
   49         -
    /// <p>The name of the table.</p>
          79  +
    /// /* BuilderGenerator.kt:312 */<p>The name of the table.</p>
          80  +
    /* BuilderGenerator.kt:314 */
   50     81   
    pub fn set_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          82  +
        /* BuilderGenerator.kt:315 */
   51     83   
        self.table_name = input;
   52     84   
        self
          85  +
        /* BuilderGenerator.kt:314 */
   53     86   
    }
   54         -
    /// <p>The name of the table.</p>
          87  +
    /// /* BuilderGenerator.kt:334 */<p>The name of the table.</p>
          88  +
    /* BuilderGenerator.kt:336 */
   55     89   
    pub fn get_table_name(&self) -> &::std::option::Option<::std::string::String> {
          90  +
        /* BuilderGenerator.kt:337 */
   56     91   
        &self.table_name
          92  +
        /* BuilderGenerator.kt:336 */
   57     93   
    }
   58         -
    /// <p>The global secondary index name, if applicable.</p>
          94  +
    /// /* BuilderGenerator.kt:286 */<p>The global secondary index name, if applicable.</p>
          95  +
    /* BuilderGenerator.kt:291 */
   59     96   
    pub fn index_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          97  +
        /* BuilderGenerator.kt:292 */
   60     98   
        self.index_name = ::std::option::Option::Some(input.into());
          99  +
        /* BuilderGenerator.kt:293 */
   61    100   
        self
         101  +
        /* BuilderGenerator.kt:291 */
   62    102   
    }
   63         -
    /// <p>The global secondary index name, if applicable.</p>
         103  +
    /// /* BuilderGenerator.kt:312 */<p>The global secondary index name, if applicable.</p>
         104  +
    /* BuilderGenerator.kt:314 */
   64    105   
    pub fn set_index_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         106  +
        /* BuilderGenerator.kt:315 */
   65    107   
        self.index_name = input;
   66    108   
        self
         109  +
        /* BuilderGenerator.kt:314 */
   67    110   
    }
   68         -
    /// <p>The global secondary index name, if applicable.</p>
         111  +
    /// /* BuilderGenerator.kt:334 */<p>The global secondary index name, if applicable.</p>
         112  +
    /* BuilderGenerator.kt:336 */
   69    113   
    pub fn get_index_name(&self) -> &::std::option::Option<::std::string::String> {
         114  +
        /* BuilderGenerator.kt:337 */
   70    115   
        &self.index_name
         116  +
        /* BuilderGenerator.kt:336 */
   71    117   
    }
   72         -
    /// <p>Represents the contributor insights action.</p>
   73         -
    /// This field is required.
         118  +
    /// /* BuilderGenerator.kt:286 */<p>Represents the contributor insights action.</p>
         119  +
    /// /* BuilderGenerator.kt:288 */This field is required.
         120  +
    /* BuilderGenerator.kt:291 */
   74    121   
    pub fn contributor_insights_action(mut self, input: crate::types::ContributorInsightsAction) -> Self {
         122  +
        /* BuilderGenerator.kt:292 */
   75    123   
        self.contributor_insights_action = ::std::option::Option::Some(input);
         124  +
        /* BuilderGenerator.kt:293 */
   76    125   
        self
         126  +
        /* BuilderGenerator.kt:291 */
   77    127   
    }
   78         -
    /// <p>Represents the contributor insights action.</p>
         128  +
    /// /* BuilderGenerator.kt:312 */<p>Represents the contributor insights action.</p>
         129  +
    /* BuilderGenerator.kt:314 */
   79    130   
    pub fn set_contributor_insights_action(mut self, input: ::std::option::Option<crate::types::ContributorInsightsAction>) -> Self {
         131  +
        /* BuilderGenerator.kt:315 */
   80    132   
        self.contributor_insights_action = input;
   81    133   
        self
         134  +
        /* BuilderGenerator.kt:314 */
   82    135   
    }
   83         -
    /// <p>Represents the contributor insights action.</p>
         136  +
    /// /* BuilderGenerator.kt:334 */<p>Represents the contributor insights action.</p>
         137  +
    /* BuilderGenerator.kt:336 */
   84    138   
    pub fn get_contributor_insights_action(&self) -> &::std::option::Option<crate::types::ContributorInsightsAction> {
         139  +
        /* BuilderGenerator.kt:337 */
   85    140   
        &self.contributor_insights_action
         141  +
        /* BuilderGenerator.kt:336 */
   86    142   
    }
   87         -
    /// Consumes the builder and constructs a [`UpdateContributorInsightsInput`](crate::operation::update_contributor_insights::UpdateContributorInsightsInput).
         143  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`UpdateContributorInsightsInput`](crate::operation::update_contributor_insights::UpdateContributorInsightsInput).
         144  +
    /* BuilderGenerator.kt:253 */
   88    145   
    pub fn build(
   89    146   
        self,
   90    147   
    ) -> ::std::result::Result<
   91    148   
        crate::operation::update_contributor_insights::UpdateContributorInsightsInput,
   92    149   
        ::aws_smithy_types::error::operation::BuildError,
   93    150   
    > {
   94         -
        ::std::result::Result::Ok(crate::operation::update_contributor_insights::UpdateContributorInsightsInput {
   95         -
            table_name: self.table_name,
   96         -
            index_name: self.index_name,
   97         -
            contributor_insights_action: self.contributor_insights_action,
   98         -
        })
         151  +
        /* BuilderGenerator.kt:254 */
         152  +
        ::std::result::Result::Ok(
         153  +
            /* BuilderGenerator.kt:477 */
         154  +
            crate::operation::update_contributor_insights::UpdateContributorInsightsInput {
         155  +
                /* BuilderGenerator.kt:481 */ table_name: self.table_name,
         156  +
                /* BuilderGenerator.kt:481 */
         157  +
                index_name: self.index_name,
         158  +
                /* BuilderGenerator.kt:481 */
         159  +
                contributor_insights_action: self.contributor_insights_action,
         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/update_contributor_insights/_update_contributor_insights_output.rs

@@ -1,1 +93,156 @@
    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 UpdateContributorInsightsOutput {
    6         -
    /// <p>The name of the table.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct UpdateContributorInsightsOutput {
           9  +
    /// /* StructureGenerator.kt:231 */<p>The name of the table.</p>
    7     10   
    pub table_name: ::std::option::Option<::std::string::String>,
    8         -
    /// <p>The name of the global secondary index, if applicable.</p>
          11  +
    /// /* StructureGenerator.kt:231 */<p>The name of the global secondary index, if applicable.</p>
    9     12   
    pub index_name: ::std::option::Option<::std::string::String>,
   10         -
    /// <p>The status of contributor insights</p>
          13  +
    /// /* StructureGenerator.kt:231 */<p>The status of contributor insights</p>
   11     14   
    pub contributor_insights_status: ::std::option::Option<crate::types::ContributorInsightsStatus>,
          15  +
    /* StructureGenerator.kt:201 */
   12     16   
}
          17  +
/* StructureGenerator.kt:135 */
   13     18   
impl UpdateContributorInsightsOutput {
   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>The name of the global secondary index, if applicable.</p>
          26  +
    /// /* StructureGenerator.kt:231 */<p>The name of the global secondary index, if applicable.</p>
          27  +
    /* StructureGenerator.kt:166 */
   19     28   
    pub fn index_name(&self) -> ::std::option::Option<&str> {
          29  +
        /* StructureGenerator.kt:169 */
   20     30   
        self.index_name.as_deref()
          31  +
        /* StructureGenerator.kt:166 */
   21     32   
    }
   22         -
    /// <p>The status of contributor insights</p>
          33  +
    /// /* StructureGenerator.kt:231 */<p>The status of contributor insights</p>
          34  +
    /* StructureGenerator.kt:166 */
   23     35   
    pub fn contributor_insights_status(&self) -> ::std::option::Option<&crate::types::ContributorInsightsStatus> {
          36  +
        /* StructureGenerator.kt:170 */
   24     37   
        self.contributor_insights_status.as_ref()
          38  +
        /* StructureGenerator.kt:166 */
   25     39   
    }
          40  +
    /* StructureGenerator.kt:135 */
   26     41   
}
          42  +
/* ClientCodegenVisitor.kt:237 */
   27     43   
impl UpdateContributorInsightsOutput {
   28         -
    /// Creates a new builder-style object to manufacture [`UpdateContributorInsightsOutput`](crate::operation::update_contributor_insights::UpdateContributorInsightsOutput).
          44  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`UpdateContributorInsightsOutput`](crate::operation::update_contributor_insights::UpdateContributorInsightsOutput).
          45  +
    /* BuilderGenerator.kt:175 */
   29     46   
    pub fn builder() -> crate::operation::update_contributor_insights::builders::UpdateContributorInsightsOutputBuilder {
          47  +
        /* BuilderGenerator.kt:176 */
   30     48   
        crate::operation::update_contributor_insights::builders::UpdateContributorInsightsOutputBuilder::default()
          49  +
        /* BuilderGenerator.kt:175 */
   31     50   
    }
          51  +
    /* ClientCodegenVisitor.kt:237 */
   32     52   
}
   33     53   
   34         -
/// A builder for [`UpdateContributorInsightsOutput`](crate::operation::update_contributor_insights::UpdateContributorInsightsOutput).
          54  +
/// /* BuilderGenerator.kt:342 */A builder for [`UpdateContributorInsightsOutput`](crate::operation::update_contributor_insights::UpdateContributorInsightsOutput).
          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 UpdateContributorInsightsOutputBuilder {
   38         -
    pub(crate) table_name: ::std::option::Option<::std::string::String>,
   39         -
    pub(crate) index_name: ::std::option::Option<::std::string::String>,
          61  +
    /* BuilderGenerator.kt:275 */ pub(crate) table_name: ::std::option::Option<::std::string::String>,
          62  +
    /* BuilderGenerator.kt:275 */ pub(crate) index_name: ::std::option::Option<::std::string::String>,
          63  +
    /* BuilderGenerator.kt:275 */
   40     64   
    pub(crate) contributor_insights_status: ::std::option::Option<crate::types::ContributorInsightsStatus>,
          65  +
    /* BuilderGenerator.kt:345 */
   41     66   
}
          67  +
/* BuilderGenerator.kt:355 */
   42     68   
impl UpdateContributorInsightsOutputBuilder {
   43         -
    /// <p>The name of the table.</p>
          69  +
    /// /* BuilderGenerator.kt:286 */<p>The name of the table.</p>
          70  +
    /* BuilderGenerator.kt:291 */
   44     71   
    pub fn table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          72  +
        /* BuilderGenerator.kt:292 */
   45     73   
        self.table_name = ::std::option::Option::Some(input.into());
          74  +
        /* BuilderGenerator.kt:293 */
   46     75   
        self
          76  +
        /* BuilderGenerator.kt:291 */
   47     77   
    }
   48         -
    /// <p>The name of the table.</p>
          78  +
    /// /* BuilderGenerator.kt:312 */<p>The name of the table.</p>
          79  +
    /* BuilderGenerator.kt:314 */
   49     80   
    pub fn set_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          81  +
        /* BuilderGenerator.kt:315 */
   50     82   
        self.table_name = input;
   51     83   
        self
          84  +
        /* BuilderGenerator.kt:314 */
   52     85   
    }
   53         -
    /// <p>The name of the table.</p>
          86  +
    /// /* BuilderGenerator.kt:334 */<p>The name of the table.</p>
          87  +
    /* BuilderGenerator.kt:336 */
   54     88   
    pub fn get_table_name(&self) -> &::std::option::Option<::std::string::String> {
          89  +
        /* BuilderGenerator.kt:337 */
   55     90   
        &self.table_name
          91  +
        /* BuilderGenerator.kt:336 */
   56     92   
    }
   57         -
    /// <p>The name of the global secondary index, if applicable.</p>
          93  +
    /// /* BuilderGenerator.kt:286 */<p>The name of the global secondary index, if applicable.</p>
          94  +
    /* BuilderGenerator.kt:291 */
   58     95   
    pub fn index_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          96  +
        /* BuilderGenerator.kt:292 */
   59     97   
        self.index_name = ::std::option::Option::Some(input.into());
          98  +
        /* BuilderGenerator.kt:293 */
   60     99   
        self
         100  +
        /* BuilderGenerator.kt:291 */
   61    101   
    }
   62         -
    /// <p>The name of the global secondary index, if applicable.</p>
         102  +
    /// /* BuilderGenerator.kt:312 */<p>The name of the global secondary index, if applicable.</p>
         103  +
    /* BuilderGenerator.kt:314 */
   63    104   
    pub fn set_index_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         105  +
        /* BuilderGenerator.kt:315 */
   64    106   
        self.index_name = input;
   65    107   
        self
         108  +
        /* BuilderGenerator.kt:314 */
   66    109   
    }
   67         -
    /// <p>The name of the global secondary index, if applicable.</p>
         110  +
    /// /* BuilderGenerator.kt:334 */<p>The name of the global secondary index, if applicable.</p>
         111  +
    /* BuilderGenerator.kt:336 */
   68    112   
    pub fn get_index_name(&self) -> &::std::option::Option<::std::string::String> {
         113  +
        /* BuilderGenerator.kt:337 */
   69    114   
        &self.index_name
         115  +
        /* BuilderGenerator.kt:336 */
   70    116   
    }
   71         -
    /// <p>The status of contributor insights</p>
         117  +
    /// /* BuilderGenerator.kt:286 */<p>The status of contributor insights</p>
         118  +
    /* BuilderGenerator.kt:291 */
   72    119   
    pub fn contributor_insights_status(mut self, input: crate::types::ContributorInsightsStatus) -> Self {
         120  +
        /* BuilderGenerator.kt:292 */
   73    121   
        self.contributor_insights_status = ::std::option::Option::Some(input);
         122  +
        /* BuilderGenerator.kt:293 */
   74    123   
        self
         124  +
        /* BuilderGenerator.kt:291 */
   75    125   
    }
   76         -
    /// <p>The status of contributor insights</p>
         126  +
    /// /* BuilderGenerator.kt:312 */<p>The status of contributor insights</p>
         127  +
    /* BuilderGenerator.kt:314 */
   77    128   
    pub fn set_contributor_insights_status(mut self, input: ::std::option::Option<crate::types::ContributorInsightsStatus>) -> Self {
         129  +
        /* BuilderGenerator.kt:315 */
   78    130   
        self.contributor_insights_status = input;
   79    131   
        self
         132  +
        /* BuilderGenerator.kt:314 */
   80    133   
    }
   81         -
    /// <p>The status of contributor insights</p>
         134  +
    /// /* BuilderGenerator.kt:334 */<p>The status of contributor insights</p>
         135  +
    /* BuilderGenerator.kt:336 */
   82    136   
    pub fn get_contributor_insights_status(&self) -> &::std::option::Option<crate::types::ContributorInsightsStatus> {
         137  +
        /* BuilderGenerator.kt:337 */
   83    138   
        &self.contributor_insights_status
         139  +
        /* BuilderGenerator.kt:336 */
   84    140   
    }
   85         -
    /// Consumes the builder and constructs a [`UpdateContributorInsightsOutput`](crate::operation::update_contributor_insights::UpdateContributorInsightsOutput).
         141  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`UpdateContributorInsightsOutput`](crate::operation::update_contributor_insights::UpdateContributorInsightsOutput).
         142  +
    /* BuilderGenerator.kt:253 */
   86    143   
    pub fn build(self) -> crate::operation::update_contributor_insights::UpdateContributorInsightsOutput {
         144  +
        /* BuilderGenerator.kt:477 */
   87    145   
        crate::operation::update_contributor_insights::UpdateContributorInsightsOutput {
   88         -
            table_name: self.table_name,
         146  +
            /* BuilderGenerator.kt:481 */ table_name: self.table_name,
         147  +
            /* BuilderGenerator.kt:481 */
   89    148   
            index_name: self.index_name,
         149  +
            /* BuilderGenerator.kt:481 */
   90    150   
            contributor_insights_status: self.contributor_insights_status,
         151  +
            /* BuilderGenerator.kt:477 */
   91    152   
        }
         153  +
        /* BuilderGenerator.kt:253 */
   92    154   
    }
         155  +
    /* BuilderGenerator.kt:355 */
   93    156   
}

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

@@ -1,1 +153,174 @@
    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::update_contributor_insights::_update_contributor_insights_output::UpdateContributorInsightsOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::update_contributor_insights::_update_contributor_insights_input::UpdateContributorInsightsInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::update_contributor_insights::builders::UpdateContributorInsightsInputBuilder {
    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::update_contributor_insights::UpdateContributorInsightsOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::update_contributor_insights::UpdateContributorInsightsError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.update_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 `UpdateContributorInsights`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `UpdateContributorInsights`.
   24     27   
///
   25         -
/// <p>Updates the status for contributor insights for a specific table or index.</p>
          28  +
/// /* FluentBuilderGenerator.kt:130 */<p>Updates the status for contributor insights for a specific table or index.</p>
          29  +
/* RustType.kt:516 */
   26     30   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          31  +
/* FluentBuilderGenerator.kt:270 */
   27     32   
pub struct UpdateContributorInsightsFluentBuilder {
   28     33   
    handle: ::std::sync::Arc<crate::client::Handle>,
   29     34   
    inner: crate::operation::update_contributor_insights::builders::UpdateContributorInsightsInputBuilder,
   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::update_contributor_insights::UpdateContributorInsightsOutput,
   35     41   
        crate::operation::update_contributor_insights::UpdateContributorInsightsError,
   36     42   
    > for UpdateContributorInsightsFluentBuilder
   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::update_contributor_insights::UpdateContributorInsightsOutput,
   44     50   
            crate::operation::update_contributor_insights::UpdateContributorInsightsError,
   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 UpdateContributorInsightsFluentBuilder {
          58  +
    /* FluentBuilderGenerator.kt:288 */
   51     59   
    /// Creates a new `UpdateContributorInsightsFluentBuilder`.
   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 UpdateContributorInsights as a reference.
   60     69   
    pub fn as_input(&self) -> &crate::operation::update_contributor_insights::builders::UpdateContributorInsightsInputBuilder {
   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::update_contributor_insights::UpdateContributorInsightsOutput,
   75     85   
        ::aws_smithy_runtime_api::client::result::SdkError<
   76     86   
            crate::operation::update_contributor_insights::UpdateContributorInsightsError,
   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::update_contributor_insights::UpdateContributorInsights::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::update_contributor_insights::UpdateContributorInsights::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::update_contributor_insights::UpdateContributorInsightsOutput,
   97    107   
        crate::operation::update_contributor_insights::UpdateContributorInsightsError,
   98    108   
        Self,
   99    109   
    > {
  100    110   
        crate::client::customize::CustomizableOperation::new(self)
  101    111   
    }
         112  +
    /* FluentBuilderGenerator.kt:315 */
  102    113   
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
  103    114   
        self.set_config_override(::std::option::Option::Some(config_override.into()));
  104    115   
        self
  105    116   
    }
  106    117   
  107    118   
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
  108    119   
        self.config_override = config_override;
  109    120   
        self
  110    121   
    }
  111         -
    /// <p>The name of the table.</p>
         122  +
    /// /* FluentBuilderGenerator.kt:498 */<p>The name of the table.</p>
         123  +
    /* FluentBuilderGenerator.kt:500 */
  112    124   
    pub fn table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  113    125   
        self.inner = self.inner.table_name(input.into());
  114    126   
        self
  115    127   
    }
  116         -
    /// <p>The name of the table.</p>
         128  +
    /// /* FluentBuilderGenerator.kt:498 */<p>The name of the table.</p>
         129  +
    /* FluentBuilderGenerator.kt:500 */
  117    130   
    pub fn set_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  118    131   
        self.inner = self.inner.set_table_name(input);
  119    132   
        self
  120    133   
    }
  121         -
    /// <p>The name of the table.</p>
         134  +
    /// /* FluentBuilderGenerator.kt:518 */<p>The name of the table.</p>
         135  +
    /* FluentBuilderGenerator.kt:520 */
  122    136   
    pub fn get_table_name(&self) -> &::std::option::Option<::std::string::String> {
  123    137   
        self.inner.get_table_name()
  124    138   
    }
  125         -
    /// <p>The global secondary index name, if applicable.</p>
         139  +
    /// /* FluentBuilderGenerator.kt:498 */<p>The global secondary index name, if applicable.</p>
         140  +
    /* FluentBuilderGenerator.kt:500 */
  126    141   
    pub fn index_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  127    142   
        self.inner = self.inner.index_name(input.into());
  128    143   
        self
  129    144   
    }
  130         -
    /// <p>The global secondary index name, if applicable.</p>
         145  +
    /// /* FluentBuilderGenerator.kt:498 */<p>The global secondary index name, if applicable.</p>
         146  +
    /* FluentBuilderGenerator.kt:500 */
  131    147   
    pub fn set_index_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  132    148   
        self.inner = self.inner.set_index_name(input);
  133    149   
        self
  134    150   
    }
  135         -
    /// <p>The global secondary index name, if applicable.</p>
         151  +
    /// /* FluentBuilderGenerator.kt:518 */<p>The global secondary index name, if applicable.</p>
         152  +
    /* FluentBuilderGenerator.kt:520 */
  136    153   
    pub fn get_index_name(&self) -> &::std::option::Option<::std::string::String> {
  137    154   
        self.inner.get_index_name()
  138    155   
    }
  139         -
    /// <p>Represents the contributor insights action.</p>
         156  +
    /// /* FluentBuilderGenerator.kt:498 */<p>Represents the contributor insights action.</p>
         157  +
    /* FluentBuilderGenerator.kt:500 */
  140    158   
    pub fn contributor_insights_action(mut self, input: crate::types::ContributorInsightsAction) -> Self {
  141    159   
        self.inner = self.inner.contributor_insights_action(input);
  142    160   
        self
  143    161   
    }
  144         -
    /// <p>Represents the contributor insights action.</p>
         162  +
    /// /* FluentBuilderGenerator.kt:498 */<p>Represents the contributor insights action.</p>
         163  +
    /* FluentBuilderGenerator.kt:500 */
  145    164   
    pub fn set_contributor_insights_action(mut self, input: ::std::option::Option<crate::types::ContributorInsightsAction>) -> Self {
  146    165   
        self.inner = self.inner.set_contributor_insights_action(input);
  147    166   
        self
  148    167   
    }
  149         -
    /// <p>Represents the contributor insights action.</p>
         168  +
    /// /* FluentBuilderGenerator.kt:518 */<p>Represents the contributor insights action.</p>
         169  +
    /* FluentBuilderGenerator.kt:520 */
  150    170   
    pub fn get_contributor_insights_action(&self) -> &::std::option::Option<crate::types::ContributorInsightsAction> {
  151    171   
        self.inner.get_contributor_insights_action()
  152    172   
    }
         173  +
    /* FluentBuilderGenerator.kt:282 */
  153    174   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/update_global_table.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 `UpdateGlobalTable`.
           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 UpdateGlobalTable;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl UpdateGlobalTable {
    7         -
    /// Creates a new `UpdateGlobalTable`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `UpdateGlobalTable`
          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::update_global_table::UpdateGlobalTableInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::update_global_table::UpdateGlobalTableOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::update_global_table::UpdateGlobalTableError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -57,66 +394,610 @@
   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 UpdateGlobalTable {
   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("UpdateGlobalTable");
   91    102   
   92    103   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   93    104   
            UpdateGlobalTableRequestSerializer,
   94    105   
        ));
   95    106   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
   96    107   
            UpdateGlobalTableResponseDeserializer,
   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   
            "UpdateGlobalTable",
  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("UpdateGlobalTable")
  117    128   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  118    129   
            .with_interceptor(UpdateGlobalTableEndpointParamsInterceptor)
  119    130   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  120    131   
                crate::operation::update_global_table::UpdateGlobalTableError,
  121    132   
            >::new())
  122    133   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  123    134   
                crate::operation::update_global_table::UpdateGlobalTableError,
  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 UpdateGlobalTableResponseDeserializer;
  132    144   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for UpdateGlobalTableResponseDeserializer {
  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_update_global_table::de_update_global_table_http_error(status, headers, body)
  145    157   
        } else {
  146    158   
            crate::protocol_serde::shape_update_global_table::de_update_global_table_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 UpdateGlobalTableRequestSerializer;
  153    166   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for UpdateGlobalTableRequestSerializer {
  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::update_global_table::UpdateGlobalTableInput>()
  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::update_global_table::UpdateGlobalTableInput,
  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::update_global_table::UpdateGlobalTableInput,
  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.UpdateGlobalTable",
  191    204   
            );
  192    205   
            builder
  193    206   
        };
  194    207   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_update_global_table::ser_update_global_table_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 UpdateGlobalTableEndpointParamsInterceptor;
  204    218   
  205    219   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UpdateGlobalTableEndpointParamsInterceptor {
  206    220   
    fn name(&self) -> &'static str {
  207    221   
        "UpdateGlobalTableEndpointParamsInterceptor"
  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::<UpdateGlobalTableInput>()
  223    237   
            .ok_or("failed to downcast to UpdateGlobalTableInput")?;
  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 `UpdateGlobalTableError` operation.
         253  +
/* RustType.kt:516 */
  238    254   
#[non_exhaustive]
         255  +
/* RustType.kt:516 */
  239    256   
#[derive(::std::fmt::Debug)]
  240         -
pub enum UpdateGlobalTableError {
  241         -
    /// <p>The specified global table does not exist.</p>
         257  +
pub /* OperationErrorGenerator.kt:81 */ enum UpdateGlobalTableError {
         258  +
    /// /* OperationErrorGenerator.kt:83 */<p>The specified global table does not exist.</p>
         259  +
    /* OperationErrorGenerator.kt:86 */
  242    260   
    GlobalTableNotFoundError(crate::types::error::GlobalTableNotFoundError),
  243         -
    /// <p>An error occurred on the server side.</p>
         261  +
    /// /* OperationErrorGenerator.kt:83 */<p>An error occurred on the server side.</p>
         262  +
    /* OperationErrorGenerator.kt:86 */
  244    263   
    InternalServerError(crate::types::error::InternalServerError),
         264  +
    /* OperationErrorGenerator.kt:83 */
  245    265   
    #[allow(missing_docs)] // documentation missing in model
         266  +
    /* OperationErrorGenerator.kt:86 */
  246    267   
    InvalidEndpointError(crate::types::error::InvalidEndpointError),
  247         -
    /// <p>The specified replica is already part of the global table.</p>
         268  +
    /// /* OperationErrorGenerator.kt:83 */<p>The specified replica is already part of the global table.</p>
         269  +
    /* OperationErrorGenerator.kt:86 */
  248    270   
    ReplicaAlreadyExistsError(crate::types::error::ReplicaAlreadyExistsError),
  249         -
    /// <p>The specified replica is no longer part of the global table.</p>
         271  +
    /// /* OperationErrorGenerator.kt:83 */<p>The specified replica is no longer part of the global table.</p>
         272  +
    /* OperationErrorGenerator.kt:86 */
  250    273   
    ReplicaNotFoundError(crate::types::error::ReplicaNotFoundError),
  251         -
    /// <p>A source table with the name <code>TableName</code> does not currently exist within the subscriber's account.</p>
         274  +
    /// /* OperationErrorGenerator.kt:83 */<p>A source table with the name <code>TableName</code> does not currently exist within the subscriber's account.</p>
         275  +
    /* OperationErrorGenerator.kt:86 */
  252    276   
    TableNotFoundError(crate::types::error::TableNotFoundError),
         277  +
    /* OperationErrorGenerator.kt:88 */
  253    278   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  254    279   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  255    280   
    variable wildcard pattern and check `.code()`:
  256    281   
     \
  257    282   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  258    283   
     \
  259    284   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-UpdateGlobalTableError) for what information is available for the error.")]
  260    285   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         286  +
    /* OperationErrorGenerator.kt:81 */
  261    287   
}
         288  +
/* OperationErrorGenerator.kt:218 */
  262    289   
impl UpdateGlobalTableError {
         290  +
    /* OperationErrorGenerator.kt:219 */
  263    291   
    /// Creates the `UpdateGlobalTableError::Unhandled` variant from any error type.
  264    292   
    pub fn unhandled(
  265    293   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  266    294   
    ) -> Self {
  267    295   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  268    296   
            source: err.into(),
  269    297   
            meta: ::std::default::Default::default(),
  270    298   
        })
  271    299   
    }
  272    300   
  273    301   
    /// Creates the `UpdateGlobalTableError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  274    302   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  275    303   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  276    304   
            source: err.clone().into(),
  277    305   
            meta: err,
  278    306   
        })
  279    307   
    }
  280         -
    ///
         308  +
    /// /* OperationErrorGenerator.kt:236 */
  281    309   
    /// Returns error metadata, which includes the error code, message,
  282    310   
    /// request ID, and potentially additional information.
  283    311   
    ///
         312  +
    /* OperationErrorGenerator.kt:242 */
  284    313   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         314  +
        /* OperationErrorGenerator.kt:243 */
  285    315   
        match self {
         316  +
            /* OperationErrorGenerator.kt:246 */
  286    317   
            Self::GlobalTableNotFoundError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         318  +
            /* OperationErrorGenerator.kt:246 */
  287    319   
            Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         320  +
            /* OperationErrorGenerator.kt:246 */
  288    321   
            Self::InvalidEndpointError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         322  +
            /* OperationErrorGenerator.kt:246 */
  289    323   
            Self::ReplicaAlreadyExistsError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         324  +
            /* OperationErrorGenerator.kt:246 */
  290    325   
            Self::ReplicaNotFoundError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         326  +
            /* OperationErrorGenerator.kt:246 */
  291    327   
            Self::TableNotFoundError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
  292         -
            Self::Unhandled(e) => &e.meta,
         328  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         329  +
            /* OperationErrorGenerator.kt:243 */
  293    330   
        }
         331  +
        /* OperationErrorGenerator.kt:242 */
  294    332   
    }
         333  +
    /* OperationErrorGenerator.kt:257 */
  295    334   
    /// Returns `true` if the error kind is `UpdateGlobalTableError::GlobalTableNotFoundError`.
         335  +
    /* OperationErrorGenerator.kt:258 */
  296    336   
    pub fn is_global_table_not_found_error(&self) -> bool {
         337  +
        /* OperationErrorGenerator.kt:259 */
  297    338   
        matches!(self, Self::GlobalTableNotFoundError(_))
         339  +
        /* OperationErrorGenerator.kt:258 */
  298    340   
    }
         341  +
    /* OperationErrorGenerator.kt:257 */
  299    342   
    /// Returns `true` if the error kind is `UpdateGlobalTableError::InternalServerError`.
         343  +
    /* OperationErrorGenerator.kt:258 */
  300    344   
    pub fn is_internal_server_error(&self) -> bool {
         345  +
        /* OperationErrorGenerator.kt:259 */
  301    346   
        matches!(self, Self::InternalServerError(_))
         347  +
        /* OperationErrorGenerator.kt:258 */
  302    348   
    }
         349  +
    /* OperationErrorGenerator.kt:257 */
  303    350   
    /// Returns `true` if the error kind is `UpdateGlobalTableError::InvalidEndpointError`.
         351  +
    /* OperationErrorGenerator.kt:258 */
  304    352   
    pub fn is_invalid_endpoint_error(&self) -> bool {
         353  +
        /* OperationErrorGenerator.kt:259 */
  305    354   
        matches!(self, Self::InvalidEndpointError(_))
         355  +
        /* OperationErrorGenerator.kt:258 */
  306    356   
    }
         357  +
    /* OperationErrorGenerator.kt:257 */
  307    358   
    /// Returns `true` if the error kind is `UpdateGlobalTableError::ReplicaAlreadyExistsError`.
         359  +
    /* OperationErrorGenerator.kt:258 */
  308    360   
    pub fn is_replica_already_exists_error(&self) -> bool {
         361  +
        /* OperationErrorGenerator.kt:259 */
  309    362   
        matches!(self, Self::ReplicaAlreadyExistsError(_))
         363  +
        /* OperationErrorGenerator.kt:258 */
  310    364   
    }
         365  +
    /* OperationErrorGenerator.kt:257 */
  311    366   
    /// Returns `true` if the error kind is `UpdateGlobalTableError::ReplicaNotFoundError`.
         367  +
    /* OperationErrorGenerator.kt:258 */
  312    368   
    pub fn is_replica_not_found_error(&self) -> bool {
         369  +
        /* OperationErrorGenerator.kt:259 */
  313    370   
        matches!(self, Self::ReplicaNotFoundError(_))
         371  +
        /* OperationErrorGenerator.kt:258 */
  314    372   
    }
         373  +
    /* OperationErrorGenerator.kt:257 */
  315    374   
    /// Returns `true` if the error kind is `UpdateGlobalTableError::TableNotFoundError`.
         375  +
    /* OperationErrorGenerator.kt:258 */
  316    376   
    pub fn is_table_not_found_error(&self) -> bool {
         377  +
        /* OperationErrorGenerator.kt:259 */
  317    378   
        matches!(self, Self::TableNotFoundError(_))
         379  +
        /* OperationErrorGenerator.kt:258 */
  318    380   
    }
         381  +
    /* OperationErrorGenerator.kt:218 */
  319    382   
}
         383  +
/* OperationErrorGenerator.kt:269 */
  320    384   
impl ::std::error::Error for UpdateGlobalTableError {
         385  +
    /* OperationErrorGenerator.kt:270 */
  321    386   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         387  +
        /* OperationErrorGenerator.kt:318 */
  322    388   
        match self {
  323         -
            Self::GlobalTableNotFoundError(_inner) => ::std::option::Option::Some(_inner),
  324         -
            Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner),
  325         -
            Self::InvalidEndpointError(_inner) => ::std::option::Option::Some(_inner),
  326         -
            Self::ReplicaAlreadyExistsError(_inner) => ::std::option::Option::Some(_inner),
  327         -
            Self::ReplicaNotFoundError(_inner) => ::std::option::Option::Some(_inner),
  328         -
            Self::TableNotFoundError(_inner) => ::std::option::Option::Some(_inner),
  329         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         389  +
            /* OperationErrorGenerator.kt:321 */
         390  +
            Self::GlobalTableNotFoundError(_inner) =>
         391  +
            /* OperationErrorGenerator.kt:283 */
         392  +
            {
         393  +
                ::std::option::Option::Some(_inner)
         394  +
            }
         395  +
            ,
         396  +
            /* OperationErrorGenerator.kt:321 */
         397  +
            Self::InternalServerError(_inner) =>
         398  +
            /* OperationErrorGenerator.kt:283 */
         399  +
            {
         400  +
                ::std::option::Option::Some(_inner)
         401  +
            }
         402  +
            ,
         403  +
            /* OperationErrorGenerator.kt:321 */
         404  +
            Self::InvalidEndpointError(_inner) =>
         405  +
            /* OperationErrorGenerator.kt:283 */
         406  +
            {
         407  +
                ::std::option::Option::Some(_inner)
         408  +
            }
         409  +
            ,
         410  +
            /* OperationErrorGenerator.kt:321 */
         411  +
            Self::ReplicaAlreadyExistsError(_inner) =>
         412  +
            /* OperationErrorGenerator.kt:283 */
         413  +
            {
         414  +
                ::std::option::Option::Some(_inner)
         415  +
            }
         416  +
            ,
         417  +
            /* OperationErrorGenerator.kt:321 */
         418  +
            Self::ReplicaNotFoundError(_inner) =>
         419  +
            /* OperationErrorGenerator.kt:283 */
         420  +
            {
         421  +
                ::std::option::Option::Some(_inner)
         422  +
            }
         423  +
            ,
         424  +
            /* OperationErrorGenerator.kt:321 */
         425  +
            Self::TableNotFoundError(_inner) =>
         426  +
            /* OperationErrorGenerator.kt:283 */
         427  +
            {
         428  +
                ::std::option::Option::Some(_inner)
         429  +
            }
         430  +
            ,
         431  +
            /* OperationErrorGenerator.kt:326 */
         432  +
            Self::Unhandled(_inner) => {
         433  +
                /* OperationErrorGenerator.kt:279 */
         434  +
                ::std::option::Option::Some(&*_inner.source)
         435  +
                /* OperationErrorGenerator.kt:326 */
         436  +
            } /* OperationErrorGenerator.kt:318 */
  330    437   
        }
         438  +
        /* OperationErrorGenerator.kt:270 */
  331    439   
    }
         440  +
    /* OperationErrorGenerator.kt:269 */
  332    441   
}
         442  +
/* OperationErrorGenerator.kt:133 */
  333    443   
impl ::std::fmt::Display for UpdateGlobalTableError {
         444  +
    /* OperationErrorGenerator.kt:134 */
  334    445   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         446  +
        /* OperationErrorGenerator.kt:318 */
  335    447   
        match self {
  336         -
            Self::GlobalTableNotFoundError(_inner) => _inner.fmt(f),
  337         -
            Self::InternalServerError(_inner) => _inner.fmt(f),
  338         -
            Self::InvalidEndpointError(_inner) => _inner.fmt(f),
  339         -
            Self::ReplicaAlreadyExistsError(_inner) => _inner.fmt(f),
  340         -
            Self::ReplicaNotFoundError(_inner) => _inner.fmt(f),
  341         -
            Self::TableNotFoundError(_inner) => _inner.fmt(f),
         448  +
            /* OperationErrorGenerator.kt:321 */
         449  +
            Self::GlobalTableNotFoundError(_inner) =>
         450  +
            /* OperationErrorGenerator.kt:151 */
         451  +
            {
         452  +
                _inner.fmt(f)
         453  +
            }
         454  +
            ,
         455  +
            /* OperationErrorGenerator.kt:321 */
         456  +
            Self::InternalServerError(_inner) =>
         457  +
            /* OperationErrorGenerator.kt:151 */
         458  +
            {
         459  +
                _inner.fmt(f)
         460  +
            }
         461  +
            ,
         462  +
            /* OperationErrorGenerator.kt:321 */
         463  +
            Self::InvalidEndpointError(_inner) =>
         464  +
            /* OperationErrorGenerator.kt:151 */
         465  +
            {
         466  +
                _inner.fmt(f)
         467  +
            }
         468  +
            ,
         469  +
            /* OperationErrorGenerator.kt:321 */
         470  +
            Self::ReplicaAlreadyExistsError(_inner) =>
         471  +
            /* OperationErrorGenerator.kt:151 */
         472  +
            {
         473  +
                _inner.fmt(f)
         474  +
            }
         475  +
            ,
         476  +
            /* OperationErrorGenerator.kt:321 */
         477  +
            Self::ReplicaNotFoundError(_inner) =>
         478  +
            /* OperationErrorGenerator.kt:151 */
         479  +
            {
         480  +
                _inner.fmt(f)
         481  +
            }
         482  +
            ,
         483  +
            /* OperationErrorGenerator.kt:321 */
         484  +
            Self::TableNotFoundError(_inner) =>
         485  +
            /* OperationErrorGenerator.kt:151 */
         486  +
            {
         487  +
                _inner.fmt(f)
         488  +
            }
         489  +
            ,
         490  +
            /* OperationErrorGenerator.kt:326 */
  342    491   
            Self::Unhandled(_inner) => {
         492  +
                /* OperationErrorGenerator.kt:139 */
  343    493   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  344    494   
                    write!(f, "unhandled error ({code})")
  345    495   
                } else {
  346    496   
                    f.write_str("unhandled error")
  347    497   
                }
  348         -
            }
         498  +
                /* OperationErrorGenerator.kt:326 */
         499  +
            } /* OperationErrorGenerator.kt:318 */
  349    500   
        }
         501  +
        /* OperationErrorGenerator.kt:134 */
  350    502   
    }
         503  +
    /* OperationErrorGenerator.kt:133 */
  351    504   
}
         505  +
/* OperationErrorGenerator.kt:182 */
  352    506   
impl ::aws_smithy_types::retry::ProvideErrorKind for UpdateGlobalTableError {
         507  +
    /* OperationErrorGenerator.kt:186 */
  353    508   
    fn code(&self) -> ::std::option::Option<&str> {
         509  +
        /* OperationErrorGenerator.kt:187 */
  354    510   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         511  +
        /* OperationErrorGenerator.kt:186 */
  355    512   
    }
         513  +
    /* OperationErrorGenerator.kt:190 */
  356    514   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         515  +
        /* OperationErrorGenerator.kt:197 */
  357    516   
        ::std::option::Option::None
         517  +
        /* OperationErrorGenerator.kt:190 */
  358    518   
    }
         519  +
    /* OperationErrorGenerator.kt:182 */
  359    520   
}
         521  +
/* OperationErrorGenerator.kt:163 */
  360    522   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for UpdateGlobalTableError {
         523  +
    /* OperationErrorGenerator.kt:164 */
  361    524   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         525  +
        /* OperationErrorGenerator.kt:318 */
  362    526   
        match self {
  363         -
            Self::GlobalTableNotFoundError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  364         -
            Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  365         -
            Self::InvalidEndpointError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  366         -
            Self::ReplicaAlreadyExistsError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  367         -
            Self::ReplicaNotFoundError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  368         -
            Self::TableNotFoundError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  369         -
            Self::Unhandled(_inner) => &_inner.meta,
         527  +
            /* OperationErrorGenerator.kt:321 */
         528  +
            Self::GlobalTableNotFoundError(_inner) =>
         529  +
            /* OperationErrorGenerator.kt:169 */
         530  +
            {
         531  +
                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
         532  +
            }
         533  +
            ,
         534  +
            /* OperationErrorGenerator.kt:321 */
         535  +
            Self::InternalServerError(_inner) =>
         536  +
            /* OperationErrorGenerator.kt:169 */
         537  +
            {
         538  +
                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
         539  +
            }
         540  +
            ,
         541  +
            /* OperationErrorGenerator.kt:321 */
         542  +
            Self::InvalidEndpointError(_inner) =>
         543  +
            /* OperationErrorGenerator.kt:169 */
         544  +
            {
         545  +
                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
         546  +
            }
         547  +
            ,
         548  +
            /* OperationErrorGenerator.kt:321 */
         549  +
            Self::ReplicaAlreadyExistsError(_inner) =>
         550  +
            /* OperationErrorGenerator.kt:169 */
         551  +
            {
         552  +
                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
         553  +
            }
         554  +
            ,
         555  +
            /* OperationErrorGenerator.kt:321 */
         556  +
            Self::ReplicaNotFoundError(_inner) =>
         557  +
            /* OperationErrorGenerator.kt:169 */
         558  +
            {
         559  +
                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
         560  +
            }
         561  +
            ,
         562  +
            /* OperationErrorGenerator.kt:321 */
         563  +
            Self::TableNotFoundError(_inner) =>
         564  +
            /* OperationErrorGenerator.kt:169 */
         565  +
            {
         566  +
                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
         567  +
            }
         568  +
            ,
         569  +
            /* OperationErrorGenerator.kt:326 */
         570  +
            Self::Unhandled(_inner) => {
         571  +
                /* OperationErrorGenerator.kt:168 */
         572  +
                &_inner.meta
         573  +
                /* OperationErrorGenerator.kt:326 */
         574  +
            } /* OperationErrorGenerator.kt:318 */
  370    575   
        }
         576  +
        /* OperationErrorGenerator.kt:164 */
  371    577   
    }
         578  +
    /* OperationErrorGenerator.kt:163 */
  372    579   
}
         580  +
/* OperationErrorGenerator.kt:109 */
  373    581   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for UpdateGlobalTableError {
         582  +
    /* OperationErrorGenerator.kt:110 */
  374    583   
    fn create_unhandled_error(
  375    584   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  376    585   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  377    586   
    ) -> Self {
         587  +
        /* OperationErrorGenerator.kt:121 */
  378    588   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  379    589   
            source,
  380    590   
            meta: meta.unwrap_or_default(),
  381    591   
        })
         592  +
        /* OperationErrorGenerator.kt:110 */
  382    593   
    }
         594  +
    /* OperationErrorGenerator.kt:109 */
  383    595   
}
  384    596   
         597  +
/* CodegenDelegator.kt:255 */
  385    598   
pub use crate::operation::update_global_table::_update_global_table_output::UpdateGlobalTableOutput;
  386    599   
         600  +
/* CodegenDelegator.kt:255 */
  387    601   
pub use crate::operation::update_global_table::_update_global_table_input::UpdateGlobalTableInput;
  388    602   
         603  +
/* RustModule.kt:172 */
  389    604   
mod _update_global_table_input;
  390    605   
         606  +
/* RustModule.kt:172 */
  391    607   
mod _update_global_table_output;
  392    608   
  393         -
/// Builders
         609  +
/// /* CodegenDelegator.kt:51 */Builders
  394    610   
pub mod builders;

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/update_global_table/_update_global_table_input.rs

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

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/update_global_table/_update_global_table_output.rs

@@ -1,1 +49,84 @@
    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 UpdateGlobalTableOutput {
    6         -
    /// <p>Contains the details of the global table.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct UpdateGlobalTableOutput {
           9  +
    /// /* StructureGenerator.kt:231 */<p>Contains the details of the global table.</p>
    7     10   
    pub global_table_description: ::std::option::Option<crate::types::GlobalTableDescription>,
          11  +
    /* StructureGenerator.kt:201 */
    8     12   
}
          13  +
/* StructureGenerator.kt:135 */
    9     14   
impl UpdateGlobalTableOutput {
   10         -
    /// <p>Contains the details of the global table.</p>
          15  +
    /// /* StructureGenerator.kt:231 */<p>Contains the details of the global table.</p>
          16  +
    /* StructureGenerator.kt:166 */
   11     17   
    pub fn global_table_description(&self) -> ::std::option::Option<&crate::types::GlobalTableDescription> {
          18  +
        /* StructureGenerator.kt:170 */
   12     19   
        self.global_table_description.as_ref()
          20  +
        /* StructureGenerator.kt:166 */
   13     21   
    }
          22  +
    /* StructureGenerator.kt:135 */
   14     23   
}
          24  +
/* ClientCodegenVisitor.kt:237 */
   15     25   
impl UpdateGlobalTableOutput {
   16         -
    /// Creates a new builder-style object to manufacture [`UpdateGlobalTableOutput`](crate::operation::update_global_table::UpdateGlobalTableOutput).
          26  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`UpdateGlobalTableOutput`](crate::operation::update_global_table::UpdateGlobalTableOutput).
          27  +
    /* BuilderGenerator.kt:175 */
   17     28   
    pub fn builder() -> crate::operation::update_global_table::builders::UpdateGlobalTableOutputBuilder {
          29  +
        /* BuilderGenerator.kt:176 */
   18     30   
        crate::operation::update_global_table::builders::UpdateGlobalTableOutputBuilder::default()
          31  +
        /* BuilderGenerator.kt:175 */
   19     32   
    }
          33  +
    /* ClientCodegenVisitor.kt:237 */
   20     34   
}
   21     35   
   22         -
/// A builder for [`UpdateGlobalTableOutput`](crate::operation::update_global_table::UpdateGlobalTableOutput).
          36  +
/// /* BuilderGenerator.kt:342 */A builder for [`UpdateGlobalTableOutput`](crate::operation::update_global_table::UpdateGlobalTableOutput).
          37  +
/* RustType.kt:516 */
   23     38   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          39  +
/* RustType.kt:516 */
   24     40   
#[non_exhaustive]
          41  +
/* BuilderGenerator.kt:345 */
   25     42   
pub struct UpdateGlobalTableOutputBuilder {
          43  +
    /* BuilderGenerator.kt:275 */
   26     44   
    pub(crate) global_table_description: ::std::option::Option<crate::types::GlobalTableDescription>,
          45  +
    /* BuilderGenerator.kt:345 */
   27     46   
}
          47  +
/* BuilderGenerator.kt:355 */
   28     48   
impl UpdateGlobalTableOutputBuilder {
   29         -
    /// <p>Contains the details of the global table.</p>
          49  +
    /// /* BuilderGenerator.kt:286 */<p>Contains the details of the global table.</p>
          50  +
    /* BuilderGenerator.kt:291 */
   30     51   
    pub fn global_table_description(mut self, input: crate::types::GlobalTableDescription) -> Self {
          52  +
        /* BuilderGenerator.kt:292 */
   31     53   
        self.global_table_description = ::std::option::Option::Some(input);
          54  +
        /* BuilderGenerator.kt:293 */
   32     55   
        self
          56  +
        /* BuilderGenerator.kt:291 */
   33     57   
    }
   34         -
    /// <p>Contains the details of the global table.</p>
          58  +
    /// /* BuilderGenerator.kt:312 */<p>Contains the details of the global table.</p>
          59  +
    /* BuilderGenerator.kt:314 */
   35     60   
    pub fn set_global_table_description(mut self, input: ::std::option::Option<crate::types::GlobalTableDescription>) -> Self {
          61  +
        /* BuilderGenerator.kt:315 */
   36     62   
        self.global_table_description = input;
   37     63   
        self
          64  +
        /* BuilderGenerator.kt:314 */
   38     65   
    }
   39         -
    /// <p>Contains the details of the global table.</p>
          66  +
    /// /* BuilderGenerator.kt:334 */<p>Contains the details of the global table.</p>
          67  +
    /* BuilderGenerator.kt:336 */
   40     68   
    pub fn get_global_table_description(&self) -> &::std::option::Option<crate::types::GlobalTableDescription> {
          69  +
        /* BuilderGenerator.kt:337 */
   41     70   
        &self.global_table_description
          71  +
        /* BuilderGenerator.kt:336 */
   42     72   
    }
   43         -
    /// Consumes the builder and constructs a [`UpdateGlobalTableOutput`](crate::operation::update_global_table::UpdateGlobalTableOutput).
          73  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`UpdateGlobalTableOutput`](crate::operation::update_global_table::UpdateGlobalTableOutput).
          74  +
    /* BuilderGenerator.kt:253 */
   44     75   
    pub fn build(self) -> crate::operation::update_global_table::UpdateGlobalTableOutput {
          76  +
        /* BuilderGenerator.kt:477 */
   45     77   
        crate::operation::update_global_table::UpdateGlobalTableOutput {
   46         -
            global_table_description: self.global_table_description,
          78  +
            /* BuilderGenerator.kt:481 */ global_table_description: self.global_table_description,
          79  +
            /* BuilderGenerator.kt:477 */
   47     80   
        }
          81  +
        /* BuilderGenerator.kt:253 */
   48     82   
    }
          83  +
    /* BuilderGenerator.kt:355 */
   49     84   
}

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

@@ -1,1 +155,173 @@
    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::update_global_table::_update_global_table_output::UpdateGlobalTableOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::update_global_table::_update_global_table_input::UpdateGlobalTableInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::update_global_table::builders::UpdateGlobalTableInputBuilder {
    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::update_global_table::UpdateGlobalTableOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::update_global_table::UpdateGlobalTableError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.update_global_table();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `UpdateGlobalTable`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `UpdateGlobalTable`.
   24     27   
///
   25         -
/// <p>Adds or removes replicas in the specified global table. The global table must already exist to be able to use this operation. Any replica to be added must be empty, have the same name as the global table, have the same key schema, have DynamoDB Streams enabled, and have the same provisioned and maximum write capacity units.</p><note>
          28  +
/// /* FluentBuilderGenerator.kt:130 */<p>Adds or removes replicas in the specified global table. The global table must already exist to be able to use this operation. Any replica to be added must be empty, have the same name as the global table, have the same key schema, have DynamoDB Streams enabled, and have the same provisioned and maximum write capacity units.</p><note>
   26     29   
/// <p>Although you can use <code>UpdateGlobalTable</code> to add replicas and remove replicas in a single request, for simplicity we recommend that you issue separate requests for adding or removing replicas.</p>
   27     30   
/// </note>
   28     31   
/// <p>If global secondary indexes are specified, then the following conditions must also be met:</p>
   29     32   
/// <ul>
   30     33   
/// <li>
   31     34   
/// <p>The global secondary indexes must have the same name.</p></li>
   32     35   
/// <li>
   33     36   
/// <p>The global secondary indexes must have the same hash key and sort key (if present).</p></li>
   34     37   
/// <li>
   35     38   
/// <p>The global secondary indexes must have the same provisioned and maximum write capacity units.</p></li>
   36     39   
/// </ul>
          40  +
/* RustType.kt:516 */
   37     41   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          42  +
/* FluentBuilderGenerator.kt:270 */
   38     43   
pub struct UpdateGlobalTableFluentBuilder {
   39     44   
    handle: ::std::sync::Arc<crate::client::Handle>,
   40     45   
    inner: crate::operation::update_global_table::builders::UpdateGlobalTableInputBuilder,
   41     46   
    config_override: ::std::option::Option<crate::config::Builder>,
   42     47   
}
          48  +
/* FluentBuilderGenerator.kt:381 */
   43     49   
impl
   44     50   
    crate::client::customize::internal::CustomizableSend<
   45     51   
        crate::operation::update_global_table::UpdateGlobalTableOutput,
   46     52   
        crate::operation::update_global_table::UpdateGlobalTableError,
   47     53   
    > for UpdateGlobalTableFluentBuilder
   48     54   
{
   49     55   
    fn send(
   50     56   
        self,
   51     57   
        config_override: crate::config::Builder,
   52     58   
    ) -> crate::client::customize::internal::BoxFuture<
   53     59   
        crate::client::customize::internal::SendResult<
   54     60   
            crate::operation::update_global_table::UpdateGlobalTableOutput,
   55     61   
            crate::operation::update_global_table::UpdateGlobalTableError,
   56     62   
        >,
   57     63   
    > {
   58     64   
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
   59     65   
    }
   60     66   
}
          67  +
/* FluentBuilderGenerator.kt:282 */
   61     68   
impl UpdateGlobalTableFluentBuilder {
          69  +
    /* FluentBuilderGenerator.kt:288 */
   62     70   
    /// Creates a new `UpdateGlobalTableFluentBuilder`.
   63     71   
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
   64     72   
        Self {
   65     73   
            handle,
   66     74   
            inner: ::std::default::Default::default(),
   67     75   
            config_override: ::std::option::Option::None,
   68     76   
        }
   69     77   
    }
          78  +
    /* FluentBuilderGenerator.kt:301 */
   70     79   
    /// Access the UpdateGlobalTable as a reference.
   71     80   
    pub fn as_input(&self) -> &crate::operation::update_global_table::builders::UpdateGlobalTableInputBuilder {
   72     81   
        &self.inner
   73     82   
    }
          83  +
    /* FluentBuilderGenerator.kt:145 */
   74     84   
    /// Sends the request and returns the response.
   75     85   
    ///
   76     86   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   77     87   
    /// can be matched against.
   78     88   
    ///
   79     89   
    /// By default, any retryable failures will be retried twice. Retry behavior
   80     90   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   81     91   
    /// set when configuring the client.
   82     92   
    pub async fn send(
   83     93   
        self,
   84     94   
    ) -> ::std::result::Result<
   85     95   
        crate::operation::update_global_table::UpdateGlobalTableOutput,
   86     96   
        ::aws_smithy_runtime_api::client::result::SdkError<
   87     97   
            crate::operation::update_global_table::UpdateGlobalTableError,
   88     98   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   89     99   
        >,
   90    100   
    > {
   91    101   
        let input = self
   92    102   
            .inner
   93    103   
            .build()
   94    104   
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
   95    105   
        let runtime_plugins = crate::operation::update_global_table::UpdateGlobalTable::operation_runtime_plugins(
   96    106   
            self.handle.runtime_plugins.clone(),
   97    107   
            &self.handle.conf,
   98    108   
            self.config_override,
   99    109   
        );
  100    110   
        crate::operation::update_global_table::UpdateGlobalTable::orchestrate(&runtime_plugins, input).await
  101    111   
    }
  102    112   
  103    113   
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
  104    114   
    pub fn customize(
  105    115   
        self,
  106    116   
    ) -> crate::client::customize::CustomizableOperation<
  107    117   
        crate::operation::update_global_table::UpdateGlobalTableOutput,
  108    118   
        crate::operation::update_global_table::UpdateGlobalTableError,
  109    119   
        Self,
  110    120   
    > {
  111    121   
        crate::client::customize::CustomizableOperation::new(self)
  112    122   
    }
         123  +
    /* FluentBuilderGenerator.kt:315 */
  113    124   
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
  114    125   
        self.set_config_override(::std::option::Option::Some(config_override.into()));
  115    126   
        self
  116    127   
    }
  117    128   
  118    129   
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
  119    130   
        self.config_override = config_override;
  120    131   
        self
  121    132   
    }
  122         -
    /// <p>The global table name.</p>
         133  +
    /// /* FluentBuilderGenerator.kt:498 */<p>The global table name.</p>
         134  +
    /* FluentBuilderGenerator.kt:500 */
  123    135   
    pub fn global_table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  124    136   
        self.inner = self.inner.global_table_name(input.into());
  125    137   
        self
  126    138   
    }
  127         -
    /// <p>The global table name.</p>
         139  +
    /// /* FluentBuilderGenerator.kt:498 */<p>The global table name.</p>
         140  +
    /* FluentBuilderGenerator.kt:500 */
  128    141   
    pub fn set_global_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  129    142   
        self.inner = self.inner.set_global_table_name(input);
  130    143   
        self
  131    144   
    }
  132         -
    /// <p>The global table name.</p>
         145  +
    /// /* FluentBuilderGenerator.kt:518 */<p>The global table name.</p>
         146  +
    /* FluentBuilderGenerator.kt:520 */
  133    147   
    pub fn get_global_table_name(&self) -> &::std::option::Option<::std::string::String> {
  134    148   
        self.inner.get_global_table_name()
  135    149   
    }
  136         -
    ///
         150  +
    /// /* FluentBuilderGenerator.kt:436 */
  137    151   
    /// Appends an item to `ReplicaUpdates`.
  138    152   
    ///
  139    153   
    /// To override the contents of this collection use [`set_replica_updates`](Self::set_replica_updates).
  140    154   
    ///
  141         -
    /// <p>A list of Regions that should be added or removed from the global table.</p>
         155  +
    /// /* FluentBuilderGenerator.kt:443 */<p>A list of Regions that should be added or removed from the global table.</p>
         156  +
    /* FluentBuilderGenerator.kt:446 */
  142    157   
    pub fn replica_updates(mut self, input: crate::types::ReplicaUpdate) -> Self {
  143    158   
        self.inner = self.inner.replica_updates(input);
  144    159   
        self
  145    160   
    }
  146         -
    /// <p>A list of Regions that should be added or removed from the global table.</p>
         161  +
    /// /* FluentBuilderGenerator.kt:498 */<p>A list of Regions that should be added or removed from the global table.</p>
         162  +
    /* FluentBuilderGenerator.kt:500 */
  147    163   
    pub fn set_replica_updates(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ReplicaUpdate>>) -> Self {
  148    164   
        self.inner = self.inner.set_replica_updates(input);
  149    165   
        self
  150    166   
    }
  151         -
    /// <p>A list of Regions that should be added or removed from the global table.</p>
         167  +
    /// /* FluentBuilderGenerator.kt:518 */<p>A list of Regions that should be added or removed from the global table.</p>
         168  +
    /* FluentBuilderGenerator.kt:520 */
  152    169   
    pub fn get_replica_updates(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ReplicaUpdate>> {
  153    170   
        self.inner.get_replica_updates()
  154    171   
    }
         172  +
    /* FluentBuilderGenerator.kt:282 */
  155    173   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/update_global_table_settings.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 `UpdateGlobalTableSettings`.
           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 UpdateGlobalTableSettings;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl UpdateGlobalTableSettings {
    7         -
    /// Creates a new `UpdateGlobalTableSettings`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `UpdateGlobalTableSettings`
          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::update_global_table_settings::UpdateGlobalTableSettingsInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::update_global_table_settings::UpdateGlobalTableSettingsOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::update_global_table_settings::UpdateGlobalTableSettingsError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -63,72 +415,655 @@
   83     92   
                runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
   84     93   
            }
   85     94   
            runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
   86     95   
                config_override,
   87     96   
                client_config.config.clone(),
   88     97   
                &client_config.runtime_components,
   89     98   
            ));
   90     99   
        }
   91    100   
        runtime_plugins
   92    101   
    }
         102  +
    /* OperationGenerator.kt:85 */
   93    103   
}
         104  +
/* OperationRuntimePluginGenerator.kt:55 */
   94    105   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for UpdateGlobalTableSettings {
   95    106   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
   96    107   
        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("UpdateGlobalTableSettings");
   97    108   
   98    109   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   99    110   
            UpdateGlobalTableSettingsRequestSerializer,
  100    111   
        ));
  101    112   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
  102    113   
            UpdateGlobalTableSettingsResponseDeserializer,
  103    114   
        ));
  104    115   
  105    116   
        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
  106    117   
            ::aws_smithy_runtime_api::client::auth::static_resolver::StaticAuthSchemeOptionResolverParams::new(),
  107    118   
        ));
  108    119   
  109    120   
        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
  110    121   
            "UpdateGlobalTableSettings",
  111    122   
            "DynamoDB",
  112    123   
        ));
  113    124   
  114    125   
        ::std::option::Option::Some(cfg.freeze())
  115    126   
    }
  116    127   
  117    128   
    fn runtime_components(
  118    129   
        &self,
  119    130   
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
  120    131   
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
  121    132   
        #[allow(unused_mut)]
  122    133   
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("UpdateGlobalTableSettings")
  123    134   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  124    135   
            .with_interceptor(UpdateGlobalTableSettingsEndpointParamsInterceptor)
  125    136   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  126    137   
                crate::operation::update_global_table_settings::UpdateGlobalTableSettingsError,
  127    138   
            >::new())
  128    139   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  129    140   
                crate::operation::update_global_table_settings::UpdateGlobalTableSettingsError,
  130    141   
            >::new());
  131    142   
  132    143   
        ::std::borrow::Cow::Owned(rcb)
  133    144   
    }
  134    145   
}
  135    146   
         147  +
/* ResponseDeserializerGenerator.kt:64 */
  136    148   
#[derive(Debug)]
  137    149   
struct UpdateGlobalTableSettingsResponseDeserializer;
  138    150   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for UpdateGlobalTableSettingsResponseDeserializer {
  139    151   
    fn deserialize_nonstreaming(
  140    152   
        &self,
  141    153   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
  142    154   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  143    155   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  144    156   
        let headers = response.headers();
  145    157   
        let body = response.body().bytes().expect("body loaded");
  146    158   
        #[allow(unused_mut)]
  147    159   
        let mut force_error = false;
  148    160   
  149    161   
        let parse_result = if !success && status != 200 || force_error {
  150    162   
            crate::protocol_serde::shape_update_global_table_settings::de_update_global_table_settings_http_error(status, headers, body)
  151    163   
        } else {
  152    164   
            crate::protocol_serde::shape_update_global_table_settings::de_update_global_table_settings_http_response(status, headers, body)
  153    165   
        };
  154    166   
        crate::protocol_serde::type_erase_result(parse_result)
  155    167   
    }
  156    168   
}
         169  +
/* RequestSerializerGenerator.kt:67 */
  157    170   
#[derive(Debug)]
  158    171   
struct UpdateGlobalTableSettingsRequestSerializer;
  159    172   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for UpdateGlobalTableSettingsRequestSerializer {
  160    173   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  161    174   
    fn serialize_input(
  162    175   
        &self,
  163    176   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  164    177   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  165    178   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  166    179   
        let input = input
  167    180   
            .downcast::<crate::operation::update_global_table_settings::UpdateGlobalTableSettingsInput>()
  168    181   
            .expect("correct type");
  169    182   
        let _header_serialization_settings = _cfg
  170    183   
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  171    184   
            .cloned()
  172    185   
            .unwrap_or_default();
  173    186   
        let mut request_builder = {
  174    187   
            fn uri_base(
  175    188   
                _input: &crate::operation::update_global_table_settings::UpdateGlobalTableSettingsInput,
  176    189   
                output: &mut ::std::string::String,
  177    190   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  178    191   
                use ::std::fmt::Write as _;
  179    192   
                ::std::write!(output, "/").expect("formatting should succeed");
  180    193   
                ::std::result::Result::Ok(())
  181    194   
            }
  182    195   
            #[allow(clippy::unnecessary_wraps)]
  183    196   
            fn update_http_builder(
  184    197   
                input: &crate::operation::update_global_table_settings::UpdateGlobalTableSettingsInput,
  185    198   
                builder: ::http::request::Builder,
  186    199   
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  187    200   
                let mut uri = ::std::string::String::new();
  188    201   
                uri_base(input, &mut uri)?;
  189    202   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  190    203   
            }
  191    204   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  192    205   
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-amz-json-1.0");
  193    206   
            builder = _header_serialization_settings.set_default_header(
  194    207   
                builder,
  195    208   
                ::http::header::HeaderName::from_static("x-amz-target"),
  196    209   
                "DynamoDB_20120810.UpdateGlobalTableSettings",
  197    210   
            );
  198    211   
            builder
  199    212   
        };
  200    213   
        let body = ::aws_smithy_types::body::SdkBody::from(
  201    214   
            crate::protocol_serde::shape_update_global_table_settings::ser_update_global_table_settings_input(&input)?,
  202    215   
        );
  203    216   
        if let Some(content_length) = body.content_length() {
  204    217   
            let content_length = content_length.to_string();
  205    218   
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
  206    219   
        }
  207    220   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  208    221   
    }
  209    222   
}
         223  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  210    224   
#[derive(Debug)]
  211    225   
struct UpdateGlobalTableSettingsEndpointParamsInterceptor;
  212    226   
  213    227   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UpdateGlobalTableSettingsEndpointParamsInterceptor {
  214    228   
    fn name(&self) -> &'static str {
  215    229   
        "UpdateGlobalTableSettingsEndpointParamsInterceptor"
  216    230   
    }
  217    231   
  218    232   
    fn read_before_execution(
  219    233   
        &self,
  220    234   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  221    235   
            '_,
  222    236   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  223    237   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  224    238   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  225    239   
        >,
  226    240   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  227    241   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  228    242   
        let _input = context
  229    243   
            .input()
  230    244   
            .downcast_ref::<UpdateGlobalTableSettingsInput>()
  231    245   
            .ok_or("failed to downcast to UpdateGlobalTableSettingsInput")?;
  232    246   
  233    247   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  234    248   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  235    249   
        })?;
  236    250   
        cfg.interceptor_state()
  237    251   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  238    252   
        ::std::result::Result::Ok(())
  239    253   
    }
  240    254   
}
  241    255   
  242    256   
// The get_* functions below are generated from JMESPath expressions in the
  243    257   
// operationContextParams trait. They target the operation's input shape.
  244    258   
         259  +
/* OperationErrorGenerator.kt:79 */
  245    260   
/// Error type for the `UpdateGlobalTableSettingsError` operation.
         261  +
/* RustType.kt:516 */
  246    262   
#[non_exhaustive]
         263  +
/* RustType.kt:516 */
  247    264   
#[derive(::std::fmt::Debug)]
  248         -
pub enum UpdateGlobalTableSettingsError {
  249         -
    /// <p>The specified global table does not exist.</p>
         265  +
pub /* OperationErrorGenerator.kt:81 */ enum UpdateGlobalTableSettingsError {
         266  +
    /// /* OperationErrorGenerator.kt:83 */<p>The specified global table does not exist.</p>
         267  +
    /* OperationErrorGenerator.kt:86 */
  250    268   
    GlobalTableNotFoundError(crate::types::error::GlobalTableNotFoundError),
  251         -
    /// <p>The operation tried to access a nonexistent index.</p>
         269  +
    /// /* OperationErrorGenerator.kt:83 */<p>The operation tried to access a nonexistent index.</p>
         270  +
    /* OperationErrorGenerator.kt:86 */
  252    271   
    IndexNotFoundError(crate::types::error::IndexNotFoundError),
  253         -
    /// <p>An error occurred on the server side.</p>
         272  +
    /// /* OperationErrorGenerator.kt:83 */<p>An error occurred on the server side.</p>
         273  +
    /* OperationErrorGenerator.kt:86 */
  254    274   
    InternalServerError(crate::types::error::InternalServerError),
         275  +
    /* OperationErrorGenerator.kt:83 */
  255    276   
    #[allow(missing_docs)] // documentation missing in model
         277  +
    /* OperationErrorGenerator.kt:86 */
  256    278   
    InvalidEndpointError(crate::types::error::InvalidEndpointError),
  257         -
    /// <p>There is no limit to the number of daily on-demand backups that can be taken.</p>
         279  +
    /// /* OperationErrorGenerator.kt:83 */<p>There is no limit to the number of daily on-demand backups that can be taken.</p>
  258    280   
    /// <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>
  259    281   
    /// <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>
  260    282   
    /// <p>There is a soft account quota of 256 tables.</p>
         283  +
    /* OperationErrorGenerator.kt:86 */
  261    284   
    LimitExceededError(crate::types::error::LimitExceededError),
  262         -
    /// <p>The specified replica is no longer part of the global table.</p>
         285  +
    /// /* OperationErrorGenerator.kt:83 */<p>The specified replica is no longer part of the global table.</p>
         286  +
    /* OperationErrorGenerator.kt:86 */
  263    287   
    ReplicaNotFoundError(crate::types::error::ReplicaNotFoundError),
  264         -
    /// <p>The operation conflicts with the resource's availability. For example, you attempted to recreate an existing table, or tried to delete a table currently in the <code>CREATING</code> state.</p>
         288  +
    /// /* OperationErrorGenerator.kt:83 */<p>The operation conflicts with the resource's availability. For example, you attempted to recreate an existing table, or tried to delete a table currently in the <code>CREATING</code> state.</p>
         289  +
    /* OperationErrorGenerator.kt:86 */
  265    290   
    ResourceInUseError(crate::types::error::ResourceInUseError),
         291  +
    /* OperationErrorGenerator.kt:88 */
  266    292   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  267    293   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  268    294   
    variable wildcard pattern and check `.code()`:
  269    295   
     \
  270    296   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  271    297   
     \
  272    298   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-UpdateGlobalTableSettingsError) for what information is available for the error.")]
  273    299   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         300  +
    /* OperationErrorGenerator.kt:81 */
  274    301   
}
         302  +
/* OperationErrorGenerator.kt:218 */
  275    303   
impl UpdateGlobalTableSettingsError {
         304  +
    /* OperationErrorGenerator.kt:219 */
  276    305   
    /// Creates the `UpdateGlobalTableSettingsError::Unhandled` variant from any error type.
  277    306   
    pub fn unhandled(
  278    307   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  279    308   
    ) -> Self {
  280    309   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  281    310   
            source: err.into(),
  282    311   
            meta: ::std::default::Default::default(),
  283    312   
        })
  284    313   
    }
  285    314   
  286    315   
    /// Creates the `UpdateGlobalTableSettingsError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  287    316   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  288    317   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  289    318   
            source: err.clone().into(),
  290    319   
            meta: err,
  291    320   
        })
  292    321   
    }
  293         -
    ///
         322  +
    /// /* OperationErrorGenerator.kt:236 */
  294    323   
    /// Returns error metadata, which includes the error code, message,
  295    324   
    /// request ID, and potentially additional information.
  296    325   
    ///
         326  +
    /* OperationErrorGenerator.kt:242 */
  297    327   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         328  +
        /* OperationErrorGenerator.kt:243 */
  298    329   
        match self {
         330  +
            /* OperationErrorGenerator.kt:246 */
  299    331   
            Self::GlobalTableNotFoundError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         332  +
            /* OperationErrorGenerator.kt:246 */
  300    333   
            Self::IndexNotFoundError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         334  +
            /* OperationErrorGenerator.kt:246 */
  301    335   
            Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         336  +
            /* OperationErrorGenerator.kt:246 */
  302    337   
            Self::InvalidEndpointError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         338  +
            /* OperationErrorGenerator.kt:246 */
  303    339   
            Self::LimitExceededError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         340  +
            /* OperationErrorGenerator.kt:246 */
  304    341   
            Self::ReplicaNotFoundError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         342  +
            /* OperationErrorGenerator.kt:246 */
  305    343   
            Self::ResourceInUseError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
  306         -
            Self::Unhandled(e) => &e.meta,
         344  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         345  +
            /* OperationErrorGenerator.kt:243 */
  307    346   
        }
         347  +
        /* OperationErrorGenerator.kt:242 */
  308    348   
    }
         349  +
    /* OperationErrorGenerator.kt:257 */
  309    350   
    /// Returns `true` if the error kind is `UpdateGlobalTableSettingsError::GlobalTableNotFoundError`.
         351  +
    /* OperationErrorGenerator.kt:258 */
  310    352   
    pub fn is_global_table_not_found_error(&self) -> bool {
         353  +
        /* OperationErrorGenerator.kt:259 */
  311    354   
        matches!(self, Self::GlobalTableNotFoundError(_))
         355  +
        /* OperationErrorGenerator.kt:258 */
  312    356   
    }
         357  +
    /* OperationErrorGenerator.kt:257 */
  313    358   
    /// Returns `true` if the error kind is `UpdateGlobalTableSettingsError::IndexNotFoundError`.
         359  +
    /* OperationErrorGenerator.kt:258 */
  314    360   
    pub fn is_index_not_found_error(&self) -> bool {
         361  +
        /* OperationErrorGenerator.kt:259 */
  315    362   
        matches!(self, Self::IndexNotFoundError(_))
         363  +
        /* OperationErrorGenerator.kt:258 */
  316    364   
    }
         365  +
    /* OperationErrorGenerator.kt:257 */
  317    366   
    /// Returns `true` if the error kind is `UpdateGlobalTableSettingsError::InternalServerError`.
         367  +
    /* OperationErrorGenerator.kt:258 */
  318    368   
    pub fn is_internal_server_error(&self) -> bool {
         369  +
        /* OperationErrorGenerator.kt:259 */
  319    370   
        matches!(self, Self::InternalServerError(_))
         371  +
        /* OperationErrorGenerator.kt:258 */
  320    372   
    }
         373  +
    /* OperationErrorGenerator.kt:257 */
  321    374   
    /// Returns `true` if the error kind is `UpdateGlobalTableSettingsError::InvalidEndpointError`.
         375  +
    /* OperationErrorGenerator.kt:258 */
  322    376   
    pub fn is_invalid_endpoint_error(&self) -> bool {
         377  +
        /* OperationErrorGenerator.kt:259 */
  323    378   
        matches!(self, Self::InvalidEndpointError(_))
         379  +
        /* OperationErrorGenerator.kt:258 */
  324    380   
    }
         381  +
    /* OperationErrorGenerator.kt:257 */
  325    382   
    /// Returns `true` if the error kind is `UpdateGlobalTableSettingsError::LimitExceededError`.
         383  +
    /* OperationErrorGenerator.kt:258 */
  326    384   
    pub fn is_limit_exceeded_error(&self) -> bool {
         385  +
        /* OperationErrorGenerator.kt:259 */
  327    386   
        matches!(self, Self::LimitExceededError(_))
         387  +
        /* OperationErrorGenerator.kt:258 */
  328    388   
    }
         389  +
    /* OperationErrorGenerator.kt:257 */
  329    390   
    /// Returns `true` if the error kind is `UpdateGlobalTableSettingsError::ReplicaNotFoundError`.
         391  +
    /* OperationErrorGenerator.kt:258 */
  330    392   
    pub fn is_replica_not_found_error(&self) -> bool {
         393  +
        /* OperationErrorGenerator.kt:259 */
  331    394   
        matches!(self, Self::ReplicaNotFoundError(_))
         395  +
        /* OperationErrorGenerator.kt:258 */
  332    396   
    }
         397  +
    /* OperationErrorGenerator.kt:257 */
  333    398   
    /// Returns `true` if the error kind is `UpdateGlobalTableSettingsError::ResourceInUseError`.
         399  +
    /* OperationErrorGenerator.kt:258 */
  334    400   
    pub fn is_resource_in_use_error(&self) -> bool {
         401  +
        /* OperationErrorGenerator.kt:259 */
  335    402   
        matches!(self, Self::ResourceInUseError(_))
         403  +
        /* OperationErrorGenerator.kt:258 */
  336    404   
    }
         405  +
    /* OperationErrorGenerator.kt:218 */
  337    406   
}
         407  +
/* OperationErrorGenerator.kt:269 */
  338    408   
impl ::std::error::Error for UpdateGlobalTableSettingsError {
         409  +
    /* OperationErrorGenerator.kt:270 */
  339    410   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         411  +
        /* OperationErrorGenerator.kt:318 */
  340    412   
        match self {
  341         -
            Self::GlobalTableNotFoundError(_inner) => ::std::option::Option::Some(_inner),
  342         -
            Self::IndexNotFoundError(_inner) => ::std::option::Option::Some(_inner),
  343         -
            Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner),
  344         -
            Self::InvalidEndpointError(_inner) => ::std::option::Option::Some(_inner),
  345         -
            Self::LimitExceededError(_inner) => ::std::option::Option::Some(_inner),
  346         -
            Self::ReplicaNotFoundError(_inner) => ::std::option::Option::Some(_inner),
  347         -
            Self::ResourceInUseError(_inner) => ::std::option::Option::Some(_inner),
  348         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         413  +
            /* OperationErrorGenerator.kt:321 */
         414  +
            Self::GlobalTableNotFoundError(_inner) =>
         415  +
            /* OperationErrorGenerator.kt:283 */
         416  +
            {
         417  +
                ::std::option::Option::Some(_inner)
         418  +
            }
         419  +
            ,
         420  +
            /* OperationErrorGenerator.kt:321 */
         421  +
            Self::IndexNotFoundError(_inner) =>
         422  +
            /* OperationErrorGenerator.kt:283 */
         423  +
            {
         424  +
                ::std::option::Option::Some(_inner)
         425  +
            }
         426  +
            ,
         427  +
            /* OperationErrorGenerator.kt:321 */
         428  +
            Self::InternalServerError(_inner) =>
         429  +
            /* OperationErrorGenerator.kt:283 */
         430  +
            {
         431  +
                ::std::option::Option::Some(_inner)
         432  +
            }
         433  +
            ,
         434  +
            /* OperationErrorGenerator.kt:321 */
         435  +
            Self::InvalidEndpointError(_inner) =>
         436  +
            /* OperationErrorGenerator.kt:283 */
         437  +
            {
         438  +
                ::std::option::Option::Some(_inner)
         439  +
            }
         440  +
            ,
         441  +
            /* OperationErrorGenerator.kt:321 */
         442  +
            Self::LimitExceededError(_inner) =>
         443  +
            /* OperationErrorGenerator.kt:283 */
         444  +
            {
         445  +
                ::std::option::Option::Some(_inner)
         446  +
            }
         447  +
            ,
         448  +
            /* OperationErrorGenerator.kt:321 */
         449  +
            Self::ReplicaNotFoundError(_inner) =>
         450  +
            /* OperationErrorGenerator.kt:283 */
         451  +
            {
         452  +
                ::std::option::Option::Some(_inner)
         453  +
            }
         454  +
            ,
         455  +
            /* OperationErrorGenerator.kt:321 */
         456  +
            Self::ResourceInUseError(_inner) =>
         457  +
            /* OperationErrorGenerator.kt:283 */
         458  +
            {
         459  +
                ::std::option::Option::Some(_inner)
         460  +
            }
         461  +
            ,
         462  +
            /* OperationErrorGenerator.kt:326 */
         463  +
            Self::Unhandled(_inner) => {
         464  +
                /* OperationErrorGenerator.kt:279 */
         465  +
                ::std::option::Option::Some(&*_inner.source)
         466  +
                /* OperationErrorGenerator.kt:326 */
         467  +
            } /* OperationErrorGenerator.kt:318 */
  349    468   
        }
         469  +
        /* OperationErrorGenerator.kt:270 */
  350    470   
    }
         471  +
    /* OperationErrorGenerator.kt:269 */
  351    472   
}
         473  +
/* OperationErrorGenerator.kt:133 */
  352    474   
impl ::std::fmt::Display for UpdateGlobalTableSettingsError {
         475  +
    /* OperationErrorGenerator.kt:134 */
  353    476   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         477  +
        /* OperationErrorGenerator.kt:318 */
  354    478   
        match self {
  355         -
            Self::GlobalTableNotFoundError(_inner) => _inner.fmt(f),
  356         -
            Self::IndexNotFoundError(_inner) => _inner.fmt(f),
  357         -
            Self::InternalServerError(_inner) => _inner.fmt(f),
  358         -
            Self::InvalidEndpointError(_inner) => _inner.fmt(f),
  359         -
            Self::LimitExceededError(_inner) => _inner.fmt(f),
  360         -
            Self::ReplicaNotFoundError(_inner) => _inner.fmt(f),
  361         -
            Self::ResourceInUseError(_inner) => _inner.fmt(f),
         479  +
            /* OperationErrorGenerator.kt:321 */
         480  +
            Self::GlobalTableNotFoundError(_inner) =>
         481  +
            /* OperationErrorGenerator.kt:151 */
         482  +
            {
         483  +
                _inner.fmt(f)
         484  +
            }
         485  +
            ,
         486  +
            /* OperationErrorGenerator.kt:321 */
         487  +
            Self::IndexNotFoundError(_inner) =>
         488  +
            /* OperationErrorGenerator.kt:151 */
         489  +
            {
         490  +
                _inner.fmt(f)
         491  +
            }
         492  +
            ,
         493  +
            /* OperationErrorGenerator.kt:321 */
         494  +
            Self::InternalServerError(_inner) =>
         495  +
            /* OperationErrorGenerator.kt:151 */
         496  +
            {
         497  +
                _inner.fmt(f)
         498  +
            }
         499  +
            ,
         500  +
            /* OperationErrorGenerator.kt:321 */
         501  +
            Self::InvalidEndpointError(_inner) =>
         502  +
            /* OperationErrorGenerator.kt:151 */
         503  +
            {
         504  +
                _inner.fmt(f)
         505  +
            }
         506  +
            ,
         507  +
            /* OperationErrorGenerator.kt:321 */
         508  +
            Self::LimitExceededError(_inner) =>
         509  +
            /* OperationErrorGenerator.kt:151 */
         510  +
            {
         511  +
                _inner.fmt(f)
         512  +
            }
         513  +
            ,
         514  +
            /* OperationErrorGenerator.kt:321 */
         515  +
            Self::ReplicaNotFoundError(_inner) =>
         516  +
            /* OperationErrorGenerator.kt:151 */
         517  +
            {
         518  +
                _inner.fmt(f)
         519  +
            }
         520  +
            ,
         521  +
            /* OperationErrorGenerator.kt:321 */
         522  +
            Self::ResourceInUseError(_inner) =>
         523  +
            /* OperationErrorGenerator.kt:151 */
         524  +
            {
         525  +
                _inner.fmt(f)
         526  +
            }
         527  +
            ,
         528  +
            /* OperationErrorGenerator.kt:326 */
  362    529   
            Self::Unhandled(_inner) => {
         530  +
                /* OperationErrorGenerator.kt:139 */
  363    531   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  364    532   
                    write!(f, "unhandled error ({code})")
  365    533   
                } else {
  366    534   
                    f.write_str("unhandled error")
  367    535   
                }
  368         -
            }
         536  +
                /* OperationErrorGenerator.kt:326 */
         537  +
            } /* OperationErrorGenerator.kt:318 */
  369    538   
        }
         539  +
        /* OperationErrorGenerator.kt:134 */
  370    540   
    }
         541  +
    /* OperationErrorGenerator.kt:133 */
  371    542   
}
         543  +
/* OperationErrorGenerator.kt:182 */
  372    544   
impl ::aws_smithy_types::retry::ProvideErrorKind for UpdateGlobalTableSettingsError {
         545  +
    /* OperationErrorGenerator.kt:186 */
  373    546   
    fn code(&self) -> ::std::option::Option<&str> {
         547  +
        /* OperationErrorGenerator.kt:187 */
  374    548   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         549  +
        /* OperationErrorGenerator.kt:186 */
  375    550   
    }
         551  +
    /* OperationErrorGenerator.kt:190 */
  376    552   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         553  +
        /* OperationErrorGenerator.kt:197 */
  377    554   
        ::std::option::Option::None
         555  +
        /* OperationErrorGenerator.kt:190 */
  378    556   
    }
         557  +
    /* OperationErrorGenerator.kt:182 */
  379    558   
}
         559  +
/* OperationErrorGenerator.kt:163 */
  380    560   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for UpdateGlobalTableSettingsError {
         561  +
    /* OperationErrorGenerator.kt:164 */
  381    562   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         563  +
        /* OperationErrorGenerator.kt:318 */
  382    564   
        match self {
  383         -
            Self::GlobalTableNotFoundError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  384         -
            Self::IndexNotFoundError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  385         -
            Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  386         -
            Self::InvalidEndpointError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  387         -
            Self::LimitExceededError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  388         -
            Self::ReplicaNotFoundError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  389         -
            Self::ResourceInUseError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  390         -
            Self::Unhandled(_inner) => &_inner.meta,
         565  +
            /* OperationErrorGenerator.kt:321 */
         566  +
            Self::GlobalTableNotFoundError(_inner) =>
         567  +
            /* OperationErrorGenerator.kt:169 */
         568  +
            {
         569  +
                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
         570  +
            }
         571  +
            ,
         572  +
            /* OperationErrorGenerator.kt:321 */
         573  +
            Self::IndexNotFoundError(_inner) =>
         574  +
            /* OperationErrorGenerator.kt:169 */
         575  +
            {
         576  +
                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
         577  +
            }
         578  +
            ,
         579  +
            /* OperationErrorGenerator.kt:321 */
         580  +
            Self::InternalServerError(_inner) =>
         581  +
            /* OperationErrorGenerator.kt:169 */
         582  +
            {
         583  +
                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
         584  +
            }
         585  +
            ,
         586  +
            /* OperationErrorGenerator.kt:321 */
         587  +
            Self::InvalidEndpointError(_inner) =>
         588  +
            /* OperationErrorGenerator.kt:169 */
         589  +
            {
         590  +
                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
         591  +
            }
         592  +
            ,
         593  +
            /* OperationErrorGenerator.kt:321 */
         594  +
            Self::LimitExceededError(_inner) =>
         595  +
            /* OperationErrorGenerator.kt:169 */
         596  +
            {
         597  +
                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
         598  +
            }
         599  +
            ,
         600  +
            /* OperationErrorGenerator.kt:321 */
         601  +
            Self::ReplicaNotFoundError(_inner) =>
         602  +
            /* OperationErrorGenerator.kt:169 */
         603  +
            {
         604  +
                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
         605  +
            }
         606  +
            ,
         607  +
            /* OperationErrorGenerator.kt:321 */
         608  +
            Self::ResourceInUseError(_inner) =>
         609  +
            /* OperationErrorGenerator.kt:169 */
         610  +
            {
         611  +
                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
         612  +
            }
         613  +
            ,
         614  +
            /* OperationErrorGenerator.kt:326 */
         615  +
            Self::Unhandled(_inner) => {
         616  +
                /* OperationErrorGenerator.kt:168 */
         617  +
                &_inner.meta
         618  +
                /* OperationErrorGenerator.kt:326 */
         619  +
            } /* OperationErrorGenerator.kt:318 */
  391    620   
        }
         621  +
        /* OperationErrorGenerator.kt:164 */
  392    622   
    }
         623  +
    /* OperationErrorGenerator.kt:163 */
  393    624   
}
         625  +
/* OperationErrorGenerator.kt:109 */
  394    626   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for UpdateGlobalTableSettingsError {
         627  +
    /* OperationErrorGenerator.kt:110 */
  395    628   
    fn create_unhandled_error(
  396    629   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  397    630   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  398    631   
    ) -> Self {
         632  +
        /* OperationErrorGenerator.kt:121 */
  399    633   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  400    634   
            source,
  401    635   
            meta: meta.unwrap_or_default(),
  402    636   
        })
         637  +
        /* OperationErrorGenerator.kt:110 */
  403    638   
    }
         639  +
    /* OperationErrorGenerator.kt:109 */
  404    640   
}
  405    641   
         642  +
/* CodegenDelegator.kt:255 */
  406    643   
pub use crate::operation::update_global_table_settings::_update_global_table_settings_output::UpdateGlobalTableSettingsOutput;
  407    644   
         645  +
/* CodegenDelegator.kt:255 */
  408    646   
pub use crate::operation::update_global_table_settings::_update_global_table_settings_input::UpdateGlobalTableSettingsInput;
  409    647   
         648  +
/* RustModule.kt:172 */
  410    649   
mod _update_global_table_settings_input;
  411    650   
         651  +
/* RustModule.kt:172 */
  412    652   
mod _update_global_table_settings_output;
  413    653   
  414         -
/// Builders
         654  +
/// /* CodegenDelegator.kt:51 */Builders
  415    655   
pub mod builders;