Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

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

@@ -1,1 +40,49 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* OperationGenerator.kt:77 */
    2      3   
/// Orchestration and serialization glue logic for `DeleteTable`.
           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 DeleteTable;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl DeleteTable {
    7         -
    /// Creates a new `DeleteTable`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `DeleteTable`
          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::delete_table::DeleteTableInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::delete_table::DeleteTableOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::delete_table::DeleteTableError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -57,66 +384,576 @@
   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 DeleteTable {
   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("DeleteTable");
   91    102   
   92    103   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   93    104   
            DeleteTableRequestSerializer,
   94    105   
        ));
   95    106   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
   96    107   
            DeleteTableResponseDeserializer,
   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("DeleteTable", "DynamoDB"));
  104    115   
  105    116   
        ::std::option::Option::Some(cfg.freeze())
  106    117   
    }
  107    118   
  108    119   
    fn runtime_components(
  109    120   
        &self,
  110    121   
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
  111    122   
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
  112    123   
        #[allow(unused_mut)]
  113    124   
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("DeleteTable")
  114    125   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  115    126   
            .with_interceptor(DeleteTableEndpointParamsInterceptor)
  116    127   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  117    128   
                crate::operation::delete_table::DeleteTableError,
  118    129   
            >::new())
  119    130   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  120    131   
                crate::operation::delete_table::DeleteTableError,
  121    132   
            >::new());
  122    133   
  123    134   
        ::std::borrow::Cow::Owned(rcb)
  124    135   
    }
  125    136   
}
  126    137   
         138  +
/* ResponseDeserializerGenerator.kt:64 */
  127    139   
#[derive(Debug)]
  128    140   
struct DeleteTableResponseDeserializer;
  129    141   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DeleteTableResponseDeserializer {
  130    142   
    fn deserialize_nonstreaming(
  131    143   
        &self,
  132    144   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
  133    145   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  134    146   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  135    147   
        let headers = response.headers();
  136    148   
        let body = response.body().bytes().expect("body loaded");
  137    149   
        #[allow(unused_mut)]
  138    150   
        let mut force_error = false;
  139    151   
  140    152   
        let parse_result = if !success && status != 200 || force_error {
  141    153   
            crate::protocol_serde::shape_delete_table::de_delete_table_http_error(status, headers, body)
  142    154   
        } else {
  143    155   
            crate::protocol_serde::shape_delete_table::de_delete_table_http_response(status, headers, body)
  144    156   
        };
  145    157   
        crate::protocol_serde::type_erase_result(parse_result)
  146    158   
    }
  147    159   
}
         160  +
/* RequestSerializerGenerator.kt:67 */
  148    161   
#[derive(Debug)]
  149    162   
struct DeleteTableRequestSerializer;
  150    163   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DeleteTableRequestSerializer {
  151    164   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  152    165   
    fn serialize_input(
  153    166   
        &self,
  154    167   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  155    168   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  156    169   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  157    170   
        let input = input
  158    171   
            .downcast::<crate::operation::delete_table::DeleteTableInput>()
  159    172   
            .expect("correct type");
  160    173   
        let _header_serialization_settings = _cfg
  161    174   
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  162    175   
            .cloned()
  163    176   
            .unwrap_or_default();
  164    177   
        let mut request_builder = {
  165    178   
            fn uri_base(
  166    179   
                _input: &crate::operation::delete_table::DeleteTableInput,
  167    180   
                output: &mut ::std::string::String,
  168    181   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  169    182   
                use ::std::fmt::Write as _;
  170    183   
                ::std::write!(output, "/").expect("formatting should succeed");
  171    184   
                ::std::result::Result::Ok(())
  172    185   
            }
  173    186   
            #[allow(clippy::unnecessary_wraps)]
  174    187   
            fn update_http_builder(
  175    188   
                input: &crate::operation::delete_table::DeleteTableInput,
  176    189   
                builder: ::http::request::Builder,
  177    190   
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  178    191   
                let mut uri = ::std::string::String::new();
  179    192   
                uri_base(input, &mut uri)?;
  180    193   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  181    194   
            }
  182    195   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  183    196   
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-amz-json-1.0");
  184    197   
            builder = _header_serialization_settings.set_default_header(
  185    198   
                builder,
  186    199   
                ::http::header::HeaderName::from_static("x-amz-target"),
  187    200   
                "DynamoDB_20120810.DeleteTable",
  188    201   
            );
  189    202   
            builder
  190    203   
        };
  191    204   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_delete_table::ser_delete_table_input(&input)?);
  192    205   
        if let Some(content_length) = body.content_length() {
  193    206   
            let content_length = content_length.to_string();
  194    207   
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
  195    208   
        }
  196    209   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  197    210   
    }
  198    211   
}
         212  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  199    213   
#[derive(Debug)]
  200    214   
