Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

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

@@ -1,1 +128,143 @@
    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::describe_continuous_backups::_describe_continuous_backups_output::DescribeContinuousBackupsOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::describe_continuous_backups::_describe_continuous_backups_input::DescribeContinuousBackupsInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::describe_continuous_backups::builders::DescribeContinuousBackupsInputBuilder {
    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::describe_continuous_backups::DescribeContinuousBackupsOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::describe_continuous_backups::DescribeContinuousBackupsError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.describe_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 `DescribeContinuousBackups`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `DescribeContinuousBackups`.
   24     27   
///
   25         -
/// <p>Checks the status of continuous backups and point in time recovery on the specified table. 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>Checks the status of continuous backups and point in time recovery on the specified table. 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>After 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>
   28     31   
/// <p>You can call <code>DescribeContinuousBackups</code> at a maximum rate of 10 times per second.</p>
          32  +
/* RustType.kt:516 */
   29     33   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          34  +
/* FluentBuilderGenerator.kt:270 */
   30     35   
pub struct DescribeContinuousBackupsFluentBuilder {
   31     36   
    handle: ::std::sync::Arc<crate::client::Handle>,
   32     37   
    inner: crate::operation::describe_continuous_backups::builders::DescribeContinuousBackupsInputBuilder,
   33     38   
    config_override: ::std::option::Option<crate::config::Builder>,
   34     39   
}
          40  +
/* FluentBuilderGenerator.kt:381 */
   35     41   
impl
   36     42   
    crate::client::customize::internal::CustomizableSend<
   37     43   
        crate::operation::describe_continuous_backups::DescribeContinuousBackupsOutput,
   38     44   
        crate::operation::describe_continuous_backups::DescribeContinuousBackupsError,
   39     45   
    > for DescribeContinuousBackupsFluentBuilder
   40     46   
{
   41     47   
    fn send(
   42     48   
        self,
   43     49   
        config_override: crate::config::Builder,
   44     50   
    ) -> crate::client::customize::internal::BoxFuture<
   45     51   
        crate::client::customize::internal::SendResult<
   46     52   
            crate::operation::describe_continuous_backups::DescribeContinuousBackupsOutput,
   47     53   
            crate::operation::describe_continuous_backups::DescribeContinuousBackupsError,
   48     54   
        >,
   49     55   
    > {
   50     56   
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
   51     57   
    }
   52     58   
}
          59  +
/* FluentBuilderGenerator.kt:282 */
   53     60   
impl DescribeContinuousBackupsFluentBuilder {
          61  +
    /* FluentBuilderGenerator.kt:288 */
   54     62   
    /// Creates a new `DescribeContinuousBackupsFluentBuilder`.
   55     63   
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
   56     64   
        Self {
   57     65   
            handle,
   58     66   
            inner: ::std::default::Default::default(),
   59     67   
            config_override: ::std::option::Option::None,
   60     68   
        }
   61     69   
    }
          70  +
    /* FluentBuilderGenerator.kt:301 */
   62     71   
    /// Access the DescribeContinuousBackups as a reference.
   63     72   
    pub fn as_input(&self) -> &crate::operation::describe_continuous_backups::builders::DescribeContinuousBackupsInputBuilder {
   64     73   
        &self.inner
   65     74   
    }
          75  +
    /* FluentBuilderGenerator.kt:145 */
   66     76   
    /// Sends the request and returns the response.
   67     77   
    ///
   68     78   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   69     79   
    /// can be matched against.
   70     80   
    ///
   71     81   
    /// By default, any retryable failures will be retried twice. Retry behavior
   72     82   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   73     83   
    /// set when configuring the client.
   74     84   
    pub async fn send(
   75     85   
        self,
   76     86   
    ) -> ::std::result::Result<
   77     87   
        crate::operation::describe_continuous_backups::DescribeContinuousBackupsOutput,
   78     88   
        ::aws_smithy_runtime_api::client::result::SdkError<
   79     89   
            crate::operation::describe_continuous_backups::DescribeContinuousBackupsError,
   80     90   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   81     91   
        >,
   82     92   
    > {
   83     93   
        let input = self
   84     94   
            .inner
   85     95   
            .build()
   86     96   
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
   87     97   
        let runtime_plugins = crate::operation::describe_continuous_backups::DescribeContinuousBackups::operation_runtime_plugins(
   88     98   
            self.handle.runtime_plugins.clone(),
   89     99   
            &self.handle.conf,
   90    100   
            self.config_override,
   91    101   
        );
   92    102   
        crate::operation::describe_continuous_backups::DescribeContinuousBackups::orchestrate(&runtime_plugins, input).await
   93    103   
    }
   94    104   
   95    105   
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
   96    106   
    pub fn customize(
   97    107   
        self,
   98    108   
    ) -> crate::client::customize::CustomizableOperation<
   99    109   
        crate::operation::describe_continuous_backups::DescribeContinuousBackupsOutput,
  100    110   
        crate::operation::describe_continuous_backups::DescribeContinuousBackupsError,
  101    111   
        Self,
  102    112   
    > {
  103    113   
        crate::client::customize::CustomizableOperation::new(self)
  104    114   
    }
         115  +
    /* FluentBuilderGenerator.kt:315 */
  105    116   
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
  106    117   
        self.set_config_override(::std::option::Option::Some(config_override.into()));
  107    118   
        self
  108    119   
    }
  109    120   
  110    121   
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
  111    122   
        self.config_override = config_override;
  112    123   
        self
  113    124   
    }
  114         -
    /// <p>Name of the table for which the customer wants to check the continuous backups and point in time recovery settings.</p>
         125  +
    /// /* FluentBuilderGenerator.kt:498 */<p>Name of the table for which the customer wants to check the continuous backups and point in time recovery settings.</p>
         126  +
    /* FluentBuilderGenerator.kt:500 */
  115    127   
    pub fn table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  116    128   
        self.inner = self.inner.table_name(input.into());
  117    129   
        self
  118    130   
    }
  119         -
    /// <p>Name of the table for which the customer wants to check the continuous backups and point in time recovery settings.</p>
         131  +
    /// /* FluentBuilderGenerator.kt:498 */<p>Name of the table for which the customer wants to check the continuous backups and point in time recovery settings.</p>
         132  +
    /* FluentBuilderGenerator.kt:500 */
  120    133   
    pub fn set_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  121    134   
        self.inner = self.inner.set_table_name(input);
  122    135   
        self
  123    136   
    }
  124         -
    /// <p>Name of the table for which the customer wants to check the continuous backups and point in time recovery settings.</p>
         137  +
    /// /* FluentBuilderGenerator.kt:518 */<p>Name of the table for which the customer wants to check the continuous backups and point in time recovery settings.</p>
         138  +
    /* FluentBuilderGenerator.kt:520 */
  125    139   
    pub fn get_table_name(&self) -> &::std::option::Option<::std::string::String> {
  126    140   
        self.inner.get_table_name()
  127    141   
    }
         142  +
    /* FluentBuilderGenerator.kt:282 */
  128    143   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/describe_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 `DescribeContributorInsights`.
           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 DescribeContributorInsights;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl DescribeContributorInsights {
    7         -
    /// Creates a new `DescribeContributorInsights`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `DescribeContributorInsights`
          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::describe_contributor_insights::DescribeContributorInsightsInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::describe_contributor_insights::DescribeContributorInsightsOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::describe_contributor_insights::DescribeContributorInsightsError,
   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 DescribeContributorInsights {
   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("DescribeContributorInsights");
   97    108   
   98    109   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   99    110   
            DescribeContributorInsightsRequestSerializer,
  100    111   
        ));
  101    112   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
  102    113   
            DescribeContributorInsightsResponseDeserializer,
  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   
            "DescribeContributorInsights",
  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("DescribeContributorInsights")
  123    134   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  124    135   
            .with_interceptor(DescribeContributorInsightsEndpointParamsInterceptor)
  125    136   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  126    137   
                crate::operation::describe_contributor_insights::DescribeContributorInsightsError,
  127    138   
            >::new())
  128    139   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  129    140   
                crate::operation::describe_contributor_insights::DescribeContributorInsightsError,
  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 DescribeContributorInsightsResponseDeserializer;
  138    150   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeContributorInsightsResponseDeserializer {
  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_describe_contributor_insights::de_describe_contributor_insights_http_error(status, headers, body)
  151    163   
        } else {
  152    164   
            crate::protocol_serde::shape_describe_contributor_insights::de_describe_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 DescribeContributorInsightsRequestSerializer;
  159    172   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DescribeContributorInsightsRequestSerializer {
  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::describe_contributor_insights::DescribeContributorInsightsInput>()
  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::describe_contributor_insights::DescribeContributorInsightsInput,
  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::describe_contributor_insights::DescribeContributorInsightsInput,
  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.DescribeContributorInsights",
  197    210   
            );
  198    211   
            builder
  199    212   
        };
  200    213   
        let body = ::aws_smithy_types::body::SdkBody::from(
  201    214   
            crate::protocol_serde::shape_describe_contributor_insights::ser_describe_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 DescribeContributorInsightsEndpointParamsInterceptor;
  212    226   
  213    227   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DescribeContributorInsightsEndpointParamsInterceptor {
  214    228   
    fn name(&self) -> &'static str {
  215    229   
        "DescribeContributorInsightsEndpointParamsInterceptor"
  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::<DescribeContributorInsightsInput>()
  231    245   
            .ok_or("failed to downcast to DescribeContributorInsightsInput")?;
  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 `DescribeContributorInsightsError` operation.
         261  +
/* RustType.kt:516 */
  246    262   
#[non_exhaustive]
         263  +
/* RustType.kt:516 */
  247    264   
#[derive(::std::fmt::Debug)]
  248         -
pub enum DescribeContributorInsightsError {
  249         -
    /// <p>An error occurred on the server side.</p>
         265  +
pub /* OperationErrorGenerator.kt:81 */ enum DescribeContributorInsightsError {
         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-DescribeContributorInsightsError) 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 DescribeContributorInsightsError {
         285  +
    /* OperationErrorGenerator.kt:219 */
  263    286   
    /// Creates the `DescribeContributorInsightsError::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 `DescribeContributorInsightsError::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 `DescribeContributorInsightsError::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 `DescribeContributorInsightsError::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 DescribeContributorInsightsError {
         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 DescribeContributorInsightsError {
         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   
                }
         397  +
                /* OperationErrorGenerator.kt:326 */
         398  +
            } /* OperationErrorGenerator.kt:318 */
  320    399   
        }
         400  +
        /* OperationErrorGenerator.kt:134 */
  321    401   
    }
  322         -
    }
         402  +
    /* OperationErrorGenerator.kt:133 */
  323    403   
}
         404  +
/* OperationErrorGenerator.kt:182 */
  324    405   
