Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943

Files changed:

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/types/error/_idempotent_parameter_mismatch_exception.rs

@@ -1,1 +81,133 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>DynamoDB rejected the request because you retried a request with a different payload but with an idempotent token that was already used.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>DynamoDB rejected the request because you retried a request with a different payload but with an idempotent token that was already used.</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 IdempotentParameterMismatchError {
           8  +
pub /* StructureGenerator.kt:201 */ struct IdempotentParameterMismatchError {
           9  +
    /* StructureGenerator.kt:231 */
    7     10   
    #[allow(missing_docs)] // documentation missing in model
    8     11   
    pub message: ::std::option::Option<::std::string::String>,
    9         -
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          12  +
    /* ErrorGenerator.kt:53 */ pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          13  +
    /* StructureGenerator.kt:201 */
   10     14   
}
          15  +
/* ErrorImplGenerator.kt:99 */
   11     16   
impl IdempotentParameterMismatchError {
          17  +
    /* ErrorImplGenerator.kt:128 */
   12     18   
    /// Returns the error message.
   13     19   
    pub fn message(&self) -> ::std::option::Option<&str> {
   14     20   
        self.message.as_deref()
   15     21   
    }
          22  +
    /* ErrorImplGenerator.kt:99 */
   16     23   
}
          24  +
/* ErrorImplGenerator.kt:153 */
   17     25   
impl ::std::fmt::Display for IdempotentParameterMismatchError {
          26  +
    /* ErrorImplGenerator.kt:154 */
   18     27   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          28  +
        /* ErrorImplGenerator.kt:161 */
   19     29   
        ::std::write!(f, "IdempotentParameterMismatchError [IdempotentParameterMismatchException]")?;
          30  +
        /* ErrorImplGenerator.kt:166 */
   20     31   
        if let ::std::option::Option::Some(inner_1) = &self.message {
          32  +
            /* ErrorImplGenerator.kt:166 */
   21     33   
            {
          34  +
                /* ErrorImplGenerator.kt:167 */
   22     35   
                ::std::write!(f, ": {}", inner_1)?;
          36  +
                /* ErrorImplGenerator.kt:166 */
   23     37   
            }
          38  +
            /* ErrorImplGenerator.kt:166 */
   24     39   
        }
          40  +
        /* ErrorImplGenerator.kt:171 */
   25     41   
        Ok(())
          42  +
        /* ErrorImplGenerator.kt:154 */
   26     43   
    }
          44  +
    /* ErrorImplGenerator.kt:153 */
   27     45   
}
          46  +
/* ErrorImplGenerator.kt:175 */
   28     47   
impl ::std::error::Error for IdempotentParameterMismatchError {}
          48  +
/* ErrorGenerator.kt:77 */
   29     49   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for IdempotentParameterMismatchError {
          50  +
    /* ErrorGenerator.kt:78 */
   30     51   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
   31     52   
        &self.meta
   32     53   
    }
          54  +
    /* ErrorGenerator.kt:77 */
   33     55   
}
          56  +
/* ErrorGenerator.kt:81 */
   34     57   
impl IdempotentParameterMismatchError {
   35         -
    /// Creates a new builder-style object to manufacture [`IdempotentParameterMismatchError`](crate::types::error::IdempotentParameterMismatchError).
          58  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`IdempotentParameterMismatchError`](crate::types::error::IdempotentParameterMismatchError).
          59  +
    /* BuilderGenerator.kt:175 */
   36     60   
    pub fn builder() -> crate::types::error::builders::IdempotentParameterMismatchErrorBuilder {
          61  +
        /* BuilderGenerator.kt:176 */
   37     62   
        crate::types::error::builders::IdempotentParameterMismatchErrorBuilder::default()
          63  +
        /* BuilderGenerator.kt:175 */
   38     64   
    }
          65  +
    /* ErrorGenerator.kt:81 */
   39     66   
}
   40     67   
   41         -
/// A builder for [`IdempotentParameterMismatchError`](crate::types::error::IdempotentParameterMismatchError).
          68  +
/// /* BuilderGenerator.kt:342 */A builder for [`IdempotentParameterMismatchError`](crate::types::error::IdempotentParameterMismatchError).
          69  +
/* RustType.kt:516 */
   42     70   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          71  +
/* RustType.kt:516 */
   43     72   
#[non_exhaustive]
          73  +
/* BuilderGenerator.kt:345 */
   44     74   
pub struct IdempotentParameterMismatchErrorBuilder {
   45         -
    pub(crate) message: ::std::option::Option<::std::string::String>,
   46         -
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          75  +
    /* BuilderGenerator.kt:275 */ pub(crate) message: ::std::option::Option<::std::string::String>,
          76  +
    /* ErrorGenerator.kt:97 */ meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          77  +
    /* BuilderGenerator.kt:345 */
   47     78   
}
          79  +
/* BuilderGenerator.kt:355 */
   48     80   
impl IdempotentParameterMismatchErrorBuilder {
          81  +
    /* BuilderGenerator.kt:286 */
   49     82   
    #[allow(missing_docs)] // documentation missing in model
          83  +
                           /* BuilderGenerator.kt:291 */
   50     84   
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          85  +
        /* BuilderGenerator.kt:292 */
   51     86   
        self.message = ::std::option::Option::Some(input.into());
          87  +
        /* BuilderGenerator.kt:293 */
   52     88   
        self
          89  +
        /* BuilderGenerator.kt:291 */
   53     90   
    }
          91  +
    /* BuilderGenerator.kt:312 */
   54     92   
    #[allow(missing_docs)] // documentation missing in model
          93  +
                           /* BuilderGenerator.kt:314 */
   55     94   
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          95  +
        /* BuilderGenerator.kt:315 */
   56     96   
        self.message = input;
   57     97   
        self
          98  +
        /* BuilderGenerator.kt:314 */
   58     99   
    }
         100  +
    /* BuilderGenerator.kt:334 */
   59    101   
    #[allow(missing_docs)] // documentation missing in model
         102  +
                           /* BuilderGenerator.kt:336 */
   60    103   
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
         104  +
        /* BuilderGenerator.kt:337 */
   61    105   
        &self.message
         106  +
        /* BuilderGenerator.kt:336 */
   62    107   
    }
         108  +
    /* ErrorGenerator.kt:101 */
   63    109   
    /// Sets error metadata
   64    110   
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
   65    111   
        self.meta = Some(meta);
   66    112   
        self
   67    113   
    }
   68    114   
   69    115   
    /// Sets error metadata
   70    116   
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
   71    117   
        self.meta = meta;
   72    118   
        self
   73    119   
    }
   74         -
    /// Consumes the builder and constructs a [`IdempotentParameterMismatchError`](crate::types::error::IdempotentParameterMismatchError).
         120  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`IdempotentParameterMismatchError`](crate::types::error::IdempotentParameterMismatchError).
         121  +
    /* BuilderGenerator.kt:253 */
   75    122   
    pub fn build(self) -> crate::types::error::IdempotentParameterMismatchError {
         123  +
        /* BuilderGenerator.kt:477 */
   76    124   
        crate::types::error::IdempotentParameterMismatchError {
   77         -
            message: self.message,
         125  +
            /* BuilderGenerator.kt:481 */ message: self.message,
         126  +
            /* ErrorGenerator.kt:120 */
   78    127   
            meta: self.meta.unwrap_or_default(),
         128  +
            /* BuilderGenerator.kt:477 */
   79    129   
        }
         130  +
        /* BuilderGenerator.kt:253 */
   80    131   
    }
         132  +
    /* BuilderGenerator.kt:355 */
   81    133   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/types/error/_index_not_found_exception.rs

@@ -1,1 +81,133 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>The operation tried to access a nonexistent index.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>The operation tried to access a nonexistent index.</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 IndexNotFoundError {
           8  +
pub /* StructureGenerator.kt:201 */ struct IndexNotFoundError {
           9  +
    /* StructureGenerator.kt:231 */
    7     10   
    #[allow(missing_docs)] // documentation missing in model
    8     11   
    pub message: ::std::option::Option<::std::string::String>,
    9         -
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          12  +
    /* ErrorGenerator.kt:53 */ pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          13  +
    /* StructureGenerator.kt:201 */
   10     14   
}
          15  +
/* ErrorImplGenerator.kt:99 */
   11     16   
impl IndexNotFoundError {
          17  +
    /* ErrorImplGenerator.kt:128 */
   12     18   
    /// Returns the error message.
   13     19   
    pub fn message(&self) -> ::std::option::Option<&str> {
   14     20   
        self.message.as_deref()
   15     21   
    }
          22  +
    /* ErrorImplGenerator.kt:99 */
   16     23   
}
          24  +
/* ErrorImplGenerator.kt:153 */
   17     25   
impl ::std::fmt::Display for IndexNotFoundError {
          26  +
    /* ErrorImplGenerator.kt:154 */
   18     27   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          28  +
        /* ErrorImplGenerator.kt:161 */
   19     29   
        ::std::write!(f, "IndexNotFoundError [IndexNotFoundException]")?;
          30  +
        /* ErrorImplGenerator.kt:166 */
   20     31   
        if let ::std::option::Option::Some(inner_1) = &self.message {
          32  +
            /* ErrorImplGenerator.kt:166 */
   21     33   
            {
          34  +
                /* ErrorImplGenerator.kt:167 */
   22     35   
                ::std::write!(f, ": {}", inner_1)?;
          36  +
                /* ErrorImplGenerator.kt:166 */
   23     37   
            }
          38  +
            /* ErrorImplGenerator.kt:166 */
   24     39   
        }
          40  +
        /* ErrorImplGenerator.kt:171 */
   25     41   
        Ok(())
          42  +
        /* ErrorImplGenerator.kt:154 */
   26     43   
    }
          44  +
    /* ErrorImplGenerator.kt:153 */
   27     45   
}
          46  +
/* ErrorImplGenerator.kt:175 */
   28     47   
impl ::std::error::Error for IndexNotFoundError {}
          48  +
/* ErrorGenerator.kt:77 */
   29     49   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for IndexNotFoundError {
          50  +
    /* ErrorGenerator.kt:78 */
   30     51   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
   31     52   
        &self.meta
   32     53   
    }
          54  +
    /* ErrorGenerator.kt:77 */
   33     55   
}
          56  +
/* ErrorGenerator.kt:81 */
   34     57   
impl IndexNotFoundError {
   35         -
    /// Creates a new builder-style object to manufacture [`IndexNotFoundError`](crate::types::error::IndexNotFoundError).
          58  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`IndexNotFoundError`](crate::types::error::IndexNotFoundError).
          59  +
    /* BuilderGenerator.kt:175 */
   36     60   
    pub fn builder() -> crate::types::error::builders::IndexNotFoundErrorBuilder {
          61  +
        /* BuilderGenerator.kt:176 */
   37     62   
        crate::types::error::builders::IndexNotFoundErrorBuilder::default()
          63  +
        /* BuilderGenerator.kt:175 */
   38     64   
    }
          65  +
    /* ErrorGenerator.kt:81 */
   39     66   
}
   40     67   
   41         -
/// A builder for [`IndexNotFoundError`](crate::types::error::IndexNotFoundError).
          68  +
/// /* BuilderGenerator.kt:342 */A builder for [`IndexNotFoundError`](crate::types::error::IndexNotFoundError).
          69  +
/* RustType.kt:516 */
   42     70   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          71  +
/* RustType.kt:516 */
   43     72   
#[non_exhaustive]
          73  +
/* BuilderGenerator.kt:345 */
   44     74   
pub struct IndexNotFoundErrorBuilder {
   45         -
    pub(crate) message: ::std::option::Option<::std::string::String>,
   46         -
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          75  +
    /* BuilderGenerator.kt:275 */ pub(crate) message: ::std::option::Option<::std::string::String>,
          76  +
    /* ErrorGenerator.kt:97 */ meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          77  +
    /* BuilderGenerator.kt:345 */
   47     78   
}
          79  +
/* BuilderGenerator.kt:355 */
   48     80   