struct DeleteTableEndpointParamsInterceptor;
  201    215   
  202    216   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DeleteTableEndpointParamsInterceptor {
  203    217   
    fn name(&self) -> &'static str {
  204    218   
        "DeleteTableEndpointParamsInterceptor"
  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::<DeleteTableInput>()
  220    234   
            .ok_or("failed to downcast to DeleteTableInput")?;
  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 `DeleteTableError` operation.
         250  +
/* RustType.kt:516 */
  235    251   
#[non_exhaustive]
         252  +
/* RustType.kt:516 */
  236    253   
#[derive(::std::fmt::Debug)]
  237         -
pub enum DeleteTableError {
  238         -
    /// <p>An error occurred on the server side.</p>
         254  +
pub /* OperationErrorGenerator.kt:81 */ enum DeleteTableError {
         255  +
    /// /* OperationErrorGenerator.kt:83 */<p>An error occurred on the server side.</p>
         256  +
    /* OperationErrorGenerator.kt:86 */
  239    257   
    InternalServerError(crate::types::error::InternalServerError),
         258  +
    /* OperationErrorGenerator.kt:83 */
  240    259   
    #[allow(missing_docs)] // documentation missing in model
         260  +
    /* OperationErrorGenerator.kt:86 */
  241    261   
    InvalidEndpointError(crate::types::error::InvalidEndpointError),
  242         -
    /// <p>There is no limit to the number of daily on-demand backups that can be taken.</p>
         262  +
    /// /* OperationErrorGenerator.kt:83 */<p>There is no limit to the number of daily on-demand backups that can be taken.</p>
  243    263   
    /// <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>
  244    264   
    /// <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>
  245    265   
    /// <p>There is a soft account quota of 256 tables.</p>
         266  +
    /* OperationErrorGenerator.kt:86 */
  246    267   
    LimitExceededError(crate::types::error::LimitExceededError),
  247         -
    /// <p>The operation conflicts with the resource's availability. For example, you attempted to recreate an existing table, or tried to delete a table currently in the <code>CREATING</code> state.</p>
         268  +
    /// /* OperationErrorGenerator.kt:83 */<p>The operation conflicts with the resource's availability. For example, you attempted to recreate an existing table, or tried to delete a table currently in the <code>CREATING</code> state.</p>
         269  +
    /* OperationErrorGenerator.kt:86 */
  248    270   
    ResourceInUseError(crate::types::error::ResourceInUseError),
  249         -
    /// <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>
         271  +
    /// /* 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>
         272  +
    /* OperationErrorGenerator.kt:86 */
  250    273   
    ResourceNotFoundError(crate::types::error::ResourceNotFoundError),
         274  +
    /* OperationErrorGenerator.kt:88 */
  251    275   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  252    276   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  253    277   
    variable wildcard pattern and check `.code()`:
  254    278   
     \
  255    279   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  256    280   
     \
  257    281   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-DeleteTableError) for what information is available for the error.")]
  258    282   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         283  +
    /* OperationErrorGenerator.kt:81 */
  259    284   
}
         285  +
/* OperationErrorGenerator.kt:218 */
  260    286   
impl DeleteTableError {
         287  +
    /* OperationErrorGenerator.kt:219 */
  261    288   
    /// Creates the `DeleteTableError::Unhandled` variant from any error type.
  262    289   
    pub fn unhandled(
  263    290   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  264    291   
    ) -> Self {
  265    292   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  266    293   
            source: err.into(),
  267    294   
            meta: ::std::default::Default::default(),
  268    295   
        })
  269    296   
    }
  270    297   
  271    298   
    /// Creates the `DeleteTableError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  272    299   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  273    300   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  274    301   
            source: err.clone().into(),
  275    302   
            meta: err,
  276    303   
        })
  277    304   
    }
  278         -
    ///
         305  +
    /// /* OperationErrorGenerator.kt:236 */
  279    306   
    /// Returns error metadata, which includes the error code, message,
  280    307   
    /// request ID, and potentially additional information.
  281    308   
    ///
         309  +
    /* OperationErrorGenerator.kt:242 */
  282    310   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         311  +
        /* OperationErrorGenerator.kt:243 */
  283    312   
        match self {
         313  +
            /* OperationErrorGenerator.kt:246 */
  284    314   
            Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         315  +
            /* OperationErrorGenerator.kt:246 */
  285    316   
            Self::InvalidEndpointError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         317  +
            /* OperationErrorGenerator.kt:246 */
  286    318   
            Self::LimitExceededError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         319  +
            /* OperationErrorGenerator.kt:246 */
  287    320   
            Self::ResourceInUseError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         321  +
            /* OperationErrorGenerator.kt:246 */
  288    322   
            Self::ResourceNotFoundError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
  289         -
            Self::Unhandled(e) => &e.meta,
         323  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         324  +
            /* OperationErrorGenerator.kt:243 */
  290    325   
        }
         326  +
        /* OperationErrorGenerator.kt:242 */
  291    327   
    }
         328  +
    /* OperationErrorGenerator.kt:257 */
  292    329   
    /// Returns `true` if the error kind is `DeleteTableError::InternalServerError`.
         330  +
    /* OperationErrorGenerator.kt:258 */
  293    331   
    pub fn is_internal_server_error(&self) -> bool {
         332  +
        /* OperationErrorGenerator.kt:259 */
  294    333   
        matches!(self, Self::InternalServerError(_))
         334  +
        /* OperationErrorGenerator.kt:258 */
  295    335   
    }
         336  +
    /* OperationErrorGenerator.kt:257 */
  296    337   
    /// Returns `true` if the error kind is `DeleteTableError::InvalidEndpointError`.
         338  +
    /* OperationErrorGenerator.kt:258 */
  297    339   
    pub fn is_invalid_endpoint_error(&self) -> bool {
         340  +
        /* OperationErrorGenerator.kt:259 */
  298    341   
        matches!(self, Self::InvalidEndpointError(_))
         342  +
        /* OperationErrorGenerator.kt:258 */
  299    343   
    }
         344  +
    /* OperationErrorGenerator.kt:257 */
  300    345   
    /// Returns `true` if the error kind is `DeleteTableError::LimitExceededError`.
         346  +
    /* OperationErrorGenerator.kt:258 */
  301    347   
    pub fn is_limit_exceeded_error(&self) -> bool {
         348  +
        /* OperationErrorGenerator.kt:259 */
  302    349   
        matches!(self, Self::LimitExceededError(_))
         350  +
        /* OperationErrorGenerator.kt:258 */
  303    351   
    }
         352  +
    /* OperationErrorGenerator.kt:257 */
  304    353   
    /// Returns `true` if the error kind is `DeleteTableError::ResourceInUseError`.
         354  +
    /* OperationErrorGenerator.kt:258 */
  305    355   
    pub fn is_resource_in_use_error(&self) -> bool {
         356  +
        /* OperationErrorGenerator.kt:259 */
  306    357   
        matches!(self, Self::ResourceInUseError(_))
         358  +
        /* OperationErrorGenerator.kt:258 */
  307    359   
    }
         360  +
    /* OperationErrorGenerator.kt:257 */
  308    361   
    /// Returns `true` if the error kind is `DeleteTableError::ResourceNotFoundError`.
         362  +
    /* OperationErrorGenerator.kt:258 */
  309    363   
    pub fn is_resource_not_found_error(&self) -> bool {
         364  +
        /* OperationErrorGenerator.kt:259 */
  310    365   
        matches!(self, Self::ResourceNotFoundError(_))
         366  +
        /* OperationErrorGenerator.kt:258 */
  311    367   
    }
         368  +
    /* OperationErrorGenerator.kt:218 */
  312    369   
}
         370  +
/* OperationErrorGenerator.kt:269 */
  313    371   