impl ::aws_smithy_types::retry::ProvideErrorKind for DescribeContributorInsightsError {
         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 DescribeContributorInsightsError {
         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 DescribeContributorInsightsError {
         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::describe_contributor_insights::_describe_contributor_insights_output::DescribeContributorInsightsOutput;
  354    470   
         471  +
/* CodegenDelegator.kt:255 */
  355    472   
pub use crate::operation::describe_contributor_insights::_describe_contributor_insights_input::DescribeContributorInsightsInput;
  356    473   
         474  +
/* RustModule.kt:172 */
  357    475   
mod _describe_contributor_insights_input;
  358    476   
         477  +
/* RustModule.kt:172 */
  359    478   
mod _describe_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/describe_contributor_insights/_describe_contributor_insights_input.rs

@@ -1,1 +77,128 @@
    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 DescribeContributorInsightsInput {
    6         -
    /// <p>The name of the table to describe.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct DescribeContributorInsightsInput {
           9  +
    /// /* StructureGenerator.kt:231 */<p>The name of the table to describe.</p>
    7     10   
    pub table_name: ::std::option::Option<::std::string::String>,
    8         -
    /// <p>The name of the global secondary index to describe, if applicable.</p>
          11  +
    /// /* StructureGenerator.kt:231 */<p>The name of the global secondary index to describe, if applicable.</p>
    9     12   
    pub index_name: ::std::option::Option<::std::string::String>,
          13  +
    /* StructureGenerator.kt:201 */
   10     14   
}
          15  +
/* StructureGenerator.kt:135 */
   11     16   
impl DescribeContributorInsightsInput {
   12         -
    /// <p>The name of the table to describe.</p>
          17  +
    /// /* StructureGenerator.kt:231 */<p>The name of the table to describe.</p>
          18  +
    /* StructureGenerator.kt:166 */
   13     19   
    pub fn table_name(&self) -> ::std::option::Option<&str> {
          20  +
        /* StructureGenerator.kt:169 */
   14     21   
        self.table_name.as_deref()
          22  +
        /* StructureGenerator.kt:166 */
   15     23   
    }
   16         -
    /// <p>The name of the global secondary index to describe, if applicable.</p>
          24  +
    /// /* StructureGenerator.kt:231 */<p>The name of the global secondary index to describe, if applicable.</p>
          25  +
    /* StructureGenerator.kt:166 */
   17     26   
    pub fn index_name(&self) -> ::std::option::Option<&str> {
          27  +
        /* StructureGenerator.kt:169 */
   18     28   
        self.index_name.as_deref()
          29  +
        /* StructureGenerator.kt:166 */
   19     30   
    }
          31  +
    /* StructureGenerator.kt:135 */
   20     32   
}
          33  +
/* ClientCodegenVisitor.kt:237 */
   21     34   
impl DescribeContributorInsightsInput {
   22         -
    /// Creates a new builder-style object to manufacture [`DescribeContributorInsightsInput`](crate::operation::describe_contributor_insights::DescribeContributorInsightsInput).
          35  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`DescribeContributorInsightsInput`](crate::operation::describe_contributor_insights::DescribeContributorInsightsInput).
          36  +
    /* BuilderGenerator.kt:175 */
   23     37   
    pub fn builder() -> crate::operation::describe_contributor_insights::builders::DescribeContributorInsightsInputBuilder {
          38  +
        /* BuilderGenerator.kt:176 */
   24     39   
        crate::operation::describe_contributor_insights::builders::DescribeContributorInsightsInputBuilder::default()
          40  +
        /* BuilderGenerator.kt:175 */
   25     41   
    }
          42  +
    /* ClientCodegenVisitor.kt:237 */
   26     43   
}
   27     44   
   28         -
/// A builder for [`DescribeContributorInsightsInput`](crate::operation::describe_contributor_insights::DescribeContributorInsightsInput).
          45  +
/// /* BuilderGenerator.kt:342 */A builder for [`DescribeContributorInsightsInput`](crate::operation::describe_contributor_insights::DescribeContributorInsightsInput).
          46  +
/* RustType.kt:516 */
   29     47   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          48  +
/* RustType.kt:516 */
   30     49   
#[non_exhaustive]
          50  +
/* BuilderGenerator.kt:345 */
   31     51   
pub struct DescribeContributorInsightsInputBuilder {
   32         -
    pub(crate) table_name: ::std::option::Option<::std::string::String>,
   33         -
    pub(crate) index_name: ::std::option::Option<::std::string::String>,
          52  +
    /* BuilderGenerator.kt:275 */ pub(crate) table_name: ::std::option::Option<::std::string::String>,
          53  +
    /* BuilderGenerator.kt:275 */ pub(crate) index_name: ::std::option::Option<::std::string::String>,
          54  +
    /* BuilderGenerator.kt:345 */
   34     55   
}
          56  +
/* BuilderGenerator.kt:355 */
   35     57   
impl DescribeContributorInsightsInputBuilder {
   36         -
    /// <p>The name of the table to describe.</p>
   37         -
    /// This field is required.
          58  +
    /// /* BuilderGenerator.kt:286 */<p>The name of the table to describe.</p>
          59  +
    /// /* BuilderGenerator.kt:288 */This field is required.
          60  +
    /* BuilderGenerator.kt:291 */
   38     61   
    pub fn table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          62  +
        /* BuilderGenerator.kt:292 */
   39     63   
        self.table_name = ::std::option::Option::Some(input.into());
          64  +
        /* BuilderGenerator.kt:293 */
   40     65   
        self
          66  +
        /* BuilderGenerator.kt:291 */
   41     67   
    }
   42         -
    /// <p>The name of the table to describe.</p>
          68  +
    /// /* BuilderGenerator.kt:312 */<p>The name of the table to describe.</p>
          69  +
    /* BuilderGenerator.kt:314 */
   43     70   
    pub fn set_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          71  +
        /* BuilderGenerator.kt:315 */
   44     72   
        self.table_name = input;
   45     73   
        self
          74  +
        /* BuilderGenerator.kt:314 */
   46     75   
    }
   47         -
    /// <p>The name of the table to describe.</p>
          76  +
    /// /* BuilderGenerator.kt:334 */<p>The name of the table to describe.</p>
          77  +
    /* BuilderGenerator.kt:336 */
   48     78   
    pub fn get_table_name(&self) -> &::std::option::Option<::std::string::String> {
          79  +
        /* BuilderGenerator.kt:337 */
   49     80   
        &self.table_name
          81  +
        /* BuilderGenerator.kt:336 */
   50     82   
    }
   51         -
    /// <p>The name of the global secondary index to describe, if applicable.</p>
          83  +
    /// /* BuilderGenerator.kt:286 */<p>The name of the global secondary index to describe, if applicable.</p>
          84  +
    /* BuilderGenerator.kt:291 */
   52     85   
    pub fn index_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          86  +
        /* BuilderGenerator.kt:292 */
   53     87   
        self.index_name = ::std::option::Option::Some(input.into());
          88  +
        /* BuilderGenerator.kt:293 */
   54     89   
        self
          90  +
        /* BuilderGenerator.kt:291 */
   55     91   
    }
   56         -
    /// <p>The name of the global secondary index to describe, if applicable.</p>
          92  +
    /// /* BuilderGenerator.kt:312 */<p>The name of the global secondary index to describe, if applicable.</p>
          93  +
    /* BuilderGenerator.kt:314 */
   57     94   
    pub fn set_index_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          95  +
        /* BuilderGenerator.kt:315 */
   58     96   
        self.index_name = input;
   59     97   
        self
          98  +
        /* BuilderGenerator.kt:314 */
   60     99   
    }
   61         -
    /// <p>The name of the global secondary index to describe, if applicable.</p>
         100  +
    /// /* BuilderGenerator.kt:334 */<p>The name of the global secondary index to describe, if applicable.</p>
         101  +
    /* BuilderGenerator.kt:336 */
   62    102   
    pub fn get_index_name(&self) -> &::std::option::Option<::std::string::String> {
         103  +
        /* BuilderGenerator.kt:337 */
   63    104   
        &self.index_name
         105  +
        /* BuilderGenerator.kt:336 */
   64    106   
    }
   65         -
    /// Consumes the builder and constructs a [`DescribeContributorInsightsInput`](crate::operation::describe_contributor_insights::DescribeContributorInsightsInput).
         107  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`DescribeContributorInsightsInput`](crate::operation::describe_contributor_insights::DescribeContributorInsightsInput).
         108  +
    /* BuilderGenerator.kt:253 */
   66    109   
    pub fn build(
   67    110   
        self,
   68    111   
    ) -> ::std::result::Result<
   69    112   
        crate::operation::describe_contributor_insights::DescribeContributorInsightsInput,
   70    113   
        ::aws_smithy_types::error::operation::BuildError,
   71    114   
    > {
   72         -
        ::std::result::Result::Ok(crate::operation::describe_contributor_insights::DescribeContributorInsightsInput {
   73         -
            table_name: self.table_name,
         115  +
        /* BuilderGenerator.kt:254 */
         116  +
        ::std::result::Result::Ok(
         117  +
            /* BuilderGenerator.kt:477 */
         118  +
            crate::operation::describe_contributor_insights::DescribeContributorInsightsInput {
         119  +
                /* BuilderGenerator.kt:481 */ table_name: self.table_name,
         120  +
                /* BuilderGenerator.kt:481 */
   74    121   
                index_name: self.index_name,
   75         -
        })
         122  +
                /* BuilderGenerator.kt:477 */
         123  +
            }, /* BuilderGenerator.kt:254 */
         124  +
        )
         125  +
        /* BuilderGenerator.kt:253 */
   76    126   
    }
         127  +
    /* BuilderGenerator.kt:355 */
   77    128   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/describe_contributor_insights/_describe_contributor_insights_output.rs

@@ -1,1 +222,331 @@
    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 DescribeContributorInsightsOutput {
    6         -
    /// <p>The name of the table being described.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct DescribeContributorInsightsOutput {
           9  +
    /// /* StructureGenerator.kt:231 */<p>The name of the table being described.</p>
    7     10   
    pub table_name: ::std::option::Option<::std::string::String>,
    8         -
    /// <p>The name of the global secondary index being described.</p>
          11  +
    /// /* StructureGenerator.kt:231 */<p>The name of the global secondary index being described.</p>
    9     12   
    pub index_name: ::std::option::Option<::std::string::String>,
   10         -
    /// <p>List of names of the associated Alpine rules.</p>
          13  +
    /// /* StructureGenerator.kt:231 */<p>List of names of the associated Alpine rules.</p>
   11     14   
    pub contributor_insights_rule_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
   12         -
    /// <p>Current Status contributor insights.</p>
          15  +
    /// /* StructureGenerator.kt:231 */<p>Current Status contributor insights.</p>
   13     16   
    pub contributor_insights_status: ::std::option::Option<crate::types::ContributorInsightsStatus>,
   14         -
    /// <p>Timestamp of the last time the status was changed.</p>
          17  +
    /// /* StructureGenerator.kt:231 */<p>Timestamp of the last time the status was changed.</p>
   15     18   
    pub last_update_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
   16         -
    /// <p>Returns information about the last failure that encountered.</p>
          19  +
    /// /* StructureGenerator.kt:231 */<p>Returns information about the last failure that encountered.</p>
   17     20   
    /// <p>The most common exceptions for a FAILED status are:</p>
   18     21   
    /// <ul>
   19     22   
    /// <li>
   20     23   
    /// <p>LimitExceededException - Per-account Amazon CloudWatch Contributor Insights rule limit reached. Please disable Contributor Insights for other tables/indexes OR disable Contributor Insights rules before retrying.</p></li>
   21     24   
    /// <li>
   22     25   
    /// <p>AccessDeniedException - Amazon CloudWatch Contributor Insights rules cannot be modified due to insufficient permissions.</p></li>
   23     26   
    /// <li>
   24     27   
    /// <p>AccessDeniedException - Failed to create service-linked role for Contributor Insights due to insufficient permissions.</p></li>
   25     28   
    /// <li>
   26     29   
    /// <p>InternalServerError - Failed to create Amazon CloudWatch Contributor Insights rules. Please retry request.</p></li>
   27     30   
    /// </ul>
   28     31   
    pub failure_exception: ::std::option::Option<crate::types::FailureException>,
          32  +
    /* StructureGenerator.kt:201 */
   29     33   
}
          34  +
/* StructureGenerator.kt:135 */
   30     35   