impl IndexNotFoundErrorBuilder {
          81  +
    /* BuilderGenerator.kt:286 */
   49     82   
    #[allow(missing_docs)] // documentation missing in model
          83  +
                           /* BuilderGenerator.kt:291 */
   50     84   
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          85  +
        /* BuilderGenerator.kt:292 */
   51     86   
        self.message = ::std::option::Option::Some(input.into());
          87  +
        /* BuilderGenerator.kt:293 */
   52     88   
        self
          89  +
        /* BuilderGenerator.kt:291 */
   53     90   
    }
          91  +
    /* BuilderGenerator.kt:312 */
   54     92   
    #[allow(missing_docs)] // documentation missing in model
          93  +
                           /* BuilderGenerator.kt:314 */
   55     94   
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          95  +
        /* BuilderGenerator.kt:315 */
   56     96   
        self.message = input;
   57     97   
        self
          98  +
        /* BuilderGenerator.kt:314 */
   58     99   
    }
         100  +
    /* BuilderGenerator.kt:334 */
   59    101   
    #[allow(missing_docs)] // documentation missing in model
         102  +
                           /* BuilderGenerator.kt:336 */
   60    103   
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
         104  +
        /* BuilderGenerator.kt:337 */
   61    105   
        &self.message
         106  +
        /* BuilderGenerator.kt:336 */
   62    107   
    }
         108  +
    /* ErrorGenerator.kt:101 */
   63    109   
    /// Sets error metadata
   64    110   
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
   65    111   
        self.meta = Some(meta);
   66    112   
        self
   67    113   
    }
   68    114   
   69    115   
    /// Sets error metadata
   70    116   
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
   71    117   
        self.meta = meta;
   72    118   
        self
   73    119   
    }
   74         -
    /// Consumes the builder and constructs a [`IndexNotFoundError`](crate::types::error::IndexNotFoundError).
         120  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`IndexNotFoundError`](crate::types::error::IndexNotFoundError).
         121  +
    /* BuilderGenerator.kt:253 */
   75    122   
    pub fn build(self) -> crate::types::error::IndexNotFoundError {
         123  +
        /* BuilderGenerator.kt:477 */
   76    124   
        crate::types::error::IndexNotFoundError {
   77         -
            message: self.message,
         125  +
            /* BuilderGenerator.kt:481 */ message: self.message,
         126  +
            /* ErrorGenerator.kt:120 */
   78    127   
            meta: self.meta.unwrap_or_default(),
         128  +
            /* BuilderGenerator.kt:477 */
   79    129   
        }
         130  +
        /* BuilderGenerator.kt:253 */
   80    131   
    }
         132  +
    /* BuilderGenerator.kt:355 */
   81    133   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/types/error/_internal_server_error.rs

@@ -1,1 +81,129 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>An error occurred on the server side.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>An error occurred on the server side.</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 InternalServerError {
    7         -
    /// <p>The server encountered an internal error trying to fulfill the request.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct InternalServerError {
           9  +
    /// /* StructureGenerator.kt:231 */<p>The server encountered an internal error trying to fulfill the request.</p>
    8     10   
    pub message: ::std::option::Option<::std::string::String>,
    9         -
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          11  +
    /* ErrorGenerator.kt:53 */ pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          12  +
    /* StructureGenerator.kt:201 */
   10     13   
}
          14  +
/* ErrorImplGenerator.kt:99 */
   11     15   
impl InternalServerError {
          16  +
    /* ErrorImplGenerator.kt:128 */
   12     17   
    /// Returns the error message.
   13     18   
    pub fn message(&self) -> ::std::option::Option<&str> {
   14     19   
        self.message.as_deref()
   15     20   
    }
          21  +
    /* ErrorImplGenerator.kt:99 */
   16     22   
}
          23  +
/* ErrorImplGenerator.kt:153 */
   17     24   
impl ::std::fmt::Display for InternalServerError {
          25  +
    /* ErrorImplGenerator.kt:154 */
   18     26   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          27  +
        /* ErrorImplGenerator.kt:161 */
   19     28   
        ::std::write!(f, "InternalServerError")?;
          29  +
        /* ErrorImplGenerator.kt:166 */
   20     30   
        if let ::std::option::Option::Some(inner_1) = &self.message {
          31  +
            /* ErrorImplGenerator.kt:166 */
   21     32   
            {
          33  +
                /* ErrorImplGenerator.kt:167 */
   22     34   
                ::std::write!(f, ": {}", inner_1)?;
          35  +
                /* ErrorImplGenerator.kt:166 */
   23     36   
            }
          37  +
            /* ErrorImplGenerator.kt:166 */
   24     38   
        }
          39  +
        /* ErrorImplGenerator.kt:171 */
   25     40   
        Ok(())
          41  +
        /* ErrorImplGenerator.kt:154 */
   26     42   
    }
          43  +
    /* ErrorImplGenerator.kt:153 */
   27     44   
}
          45  +
/* ErrorImplGenerator.kt:175 */
   28     46   
impl ::std::error::Error for InternalServerError {}
          47  +
/* ErrorGenerator.kt:77 */
   29     48   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for InternalServerError {
          49  +
    /* ErrorGenerator.kt:78 */
   30     50   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
   31     51   
        &self.meta
   32     52   
    }
          53  +
    /* ErrorGenerator.kt:77 */
   33     54   
}
          55  +
/* ErrorGenerator.kt:81 */
   34     56   
impl InternalServerError {
   35         -
    /// Creates a new builder-style object to manufacture [`InternalServerError`](crate::types::error::InternalServerError).
          57  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`InternalServerError`](crate::types::error::InternalServerError).
          58  +
    /* BuilderGenerator.kt:175 */
   36     59   
    pub fn builder() -> crate::types::error::builders::InternalServerErrorBuilder {
          60  +
        /* BuilderGenerator.kt:176 */
   37     61   
        crate::types::error::builders::InternalServerErrorBuilder::default()
          62  +
        /* BuilderGenerator.kt:175 */
   38     63   
    }
          64  +
    /* ErrorGenerator.kt:81 */
   39     65   
}
   40     66   
   41         -
/// A builder for [`InternalServerError`](crate::types::error::InternalServerError).
          67  +
/// /* BuilderGenerator.kt:342 */A builder for [`InternalServerError`](crate::types::error::InternalServerError).
          68  +
/* RustType.kt:516 */
   42     69   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          70  +
/* RustType.kt:516 */
   43     71   
#[non_exhaustive]
          72  +
/* BuilderGenerator.kt:345 */
   44     73   
pub struct InternalServerErrorBuilder {
   45         -
    pub(crate) message: ::std::option::Option<::std::string::String>,
   46         -
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          74  +
    /* BuilderGenerator.kt:275 */ pub(crate) message: ::std::option::Option<::std::string::String>,
          75  +
    /* ErrorGenerator.kt:97 */ meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          76  +
    /* BuilderGenerator.kt:345 */
   47     77   
}
          78  +
/* BuilderGenerator.kt:355 */
   48     79   
impl InternalServerErrorBuilder {
   49         -
    /// <p>The server encountered an internal error trying to fulfill the request.</p>
          80  +
    /// /* BuilderGenerator.kt:286 */<p>The server encountered an internal error trying to fulfill the request.</p>
          81  +
    /* BuilderGenerator.kt:291 */
   50     82   
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          83  +
        /* BuilderGenerator.kt:292 */
   51     84   
        self.message = ::std::option::Option::Some(input.into());
          85  +
        /* BuilderGenerator.kt:293 */
   52     86   
        self
          87  +
        /* BuilderGenerator.kt:291 */
   53     88   
    }
   54         -
    /// <p>The server encountered an internal error trying to fulfill the request.</p>
          89  +
    /// /* BuilderGenerator.kt:312 */<p>The server encountered an internal error trying to fulfill the request.</p>
          90  +
    /* BuilderGenerator.kt:314 */
   55     91   
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          92  +
        /* BuilderGenerator.kt:315 */
   56     93   
        self.message = input;
   57     94   
        self
          95  +
        /* BuilderGenerator.kt:314 */
   58     96   
    }
   59         -
    /// <p>The server encountered an internal error trying to fulfill the request.</p>
          97  +
    /// /* BuilderGenerator.kt:334 */<p>The server encountered an internal error trying to fulfill the request.</p>
          98  +
    /* BuilderGenerator.kt:336 */
   60     99   
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
         100  +
        /* BuilderGenerator.kt:337 */
   61    101   
        &self.message
         102  +
        /* BuilderGenerator.kt:336 */
   62    103   
    }
         104  +
    /* ErrorGenerator.kt:101 */
   63    105   
    /// Sets error metadata
   64    106   
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
   65    107   
        self.meta = Some(meta);
   66    108   
        self
   67    109   
    }
   68    110   
   69    111   
    /// Sets error metadata
   70    112   
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
   71    113   
        self.meta = meta;
   72    114   
        self
   73    115   
    }
   74         -
    /// Consumes the builder and constructs a [`InternalServerError`](crate::types::error::InternalServerError).
         116  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`InternalServerError`](crate::types::error::InternalServerError).
         117  +
    /* BuilderGenerator.kt:253 */
   75    118   
    pub fn build(self) -> crate::types::error::InternalServerError {
         119  +
        /* BuilderGenerator.kt:477 */
   76    120   
        crate::types::error::InternalServerError {
   77         -
            message: self.message,
         121  +
            /* BuilderGenerator.kt:481 */ message: self.message,
         122  +
            /* ErrorGenerator.kt:120 */
   78    123   
            meta: self.meta.unwrap_or_default(),
         124  +
            /* BuilderGenerator.kt:477 */
   79    125   
        }
         126  +
        /* BuilderGenerator.kt:253 */
   80    127   
    }
         128  +
    /* BuilderGenerator.kt:355 */
   81    129   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/types/error/_invalid_endpoint_exception.rs

@@ -1,1 +80,133 @@
    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 InvalidEndpointError {
           8  +
pub /* StructureGenerator.kt:201 */ struct InvalidEndpointError {
           9  +
    /* StructureGenerator.kt:231 */
    6     10   
    #[allow(missing_docs)] // documentation missing in model
    7     11   
    pub message: ::std::option::Option<::std::string::String>,
    8         -
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          12  +
    /* ErrorGenerator.kt:53 */ pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          13  +
    /* StructureGenerator.kt:201 */
    9     14   
}
          15  +
/* ErrorImplGenerator.kt:99 */
   10     16   
impl InvalidEndpointError {
          17  +
    /* ErrorImplGenerator.kt:128 */
   11     18   
    /// Returns the error message.
   12     19   
    pub fn message(&self) -> ::std::option::Option<&str> {
   13     20   
        self.message.as_deref()
   14     21   
    }
          22  +
    /* ErrorImplGenerator.kt:99 */
   15     23   
}
          24  +
/* ErrorImplGenerator.kt:153 */
   16     25   
impl ::std::fmt::Display for InvalidEndpointError {
          26  +
    /* ErrorImplGenerator.kt:154 */
   17     27   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          28  +
        /* ErrorImplGenerator.kt:161 */
   18     29   
        ::std::write!(f, "InvalidEndpointError [InvalidEndpointException]")?;
          30  +
        /* ErrorImplGenerator.kt:166 */
   19     31   
        if let ::std::option::Option::Some(inner_1) = &self.message {
          32  +
            /* ErrorImplGenerator.kt:166 */
   20     33   
            {
          34  +
                /* ErrorImplGenerator.kt:167 */
   21     35   
                ::std::write!(f, ": {}", inner_1)?;
          36  +
                /* ErrorImplGenerator.kt:166 */
   22     37   
            }
          38  +
            /* ErrorImplGenerator.kt:166 */
   23     39   
        }
          40  +
        /* ErrorImplGenerator.kt:171 */
   24     41   
        Ok(())
          42  +
        /* ErrorImplGenerator.kt:154 */
   25     43   
    }
          44  +
    /* ErrorImplGenerator.kt:153 */
   26     45   
}
          46  +
/* ErrorImplGenerator.kt:175 */
   27     47   
impl ::std::error::Error for InvalidEndpointError {}
          48  +
/* ErrorGenerator.kt:77 */
   28     49   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for InvalidEndpointError {
          50  +
    /* ErrorGenerator.kt:78 */
   29     51   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
   30     52   
        &self.meta
   31     53   
    }
          54  +
    /* ErrorGenerator.kt:77 */
   32     55   
}
          56  +
/* ErrorGenerator.kt:81 */
   33     57   
impl InvalidEndpointError {
   34         -
    /// Creates a new builder-style object to manufacture [`InvalidEndpointError`](crate::types::error::InvalidEndpointError).
          58  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`InvalidEndpointError`](crate::types::error::InvalidEndpointError).
          59  +
    /* BuilderGenerator.kt:175 */
   35     60   
    pub fn builder() -> crate::types::error::builders::InvalidEndpointErrorBuilder {
          61  +
        /* BuilderGenerator.kt:176 */
   36     62   
        crate::types::error::builders::InvalidEndpointErrorBuilder::default()
          63  +
        /* BuilderGenerator.kt:175 */
   37     64   
    }
          65  +
    /* ErrorGenerator.kt:81 */
   38     66   
}
   39     67   
   40         -
/// A builder for [`InvalidEndpointError`](crate::types::error::InvalidEndpointError).
          68  +
/// /* BuilderGenerator.kt:342 */A builder for [`InvalidEndpointError`](crate::types::error::InvalidEndpointError).
          69  +
/* RustType.kt:516 */
   41     70   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          71  +
/* RustType.kt:516 */
   42     72   
#[non_exhaustive]
          73  +
/* BuilderGenerator.kt:345 */
   43     74   
pub struct InvalidEndpointErrorBuilder {
   44         -
    pub(crate) message: ::std::option::Option<::std::string::String>,
   45         -
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          75  +
    /* BuilderGenerator.kt:275 */ pub(crate) message: ::std::option::Option<::std::string::String>,
          76  +
    /* ErrorGenerator.kt:97 */ meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          77  +
    /* BuilderGenerator.kt:345 */
   46     78   
}
          79  +
