Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

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

@@ -1,1 +133,214 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>Represents a replica to be modified.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>Represents a replica to be modified.</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 UpdateReplicationGroupMemberAction {
    7         -
    /// <p>The Region where the replica exists.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct UpdateReplicationGroupMemberAction {
           9  +
    /// /* StructureGenerator.kt:231 */<p>The Region where the replica exists.</p>
    8     10   
    pub region_name: ::std::string::String,
    9         -
    /// <p>The AWS KMS customer master key (CMK) of the replica that should be used for AWS KMS encryption. To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB KMS master key alias/aws/dynamodb.</p>
          11  +
    /// /* StructureGenerator.kt:231 */<p>The AWS KMS customer master key (CMK) of the replica that should be used for AWS KMS encryption. To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB KMS master key alias/aws/dynamodb.</p>
   10     12   
    pub kms_master_key_id: ::std::option::Option<::std::string::String>,
   11         -
    /// <p>Replica-specific provisioned throughput. If not specified, uses the source table's provisioned throughput settings.</p>
          13  +
    /// /* StructureGenerator.kt:231 */<p>Replica-specific provisioned throughput. If not specified, uses the source table's provisioned throughput settings.</p>
   12     14   
    pub provisioned_throughput_override: ::std::option::Option<crate::types::ProvisionedThroughputOverride>,
   13         -
    /// <p>Replica-specific global secondary index settings.</p>
          15  +
    /// /* StructureGenerator.kt:231 */<p>Replica-specific global secondary index settings.</p>
   14     16   
    pub global_secondary_indexes: ::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndex>>,
          17  +
    /* StructureGenerator.kt:201 */
   15     18   
}
          19  +
/* StructureGenerator.kt:135 */
   16     20   
impl UpdateReplicationGroupMemberAction {
   17         -
    /// <p>The Region where the replica exists.</p>
          21  +
    /// /* StructureGenerator.kt:231 */<p>The Region where the replica exists.</p>
          22  +
    /* StructureGenerator.kt:166 */
   18     23   
    pub fn region_name(&self) -> &str {
          24  +
        /* StructureGenerator.kt:171 */
   19     25   
        use std::ops::Deref;
   20     26   
        self.region_name.deref()
          27  +
        /* StructureGenerator.kt:166 */
   21     28   
    }
   22         -
    /// <p>The AWS KMS customer master key (CMK) of the replica that should be used for AWS KMS encryption. To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB KMS master key alias/aws/dynamodb.</p>
          29  +
    /// /* StructureGenerator.kt:231 */<p>The AWS KMS customer master key (CMK) of the replica that should be used for AWS KMS encryption. To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB KMS master key alias/aws/dynamodb.</p>
          30  +
    /* StructureGenerator.kt:166 */
   23     31   
    pub fn kms_master_key_id(&self) -> ::std::option::Option<&str> {
          32  +
        /* StructureGenerator.kt:169 */
   24     33   
        self.kms_master_key_id.as_deref()
          34  +
        /* StructureGenerator.kt:166 */
   25     35   
    }
   26         -
    /// <p>Replica-specific provisioned throughput. If not specified, uses the source table's provisioned throughput settings.</p>
          36  +
    /// /* StructureGenerator.kt:231 */<p>Replica-specific provisioned throughput. If not specified, uses the source table's provisioned throughput settings.</p>
          37  +
    /* StructureGenerator.kt:166 */
   27     38   
    pub fn provisioned_throughput_override(&self) -> ::std::option::Option<&crate::types::ProvisionedThroughputOverride> {
          39  +
        /* StructureGenerator.kt:170 */
   28     40   
        self.provisioned_throughput_override.as_ref()
          41  +
        /* StructureGenerator.kt:166 */
   29     42   
    }
   30         -
    /// <p>Replica-specific global secondary index settings.</p>
   31         -
    ///
   32         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.global_secondary_indexes.is_none()`.
          43  +
    /// /* StructureGenerator.kt:231 */<p>Replica-specific global secondary index settings.</p>
          44  +
    /// /* StructureGenerator.kt:162 */
          45  +
    /// /* StructureGenerator.kt:163 */If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.global_secondary_indexes.is_none()`.
          46  +
    /* StructureGenerator.kt:166 */
   33     47   
    pub fn global_secondary_indexes(&self) -> &[crate::types::ReplicaGlobalSecondaryIndex] {
   34         -
        self.global_secondary_indexes.as_deref().unwrap_or_default()
   35         -
    }
          48  +
        /* StructureGenerator.kt:169 */
          49  +
        self.global_secondary_indexes
          50  +
            .as_deref()
          51  +
            /* StructureGenerator.kt:175 */
          52  +
            .unwrap_or_default()
          53  +
        /* StructureGenerator.kt:166 */
          54  +
    }
          55  +
    /* StructureGenerator.kt:135 */
   36     56   
}
          57  +
/* ClientCodegenVisitor.kt:237 */
   37     58   
impl UpdateReplicationGroupMemberAction {
   38         -
    /// Creates a new builder-style object to manufacture [`UpdateReplicationGroupMemberAction`](crate::types::UpdateReplicationGroupMemberAction).
          59  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`UpdateReplicationGroupMemberAction`](crate::types::UpdateReplicationGroupMemberAction).
          60  +
    /* BuilderGenerator.kt:175 */
   39     61   
    pub fn builder() -> crate::types::builders::UpdateReplicationGroupMemberActionBuilder {
          62  +
        /* BuilderGenerator.kt:176 */
   40     63   
        crate::types::builders::UpdateReplicationGroupMemberActionBuilder::default()
          64  +
        /* BuilderGenerator.kt:175 */
   41     65   
    }
          66  +
    /* ClientCodegenVisitor.kt:237 */
   42     67   
}
   43     68   
   44         -
/// A builder for [`UpdateReplicationGroupMemberAction`](crate::types::UpdateReplicationGroupMemberAction).
          69  +
/// /* BuilderGenerator.kt:342 */A builder for [`UpdateReplicationGroupMemberAction`](crate::types::UpdateReplicationGroupMemberAction).
          70  +
/* RustType.kt:516 */
   45     71   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          72  +
/* RustType.kt:516 */
   46     73   
#[non_exhaustive]
          74  +
/* BuilderGenerator.kt:345 */
   47     75   
pub struct UpdateReplicationGroupMemberActionBuilder {
   48         -
    pub(crate) region_name: ::std::option::Option<::std::string::String>,
   49         -
    pub(crate) kms_master_key_id: ::std::option::Option<::std::string::String>,
          76  +
    /* BuilderGenerator.kt:275 */ pub(crate) region_name: ::std::option::Option<::std::string::String>,
          77  +
    /* BuilderGenerator.kt:275 */ pub(crate) kms_master_key_id: ::std::option::Option<::std::string::String>,
          78  +
    /* BuilderGenerator.kt:275 */
   50     79   
    pub(crate) provisioned_throughput_override: ::std::option::Option<crate::types::ProvisionedThroughputOverride>,
          80  +
    /* BuilderGenerator.kt:275 */
   51     81   
    pub(crate) global_secondary_indexes: ::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndex>>,
          82  +
    /* BuilderGenerator.kt:345 */
   52     83   
}
          84  +
/* BuilderGenerator.kt:355 */
   53     85   