impl DescribeContributorInsightsOutput {
   31         -
    /// <p>The name of the table being described.</p>
          36  +
    /// /* StructureGenerator.kt:231 */<p>The name of the table being described.</p>
          37  +
    /* StructureGenerator.kt:166 */
   32     38   
    pub fn table_name(&self) -> ::std::option::Option<&str> {
          39  +
        /* StructureGenerator.kt:169 */
   33     40   
        self.table_name.as_deref()
          41  +
        /* StructureGenerator.kt:166 */
   34     42   
    }
   35         -
    /// <p>The name of the global secondary index being described.</p>
          43  +
    /// /* StructureGenerator.kt:231 */<p>The name of the global secondary index being described.</p>
          44  +
    /* StructureGenerator.kt:166 */
   36     45   
    pub fn index_name(&self) -> ::std::option::Option<&str> {
          46  +
        /* StructureGenerator.kt:169 */
   37     47   
        self.index_name.as_deref()
          48  +
        /* StructureGenerator.kt:166 */
   38     49   
    }
   39         -
    /// <p>List of names of the associated Alpine rules.</p>
   40         -
    ///
   41         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.contributor_insights_rule_list.is_none()`.
          50  +
    /// /* StructureGenerator.kt:231 */<p>List of names of the associated Alpine rules.</p>
          51  +
    /// /* StructureGenerator.kt:162 */
          52  +
    /// /* StructureGenerator.kt:163 */If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.contributor_insights_rule_list.is_none()`.
          53  +
    /* StructureGenerator.kt:166 */
   42     54   
    pub fn contributor_insights_rule_list(&self) -> &[::std::string::String] {
   43         -
        self.contributor_insights_rule_list.as_deref().unwrap_or_default()
          55  +
        /* StructureGenerator.kt:169 */
          56  +
        self.contributor_insights_rule_list
          57  +
            .as_deref()
          58  +
            /* StructureGenerator.kt:175 */
          59  +
            .unwrap_or_default()
          60  +
        /* StructureGenerator.kt:166 */
   44     61   
    }
   45         -
    /// <p>Current Status contributor insights.</p>
          62  +
    /// /* StructureGenerator.kt:231 */<p>Current Status contributor insights.</p>
          63  +
    /* StructureGenerator.kt:166 */
   46     64   
    pub fn contributor_insights_status(&self) -> ::std::option::Option<&crate::types::ContributorInsightsStatus> {
          65  +
        /* StructureGenerator.kt:170 */
   47     66   
        self.contributor_insights_status.as_ref()
          67  +
        /* StructureGenerator.kt:166 */
   48     68   
    }
   49         -
    /// <p>Timestamp of the last time the status was changed.</p>
          69  +
    /// /* StructureGenerator.kt:231 */<p>Timestamp of the last time the status was changed.</p>
          70  +
    /* StructureGenerator.kt:166 */
   50     71   
    pub fn last_update_date_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
          72  +
        /* StructureGenerator.kt:170 */
   51     73   
        self.last_update_date_time.as_ref()
          74  +
        /* StructureGenerator.kt:166 */
   52     75   
    }
   53         -
    /// <p>Returns information about the last failure that encountered.</p>
          76  +
    /// /* StructureGenerator.kt:231 */<p>Returns information about the last failure that encountered.</p>
   54     77   
    /// <p>The most common exceptions for a FAILED status are:</p>
   55     78   
    /// <ul>
   56     79   
    /// <li>
   57     80   
    /// <p>LimitExceededException - Per-account Amazon CloudWatch Contributor Insights rule limit reached. Please disable Contributor Insights for other tables/indexes OR disable Contributor Insights rules before retrying.</p></li>
   58     81   
    /// <li>
   59     82   
    /// <p>AccessDeniedException - Amazon CloudWatch Contributor Insights rules cannot be modified due to insufficient permissions.</p></li>
   60     83   
    /// <li>
   61     84   
    /// <p>AccessDeniedException - Failed to create service-linked role for Contributor Insights due to insufficient permissions.</p></li>
   62     85   
    /// <li>
   63     86   
    /// <p>InternalServerError - Failed to create Amazon CloudWatch Contributor Insights rules. Please retry request.</p></li>
   64     87   
    /// </ul>
          88  +
    /* StructureGenerator.kt:166 */
   65     89   
    pub fn failure_exception(&self) -> ::std::option::Option<&crate::types::FailureException> {
          90  +
        /* StructureGenerator.kt:170 */
   66     91   
        self.failure_exception.as_ref()
          92  +
        /* StructureGenerator.kt:166 */
   67     93   
    }
          94  +
    /* StructureGenerator.kt:135 */
   68     95   
}
          96  +
/* ClientCodegenVisitor.kt:237 */
   69     97   
impl DescribeContributorInsightsOutput {
   70         -
    /// Creates a new builder-style object to manufacture [`DescribeContributorInsightsOutput`](crate::operation::describe_contributor_insights::DescribeContributorInsightsOutput).
          98  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`DescribeContributorInsightsOutput`](crate::operation::describe_contributor_insights::DescribeContributorInsightsOutput).
          99  +
    /* BuilderGenerator.kt:175 */
   71    100   
    pub fn builder() -> crate::operation::describe_contributor_insights::builders::DescribeContributorInsightsOutputBuilder {
         101  +
        /* BuilderGenerator.kt:176 */
   72    102   
        crate::operation::describe_contributor_insights::builders::DescribeContributorInsightsOutputBuilder::default()
         103  +
        /* BuilderGenerator.kt:175 */
   73    104   
    }
         105  +
    /* ClientCodegenVisitor.kt:237 */
   74    106   
}
   75    107   
   76         -
/// A builder for [`DescribeContributorInsightsOutput`](crate::operation::describe_contributor_insights::DescribeContributorInsightsOutput).
         108  +
/// /* BuilderGenerator.kt:342 */A builder for [`DescribeContributorInsightsOutput`](crate::operation::describe_contributor_insights::DescribeContributorInsightsOutput).
         109  +
/* RustType.kt:516 */
   77    110   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         111  +
/* RustType.kt:516 */
   78    112   
#[non_exhaustive]
         113  +
/* BuilderGenerator.kt:345 */
   79    114   
pub struct DescribeContributorInsightsOutputBuilder {
   80         -
    pub(crate) table_name: ::std::option::Option<::std::string::String>,
   81         -
    pub(crate) index_name: ::std::option::Option<::std::string::String>,
   82         -
    pub(crate) contributor_insights_rule_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
   83         -
    pub(crate) contributor_insights_status: ::std::option::Option<crate::types::ContributorInsightsStatus>,
   84         -
    pub(crate) last_update_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
         115  +
    /* BuilderGenerator.kt:275 */ pub(crate) table_name: ::std::option::Option<::std::string::String>,
         116  +
    /* BuilderGenerator.kt:275 */ pub(crate) index_name: ::std::option::Option<::std::string::String>,
         117  +
    /* BuilderGenerator.kt:275 */ pub(crate) contributor_insights_rule_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
         118  +
    /* BuilderGenerator.kt:275 */ pub(crate) contributor_insights_status: ::std::option::Option<crate::types::ContributorInsightsStatus>,
         119  +
    /* BuilderGenerator.kt:275 */ pub(crate) last_update_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
         120  +
    /* BuilderGenerator.kt:275 */
   85    121   
    pub(crate) failure_exception: ::std::option::Option<crate::types::FailureException>,
         122  +
    /* BuilderGenerator.kt:345 */
   86    123   
}
         124  +
/* BuilderGenerator.kt:355 */
   87    125   