/* BuilderGenerator.kt:355 */
   47     80   
impl InvalidEndpointErrorBuilder {
          81  +
    /* BuilderGenerator.kt:286 */
   48     82   
    #[allow(missing_docs)] // documentation missing in model
          83  +
                           /* BuilderGenerator.kt:291 */
   49     84   
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          85  +
        /* BuilderGenerator.kt:292 */
   50     86   
        self.message = ::std::option::Option::Some(input.into());
          87  +
        /* BuilderGenerator.kt:293 */
   51     88   
        self
          89  +
        /* BuilderGenerator.kt:291 */
   52     90   
    }
          91  +
    /* BuilderGenerator.kt:312 */
   53     92   
    #[allow(missing_docs)] // documentation missing in model
          93  +
                           /* BuilderGenerator.kt:314 */
   54     94   
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          95  +
        /* BuilderGenerator.kt:315 */
   55     96   
        self.message = input;
   56     97   
        self
          98  +
        /* BuilderGenerator.kt:314 */
   57     99   
    }
         100  +
    /* BuilderGenerator.kt:334 */
   58    101   
    #[allow(missing_docs)] // documentation missing in model
         102  +
                           /* BuilderGenerator.kt:336 */
   59    103   
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
         104  +
        /* BuilderGenerator.kt:337 */
   60    105   
        &self.message
         106  +
        /* BuilderGenerator.kt:336 */
   61    107   
    }
         108  +
    /* ErrorGenerator.kt:101 */
   62    109   
    /// Sets error metadata
   63    110   
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
   64    111   
        self.meta = Some(meta);
   65    112   
        self
   66    113   
    }
   67    114   
   68    115   
    /// Sets error metadata
   69    116   
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
   70    117   
        self.meta = meta;
   71    118   
        self
   72    119   
    }
   73         -
    /// Consumes the builder and constructs a [`InvalidEndpointError`](crate::types::error::InvalidEndpointError).
         120  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`InvalidEndpointError`](crate::types::error::InvalidEndpointError).
         121  +
    /* BuilderGenerator.kt:253 */
   74    122   
    pub fn build(self) -> crate::types::error::InvalidEndpointError {
         123  +
        /* BuilderGenerator.kt:477 */
   75    124   
        crate::types::error::InvalidEndpointError {
   76         -
            message: self.message,
         125  +
            /* BuilderGenerator.kt:481 */ message: self.message,
         126  +
            /* ErrorGenerator.kt:120 */
   77    127   
            meta: self.meta.unwrap_or_default(),
         128  +
            /* BuilderGenerator.kt:477 */
   78    129   
        }
         130  +
        /* BuilderGenerator.kt:253 */
   79    131   
    }
         132  +
    /* BuilderGenerator.kt:355 */
   80    133   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/types/error/_invalid_export_time_exception.rs

@@ -1,1 +81,133 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>The specified <code>ExportTime</code> is outside of the point in time recovery window.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>The specified <code>ExportTime</code> is outside of the point in time recovery window.</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 InvalidExportTimeError {
           8  +
pub /* StructureGenerator.kt:201 */ struct InvalidExportTimeError {
           9  +
    /* StructureGenerator.kt:231 */
    7     10   
    #[allow(missing_docs)] // documentation missing in model
    8     11   
    pub message: ::std::option::Option<::std::string::String>,
    9         -
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          12  +
    /* ErrorGenerator.kt:53 */ pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          13  +
    /* StructureGenerator.kt:201 */
   10     14   
}
          15  +
/* ErrorImplGenerator.kt:99 */
   11     16   
impl InvalidExportTimeError {
          17  +
    /* ErrorImplGenerator.kt:128 */
   12     18   
    /// Returns the error message.
   13     19   
    pub fn message(&self) -> ::std::option::Option<&str> {
   14     20   
        self.message.as_deref()
   15     21   
    }
          22  +
    /* ErrorImplGenerator.kt:99 */
   16     23   
}
          24  +
/* ErrorImplGenerator.kt:153 */
   17     25   
impl ::std::fmt::Display for InvalidExportTimeError {
          26  +
    /* ErrorImplGenerator.kt:154 */
   18     27   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          28  +
        /* ErrorImplGenerator.kt:161 */
   19     29   
        ::std::write!(f, "InvalidExportTimeError [InvalidExportTimeException]")?;
          30  +
        /* ErrorImplGenerator.kt:166 */
   20     31   
        if let ::std::option::Option::Some(inner_1) = &self.message {
          32  +
            /* ErrorImplGenerator.kt:166 */
   21     33   
            {
          34  +
                /* ErrorImplGenerator.kt:167 */
   22     35   
                ::std::write!(f, ": {}", inner_1)?;
          36  +
                /* ErrorImplGenerator.kt:166 */
   23     37   
            }
          38  +
            /* ErrorImplGenerator.kt:166 */
   24     39   
        }
          40  +
        /* ErrorImplGenerator.kt:171 */
   25     41   
        Ok(())
          42  +
        /* ErrorImplGenerator.kt:154 */
   26     43   
    }
          44  +
    /* ErrorImplGenerator.kt:153 */
   27     45   
}
          46  +
/* ErrorImplGenerator.kt:175 */
   28     47   
impl ::std::error::Error for InvalidExportTimeError {}
          48  +
/* ErrorGenerator.kt:77 */
   29     49   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for InvalidExportTimeError {
          50  +
    /* ErrorGenerator.kt:78 */
   30     51   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
   31     52   
        &self.meta
   32     53   
    }
          54  +
    /* ErrorGenerator.kt:77 */
   33     55   
}
          56  +
/* ErrorGenerator.kt:81 */
   34     57   
impl InvalidExportTimeError {
   35         -
    /// Creates a new builder-style object to manufacture [`InvalidExportTimeError`](crate::types::error::InvalidExportTimeError).
          58  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`InvalidExportTimeError`](crate::types::error::InvalidExportTimeError).
          59  +
    /* BuilderGenerator.kt:175 */
   36     60   
    pub fn builder() -> crate::types::error::builders::InvalidExportTimeErrorBuilder {
          61  +
        /* BuilderGenerator.kt:176 */
   37     62   
        crate::types::error::builders::InvalidExportTimeErrorBuilder::default()
          63  +
        /* BuilderGenerator.kt:175 */
   38     64   
    }
          65  +
    /* ErrorGenerator.kt:81 */
   39     66   
}
   40     67   
   41         -
/// A builder for [`InvalidExportTimeError`](crate::types::error::InvalidExportTimeError).
          68  +
/// /* BuilderGenerator.kt:342 */A builder for [`InvalidExportTimeError`](crate::types::error::InvalidExportTimeError).
          69  +
/* RustType.kt:516 */
   42     70   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          71  +
/* RustType.kt:516 */
   43     72   
#[non_exhaustive]
          73  +
/* BuilderGenerator.kt:345 */
   44     74   
pub struct InvalidExportTimeErrorBuilder {
   45         -
    pub(crate) message: ::std::option::Option<::std::string::String>,
   46         -
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          75  +
    /* BuilderGenerator.kt:275 */ pub(crate) message: ::std::option::Option<::std::string::String>,
          76  +
    /* ErrorGenerator.kt:97 */ meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          77  +
    /* BuilderGenerator.kt:345 */
   47     78   
}
          79  +
/* BuilderGenerator.kt:355 */
   48     80   
impl InvalidExportTimeErrorBuilder {
          81  +
    /* BuilderGenerator.kt:286 */
   49     82   
    #[allow(missing_docs)] // documentation missing in model
          83  +
                           /* BuilderGenerator.kt:291 */
   50     84   
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          85  +
        /* BuilderGenerator.kt:292 */
   51     86   
        self.message = ::std::option::Option::Some(input.into());
          87  +
        /* BuilderGenerator.kt:293 */
   52     88   
        self
          89  +
        /* BuilderGenerator.kt:291 */
   53     90   
    }
          91  +
    /* BuilderGenerator.kt:312 */
   54     92   
    #[allow(missing_docs)] // documentation missing in model
          93  +
                           /* BuilderGenerator.kt:314 */
   55     94   
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          95  +
        /* BuilderGenerator.kt:315 */
   56     96   
        self.message = input;
   57     97   
        self
          98  +
        /* BuilderGenerator.kt:314 */
   58     99   
    }
         100  +
    /* BuilderGenerator.kt:334 */
   59    101   
    #[allow(missing_docs)] // documentation missing in model
         102  +
                           /* BuilderGenerator.kt:336 */
   60    103   
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
         104  +
        /* BuilderGenerator.kt:337 */
   61    105   
        &self.message
         106  +
        /* BuilderGenerator.kt:336 */
   62    107   
    }
         108  +
    /* ErrorGenerator.kt:101 */
   63    109   
    /// Sets error metadata
   64    110   
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
   65    111   
        self.meta = Some(meta);
   66    112   
        self
   67    113   
    }
   68    114   
   69    115   
    /// Sets error metadata
   70    116   
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
   71    117   
        self.meta = meta;
   72    118   
        self
   73    119   
    }
   74         -
    /// Consumes the builder and constructs a [`InvalidExportTimeError`](crate::types::error::InvalidExportTimeError).
         120  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`InvalidExportTimeError`](crate::types::error::InvalidExportTimeError).
         121  +
    /* BuilderGenerator.kt:253 */
   75    122   
    pub fn build(self) -> crate::types::error::InvalidExportTimeError {
         123  +
        /* BuilderGenerator.kt:477 */
   76    124   
        crate::types::error::InvalidExportTimeError {
   77         -
            message: self.message,
         125  +
            /* BuilderGenerator.kt:481 */ message: self.message,
         126  +
            /* ErrorGenerator.kt:120 */
   78    127   
            meta: self.meta.unwrap_or_default(),
         128  +
            /* BuilderGenerator.kt:477 */
   79    129   
        }
         130  +
        /* BuilderGenerator.kt:253 */
   80    131   
    }
         132  +
    /* BuilderGenerator.kt:355 */
   81    133   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/types/error/_invalid_restore_time_exception.rs

@@ -1,1 +81,133 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>An invalid restore time was specified. RestoreDateTime must be between EarliestRestorableDateTime and LatestRestorableDateTime.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>An invalid restore time was specified. RestoreDateTime must be between EarliestRestorableDateTime and LatestRestorableDateTime.</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 InvalidRestoreTimeError {
           8  +
pub /* StructureGenerator.kt:201 */ struct InvalidRestoreTimeError {
           9  +
    /* StructureGenerator.kt:231 */
    7     10   
    #[allow(missing_docs)] // documentation missing in model
    8     11   
    pub message: ::std::option::Option<::std::string::String>,
    9         -
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          12  +
    /* ErrorGenerator.kt:53 */ pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          13  +
    /* StructureGenerator.kt:201 */
   10     14   
}
          15  +
/* ErrorImplGenerator.kt:99 */
   11     16   
impl InvalidRestoreTimeError {
          17  +
    /* ErrorImplGenerator.kt:128 */
   12     18   
    /// Returns the error message.
   13     19   
    pub fn message(&self) -> ::std::option::Option<&str> {
   14     20   
        self.message.as_deref()
   15     21   
    }
          22  +
    /* ErrorImplGenerator.kt:99 */
   16     23   
}
          24  +
/* ErrorImplGenerator.kt:153 */
   17     25   
impl ::std::fmt::Display for InvalidRestoreTimeError {
          26  +
    /* ErrorImplGenerator.kt:154 */
   18     27   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          28  +
        /* ErrorImplGenerator.kt:161 */
   19     29   
        ::std::write!(f, "InvalidRestoreTimeError [InvalidRestoreTimeException]")?;
          30  +
        /* ErrorImplGenerator.kt:166 */
   20     31   
        if let ::std::option::Option::Some(inner_1) = &self.message {
          32  +
            /* ErrorImplGenerator.kt:166 */
   21     33   
            {
          34  +
                /* ErrorImplGenerator.kt:167 */
   22     35   
                ::std::write!(f, ": {}", inner_1)?;
          36  +
                /* ErrorImplGenerator.kt:166 */
   23     37   
            }
          38  +
            /* ErrorImplGenerator.kt:166 */
   24     39   
        }
          40  +
        /* ErrorImplGenerator.kt:171 */
   25     41   
        Ok(())
          42  +
        /* ErrorImplGenerator.kt:154 */
   26     43   
    }
          44  +
    /* ErrorImplGenerator.kt:153 */
   27     45   
}
          46  +
/* ErrorImplGenerator.kt:175 */
   28     47   
impl ::std::error::Error for InvalidRestoreTimeError {}
          48  +
/* ErrorGenerator.kt:77 */
   29     49   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for InvalidRestoreTimeError {
          50  +
    /* ErrorGenerator.kt:78 */
   30     51   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
   31     52   
        &self.meta
   32     53   
    }
          54  +
    /* ErrorGenerator.kt:77 */
   33     55   
}
          56  +
/* ErrorGenerator.kt:81 */
   34     57   