impl ::std::error::Error for DeleteTableError {
         372  +
    /* OperationErrorGenerator.kt:270 */
  314    373   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         374  +
        /* OperationErrorGenerator.kt:318 */
  315    375   
        match self {
  316         -
            Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner),
  317         -
            Self::InvalidEndpointError(_inner) => ::std::option::Option::Some(_inner),
  318         -
            Self::LimitExceededError(_inner) => ::std::option::Option::Some(_inner),
  319         -
            Self::ResourceInUseError(_inner) => ::std::option::Option::Some(_inner),
  320         -
            Self::ResourceNotFoundError(_inner) => ::std::option::Option::Some(_inner),
  321         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         376  +
            /* OperationErrorGenerator.kt:321 */
         377  +
            Self::InternalServerError(_inner) =>
         378  +
            /* OperationErrorGenerator.kt:283 */
         379  +
            {
         380  +
                ::std::option::Option::Some(_inner)
         381  +
            }
         382  +
            ,
         383  +
            /* OperationErrorGenerator.kt:321 */
         384  +
            Self::InvalidEndpointError(_inner) =>
         385  +
            /* OperationErrorGenerator.kt:283 */
         386  +
            {
         387  +
                ::std::option::Option::Some(_inner)
         388  +
            }
         389  +
            ,
         390  +
            /* OperationErrorGenerator.kt:321 */
         391  +
            Self::LimitExceededError(_inner) =>
         392  +
            /* OperationErrorGenerator.kt:283 */
         393  +
            {
         394  +
                ::std::option::Option::Some(_inner)
         395  +
            }
         396  +
            ,
         397  +
            /* OperationErrorGenerator.kt:321 */
         398  +
            Self::ResourceInUseError(_inner) =>
         399  +
            /* OperationErrorGenerator.kt:283 */
         400  +
            {
         401  +
                ::std::option::Option::Some(_inner)
         402  +
            }
         403  +
            ,
         404  +
            /* OperationErrorGenerator.kt:321 */
         405  +
            Self::ResourceNotFoundError(_inner) =>
         406  +
            /* OperationErrorGenerator.kt:283 */
         407  +
            {
         408  +
                ::std::option::Option::Some(_inner)
         409  +
            }
         410  +
            ,
         411  +
            /* OperationErrorGenerator.kt:326 */
         412  +
            Self::Unhandled(_inner) => {
         413  +
                /* OperationErrorGenerator.kt:279 */
         414  +
                ::std::option::Option::Some(&*_inner.source)
         415  +
                /* OperationErrorGenerator.kt:326 */
         416  +
            } /* OperationErrorGenerator.kt:318 */
  322    417   
        }
         418  +
        /* OperationErrorGenerator.kt:270 */
  323    419   
    }
         420  +
    /* OperationErrorGenerator.kt:269 */
  324    421   
}
         422  +
/* OperationErrorGenerator.kt:133 */
  325    423   
impl ::std::fmt::Display for DeleteTableError {
         424  +
    /* OperationErrorGenerator.kt:134 */
  326    425   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         426  +
        /* OperationErrorGenerator.kt:318 */
  327    427   
        match self {
  328         -
            Self::InternalServerError(_inner) => _inner.fmt(f),
  329         -
            Self::InvalidEndpointError(_inner) => _inner.fmt(f),
  330         -
            Self::LimitExceededError(_inner) => _inner.fmt(f),
  331         -
            Self::ResourceInUseError(_inner) => _inner.fmt(f),
  332         -
            Self::ResourceNotFoundError(_inner) => _inner.fmt(f),
         428  +
            /* OperationErrorGenerator.kt:321 */
         429  +
            Self::InternalServerError(_inner) =>
         430  +
            /* OperationErrorGenerator.kt:151 */
         431  +
            {
         432  +
                _inner.fmt(f)
         433  +
            }
         434  +
            ,
         435  +
            /* OperationErrorGenerator.kt:321 */
         436  +
            Self::InvalidEndpointError(_inner) =>
         437  +
            /* OperationErrorGenerator.kt:151 */
         438  +
            {
         439  +
                _inner.fmt(f)
         440  +
            }
         441  +
            ,
         442  +
            /* OperationErrorGenerator.kt:321 */
         443  +
            Self::LimitExceededError(_inner) =>
         444  +
            /* OperationErrorGenerator.kt:151 */
         445  +
            {
         446  +
                _inner.fmt(f)
         447  +
            }
         448  +
            ,
         449  +
            /* OperationErrorGenerator.kt:321 */
         450  +
            Self::ResourceInUseError(_inner) =>
         451  +
            /* OperationErrorGenerator.kt:151 */
         452  +
            {
         453  +
                _inner.fmt(f)
         454  +
            }
         455  +
            ,
         456  +
            /* OperationErrorGenerator.kt:321 */
         457  +
            Self::ResourceNotFoundError(_inner) =>
         458  +
            /* OperationErrorGenerator.kt:151 */
         459  +
            {
         460  +
                _inner.fmt(f)
         461  +
            }
         462  +
            ,
         463  +
            /* OperationErrorGenerator.kt:326 */
  333    464   
            Self::Unhandled(_inner) => {
         465  +
                /* OperationErrorGenerator.kt:139 */
  334    466   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  335    467   
                    write!(f, "unhandled error ({code})")
  336    468   
                } else {
  337    469   
                    f.write_str("unhandled error")
  338    470   
                }
         471  +
                /* OperationErrorGenerator.kt:326 */
         472  +
            } /* OperationErrorGenerator.kt:318 */
  339    473   
        }
         474  +
        /* OperationErrorGenerator.kt:134 */
  340    475   
    }
  341         -
    }
         476  +
    /* OperationErrorGenerator.kt:133 */
  342    477   
}
         478  +
/* OperationErrorGenerator.kt:182 */
  343    479   
impl ::aws_smithy_types::retry::ProvideErrorKind for DeleteTableError {
         480  +
    /* OperationErrorGenerator.kt:186 */
  344    481   
    fn code(&self) -> ::std::option::Option<&str> {
         482  +
        /* OperationErrorGenerator.kt:187 */
  345    483   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         484  +
        /* OperationErrorGenerator.kt:186 */
  346    485   
    }
         486  +
    /* OperationErrorGenerator.kt:190 */
  347    487   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         488  +
        /* OperationErrorGenerator.kt:197 */
  348    489   
        ::std::option::Option::None
         490  +
        /* OperationErrorGenerator.kt:190 */
  349    491   
    }
         492  +
    /* OperationErrorGenerator.kt:182 */
  350    493   
}
         494  +