impl DescribeContributorInsightsOutputBuilder {
   88         -
    /// <p>The name of the table being described.</p>
         126  +
    /// /* BuilderGenerator.kt:286 */<p>The name of the table being described.</p>
         127  +
    /* BuilderGenerator.kt:291 */
   89    128   
    pub fn table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         129  +
        /* BuilderGenerator.kt:292 */
   90    130   
        self.table_name = ::std::option::Option::Some(input.into());
         131  +
        /* BuilderGenerator.kt:293 */
   91    132   
        self
         133  +
        /* BuilderGenerator.kt:291 */
   92    134   
    }
   93         -
    /// <p>The name of the table being described.</p>
         135  +
    /// /* BuilderGenerator.kt:312 */<p>The name of the table being described.</p>
         136  +
    /* BuilderGenerator.kt:314 */
   94    137   
    pub fn set_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         138  +
        /* BuilderGenerator.kt:315 */
   95    139   
        self.table_name = input;
   96    140   
        self
         141  +
        /* BuilderGenerator.kt:314 */
   97    142   
    }
   98         -
    /// <p>The name of the table being described.</p>
         143  +
    /// /* BuilderGenerator.kt:334 */<p>The name of the table being described.</p>
         144  +
    /* BuilderGenerator.kt:336 */
   99    145   
    pub fn get_table_name(&self) -> &::std::option::Option<::std::string::String> {
         146  +
        /* BuilderGenerator.kt:337 */
  100    147   
        &self.table_name
         148  +
        /* BuilderGenerator.kt:336 */
  101    149   
    }
  102         -
    /// <p>The name of the global secondary index being described.</p>
         150  +
    /// /* BuilderGenerator.kt:286 */<p>The name of the global secondary index being described.</p>
         151  +
    /* BuilderGenerator.kt:291 */
  103    152   
    pub fn index_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         153  +
        /* BuilderGenerator.kt:292 */
  104    154   
        self.index_name = ::std::option::Option::Some(input.into());
         155  +
        /* BuilderGenerator.kt:293 */
  105    156   
        self
         157  +
        /* BuilderGenerator.kt:291 */
  106    158   
    }
  107         -
    /// <p>The name of the global secondary index being described.</p>
         159  +
    /// /* BuilderGenerator.kt:312 */<p>The name of the global secondary index being described.</p>
         160  +
    /* BuilderGenerator.kt:314 */
  108    161   
    pub fn set_index_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         162  +
        /* BuilderGenerator.kt:315 */
  109    163   
        self.index_name = input;
  110    164   
        self
         165  +
        /* BuilderGenerator.kt:314 */
  111    166   
    }
  112         -
    /// <p>The name of the global secondary index being described.</p>
         167  +
    /// /* BuilderGenerator.kt:334 */<p>The name of the global secondary index being described.</p>
         168  +
    /* BuilderGenerator.kt:336 */
  113    169   
    pub fn get_index_name(&self) -> &::std::option::Option<::std::string::String> {
         170  +
        /* BuilderGenerator.kt:337 */
  114    171   
        &self.index_name
         172  +
        /* BuilderGenerator.kt:336 */
  115    173   
    }
  116         -
    /// Appends an item to `contributor_insights_rule_list`.
         174  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `contributor_insights_rule_list`.
         175  +
    /* BuilderGenerator.kt:411 */
  117    176   
    ///
  118         -
    /// To override the contents of this collection use [`set_contributor_insights_rule_list`](Self::set_contributor_insights_rule_list).
         177  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_contributor_insights_rule_list`](Self::set_contributor_insights_rule_list).
         178  +
    /* BuilderGenerator.kt:413 */
  119    179   
    ///
  120         -
    /// <p>List of names of the associated Alpine rules.</p>
         180  +
    /// /* BuilderGenerator.kt:414 */<p>List of names of the associated Alpine rules.</p>
         181  +
    /* BuilderGenerator.kt:418 */
  121    182   
    pub fn contributor_insights_rule_list(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         183  +
        /* BuilderGenerator.kt:419 */
  122    184   
        let mut v = self.contributor_insights_rule_list.unwrap_or_default();
  123    185   
        v.push(input.into());
  124    186   
        self.contributor_insights_rule_list = ::std::option::Option::Some(v);
  125    187   
        self
         188  +
        /* BuilderGenerator.kt:418 */
  126    189   
    }
  127         -
    /// <p>List of names of the associated Alpine rules.</p>
         190  +
    /// /* BuilderGenerator.kt:312 */<p>List of names of the associated Alpine rules.</p>
         191  +
    /* BuilderGenerator.kt:314 */
  128    192   
    pub fn set_contributor_insights_rule_list(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
         193  +
        /* BuilderGenerator.kt:315 */
  129    194   
        self.contributor_insights_rule_list = input;
  130    195   
        self
         196  +
        /* BuilderGenerator.kt:314 */
  131    197   
    }
  132         -
    /// <p>List of names of the associated Alpine rules.</p>
         198  +
    /// /* BuilderGenerator.kt:334 */<p>List of names of the associated Alpine rules.</p>
         199  +
    /* BuilderGenerator.kt:336 */
  133    200   
    pub fn get_contributor_insights_rule_list(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
         201  +
        /* BuilderGenerator.kt:337 */
  134    202   
        &self.contributor_insights_rule_list
         203  +
        /* BuilderGenerator.kt:336 */
  135    204   
    }
  136         -
    /// <p>Current Status contributor insights.</p>
         205  +
    /// /* BuilderGenerator.kt:286 */<p>Current Status contributor insights.</p>
         206  +
    /* BuilderGenerator.kt:291 */
  137    207   
    pub fn contributor_insights_status(mut self, input: crate::types::ContributorInsightsStatus) -> Self {
         208  +
        /* BuilderGenerator.kt:292 */
  138    209   
        self.contributor_insights_status = ::std::option::Option::Some(input);
         210  +
        /* BuilderGenerator.kt:293 */
  139    211   
        self
         212  +
        /* BuilderGenerator.kt:291 */
  140    213   
    }
  141         -
    /// <p>Current Status contributor insights.</p>
         214  +
    /// /* BuilderGenerator.kt:312 */<p>Current Status contributor insights.</p>
         215  +
    /* BuilderGenerator.kt:314 */
  142    216   
    pub fn set_contributor_insights_status(mut self, input: ::std::option::Option<crate::types::ContributorInsightsStatus>) -> Self {
         217  +
        /* BuilderGenerator.kt:315 */
  143    218   
        self.contributor_insights_status = input;
  144    219   
        self
         220  +
        /* BuilderGenerator.kt:314 */
  145    221   
    }
  146         -
    /// <p>Current Status contributor insights.</p>
         222  +
    /// /* BuilderGenerator.kt:334 */<p>Current Status contributor insights.</p>
         223  +
    /* BuilderGenerator.kt:336 */
  147    224   
    pub fn get_contributor_insights_status(&self) -> &::std::option::Option<crate::types::ContributorInsightsStatus> {
         225  +
        /* BuilderGenerator.kt:337 */
  148    226   
        &self.contributor_insights_status
         227  +
        /* BuilderGenerator.kt:336 */
  149    228   
    }
  150         -
    /// <p>Timestamp of the last time the status was changed.</p>
         229  +
    /// /* BuilderGenerator.kt:286 */<p>Timestamp of the last time the status was changed.</p>
         230  +
    /* BuilderGenerator.kt:291 */
  151    231   
    pub fn last_update_date_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
         232  +
        /* BuilderGenerator.kt:292 */
  152    233   
        self.last_update_date_time = ::std::option::Option::Some(input);
         234  +
        /* BuilderGenerator.kt:293 */
  153    235   
        self
         236  +
        /* BuilderGenerator.kt:291 */
  154    237   
    }
  155         -
    /// <p>Timestamp of the last time the status was changed.</p>
         238  +
    /// /* BuilderGenerator.kt:312 */<p>Timestamp of the last time the status was changed.</p>
         239  +
    /* BuilderGenerator.kt:314 */
  156    240   
    pub fn set_last_update_date_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
         241  +
        /* BuilderGenerator.kt:315 */
  157    242   
        self.last_update_date_time = input;
  158    243   
        self
         244  +
        /* BuilderGenerator.kt:314 */
  159    245   
    }
  160         -
    /// <p>Timestamp of the last time the status was changed.</p>
         246  +
    /// /* BuilderGenerator.kt:334 */<p>Timestamp of the last time the status was changed.</p>
         247  +
    /* BuilderGenerator.kt:336 */
  161    248   
    pub fn get_last_update_date_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
         249  +
        /* BuilderGenerator.kt:337 */
  162    250   
        &self.last_update_date_time
         251  +
        /* BuilderGenerator.kt:336 */
  163    252   
    }
  164         -
    /// <p>Returns information about the last failure that encountered.</p>
         253  +
    /// /* BuilderGenerator.kt:286 */<p>Returns information about the last failure that encountered.</p>
  165    254   
    /// <p>The most common exceptions for a FAILED status are:</p>
  166    255   
    /// <ul>
  167    256   
    /// <li>
  168    257   
    /// <p>LimitExceededException - Per-account Amazon CloudWatch Contributor Insights rule limit reached. Please disable Contributor Insights for other tables/indexes OR disable Contributor Insights rules before retrying.</p></li>
  169    258   
    /// <li>
  170    259   
    /// <p>AccessDeniedException - Amazon CloudWatch Contributor Insights rules cannot be modified due to insufficient permissions.</p></li>
  171    260   
    /// <li>
  172    261   
    /// <p>AccessDeniedException - Failed to create service-linked role for Contributor Insights due to insufficient permissions.</p></li>
  173    262   
    /// <li>
  174    263   
    /// <p>InternalServerError - Failed to create Amazon CloudWatch Contributor Insights rules. Please retry request.</p></li>
  175    264   
    /// </ul>
         265  +
    /* BuilderGenerator.kt:291 */
  176    266   
    pub fn failure_exception(mut self, input: crate::types::FailureException) -> Self {
         267  +
        /* BuilderGenerator.kt:292 */
  177    268   
        self.failure_exception = ::std::option::Option::Some(input);
         269  +
        /* BuilderGenerator.kt:293 */
  178    270   
        self
         271  +
        /* BuilderGenerator.kt:291 */
  179    272   
    }
  180         -
    /// <p>Returns information about the last failure that encountered.</p>
         273  +
    /// /* BuilderGenerator.kt:312 */<p>Returns information about the last failure that encountered.</p>
  181    274   
    /// <p>The most common exceptions for a FAILED status are:</p>
  182    275   
    /// <ul>
  183    276   
    /// <li>
  184    277   
    /// <p>LimitExceededException - Per-account Amazon CloudWatch Contributor Insights rule limit reached. Please disable Contributor Insights for other tables/indexes OR disable Contributor Insights rules before retrying.</p></li>
  185    278   
    /// <li>
  186    279   
    /// <p>AccessDeniedException - Amazon CloudWatch Contributor Insights rules cannot be modified due to insufficient permissions.</p></li>
  187    280   
    /// <li>
  188    281   
    /// <p>AccessDeniedException - Failed to create service-linked role for Contributor Insights due to insufficient permissions.</p></li>
  189    282   
    /// <li>
  190    283   
    /// <p>InternalServerError - Failed to create Amazon CloudWatch Contributor Insights rules. Please retry request.</p></li>
  191    284   
    /// </ul>
         285  +
    /* BuilderGenerator.kt:314 */
  192    286   
    pub fn set_failure_exception(mut self, input: ::std::option::Option<crate::types::FailureException>) -> Self {
         287  +
        /* BuilderGenerator.kt:315 */
  193    288   
        self.failure_exception = input;
  194    289   
        self
         290  +
        /* BuilderGenerator.kt:314 */
  195    291   
    }
  196         -
    /// <p>Returns information about the last failure that encountered.</p>
         292  +
    /// /* BuilderGenerator.kt:334 */<p>Returns information about the last failure that encountered.</p>
  197    293   
    /// <p>The most common exceptions for a FAILED status are:</p>
  198    294   
    /// <ul>
  199    295   
    /// <li>
  200    296   
    /// <p>LimitExceededException - Per-account Amazon CloudWatch Contributor Insights rule limit reached. Please disable Contributor Insights for other tables/indexes OR disable Contributor Insights rules before retrying.</p></li>
  201    297   
    /// <li>
  202    298   
    /// <p>AccessDeniedException - Amazon CloudWatch Contributor Insights rules cannot be modified due to insufficient permissions.</p></li>
  203    299   
    /// <li>
  204    300   
    /// <p>AccessDeniedException - Failed to create service-linked role for Contributor Insights due to insufficient permissions.</p></li>
  205    301   
    /// <li>
  206    302   
    /// <p>InternalServerError - Failed to create Amazon CloudWatch Contributor Insights rules. Please retry request.</p></li>
  207    303   
    /// </ul>
         304  +
    /* BuilderGenerator.kt:336 */
  208    305   
    pub fn get_failure_exception(&self) -> &::std::option::Option<crate::types::FailureException> {
         306  +
        /* BuilderGenerator.kt:337 */
  209    307   
        &self.failure_exception
         308  +
        /* BuilderGenerator.kt:336 */
  210    309   
    }
  211         -
    /// Consumes the builder and constructs a [`DescribeContributorInsightsOutput`](crate::operation::describe_contributor_insights::DescribeContributorInsightsOutput).
         310  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`DescribeContributorInsightsOutput`](crate::operation::describe_contributor_insights::DescribeContributorInsightsOutput).
         311  +
    /* BuilderGenerator.kt:253 */
  212    312   
    pub fn build(self) -> crate::operation::describe_contributor_insights::DescribeContributorInsightsOutput {
         313  +
        /* BuilderGenerator.kt:477 */
  213    314   
        crate::operation::describe_contributor_insights::DescribeContributorInsightsOutput {
  214         -
            table_name: self.table_name,
         315  +
            /* BuilderGenerator.kt:481 */ table_name: self.table_name,
         316  +
            /* BuilderGenerator.kt:481 */
  215    317   
            index_name: self.index_name,
         318  +
            /* BuilderGenerator.kt:481 */
  216    319   
            contributor_insights_rule_list: self.contributor_insights_rule_list,
         320  +
            /* BuilderGenerator.kt:481 */
  217    321   
            contributor_insights_status: self.contributor_insights_status,
         322  +
            /* BuilderGenerator.kt:481 */
  218    323   
            last_update_date_time: self.last_update_date_time,
         324  +
            /* BuilderGenerator.kt:481 */
  219    325   
            failure_exception: self.failure_exception,
         326  +
            /* BuilderGenerator.kt:477 */
  220    327   
        }
         328  +
        /* BuilderGenerator.kt:253 */
  221    329   
    }
         330  +
    /* BuilderGenerator.kt:355 */
  222    331   
}

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

@@ -1,1 +139,157 @@
    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::describe_contributor_insights::_describe_contributor_insights_output::DescribeContributorInsightsOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::describe_contributor_insights::_describe_contributor_insights_input::DescribeContributorInsightsInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::describe_contributor_insights::builders::DescribeContributorInsightsInputBuilder {
    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::describe_contributor_insights::DescribeContributorInsightsOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::describe_contributor_insights::DescribeContributorInsightsError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.describe_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 `DescribeContributorInsights`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `DescribeContributorInsights`.
   24     27   
///
   25         -
/// <p>Returns information about contributor insights, for a given table or global secondary index.</p>
          28  +
/// /* FluentBuilderGenerator.kt:130 */<p>Returns information about contributor insights, for a given table or global secondary index.</p>
          29  +
/* RustType.kt:516 */
   26     30   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          31  +
/* FluentBuilderGenerator.kt:270 */
   27     32   
pub struct DescribeContributorInsightsFluentBuilder {
   28     33   
    handle: ::std::sync::Arc<crate::client::Handle>,
   29     34   
    inner: crate::operation::describe_contributor_insights::builders::DescribeContributorInsightsInputBuilder,
   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::describe_contributor_insights::DescribeContributorInsightsOutput,
   35     41   
        crate::operation::describe_contributor_insights::DescribeContributorInsightsError,
   36     42   
    > for DescribeContributorInsightsFluentBuilder
   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::describe_contributor_insights::DescribeContributorInsightsOutput,
   44     50   
            crate::operation::describe_contributor_insights::DescribeContributorInsightsError,
   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 DescribeContributorInsightsFluentBuilder {
          58  +
    /* FluentBuilderGenerator.kt:288 */
   51     59   
    /// Creates a new `DescribeContributorInsightsFluentBuilder`.
   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 DescribeContributorInsights as a reference.
   60     69   
    pub fn as_input(&self) -> &crate::operation::describe_contributor_insights::builders::DescribeContributorInsightsInputBuilder {
   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::describe_contributor_insights::DescribeContributorInsightsOutput,
   75     85   
        ::aws_smithy_runtime_api::client::result::SdkError<
   76     86   
            crate::operation::describe_contributor_insights::DescribeContributorInsightsError,
   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::describe_contributor_insights::DescribeContributorInsights::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::describe_contributor_insights::DescribeContributorInsights::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::describe_contributor_insights::DescribeContributorInsightsOutput,
   97    107   
        crate::operation::describe_contributor_insights::DescribeContributorInsightsError,
   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 to describe.</p>
         122  +
    /// /* FluentBuilderGenerator.kt:498 */<p>The name of the table to describe.</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 to describe.</p>
         128  +
    /// /* FluentBuilderGenerator.kt:498 */<p>The name of the table to describe.</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 to describe.</p>
         134  +
    /// /* FluentBuilderGenerator.kt:518 */<p>The name of the table to describe.</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 name of the global secondary index to describe, if applicable.</p>
         139  +
    /// /* FluentBuilderGenerator.kt:498 */<p>The name of the global secondary index to describe, 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 name of the global secondary index to describe, if applicable.</p>
         145  +
    /// /* FluentBuilderGenerator.kt:498 */<p>The name of the global secondary index to describe, 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 name of the global secondary index to describe, if applicable.</p>
         151  +
    /// /* FluentBuilderGenerator.kt:518 */<p>The name of the global secondary index to describe, 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   
    }
         156  +
    /* FluentBuilderGenerator.kt:282 */
  139    157   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/describe_endpoints.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 `DescribeEndpoints`.
           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 DescribeEndpoints;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl DescribeEndpoints {
    7         -
    /// Creates a new `DescribeEndpoints`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `DescribeEndpoints`
          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::describe_endpoints::DescribeEndpointsInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::describe_endpoints::DescribeEndpointsOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::describe_endpoints::DescribeEndpointsError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -57,66 +331,402 @@
   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 DescribeEndpoints {
   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("DescribeEndpoints");
   91    102   
   92    103   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   93    104   
            DescribeEndpointsRequestSerializer,
   94    105   
        ));
   95    106   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
   96    107   
            DescribeEndpointsResponseDeserializer,
   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   
            "DescribeEndpoints",
  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("DescribeEndpoints")
  117    128   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  118    129   
            .with_interceptor(DescribeEndpointsEndpointParamsInterceptor)
  119    130   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  120    131   
                crate::operation::describe_endpoints::DescribeEndpointsError,
  121    132   
            >::new())
  122    133   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  123    134   
                crate::operation::describe_endpoints::DescribeEndpointsError,
  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 DescribeEndpointsResponseDeserializer;
  132    144   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeEndpointsResponseDeserializer {
  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_describe_endpoints::de_describe_endpoints_http_error(status, headers, body)
  145    157   
        } else {
  146    158   
            crate::protocol_serde::shape_describe_endpoints::de_describe_endpoints_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 DescribeEndpointsRequestSerializer;
  153    166   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DescribeEndpointsRequestSerializer {
  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::describe_endpoints::DescribeEndpointsInput>()
  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::describe_endpoints::DescribeEndpointsInput,
  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::describe_endpoints::DescribeEndpointsInput,
  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.DescribeEndpoints",
  191    204   
            );
  192    205   
            builder
  193    206   
        };
  194    207   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_describe_endpoints::ser_describe_endpoints_input(&input)?);
  195    208   
  196    209   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  197    210   
    }
  198    211   
}
         212  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  199    213   
#[derive(Debug)]
  200    214   
struct DescribeEndpointsEndpointParamsInterceptor;
  201    215   
  202    216   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DescribeEndpointsEndpointParamsInterceptor {
  203    217   
    fn name(&self) -> &'static str {
  204    218   
        "DescribeEndpointsEndpointParamsInterceptor"
  205    219   
    }
  206    220   
  207    221   
    fn read_before_execution(
  208    222   
        &self,
  209    223   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  210    224   
            '_,
  211    225   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  212    226   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  213    227   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  214    228   
        >,
  215    229   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  216    230   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  217    231   
        let _input = context
  218    232   
            .input()
  219    233   
            .downcast_ref::<DescribeEndpointsInput>()
  220    234   
            .ok_or("failed to downcast to DescribeEndpointsInput")?;
  221    235   
  222    236   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  223    237   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  224    238   
        })?;
  225    239   
        cfg.interceptor_state()
  226    240   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  227    241   
        ::std::result::Result::Ok(())
  228    242   
    }
  229    243   
}
  230    244   
  231    245   
// The get_* functions below are generated from JMESPath expressions in the
  232    246   
// operationContextParams trait. They target the operation's input shape.
  233    247   
         248  +
/* OperationErrorGenerator.kt:79 */
  234    249   
/// Error type for the `DescribeEndpointsError` operation.
         250  +
/* RustType.kt:516 */
  235    251   
#[non_exhaustive]
         252  +
/* RustType.kt:516 */
  236    253   
#[derive(::std::fmt::Debug)]
  237         -
pub enum DescribeEndpointsError {
         254  +
pub /* OperationErrorGenerator.kt:81 */ enum DescribeEndpointsError {
         255  +
    /* OperationErrorGenerator.kt:88 */
  238    256   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  239    257   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  240    258   
    variable wildcard pattern and check `.code()`:
  241    259   
     \
  242    260   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  243    261   
     \
  244    262   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-DescribeEndpointsError) for what information is available for the error.")]
  245    263   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         264  +
    /* OperationErrorGenerator.kt:81 */
  246    265   
}
         266  +
/* OperationErrorGenerator.kt:218 */
  247    267   
impl DescribeEndpointsError {
         268  +
    /* OperationErrorGenerator.kt:219 */
  248    269   
    /// Creates the `DescribeEndpointsError::Unhandled` variant from any error type.
  249    270   
    pub fn unhandled(
  250    271   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  251    272   
    ) -> Self {
  252    273   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  253    274   
            source: err.into(),
  254    275   
            meta: ::std::default::Default::default(),
  255    276   
        })
  256    277   
    }
  257    278   
  258    279   
    /// Creates the `DescribeEndpointsError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  259    280   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  260    281   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  261    282   
            source: err.clone().into(),
  262    283   
            meta: err,
  263    284   
        })
  264    285   
    }
  265         -
    ///
         286  +
    /// /* OperationErrorGenerator.kt:236 */
  266    287   
    /// Returns error metadata, which includes the error code, message,
  267    288   
    /// request ID, and potentially additional information.
  268    289   
    ///
         290  +
    /* OperationErrorGenerator.kt:242 */
  269    291   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         292  +
        /* OperationErrorGenerator.kt:243 */
  270    293   
        match self {
  271         -
            Self::Unhandled(e) => &e.meta,
         294  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         295  +
            /* OperationErrorGenerator.kt:243 */
  272    296   
        }
         297  +
        /* OperationErrorGenerator.kt:242 */
  273    298   
    }
         299  +
    /* OperationErrorGenerator.kt:218 */
  274    300   
}
         301  +