impl InvalidRestoreTimeError {
   35         -
    /// Creates a new builder-style object to manufacture [`InvalidRestoreTimeError`](crate::types::error::InvalidRestoreTimeError).
          58  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`InvalidRestoreTimeError`](crate::types::error::InvalidRestoreTimeError).
          59  +
    /* BuilderGenerator.kt:175 */
   36     60   
    pub fn builder() -> crate::types::error::builders::InvalidRestoreTimeErrorBuilder {
          61  +
        /* BuilderGenerator.kt:176 */
   37     62   
        crate::types::error::builders::InvalidRestoreTimeErrorBuilder::default()
          63  +
        /* BuilderGenerator.kt:175 */
   38     64   
    }
          65  +
    /* ErrorGenerator.kt:81 */
   39     66   
}
   40     67   
   41         -
/// A builder for [`InvalidRestoreTimeError`](crate::types::error::InvalidRestoreTimeError).
          68  +
/// /* BuilderGenerator.kt:342 */A builder for [`InvalidRestoreTimeError`](crate::types::error::InvalidRestoreTimeError).
          69  +
/* RustType.kt:516 */
   42     70   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          71  +
/* RustType.kt:516 */
   43     72   
#[non_exhaustive]
          73  +
/* BuilderGenerator.kt:345 */
   44     74   
pub struct InvalidRestoreTimeErrorBuilder {
   45         -
    pub(crate) message: ::std::option::Option<::std::string::String>,
   46         -
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          75  +
    /* BuilderGenerator.kt:275 */ pub(crate) message: ::std::option::Option<::std::string::String>,
          76  +
    /* ErrorGenerator.kt:97 */ meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          77  +
    /* BuilderGenerator.kt:345 */
   47     78   
}
          79  +
/* BuilderGenerator.kt:355 */
   48     80   
impl InvalidRestoreTimeErrorBuilder {
          81  +
    /* BuilderGenerator.kt:286 */
   49     82   
    #[allow(missing_docs)] // documentation missing in model
          83  +
                           /* BuilderGenerator.kt:291 */
   50     84   
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          85  +
        /* BuilderGenerator.kt:292 */
   51     86   
        self.message = ::std::option::Option::Some(input.into());
          87  +
        /* BuilderGenerator.kt:293 */
   52     88   
        self
          89  +
        /* BuilderGenerator.kt:291 */
   53     90   
    }
          91  +
    /* BuilderGenerator.kt:312 */
   54     92   
    #[allow(missing_docs)] // documentation missing in model
          93  +
                           /* BuilderGenerator.kt:314 */
   55     94   
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          95  +
        /* BuilderGenerator.kt:315 */
   56     96   
        self.message = input;
   57     97   
        self
          98  +
        /* BuilderGenerator.kt:314 */
   58     99   
    }
         100  +
    /* BuilderGenerator.kt:334 */
   59    101   
    #[allow(missing_docs)] // documentation missing in model
         102  +
                           /* BuilderGenerator.kt:336 */
   60    103   
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
         104  +
        /* BuilderGenerator.kt:337 */
   61    105   
        &self.message
         106  +
        /* BuilderGenerator.kt:336 */
   62    107   
    }
         108  +
    /* ErrorGenerator.kt:101 */
   63    109   
    /// Sets error metadata
   64    110   
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
   65    111   
        self.meta = Some(meta);
   66    112   
        self
   67    113   
    }
   68    114   
   69    115   
    /// Sets error metadata
   70    116   
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
   71    117   
        self.meta = meta;
   72    118   
        self
   73    119   
    }
   74         -
    /// Consumes the builder and constructs a [`InvalidRestoreTimeError`](crate::types::error::InvalidRestoreTimeError).
         120  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`InvalidRestoreTimeError`](crate::types::error::InvalidRestoreTimeError).
         121  +
    /* BuilderGenerator.kt:253 */
   75    122   
    pub fn build(self) -> crate::types::error::InvalidRestoreTimeError {
         123  +
        /* BuilderGenerator.kt:477 */
   76    124   
        crate::types::error::InvalidRestoreTimeError {
   77         -
            message: self.message,
         125  +
            /* BuilderGenerator.kt:481 */ message: self.message,
         126  +
            /* ErrorGenerator.kt:120 */
   78    127   
            meta: self.meta.unwrap_or_default(),
         128  +
            /* BuilderGenerator.kt:477 */
   79    129   
        }
         130  +
        /* BuilderGenerator.kt:253 */
   80    131   
    }
         132  +
    /* BuilderGenerator.kt:355 */
   81    133   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/types/error/_item_collection_size_limit_exceeded_exception.rs

@@ -1,1 +81,129 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>An item collection is too large. This exception is only returned for tables that have one or more local secondary indexes.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>An item collection is too large. This exception is only returned for tables that have one or more local secondary indexes.</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 ItemCollectionSizeLimitExceededError {
    7         -
    /// <p>The total size of an item collection has exceeded the maximum limit of 10 gigabytes.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct ItemCollectionSizeLimitExceededError {
           9  +
    /// /* StructureGenerator.kt:231 */<p>The total size of an item collection has exceeded the maximum limit of 10 gigabytes.</p>
    8     10   
    pub message: ::std::option::Option<::std::string::String>,
    9         -
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          11  +
    /* ErrorGenerator.kt:53 */ pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          12  +
    /* StructureGenerator.kt:201 */
   10     13   
}
          14  +
/* ErrorImplGenerator.kt:99 */
   11     15   
impl ItemCollectionSizeLimitExceededError {
          16  +
    /* ErrorImplGenerator.kt:128 */
   12     17   
    /// Returns the error message.
   13     18   
    pub fn message(&self) -> ::std::option::Option<&str> {
   14     19   
        self.message.as_deref()
   15     20   
    }
          21  +
    /* ErrorImplGenerator.kt:99 */
   16     22   
}
          23  +
/* ErrorImplGenerator.kt:153 */
   17     24   
impl ::std::fmt::Display for ItemCollectionSizeLimitExceededError {
          25  +
    /* ErrorImplGenerator.kt:154 */
   18     26   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          27  +
        /* ErrorImplGenerator.kt:161 */
   19     28   
        ::std::write!(f, "ItemCollectionSizeLimitExceededError [ItemCollectionSizeLimitExceededException]")?;
          29  +
        /* ErrorImplGenerator.kt:166 */
   20     30   
        if let ::std::option::Option::Some(inner_1) = &self.message {
          31  +
            /* ErrorImplGenerator.kt:166 */
   21     32   
            {
          33  +
                /* ErrorImplGenerator.kt:167 */
   22     34   
                ::std::write!(f, ": {}", inner_1)?;
          35  +
                /* ErrorImplGenerator.kt:166 */
   23     36   
            }
          37  +
            /* ErrorImplGenerator.kt:166 */
   24     38   
        }
          39  +
        /* ErrorImplGenerator.kt:171 */
   25     40   
        Ok(())
          41  +
        /* ErrorImplGenerator.kt:154 */
   26     42   
    }
          43  +
    /* ErrorImplGenerator.kt:153 */
   27     44   
}
          45  +
/* ErrorImplGenerator.kt:175 */
   28     46   
impl ::std::error::Error for ItemCollectionSizeLimitExceededError {}
          47  +
/* ErrorGenerator.kt:77 */
   29     48   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for ItemCollectionSizeLimitExceededError {
          49  +
    /* ErrorGenerator.kt:78 */
   30     50   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
   31     51   
        &self.meta
   32     52   
    }
          53  +
    /* ErrorGenerator.kt:77 */
   33     54   
}
          55  +
/* ErrorGenerator.kt:81 */
   34     56   
impl ItemCollectionSizeLimitExceededError {
   35         -
    /// Creates a new builder-style object to manufacture [`ItemCollectionSizeLimitExceededError`](crate::types::error::ItemCollectionSizeLimitExceededError).
          57  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ItemCollectionSizeLimitExceededError`](crate::types::error::ItemCollectionSizeLimitExceededError).
          58  +
    /* BuilderGenerator.kt:175 */
   36     59   
    pub fn builder() -> crate::types::error::builders::ItemCollectionSizeLimitExceededErrorBuilder {
          60  +
        /* BuilderGenerator.kt:176 */
   37     61   
        crate::types::error::builders::ItemCollectionSizeLimitExceededErrorBuilder::default()
          62  +
        /* BuilderGenerator.kt:175 */
   38     63   
    }
          64  +
    /* ErrorGenerator.kt:81 */
   39     65   
}
   40     66   
   41         -
/// A builder for [`ItemCollectionSizeLimitExceededError`](crate::types::error::ItemCollectionSizeLimitExceededError).
          67  +
/// /* BuilderGenerator.kt:342 */A builder for [`ItemCollectionSizeLimitExceededError`](crate::types::error::ItemCollectionSizeLimitExceededError).
          68  +
/* RustType.kt:516 */
   42     69   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          70  +
/* RustType.kt:516 */
   43     71   
#[non_exhaustive]
          72  +
/* BuilderGenerator.kt:345 */
   44     73   
pub struct ItemCollectionSizeLimitExceededErrorBuilder {
   45         -
    pub(crate) message: ::std::option::Option<::std::string::String>,
   46         -
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          74  +
    /* BuilderGenerator.kt:275 */ pub(crate) message: ::std::option::Option<::std::string::String>,
          75  +
    /* ErrorGenerator.kt:97 */ meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          76  +
    /* BuilderGenerator.kt:345 */
   47     77   
}
          78  +
/* BuilderGenerator.kt:355 */
   48     79   
impl ItemCollectionSizeLimitExceededErrorBuilder {
   49         -
    /// <p>The total size of an item collection has exceeded the maximum limit of 10 gigabytes.</p>
          80  +
    /// /* BuilderGenerator.kt:286 */<p>The total size of an item collection has exceeded the maximum limit of 10 gigabytes.</p>
          81  +
    /* BuilderGenerator.kt:291 */
   50     82   
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          83  +
        /* BuilderGenerator.kt:292 */
   51     84   
        self.message = ::std::option::Option::Some(input.into());
          85  +
        /* BuilderGenerator.kt:293 */
   52     86   
        self
          87  +
        /* BuilderGenerator.kt:291 */
   53     88   
    }
   54         -
    /// <p>The total size of an item collection has exceeded the maximum limit of 10 gigabytes.</p>
          89  +
    /// /* BuilderGenerator.kt:312 */<p>The total size of an item collection has exceeded the maximum limit of 10 gigabytes.</p>
          90  +
    /* BuilderGenerator.kt:314 */
   55     91   
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          92  +
        /* BuilderGenerator.kt:315 */
   56     93   
        self.message = input;
   57     94   
        self
          95  +
        /* BuilderGenerator.kt:314 */
   58     96   
    }
   59         -
    /// <p>The total size of an item collection has exceeded the maximum limit of 10 gigabytes.</p>
          97  +
    /// /* BuilderGenerator.kt:334 */<p>The total size of an item collection has exceeded the maximum limit of 10 gigabytes.</p>
          98  +
    /* BuilderGenerator.kt:336 */
   60     99   
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
         100  +
        /* BuilderGenerator.kt:337 */
   61    101   
        &self.message
         102  +
        /* BuilderGenerator.kt:336 */
   62    103   
    }
         104  +
    /* ErrorGenerator.kt:101 */
   63    105   
    /// Sets error metadata
   64    106   
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
   65    107   
        self.meta = Some(meta);
   66    108   
        self
   67    109   
    }
   68    110   
   69    111   
    /// Sets error metadata
   70    112   
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
   71    113   
        self.meta = meta;
   72    114   
        self
   73    115   
    }
   74         -
    /// Consumes the builder and constructs a [`ItemCollectionSizeLimitExceededError`](crate::types::error::ItemCollectionSizeLimitExceededError).
         116  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ItemCollectionSizeLimitExceededError`](crate::types::error::ItemCollectionSizeLimitExceededError).
         117  +
    /* BuilderGenerator.kt:253 */
   75    118   
    pub fn build(self) -> crate::types::error::ItemCollectionSizeLimitExceededError {
         119  +
        /* BuilderGenerator.kt:477 */
   76    120   
        crate::types::error::ItemCollectionSizeLimitExceededError {
   77         -
            message: self.message,
         121  +
            /* BuilderGenerator.kt:481 */ message: self.message,
         122  +
            /* ErrorGenerator.kt:120 */
   78    123   
            meta: self.meta.unwrap_or_default(),
         124  +
            /* BuilderGenerator.kt:477 */
   79    125   
        }
         126  +
        /* BuilderGenerator.kt:253 */
   80    127   
    }
         128  +
    /* BuilderGenerator.kt:355 */
   81    129   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/types/error/_limit_exceeded_exception.rs

@@ -1,1 +84,132 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>There is no limit to the number of daily on-demand backups that can be taken.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>There is no limit to the number of daily on-demand backups that can be taken.</p>
    4      4   
/// <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>
    5      5   
/// <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>
    6      6   
/// <p>There is a soft account quota of 256 tables.</p>
           7  +
/* RustType.kt:516 */
    7      8   
#[non_exhaustive]
           9  +
/* RustType.kt:516 */
    8     10   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    9         -