impl UpdateReplicationGroupMemberActionBuilder {
   54         -
    /// <p>The Region where the replica exists.</p>
   55         -
    /// This field is required.
          86  +
    /// /* BuilderGenerator.kt:286 */<p>The Region where the replica exists.</p>
          87  +
    /// /* BuilderGenerator.kt:288 */This field is required.
          88  +
    /* BuilderGenerator.kt:291 */
   56     89   
    pub fn region_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          90  +
        /* BuilderGenerator.kt:292 */
   57     91   
        self.region_name = ::std::option::Option::Some(input.into());
          92  +
        /* BuilderGenerator.kt:293 */
   58     93   
        self
          94  +
        /* BuilderGenerator.kt:291 */
   59     95   
    }
   60         -
    /// <p>The Region where the replica exists.</p>
          96  +
    /// /* BuilderGenerator.kt:312 */<p>The Region where the replica exists.</p>
          97  +
    /* BuilderGenerator.kt:314 */
   61     98   
    pub fn set_region_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          99  +
        /* BuilderGenerator.kt:315 */
   62    100   
        self.region_name = input;
   63    101   
        self
         102  +
        /* BuilderGenerator.kt:314 */
   64    103   
    }
   65         -
    /// <p>The Region where the replica exists.</p>
         104  +
    /// /* BuilderGenerator.kt:334 */<p>The Region where the replica exists.</p>
         105  +
    /* BuilderGenerator.kt:336 */
   66    106   
    pub fn get_region_name(&self) -> &::std::option::Option<::std::string::String> {
         107  +
        /* BuilderGenerator.kt:337 */
   67    108   
        &self.region_name
         109  +
        /* BuilderGenerator.kt:336 */
   68    110   
    }
   69         -
    /// <p>The AWS KMS customer master key (CMK) of the replica that should be used for AWS KMS encryption. To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB KMS master key alias/aws/dynamodb.</p>
         111  +
    /// /* BuilderGenerator.kt:286 */<p>The AWS KMS customer master key (CMK) of the replica that should be used for AWS KMS encryption. To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB KMS master key alias/aws/dynamodb.</p>
         112  +
    /* BuilderGenerator.kt:291 */
   70    113   
    pub fn kms_master_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         114  +
        /* BuilderGenerator.kt:292 */
   71    115   
        self.kms_master_key_id = ::std::option::Option::Some(input.into());
         116  +
        /* BuilderGenerator.kt:293 */
   72    117   
        self
         118  +
        /* BuilderGenerator.kt:291 */
   73    119   
    }
   74         -
    /// <p>The AWS KMS customer master key (CMK) of the replica that should be used for AWS KMS encryption. To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB KMS master key alias/aws/dynamodb.</p>
         120  +
    /// /* BuilderGenerator.kt:312 */<p>The AWS KMS customer master key (CMK) of the replica that should be used for AWS KMS encryption. To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB KMS master key alias/aws/dynamodb.</p>
         121  +
    /* BuilderGenerator.kt:314 */
   75    122   
    pub fn set_kms_master_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         123  +
        /* BuilderGenerator.kt:315 */
   76    124   
        self.kms_master_key_id = input;
   77    125   
        self
         126  +
        /* BuilderGenerator.kt:314 */
   78    127   
    }
   79         -
    /// <p>The AWS KMS customer master key (CMK) of the replica that should be used for AWS KMS encryption. To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB KMS master key alias/aws/dynamodb.</p>
         128  +
    /// /* BuilderGenerator.kt:334 */<p>The AWS KMS customer master key (CMK) of the replica that should be used for AWS KMS encryption. To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB KMS master key alias/aws/dynamodb.</p>
         129  +
    /* BuilderGenerator.kt:336 */
   80    130   
    pub fn get_kms_master_key_id(&self) -> &::std::option::Option<::std::string::String> {
         131  +
        /* BuilderGenerator.kt:337 */
   81    132   
        &self.kms_master_key_id
         133  +
        /* BuilderGenerator.kt:336 */
   82    134   
    }
   83         -
    /// <p>Replica-specific provisioned throughput. If not specified, uses the source table's provisioned throughput settings.</p>
         135  +
    /// /* BuilderGenerator.kt:286 */<p>Replica-specific provisioned throughput. If not specified, uses the source table's provisioned throughput settings.</p>
         136  +
    /* BuilderGenerator.kt:291 */
   84    137   
    pub fn provisioned_throughput_override(mut self, input: crate::types::ProvisionedThroughputOverride) -> Self {
         138  +
        /* BuilderGenerator.kt:292 */
   85    139   
        self.provisioned_throughput_override = ::std::option::Option::Some(input);
         140  +
        /* BuilderGenerator.kt:293 */
   86    141   
        self
         142  +
        /* BuilderGenerator.kt:291 */
   87    143   
    }
   88         -
    /// <p>Replica-specific provisioned throughput. If not specified, uses the source table's provisioned throughput settings.</p>
         144  +
    /// /* BuilderGenerator.kt:312 */<p>Replica-specific provisioned throughput. If not specified, uses the source table's provisioned throughput settings.</p>
         145  +
    /* BuilderGenerator.kt:314 */
   89    146   
    pub fn set_provisioned_throughput_override(mut self, input: ::std::option::Option<crate::types::ProvisionedThroughputOverride>) -> Self {
         147  +
        /* BuilderGenerator.kt:315 */
   90    148   
        self.provisioned_throughput_override = input;
   91    149   
        self
         150  +
        /* BuilderGenerator.kt:314 */
   92    151   
    }
   93         -
    /// <p>Replica-specific provisioned throughput. If not specified, uses the source table's provisioned throughput settings.</p>
         152  +
    /// /* BuilderGenerator.kt:334 */<p>Replica-specific provisioned throughput. If not specified, uses the source table's provisioned throughput settings.</p>
         153  +
    /* BuilderGenerator.kt:336 */
   94    154   
    pub fn get_provisioned_throughput_override(&self) -> &::std::option::Option<crate::types::ProvisionedThroughputOverride> {
         155  +
        /* BuilderGenerator.kt:337 */
   95    156   
        &self.provisioned_throughput_override
         157  +
        /* BuilderGenerator.kt:336 */
   96    158   
    }
   97         -
    /// Appends an item to `global_secondary_indexes`.
         159  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `global_secondary_indexes`.
         160  +
    /* BuilderGenerator.kt:411 */
   98    161   
    ///
   99         -
    /// To override the contents of this collection use [`set_global_secondary_indexes`](Self::set_global_secondary_indexes).
         162  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_global_secondary_indexes`](Self::set_global_secondary_indexes).
         163  +
    /* BuilderGenerator.kt:413 */
  100    164   
    ///
  101         -
    /// <p>Replica-specific global secondary index settings.</p>
         165  +
    /// /* BuilderGenerator.kt:414 */<p>Replica-specific global secondary index settings.</p>
         166  +
    /* BuilderGenerator.kt:418 */
  102    167   
    pub fn global_secondary_indexes(mut self, input: crate::types::ReplicaGlobalSecondaryIndex) -> Self {
         168  +
        /* BuilderGenerator.kt:419 */
  103    169   
        let mut v = self.global_secondary_indexes.unwrap_or_default();
  104    170   
        v.push(input);
  105    171   
        self.global_secondary_indexes = ::std::option::Option::Some(v);
  106    172   
        self
         173  +
        /* BuilderGenerator.kt:418 */
  107    174   
    }
  108         -
    /// <p>Replica-specific global secondary index settings.</p>
         175  +
    /// /* BuilderGenerator.kt:312 */<p>Replica-specific global secondary index settings.</p>
         176  +
    /* BuilderGenerator.kt:314 */
  109    177   
    pub fn set_global_secondary_indexes(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndex>>) -> Self {
         178  +
        /* BuilderGenerator.kt:315 */
  110    179   
        self.global_secondary_indexes = input;
  111    180   
        self
         181  +
        /* BuilderGenerator.kt:314 */
  112    182   
    }
  113         -
    /// <p>Replica-specific global secondary index settings.</p>
         183  +
    /// /* BuilderGenerator.kt:334 */<p>Replica-specific global secondary index settings.</p>
         184  +
    /* BuilderGenerator.kt:336 */
  114    185   
    pub fn get_global_secondary_indexes(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndex>> {
         186  +
        /* BuilderGenerator.kt:337 */
  115    187   
        &self.global_secondary_indexes
         188  +
        /* BuilderGenerator.kt:336 */
  116    189   
    }
  117         -
    /// Consumes the builder and constructs a [`UpdateReplicationGroupMemberAction`](crate::types::UpdateReplicationGroupMemberAction).
  118         -
    /// This method will fail if any of the following fields are not set:
  119         -
    /// - [`region_name`](crate::types::builders::UpdateReplicationGroupMemberActionBuilder::region_name)
         190  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`UpdateReplicationGroupMemberAction`](crate::types::UpdateReplicationGroupMemberAction).
         191  +
    /// /* BuilderGenerator.kt:243 */This method will fail if any of the following fields are not set:
         192  +
    /// /* BuilderGenerator.kt:246 */- [`region_name`](crate::types::builders::UpdateReplicationGroupMemberActionBuilder::region_name)
         193  +
    /* BuilderGenerator.kt:253 */
  120    194   
    pub fn build(self) -> ::std::result::Result<crate::types::UpdateReplicationGroupMemberAction, ::aws_smithy_types::error::operation::BuildError> {
  121         -
        ::std::result::Result::Ok(crate::types::UpdateReplicationGroupMemberAction {
  122         -
            region_name: self.region_name.ok_or_else(|| {
  123         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
  124         -
                    "region_name",
  125         -
                    "region_name was not specified but it is required when building UpdateReplicationGroupMemberAction",
  126         -
                )
  127         -
            })?,
  128         -
            kms_master_key_id: self.kms_master_key_id,
  129         -
            provisioned_throughput_override: self.provisioned_throughput_override,
  130         -
            global_secondary_indexes: self.global_secondary_indexes,
  131         -
        })
  132         -
    }
         195  +
        /* BuilderGenerator.kt:254 */
         196  +
        ::std::result::Result::Ok(
         197  +
            /* BuilderGenerator.kt:477 */crate::types::UpdateReplicationGroupMemberAction {
         198  +
                /* BuilderGenerator.kt:481 */region_name: self.region_name
         199  +
                    /* BuilderGenerator.kt:494 */.ok_or_else(||
         200  +
                        /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("region_name", "region_name was not specified but it is required when building UpdateReplicationGroupMemberAction")
         201  +
                    /* BuilderGenerator.kt:494 */)?
         202  +
                ,
         203  +
                /* BuilderGenerator.kt:481 */kms_master_key_id: self.kms_master_key_id
         204  +
                ,
         205  +
                /* BuilderGenerator.kt:481 */provisioned_throughput_override: self.provisioned_throughput_override
         206  +
                ,
         207  +
                /* BuilderGenerator.kt:481 */global_secondary_indexes: self.global_secondary_indexes
         208  +
                ,
         209  +
            /* BuilderGenerator.kt:477 */}
         210  +
        /* BuilderGenerator.kt:254 */)
         211  +
        /* BuilderGenerator.kt:253 */
         212  +
    }
         213  +
    /* BuilderGenerator.kt:355 */
  133    214   
}

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

@@ -1,1 +72,120 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>Represents an operation to perform - either <code>DeleteItem</code> or <code>PutItem</code>. You can only request one of these operations, not both, in a single <code>WriteRequest</code>. If you do need to perform both of these operations, you need to provide two separate <code>WriteRequest</code> objects.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>Represents an operation to perform - either <code>DeleteItem</code> or <code>PutItem</code>. You can only request one of these operations, not both, in a single <code>WriteRequest</code>. If you do need to perform both of these operations, you need to provide two separate <code>WriteRequest</code> objects.</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 WriteRequest {
    7         -
    /// <p>A request to perform a <code>PutItem</code> operation.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct WriteRequest {
           9  +
    /// /* StructureGenerator.kt:231 */<p>A request to perform a <code>PutItem</code> operation.</p>
    8     10   
    pub put_request: ::std::option::Option<crate::types::PutRequest>,
    9         -
    /// <p>A request to perform a <code>DeleteItem</code> operation.</p>
          11  +
    /// /* StructureGenerator.kt:231 */<p>A request to perform a <code>DeleteItem</code> operation.</p>
   10     12   
    pub delete_request: ::std::option::Option<crate::types::DeleteRequest>,
          13  +
    /* StructureGenerator.kt:201 */
   11     14   
}
          15  +
/* StructureGenerator.kt:135 */
   12     16   
impl WriteRequest {
   13         -
    /// <p>A request to perform a <code>PutItem</code> operation.</p>
          17  +
    /// /* StructureGenerator.kt:231 */<p>A request to perform a <code>PutItem</code> operation.</p>
          18  +
    /* StructureGenerator.kt:166 */
   14     19   
    pub fn put_request(&self) -> ::std::option::Option<&crate::types::PutRequest> {
          20  +
        /* StructureGenerator.kt:170 */
   15     21   
        self.put_request.as_ref()
          22  +
        /* StructureGenerator.kt:166 */
   16     23   
    }
   17         -
    /// <p>A request to perform a <code>DeleteItem</code> operation.</p>
          24  +
    /// /* StructureGenerator.kt:231 */<p>A request to perform a <code>DeleteItem</code> operation.</p>
          25  +
    /* StructureGenerator.kt:166 */
   18     26   
    pub fn delete_request(&self) -> ::std::option::Option<&crate::types::DeleteRequest> {
          27  +
        /* StructureGenerator.kt:170 */
   19     28   
        self.delete_request.as_ref()
          29  +
        /* StructureGenerator.kt:166 */
   20     30   
    }
          31  +
    /* StructureGenerator.kt:135 */
   21     32   
}
          33  +
/* ClientCodegenVisitor.kt:237 */
   22     34   
impl WriteRequest {
   23         -
    /// Creates a new builder-style object to manufacture [`WriteRequest`](crate::types::WriteRequest).
          35  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`WriteRequest`](crate::types::WriteRequest).
          36  +
    /* BuilderGenerator.kt:175 */
   24     37   
    pub fn builder() -> crate::types::builders::WriteRequestBuilder {
          38  +
        /* BuilderGenerator.kt:176 */
   25     39   
        crate::types::builders::WriteRequestBuilder::default()
          40  +
        /* BuilderGenerator.kt:175 */
   26     41   
    }
          42  +
    /* ClientCodegenVisitor.kt:237 */
   27     43   
}
   28     44   
   29         -
/// A builder for [`WriteRequest`](crate::types::WriteRequest).
          45  +
/// /* BuilderGenerator.kt:342 */A builder for [`WriteRequest`](crate::types::WriteRequest).
          46  +
/* RustType.kt:516 */
   30     47   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          48  +
/* RustType.kt:516 */
   31     49   
#[non_exhaustive]
          50  +
/* BuilderGenerator.kt:345 */
   32     51   
pub struct WriteRequestBuilder {
   33         -
    pub(crate) put_request: ::std::option::Option<crate::types::PutRequest>,
          52  +
    /* BuilderGenerator.kt:275 */ pub(crate) put_request: ::std::option::Option<crate::types::PutRequest>,
          53  +
    /* BuilderGenerator.kt:275 */
   34     54   
    pub(crate) delete_request: ::std::option::Option<crate::types::DeleteRequest>,
          55  +
    /* BuilderGenerator.kt:345 */
   35     56   
}
          57  +
/* BuilderGenerator.kt:355 */
   36     58   
impl WriteRequestBuilder {
   37         -
    /// <p>A request to perform a <code>PutItem</code> operation.</p>
          59  +
    /// /* BuilderGenerator.kt:286 */<p>A request to perform a <code>PutItem</code> operation.</p>
          60  +
    /* BuilderGenerator.kt:291 */
   38     61   
    pub fn put_request(mut self, input: crate::types::PutRequest) -> Self {
          62  +
        /* BuilderGenerator.kt:292 */
   39     63   
        self.put_request = ::std::option::Option::Some(input);
          64  +
        /* BuilderGenerator.kt:293 */
   40     65   
        self
          66  +
        /* BuilderGenerator.kt:291 */
   41     67   
    }
   42         -
    /// <p>A request to perform a <code>PutItem</code> operation.</p>
          68  +
    /// /* BuilderGenerator.kt:312 */<p>A request to perform a <code>PutItem</code> operation.</p>
          69  +
    /* BuilderGenerator.kt:314 */
   43     70   
    pub fn set_put_request(mut self, input: ::std::option::Option<crate::types::PutRequest>) -> Self {
          71  +
        /* BuilderGenerator.kt:315 */
   44     72   
        self.put_request = input;
   45     73   
        self
          74  +
        /* BuilderGenerator.kt:314 */
   46     75   
    }
   47         -
    /// <p>A request to perform a <code>PutItem</code> operation.</p>
          76  +
    /// /* BuilderGenerator.kt:334 */<p>A request to perform a <code>PutItem</code> operation.</p>
          77  +
    /* BuilderGenerator.kt:336 */
   48     78   
    pub fn get_put_request(&self) -> &::std::option::Option<crate::types::PutRequest> {
          79  +
        /* BuilderGenerator.kt:337 */
   49     80   
        &self.put_request
          81  +
        /* BuilderGenerator.kt:336 */
   50     82   
    }
   51         -
    /// <p>A request to perform a <code>DeleteItem</code> operation.</p>
          83  +
    /// /* BuilderGenerator.kt:286 */<p>A request to perform a <code>DeleteItem</code> operation.</p>
          84  +
    /* BuilderGenerator.kt:291 */
   52     85   
    pub fn delete_request(mut self, input: crate::types::DeleteRequest) -> Self {
          86  +
        /* BuilderGenerator.kt:292 */
   53     87   
        self.delete_request = ::std::option::Option::Some(input);
          88  +
        /* BuilderGenerator.kt:293 */
   54     89   
        self
          90  +
        /* BuilderGenerator.kt:291 */
   55     91   
    }
   56         -
    /// <p>A request to perform a <code>DeleteItem</code> operation.</p>
          92  +
    /// /* BuilderGenerator.kt:312 */<p>A request to perform a <code>DeleteItem</code> operation.</p>
          93  +
    /* BuilderGenerator.kt:314 */
   57     94   
    pub fn set_delete_request(mut self, input: ::std::option::Option<crate::types::DeleteRequest>) -> Self {
          95  +
        /* BuilderGenerator.kt:315 */
   58     96   
        self.delete_request = input;
   59     97   
        self
          98  +
        /* BuilderGenerator.kt:314 */
   60     99   
    }
   61         -
    /// <p>A request to perform a <code>DeleteItem</code> operation.</p>
         100  +
    /// /* BuilderGenerator.kt:334 */<p>A request to perform a <code>DeleteItem</code> operation.</p>
         101  +
    /* BuilderGenerator.kt:336 */
   62    102   
    pub fn get_delete_request(&self) -> &::std::option::Option<crate::types::DeleteRequest> {
         103  +
        /* BuilderGenerator.kt:337 */
   63    104   
        &self.delete_request
         105  +
        /* BuilderGenerator.kt:336 */
   64    106   
    }
   65         -
    /// Consumes the builder and constructs a [`WriteRequest`](crate::types::WriteRequest).
         107  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`WriteRequest`](crate::types::WriteRequest).
         108  +
    /* BuilderGenerator.kt:253 */
   66    109   
    pub fn build(self) -> crate::types::WriteRequest {
         110  +
        /* BuilderGenerator.kt:477 */
   67    111   
        crate::types::WriteRequest {
   68         -
            put_request: self.put_request,
         112  +
            /* BuilderGenerator.kt:481 */ put_request: self.put_request,
         113  +
            /* BuilderGenerator.kt:481 */
   69    114   
            delete_request: self.delete_request,
         115  +
            /* BuilderGenerator.kt:477 */
   70    116   
        }
         117  +
        /* BuilderGenerator.kt:253 */
   71    118   
    }
         119  +
    /* BuilderGenerator.kt:355 */
   72    120   
}

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

@@ -1,1 +186,279 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CodegenDelegator.kt:255 */
    2      3   
pub use crate::types::_time_to_live_specification::TimeToLiveSpecificationBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::types::_table_auto_scaling_description::TableAutoScalingDescriptionBuilder;
    5      7   
           8  +
/* CodegenDelegator.kt:255 */
    6      9   
pub use crate::types::_replica_auto_scaling_description::ReplicaAutoScalingDescriptionBuilder;
    7     10   
          11  +
/* CodegenDelegator.kt:255 */
    8     12   
pub use crate::types::_auto_scaling_settings_description::AutoScalingSettingsDescriptionBuilder;
    9     13   
          14  +
/* CodegenDelegator.kt:255 */
   10     15   
pub use crate::types::_auto_scaling_policy_description::AutoScalingPolicyDescriptionBuilder;
   11     16   
          17  +
/* CodegenDelegator.kt:255 */
   12     18   
pub use crate::types::_auto_scaling_target_tracking_scaling_policy_configuration_description::AutoScalingTargetTrackingScalingPolicyConfigurationDescriptionBuilder;
   13     19   
          20  +
/* CodegenDelegator.kt:255 */
   14     21   
pub use crate::types::_replica_global_secondary_index_auto_scaling_description::ReplicaGlobalSecondaryIndexAutoScalingDescriptionBuilder;
   15     22   
          23  +
/* CodegenDelegator.kt:255 */
   16     24   
pub use crate::types::_replica_auto_scaling_update::ReplicaAutoScalingUpdateBuilder;
   17     25   
          26  +
/* CodegenDelegator.kt:255 */
   18     27   
pub use crate::types::_auto_scaling_settings_update::AutoScalingSettingsUpdateBuilder;
   19     28   
          29  +
/* CodegenDelegator.kt:255 */
   20     30   
pub use crate::types::_auto_scaling_policy_update::AutoScalingPolicyUpdateBuilder;
   21     31   
          32  +
/* CodegenDelegator.kt:255 */
   22     33   
pub use crate::types::_auto_scaling_target_tracking_scaling_policy_configuration_update::AutoScalingTargetTrackingScalingPolicyConfigurationUpdateBuilder;
   23     34   
          35  +
/* CodegenDelegator.kt:255 */
   24     36   
pub use crate::types::_replica_global_secondary_index_auto_scaling_update::ReplicaGlobalSecondaryIndexAutoScalingUpdateBuilder;
   25     37   
          38  +
/* CodegenDelegator.kt:255 */
   26     39   
pub use crate::types::_global_secondary_index_auto_scaling_update::GlobalSecondaryIndexAutoScalingUpdateBuilder;
   27     40   
          41  +
/* CodegenDelegator.kt:255 */
   28     42   
pub use crate::types::_table_description::TableDescriptionBuilder;
   29     43   
          44  +
/* CodegenDelegator.kt:255 */
   30     45   
pub use crate::types::_archival_summary::ArchivalSummaryBuilder;
   31     46   
          47  +
/* CodegenDelegator.kt:255 */
   32     48   
pub use crate::types::_sse_description::SseDescriptionBuilder;
   33     49   
          50  +
/* CodegenDelegator.kt:255 */
   34     51   
pub use crate::types::_restore_summary::RestoreSummaryBuilder;
   35     52   
          53  +
/* CodegenDelegator.kt:255 */
   36     54   
pub use crate::types::_replica_description::ReplicaDescriptionBuilder;
   37     55   
          56  +
/* CodegenDelegator.kt:255 */
   38     57   
pub use crate::types::_replica_global_secondary_index_description::ReplicaGlobalSecondaryIndexDescriptionBuilder;
   39     58   
          59  +
/* CodegenDelegator.kt:255 */
   40     60   
pub use crate::types::_provisioned_throughput_override::ProvisionedThroughputOverrideBuilder;
   41     61   
          62  +
/* CodegenDelegator.kt:255 */
   42     63   
pub use crate::types::_stream_specification::StreamSpecificationBuilder;
   43     64   
          65  +
/* CodegenDelegator.kt:255 */
   44     66   
pub use crate::types::_global_secondary_index_description::GlobalSecondaryIndexDescriptionBuilder;
   45     67   
          68  +
/* CodegenDelegator.kt:255 */
   46     69   
pub use crate::types::_provisioned_throughput_description::ProvisionedThroughputDescriptionBuilder;
   47     70   
          71  +
/* CodegenDelegator.kt:255 */
   48     72   
pub use crate::types::_projection::ProjectionBuilder;
   49     73   
          74  +
/* CodegenDelegator.kt:255 */
   50     75   
pub use crate::types::_key_schema_element::KeySchemaElementBuilder;
   51     76   
          77  +
/* CodegenDelegator.kt:255 */
   52     78   
pub use crate::types::_local_secondary_index_description::LocalSecondaryIndexDescriptionBuilder;
   53     79   
          80  +
/* CodegenDelegator.kt:255 */
   54     81   
pub use crate::types::_billing_mode_summary::BillingModeSummaryBuilder;
   55     82   
          83  +
/* CodegenDelegator.kt:255 */
   56     84   
pub use crate::types::_attribute_definition::AttributeDefinitionBuilder;
   57     85   
          86  +
/* CodegenDelegator.kt:255 */
   58     87   
pub use crate::types::_replication_group_update::ReplicationGroupUpdateBuilder;
   59     88   
          89  +
/* CodegenDelegator.kt:255 */
   60     90   
pub use crate::types::_delete_replication_group_member_action::DeleteReplicationGroupMemberActionBuilder;
   61     91   
          92  +
/* CodegenDelegator.kt:255 */
   62     93   
pub use crate::types::_update_replication_group_member_action::UpdateReplicationGroupMemberActionBuilder;
   63     94   
          95  +
/* CodegenDelegator.kt:255 */
   64     96   
pub use crate::types::_replica_global_secondary_index::ReplicaGlobalSecondaryIndexBuilder;
   65     97   
          98  +
/* CodegenDelegator.kt:255 */
   66     99   
pub use crate::types::_create_replication_group_member_action::CreateReplicationGroupMemberActionBuilder;
   67    100   
         101  +
/* CodegenDelegator.kt:255 */
   68    102   
pub use crate::types::_sse_specification::SseSpecificationBuilder;
   69    103   
         104  +
/* CodegenDelegator.kt:255 */
   70    105   
pub use crate::types::_global_secondary_index_update::GlobalSecondaryIndexUpdateBuilder;
   71    106   
         107  +
/* CodegenDelegator.kt:255 */
   72    108   
pub use crate::types::_delete_global_secondary_index_action::DeleteGlobalSecondaryIndexActionBuilder;
   73    109   
         110  +
/* CodegenDelegator.kt:255 */
   74    111   
pub use crate::types::_create_global_secondary_index_action::CreateGlobalSecondaryIndexActionBuilder;
   75    112   
         113  +
/* CodegenDelegator.kt:255 */
   76    114   
pub use crate::types::_provisioned_throughput::ProvisionedThroughputBuilder;
   77    115   
         116  +
/* CodegenDelegator.kt:255 */
   78    117   
pub use crate::types::_update_global_secondary_index_action::UpdateGlobalSecondaryIndexActionBuilder;
   79    118   
         119  +
/* CodegenDelegator.kt:255 */
   80    120   
pub use crate::types::_item_collection_metrics::ItemCollectionMetricsBuilder;
   81    121   
         122  +
/* CodegenDelegator.kt:255 */
   82    123   
pub use crate::types::_consumed_capacity::ConsumedCapacityBuilder;
   83    124   
         125  +
/* CodegenDelegator.kt:255 */
   84    126   
pub use crate::types::_capacity::CapacityBuilder;
   85    127   
         128  +
/* CodegenDelegator.kt:255 */
   86    129   
pub use crate::types::_expected_attribute_value::ExpectedAttributeValueBuilder;
   87    130   
         131  +
/* CodegenDelegator.kt:255 */
   88    132   
pub use crate::types::_attribute_value_update::AttributeValueUpdateBuilder;
   89    133   
         134  +
/* CodegenDelegator.kt:255 */
   90    135   
pub use crate::types::_replica_settings_description::ReplicaSettingsDescriptionBuilder;
   91    136   
         137  +
/* CodegenDelegator.kt:255 */
   92    138   
pub use crate::types::_replica_global_secondary_index_settings_description::ReplicaGlobalSecondaryIndexSettingsDescriptionBuilder;
   93    139   
         140  +
/* CodegenDelegator.kt:255 */
   94    141   
pub use crate::types::_replica_settings_update::ReplicaSettingsUpdateBuilder;
   95    142   
         143  +
/* CodegenDelegator.kt:255 */
   96    144   
pub use crate::types::_replica_global_secondary_index_settings_update::ReplicaGlobalSecondaryIndexSettingsUpdateBuilder;
   97    145   
         146  +
/* CodegenDelegator.kt:255 */
   98    147   
pub use crate::types::_global_table_global_secondary_index_settings_update::GlobalTableGlobalSecondaryIndexSettingsUpdateBuilder;
   99    148   
         149  +
/* CodegenDelegator.kt:255 */
  100    150   
pub use crate::types::_global_table_description::GlobalTableDescriptionBuilder;
  101    151   
         152  +
/* CodegenDelegator.kt:255 */
  102    153   
pub use crate::types::_replica_update::ReplicaUpdateBuilder;
  103    154   
         155  +
/* CodegenDelegator.kt:255 */
  104    156   
pub use crate::types::_delete_replica_action::DeleteReplicaActionBuilder;
  105    157   
         158  +
/* CodegenDelegator.kt:255 */
  106    159   
pub use crate::types::_create_replica_action::CreateReplicaActionBuilder;
  107    160   
         161  +
/* CodegenDelegator.kt:255 */
  108    162   
pub use crate::types::_continuous_backups_description::ContinuousBackupsDescriptionBuilder;
  109    163   
         164  +
/* CodegenDelegator.kt:255 */
  110    165   
pub use crate::types::_point_in_time_recovery_description::PointInTimeRecoveryDescriptionBuilder;
  111    166   
         167  +
/* CodegenDelegator.kt:255 */
  112    168   
pub use crate::types::_point_in_time_recovery_specification::PointInTimeRecoverySpecificationBuilder;
  113    169   
         170  +
/* CodegenDelegator.kt:255 */
  114    171   
pub use crate::types::_cancellation_reason::CancellationReasonBuilder;
  115    172   
         173  +
/* CodegenDelegator.kt:255 */
  116    174   
pub use crate::types::_transact_write_item::TransactWriteItemBuilder;
  117    175   
         176  +
/* CodegenDelegator.kt:255 */
  118    177   
pub use crate::types::_update::UpdateBuilder;
  119    178   
         179  +
/* CodegenDelegator.kt:255 */
  120    180   
pub use crate::types::_delete::DeleteBuilder;
  121    181   
         182  +
/* CodegenDelegator.kt:255 */
  122    183   
pub use crate::types::_put::PutBuilder;
  123    184   
         185  +
/* CodegenDelegator.kt:255 */
  124    186   
pub use crate::types::_condition_check::ConditionCheckBuilder;
  125    187   
         188  +
/* CodegenDelegator.kt:255 */
  126    189   
pub use crate::types::_item_response::ItemResponseBuilder;
  127    190   
         191  +
/* CodegenDelegator.kt:255 */
  128    192   
pub use crate::types::_transact_get_item::TransactGetItemBuilder;
  129    193   
         194  +
/* CodegenDelegator.kt:255 */
  130    195   
pub use crate::types::_get::GetBuilder;
  131    196   
         197  +
/* CodegenDelegator.kt:255 */
  132    198   
pub use crate::types::_tag::TagBuilder;
  133    199   
         200  +
/* CodegenDelegator.kt:255 */
  134    201   
pub use crate::types::_condition::ConditionBuilder;
  135    202   
         203  +
/* CodegenDelegator.kt:255 */
  136    204   
pub use crate::types::_local_secondary_index::LocalSecondaryIndexBuilder;
  137    205   
         206  +
/* CodegenDelegator.kt:255 */
  138    207   
pub use crate::types::_global_secondary_index::GlobalSecondaryIndexBuilder;
  139    208   
         209  +
/* CodegenDelegator.kt:255 */
  140    210   
pub use crate::types::_global_table::GlobalTableBuilder;
  141    211   
         212  +
/* CodegenDelegator.kt:255 */
  142    213   
pub use crate::types::_replica::ReplicaBuilder;
  143    214   
         215  +
/* CodegenDelegator.kt:255 */
  144    216   
pub use crate::types::_export_summary::ExportSummaryBuilder;
  145    217   
         218  +
/* CodegenDelegator.kt:255 */
  146    219   
pub use crate::types::_contributor_insights_summary::ContributorInsightsSummaryBuilder;
  147    220   
         221  +
/* CodegenDelegator.kt:255 */
  148    222   
pub use crate::types::_backup_summary::BackupSummaryBuilder;
  149    223   
         224  +
/* CodegenDelegator.kt:255 */
  150    225   
pub use crate::types::_export_description::ExportDescriptionBuilder;
  151    226   
         227  +
/* CodegenDelegator.kt:255 */
  152    228   
pub use crate::types::_parameterized_statement::ParameterizedStatementBuilder;
  153    229   
         230  +
/* CodegenDelegator.kt:255 */
  154    231   
pub use crate::types::_time_to_live_description::TimeToLiveDescriptionBuilder;
  155    232   
         233  +
/* CodegenDelegator.kt:255 */
  156    234   
pub use crate::types::_kinesis_data_stream_destination::KinesisDataStreamDestinationBuilder;
  157    235   
         236  +
/* CodegenDelegator.kt:255 */
  158    237   
pub use crate::types::_endpoint::EndpointBuilder;
  159    238   
         239  +
/* CodegenDelegator.kt:255 */
  160    240   
pub use crate::types::_failure_exception::FailureExceptionBuilder;
  161    241   
         242  +
/* CodegenDelegator.kt:255 */
  162    243   
pub use crate::types::_backup_description::BackupDescriptionBuilder;
  163    244   
         245  +
/* CodegenDelegator.kt:255 */
  164    246   
pub use crate::types::_source_table_feature_details::SourceTableFeatureDetailsBuilder;
  165    247   
         248  +
/* CodegenDelegator.kt:255 */
  166    249   
pub use crate::types::_global_secondary_index_info::GlobalSecondaryIndexInfoBuilder;
  167    250   
         251  +
/* CodegenDelegator.kt:255 */
  168    252   
pub use crate::types::_local_secondary_index_info::LocalSecondaryIndexInfoBuilder;
  169    253   
         254  +
/* CodegenDelegator.kt:255 */
  170    255   
pub use crate::types::_source_table_details::SourceTableDetailsBuilder;
  171    256   
         257  +
/* CodegenDelegator.kt:255 */
  172    258   
pub use crate::types::_backup_details::BackupDetailsBuilder;
  173    259   
         260  +
/* CodegenDelegator.kt:255 */
  174    261   
pub use crate::types::_write_request::WriteRequestBuilder;
  175    262   
         263  +
/* CodegenDelegator.kt:255 */
  176    264   
pub use crate::types::_delete_request::DeleteRequestBuilder;
  177    265   
         266  +
/* CodegenDelegator.kt:255 */
  178    267   
pub use crate::types::_put_request::PutRequestBuilder;
  179    268   
         269  +
/* CodegenDelegator.kt:255 */
  180    270   
pub use crate::types::_keys_and_attributes::KeysAndAttributesBuilder;
  181    271   
         272  +
/* CodegenDelegator.kt:255 */
  182    273   
pub use crate::types::_batch_statement_response::BatchStatementResponseBuilder;
  183    274   
         275  +
/* CodegenDelegator.kt:255 */
  184    276   
pub use crate::types::_batch_statement_error::BatchStatementErrorBuilder;
  185    277   
         278  +
/* CodegenDelegator.kt:255 */
  186    279   
pub use crate::types::_batch_statement_request::BatchStatementRequestBuilder;

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

@@ -1,1 +123,183 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CodegenDelegator.kt:255 */
    2      3   
pub use crate::types::error::_resource_not_found_exception::ResourceNotFoundError;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::types::error::_resource_in_use_exception::ResourceInUseError;
    5      7   
           8  +
/* CodegenDelegator.kt:255 */
    6      9   
pub use crate::types::error::_limit_exceeded_exception::LimitExceededError;
    7     10   
          11  +
/* CodegenDelegator.kt:255 */
    8     12   
pub use crate::types::error::_invalid_endpoint_exception::InvalidEndpointError;
    9     13   
          14  +
/* CodegenDelegator.kt:255 */
   10     15   
pub use crate::types::error::_internal_server_error::InternalServerError;
   11     16   
          17  +
/* CodegenDelegator.kt:255 */
   12     18   
pub use crate::types::error::_transaction_conflict_exception::TransactionConflictError;
   13     19   
          20  +
/* CodegenDelegator.kt:255 */
   14     21   
pub use crate::types::error::_request_limit_exceeded::RequestLimitExceeded;
   15     22   
          23  +
/* CodegenDelegator.kt:255 */
   16     24   
pub use crate::types::error::_provisioned_throughput_exceeded_exception::ProvisionedThroughputExceededError;
   17     25   
          26  +
/* CodegenDelegator.kt:255 */
   18     27   
pub use crate::types::error::_item_collection_size_limit_exceeded_exception::ItemCollectionSizeLimitExceededError;
   19     28   
          29  +
/* CodegenDelegator.kt:255 */
   20     30   
pub use crate::types::error::_conditional_check_failed_exception::ConditionalCheckFailedError;
   21     31   
          32  +
/* CodegenDelegator.kt:255 */
   22     33   
pub use crate::types::error::_replica_not_found_exception::ReplicaNotFoundError;
   23     34   
          35  +
/* CodegenDelegator.kt:255 */
   24     36   
pub use crate::types::error::_index_not_found_exception::IndexNotFoundError;
   25     37   
          38  +
/* CodegenDelegator.kt:255 */
   26     39   
pub use crate::types::error::_global_table_not_found_exception::GlobalTableNotFoundError;
   27     40   
          41  +
/* CodegenDelegator.kt:255 */
   28     42   
pub use crate::types::error::_table_not_found_exception::TableNotFoundError;
   29     43   
          44  +
/* CodegenDelegator.kt:255 */
   30     45   
pub use crate::types::error::_replica_already_exists_exception::ReplicaAlreadyExistsError;
   31     46   
          47  +
/* CodegenDelegator.kt:255 */
   32     48   
pub use crate::types::error::_continuous_backups_unavailable_exception::ContinuousBackupsUnavailableError;
   33     49   
          50  +
/* CodegenDelegator.kt:255 */
   34     51   
pub use crate::types::error::_transaction_in_progress_exception::TransactionInProgressError;
   35     52   
          53  +
/* CodegenDelegator.kt:255 */
   36     54   
pub use crate::types::error::_transaction_canceled_exception::TransactionCanceledError;
   37     55   
          56  +
/* CodegenDelegator.kt:255 */
   38     57   
pub use crate::types::error::_idempotent_parameter_mismatch_exception::IdempotentParameterMismatchError;
   39     58   
          59  +
/* CodegenDelegator.kt:255 */
   40     60   
pub use crate::types::error::_table_in_use_exception::TableInUseError;
   41     61   
          62  +
/* CodegenDelegator.kt:255 */
   42     63   
pub use crate::types::error::_table_already_exists_exception::TableAlreadyExistsError;
   43     64   
          65  +
/* CodegenDelegator.kt:255 */
   44     66   
pub use crate::types::error::_point_in_time_recovery_unavailable_exception::PointInTimeRecoveryUnavailableError;
   45     67   
          68  +
/* CodegenDelegator.kt:255 */
   46     69   
pub use crate::types::error::_invalid_restore_time_exception::InvalidRestoreTimeError;
   47     70   
          71  +
/* CodegenDelegator.kt:255 */
   48     72   
pub use crate::types::error::_backup_not_found_exception::BackupNotFoundError;
   49     73   
          74  +
/* CodegenDelegator.kt:255 */
   50     75   
pub use crate::types::error::_backup_in_use_exception::BackupInUseError;
   51     76   
          77  +
/* CodegenDelegator.kt:255 */
   52     78   
pub use crate::types::error::_invalid_export_time_exception::InvalidExportTimeError;
   53     79   
          80  +
/* CodegenDelegator.kt:255 */
   54     81   
pub use crate::types::error::_export_conflict_exception::ExportConflictError;
   55     82   
          83  +
/* CodegenDelegator.kt:255 */
   56     84   
pub use crate::types::error::_duplicate_item_exception::DuplicateItemError;
   57     85   
          86  +
/* CodegenDelegator.kt:255 */
   58     87   
pub use crate::types::error::_export_not_found_exception::ExportNotFoundError;
   59     88   
          89  +
/* CodegenDelegator.kt:255 */
   60     90   
pub use crate::types::error::_global_table_already_exists_exception::GlobalTableAlreadyExistsError;
   61     91   
          92  +
/* RustModule.kt:172 */
   62     93   
mod _backup_in_use_exception;
   63     94   
          95  +
/* RustModule.kt:172 */
   64     96   
mod _backup_not_found_exception;
   65     97   
          98  +
/* RustModule.kt:172 */
   66     99   
mod _conditional_check_failed_exception;
   67    100   
         101  +
/* RustModule.kt:172 */
   68    102   
mod _continuous_backups_unavailable_exception;
   69    103   
         104  +
/* RustModule.kt:172 */
   70    105   
mod _duplicate_item_exception;
   71    106   
         107  +
/* RustModule.kt:172 */
   72    108   
mod _export_conflict_exception;
   73    109   
         110  +
/* RustModule.kt:172 */
   74    111   
mod _export_not_found_exception;
   75    112   
         113  +
/* RustModule.kt:172 */
   76    114   
mod _global_table_already_exists_exception;
   77    115   
         116  +
/* RustModule.kt:172 */
   78    117   
mod _global_table_not_found_exception;
   79    118   
         119  +
/* RustModule.kt:172 */
   80    120   
mod _idempotent_parameter_mismatch_exception;
   81    121   
         122  +
/* RustModule.kt:172 */
   82    123   
mod _index_not_found_exception;
   83    124   
         125  +
/* RustModule.kt:172 */
   84    126   
mod _internal_server_error;
   85    127   
         128  +
/* RustModule.kt:172 */
   86    129   
mod _invalid_endpoint_exception;
   87    130   
         131  +
/* RustModule.kt:172 */
   88    132   
mod _invalid_export_time_exception;
   89    133   
         134  +
/* RustModule.kt:172 */
   90    135   
mod _invalid_restore_time_exception;
   91    136   
         137  +
/* RustModule.kt:172 */
   92    138   
mod _item_collection_size_limit_exceeded_exception;
   93    139   
         140  +
/* RustModule.kt:172 */
   94    141   
mod _limit_exceeded_exception;
   95    142   
         143  +
/* RustModule.kt:172 */
   96    144   
mod _point_in_time_recovery_unavailable_exception;
   97    145   
         146  +
/* RustModule.kt:172 */
   98    147   
mod _provisioned_throughput_exceeded_exception;
   99    148   
         149  +
/* RustModule.kt:172 */
  100    150   
mod _replica_already_exists_exception;
  101    151   
         152  +
/* RustModule.kt:172 */
  102    153   
mod _replica_not_found_exception;
  103    154   
         155  +
/* RustModule.kt:172 */
  104    156   
mod _request_limit_exceeded;
  105    157   
         158  +
/* RustModule.kt:172 */
  106    159   
mod _resource_in_use_exception;
  107    160   
         161  +
/* RustModule.kt:172 */
  108    162   
mod _resource_not_found_exception;
  109    163   
         164  +
/* RustModule.kt:172 */
  110    165   
mod _table_already_exists_exception;
  111    166   
         167  +
/* RustModule.kt:172 */
  112    168   
mod _table_in_use_exception;
  113    169   
         170  +
/* RustModule.kt:172 */
  114    171   
mod _table_not_found_exception;
  115    172   
         173  +
/* RustModule.kt:172 */
  116    174   
mod _transaction_canceled_exception;
  117    175   
         176  +
/* RustModule.kt:172 */
  118    177   
mod _transaction_conflict_exception;
  119    178   
         179  +
/* RustModule.kt:172 */
  120    180   
mod _transaction_in_progress_exception;
  121    181   
  122         -
/// Builders
         182  +
/// /* CodegenDelegator.kt:51 */Builders
  123    183   
pub mod builders;

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

@@ -1,1 +81,133 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>There is another ongoing conflicting backup control plane operation on the table. The backup is either being created, deleted or restored to a table.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>There is another ongoing conflicting backup control plane operation on the table. The backup is either being created, deleted or restored to a 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 BackupInUseError {
           8  +
pub /* StructureGenerator.kt:201 */ struct BackupInUseError {
           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 BackupInUseError {
          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 BackupInUseError {
          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, "BackupInUseError [BackupInUseException]")?;
          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 BackupInUseError {}
          48  +
/* ErrorGenerator.kt:77 */
   29     49   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for BackupInUseError {
          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 BackupInUseError {
   35         -
    /// Creates a new builder-style object to manufacture [`BackupInUseError`](crate::types::error::BackupInUseError).
          58  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`BackupInUseError`](crate::types::error::BackupInUseError).
          59  +
    /* BuilderGenerator.kt:175 */
   36     60   
    pub fn builder() -> crate::types::error::builders::BackupInUseErrorBuilder {
          61  +
        /* BuilderGenerator.kt:176 */
   37     62   
        crate::types::error::builders::BackupInUseErrorBuilder::default()
          63  +
        /* BuilderGenerator.kt:175 */
   38     64   
    }
          65  +
    /* ErrorGenerator.kt:81 */
   39     66   
}
   40     67   
   41         -
/// A builder for [`BackupInUseError`](crate::types::error::BackupInUseError).
          68  +
/// /* BuilderGenerator.kt:342 */A builder for [`BackupInUseError`](crate::types::error::BackupInUseError).
          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 BackupInUseErrorBuilder {
   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 BackupInUseErrorBuilder {
          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 [`BackupInUseError`](crate::types::error::BackupInUseError).
         120  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`BackupInUseError`](crate::types::error::BackupInUseError).
         121  +
    /* BuilderGenerator.kt:253 */
   75    122   
    pub fn build(self) -> crate::types::error::BackupInUseError {
         123  +
        /* BuilderGenerator.kt:477 */
   76    124   
        crate::types::error::BackupInUseError {
   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/_backup_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>Backup not found for the given BackupARN.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>Backup not found for the given BackupARN.</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 BackupNotFoundError {
           8  +
pub /* StructureGenerator.kt:201 */ struct BackupNotFoundError {
           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 BackupNotFoundError {
          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 BackupNotFoundError {
          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, "BackupNotFoundError [BackupNotFoundException]")?;
          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 BackupNotFoundError {}
          48  +
/* ErrorGenerator.kt:77 */
   29     49   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for BackupNotFoundError {
          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 BackupNotFoundError {
   35         -
    /// Creates a new builder-style object to manufacture [`BackupNotFoundError`](crate::types::error::BackupNotFoundError).
          58  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`BackupNotFoundError`](crate::types::error::BackupNotFoundError).
          59  +
    /* BuilderGenerator.kt:175 */
   36     60   
    pub fn builder() -> crate::types::error::builders::BackupNotFoundErrorBuilder {
          61  +
        /* BuilderGenerator.kt:176 */
   37     62   
        crate::types::error::builders::BackupNotFoundErrorBuilder::default()
          63  +
        /* BuilderGenerator.kt:175 */
   38     64   
    }
          65  +
    /* ErrorGenerator.kt:81 */
   39     66   
}
   40     67   
   41         -
/// A builder for [`BackupNotFoundError`](crate::types::error::BackupNotFoundError).
          68  +
/// /* BuilderGenerator.kt:342 */A builder for [`BackupNotFoundError`](crate::types::error::BackupNotFoundError).
          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 BackupNotFoundErrorBuilder {
   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 BackupNotFoundErrorBuilder {
          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 [`BackupNotFoundError`](crate::types::error::BackupNotFoundError).
         120  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`BackupNotFoundError`](crate::types::error::BackupNotFoundError).
         121  +
    /* BuilderGenerator.kt:253 */
   75    122   
    pub fn build(self) -> crate::types::error::BackupNotFoundError {
         123  +
        /* BuilderGenerator.kt:477 */
   76    124   
        crate::types::error::BackupNotFoundError {
   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/_conditional_check_failed_exception.rs

@@ -1,1 +81,129 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>A condition specified in the operation could not be evaluated.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>A condition specified in the operation could not be evaluated.</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 ConditionalCheckFailedError {
    7         -
    /// <p>The conditional request failed.</p>
           8  +
pub /* StructureGenerator.kt:201 */ struct ConditionalCheckFailedError {
           9  +
    /// /* StructureGenerator.kt:231 */<p>The conditional request failed.</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 ConditionalCheckFailedError {
          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 ConditionalCheckFailedError {
          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, "ConditionalCheckFailedError [ConditionalCheckFailedException]")?;
          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 ConditionalCheckFailedError {}
          47  +
/* ErrorGenerator.kt:77 */
   29     48   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for ConditionalCheckFailedError {
          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 ConditionalCheckFailedError {
   35         -
    /// Creates a new builder-style object to manufacture [`ConditionalCheckFailedError`](crate::types::error::ConditionalCheckFailedError).
          57  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ConditionalCheckFailedError`](crate::types::error::ConditionalCheckFailedError).
          58  +
    /* BuilderGenerator.kt:175 */
   36     59   
    pub fn builder() -> crate::types::error::builders::ConditionalCheckFailedErrorBuilder {
          60  +
        /* BuilderGenerator.kt:176 */
   37     61   
        crate::types::error::builders::ConditionalCheckFailedErrorBuilder::default()
          62  +
        /* BuilderGenerator.kt:175 */
   38     63   
    }
          64  +
    /* ErrorGenerator.kt:81 */
   39     65   
}
   40     66   
   41         -