/* OperationErrorGenerator.kt:163 */
  351    495   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for DeleteTableError {
         496  +
    /* OperationErrorGenerator.kt:164 */
  352    497   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         498  +
        /* OperationErrorGenerator.kt:318 */
  353    499   
        match self {
  354         -
            Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  355         -
            Self::InvalidEndpointError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  356         -
            Self::LimitExceededError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  357         -
            Self::ResourceInUseError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  358         -
            Self::ResourceNotFoundError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  359         -
            Self::Unhandled(_inner) => &_inner.meta,
         500  +
            /* OperationErrorGenerator.kt:321 */
         501  +
            Self::InternalServerError(_inner) =>
         502  +
            /* OperationErrorGenerator.kt:169 */
         503  +
            {
         504  +
                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
         505  +
            }
         506  +
            ,
         507  +
            /* OperationErrorGenerator.kt:321 */
         508  +
            Self::InvalidEndpointError(_inner) =>
         509  +
            /* OperationErrorGenerator.kt:169 */
         510  +
            {
         511  +
                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
         512  +
            }
         513  +
            ,
         514  +
            /* OperationErrorGenerator.kt:321 */
         515  +
            Self::LimitExceededError(_inner) =>
         516  +
            /* OperationErrorGenerator.kt:169 */
         517  +
            {
         518  +
                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
         519  +
            }
         520  +
            ,
         521  +
            /* OperationErrorGenerator.kt:321 */
         522  +
            Self::ResourceInUseError(_inner) =>
         523  +
            /* OperationErrorGenerator.kt:169 */
         524  +
            {
         525  +
                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
         526  +
            }
         527  +
            ,
         528  +
            /* OperationErrorGenerator.kt:321 */
         529  +
            Self::ResourceNotFoundError(_inner) =>
         530  +
            /* OperationErrorGenerator.kt:169 */
         531  +
            {
         532  +
                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
         533  +
            }
         534  +
            ,
         535  +
            /* OperationErrorGenerator.kt:326 */
         536  +
            Self::Unhandled(_inner) => {
         537  +
                /* OperationErrorGenerator.kt:168 */
         538  +
                &_inner.meta
         539  +
                /* OperationErrorGenerator.kt:326 */
         540  +
            } /* OperationErrorGenerator.kt:318 */
  360    541   
        }
         542  +
        /* OperationErrorGenerator.kt:164 */
  361    543   
    }
         544  +
    /* OperationErrorGenerator.kt:163 */
  362    545   
}
         546  +
/* OperationErrorGenerator.kt:109 */
  363    547   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for DeleteTableError {
         548  +
    /* OperationErrorGenerator.kt:110 */
  364    549   
    fn create_unhandled_error(
  365    550   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  366    551   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  367    552   
    ) -> Self {
         553  +
        /* OperationErrorGenerator.kt:121 */
  368    554   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  369    555   
            source,
  370    556   
            meta: meta.unwrap_or_default(),
  371    557   
        })
         558  +
        /* OperationErrorGenerator.kt:110 */
  372    559   
    }
         560  +
    /* OperationErrorGenerator.kt:109 */
  373    561   
}
  374    562   
         563  +
/* CodegenDelegator.kt:255 */
  375    564   
pub use crate::operation::delete_table::_delete_table_output::DeleteTableOutput;
  376    565   
         566  +
/* CodegenDelegator.kt:255 */
  377    567   
pub use crate::operation::delete_table::_delete_table_input::DeleteTableInput;
  378    568   
         569  +
/* RustModule.kt:172 */
  379    570   
mod _delete_table_input;
  380    571   
         572  +
/* RustModule.kt:172 */
  381    573   
mod _delete_table_output;
  382    574   
  383         -
/// Builders
         575  +
/// /* CodegenDelegator.kt:51 */Builders
  384    576   
pub mod builders;

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/delete_table/_delete_table_input.rs

@@ -1,1 +49,87 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>Represents the input of a <code>DeleteTable</code> operation.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>Represents the input of a <code>DeleteTable</code> operation.</p>
           4  +
/* RustType.kt:516 */
    4      5   
#[non_exhaustive]
           6  +
/* RustType.kt:516 */
    5      7   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    6         -
pub struct DeleteTableInput {
    7         -
    /// <p>The name of the table to delete.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct DeleteTableInput {
           9  +
    /// /* StructureGenerator.kt:231 */<p>The name of the table to delete.</p>
    8     10   
    pub table_name: ::std::option::Option<::std::string::String>,
          11  +
    /* StructureGenerator.kt:201 */
    9     12   
}
          13  +
/* StructureGenerator.kt:135 */
   10     14   
impl DeleteTableInput {
   11         -
    /// <p>The name of the table to delete.</p>
          15  +
    /// /* StructureGenerator.kt:231 */<p>The name of the table to delete.</p>
          16  +
    /* StructureGenerator.kt:166 */
   12     17   
    pub fn table_name(&self) -> ::std::option::Option<&str> {
          18  +
        /* StructureGenerator.kt:169 */
   13     19   
        self.table_name.as_deref()
          20  +
        /* StructureGenerator.kt:166 */
   14     21   
    }
          22  +
    /* StructureGenerator.kt:135 */
   15     23   
}
          24  +
/* ClientCodegenVisitor.kt:237 */
   16     25   
impl DeleteTableInput {
   17         -
    /// Creates a new builder-style object to manufacture [`DeleteTableInput`](crate::operation::delete_table::DeleteTableInput).
          26  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`DeleteTableInput`](crate::operation::delete_table::DeleteTableInput).
          27  +
    /* BuilderGenerator.kt:175 */
   18     28   
    pub fn builder() -> crate::operation::delete_table::builders::DeleteTableInputBuilder {
          29  +
        /* BuilderGenerator.kt:176 */
   19     30   
        crate::operation::delete_table::builders::DeleteTableInputBuilder::default()
          31  +
        /* BuilderGenerator.kt:175 */
   20     32   
    }
          33  +
    /* ClientCodegenVisitor.kt:237 */
   21     34   
}
   22     35   
   23         -
/// A builder for [`DeleteTableInput`](crate::operation::delete_table::DeleteTableInput).
          36  +
/// /* BuilderGenerator.kt:342 */A builder for [`DeleteTableInput`](crate::operation::delete_table::DeleteTableInput).
          37  +
/* RustType.kt:516 */
   24     38   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          39  +
/* RustType.kt:516 */
   25     40   
#[non_exhaustive]
          41  +
/* BuilderGenerator.kt:345 */
   26     42   
pub struct DeleteTableInputBuilder {
   27         -
    pub(crate) table_name: ::std::option::Option<::std::string::String>,
          43  +
    /* BuilderGenerator.kt:275 */ pub(crate) table_name: ::std::option::Option<::std::string::String>,
          44  +
    /* BuilderGenerator.kt:345 */
   28     45   
}
          46  +
/* BuilderGenerator.kt:355 */
   29     47   