pub struct LimitExceededError {
   10         -
    /// <p>Too many operations for a given subscriber.</p>
          11  +
pub /* StructureGenerator.kt:201 */ struct LimitExceededError {
          12  +
    /// /* StructureGenerator.kt:231 */<p>Too many operations for a given subscriber.</p>
   11     13   
    pub message: ::std::option::Option<::std::string::String>,
   12         -
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          14  +
    /* ErrorGenerator.kt:53 */ pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          15  +
    /* StructureGenerator.kt:201 */
   13     16   
}
          17  +
/* ErrorImplGenerator.kt:99 */
   14     18   
impl LimitExceededError {
          19  +
    /* ErrorImplGenerator.kt:128 */
   15     20   
    /// Returns the error message.
   16     21   
    pub fn message(&self) -> ::std::option::Option<&str> {
   17     22   
        self.message.as_deref()
   18     23   
    }
          24  +
    /* ErrorImplGenerator.kt:99 */
   19     25   
}
          26  +
/* ErrorImplGenerator.kt:153 */
   20     27   
impl ::std::fmt::Display for LimitExceededError {
          28  +
    /* ErrorImplGenerator.kt:154 */
   21     29   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          30  +
        /* ErrorImplGenerator.kt:161 */
   22     31   
        ::std::write!(f, "LimitExceededError [LimitExceededException]")?;
          32  +
        /* ErrorImplGenerator.kt:166 */
   23     33   
        if let ::std::option::Option::Some(inner_1) = &self.message {
          34  +
            /* ErrorImplGenerator.kt:166 */
   24     35   
            {
          36  +
                /* ErrorImplGenerator.kt:167 */
   25     37   
                ::std::write!(f, ": {}", inner_1)?;
          38  +
                /* ErrorImplGenerator.kt:166 */
   26     39   
            }
          40  +
            /* ErrorImplGenerator.kt:166 */
   27     41   
        }
          42  +
        /* ErrorImplGenerator.kt:171 */
   28     43   
        Ok(())
          44  +
        /* ErrorImplGenerator.kt:154 */
   29     45   
    }
          46  +
    /* ErrorImplGenerator.kt:153 */
   30     47   
}
          48  +
/* ErrorImplGenerator.kt:175 */
   31     49   
impl ::std::error::Error for LimitExceededError {}
          50  +
/* ErrorGenerator.kt:77 */
   32     51   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for LimitExceededError {
          52  +
    /* ErrorGenerator.kt:78 */
   33     53   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
   34     54   
        &self.meta
   35     55   
    }
          56  +
    /* ErrorGenerator.kt:77 */
   36     57   
}
          58  +
/* ErrorGenerator.kt:81 */
   37     59   
impl LimitExceededError {
   38         -
    /// Creates a new builder-style object to manufacture [`LimitExceededError`](crate::types::error::LimitExceededError).
          60  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`LimitExceededError`](crate::types::error::LimitExceededError).
          61  +
    /* BuilderGenerator.kt:175 */
   39     62   
    pub fn builder() -> crate::types::error::builders::LimitExceededErrorBuilder {
          63  +
        /* BuilderGenerator.kt:176 */
   40     64   
        crate::types::error::builders::LimitExceededErrorBuilder::default()
          65  +
        /* BuilderGenerator.kt:175 */
   41     66   
    }
          67  +
    /* ErrorGenerator.kt:81 */
   42     68   
}
   43     69   
   44         -
/// A builder for [`LimitExceededError`](crate::types::error::LimitExceededError).
          70  +
/// /* BuilderGenerator.kt:342 */A builder for [`LimitExceededError`](crate::types::error::LimitExceededError).
          71  +
/* RustType.kt:516 */
   45     72   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          73  +
/* RustType.kt:516 */
   46     74   
#[non_exhaustive]
          75  +
/* BuilderGenerator.kt:345 */
   47     76   
pub struct LimitExceededErrorBuilder {
   48         -
    pub(crate) message: ::std::option::Option<::std::string::String>,
   49         -
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          77  +
    /* BuilderGenerator.kt:275 */ pub(crate) message: ::std::option::Option<::std::string::String>,
          78  +
    /* ErrorGenerator.kt:97 */ meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          79  +
    /* BuilderGenerator.kt:345 */
   50     80   
}
          81  +
/* BuilderGenerator.kt:355 */
   51     82   
impl LimitExceededErrorBuilder {
   52         -
    /// <p>Too many operations for a given subscriber.</p>
          83  +
    /// /* BuilderGenerator.kt:286 */<p>Too many operations for a given subscriber.</p>
          84  +
    /* BuilderGenerator.kt:291 */
   53     85   
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          86  +
        /* BuilderGenerator.kt:292 */
   54     87   
        self.message = ::std::option::Option::Some(input.into());
          88  +
        /* BuilderGenerator.kt:293 */
   55     89   
        self
          90  +
        /* BuilderGenerator.kt:291 */
   56     91   
    }
   57         -
    /// <p>Too many operations for a given subscriber.</p>
          92  +
    /// /* BuilderGenerator.kt:312 */<p>Too many operations for a given subscriber.</p>
          93  +
    /* BuilderGenerator.kt:314 */
   58     94   
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          95  +
        /* BuilderGenerator.kt:315 */
   59     96   
        self.message = input;
   60     97   
        self
          98  +
        /* BuilderGenerator.kt:314 */
   61     99   
    }
   62         -
    /// <p>Too many operations for a given subscriber.</p>
         100  +
    /// /* BuilderGenerator.kt:334 */<p>Too many operations for a given subscriber.</p>
         101  +
    /* BuilderGenerator.kt:336 */
   63    102   
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
         103  +
        /* BuilderGenerator.kt:337 */
   64    104   
        &self.message
         105  +
        /* BuilderGenerator.kt:336 */
   65    106   
    }
         107  +
    /* ErrorGenerator.kt:101 */
   66    108   
    /// Sets error metadata
   67    109   
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
   68    110   
        self.meta = Some(meta);
   69    111   
        self
   70    112   
    }
   71    113   
   72    114   
    /// Sets error metadata
   73    115   
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
   74    116   
        self.meta = meta;
   75    117   
        self
   76    118   
    }
   77         -
    /// Consumes the builder and constructs a [`LimitExceededError`](crate::types::error::LimitExceededError).
         119  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`LimitExceededError`](crate::types::error::LimitExceededError).
         120  +
    /* BuilderGenerator.kt:253 */
   78    121   
    pub fn build(self) -> crate::types::error::LimitExceededError {
         122  +
        /* BuilderGenerator.kt:477 */
   79    123   
        crate::types::error::LimitExceededError {
   80         -
            message: self.message,
         124  +
            /* BuilderGenerator.kt:481 */ message: self.message,
         125  +
            /* ErrorGenerator.kt:120 */
   81    126   
            meta: self.meta.unwrap_or_default(),
         127  +
            /* BuilderGenerator.kt:477 */
   82    128   
        }
         129  +
        /* BuilderGenerator.kt:253 */
   83    130   
    }
         131  +
    /* BuilderGenerator.kt:355 */
   84    132   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/types/error/_point_in_time_recovery_unavailable_exception.rs

@@ -1,1 +81,133 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>Point in time recovery has not yet been enabled for this source table.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>Point in time recovery has not yet been enabled for this source table.</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 PointInTimeRecoveryUnavailableError {
           8  +
pub /* StructureGenerator.kt:201 */ struct PointInTimeRecoveryUnavailableError {
           9  +
    /* StructureGenerator.kt:231 */
    7     10   
    #[allow(missing_docs)] // documentation missing in model
    8     11   
    pub message: ::std::option::Option<::std::string::String>,
    9         -
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          12  +
    /* ErrorGenerator.kt:53 */ pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          13  +
    /* StructureGenerator.kt:201 */
   10     14   
}
          15  +
/* ErrorImplGenerator.kt:99 */
   11     16   
impl PointInTimeRecoveryUnavailableError {
          17  +
    /* ErrorImplGenerator.kt:128 */
   12     18   
    /// Returns the error message.
   13     19   
    pub fn message(&self) -> ::std::option::Option<&str> {
   14     20   
        self.message.as_deref()
   15     21   
    }
          22  +
    /* ErrorImplGenerator.kt:99 */
   16     23   
}
          24  +
/* ErrorImplGenerator.kt:153 */
   17     25   
impl ::std::fmt::Display for PointInTimeRecoveryUnavailableError {
          26  +
    /* ErrorImplGenerator.kt:154 */
   18     27   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          28  +
        /* ErrorImplGenerator.kt:161 */
   19     29   
        ::std::write!(f, "PointInTimeRecoveryUnavailableError [PointInTimeRecoveryUnavailableException]")?;
          30  +
        /* ErrorImplGenerator.kt:166 */
   20     31   
        if let ::std::option::Option::Some(inner_1) = &self.message {
          32  +
            /* ErrorImplGenerator.kt:166 */
   21     33   
            {
          34  +
                /* ErrorImplGenerator.kt:167 */
   22     35   
                ::std::write!(f, ": {}", inner_1)?;
          36  +
                /* ErrorImplGenerator.kt:166 */
   23     37   
            }
          38  +
            /* ErrorImplGenerator.kt:166 */
   24     39   
        }
          40  +
        /* ErrorImplGenerator.kt:171 */
   25     41   
        Ok(())
          42  +
        /* ErrorImplGenerator.kt:154 */
   26     43   
    }
          44  +
    /* ErrorImplGenerator.kt:153 */
   27     45   
}
          46  +
/* ErrorImplGenerator.kt:175 */
   28     47   
impl ::std::error::Error for PointInTimeRecoveryUnavailableError {}
          48  +
/* ErrorGenerator.kt:77 */
   29     49   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for PointInTimeRecoveryUnavailableError {
          50  +
    /* ErrorGenerator.kt:78 */
   30     51   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
   31     52   
        &self.meta
   32     53   
    }
          54  +
    /* ErrorGenerator.kt:77 */
   33     55   
}
          56  +
/* ErrorGenerator.kt:81 */
   34     57   
impl PointInTimeRecoveryUnavailableError {
   35         -
    /// Creates a new builder-style object to manufacture [`PointInTimeRecoveryUnavailableError`](crate::types::error::PointInTimeRecoveryUnavailableError).
          58  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`PointInTimeRecoveryUnavailableError`](crate::types::error::PointInTimeRecoveryUnavailableError).
          59  +
    /* BuilderGenerator.kt:175 */
   36     60   
    pub fn builder() -> crate::types::error::builders::PointInTimeRecoveryUnavailableErrorBuilder {
          61  +
        /* BuilderGenerator.kt:176 */
   37     62   
        crate::types::error::builders::PointInTimeRecoveryUnavailableErrorBuilder::default()
          63  +
        /* BuilderGenerator.kt:175 */
   38     64   
    }
          65  +
    /* ErrorGenerator.kt:81 */
   39     66   
}
   40     67   
   41         -
/// A builder for [`PointInTimeRecoveryUnavailableError`](crate::types::error::PointInTimeRecoveryUnavailableError).
          68  +
/// /* BuilderGenerator.kt:342 */A builder for [`PointInTimeRecoveryUnavailableError`](crate::types::error::PointInTimeRecoveryUnavailableError).
          69  +
/* RustType.kt:516 */
   42     70   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          71  +
/* RustType.kt:516 */
   43     72   
#[non_exhaustive]
          73  +
/* BuilderGenerator.kt:345 */
   44     74   
pub struct PointInTimeRecoveryUnavailableErrorBuilder {
   45         -
    pub(crate) message: ::std::option::Option<::std::string::String>,
   46         -
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          75  +
    /* BuilderGenerator.kt:275 */ pub(crate) message: ::std::option::Option<::std::string::String>,
          76  +
    /* ErrorGenerator.kt:97 */ meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          77  +
    /* BuilderGenerator.kt:345 */
   47     78   
}
          79  +
/* BuilderGenerator.kt:355 */
   48     80   