/* OperationErrorGenerator.kt:269 */
  275    302   
impl ::std::error::Error for DescribeEndpointsError {
         303  +
    /* OperationErrorGenerator.kt:270 */
  276    304   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         305  +
        /* OperationErrorGenerator.kt:318 */
  277    306   
        match self {
  278         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         307  +
            /* OperationErrorGenerator.kt:326 */
         308  +
            Self::Unhandled(_inner) => {
         309  +
                /* OperationErrorGenerator.kt:279 */
         310  +
                ::std::option::Option::Some(&*_inner.source)
         311  +
                /* OperationErrorGenerator.kt:326 */
         312  +
            } /* OperationErrorGenerator.kt:318 */
  279    313   
        }
         314  +
        /* OperationErrorGenerator.kt:270 */
  280    315   
    }
         316  +
    /* OperationErrorGenerator.kt:269 */
  281    317   
}
         318  +
/* OperationErrorGenerator.kt:133 */
  282    319   
impl ::std::fmt::Display for DescribeEndpointsError {
         320  +
    /* OperationErrorGenerator.kt:134 */
  283    321   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         322  +
        /* OperationErrorGenerator.kt:318 */
  284    323   
        match self {
         324  +
            /* OperationErrorGenerator.kt:326 */
  285    325   
            Self::Unhandled(_inner) => {
         326  +
                /* OperationErrorGenerator.kt:139 */
  286    327   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  287    328   
                    write!(f, "unhandled error ({code})")
  288    329   
                } else {
  289    330   
                    f.write_str("unhandled error")
  290    331   
                }
         332  +
                /* OperationErrorGenerator.kt:326 */
         333  +
            } /* OperationErrorGenerator.kt:318 */
  291    334   
        }
         335  +
        /* OperationErrorGenerator.kt:134 */
  292    336   
    }
  293         -
    }
         337  +
    /* OperationErrorGenerator.kt:133 */
  294    338   
}
         339  +
/* OperationErrorGenerator.kt:182 */
  295    340   
impl ::aws_smithy_types::retry::ProvideErrorKind for DescribeEndpointsError {
         341  +
    /* OperationErrorGenerator.kt:186 */
  296    342   
    fn code(&self) -> ::std::option::Option<&str> {
         343  +
        /* OperationErrorGenerator.kt:187 */
  297    344   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         345  +
        /* OperationErrorGenerator.kt:186 */
  298    346   
    }
         347  +
    /* OperationErrorGenerator.kt:190 */
  299    348   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         349  +
        /* OperationErrorGenerator.kt:197 */
  300    350   
        ::std::option::Option::None
         351  +
        /* OperationErrorGenerator.kt:190 */
  301    352   
    }
         353  +
    /* OperationErrorGenerator.kt:182 */
  302    354   
}
         355  +
/* OperationErrorGenerator.kt:163 */
  303    356   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for DescribeEndpointsError {
         357  +
    /* OperationErrorGenerator.kt:164 */
  304    358   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         359  +
        /* OperationErrorGenerator.kt:318 */
  305    360   
        match self {
  306         -
            Self::Unhandled(_inner) => &_inner.meta,
         361  +
            /* OperationErrorGenerator.kt:326 */
         362  +
            Self::Unhandled(_inner) => {
         363  +
                /* OperationErrorGenerator.kt:168 */
         364  +
                &_inner.meta
         365  +
                /* OperationErrorGenerator.kt:326 */
         366  +
            } /* OperationErrorGenerator.kt:318 */
  307    367   
        }
         368  +
        /* OperationErrorGenerator.kt:164 */
  308    369   
    }
         370  +
    /* OperationErrorGenerator.kt:163 */
  309    371   
}
         372  +
/* OperationErrorGenerator.kt:109 */
  310    373   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for DescribeEndpointsError {
         374  +
    /* OperationErrorGenerator.kt:110 */
  311    375   
    fn create_unhandled_error(
  312    376   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  313    377   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  314    378   
    ) -> Self {
         379  +
        /* OperationErrorGenerator.kt:121 */
  315    380   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  316    381   
            source,
  317    382   
            meta: meta.unwrap_or_default(),
  318    383   
        })
         384  +
        /* OperationErrorGenerator.kt:110 */
  319    385   
    }
         386  +
    /* OperationErrorGenerator.kt:109 */
  320    387   
}
  321    388   
         389  +
/* CodegenDelegator.kt:255 */
  322    390   
pub use crate::operation::describe_endpoints::_describe_endpoints_output::DescribeEndpointsOutput;
  323    391   
         392  +
/* CodegenDelegator.kt:255 */
  324    393   
pub use crate::operation::describe_endpoints::_describe_endpoints_input::DescribeEndpointsInput;
  325    394   
         395  +
/* RustModule.kt:172 */
  326    396   
mod _describe_endpoints_input;
  327    397   
         398  +
/* RustModule.kt:172 */
  328    399   
mod _describe_endpoints_output;
  329    400   
  330         -
/// Builders
         401  +
/// /* CodegenDelegator.kt:51 */Builders
  331    402   
pub mod builders;

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/describe_endpoints/_describe_endpoints_input.rs

@@ -1,1 +24,44 @@
    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 DescribeEndpointsInput {}
           8  +
pub /* StructureGenerator.kt:201 */ struct DescribeEndpointsInput {/* StructureGenerator.kt:201 */}
           9  +
/* ClientCodegenVisitor.kt:237 */
    6     10   
impl DescribeEndpointsInput {
    7         -
    /// Creates a new builder-style object to manufacture [`DescribeEndpointsInput`](crate::operation::describe_endpoints::DescribeEndpointsInput).
          11  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`DescribeEndpointsInput`](crate::operation::describe_endpoints::DescribeEndpointsInput).
          12  +
    /* BuilderGenerator.kt:175 */
    8     13   
    pub fn builder() -> crate::operation::describe_endpoints::builders::DescribeEndpointsInputBuilder {
          14  +
        /* BuilderGenerator.kt:176 */
    9     15   
        crate::operation::describe_endpoints::builders::DescribeEndpointsInputBuilder::default()
          16  +
        /* BuilderGenerator.kt:175 */
   10     17   
    }
          18  +
    /* ClientCodegenVisitor.kt:237 */
   11     19   
}
   12     20   
   13         -
/// A builder for [`DescribeEndpointsInput`](crate::operation::describe_endpoints::DescribeEndpointsInput).
          21  +
/// /* BuilderGenerator.kt:342 */A builder for [`DescribeEndpointsInput`](crate::operation::describe_endpoints::DescribeEndpointsInput).
          22  +
/* RustType.kt:516 */
   14     23   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          24  +
/* RustType.kt:516 */
   15     25   
#[non_exhaustive]
   16         -
pub struct DescribeEndpointsInputBuilder {}
          26  +
/* BuilderGenerator.kt:345 */
          27  +
pub struct DescribeEndpointsInputBuilder {/* BuilderGenerator.kt:345 */}
          28  +
/* BuilderGenerator.kt:355 */
   17     29   