/// A builder for [`ConditionalCheckFailedError`](crate::types::error::ConditionalCheckFailedError).
          67  +
/// /* BuilderGenerator.kt:342 */A builder for [`ConditionalCheckFailedError`](crate::types::error::ConditionalCheckFailedError).
          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 ConditionalCheckFailedErrorBuilder {
   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 ConditionalCheckFailedErrorBuilder {
   49         -
    /// <p>The conditional request failed.</p>
          80  +
    /// /* BuilderGenerator.kt:286 */<p>The conditional request failed.</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 conditional request failed.</p>
          89  +
    /// /* BuilderGenerator.kt:312 */<p>The conditional request failed.</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 conditional request failed.</p>
          97  +
    /// /* BuilderGenerator.kt:334 */<p>The conditional request failed.</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 [`ConditionalCheckFailedError`](crate::types::error::ConditionalCheckFailedError).
         116  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ConditionalCheckFailedError`](crate::types::error::ConditionalCheckFailedError).
         117  +
    /* BuilderGenerator.kt:253 */
   75    118   
    pub fn build(self) -> crate::types::error::ConditionalCheckFailedError {
         119  +
        /* BuilderGenerator.kt:477 */
   76    120   
        crate::types::error::ConditionalCheckFailedError {
   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/_continuous_backups_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>Backups have not yet been enabled for this table.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>Backups have not yet been enabled for this 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 ContinuousBackupsUnavailableError {
           8  +
pub /* StructureGenerator.kt:201 */ struct ContinuousBackupsUnavailableError {
           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 ContinuousBackupsUnavailableError {
          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 ContinuousBackupsUnavailableError {
          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, "ContinuousBackupsUnavailableError [ContinuousBackupsUnavailableException]")?;
          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 ContinuousBackupsUnavailableError {}
          48  +
/* ErrorGenerator.kt:77 */
   29     49   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for ContinuousBackupsUnavailableError {
          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 ContinuousBackupsUnavailableError {
   35         -
    /// Creates a new builder-style object to manufacture [`ContinuousBackupsUnavailableError`](crate::types::error::ContinuousBackupsUnavailableError).
          58  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ContinuousBackupsUnavailableError`](crate::types::error::ContinuousBackupsUnavailableError).
          59  +
    /* BuilderGenerator.kt:175 */
   36     60   
    pub fn builder() -> crate::types::error::builders::ContinuousBackupsUnavailableErrorBuilder {
          61  +
        /* BuilderGenerator.kt:176 */
   37     62   
        crate::types::error::builders::ContinuousBackupsUnavailableErrorBuilder::default()
          63  +
        /* BuilderGenerator.kt:175 */
   38     64   
    }
          65  +
    /* ErrorGenerator.kt:81 */
   39     66   
}
   40     67   
   41         -