impl PointInTimeRecoveryUnavailableErrorBuilder {
          81  +
    /* BuilderGenerator.kt:286 */
   49     82   
    #[allow(missing_docs)] // documentation missing in model
          83  +
                           /* BuilderGenerator.kt:291 */
   50     84   
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          85  +
        /* BuilderGenerator.kt:292 */
   51     86   
        self.message = ::std::option::Option::Some(input.into());
          87  +
        /* BuilderGenerator.kt:293 */
   52     88   
        self
          89  +
        /* BuilderGenerator.kt:291 */
   53     90   
    }
          91  +
    /* BuilderGenerator.kt:312 */
   54     92   
    #[allow(missing_docs)] // documentation missing in model
          93  +
                           /* BuilderGenerator.kt:314 */
   55     94   
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          95  +
        /* BuilderGenerator.kt:315 */
   56     96   
        self.message = input;
   57     97   
        self
          98  +
        /* BuilderGenerator.kt:314 */
   58     99   
    }
         100  +
    /* BuilderGenerator.kt:334 */
   59    101   
    #[allow(missing_docs)] // documentation missing in model
         102  +
                           /* BuilderGenerator.kt:336 */
   60    103   
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
         104  +
        /* BuilderGenerator.kt:337 */
   61    105   
        &self.message
         106  +
        /* BuilderGenerator.kt:336 */
   62    107   
    }
         108  +
    /* ErrorGenerator.kt:101 */
   63    109   
    /// Sets error metadata
   64    110   
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
   65    111   
        self.meta = Some(meta);
   66    112   
        self
   67    113   
    }
   68    114   
   69    115   
    /// Sets error metadata
   70    116   
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
   71    117   
        self.meta = meta;
   72    118   
        self
   73    119   
    }
   74         -
    /// Consumes the builder and constructs a [`PointInTimeRecoveryUnavailableError`](crate::types::error::PointInTimeRecoveryUnavailableError).
         120  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`PointInTimeRecoveryUnavailableError`](crate::types::error::PointInTimeRecoveryUnavailableError).
         121  +
    /* BuilderGenerator.kt:253 */
   75    122   
    pub fn build(self) -> crate::types::error::PointInTimeRecoveryUnavailableError {
         123  +
        /* BuilderGenerator.kt:477 */
   76    124   
        crate::types::error::PointInTimeRecoveryUnavailableError {
   77         -
            message: self.message,
         125  +
            /* BuilderGenerator.kt:481 */ message: self.message,
         126  +
            /* ErrorGenerator.kt:120 */
   78    127   
            meta: self.meta.unwrap_or_default(),
         128  +
            /* BuilderGenerator.kt:477 */
   79    129   
        }
         130  +
        /* BuilderGenerator.kt:253 */
   80    131   
    }
         132  +
    /* BuilderGenerator.kt:355 */
   81    133   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/types/error/_provisioned_throughput_exceeded_exception.rs

@@ -1,1 +81,129 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>Your request rate is too high. The AWS SDKs for DynamoDB automatically retry requests that receive this exception. Your request is eventually successful, unless your retry queue is too large to finish. Reduce the frequency of requests and use exponential backoff. For more information, go to <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff">Error Retries and Exponential Backoff</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>Your request rate is too high. The AWS SDKs for DynamoDB automatically retry requests that receive this exception. Your request is eventually successful, unless your retry queue is too large to finish. Reduce the frequency of requests and use exponential backoff. For more information, go to <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff">Error Retries and Exponential Backoff</a> in the <i>Amazon DynamoDB Developer Guide</i>.</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 ProvisionedThroughputExceededError {
    7         -
    /// <p>You exceeded your maximum allowed provisioned throughput.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct ProvisionedThroughputExceededError {
           9  +
    /// /* StructureGenerator.kt:231 */<p>You exceeded your maximum allowed provisioned throughput.</p>
    8     10   
    pub message: ::std::option::Option<::std::string::String>,
    9         -
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          11  +
    /* ErrorGenerator.kt:53 */ pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          12  +
    /* StructureGenerator.kt:201 */
   10     13   
}
          14  +
/* ErrorImplGenerator.kt:99 */
   11     15   
impl ProvisionedThroughputExceededError {
          16  +
    /* ErrorImplGenerator.kt:128 */
   12     17   
    /// Returns the error message.
   13     18   
    pub fn message(&self) -> ::std::option::Option<&str> {
   14     19   
        self.message.as_deref()
   15     20   
    }
          21  +
    /* ErrorImplGenerator.kt:99 */
   16     22   
}
          23  +
/* ErrorImplGenerator.kt:153 */
   17     24   
impl ::std::fmt::Display for ProvisionedThroughputExceededError {
          25  +
    /* ErrorImplGenerator.kt:154 */
   18     26   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          27  +
        /* ErrorImplGenerator.kt:161 */
   19     28   
        ::std::write!(f, "ProvisionedThroughputExceededError [ProvisionedThroughputExceededException]")?;
          29  +
        /* ErrorImplGenerator.kt:166 */
   20     30   
        if let ::std::option::Option::Some(inner_1) = &self.message {
          31  +
            /* ErrorImplGenerator.kt:166 */
   21     32   
            {
          33  +
                /* ErrorImplGenerator.kt:167 */
   22     34   
                ::std::write!(f, ": {}", inner_1)?;
          35  +
                /* ErrorImplGenerator.kt:166 */
   23     36   
            }
          37  +
            /* ErrorImplGenerator.kt:166 */
   24     38   
        }
          39  +
        /* ErrorImplGenerator.kt:171 */
   25     40   
        Ok(())
          41  +
        /* ErrorImplGenerator.kt:154 */
   26     42   
    }
          43  +
    /* ErrorImplGenerator.kt:153 */
   27     44   
}
          45  +
/* ErrorImplGenerator.kt:175 */
   28     46   
impl ::std::error::Error for ProvisionedThroughputExceededError {}
          47  +
/* ErrorGenerator.kt:77 */
   29     48   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for ProvisionedThroughputExceededError {
          49  +
    /* ErrorGenerator.kt:78 */
   30     50   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
   31     51   
        &self.meta
   32     52   
    }
          53  +
    /* ErrorGenerator.kt:77 */
   33     54   
}
          55  +
/* ErrorGenerator.kt:81 */
   34     56   
impl ProvisionedThroughputExceededError {
   35         -
    /// Creates a new builder-style object to manufacture [`ProvisionedThroughputExceededError`](crate::types::error::ProvisionedThroughputExceededError).
          57  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ProvisionedThroughputExceededError`](crate::types::error::ProvisionedThroughputExceededError).
          58  +
    /* BuilderGenerator.kt:175 */
   36     59   
    pub fn builder() -> crate::types::error::builders::ProvisionedThroughputExceededErrorBuilder {
          60  +
        /* BuilderGenerator.kt:176 */
   37     61   
        crate::types::error::builders::ProvisionedThroughputExceededErrorBuilder::default()
          62  +
        /* BuilderGenerator.kt:175 */
   38     63   
    }
          64  +
    /* ErrorGenerator.kt:81 */
   39     65   
}
   40     66   
   41         -
/// A builder for [`ProvisionedThroughputExceededError`](crate::types::error::ProvisionedThroughputExceededError).
          67  +
/// /* BuilderGenerator.kt:342 */A builder for [`ProvisionedThroughputExceededError`](crate::types::error::ProvisionedThroughputExceededError).
          68  +
/* RustType.kt:516 */
   42     69   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          70  +
/* RustType.kt:516 */
   43     71   
#[non_exhaustive]
          72  +
/* BuilderGenerator.kt:345 */
   44     73   
pub struct ProvisionedThroughputExceededErrorBuilder {
   45         -
    pub(crate) message: ::std::option::Option<::std::string::String>,
   46         -
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          74  +
    /* BuilderGenerator.kt:275 */ pub(crate) message: ::std::option::Option<::std::string::String>,
          75  +
    /* ErrorGenerator.kt:97 */ meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          76  +
    /* BuilderGenerator.kt:345 */
   47     77   
}
          78  +
/* BuilderGenerator.kt:355 */
   48     79   
impl ProvisionedThroughputExceededErrorBuilder {
   49         -
    /// <p>You exceeded your maximum allowed provisioned throughput.</p>
          80  +
    /// /* BuilderGenerator.kt:286 */<p>You exceeded your maximum allowed provisioned throughput.</p>
          81  +
    /* BuilderGenerator.kt:291 */
   50     82   
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          83  +
        /* BuilderGenerator.kt:292 */
   51     84   
        self.message = ::std::option::Option::Some(input.into());
          85  +
        /* BuilderGenerator.kt:293 */
   52     86   
        self
          87  +
        /* BuilderGenerator.kt:291 */
   53     88   
    }
   54         -
    /// <p>You exceeded your maximum allowed provisioned throughput.</p>
          89  +
    /// /* BuilderGenerator.kt:312 */<p>You exceeded your maximum allowed provisioned throughput.</p>
          90  +
    /* BuilderGenerator.kt:314 */
   55     91   
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          92  +
        /* BuilderGenerator.kt:315 */
   56     93   
        self.message = input;
   57     94   
        self
          95  +
        /* BuilderGenerator.kt:314 */
   58     96   
    }
   59         -
    /// <p>You exceeded your maximum allowed provisioned throughput.</p>
          97  +
    /// /* BuilderGenerator.kt:334 */<p>You exceeded your maximum allowed provisioned throughput.</p>
          98  +
    /* BuilderGenerator.kt:336 */
   60     99   
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
         100  +
        /* BuilderGenerator.kt:337 */
   61    101   
        &self.message
         102  +
        /* BuilderGenerator.kt:336 */
   62    103   
    }
         104  +
    /* ErrorGenerator.kt:101 */
   63    105   
    /// Sets error metadata
   64    106   
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
   65    107   
        self.meta = Some(meta);
   66    108   
        self
   67    109   
    }
   68    110   
   69    111   
    /// Sets error metadata
   70    112   
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
   71    113   
        self.meta = meta;
   72    114   
        self
   73    115   
    }
   74         -
    /// Consumes the builder and constructs a [`ProvisionedThroughputExceededError`](crate::types::error::ProvisionedThroughputExceededError).
         116  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ProvisionedThroughputExceededError`](crate::types::error::ProvisionedThroughputExceededError).
         117  +
    /* BuilderGenerator.kt:253 */
   75    118   
    pub fn build(self) -> crate::types::error::ProvisionedThroughputExceededError {
         119  +
        /* BuilderGenerator.kt:477 */
   76    120   
        crate::types::error::ProvisionedThroughputExceededError {
   77         -
            message: self.message,
         121  +
            /* BuilderGenerator.kt:481 */ message: self.message,
         122  +
            /* ErrorGenerator.kt:120 */
   78    123   
            meta: self.meta.unwrap_or_default(),
         124  +
            /* BuilderGenerator.kt:477 */
   79    125   
        }
         126  +
        /* BuilderGenerator.kt:253 */
   80    127   
    }
         128  +
    /* BuilderGenerator.kt:355 */
   81    129   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/types/error/_replica_already_exists_exception.rs

@@ -1,1 +81,133 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>The specified replica is already part of the global table.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>The specified replica is already part of the global table.</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 ReplicaAlreadyExistsError {
           8  +
pub /* StructureGenerator.kt:201 */ struct ReplicaAlreadyExistsError {
           9  +
    /* StructureGenerator.kt:231 */
    7     10   
    #[allow(missing_docs)] // documentation missing in model
    8     11   
    pub message: ::std::option::Option<::std::string::String>,
    9         -
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          12  +
    /* ErrorGenerator.kt:53 */ pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          13  +
    /* StructureGenerator.kt:201 */
   10     14   
}
          15  +
/* ErrorImplGenerator.kt:99 */
   11     16   
impl ReplicaAlreadyExistsError {
          17  +
    /* ErrorImplGenerator.kt:128 */
   12     18   
    /// Returns the error message.
   13     19   
    pub fn message(&self) -> ::std::option::Option<&str> {
   14     20   
        self.message.as_deref()
   15     21   
    }
          22  +
    /* ErrorImplGenerator.kt:99 */
   16     23   
}
          24  +
/* ErrorImplGenerator.kt:153 */
   17     25   
impl ::std::fmt::Display for ReplicaAlreadyExistsError {
          26  +
    /* ErrorImplGenerator.kt:154 */
   18     27   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          28  +
        /* ErrorImplGenerator.kt:161 */
   19     29   
        ::std::write!(f, "ReplicaAlreadyExistsError [ReplicaAlreadyExistsException]")?;
          30  +
        /* ErrorImplGenerator.kt:166 */
   20     31   
        if let ::std::option::Option::Some(inner_1) = &self.message {
          32  +
            /* ErrorImplGenerator.kt:166 */
   21     33   
            {
          34  +
                /* ErrorImplGenerator.kt:167 */
   22     35   
                ::std::write!(f, ": {}", inner_1)?;
          36  +
                /* ErrorImplGenerator.kt:166 */
   23     37   
            }
          38  +
            /* ErrorImplGenerator.kt:166 */
   24     39   
        }
          40  +
        /* ErrorImplGenerator.kt:171 */
   25     41   
        Ok(())
          42  +
        /* ErrorImplGenerator.kt:154 */
   26     43   
    }
          44  +
    /* ErrorImplGenerator.kt:153 */
   27     45   
}
          46  +
/* ErrorImplGenerator.kt:175 */
   28     47   
impl ::std::error::Error for ReplicaAlreadyExistsError {}
          48  +
/* ErrorGenerator.kt:77 */
   29     49   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for ReplicaAlreadyExistsError {
          50  +
    /* ErrorGenerator.kt:78 */
   30     51   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
   31     52   
        &self.meta
   32     53   
    }
          54  +
    /* ErrorGenerator.kt:77 */
   33     55   
}
          56  +
/* ErrorGenerator.kt:81 */
   34     57   