impl DeleteTableInputBuilder {
   30         -
    /// <p>The name of the table to delete.</p>
   31         -
    /// This field is required.
          48  +
    /// /* BuilderGenerator.kt:286 */<p>The name of the table to delete.</p>
          49  +
    /// /* BuilderGenerator.kt:288 */This field is required.
          50  +
    /* BuilderGenerator.kt:291 */
   32     51   
    pub fn table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          52  +
        /* BuilderGenerator.kt:292 */
   33     53   
        self.table_name = ::std::option::Option::Some(input.into());
          54  +
        /* BuilderGenerator.kt:293 */
   34     55   
        self
          56  +
        /* BuilderGenerator.kt:291 */
   35     57   
    }
   36         -
    /// <p>The name of the table to delete.</p>
          58  +
    /// /* BuilderGenerator.kt:312 */<p>The name of the table to delete.</p>
          59  +
    /* BuilderGenerator.kt:314 */
   37     60   
    pub fn set_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          61  +
        /* BuilderGenerator.kt:315 */
   38     62   
        self.table_name = input;
   39     63   
        self
          64  +
        /* BuilderGenerator.kt:314 */
   40     65   
    }
   41         -
    /// <p>The name of the table to delete.</p>
          66  +
    /// /* BuilderGenerator.kt:334 */<p>The name of the table to delete.</p>
          67  +
    /* BuilderGenerator.kt:336 */
   42     68   
    pub fn get_table_name(&self) -> &::std::option::Option<::std::string::String> {
          69  +
        /* BuilderGenerator.kt:337 */
   43     70   
        &self.table_name
          71  +
        /* BuilderGenerator.kt:336 */
   44     72   
    }
   45         -
    /// Consumes the builder and constructs a [`DeleteTableInput`](crate::operation::delete_table::DeleteTableInput).
          73  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`DeleteTableInput`](crate::operation::delete_table::DeleteTableInput).
          74  +
    /* BuilderGenerator.kt:253 */
   46     75   
    pub fn build(self) -> ::std::result::Result<crate::operation::delete_table::DeleteTableInput, ::aws_smithy_types::error::operation::BuildError> {
   47         -
        ::std::result::Result::Ok(crate::operation::delete_table::DeleteTableInput { table_name: self.table_name })
          76  +
        /* BuilderGenerator.kt:254 */
          77  +
        ::std::result::Result::Ok(
          78  +
            /* BuilderGenerator.kt:477 */
          79  +
            crate::operation::delete_table::DeleteTableInput {
          80  +
                /* BuilderGenerator.kt:481 */ table_name: self.table_name,
          81  +
                /* BuilderGenerator.kt:477 */
          82  +
            }, /* BuilderGenerator.kt:254 */
          83  +
        )
          84  +
        /* BuilderGenerator.kt:253 */
   48     85   
    }
          86  +
    /* BuilderGenerator.kt:355 */
   49     87   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/delete_table/_delete_table_output.rs

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

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