impl DescribeEndpointsInputBuilder {
   18         -
    /// Consumes the builder and constructs a [`DescribeEndpointsInput`](crate::operation::describe_endpoints::DescribeEndpointsInput).
          30  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`DescribeEndpointsInput`](crate::operation::describe_endpoints::DescribeEndpointsInput).
          31  +
    /* BuilderGenerator.kt:253 */
   19     32   
    pub fn build(
   20     33   
        self,
   21     34   
    ) -> ::std::result::Result<crate::operation::describe_endpoints::DescribeEndpointsInput, ::aws_smithy_types::error::operation::BuildError> {
   22         -
        ::std::result::Result::Ok(crate::operation::describe_endpoints::DescribeEndpointsInput {})
          35  +
        /* BuilderGenerator.kt:254 */
          36  +
        ::std::result::Result::Ok(
          37  +
            /* BuilderGenerator.kt:477 */
          38  +
            crate::operation::describe_endpoints::DescribeEndpointsInput {
          39  +
            /* BuilderGenerator.kt:477 */}, /* BuilderGenerator.kt:254 */
          40  +
        )
          41  +
        /* BuilderGenerator.kt:253 */
   23     42   
    }
          43  +
    /* BuilderGenerator.kt:355 */
   24     44   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/describe_endpoints/_describe_endpoints_output.rs

@@ -1,1 +65,101 @@
    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 DescribeEndpointsOutput {
    6         -
    /// <p>List of endpoints.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct DescribeEndpointsOutput {
           9  +
    /// /* StructureGenerator.kt:231 */<p>List of endpoints.</p>
    7     10   
    pub endpoints: ::std::vec::Vec<crate::types::Endpoint>,
          11  +
    /* StructureGenerator.kt:201 */
    8     12   
}
          13  +
/* StructureGenerator.kt:135 */
    9     14   
impl DescribeEndpointsOutput {
   10         -
    /// <p>List of endpoints.</p>
          15  +
    /// /* StructureGenerator.kt:231 */<p>List of endpoints.</p>
          16  +
    /* StructureGenerator.kt:166 */
   11     17   
    pub fn endpoints(&self) -> &[crate::types::Endpoint] {
          18  +
        /* StructureGenerator.kt:171 */
   12     19   
        use std::ops::Deref;
   13     20   
        self.endpoints.deref()
          21  +
        /* StructureGenerator.kt:166 */
   14     22   
    }
          23  +
    /* StructureGenerator.kt:135 */
   15     24   
}
          25  +
/* ClientCodegenVisitor.kt:237 */
   16     26   
impl DescribeEndpointsOutput {
   17         -
    /// Creates a new builder-style object to manufacture [`DescribeEndpointsOutput`](crate::operation::describe_endpoints::DescribeEndpointsOutput).
          27  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`DescribeEndpointsOutput`](crate::operation::describe_endpoints::DescribeEndpointsOutput).
          28  +
    /* BuilderGenerator.kt:175 */
   18     29   
    pub fn builder() -> crate::operation::describe_endpoints::builders::DescribeEndpointsOutputBuilder {
          30  +
        /* BuilderGenerator.kt:176 */
   19     31   
        crate::operation::describe_endpoints::builders::DescribeEndpointsOutputBuilder::default()
          32  +
        /* BuilderGenerator.kt:175 */
   20     33   
    }
          34  +
    /* ClientCodegenVisitor.kt:237 */
   21     35   
}
   22     36   
   23         -
/// A builder for [`DescribeEndpointsOutput`](crate::operation::describe_endpoints::DescribeEndpointsOutput).
          37  +
/// /* BuilderGenerator.kt:342 */A builder for [`DescribeEndpointsOutput`](crate::operation::describe_endpoints::DescribeEndpointsOutput).
          38  +
/* RustType.kt:516 */
   24     39   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          40  +
/* RustType.kt:516 */
   25     41   
#[non_exhaustive]
          42  +
/* BuilderGenerator.kt:345 */
   26     43   
pub struct DescribeEndpointsOutputBuilder {
          44  +
    /* BuilderGenerator.kt:275 */
   27     45   
    pub(crate) endpoints: ::std::option::Option<::std::vec::Vec<crate::types::Endpoint>>,
          46  +
    /* BuilderGenerator.kt:345 */
   28     47   
}
          48  +
/* BuilderGenerator.kt:355 */
   29     49   
impl DescribeEndpointsOutputBuilder {
   30         -
    /// Appends an item to `endpoints`.
          50  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `endpoints`.
          51  +
    /* BuilderGenerator.kt:411 */
   31     52   
    ///
   32         -
    /// To override the contents of this collection use [`set_endpoints`](Self::set_endpoints).
          53  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_endpoints`](Self::set_endpoints).
          54  +
    /* BuilderGenerator.kt:413 */
   33     55   
    ///
   34         -
    /// <p>List of endpoints.</p>
          56  +
    /// /* BuilderGenerator.kt:414 */<p>List of endpoints.</p>
          57  +
    /* BuilderGenerator.kt:418 */
   35     58   
    pub fn endpoints(mut self, input: crate::types::Endpoint) -> Self {
          59  +
        /* BuilderGenerator.kt:419 */
   36     60   
        let mut v = self.endpoints.unwrap_or_default();
   37     61   
        v.push(input);
   38     62   
        self.endpoints = ::std::option::Option::Some(v);
   39     63   
        self
          64  +
        /* BuilderGenerator.kt:418 */
   40     65   
    }
   41         -
    /// <p>List of endpoints.</p>
          66  +
    /// /* BuilderGenerator.kt:312 */<p>List of endpoints.</p>
          67  +
    /* BuilderGenerator.kt:314 */
   42     68   
    pub fn set_endpoints(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Endpoint>>) -> Self {
          69  +
        /* BuilderGenerator.kt:315 */
   43     70   
        self.endpoints = input;
   44     71   
        self
          72  +
        /* BuilderGenerator.kt:314 */
   45     73   
    }
   46         -
    /// <p>List of endpoints.</p>
          74  +
    /// /* BuilderGenerator.kt:334 */<p>List of endpoints.</p>
          75  +
    /* BuilderGenerator.kt:336 */
   47     76   
    pub fn get_endpoints(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Endpoint>> {
          77  +
        /* BuilderGenerator.kt:337 */
   48     78   
        &self.endpoints
          79  +
        /* BuilderGenerator.kt:336 */
   49     80   
    }
   50         -
    /// Consumes the builder and constructs a [`DescribeEndpointsOutput`](crate::operation::describe_endpoints::DescribeEndpointsOutput).
   51         -
    /// This method will fail if any of the following fields are not set:
   52         -
    /// - [`endpoints`](crate::operation::describe_endpoints::builders::DescribeEndpointsOutputBuilder::endpoints)
          81  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`DescribeEndpointsOutput`](crate::operation::describe_endpoints::DescribeEndpointsOutput).
          82  +
    /// /* BuilderGenerator.kt:243 */This method will fail if any of the following fields are not set:
          83  +
    /// /* BuilderGenerator.kt:246 */- [`endpoints`](crate::operation::describe_endpoints::builders::DescribeEndpointsOutputBuilder::endpoints)
          84  +
    /* BuilderGenerator.kt:253 */
   53     85   
    pub fn build(
   54     86   
        self,
   55     87   
    ) -> ::std::result::Result<crate::operation::describe_endpoints::DescribeEndpointsOutput, ::aws_smithy_types::error::operation::BuildError> {
   56         -
        ::std::result::Result::Ok(crate::operation::describe_endpoints::DescribeEndpointsOutput {
   57         -
            endpoints: self.endpoints.ok_or_else(|| {
   58         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
   59         -
                    "endpoints",
   60         -
                    "endpoints was not specified but it is required when building DescribeEndpointsOutput",
   61         -
                )
   62         -
            })?,
   63         -
        })
          88  +
        /* BuilderGenerator.kt:254 */
          89  +
        ::std::result::Result::Ok(
          90  +
            /* BuilderGenerator.kt:477 */crate::operation::describe_endpoints::DescribeEndpointsOutput {
          91  +
                /* BuilderGenerator.kt:481 */endpoints: self.endpoints
          92  +
                    /* BuilderGenerator.kt:494 */.ok_or_else(||
          93  +
                        /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("endpoints", "endpoints was not specified but it is required when building DescribeEndpointsOutput")
          94  +
                    /* BuilderGenerator.kt:494 */)?
          95  +
                ,
          96  +
            /* BuilderGenerator.kt:477 */}
          97  +
        /* BuilderGenerator.kt:254 */)
          98  +
        /* BuilderGenerator.kt:253 */
   64     99   
    }
         100  +
    /* BuilderGenerator.kt:355 */
   65    101   
}

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

@@ -1,1 +111,123 @@
    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::describe_endpoints::_describe_endpoints_output::DescribeEndpointsOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::describe_endpoints::_describe_endpoints_input::DescribeEndpointsInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::describe_endpoints::builders::DescribeEndpointsInputBuilder {
    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::describe_endpoints::DescribeEndpointsOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::describe_endpoints::DescribeEndpointsError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.describe_endpoints();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `DescribeEndpoints`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `DescribeEndpoints`.
   24     27   
///
   25         -
/// <p>Returns the regional endpoint information.</p>
          28  +
/// /* FluentBuilderGenerator.kt:130 */<p>Returns the regional endpoint information.</p>
          29  +
/* RustType.kt:516 */
   26     30   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          31  +
/* FluentBuilderGenerator.kt:270 */
   27     32   
pub struct DescribeEndpointsFluentBuilder {
   28     33   
    handle: ::std::sync::Arc<crate::client::Handle>,
   29     34   
    inner: crate::operation::describe_endpoints::builders::DescribeEndpointsInputBuilder,
   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::describe_endpoints::DescribeEndpointsOutput,
   35     41   
        crate::operation::describe_endpoints::DescribeEndpointsError,
   36     42   
    > for DescribeEndpointsFluentBuilder
   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::describe_endpoints::DescribeEndpointsOutput,
   44     50   
            crate::operation::describe_endpoints::DescribeEndpointsError,
   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 DescribeEndpointsFluentBuilder {
          58  +
    /* FluentBuilderGenerator.kt:288 */
   51     59   
    /// Creates a new `DescribeEndpointsFluentBuilder`.
   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 DescribeEndpoints as a reference.
   60     69   
    pub fn as_input(&self) -> &crate::operation::describe_endpoints::builders::DescribeEndpointsInputBuilder {
   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::describe_endpoints::DescribeEndpointsOutput,
   75     85   
        ::aws_smithy_runtime_api::client::result::SdkError<
   76     86   
            crate::operation::describe_endpoints::DescribeEndpointsError,
   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::describe_endpoints::DescribeEndpoints::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::describe_endpoints::DescribeEndpoints::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::describe_endpoints::DescribeEndpointsOutput,
   97    107   
        crate::operation::describe_endpoints::DescribeEndpointsError,
   98    108   
        Self,
   99    109   
    > {
  100    110   
        crate::client::customize::CustomizableOperation::new(self)
  101    111   
    }
         112  +
    /* FluentBuilderGenerator.kt:315 */
  102    113   
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
  103    114   
        self.set_config_override(::std::option::Option::Some(config_override.into()));
  104    115   
        self
  105    116   
    }
  106    117   
  107    118   
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
  108    119   
        self.config_override = config_override;
  109    120   
        self
  110    121   
    }
         122  +
    /* FluentBuilderGenerator.kt:282 */
  111    123   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/describe_export.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 `DescribeExport`.
           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 DescribeExport;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl DescribeExport {
    7         -
    /// Creates a new `DescribeExport`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `DescribeExport`
          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::describe_export::DescribeExportInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::describe_export::DescribeExportOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::describe_export::DescribeExportError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -57,66 +367,510 @@
   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 DescribeExport {
   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("DescribeExport");
   91    102   
   92    103   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   93    104   
            DescribeExportRequestSerializer,
   94    105   
        ));
   95    106   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
   96    107   
            DescribeExportResponseDeserializer,
   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   
            "DescribeExport",
  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("DescribeExport")
  117    128   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  118    129   
            .with_interceptor(DescribeExportEndpointParamsInterceptor)
  119    130   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  120    131   
                crate::operation::describe_export::DescribeExportError,
  121    132   
            >::new())
  122    133   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  123    134   
                crate::operation::describe_export::DescribeExportError,
  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 DescribeExportResponseDeserializer;
  132    144   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeExportResponseDeserializer {
  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_describe_export::de_describe_export_http_error(status, headers, body)
  145    157   
        } else {
  146    158   
            crate::protocol_serde::shape_describe_export::de_describe_export_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 DescribeExportRequestSerializer;
  153    166   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DescribeExportRequestSerializer {
  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::describe_export::DescribeExportInput>()
  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::describe_export::DescribeExportInput,
  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::describe_export::DescribeExportInput,
  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.DescribeExport",
  191    204   
            );
  192    205   
            builder
  193    206   
        };
  194    207   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_describe_export::ser_describe_export_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 DescribeExportEndpointParamsInterceptor;
  204    218   
  205    219   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DescribeExportEndpointParamsInterceptor {
  206    220   
    fn name(&self) -> &'static str {
  207    221   
        "DescribeExportEndpointParamsInterceptor"
  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::<DescribeExportInput>()
  223    237   
            .ok_or("failed to downcast to DescribeExportInput")?;
  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 `DescribeExportError` operation.
         253  +
/* RustType.kt:516 */
  238    254   
#[non_exhaustive]
         255  +
/* RustType.kt:516 */
  239    256   
#[derive(::std::fmt::Debug)]
  240         -
pub enum DescribeExportError {
  241         -
    /// <p>The specified export was not found.</p>
         257  +
pub /* OperationErrorGenerator.kt:81 */ enum DescribeExportError {
         258  +
    /// /* OperationErrorGenerator.kt:83 */<p>The specified export was not found.</p>
         259  +
    /* OperationErrorGenerator.kt:86 */
  242    260   
    ExportNotFoundError(crate::types::error::ExportNotFoundError),
  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),
  245         -
    /// <p>There is no limit to the number of daily on-demand backups that can be taken.</p>
         264  +
    /// /* OperationErrorGenerator.kt:83 */<p>There is no limit to the number of daily on-demand backups that can be taken.</p>
  246    265   
    /// <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>
  247    266   
    /// <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>
  248    267   
    /// <p>There is a soft account quota of 256 tables.</p>
         268  +
    /* OperationErrorGenerator.kt:86 */
  249    269   
    LimitExceededError(crate::types::error::LimitExceededError),
         270  +
    /* OperationErrorGenerator.kt:88 */
  250    271   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  251    272   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  252    273   
    variable wildcard pattern and check `.code()`:
  253    274   
     \
  254    275   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  255    276   
     \
  256    277   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-DescribeExportError) for what information is available for the error.")]
  257    278   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         279  +
    /* OperationErrorGenerator.kt:81 */
  258    280   
}
         281  +
/* OperationErrorGenerator.kt:218 */
  259    282   
impl DescribeExportError {
         283  +
    /* OperationErrorGenerator.kt:219 */
  260    284   
    /// Creates the `DescribeExportError::Unhandled` variant from any error type.
  261    285   
    pub fn unhandled(
  262    286   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  263    287   
    ) -> Self {
  264    288   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  265    289   
            source: err.into(),
  266    290   
            meta: ::std::default::Default::default(),
  267    291   
        })
  268    292   
    }
  269    293   
  270    294   
    /// Creates the `DescribeExportError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  271    295   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  272    296   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  273    297   
            source: err.clone().into(),
  274    298   
            meta: err,
  275    299   
        })
  276    300   
    }
  277         -
    ///
         301  +
    /// /* OperationErrorGenerator.kt:236 */
  278    302   
    /// Returns error metadata, which includes the error code, message,
  279    303   
    /// request ID, and potentially additional information.
  280    304   
    ///
         305  +
    /* OperationErrorGenerator.kt:242 */
  281    306   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         307  +
        /* OperationErrorGenerator.kt:243 */
  282    308   
        match self {
         309  +
            /* OperationErrorGenerator.kt:246 */
  283    310   
            Self::ExportNotFoundError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         311  +
            /* OperationErrorGenerator.kt:246 */
  284    312   
            Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         313  +
            /* OperationErrorGenerator.kt:246 */
  285    314   
            Self::LimitExceededError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
  286         -
            Self::Unhandled(e) => &e.meta,
         315  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         316  +
            /* OperationErrorGenerator.kt:243 */
  287    317   
        }
         318  +
        /* OperationErrorGenerator.kt:242 */
  288    319   
    }
         320  +
    /* OperationErrorGenerator.kt:257 */
  289    321   
    /// Returns `true` if the error kind is `DescribeExportError::ExportNotFoundError`.
         322  +
    /* OperationErrorGenerator.kt:258 */
  290    323   
    pub fn is_export_not_found_error(&self) -> bool {
         324  +
        /* OperationErrorGenerator.kt:259 */
  291    325   
        matches!(self, Self::ExportNotFoundError(_))
         326  +
        /* OperationErrorGenerator.kt:258 */
  292    327   
    }
         328  +
    /* OperationErrorGenerator.kt:257 */
  293    329   
    /// Returns `true` if the error kind is `DescribeExportError::InternalServerError`.
         330  +
    /* OperationErrorGenerator.kt:258 */
  294    331   
    pub fn is_internal_server_error(&self) -> bool {
         332  +
        /* OperationErrorGenerator.kt:259 */
  295    333   
        matches!(self, Self::InternalServerError(_))
         334  +
        /* OperationErrorGenerator.kt:258 */
  296    335   
    }
         336  +
    /* OperationErrorGenerator.kt:257 */
  297    337   
    /// Returns `true` if the error kind is `DescribeExportError::LimitExceededError`.
         338  +
    /* OperationErrorGenerator.kt:258 */
  298    339   
    pub fn is_limit_exceeded_error(&self) -> bool {
         340  +
        /* OperationErrorGenerator.kt:259 */
  299    341   
        matches!(self, Self::LimitExceededError(_))
         342  +
        /* OperationErrorGenerator.kt:258 */
  300    343   
    }
         344  +
    /* OperationErrorGenerator.kt:218 */
  301    345   
}
         346  +