impl ReplicaAlreadyExistsError {
   35         -
    /// Creates a new builder-style object to manufacture [`ReplicaAlreadyExistsError`](crate::types::error::ReplicaAlreadyExistsError).
          58  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ReplicaAlreadyExistsError`](crate::types::error::ReplicaAlreadyExistsError).
          59  +
    /* BuilderGenerator.kt:175 */
   36     60   
    pub fn builder() -> crate::types::error::builders::ReplicaAlreadyExistsErrorBuilder {
          61  +
        /* BuilderGenerator.kt:176 */
   37     62   
        crate::types::error::builders::ReplicaAlreadyExistsErrorBuilder::default()
          63  +
        /* BuilderGenerator.kt:175 */
   38     64   
    }
          65  +
    /* ErrorGenerator.kt:81 */
   39     66   
}
   40     67   
   41         -
/// A builder for [`ReplicaAlreadyExistsError`](crate::types::error::ReplicaAlreadyExistsError).
          68  +
/// /* BuilderGenerator.kt:342 */A builder for [`ReplicaAlreadyExistsError`](crate::types::error::ReplicaAlreadyExistsError).
          69  +
/* RustType.kt:516 */
   42     70   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          71  +
/* RustType.kt:516 */
   43     72   
#[non_exhaustive]
          73  +
/* BuilderGenerator.kt:345 */
   44     74   
pub struct ReplicaAlreadyExistsErrorBuilder {
   45         -
    pub(crate) message: ::std::option::Option<::std::string::String>,
   46         -
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          75  +
    /* BuilderGenerator.kt:275 */ pub(crate) message: ::std::option::Option<::std::string::String>,
          76  +
    /* ErrorGenerator.kt:97 */ meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          77  +
    /* BuilderGenerator.kt:345 */
   47     78   
}
          79  +
/* BuilderGenerator.kt:355 */
   48     80   
impl ReplicaAlreadyExistsErrorBuilder {
          81  +
    /* BuilderGenerator.kt:286 */
   49     82   
    #[allow(missing_docs)] // documentation missing in model
          83  +
                           /* BuilderGenerator.kt:291 */
   50     84   
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          85  +
        /* BuilderGenerator.kt:292 */
   51     86   
        self.message = ::std::option::Option::Some(input.into());
          87  +
        /* BuilderGenerator.kt:293 */
   52     88   
        self
          89  +
        /* BuilderGenerator.kt:291 */
   53     90   
    }
          91  +
    /* BuilderGenerator.kt:312 */
   54     92   
    #[allow(missing_docs)] // documentation missing in model
          93  +
                           /* BuilderGenerator.kt:314 */
   55     94   
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          95  +
        /* BuilderGenerator.kt:315 */
   56     96   
        self.message = input;
   57     97   
        self
          98  +
        /* BuilderGenerator.kt:314 */
   58     99   
    }
         100  +
    /* BuilderGenerator.kt:334 */
   59    101   
    #[allow(missing_docs)] // documentation missing in model
         102  +
                           /* BuilderGenerator.kt:336 */
   60    103   
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
         104  +
        /* BuilderGenerator.kt:337 */
   61    105   
        &self.message
         106  +
        /* BuilderGenerator.kt:336 */
   62    107   
    }
         108  +
    /* ErrorGenerator.kt:101 */
   63    109   
    /// Sets error metadata
   64    110   
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
   65    111   
        self.meta = Some(meta);
   66    112   
        self
   67    113   
    }
   68    114   
   69    115   
    /// Sets error metadata
   70    116   
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
   71    117   
        self.meta = meta;
   72    118   
        self
   73    119   
    }
   74         -
    /// Consumes the builder and constructs a [`ReplicaAlreadyExistsError`](crate::types::error::ReplicaAlreadyExistsError).
         120  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ReplicaAlreadyExistsError`](crate::types::error::ReplicaAlreadyExistsError).
         121  +
    /* BuilderGenerator.kt:253 */
   75    122   
    pub fn build(self) -> crate::types::error::ReplicaAlreadyExistsError {
         123  +
        /* BuilderGenerator.kt:477 */
   76    124   
        crate::types::error::ReplicaAlreadyExistsError {
   77         -
            message: self.message,
         125  +
            /* BuilderGenerator.kt:481 */ message: self.message,
         126  +
            /* ErrorGenerator.kt:120 */
   78    127   
            meta: self.meta.unwrap_or_default(),
         128  +
            /* BuilderGenerator.kt:477 */
   79    129   
        }
         130  +
        /* BuilderGenerator.kt:253 */
   80    131   
    }
         132  +
    /* BuilderGenerator.kt:355 */
   81    133   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/types/error/_replica_not_found_exception.rs

@@ -1,1 +81,133 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>The specified replica is no longer part of the global table.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>The specified replica is no longer part of the global table.</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 ReplicaNotFoundError {
           8  +
pub /* StructureGenerator.kt:201 */ struct ReplicaNotFoundError {
           9  +
    /* StructureGenerator.kt:231 */
    7     10   
    #[allow(missing_docs)] // documentation missing in model
    8     11   
    pub message: ::std::option::Option<::std::string::String>,
    9         -
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          12  +
    /* ErrorGenerator.kt:53 */ pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          13  +
    /* StructureGenerator.kt:201 */
   10     14   
}
          15  +
/* ErrorImplGenerator.kt:99 */
   11     16   
impl ReplicaNotFoundError {
          17  +
    /* ErrorImplGenerator.kt:128 */
   12     18   
    /// Returns the error message.
   13     19   
    pub fn message(&self) -> ::std::option::Option<&str> {
   14     20   
        self.message.as_deref()
   15     21   
    }
          22  +
    /* ErrorImplGenerator.kt:99 */
   16     23   
}
          24  +
/* ErrorImplGenerator.kt:153 */
   17     25   
impl ::std::fmt::Display for ReplicaNotFoundError {
          26  +
    /* ErrorImplGenerator.kt:154 */
   18     27   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          28  +
        /* ErrorImplGenerator.kt:161 */
   19     29   
        ::std::write!(f, "ReplicaNotFoundError [ReplicaNotFoundException]")?;
          30  +
        /* ErrorImplGenerator.kt:166 */
   20     31   
        if let ::std::option::Option::Some(inner_1) = &self.message {
          32  +
            /* ErrorImplGenerator.kt:166 */
   21     33   
            {
          34  +
                /* ErrorImplGenerator.kt:167 */
   22     35   
                ::std::write!(f, ": {}", inner_1)?;
          36  +
                /* ErrorImplGenerator.kt:166 */
   23     37   
            }
          38  +
            /* ErrorImplGenerator.kt:166 */
   24     39   
        }
          40  +
        /* ErrorImplGenerator.kt:171 */
   25     41   
        Ok(())
          42  +
        /* ErrorImplGenerator.kt:154 */
   26     43   
    }
          44  +
    /* ErrorImplGenerator.kt:153 */
   27     45   
}
          46  +
/* ErrorImplGenerator.kt:175 */
   28     47   
impl ::std::error::Error for ReplicaNotFoundError {}
          48  +
/* ErrorGenerator.kt:77 */
   29     49   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for ReplicaNotFoundError {
          50  +
    /* ErrorGenerator.kt:78 */
   30     51   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
   31     52   
        &self.meta
   32     53   
    }
          54  +
    /* ErrorGenerator.kt:77 */
   33     55   
}
          56  +
/* ErrorGenerator.kt:81 */
   34     57   
impl ReplicaNotFoundError {
   35         -
    /// Creates a new builder-style object to manufacture [`ReplicaNotFoundError`](crate::types::error::ReplicaNotFoundError).
          58  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ReplicaNotFoundError`](crate::types::error::ReplicaNotFoundError).
          59  +
    /* BuilderGenerator.kt:175 */
   36     60   
    pub fn builder() -> crate::types::error::builders::ReplicaNotFoundErrorBuilder {
          61  +
        /* BuilderGenerator.kt:176 */
   37     62   
        crate::types::error::builders::ReplicaNotFoundErrorBuilder::default()
          63  +
        /* BuilderGenerator.kt:175 */
   38     64   
    }
          65  +
    /* ErrorGenerator.kt:81 */
   39     66   
}
   40     67   
   41         -
/// A builder for [`ReplicaNotFoundError`](crate::types::error::ReplicaNotFoundError).
          68  +
/// /* BuilderGenerator.kt:342 */A builder for [`ReplicaNotFoundError`](crate::types::error::ReplicaNotFoundError).
          69  +
/* RustType.kt:516 */
   42     70   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          71  +
/* RustType.kt:516 */
   43     72   
#[non_exhaustive]
          73  +
/* BuilderGenerator.kt:345 */
   44     74   
pub struct ReplicaNotFoundErrorBuilder {
   45         -
    pub(crate) message: ::std::option::Option<::std::string::String>,
   46         -
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          75  +
    /* BuilderGenerator.kt:275 */ pub(crate) message: ::std::option::Option<::std::string::String>,
          76  +
    /* ErrorGenerator.kt:97 */ meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          77  +
    /* BuilderGenerator.kt:345 */
   47     78   
}
          79  +
/* BuilderGenerator.kt:355 */
   48     80   
impl ReplicaNotFoundErrorBuilder {
          81  +
    /* BuilderGenerator.kt:286 */
   49     82   
    #[allow(missing_docs)] // documentation missing in model
          83  +
                           /* BuilderGenerator.kt:291 */
   50     84   
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          85  +
        /* BuilderGenerator.kt:292 */
   51     86   
        self.message = ::std::option::Option::Some(input.into());
          87  +
        /* BuilderGenerator.kt:293 */
   52     88   
        self
          89  +
        /* BuilderGenerator.kt:291 */
   53     90   
    }
          91  +
    /* BuilderGenerator.kt:312 */
   54     92   
    #[allow(missing_docs)] // documentation missing in model
          93  +
                           /* BuilderGenerator.kt:314 */
   55     94   
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          95  +
        /* BuilderGenerator.kt:315 */
   56     96   
        self.message = input;
   57     97   
        self
          98  +
        /* BuilderGenerator.kt:314 */
   58     99   
    }
         100  +
    /* BuilderGenerator.kt:334 */
   59    101   
    #[allow(missing_docs)] // documentation missing in model
         102  +
                           /* BuilderGenerator.kt:336 */
   60    103   
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
         104  +
        /* BuilderGenerator.kt:337 */
   61    105   
        &self.message
         106  +
        /* BuilderGenerator.kt:336 */
   62    107   
    }
         108  +
    /* ErrorGenerator.kt:101 */
   63    109   
    /// Sets error metadata
   64    110   
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
   65    111   
        self.meta = Some(meta);
   66    112   
        self
   67    113   
    }
   68    114   
   69    115   
    /// Sets error metadata
   70    116   
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
   71    117   
        self.meta = meta;
   72    118   
        self
   73    119   
    }
   74         -
    /// Consumes the builder and constructs a [`ReplicaNotFoundError`](crate::types::error::ReplicaNotFoundError).
         120  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ReplicaNotFoundError`](crate::types::error::ReplicaNotFoundError).
         121  +
    /* BuilderGenerator.kt:253 */
   75    122   
    pub fn build(self) -> crate::types::error::ReplicaNotFoundError {
         123  +
        /* BuilderGenerator.kt:477 */
   76    124   
        crate::types::error::ReplicaNotFoundError {
   77         -
            message: self.message,
         125  +
            /* BuilderGenerator.kt:481 */ message: self.message,
         126  +
            /* ErrorGenerator.kt:120 */
   78    127   
            meta: self.meta.unwrap_or_default(),
         128  +
            /* BuilderGenerator.kt:477 */
   79    129   
        }
         130  +
        /* BuilderGenerator.kt:253 */
   80    131   
    }
         132  +
    /* BuilderGenerator.kt:355 */
   81    133   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/types/error/_request_limit_exceeded.rs

@@ -1,1 +81,133 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>Throughput exceeds the current throughput quota for your account. Please contact AWS Support at <a href="https://aws.amazon.com/support">AWS Support</a> to request a quota increase.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>Throughput exceeds the current throughput quota for your account. Please contact AWS Support at <a href="https://aws.amazon.com/support">AWS Support</a> to request a quota increase.</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 RequestLimitExceeded {
           8  +
pub /* StructureGenerator.kt:201 */ struct RequestLimitExceeded {
           9  +
    /* StructureGenerator.kt:231 */
    7     10   
    #[allow(missing_docs)] // documentation missing in model
    8     11   
    pub message: ::std::option::Option<::std::string::String>,
    9         -
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          12  +
    /* ErrorGenerator.kt:53 */ pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          13  +
    /* StructureGenerator.kt:201 */
   10     14   
}
          15  +
/* ErrorImplGenerator.kt:99 */
   11     16   
impl RequestLimitExceeded {
          17  +
    /* ErrorImplGenerator.kt:128 */
   12     18   
    /// Returns the error message.
   13     19   
    pub fn message(&self) -> ::std::option::Option<&str> {
   14     20   
        self.message.as_deref()
   15     21   
    }
          22  +
    /* ErrorImplGenerator.kt:99 */
   16     23   
}
          24  +
/* ErrorImplGenerator.kt:153 */
   17     25   
impl ::std::fmt::Display for RequestLimitExceeded {
          26  +
    /* ErrorImplGenerator.kt:154 */
   18     27   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          28  +
        /* ErrorImplGenerator.kt:161 */
   19     29   
        ::std::write!(f, "RequestLimitExceeded")?;
          30  +
        /* ErrorImplGenerator.kt:166 */
   20     31   
        if let ::std::option::Option::Some(inner_1) = &self.message {
          32  +
            /* ErrorImplGenerator.kt:166 */
   21     33   
            {
          34  +
                /* ErrorImplGenerator.kt:167 */
   22     35   
                ::std::write!(f, ": {}", inner_1)?;
          36  +
                /* ErrorImplGenerator.kt:166 */
   23     37   
            }
          38  +
            /* ErrorImplGenerator.kt:166 */
   24     39   
        }
          40  +
        /* ErrorImplGenerator.kt:171 */
   25     41   
        Ok(())
          42  +
        /* ErrorImplGenerator.kt:154 */
   26     43   
    }
          44  +
    /* ErrorImplGenerator.kt:153 */
   27     45   
}
          46  +