/// A builder for [`ContinuousBackupsUnavailableError`](crate::types::error::ContinuousBackupsUnavailableError).
          68  +
/// /* BuilderGenerator.kt:342 */A builder for [`ContinuousBackupsUnavailableError`](crate::types::error::ContinuousBackupsUnavailableError).
          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 ContinuousBackupsUnavailableErrorBuilder {
   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 ContinuousBackupsUnavailableErrorBuilder {
          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 [`ContinuousBackupsUnavailableError`](crate::types::error::ContinuousBackupsUnavailableError).
         120  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ContinuousBackupsUnavailableError`](crate::types::error::ContinuousBackupsUnavailableError).
         121  +
    /* BuilderGenerator.kt:253 */
   75    122   
    pub fn build(self) -> crate::types::error::ContinuousBackupsUnavailableError {
         123  +
        /* BuilderGenerator.kt:477 */
   76    124   
        crate::types::error::ContinuousBackupsUnavailableError {
   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/_duplicate_item_exception.rs

@@ -1,1 +81,133 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>There was an attempt to insert an item with the same primary key as an item that already exists in the DynamoDB table.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>There was an attempt to insert an item with the same primary key as an item that already exists in the DynamoDB 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 DuplicateItemError {
           8  +
pub /* StructureGenerator.kt:201 */ struct DuplicateItemError {
           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 DuplicateItemError {
          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 DuplicateItemError {
          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, "DuplicateItemError [DuplicateItemException]")?;
          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 DuplicateItemError {}
          48  +
/* ErrorGenerator.kt:77 */
   29     49   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for DuplicateItemError {
          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 DuplicateItemError {
   35         -
    /// Creates a new builder-style object to manufacture [`DuplicateItemError`](crate::types::error::DuplicateItemError).
          58  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`DuplicateItemError`](crate::types::error::DuplicateItemError).
          59  +
    /* BuilderGenerator.kt:175 */
   36     60   
    pub fn builder() -> crate::types::error::builders::DuplicateItemErrorBuilder {
          61  +
        /* BuilderGenerator.kt:176 */
   37     62   
        crate::types::error::builders::DuplicateItemErrorBuilder::default()
          63  +
        /* BuilderGenerator.kt:175 */
   38     64   
    }
          65  +
    /* ErrorGenerator.kt:81 */
   39     66   
}
   40     67   
   41         -
/// A builder for [`DuplicateItemError`](crate::types::error::DuplicateItemError).
          68  +
/// /* BuilderGenerator.kt:342 */A builder for [`DuplicateItemError`](crate::types::error::DuplicateItemError).
          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 DuplicateItemErrorBuilder {
   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 DuplicateItemErrorBuilder {
          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 [`DuplicateItemError`](crate::types::error::DuplicateItemError).
         120  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`DuplicateItemError`](crate::types::error::DuplicateItemError).
         121  +
    /* BuilderGenerator.kt:253 */
   75    122   
    pub fn build(self) -> crate::types::error::DuplicateItemError {
         123  +
        /* BuilderGenerator.kt:477 */
   76    124   
        crate::types::error::DuplicateItemError {
   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/_export_conflict_exception.rs

@@ -1,1 +81,133 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>There was a conflict when writing to the specified S3 bucket.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>There was a conflict when writing to the specified S3 bucket.</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 ExportConflictError {
           8  +
pub /* StructureGenerator.kt:201 */ struct ExportConflictError {
           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 ExportConflictError {
          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 ExportConflictError {
          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, "ExportConflictError [ExportConflictException]")?;
          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 ExportConflictError {}
          48  +
/* ErrorGenerator.kt:77 */
   29     49   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for ExportConflictError {
          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 ExportConflictError {
   35         -
    /// Creates a new builder-style object to manufacture [`ExportConflictError`](crate::types::error::ExportConflictError).
          58  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ExportConflictError`](crate::types::error::ExportConflictError).
          59  +
    /* BuilderGenerator.kt:175 */
   36     60   
    pub fn builder() -> crate::types::error::builders::ExportConflictErrorBuilder {
          61  +
        /* BuilderGenerator.kt:176 */
   37     62   
        crate::types::error::builders::ExportConflictErrorBuilder::default()
          63  +
        /* BuilderGenerator.kt:175 */
   38     64   
    }
          65  +
    /* ErrorGenerator.kt:81 */
   39     66   
}
   40     67   
   41         -