/* OperationErrorGenerator.kt:269 */
  302    347   
impl ::std::error::Error for DescribeExportError {
         348  +
    /* OperationErrorGenerator.kt:270 */
  303    349   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         350  +
        /* OperationErrorGenerator.kt:318 */
  304    351   
        match self {
  305         -
            Self::ExportNotFoundError(_inner) => ::std::option::Option::Some(_inner),
  306         -
            Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner),
  307         -
            Self::LimitExceededError(_inner) => ::std::option::Option::Some(_inner),
  308         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         352  +
            /* OperationErrorGenerator.kt:321 */
         353  +
            Self::ExportNotFoundError(_inner) =>
         354  +
            /* OperationErrorGenerator.kt:283 */
         355  +
            {
         356  +
                ::std::option::Option::Some(_inner)
         357  +
            }
         358  +
            ,
         359  +
            /* OperationErrorGenerator.kt:321 */
         360  +
            Self::InternalServerError(_inner) =>
         361  +
            /* OperationErrorGenerator.kt:283 */
         362  +
            {
         363  +
                ::std::option::Option::Some(_inner)
         364  +
            }
         365  +
            ,
         366  +
            /* OperationErrorGenerator.kt:321 */
         367  +
            Self::LimitExceededError(_inner) =>
         368  +
            /* OperationErrorGenerator.kt:283 */
         369  +
            {
         370  +
                ::std::option::Option::Some(_inner)
         371  +
            }
         372  +
            ,
         373  +
            /* OperationErrorGenerator.kt:326 */
         374  +
            Self::Unhandled(_inner) => {
         375  +
                /* OperationErrorGenerator.kt:279 */
         376  +
                ::std::option::Option::Some(&*_inner.source)
         377  +
                /* OperationErrorGenerator.kt:326 */
         378  +
            } /* OperationErrorGenerator.kt:318 */
  309    379   
        }
         380  +
        /* OperationErrorGenerator.kt:270 */
  310    381   
    }
         382  +
    /* OperationErrorGenerator.kt:269 */
  311    383   
}
         384  +
/* OperationErrorGenerator.kt:133 */
  312    385   
impl ::std::fmt::Display for DescribeExportError {
         386  +
    /* OperationErrorGenerator.kt:134 */
  313    387   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         388  +
        /* OperationErrorGenerator.kt:318 */
  314    389   
        match self {
  315         -
            Self::ExportNotFoundError(_inner) => _inner.fmt(f),
  316         -
            Self::InternalServerError(_inner) => _inner.fmt(f),
  317         -
            Self::LimitExceededError(_inner) => _inner.fmt(f),
         390  +
            /* OperationErrorGenerator.kt:321 */
         391  +
            Self::ExportNotFoundError(_inner) =>
         392  +
            /* OperationErrorGenerator.kt:151 */
         393  +
            {
         394  +
                _inner.fmt(f)
         395  +
            }
         396  +
            ,
         397  +
            /* OperationErrorGenerator.kt:321 */
         398  +
            Self::InternalServerError(_inner) =>
         399  +
            /* OperationErrorGenerator.kt:151 */
         400  +
            {
         401  +
                _inner.fmt(f)
         402  +
            }
         403  +
            ,
         404  +
            /* OperationErrorGenerator.kt:321 */
         405  +
            Self::LimitExceededError(_inner) =>
         406  +
            /* OperationErrorGenerator.kt:151 */
         407  +
            {
         408  +
                _inner.fmt(f)
         409  +
            }
         410  +
            ,
         411  +
            /* OperationErrorGenerator.kt:326 */
  318    412   
            Self::Unhandled(_inner) => {
         413  +
                /* OperationErrorGenerator.kt:139 */
  319    414   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  320    415   
                    write!(f, "unhandled error ({code})")
  321    416   
                } else {
  322    417   
                    f.write_str("unhandled error")
  323    418   
                }
         419  +
                /* OperationErrorGenerator.kt:326 */
         420  +
            } /* OperationErrorGenerator.kt:318 */
  324    421   
        }
         422  +
        /* OperationErrorGenerator.kt:134 */
  325    423   
    }
  326         -
    }
         424  +
    /* OperationErrorGenerator.kt:133 */
  327    425   
}
         426  +
/* OperationErrorGenerator.kt:182 */
  328    427   
impl ::aws_smithy_types::retry::ProvideErrorKind for DescribeExportError {
         428  +
    /* OperationErrorGenerator.kt:186 */
  329    429   
    fn code(&self) -> ::std::option::Option<&str> {
         430  +
        /* OperationErrorGenerator.kt:187 */
  330    431   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         432  +
        /* OperationErrorGenerator.kt:186 */
  331    433   
    }
         434  +
    /* OperationErrorGenerator.kt:190 */
  332    435   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         436  +
        /* OperationErrorGenerator.kt:197 */
  333    437   
        ::std::option::Option::None
         438  +
        /* OperationErrorGenerator.kt:190 */
  334    439   
    }
         440  +
    /* OperationErrorGenerator.kt:182 */
  335    441   
}
         442  +
/* OperationErrorGenerator.kt:163 */
  336    443   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for DescribeExportError {
         444  +
    /* OperationErrorGenerator.kt:164 */
  337    445   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         446  +
        /* OperationErrorGenerator.kt:318 */
  338    447   
        match self {
  339         -
            Self::ExportNotFoundError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  340         -
            Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  341         -
            Self::LimitExceededError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  342         -
            Self::Unhandled(_inner) => &_inner.meta,
         448  +
            /* OperationErrorGenerator.kt:321 */
         449  +
            Self::ExportNotFoundError(_inner) =>
         450  +
            /* OperationErrorGenerator.kt:169 */
         451  +
            {
         452  +
                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
         453  +
            }
         454  +
            ,
         455  +
            /* OperationErrorGenerator.kt:321 */
         456  +
            Self::InternalServerError(_inner) =>
         457  +
            /* OperationErrorGenerator.kt:169 */
         458  +
            {
         459  +
                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
         460  +
            }
         461  +
            ,
         462  +
            /* OperationErrorGenerator.kt:321 */
         463  +
            Self::LimitExceededError(_inner) =>
         464  +
            /* OperationErrorGenerator.kt:169 */
         465  +
            {
         466  +
                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
         467  +
            }
         468  +
            ,
         469  +
            /* OperationErrorGenerator.kt:326 */
         470  +
            Self::Unhandled(_inner) => {
         471  +
                /* OperationErrorGenerator.kt:168 */
         472  +
                &_inner.meta
         473  +
                /* OperationErrorGenerator.kt:326 */
         474  +
            } /* OperationErrorGenerator.kt:318 */
  343    475   
        }
         476  +
        /* OperationErrorGenerator.kt:164 */
  344    477   
    }
         478  +
    /* OperationErrorGenerator.kt:163 */
  345    479   
}
         480  +