@@ -1,1 +130,145 @@
    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::delete_table::_delete_table_output::DeleteTableOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::delete_table::_delete_table_input::DeleteTableInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::delete_table::builders::DeleteTableInputBuilder {
    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::delete_table::DeleteTableOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::delete_table::DeleteTableError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.delete_table();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `DeleteTable`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `DeleteTable`.
   24     27   
///
   25         -
/// <p>The <code>DeleteTable</code> operation deletes a table and all of its items. After a <code>DeleteTable</code> request, the specified table is in the <code>DELETING</code> state until DynamoDB completes the deletion. If the table is in the <code>ACTIVE</code> state, you can delete it. If a table is in <code>CREATING</code> or <code>UPDATING</code> states, then DynamoDB returns a <code>ResourceInUseException</code>. If the specified table does not exist, DynamoDB returns a <code>ResourceNotFoundException</code>. If table is already in the <code>DELETING</code> state, no error is returned.</p><note>
          28  +
/// /* FluentBuilderGenerator.kt:130 */<p>The <code>DeleteTable</code> operation deletes a table and all of its items. After a <code>DeleteTable</code> request, the specified table is in the <code>DELETING</code> state until DynamoDB completes the deletion. If the table is in the <code>ACTIVE</code> state, you can delete it. If a table is in <code>CREATING</code> or <code>UPDATING</code> states, then DynamoDB returns a <code>ResourceInUseException</code>. If the specified table does not exist, DynamoDB returns a <code>ResourceNotFoundException</code>. If table is already in the <code>DELETING</code> state, no error is returned.</p><note>
   26     29   
/// <p>DynamoDB might continue to accept data read and write operations, such as <code>GetItem</code> and <code>PutItem</code>, on a table in the <code>DELETING</code> state until the table deletion is complete.</p>
   27     30   
/// </note>
   28     31   
/// <p>When you delete a table, any indexes on that table are also deleted.</p>
   29     32   
/// <p>If you have DynamoDB Streams enabled on the table, then the corresponding stream on that table goes into the <code>DISABLED</code> state, and the stream is automatically deleted after 24 hours.</p>
   30     33   
/// <p>Use the <code>DescribeTable</code> action to check the status of the table.</p>
          34  +
/* RustType.kt:516 */
   31     35   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          36  +
/* FluentBuilderGenerator.kt:270 */
   32     37   
pub struct DeleteTableFluentBuilder {
   33     38   
    handle: ::std::sync::Arc<crate::client::Handle>,
   34     39   
    inner: crate::operation::delete_table::builders::DeleteTableInputBuilder,
   35     40   
    config_override: ::std::option::Option<crate::config::Builder>,
   36     41   
}
          42  +
/* FluentBuilderGenerator.kt:381 */
   37     43   
impl
   38     44   
    crate::client::customize::internal::CustomizableSend<
   39     45   
        crate::operation::delete_table::DeleteTableOutput,
   40     46   
        crate::operation::delete_table::DeleteTableError,
   41     47   
    > for DeleteTableFluentBuilder
   42     48   
{
   43     49   
    fn send(
   44     50   
        self,
   45     51   
        config_override: crate::config::Builder,
   46     52   
    ) -> crate::client::customize::internal::BoxFuture<
   47     53   
        crate::client::customize::internal::SendResult<
   48     54   
            crate::operation::delete_table::DeleteTableOutput,
   49     55   
            crate::operation::delete_table::DeleteTableError,
   50     56   
        >,
   51     57   
    > {
   52     58   
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
   53     59   
    }
   54     60   
}
          61  +
/* FluentBuilderGenerator.kt:282 */
   55     62   
impl DeleteTableFluentBuilder {
          63  +
    /* FluentBuilderGenerator.kt:288 */
   56     64   
    /// Creates a new `DeleteTableFluentBuilder`.
   57     65   
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
   58     66   
        Self {
   59     67   
            handle,
   60     68   
            inner: ::std::default::Default::default(),
   61     69   
            config_override: ::std::option::Option::None,
   62     70   
        }
   63     71   
    }
          72  +
    /* FluentBuilderGenerator.kt:301 */
   64     73   
    /// Access the DeleteTable as a reference.
   65     74   
    pub fn as_input(&self) -> &crate::operation::delete_table::builders::DeleteTableInputBuilder {
   66     75   
        &self.inner
   67     76   
    }
          77  +
    /* FluentBuilderGenerator.kt:145 */
   68     78   
    /// Sends the request and returns the response.
   69     79   
    ///
   70     80   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   71     81   
    /// can be matched against.
   72     82   
    ///
   73     83   
    /// By default, any retryable failures will be retried twice. Retry behavior
   74     84   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   75     85   
    /// set when configuring the client.
   76     86   
    pub async fn send(
   77     87   
        self,
   78     88   
    ) -> ::std::result::Result<
   79     89   
        crate::operation::delete_table::DeleteTableOutput,
   80     90   
        ::aws_smithy_runtime_api::client::result::SdkError<
   81     91   
            crate::operation::delete_table::DeleteTableError,
   82     92   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   83     93   
        >,
   84     94   
    > {
   85     95   
        let input = self
   86     96   
            .inner
   87     97   
            .build()
   88     98   
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
   89     99   
        let runtime_plugins = crate::operation::delete_table::DeleteTable::operation_runtime_plugins(
   90    100   
            self.handle.runtime_plugins.clone(),
   91    101   
            &self.handle.conf,
   92    102   
            self.config_override,
   93    103   
        );
   94    104   
        crate::operation::delete_table::DeleteTable::orchestrate(&runtime_plugins, input).await
   95    105   
    }
   96    106   
   97    107   
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
   98    108   
    pub fn customize(
   99    109   
        self,
  100    110   
    ) -> crate::client::customize::CustomizableOperation<
  101    111   
        crate::operation::delete_table::DeleteTableOutput,
  102    112   
        crate::operation::delete_table::DeleteTableError,
  103    113   
        Self,
  104    114   
    > {
  105    115   
        crate::client::customize::CustomizableOperation::new(self)
  106    116   
    }
         117  +
    /* FluentBuilderGenerator.kt:315 */
  107    118   
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
  108    119   
        self.set_config_override(::std::option::Option::Some(config_override.into()));
  109    120   
        self
  110    121   
    }
  111    122   
  112    123   
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
  113    124   
        self.config_override = config_override;
  114    125   
        self
  115    126   
    }
  116         -
    /// <p>The name of the table to delete.</p>
         127  +
    /// /* FluentBuilderGenerator.kt:498 */<p>The name of the table to delete.</p>
         128  +
    /* FluentBuilderGenerator.kt:500 */
  117    129   
    pub fn table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  118    130   
        self.inner = self.inner.table_name(input.into());
  119    131   
        self
  120    132   
    }
  121         -
    /// <p>The name of the table to delete.</p>
         133  +
    /// /* FluentBuilderGenerator.kt:498 */<p>The name of the table to delete.</p>
         134  +
    /* FluentBuilderGenerator.kt:500 */
  122    135   
    pub fn set_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  123    136   
        self.inner = self.inner.set_table_name(input);
  124    137   
        self
  125    138   
    }
  126         -
    /// <p>The name of the table to delete.</p>
         139  +
    /// /* FluentBuilderGenerator.kt:518 */<p>The name of the table to delete.</p>
         140  +
    /* FluentBuilderGenerator.kt:520 */
  127    141   
    pub fn get_table_name(&self) -> &::std::option::Option<::std::string::String> {
  128    142   
        self.inner.get_table_name()
  129    143   
    }
         144  +
    /* FluentBuilderGenerator.kt:282 */
  130    145   
}

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

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

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

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

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/describe_continuous_backups.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 `DescribeContinuousBackups`.
           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 DescribeContinuousBackups;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl DescribeContinuousBackups {
    7         -
    /// Creates a new `DescribeContinuousBackups`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `DescribeContinuousBackups`
          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_continuous_backups::DescribeContinuousBackupsInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::describe_continuous_backups::DescribeContinuousBackupsOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::describe_continuous_backups::DescribeContinuousBackupsError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -63,72 +372,516 @@
   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 DescribeContinuousBackups {
   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("DescribeContinuousBackups");
   97    108   
   98    109   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   99    110   
            DescribeContinuousBackupsRequestSerializer,
  100    111   
        ));
  101    112   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
  102    113   
            DescribeContinuousBackupsResponseDeserializer,
  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   
            "DescribeContinuousBackups",
  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("DescribeContinuousBackups")
  123    134   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  124    135   
            .with_interceptor(DescribeContinuousBackupsEndpointParamsInterceptor)
  125    136   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  126    137   
                crate::operation::describe_continuous_backups::DescribeContinuousBackupsError,
  127    138   
            >::new())
  128    139   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  129    140   
                crate::operation::describe_continuous_backups::DescribeContinuousBackupsError,
  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 DescribeContinuousBackupsResponseDeserializer;
  138    150   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeContinuousBackupsResponseDeserializer {
  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_continuous_backups::de_describe_continuous_backups_http_error(status, headers, body)
  151    163   
        } else {
  152    164   
            crate::protocol_serde::shape_describe_continuous_backups::de_describe_continuous_backups_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 DescribeContinuousBackupsRequestSerializer;
  159    172   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DescribeContinuousBackupsRequestSerializer {
  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_continuous_backups::DescribeContinuousBackupsInput>()
  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_continuous_backups::DescribeContinuousBackupsInput,
  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_continuous_backups::DescribeContinuousBackupsInput,
  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.DescribeContinuousBackups",
  197    210   
            );
  198    211   
            builder
  199    212   
        };
  200    213   
        let body = ::aws_smithy_types::body::SdkBody::from(
  201    214   
            crate::protocol_serde::shape_describe_continuous_backups::ser_describe_continuous_backups_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 DescribeContinuousBackupsEndpointParamsInterceptor;
  212    226   
  213    227   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DescribeContinuousBackupsEndpointParamsInterceptor {
  214    228   
    fn name(&self) -> &'static str {
  215    229   
        "DescribeContinuousBackupsEndpointParamsInterceptor"
  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::<DescribeContinuousBackupsInput>()
  231    245   
            .ok_or("failed to downcast to DescribeContinuousBackupsInput")?;
  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 `DescribeContinuousBackupsError` operation.
         261  +
/* RustType.kt:516 */
  246    262   
#[non_exhaustive]
         263  +
/* RustType.kt:516 */
  247    264   
#[derive(::std::fmt::Debug)]
  248         -
pub enum DescribeContinuousBackupsError {
  249         -
    /// <p>An error occurred on the server side.</p>
         265  +
pub /* OperationErrorGenerator.kt:81 */ enum DescribeContinuousBackupsError {
         266  +
    /// /* OperationErrorGenerator.kt:83 */<p>An error occurred on the server side.</p>
         267  +
    /* OperationErrorGenerator.kt:86 */
  250    268   
    InternalServerError(crate::types::error::InternalServerError),
         269  +
    /* OperationErrorGenerator.kt:83 */
  251    270   
    #[allow(missing_docs)] // documentation missing in model
         271  +
    /* OperationErrorGenerator.kt:86 */
  252    272   
    InvalidEndpointError(crate::types::error::InvalidEndpointError),
  253         -
    /// <p>A source table with the name <code>TableName</code> does not currently exist within the subscriber's account.</p>
         273  +
    /// /* OperationErrorGenerator.kt:83 */<p>A source table with the name <code>TableName</code> does not currently exist within the subscriber's account.</p>
         274  +
    /* OperationErrorGenerator.kt:86 */
  254    275   
    TableNotFoundError(crate::types::error::TableNotFoundError),
         276  +
    /* OperationErrorGenerator.kt:88 */
  255    277   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  256    278   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  257    279   
    variable wildcard pattern and check `.code()`:
  258    280   
     \
  259    281   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  260    282   
     \
  261    283   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-DescribeContinuousBackupsError) for what information is available for the error.")]
  262    284   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         285  +
    /* OperationErrorGenerator.kt:81 */
  263    286   
}
         287  +
/* OperationErrorGenerator.kt:218 */
  264    288   
impl DescribeContinuousBackupsError {
         289  +
    /* OperationErrorGenerator.kt:219 */
  265    290   
    /// Creates the `DescribeContinuousBackupsError::Unhandled` variant from any error type.
  266    291   
    pub fn unhandled(
  267    292   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  268    293   
    ) -> Self {
  269    294   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  270    295   
            source: err.into(),
  271    296   
            meta: ::std::default::Default::default(),
  272    297   
        })
  273    298   
    }
  274    299   
  275    300   
    /// Creates the `DescribeContinuousBackupsError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  276    301   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  277    302   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  278    303   
            source: err.clone().into(),
  279    304   
            meta: err,
  280    305   
        })
  281    306   
    }
  282         -
    ///
         307  +
    /// /* OperationErrorGenerator.kt:236 */
  283    308   
    /// Returns error metadata, which includes the error code, message,
  284    309   
    /// request ID, and potentially additional information.
  285    310   
    ///
         311  +
    /* OperationErrorGenerator.kt:242 */
  286    312   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         313  +
        /* OperationErrorGenerator.kt:243 */
  287    314   
        match self {
         315  +
            /* OperationErrorGenerator.kt:246 */
  288    316   
            Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         317  +
            /* OperationErrorGenerator.kt:246 */
  289    318   
            Self::InvalidEndpointError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         319  +
            /* OperationErrorGenerator.kt:246 */
  290    320   
            Self::TableNotFoundError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
  291         -
            Self::Unhandled(e) => &e.meta,
         321  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         322  +
            /* OperationErrorGenerator.kt:243 */
  292    323   
        }
         324  +
        /* OperationErrorGenerator.kt:242 */
  293    325   
    }
         326  +
    /* OperationErrorGenerator.kt:257 */
  294    327   
    /// Returns `true` if the error kind is `DescribeContinuousBackupsError::InternalServerError`.
         328  +
    /* OperationErrorGenerator.kt:258 */
  295    329   
    pub fn is_internal_server_error(&self) -> bool {
         330  +
        /* OperationErrorGenerator.kt:259 */
  296    331   
        matches!(self, Self::InternalServerError(_))
         332  +
        /* OperationErrorGenerator.kt:258 */
  297    333   
    }
         334  +
    /* OperationErrorGenerator.kt:257 */
  298    335   
    /// Returns `true` if the error kind is `DescribeContinuousBackupsError::InvalidEndpointError`.
         336  +
    /* OperationErrorGenerator.kt:258 */
  299    337   
    pub fn is_invalid_endpoint_error(&self) -> bool {
         338  +
        /* OperationErrorGenerator.kt:259 */
  300    339   
        matches!(self, Self::InvalidEndpointError(_))
         340  +
        /* OperationErrorGenerator.kt:258 */
  301    341   
    }
         342  +
    /* OperationErrorGenerator.kt:257 */
  302    343   
    /// Returns `true` if the error kind is `DescribeContinuousBackupsError::TableNotFoundError`.
         344  +
    /* OperationErrorGenerator.kt:258 */
  303    345   
    pub fn is_table_not_found_error(&self) -> bool {
         346  +
        /* OperationErrorGenerator.kt:259 */
  304    347   
        matches!(self, Self::TableNotFoundError(_))
         348  +
        /* OperationErrorGenerator.kt:258 */
  305    349   
    }
         350  +
    /* OperationErrorGenerator.kt:218 */
  306    351   
}
         352  +