/* ErrorImplGenerator.kt:175 */
   28     47   
impl ::std::error::Error for RequestLimitExceeded {}
          48  +
/* ErrorGenerator.kt:77 */
   29     49   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for RequestLimitExceeded {
          50  +
    /* ErrorGenerator.kt:78 */
   30     51   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
   31     52   
        &self.meta
   32     53   
    }
          54  +
    /* ErrorGenerator.kt:77 */
   33     55   
}
          56  +
/* ErrorGenerator.kt:81 */
   34     57   
impl RequestLimitExceeded {
   35         -
    /// Creates a new builder-style object to manufacture [`RequestLimitExceeded`](crate::types::error::RequestLimitExceeded).
          58  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`RequestLimitExceeded`](crate::types::error::RequestLimitExceeded).
          59  +
    /* BuilderGenerator.kt:175 */
   36     60   
    pub fn builder() -> crate::types::error::builders::RequestLimitExceededBuilder {
          61  +
        /* BuilderGenerator.kt:176 */
   37     62   
        crate::types::error::builders::RequestLimitExceededBuilder::default()
          63  +
        /* BuilderGenerator.kt:175 */
   38     64   
    }
          65  +
    /* ErrorGenerator.kt:81 */
   39     66   
}
   40     67   
   41         -
/// A builder for [`RequestLimitExceeded`](crate::types::error::RequestLimitExceeded).
          68  +
/// /* BuilderGenerator.kt:342 */A builder for [`RequestLimitExceeded`](crate::types::error::RequestLimitExceeded).
          69  +
/* RustType.kt:516 */
   42     70   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          71  +
/* RustType.kt:516 */
   43     72   
#[non_exhaustive]
          73  +
/* BuilderGenerator.kt:345 */
   44     74   
pub struct RequestLimitExceededBuilder {
   45         -
    pub(crate) message: ::std::option::Option<::std::string::String>,
   46         -
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          75  +
    /* BuilderGenerator.kt:275 */ pub(crate) message: ::std::option::Option<::std::string::String>,
          76  +
    /* ErrorGenerator.kt:97 */ meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          77  +
    /* BuilderGenerator.kt:345 */
   47     78   
}
          79  +
/* BuilderGenerator.kt:355 */
   48     80   
impl RequestLimitExceededBuilder {
          81  +
    /* BuilderGenerator.kt:286 */
   49     82   
    #[allow(missing_docs)] // documentation missing in model
          83  +
                           /* BuilderGenerator.kt:291 */
   50     84   
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          85  +
        /* BuilderGenerator.kt:292 */
   51     86   
        self.message = ::std::option::Option::Some(input.into());
          87  +
        /* BuilderGenerator.kt:293 */
   52     88   
        self
          89  +
        /* BuilderGenerator.kt:291 */
   53     90   
    }
          91  +
    /* BuilderGenerator.kt:312 */
   54     92   
    #[allow(missing_docs)] // documentation missing in model
          93  +
                           /* BuilderGenerator.kt:314 */
   55     94   
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          95  +
        /* BuilderGenerator.kt:315 */
   56     96   
        self.message = input;
   57     97   
        self
          98  +
        /* BuilderGenerator.kt:314 */
   58     99   
    }
         100  +
    /* BuilderGenerator.kt:334 */
   59    101   
    #[allow(missing_docs)] // documentation missing in model
         102  +
                           /* BuilderGenerator.kt:336 */
   60    103   
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
         104  +
        /* BuilderGenerator.kt:337 */
   61    105   
        &self.message
         106  +
        /* BuilderGenerator.kt:336 */
   62    107   
    }
         108  +
    /* ErrorGenerator.kt:101 */
   63    109   
    /// Sets error metadata
   64    110   
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
   65    111   
        self.meta = Some(meta);
   66    112   
        self
   67    113   
    }
   68    114   
   69    115   
    /// Sets error metadata
   70    116   
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
   71    117   
        self.meta = meta;
   72    118   
        self
   73    119   
    }
   74         -
    /// Consumes the builder and constructs a [`RequestLimitExceeded`](crate::types::error::RequestLimitExceeded).
         120  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`RequestLimitExceeded`](crate::types::error::RequestLimitExceeded).
         121  +
    /* BuilderGenerator.kt:253 */
   75    122   
    pub fn build(self) -> crate::types::error::RequestLimitExceeded {
         123  +
        /* BuilderGenerator.kt:477 */
   76    124   
        crate::types::error::RequestLimitExceeded {
   77         -
            message: self.message,
         125  +
            /* BuilderGenerator.kt:481 */ message: self.message,
         126  +
            /* ErrorGenerator.kt:120 */
   78    127   
            meta: self.meta.unwrap_or_default(),
         128  +
            /* BuilderGenerator.kt:477 */
   79    129   
        }
         130  +
        /* BuilderGenerator.kt:253 */
   80    131   
    }
         132  +
    /* BuilderGenerator.kt:355 */
   81    133   
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/types/error/_resource_in_use_exception.rs

@@ -1,1 +81,129 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <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>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<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>
           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 ResourceInUseError {
    7         -
    /// <p>The resource which is being attempted to be changed is in use.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct ResourceInUseError {
           9  +
    /// /* StructureGenerator.kt:231 */<p>The resource which is being attempted to be changed is in use.</p>
    8     10   
    pub message: ::std::option::Option<::std::string::String>,
    9         -
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          11  +
    /* ErrorGenerator.kt:53 */ pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          12  +
    /* StructureGenerator.kt:201 */
   10     13   
}
          14  +
/* ErrorImplGenerator.kt:99 */
   11     15   
impl ResourceInUseError {
          16  +
    /* ErrorImplGenerator.kt:128 */
   12     17   
    /// Returns the error message.
   13     18   
    pub fn message(&self) -> ::std::option::Option<&str> {
   14     19   
        self.message.as_deref()
   15     20   
    }
          21  +
    /* ErrorImplGenerator.kt:99 */
   16     22   
}
          23  +
/* ErrorImplGenerator.kt:153 */
   17     24   
impl ::std::fmt::Display for ResourceInUseError {
          25  +
    /* ErrorImplGenerator.kt:154 */
   18     26   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          27  +
        /* ErrorImplGenerator.kt:161 */
   19     28   
        ::std::write!(f, "ResourceInUseError [ResourceInUseException]")?;
          29  +
        /* ErrorImplGenerator.kt:166 */
   20     30   
        if let ::std::option::Option::Some(inner_1) = &self.message {
          31  +
            /* ErrorImplGenerator.kt:166 */
   21     32   
            {
          33  +
                /* ErrorImplGenerator.kt:167 */
   22     34   
                ::std::write!(f, ": {}", inner_1)?;
          35  +
                /* ErrorImplGenerator.kt:166 */
   23     36   
            }
          37  +
            /* ErrorImplGenerator.kt:166 */
   24     38   
        }
          39  +
        /* ErrorImplGenerator.kt:171 */
   25     40   
        Ok(())
          41  +
        /* ErrorImplGenerator.kt:154 */
   26     42   
    }
          43  +
    /* ErrorImplGenerator.kt:153 */
   27     44   
}
          45  +
/* ErrorImplGenerator.kt:175 */
   28     46   
impl ::std::error::Error for ResourceInUseError {}
          47  +
/* ErrorGenerator.kt:77 */
   29     48   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for ResourceInUseError {
          49  +
    /* ErrorGenerator.kt:78 */
   30     50   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
   31     51   
        &self.meta
   32     52   
    }
          53  +
    /* ErrorGenerator.kt:77 */
   33     54   
}
          55  +
/* ErrorGenerator.kt:81 */
   34     56   
impl ResourceInUseError {
   35         -
    /// Creates a new builder-style object to manufacture [`ResourceInUseError`](crate::types::error::ResourceInUseError).
          57  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ResourceInUseError`](crate::types::error::ResourceInUseError).
          58  +
    /* BuilderGenerator.kt:175 */
   36     59   
    pub fn builder() -> crate::types::error::builders::ResourceInUseErrorBuilder {
          60  +
        /* BuilderGenerator.kt:176 */
   37     61   
        crate::types::error::builders::ResourceInUseErrorBuilder::default()
          62  +
        /* BuilderGenerator.kt:175 */
   38     63   
    }
          64  +
    /* ErrorGenerator.kt:81 */
   39     65   
}
   40     66   
   41         -
/// A builder for [`ResourceInUseError`](crate::types::error::ResourceInUseError).
          67  +
/// /* BuilderGenerator.kt:342 */A builder for [`ResourceInUseError`](crate::types::error::ResourceInUseError).
          68  +
/* RustType.kt:516 */
   42     69   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          70  +
/* RustType.kt:516 */
   43     71   
#[non_exhaustive]
          72  +
/* BuilderGenerator.kt:345 */
   44     73   
pub struct ResourceInUseErrorBuilder {
   45         -
    pub(crate) message: ::std::option::Option<::std::string::String>,
   46         -
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          74  +
    /* BuilderGenerator.kt:275 */ pub(crate) message: ::std::option::Option<::std::string::String>,
          75  +
    /* ErrorGenerator.kt:97 */ meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          76  +
    /* BuilderGenerator.kt:345 */
   47     77   
}
          78  +
/* BuilderGenerator.kt:355 */
   48     79   
impl ResourceInUseErrorBuilder {
   49         -
    /// <p>The resource which is being attempted to be changed is in use.</p>
          80  +
    /// /* BuilderGenerator.kt:286 */<p>The resource which is being attempted to be changed is in use.</p>
          81  +
    /* BuilderGenerator.kt:291 */
   50     82   
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          83  +
        /* BuilderGenerator.kt:292 */
   51     84   
        self.message = ::std::option::Option::Some(input.into());
          85  +
        /* BuilderGenerator.kt:293 */
   52     86   
        self
          87  +
        /* BuilderGenerator.kt:291 */
   53     88   
    }
   54         -
    /// <p>The resource which is being attempted to be changed is in use.</p>
          89  +
    /// /* BuilderGenerator.kt:312 */<p>The resource which is being attempted to be changed is in use.</p>
          90  +
    /* BuilderGenerator.kt:314 */
   55     91   
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          92  +
        /* BuilderGenerator.kt:315 */
   56     93   
        self.message = input;
   57     94   
        self
          95  +
        /* BuilderGenerator.kt:314 */
   58     96   
    }
   59         -
    /// <p>The resource which is being attempted to be changed is in use.</p>
          97  +
    /// /* BuilderGenerator.kt:334 */<p>The resource which is being attempted to be changed is in use.</p>
          98  +
    /* BuilderGenerator.kt:336 */
   60     99   
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
         100  +
        /* BuilderGenerator.kt:337 */
   61    101   
        &self.message
         102  +
        /* BuilderGenerator.kt:336 */
   62    103   
    }
         104  +
    /* ErrorGenerator.kt:101 */
   63    105   
    /// Sets error metadata
   64    106   
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
   65    107   
        self.meta = Some(meta);
   66    108   
        self
   67    109   
    }
   68    110   
   69    111   
    /// Sets error metadata
   70    112   
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
   71    113   
        self.meta = meta;
   72    114   
        self
   73    115   
    }
   74         -
    /// Consumes the builder and constructs a [`ResourceInUseError`](crate::types::error::ResourceInUseError).
         116  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ResourceInUseError`](crate::types::error::ResourceInUseError).
         117  +
    /* BuilderGenerator.kt:253 */
   75    118   
    pub fn build(self) -> crate::types::error::ResourceInUseError {
         119  +
        /* BuilderGenerator.kt:477 */
   76    120   
        crate::types::error::ResourceInUseError {
   77         -
            message: self.message,
         121  +
            /* BuilderGenerator.kt:481 */ message: self.message,
         122  +
            /* ErrorGenerator.kt:120 */
   78    123   
            meta: self.meta.unwrap_or_default(),
         124  +
            /* BuilderGenerator.kt:477 */
   79    125   
        }
         126  +
        /* BuilderGenerator.kt:253 */
   80    127   
    }
         128  +
    /* BuilderGenerator.kt:355 */
   81    129   
}