/* OperationErrorGenerator.kt:109 */
  346    481   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for DescribeExportError {
         482  +
    /* OperationErrorGenerator.kt:110 */
  347    483   
    fn create_unhandled_error(
  348    484   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  349    485   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  350    486   
    ) -> Self {
         487  +
        /* OperationErrorGenerator.kt:121 */
  351    488   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  352    489   
            source,
  353    490   
            meta: meta.unwrap_or_default(),
  354    491   
        })
         492  +
        /* OperationErrorGenerator.kt:110 */
  355    493   
    }
         494  +
    /* OperationErrorGenerator.kt:109 */
  356    495   
}
  357    496   
         497  +
/* CodegenDelegator.kt:255 */
  358    498   
pub use crate::operation::describe_export::_describe_export_output::DescribeExportOutput;
  359    499   
         500  +
/* CodegenDelegator.kt:255 */
  360    501   
pub use crate::operation::describe_export::_describe_export_input::DescribeExportInput;
  361    502   
         503  +
/* RustModule.kt:172 */
  362    504   
mod _describe_export_input;
  363    505   
         506  +
/* RustModule.kt:172 */
  364    507   
mod _describe_export_output;
  365    508   
  366         -
/// Builders
         509  +
/// /* CodegenDelegator.kt:51 */Builders
  367    510   
pub mod builders;

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/describe_export/_describe_export_input.rs

@@ -1,1 +50,89 @@
    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 DescribeExportInput {
    6         -
    /// <p>The Amazon Resource Name (ARN) associated with the export.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct DescribeExportInput {
           9  +
    /// /* StructureGenerator.kt:231 */<p>The Amazon Resource Name (ARN) associated with the export.</p>
    7     10   
    pub export_arn: ::std::option::Option<::std::string::String>,
          11  +
    /* StructureGenerator.kt:201 */
    8     12   
}
          13  +
/* StructureGenerator.kt:135 */
    9     14   
impl DescribeExportInput {
   10         -
    /// <p>The Amazon Resource Name (ARN) associated with the export.</p>
          15  +
    /// /* StructureGenerator.kt:231 */<p>The Amazon Resource Name (ARN) associated with the export.</p>
          16  +
    /* StructureGenerator.kt:166 */
   11     17   
    pub fn export_arn(&self) -> ::std::option::Option<&str> {
          18  +
        /* StructureGenerator.kt:169 */
   12     19   
        self.export_arn.as_deref()
          20  +
        /* StructureGenerator.kt:166 */
   13     21   
    }
          22  +
    /* StructureGenerator.kt:135 */
   14     23   
}
          24  +
/* ClientCodegenVisitor.kt:237 */
   15     25   
impl DescribeExportInput {
   16         -
    /// Creates a new builder-style object to manufacture [`DescribeExportInput`](crate::operation::describe_export::DescribeExportInput).
          26  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`DescribeExportInput`](crate::operation::describe_export::DescribeExportInput).
          27  +
    /* BuilderGenerator.kt:175 */
   17     28   
    pub fn builder() -> crate::operation::describe_export::builders::DescribeExportInputBuilder {
          29  +
        /* BuilderGenerator.kt:176 */
   18     30   
        crate::operation::describe_export::builders::DescribeExportInputBuilder::default()
          31  +
        /* BuilderGenerator.kt:175 */
   19     32   
    }
          33  +
    /* ClientCodegenVisitor.kt:237 */
   20     34   
}
   21     35   
   22         -
/// A builder for [`DescribeExportInput`](crate::operation::describe_export::DescribeExportInput).
          36  +
/// /* BuilderGenerator.kt:342 */A builder for [`DescribeExportInput`](crate::operation::describe_export::DescribeExportInput).
          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 DescribeExportInputBuilder {
   26         -
    pub(crate) export_arn: ::std::option::Option<::std::string::String>,
          43  +
    /* BuilderGenerator.kt:275 */ pub(crate) export_arn: ::std::option::Option<::std::string::String>,
          44  +
    /* BuilderGenerator.kt:345 */
   27     45   
}
          46  +
/* BuilderGenerator.kt:355 */
   28     47   
impl DescribeExportInputBuilder {
   29         -
    /// <p>The Amazon Resource Name (ARN) associated with the export.</p>
   30         -
    /// This field is required.
          48  +
    /// /* BuilderGenerator.kt:286 */<p>The Amazon Resource Name (ARN) associated with the export.</p>
          49  +
    /// /* BuilderGenerator.kt:288 */This field is required.
          50  +
    /* BuilderGenerator.kt:291 */
   31     51   
    pub fn export_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          52  +
        /* BuilderGenerator.kt:292 */
   32     53   
        self.export_arn = ::std::option::Option::Some(input.into());
          54  +
        /* BuilderGenerator.kt:293 */
   33     55   
        self
          56  +
        /* BuilderGenerator.kt:291 */
   34     57   
    }
   35         -
    /// <p>The Amazon Resource Name (ARN) associated with the export.</p>
          58  +
    /// /* BuilderGenerator.kt:312 */<p>The Amazon Resource Name (ARN) associated with the export.</p>
          59  +
    /* BuilderGenerator.kt:314 */
   36     60   
    pub fn set_export_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          61  +
        /* BuilderGenerator.kt:315 */
   37     62   
        self.export_arn = input;
   38     63   
        self
          64  +
        /* BuilderGenerator.kt:314 */
   39     65   
    }
   40         -
    /// <p>The Amazon Resource Name (ARN) associated with the export.</p>
          66  +
    /// /* BuilderGenerator.kt:334 */<p>The Amazon Resource Name (ARN) associated with the export.</p>
          67  +
    /* BuilderGenerator.kt:336 */
   41     68   
    pub fn get_export_arn(&self) -> &::std::option::Option<::std::string::String> {
          69  +
        /* BuilderGenerator.kt:337 */
   42     70   
        &self.export_arn
          71  +
        /* BuilderGenerator.kt:336 */
   43     72   
    }
   44         -
    /// Consumes the builder and constructs a [`DescribeExportInput`](crate::operation::describe_export::DescribeExportInput).
          73  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`DescribeExportInput`](crate::operation::describe_export::DescribeExportInput).
          74  +
    /* BuilderGenerator.kt:253 */
   45     75   
    pub fn build(
   46     76   
        self,
   47     77   
    ) -> ::std::result::Result<crate::operation::describe_export::DescribeExportInput, ::aws_smithy_types::error::operation::BuildError> {
   48         -
        ::std::result::Result::Ok(crate::operation::describe_export::DescribeExportInput { export_arn: self.export_arn })
          78  +
        /* BuilderGenerator.kt:254 */
          79  +
        ::std::result::Result::Ok(
          80  +
            /* BuilderGenerator.kt:477 */
          81  +
            crate::operation::describe_export::DescribeExportInput {
          82  +
                /* BuilderGenerator.kt:481 */ export_arn: self.export_arn,
          83  +
                /* BuilderGenerator.kt:477 */
          84  +
            }, /* BuilderGenerator.kt:254 */
          85  +
        )
          86  +
        /* BuilderGenerator.kt:253 */
   49     87   
    }
          88  +
    /* BuilderGenerator.kt:355 */
   50     89   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/describe_export/_describe_export_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 DescribeExportOutput {
    6         -
    /// <p>Represents the properties of the export.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct DescribeExportOutput {
           9  +
    /// /* StructureGenerator.kt:231 */<p>Represents the properties of the export.</p>
    7     10   
    pub export_description: ::std::option::Option<crate::types::ExportDescription>,
          11  +
    /* StructureGenerator.kt:201 */
    8     12   
}
          13  +
/* StructureGenerator.kt:135 */
    9     14   
impl DescribeExportOutput {
   10         -
    /// <p>Represents the properties of the export.</p>
          15  +
    /// /* StructureGenerator.kt:231 */<p>Represents the properties of the export.</p>
          16  +
    /* StructureGenerator.kt:166 */
   11     17   
    pub fn export_description(&self) -> ::std::option::Option<&crate::types::ExportDescription> {
          18  +
        /* StructureGenerator.kt:170 */
   12     19   
        self.export_description.as_ref()
          20  +
        /* StructureGenerator.kt:166 */
   13     21   
    }
          22  +
    /* StructureGenerator.kt:135 */
   14     23   
}
          24  +
/* ClientCodegenVisitor.kt:237 */
   15     25   
impl DescribeExportOutput {
   16         -
    /// Creates a new builder-style object to manufacture [`DescribeExportOutput`](crate::operation::describe_export::DescribeExportOutput).
          26  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`DescribeExportOutput`](crate::operation::describe_export::DescribeExportOutput).
          27  +
    /* BuilderGenerator.kt:175 */
   17     28   
    pub fn builder() -> crate::operation::describe_export::builders::DescribeExportOutputBuilder {
          29  +
        /* BuilderGenerator.kt:176 */
   18     30   
        crate::operation::describe_export::builders::DescribeExportOutputBuilder::default()
          31  +
        /* BuilderGenerator.kt:175 */
   19     32   
    }
          33  +
    /* ClientCodegenVisitor.kt:237 */
   20     34   
}
   21     35   
   22         -
/// A builder for [`DescribeExportOutput`](crate::operation::describe_export::DescribeExportOutput).
          36  +
/// /* BuilderGenerator.kt:342 */A builder for [`DescribeExportOutput`](crate::operation::describe_export::DescribeExportOutput).
          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 DescribeExportOutputBuilder {
          43  +
    /* BuilderGenerator.kt:275 */
   26     44   
    pub(crate) export_description: ::std::option::Option<crate::types::ExportDescription>,
          45  +
    /* BuilderGenerator.kt:345 */
   27     46   
}
          47  +
/* BuilderGenerator.kt:355 */
   28     48   
impl DescribeExportOutputBuilder {
   29         -
    /// <p>Represents the properties of the export.</p>
          49  +
    /// /* BuilderGenerator.kt:286 */<p>Represents the properties of the export.</p>
          50  +
    /* BuilderGenerator.kt:291 */
   30     51   
    pub fn export_description(mut self, input: crate::types::ExportDescription) -> Self {
          52  +
        /* BuilderGenerator.kt:292 */
   31     53   
        self.export_description = ::std::option::Option::Some(input);
          54  +
        /* BuilderGenerator.kt:293 */
   32     55   
        self
          56  +
        /* BuilderGenerator.kt:291 */
   33     57   
    }
   34         -
    /// <p>Represents the properties of the export.</p>
          58  +
    /// /* BuilderGenerator.kt:312 */<p>Represents the properties of the export.</p>
          59  +
    /* BuilderGenerator.kt:314 */
   35     60   
    pub fn set_export_description(mut self, input: ::std::option::Option<crate::types::ExportDescription>) -> Self {
          61  +
        /* BuilderGenerator.kt:315 */
   36     62   
        self.export_description = input;
   37     63   
        self
          64  +
        /* BuilderGenerator.kt:314 */
   38     65   
    }
   39         -
    /// <p>Represents the properties of the export.</p>
          66  +
    /// /* BuilderGenerator.kt:334 */<p>Represents the properties of the export.</p>
          67  +
    /* BuilderGenerator.kt:336 */
   40     68   
    pub fn get_export_description(&self) -> &::std::option::Option<crate::types::ExportDescription> {
          69  +
        /* BuilderGenerator.kt:337 */
   41     70   
        &self.export_description
          71  +
        /* BuilderGenerator.kt:336 */
   42     72   
    }
   43         -
    /// Consumes the builder and constructs a [`DescribeExportOutput`](crate::operation::describe_export::DescribeExportOutput).
          73  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`DescribeExportOutput`](crate::operation::describe_export::DescribeExportOutput).
          74  +
    /* BuilderGenerator.kt:253 */
   44     75   
    pub fn build(self) -> crate::operation::describe_export::DescribeExportOutput {
          76  +
        /* BuilderGenerator.kt:477 */
   45     77   
        crate::operation::describe_export::DescribeExportOutput {
   46         -
            export_description: self.export_description,
          78  +
            /* BuilderGenerator.kt:481 */ export_description: self.export_description,
          79  +
            /* BuilderGenerator.kt:477 */
   47     80   
        }
          81  +
        /* BuilderGenerator.kt:253 */
   48     82   
    }
          83  +
    /* BuilderGenerator.kt:355 */
   49     84   
}