/* OperationErrorGenerator.kt:269 */
  307    353   
impl ::std::error::Error for DescribeContinuousBackupsError {
         354  +
    /* OperationErrorGenerator.kt:270 */
  308    355   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         356  +
        /* OperationErrorGenerator.kt:318 */
  309    357   
        match self {
  310         -
            Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner),
  311         -
            Self::InvalidEndpointError(_inner) => ::std::option::Option::Some(_inner),
  312         -
            Self::TableNotFoundError(_inner) => ::std::option::Option::Some(_inner),
  313         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         358  +
            /* OperationErrorGenerator.kt:321 */
         359  +
            Self::InternalServerError(_inner) =>
         360  +
            /* OperationErrorGenerator.kt:283 */
         361  +
            {
         362  +
                ::std::option::Option::Some(_inner)
         363  +
            }
         364  +
            ,
         365  +
            /* OperationErrorGenerator.kt:321 */
         366  +
            Self::InvalidEndpointError(_inner) =>
         367  +
            /* OperationErrorGenerator.kt:283 */
         368  +
            {
         369  +
                ::std::option::Option::Some(_inner)
         370  +
            }
         371  +
            ,
         372  +
            /* OperationErrorGenerator.kt:321 */
         373  +
            Self::TableNotFoundError(_inner) =>
         374  +
            /* OperationErrorGenerator.kt:283 */
         375  +
            {
         376  +
                ::std::option::Option::Some(_inner)
         377  +
            }
         378  +
            ,
         379  +
            /* OperationErrorGenerator.kt:326 */
         380  +
            Self::Unhandled(_inner) => {
         381  +
                /* OperationErrorGenerator.kt:279 */
         382  +
                ::std::option::Option::Some(&*_inner.source)
         383  +
                /* OperationErrorGenerator.kt:326 */
         384  +
            } /* OperationErrorGenerator.kt:318 */
  314    385   
        }
         386  +
        /* OperationErrorGenerator.kt:270 */
  315    387   
    }
         388  +
    /* OperationErrorGenerator.kt:269 */
  316    389   
}
         390  +