/// A builder for [`ExportConflictError`](crate::types::error::ExportConflictError).
          68  +
/// /* BuilderGenerator.kt:342 */A builder for [`ExportConflictError`](crate::types::error::ExportConflictError).
          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 ExportConflictErrorBuilder {
   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 ExportConflictErrorBuilder {
          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 [`ExportConflictError`](crate::types::error::ExportConflictError).
         120  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ExportConflictError`](crate::types::error::ExportConflictError).
         121  +
    /* BuilderGenerator.kt:253 */
   75    122   
    pub fn build(self) -> crate::types::error::ExportConflictError {
         123  +
        /* BuilderGenerator.kt:477 */
   76    124   
        crate::types::error::ExportConflictError {
   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/_export_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 export was not found.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>The specified export was not found.</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 ExportNotFoundError {
           8  +
pub /* StructureGenerator.kt:201 */ struct ExportNotFoundError {
           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 ExportNotFoundError {
          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 ExportNotFoundError {
          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, "ExportNotFoundError [ExportNotFoundException]")?;
          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 ExportNotFoundError {}
          48  +
/* ErrorGenerator.kt:77 */
   29     49   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for ExportNotFoundError {
          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 ExportNotFoundError {
   35         -
    /// Creates a new builder-style object to manufacture [`ExportNotFoundError`](crate::types::error::ExportNotFoundError).
          58  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ExportNotFoundError`](crate::types::error::ExportNotFoundError).
          59  +
    /* BuilderGenerator.kt:175 */
   36     60   
    pub fn builder() -> crate::types::error::builders::ExportNotFoundErrorBuilder {
          61  +
        /* BuilderGenerator.kt:176 */
   37     62   
        crate::types::error::builders::ExportNotFoundErrorBuilder::default()
          63  +
        /* BuilderGenerator.kt:175 */
   38     64   
    }
          65  +
    /* ErrorGenerator.kt:81 */
   39     66   
}
   40     67   
   41         -