/* OperationErrorGenerator.kt:133 */
  317    391   
impl ::std::fmt::Display for DescribeContinuousBackupsError {
         392  +
    /* OperationErrorGenerator.kt:134 */
  318    393   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         394  +
        /* OperationErrorGenerator.kt:318 */
  319    395   
        match self {
  320         -
            Self::InternalServerError(_inner) => _inner.fmt(f),
  321         -
            Self::InvalidEndpointError(_inner) => _inner.fmt(f),
  322         -
            Self::TableNotFoundError(_inner) => _inner.fmt(f),
         396  +
            /* OperationErrorGenerator.kt:321 */
         397  +
            Self::InternalServerError(_inner) =>
         398  +
            /* OperationErrorGenerator.kt:151 */
         399  +
            {
         400  +
                _inner.fmt(f)
         401  +
            }
         402  +
            ,
         403  +
            /* OperationErrorGenerator.kt:321 */
         404  +
            Self::InvalidEndpointError(_inner) =>
         405  +
            /* OperationErrorGenerator.kt:151 */
         406  +
            {
         407  +
                _inner.fmt(f)
         408  +
            }
         409  +
            ,
         410  +
            /* OperationErrorGenerator.kt:321 */
         411  +
            Self::TableNotFoundError(_inner) =>
         412  +
            /* OperationErrorGenerator.kt:151 */
         413  +
            {
         414  +
                _inner.fmt(f)
         415  +
            }
         416  +
            ,
         417  +
            /* OperationErrorGenerator.kt:326 */
  323    418   
            Self::Unhandled(_inner) => {
         419  +
                /* OperationErrorGenerator.kt:139 */
  324    420   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  325    421   
                    write!(f, "unhandled error ({code})")
  326    422   
                } else {
  327    423   
                    f.write_str("unhandled error")
  328    424   
                }
         425  +
                /* OperationErrorGenerator.kt:326 */
         426  +
            } /* OperationErrorGenerator.kt:318 */
  329    427   
        }
         428  +
        /* OperationErrorGenerator.kt:134 */
  330    429   
    }
  331         -
    }
         430  +
    /* OperationErrorGenerator.kt:133 */
  332    431   
}
         432  +
/* OperationErrorGenerator.kt:182 */
  333    433   
impl ::aws_smithy_types::retry::ProvideErrorKind for DescribeContinuousBackupsError {
         434  +
    /* OperationErrorGenerator.kt:186 */
  334    435   
    fn code(&self) -> ::std::option::Option<&str> {
         436  +
        /* OperationErrorGenerator.kt:187 */
  335    437   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         438  +
        /* OperationErrorGenerator.kt:186 */
  336    439   
    }
         440  +
    /* OperationErrorGenerator.kt:190 */
  337    441   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         442  +
        /* OperationErrorGenerator.kt:197 */
  338    443   
        ::std::option::Option::None
         444  +
        /* OperationErrorGenerator.kt:190 */
  339    445   
    }
         446  +
    /* OperationErrorGenerator.kt:182 */
  340    447   
}
         448  +
/* OperationErrorGenerator.kt:163 */
  341    449   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for DescribeContinuousBackupsError {
         450  +
    /* OperationErrorGenerator.kt:164 */
  342    451   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         452  +
        /* OperationErrorGenerator.kt:318 */
  343    453   
        match self {
  344         -
            Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  345         -
            Self::InvalidEndpointError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  346         -
            Self::TableNotFoundError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
  347         -
            Self::Unhandled(_inner) => &_inner.meta,
         454  +
            /* OperationErrorGenerator.kt:321 */
         455  +
            Self::InternalServerError(_inner) =>
         456  +
            /* OperationErrorGenerator.kt:169 */
         457  +
            {
         458  +
                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
         459  +
            }
         460  +
            ,
         461  +
            /* OperationErrorGenerator.kt:321 */
         462  +
            Self::InvalidEndpointError(_inner) =>
         463  +
            /* OperationErrorGenerator.kt:169 */
         464  +
            {
         465  +
                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
         466  +
            }
         467  +
            ,
         468  +
            /* OperationErrorGenerator.kt:321 */
         469  +
            Self::TableNotFoundError(_inner) =>
         470  +
            /* OperationErrorGenerator.kt:169 */
         471  +
            {
         472  +
                ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
         473  +
            }
         474  +
            ,
         475  +
            /* OperationErrorGenerator.kt:326 */
         476  +
            Self::Unhandled(_inner) => {
         477  +
                /* OperationErrorGenerator.kt:168 */
         478  +
                &_inner.meta
         479  +
                /* OperationErrorGenerator.kt:326 */
         480  +
            } /* OperationErrorGenerator.kt:318 */
  348    481   
        }
         482  +
        /* OperationErrorGenerator.kt:164 */
  349    483   
    }
         484  +
    /* OperationErrorGenerator.kt:163 */
  350    485   
}
         486  +
/* OperationErrorGenerator.kt:109 */
  351    487   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for DescribeContinuousBackupsError {
         488  +
    /* OperationErrorGenerator.kt:110 */
  352    489   
    fn create_unhandled_error(
  353    490   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  354    491   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  355    492   
    ) -> Self {
         493  +
        /* OperationErrorGenerator.kt:121 */
  356    494   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  357    495   
            source,
  358    496   
            meta: meta.unwrap_or_default(),
  359    497   
        })
         498  +
        /* OperationErrorGenerator.kt:110 */
  360    499   
    }
         500  +
    /* OperationErrorGenerator.kt:109 */
  361    501   
}
  362    502   
         503  +
/* CodegenDelegator.kt:255 */
  363    504   
pub use crate::operation::describe_continuous_backups::_describe_continuous_backups_output::DescribeContinuousBackupsOutput;
  364    505   
         506  +
/* CodegenDelegator.kt:255 */
  365    507   
pub use crate::operation::describe_continuous_backups::_describe_continuous_backups_input::DescribeContinuousBackupsInput;
  366    508   
         509  +
/* RustModule.kt:172 */
  367    510   
mod _describe_continuous_backups_input;
  368    511   
         512  +
/* RustModule.kt:172 */
  369    513   
mod _describe_continuous_backups_output;
  370    514   
  371         -
/// Builders
         515  +
/// /* CodegenDelegator.kt:51 */Builders
  372    516   
pub mod builders;

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

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

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

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