/// A builder for [`ExportNotFoundError`](crate::types::error::ExportNotFoundError).
          68  +
/// /* BuilderGenerator.kt:342 */A builder for [`ExportNotFoundError`](crate::types::error::ExportNotFoundError).
          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 ExportNotFoundErrorBuilder {
   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 ExportNotFoundErrorBuilder {
          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 [`ExportNotFoundError`](crate::types::error::ExportNotFoundError).
         120  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ExportNotFoundError`](crate::types::error::ExportNotFoundError).
         121  +
    /* BuilderGenerator.kt:253 */
   75    122   
    pub fn build(self) -> crate::types::error::ExportNotFoundError {
         123  +
        /* BuilderGenerator.kt:477 */
   76    124   
        crate::types::error::ExportNotFoundError {
   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/_global_table_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 global table already exists.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>The specified global table already exists.</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 GlobalTableAlreadyExistsError {
           8  +
pub /* StructureGenerator.kt:201 */ struct GlobalTableAlreadyExistsError {
           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 GlobalTableAlreadyExistsError {
          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 GlobalTableAlreadyExistsError {
          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, "GlobalTableAlreadyExistsError [GlobalTableAlreadyExistsException]")?;
          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 GlobalTableAlreadyExistsError {}
          48  +
/* ErrorGenerator.kt:77 */
   29     49   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for GlobalTableAlreadyExistsError {
          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 GlobalTableAlreadyExistsError {
   35         -
    /// Creates a new builder-style object to manufacture [`GlobalTableAlreadyExistsError`](crate::types::error::GlobalTableAlreadyExistsError).
          58  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`GlobalTableAlreadyExistsError`](crate::types::error::GlobalTableAlreadyExistsError).
          59  +
    /* BuilderGenerator.kt:175 */
   36     60   
    pub fn builder() -> crate::types::error::builders::GlobalTableAlreadyExistsErrorBuilder {
          61  +
        /* BuilderGenerator.kt:176 */
   37     62   
        crate::types::error::builders::GlobalTableAlreadyExistsErrorBuilder::default()
          63  +
        /* BuilderGenerator.kt:175 */
   38     64   
    }
          65  +
    /* ErrorGenerator.kt:81 */
   39     66   
}
   40     67   
   41         -
/// A builder for [`GlobalTableAlreadyExistsError`](crate::types::error::GlobalTableAlreadyExistsError).
          68  +
/// /* BuilderGenerator.kt:342 */A builder for [`GlobalTableAlreadyExistsError`](crate::types::error::GlobalTableAlreadyExistsError).
          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 GlobalTableAlreadyExistsErrorBuilder {
   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 GlobalTableAlreadyExistsErrorBuilder {
          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 [`GlobalTableAlreadyExistsError`](crate::types::error::GlobalTableAlreadyExistsError).
         120  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`GlobalTableAlreadyExistsError`](crate::types::error::GlobalTableAlreadyExistsError).
         121  +
    /* BuilderGenerator.kt:253 */
   75    122   
    pub fn build(self) -> crate::types::error::GlobalTableAlreadyExistsError {
         123  +
        /* BuilderGenerator.kt:477 */
   76    124   
        crate::types::error::GlobalTableAlreadyExistsError {
   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/_global_table_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 global table does not exist.</p>
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */<p>The specified global table does not exist.</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 GlobalTableNotFoundError {
           8  +
pub /* StructureGenerator.kt:201 */ struct GlobalTableNotFoundError {
           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 GlobalTableNotFoundError {
          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 GlobalTableNotFoundError {
          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, "GlobalTableNotFoundError [GlobalTableNotFoundException]")?;
          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 GlobalTableNotFoundError {}
          48  +
/* ErrorGenerator.kt:77 */
   29     49   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for GlobalTableNotFoundError {
          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 GlobalTableNotFoundError {
   35         -
    /// Creates a new builder-style object to manufacture [`GlobalTableNotFoundError`](crate::types::error::GlobalTableNotFoundError).
          58  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`GlobalTableNotFoundError`](crate::types::error::GlobalTableNotFoundError).
          59  +
    /* BuilderGenerator.kt:175 */
   36     60   
    pub fn builder() -> crate::types::error::builders::GlobalTableNotFoundErrorBuilder {
          61  +
        /* BuilderGenerator.kt:176 */
   37     62   
        crate::types::error::builders::GlobalTableNotFoundErrorBuilder::default()
          63  +
        /* BuilderGenerator.kt:175 */
   38     64   
    }
          65  +
    /* ErrorGenerator.kt:81 */
   39     66   
}
   40     67   
   41         -
/// A builder for [`GlobalTableNotFoundError`](crate::types::error::GlobalTableNotFoundError).
          68  +
/// /* BuilderGenerator.kt:342 */A builder for [`GlobalTableNotFoundError`](crate::types::error::GlobalTableNotFoundError).
          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 GlobalTableNotFoundErrorBuilder {
   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 GlobalTableNotFoundErrorBuilder {
          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 [`GlobalTableNotFoundError`](crate::types::error::GlobalTableNotFoundError).
         120  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`GlobalTableNotFoundError`](crate::types::error::GlobalTableNotFoundError).
         121  +
    /* BuilderGenerator.kt:253 */
   75    122   
    pub fn build(self) -> crate::types::error::GlobalTableNotFoundError {
         123  +
        /* BuilderGenerator.kt:477 */
   76    124   
        crate::types::error::GlobalTableNotFoundError {
   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   
}