Server Test Python

Server Test Python

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-server-test-python/ebs/rust-server-codegen-python/src/input.rs

@@ -1,1 +2773,4024 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* RustType.kt:516 */
    2      3   
#[::pyo3::pyclass]
           4  +
/* PythonServerStructureGenerator.kt:63 */
           5  +
/// :param volume_size int:
    3      6   
/// :param timeout typing.Optional\[int\]:
    4      7   
/// :param client_token typing.Optional\[str\]:
    5         -
/// :param volume_size int:
    6      8   
/// :param tags typing.Optional\[typing.List\[ebs.model.Tag\]\]:
    7      9   
/// :param encrypted typing.Optional\[bool\]:
    8     10   
/// :param kms_key_arn typing.Optional\[str\]:
    9     11   
/// :param parent_snapshot_id typing.Optional\[str\]:
   10     12   
/// :param description typing.Optional\[str\]:
   11     13   
/// :rtype None:
          14  +
/* StructureGenerator.kt:197 */
   12     15   
#[allow(missing_docs)] // documentation missing in model
          16  +
/* RustType.kt:516 */
   13     17   
#[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::hash::Hash)]
   14         -
pub struct StartSnapshotInput {
          18  +
pub /* StructureGenerator.kt:201 */ struct StartSnapshotInput {
          19  +
    /* RustType.kt:516 */
   15     20   
    #[pyo3(get, set)]
          21  +
    /* PythonServerStructureGenerator.kt:80 */
   16     22   
    /// :type typing.Optional\[int\]:
   17         -
    /// <p>The amount of time (in minutes) after which the snapshot is automatically cancelled if:</p>
          23  +
    /// /* StructureGenerator.kt:231 */<p>The amount of time (in minutes) after which the snapshot is automatically cancelled if:</p>
   18     24   
    /// <ul>
   19     25   
    /// <li>
   20     26   
    /// <p>No blocks are written to the snapshot.</p></li>
   21     27   
    /// <li>
   22     28   
    /// <p>The snapshot is not completed after writing the last block of data.</p></li>
   23     29   
    /// </ul>
   24     30   
    /// <p>If no value is specified, the timeout defaults to <code>60</code> minutes.</p>
   25     31   
    pub timeout: ::std::option::Option<i32>,
          32  +
    /* RustType.kt:516 */
   26     33   
    #[pyo3(get, set)]
          34  +
    /* PythonServerStructureGenerator.kt:80 */
   27     35   
    /// :type typing.Optional\[str\]:
   28         -
    /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully. The subsequent retries with the same client token return the result from the original successful request and they have no additional effect.</p>
          36  +
    /// /* StructureGenerator.kt:231 */<p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully. The subsequent retries with the same client token return the result from the original successful request and they have no additional effect.</p>
   29     37   
    /// <p>If you do not specify a client token, one is automatically generated by the AWS SDK.</p>
   30     38   
    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-direct-api-idempotency.html"> Idempotency for StartSnapshot API</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
   31     39   
    pub client_token: ::std::option::Option<::std::string::String>,
          40  +
    /* RustType.kt:516 */
   32     41   
    #[pyo3(get, set)]
          42  +
    /* PythonServerStructureGenerator.kt:80 */
   33     43   
    /// :type int:
   34         -
    /// <p>The size of the volume, in GiB. The maximum size is <code>16384</code> GiB (16 TiB).</p>
          44  +
    /// /* StructureGenerator.kt:231 */<p>The size of the volume, in GiB. The maximum size is <code>16384</code> GiB (16 TiB).</p>
   35     45   
    pub volume_size: i64,
          46  +
    /* RustType.kt:516 */
   36     47   
    #[pyo3(get, set)]
          48  +
    /* PythonServerStructureGenerator.kt:80 */
   37     49   
    /// :type typing.Optional\[typing.List\[ebs.model.Tag\]\]:
   38         -
    /// <p>The tags to apply to the snapshot.</p>
          50  +
    /// /* StructureGenerator.kt:231 */<p>The tags to apply to the snapshot.</p>
   39     51   
    pub tags: ::std::option::Option<::std::vec::Vec<crate::model::Tag>>,
          52  +
    /* RustType.kt:516 */
   40     53   
    #[pyo3(get, set)]
          54  +
    /* PythonServerStructureGenerator.kt:80 */
   41     55   
    /// :type typing.Optional\[bool\]:
   42         -
    /// <p>Indicates whether to encrypt the snapshot. To create an encrypted snapshot, specify <code>true</code>. To create an unencrypted snapshot, omit this parameter.</p>
          56  +
    /// /* StructureGenerator.kt:231 */<p>Indicates whether to encrypt the snapshot. To create an encrypted snapshot, specify <code>true</code>. To create an unencrypted snapshot, omit this parameter.</p>
   43     57   
    /// <p>If you specify a value for <b>ParentSnapshotId</b>, omit this parameter.</p>
   44     58   
    /// <p>If you specify <code>true</code>, the snapshot is encrypted using the CMK specified using the <b>KmsKeyArn</b> parameter. If no value is specified for <b>KmsKeyArn</b>, the default CMK for your account is used. If no default CMK has been specified for your account, the AWS managed CMK is used. To set a default CMK for your account, use <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyEbsDefaultKmsKeyId.html"> ModifyEbsDefaultKmsKeyId</a>.</p>
   45     59   
    /// <p>If your account is enabled for encryption by default, you cannot set this parameter to <code>false</code>. In this case, you can omit this parameter.</p>
   46     60   
    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html#ebsapis-using-encryption"> Using encryption</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
   47     61   
    pub encrypted: ::std::option::Option<bool>,
          62  +
    /* RustType.kt:516 */
   48     63   
    #[pyo3(get, set)]
          64  +
    /* PythonServerStructureGenerator.kt:80 */
   49     65   
    /// :type typing.Optional\[str\]:
   50         -
    /// <p>The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) customer master key (CMK) to be used to encrypt the snapshot. If you do not specify a CMK, the default AWS managed CMK is used.</p>
          66  +
    /// /* StructureGenerator.kt:231 */<p>The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) customer master key (CMK) to be used to encrypt the snapshot. If you do not specify a CMK, the default AWS managed CMK is used.</p>
   51     67   
    /// <p>If you specify a <b>ParentSnapshotId</b>, omit this parameter; the snapshot will be encrypted using the same CMK that was used to encrypt the parent snapshot.</p>
   52     68   
    /// <p>If <b>Encrypted</b> is set to <code>true</code>, you must specify a CMK ARN.</p>
   53     69   
    pub kms_key_arn: ::std::option::Option<::std::string::String>,
          70  +
    /* RustType.kt:516 */
   54     71   
    #[pyo3(get, set)]
          72  +
    /* PythonServerStructureGenerator.kt:80 */
   55     73   
    /// :type typing.Optional\[str\]:
   56         -
    /// <p>The ID of the parent snapshot. If there is no parent snapshot, or if you are creating the first snapshot for an on-premises volume, omit this parameter.</p>
          74  +
    /// /* StructureGenerator.kt:231 */<p>The ID of the parent snapshot. If there is no parent snapshot, or if you are creating the first snapshot for an on-premises volume, omit this parameter.</p>
   57     75   
    /// <p>If your account is enabled for encryption by default, you cannot use an unencrypted snapshot as a parent snapshot. You must first create an encrypted copy of the parent snapshot using <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CopySnapshot.html">CopySnapshot</a>.</p>
   58     76   
    pub parent_snapshot_id: ::std::option::Option<::std::string::String>,
          77  +
    /* RustType.kt:516 */
   59     78   
    #[pyo3(get, set)]
          79  +
    /* PythonServerStructureGenerator.kt:80 */
   60     80   
    /// :type typing.Optional\[str\]:
   61         -
    /// <p>A description for the snapshot.</p>
          81  +
    /// /* StructureGenerator.kt:231 */<p>A description for the snapshot.</p>
   62     82   
    pub description: ::std::option::Option<::std::string::String>,
          83  +
    /* StructureGenerator.kt:201 */
   63     84   
}
          85  +
/* StructureGenerator.kt:135 */
   64     86   
impl StartSnapshotInput {
   65         -
    /// <p>The amount of time (in minutes) after which the snapshot is automatically cancelled if:</p>
          87  +
    /// /* StructureGenerator.kt:231 */<p>The amount of time (in minutes) after which the snapshot is automatically cancelled if:</p>
   66     88   
    /// <ul>
   67     89   
    /// <li>
   68     90   
    /// <p>No blocks are written to the snapshot.</p></li>
   69     91   
    /// <li>
   70     92   
    /// <p>The snapshot is not completed after writing the last block of data.</p></li>
   71     93   
    /// </ul>
   72     94   
    /// <p>If no value is specified, the timeout defaults to <code>60</code> minutes.</p>
          95  +
    /* StructureGenerator.kt:166 */
   73     96   
    pub fn timeout(&self) -> ::std::option::Option<i32> {
          97  +
        /* StructureGenerator.kt:168 */
   74     98   
        self.timeout
          99  +
        /* StructureGenerator.kt:166 */
   75    100   
    }
   76         -
    /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully. The subsequent retries with the same client token return the result from the original successful request and they have no additional effect.</p>
         101  +
    /// /* StructureGenerator.kt:231 */<p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully. The subsequent retries with the same client token return the result from the original successful request and they have no additional effect.</p>
   77    102   
    /// <p>If you do not specify a client token, one is automatically generated by the AWS SDK.</p>
   78    103   
    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-direct-api-idempotency.html"> Idempotency for StartSnapshot API</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
         104  +
    /* StructureGenerator.kt:166 */
   79    105   
    pub fn client_token(&self) -> ::std::option::Option<&str> {
         106  +
        /* StructureGenerator.kt:169 */
   80    107   
        self.client_token.as_deref()
         108  +
        /* StructureGenerator.kt:166 */
   81    109   
    }
   82         -
    /// <p>The size of the volume, in GiB. The maximum size is <code>16384</code> GiB (16 TiB).</p>
         110  +
    /// /* StructureGenerator.kt:231 */<p>The size of the volume, in GiB. The maximum size is <code>16384</code> GiB (16 TiB).</p>
         111  +
    /* StructureGenerator.kt:166 */
   83    112   
    pub fn volume_size(&self) -> i64 {
         113  +
        /* StructureGenerator.kt:168 */
   84    114   
        self.volume_size
         115  +
        /* StructureGenerator.kt:166 */
   85    116   
    }
   86         -
    /// <p>The tags to apply to the snapshot.</p>
         117  +
    /// /* StructureGenerator.kt:231 */<p>The tags to apply to the snapshot.</p>
         118  +
    /* StructureGenerator.kt:166 */
   87    119   
    pub fn tags(&self) -> ::std::option::Option<&[crate::model::Tag]> {
         120  +
        /* StructureGenerator.kt:169 */
   88    121   
        self.tags.as_deref()
         122  +
        /* StructureGenerator.kt:166 */
   89    123   
    }
   90         -
    /// <p>Indicates whether to encrypt the snapshot. To create an encrypted snapshot, specify <code>true</code>. To create an unencrypted snapshot, omit this parameter.</p>
         124  +
    /// /* StructureGenerator.kt:231 */<p>Indicates whether to encrypt the snapshot. To create an encrypted snapshot, specify <code>true</code>. To create an unencrypted snapshot, omit this parameter.</p>
   91    125   
    /// <p>If you specify a value for <b>ParentSnapshotId</b>, omit this parameter.</p>
   92    126   
    /// <p>If you specify <code>true</code>, the snapshot is encrypted using the CMK specified using the <b>KmsKeyArn</b> parameter. If no value is specified for <b>KmsKeyArn</b>, the default CMK for your account is used. If no default CMK has been specified for your account, the AWS managed CMK is used. To set a default CMK for your account, use <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyEbsDefaultKmsKeyId.html"> ModifyEbsDefaultKmsKeyId</a>.</p>
   93    127   
    /// <p>If your account is enabled for encryption by default, you cannot set this parameter to <code>false</code>. In this case, you can omit this parameter.</p>
   94    128   
    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html#ebsapis-using-encryption"> Using encryption</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
         129  +
    /* StructureGenerator.kt:166 */
   95    130   
    pub fn encrypted(&self) -> ::std::option::Option<bool> {
         131  +
        /* StructureGenerator.kt:168 */
   96    132   
        self.encrypted
         133  +
        /* StructureGenerator.kt:166 */
   97    134   
    }
   98         -
    /// <p>The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) customer master key (CMK) to be used to encrypt the snapshot. If you do not specify a CMK, the default AWS managed CMK is used.</p>
         135  +
    /// /* StructureGenerator.kt:231 */<p>The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) customer master key (CMK) to be used to encrypt the snapshot. If you do not specify a CMK, the default AWS managed CMK is used.</p>
   99    136   
    /// <p>If you specify a <b>ParentSnapshotId</b>, omit this parameter; the snapshot will be encrypted using the same CMK that was used to encrypt the parent snapshot.</p>
  100    137   
    /// <p>If <b>Encrypted</b> is set to <code>true</code>, you must specify a CMK ARN.</p>
         138  +
    /* StructureGenerator.kt:166 */
  101    139   
    pub fn kms_key_arn(&self) -> ::std::option::Option<&str> {
         140  +
        /* StructureGenerator.kt:169 */
  102    141   
        self.kms_key_arn.as_deref()
         142  +
        /* StructureGenerator.kt:166 */
  103    143   
    }
  104         -
    /// <p>The ID of the parent snapshot. If there is no parent snapshot, or if you are creating the first snapshot for an on-premises volume, omit this parameter.</p>
         144  +
    /// /* StructureGenerator.kt:231 */<p>The ID of the parent snapshot. If there is no parent snapshot, or if you are creating the first snapshot for an on-premises volume, omit this parameter.</p>
  105    145   
    /// <p>If your account is enabled for encryption by default, you cannot use an unencrypted snapshot as a parent snapshot. You must first create an encrypted copy of the parent snapshot using <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CopySnapshot.html">CopySnapshot</a>.</p>
         146  +
    /* StructureGenerator.kt:166 */
  106    147   
    pub fn parent_snapshot_id(&self) -> ::std::option::Option<&str> {
         148  +
        /* StructureGenerator.kt:169 */
  107    149   
        self.parent_snapshot_id.as_deref()
         150  +
        /* StructureGenerator.kt:166 */
  108    151   
    }
  109         -
    /// <p>A description for the snapshot.</p>
         152  +
    /// /* StructureGenerator.kt:231 */<p>A description for the snapshot.</p>
         153  +
    /* StructureGenerator.kt:166 */
  110    154   
    pub fn description(&self) -> ::std::option::Option<&str> {
         155  +
        /* StructureGenerator.kt:169 */
  111    156   
        self.description.as_deref()
         157  +
        /* StructureGenerator.kt:166 */
  112    158   
    }
         159  +
    /* StructureGenerator.kt:135 */
  113    160   
}
         161  +
/* StructureGenerator.kt:101 */
  114    162   
impl ::std::fmt::Debug for StartSnapshotInput {
         163  +
    /* StructureGenerator.kt:105 */
  115    164   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         165  +
        /* StructureGenerator.kt:106 */
  116    166   
        let mut formatter = f.debug_struct("StartSnapshotInput");
         167  +
        /* StructureGenerator.kt:121 */
  117    168   
        formatter.field("timeout", &self.timeout);
         169  +
        /* StructureGenerator.kt:121 */
  118    170   
        formatter.field("client_token", &self.client_token);
         171  +
        /* StructureGenerator.kt:121 */
  119    172   
        formatter.field("volume_size", &self.volume_size);
         173  +
        /* StructureGenerator.kt:121 */
  120    174   
        formatter.field("tags", &self.tags);
         175  +
        /* StructureGenerator.kt:121 */
  121    176   
        formatter.field("encrypted", &self.encrypted);
         177  +
        /* StructureGenerator.kt:121 */
  122    178   
        formatter.field("kms_key_arn", &"*** Sensitive Data Redacted ***");
         179  +
        /* StructureGenerator.kt:121 */
  123    180   
        formatter.field("parent_snapshot_id", &self.parent_snapshot_id);
         181  +
        /* StructureGenerator.kt:121 */
  124    182   
        formatter.field("description", &self.description);
         183  +
        /* StructureGenerator.kt:126 */
  125    184   
        formatter.finish()
         185  +
        /* StructureGenerator.kt:105 */
  126    186   
    }
         187  +
    /* StructureGenerator.kt:101 */
  127    188   
}
         189  +
/* RustType.kt:516 */
  128    190   
#[allow(clippy::new_without_default)]
         191  +
/* RustType.kt:516 */
  129    192   
#[allow(clippy::too_many_arguments)]
         193  +
/* RustType.kt:516 */
  130    194   
#[::pyo3::pymethods]
         195  +
/* PythonServerStructureGenerator.kt:88 */
  131    196   
impl StartSnapshotInput {
  132    197   
    #[new]
  133    198   
    pub fn new(
         199  +
        volume_size: i64,
  134    200   
        timeout: ::std::option::Option<i32>,
  135    201   
        client_token: ::std::option::Option<::std::string::String>,
  136         -
        volume_size: i64,
  137    202   
        tags: ::std::option::Option<::std::vec::Vec<crate::model::Tag>>,
  138    203   
        encrypted: ::std::option::Option<bool>,
  139    204   
        kms_key_arn: ::std::option::Option<::std::string::String>,
  140    205   
        parent_snapshot_id: ::std::option::Option<::std::string::String>,
  141    206   
        description: ::std::option::Option<::std::string::String>,
  142    207   
    ) -> Self {
  143    208   
        Self {
         209  +
            volume_size,
  144    210   
            timeout,
  145    211   
            client_token,
  146         -
            volume_size,
  147    212   
            tags,
  148    213   
            encrypted,
  149    214   
            kms_key_arn,
  150    215   
            parent_snapshot_id,
  151    216   
            description,
  152    217   
        }
  153    218   
    }
  154    219   
    fn __repr__(&self) -> String {
  155    220   
        format!("{self:?}")
  156    221   
    }
  157    222   
    fn __str__(&self) -> String {
  158    223   
        format!("{self:?}")
  159    224   
    }
  160    225   
}
         226  +
/* PythonServerStructureGenerator.kt:111 */
  161    227   
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<StartSnapshotInput> {
  162    228   
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
  163    229   
        ob.extract::<StartSnapshotInput>().map(Box::new)
  164    230   
    }
  165    231   
}
  166    232   
  167    233   
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<StartSnapshotInput> {
  168    234   
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
  169    235   
        (*self).into_py(py)
  170    236   
    }
  171    237   
}
         238  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
  172    239   
impl crate::constrained::Constrained for crate::input::StartSnapshotInput {
  173    240   
    type Unconstrained = crate::input::start_snapshot_input_internal::Builder;
  174    241   
}
         242  +
/* ServerCodegenVisitor.kt:370 */
  175    243   
impl StartSnapshotInput {
  176         -
    /// Creates a new builder-style object to manufacture [`StartSnapshotInput`](crate::input::StartSnapshotInput).
         244  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`StartSnapshotInput`](crate::input::StartSnapshotInput).
         245  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  177    246   
    pub fn builder() -> crate::input::start_snapshot_input::Builder {
         247  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  178    248   
        crate::input::start_snapshot_input::Builder::default()
         249  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  179    250   
    }
         251  +
    /* ServerCodegenVisitor.kt:370 */
  180    252   
}
  181    253   
         254  +
/* RustType.kt:516 */
  182    255   
#[::pyo3::pyclass]
         256  +
/* PythonServerStructureGenerator.kt:63 */
  183    257   
/// :param snapshot_id str:
  184    258   
/// :param block_index int:
  185    259   
/// :param checksum str:
  186         -
/// :param progress typing.Optional\[int\]:
  187    260   
/// :param block_data ebs.types.ByteStream:
  188    261   
/// :param data_length int:
  189    262   
/// :param checksum_algorithm ebs.model.ChecksumAlgorithm:
         263  +
/// :param progress typing.Optional\[int\]:
  190    264   
/// :rtype None:
         265  +
/* StructureGenerator.kt:197 */
  191    266   
#[allow(missing_docs)] // documentation missing in model
         267  +
/* RustType.kt:516 */
  192    268   
#[derive(::std::clone::Clone)]
  193         -
pub struct PutSnapshotBlockInput {
         269  +
pub /* StructureGenerator.kt:201 */ struct PutSnapshotBlockInput {
         270  +
    /* RustType.kt:516 */
  194    271   
    #[pyo3(get, set)]
         272  +
    /* PythonServerStructureGenerator.kt:80 */
  195    273   
    /// :type str:
  196         -
    /// <p>The ID of the snapshot.</p>
         274  +
    /// /* StructureGenerator.kt:231 */<p>The ID of the snapshot.</p>
  197    275   
    pub snapshot_id: ::std::string::String,
         276  +
    /* RustType.kt:516 */
  198    277   
    #[pyo3(get, set)]
         278  +
    /* PythonServerStructureGenerator.kt:80 */
  199    279   
    /// :type int:
  200         -
    /// <p>The block index of the block in which to write the data. A block index is a logical index in units of <code>512</code> KiB blocks. To identify the block index, divide the logical offset of the data in the logical volume by the block size (logical offset of data/<code>524288</code>). The logical offset of the data must be <code>512</code> KiB aligned.</p>
         280  +
    /// /* StructureGenerator.kt:231 */<p>The block index of the block in which to write the data. A block index is a logical index in units of <code>512</code> KiB blocks. To identify the block index, divide the logical offset of the data in the logical volume by the block size (logical offset of data/<code>524288</code>). The logical offset of the data must be <code>512</code> KiB aligned.</p>
  201    281   
    pub block_index: i32,
         282  +
    /* RustType.kt:516 */
  202    283   
    #[pyo3(get, set)]
         284  +
    /* PythonServerStructureGenerator.kt:80 */
  203    285   
    /// :type str:
  204         -
    /// <p>A Base64-encoded SHA256 checksum of the data. Only SHA256 checksums are supported.</p>
         286  +
    /// /* StructureGenerator.kt:231 */<p>A Base64-encoded SHA256 checksum of the data. Only SHA256 checksums are supported.</p>
  205    287   
    pub checksum: ::std::string::String,
         288  +
    /* RustType.kt:516 */
  206    289   
    #[pyo3(get, set)]
         290  +
    /* PythonServerStructureGenerator.kt:80 */
  207    291   
    /// :type typing.Optional\[int\]:
  208         -
    /// <p>The progress of the write process, as a percentage.</p>
         292  +
    /// /* StructureGenerator.kt:231 */<p>The progress of the write process, as a percentage.</p>
  209    293   
    pub progress: ::std::option::Option<i32>,
         294  +
    /* RustType.kt:516 */
  210    295   
    #[pyo3(get, set)]
         296  +
    /* PythonServerStructureGenerator.kt:80 */
  211    297   
    /// :type ebs.types.ByteStream:
  212         -
    /// <p>The data to write to the block.</p>
         298  +
    /// /* StructureGenerator.kt:231 */<p>The data to write to the block.</p>
  213    299   
    /// <p>The block data is not signed as part of the Signature Version 4 signing process. As a result, you must generate and provide a Base64-encoded SHA256 checksum for the block data using the <b>x-amz-Checksum</b> header. Also, you must specify the checksum algorithm using the <b>x-amz-Checksum-Algorithm</b> header. The checksum that you provide is part of the Signature Version 4 signing process. It is validated against a checksum generated by Amazon EBS to ensure the validity and authenticity of the data. If the checksums do not correspond, the request fails. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html#ebsapis-using-checksums"> Using checksums with the EBS direct APIs</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
  214    300   
    pub block_data: ::aws_smithy_http_server_python::types::ByteStream,
         301  +
    /* RustType.kt:516 */
  215    302   
    #[pyo3(get, set)]
         303  +
    /* PythonServerStructureGenerator.kt:80 */
  216    304   
    /// :type int:
  217         -
    /// <p>The size of the data to write to the block, in bytes. Currently, the only supported size is <code>524288</code>.</p>
         305  +
    /// /* StructureGenerator.kt:231 */<p>The size of the data to write to the block, in bytes. Currently, the only supported size is <code>524288</code>.</p>
  218    306   
    /// <p>Valid values: <code>524288</code></p>
  219    307   
    pub data_length: i32,
         308  +
    /* RustType.kt:516 */
  220    309   
    #[pyo3(get, set)]
         310  +
    /* PythonServerStructureGenerator.kt:80 */
  221    311   
    /// :type ebs.model.ChecksumAlgorithm:
  222         -
    /// <p>The algorithm used to generate the checksum. Currently, the only supported algorithm is <code>SHA256</code>.</p>
         312  +
    /// /* StructureGenerator.kt:231 */<p>The algorithm used to generate the checksum. Currently, the only supported algorithm is <code>SHA256</code>.</p>
  223    313   
    pub checksum_algorithm: crate::model::ChecksumAlgorithm,
         314  +
    /* StructureGenerator.kt:201 */
  224    315   
}
         316  +
/* StructureGenerator.kt:135 */
  225    317   
impl PutSnapshotBlockInput {
  226         -
    /// <p>The ID of the snapshot.</p>
         318  +
    /// /* StructureGenerator.kt:231 */<p>The ID of the snapshot.</p>
         319  +
    /* StructureGenerator.kt:166 */
  227    320   
    pub fn snapshot_id(&self) -> &str {
         321  +
        /* StructureGenerator.kt:171 */
  228    322   
        use std::ops::Deref;
  229    323   
        self.snapshot_id.deref()
         324  +
        /* StructureGenerator.kt:166 */
  230    325   
    }
  231         -
    /// <p>The block index of the block in which to write the data. A block index is a logical index in units of <code>512</code> KiB blocks. To identify the block index, divide the logical offset of the data in the logical volume by the block size (logical offset of data/<code>524288</code>). The logical offset of the data must be <code>512</code> KiB aligned.</p>
         326  +
    /// /* StructureGenerator.kt:231 */<p>The block index of the block in which to write the data. A block index is a logical index in units of <code>512</code> KiB blocks. To identify the block index, divide the logical offset of the data in the logical volume by the block size (logical offset of data/<code>524288</code>). The logical offset of the data must be <code>512</code> KiB aligned.</p>
         327  +
    /* StructureGenerator.kt:166 */
  232    328   
    pub fn block_index(&self) -> i32 {
         329  +
        /* StructureGenerator.kt:168 */
  233    330   
        self.block_index
         331  +
        /* StructureGenerator.kt:166 */
  234    332   
    }
  235         -
    /// <p>A Base64-encoded SHA256 checksum of the data. Only SHA256 checksums are supported.</p>
         333  +
    /// /* StructureGenerator.kt:231 */<p>A Base64-encoded SHA256 checksum of the data. Only SHA256 checksums are supported.</p>
         334  +
    /* StructureGenerator.kt:166 */
  236    335   
    pub fn checksum(&self) -> &str {
         336  +
        /* StructureGenerator.kt:171 */
  237    337   
        use std::ops::Deref;
  238    338   
        self.checksum.deref()
         339  +
        /* StructureGenerator.kt:166 */
  239    340   
    }
  240         -
    /// <p>The progress of the write process, as a percentage.</p>
         341  +
    /// /* StructureGenerator.kt:231 */<p>The progress of the write process, as a percentage.</p>
         342  +
    /* StructureGenerator.kt:166 */
  241    343   
    pub fn progress(&self) -> ::std::option::Option<i32> {
         344  +
        /* StructureGenerator.kt:168 */
  242    345   
        self.progress
         346  +
        /* StructureGenerator.kt:166 */
  243    347   
    }
  244         -
    /// <p>The data to write to the block.</p>
         348  +
    /// /* StructureGenerator.kt:231 */<p>The data to write to the block.</p>
  245    349   
    /// <p>The block data is not signed as part of the Signature Version 4 signing process. As a result, you must generate and provide a Base64-encoded SHA256 checksum for the block data using the <b>x-amz-Checksum</b> header. Also, you must specify the checksum algorithm using the <b>x-amz-Checksum-Algorithm</b> header. The checksum that you provide is part of the Signature Version 4 signing process. It is validated against a checksum generated by Amazon EBS to ensure the validity and authenticity of the data. If the checksums do not correspond, the request fails. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html#ebsapis-using-checksums"> Using checksums with the EBS direct APIs</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
         350  +
    /* StructureGenerator.kt:166 */
  246    351   
    pub fn block_data(&self) -> &::aws_smithy_http_server_python::types::ByteStream {
         352  +
        /* StructureGenerator.kt:172 */
  247    353   
        &self.block_data
         354  +
        /* StructureGenerator.kt:166 */
  248    355   
    }
  249         -
    /// <p>The size of the data to write to the block, in bytes. Currently, the only supported size is <code>524288</code>.</p>
         356  +
    /// /* StructureGenerator.kt:231 */<p>The size of the data to write to the block, in bytes. Currently, the only supported size is <code>524288</code>.</p>
  250    357   
    /// <p>Valid values: <code>524288</code></p>
         358  +
    /* StructureGenerator.kt:166 */
  251    359   
    pub fn data_length(&self) -> i32 {
         360  +
        /* StructureGenerator.kt:168 */
  252    361   
        self.data_length
         362  +
        /* StructureGenerator.kt:166 */
  253    363   
    }
  254         -
    /// <p>The algorithm used to generate the checksum. Currently, the only supported algorithm is <code>SHA256</code>.</p>
         364  +
    /// /* StructureGenerator.kt:231 */<p>The algorithm used to generate the checksum. Currently, the only supported algorithm is <code>SHA256</code>.</p>
         365  +
    /* StructureGenerator.kt:166 */
  255    366   
    pub fn checksum_algorithm(&self) -> &crate::model::ChecksumAlgorithm {
         367  +
        /* StructureGenerator.kt:172 */
  256    368   
        &self.checksum_algorithm
         369  +
        /* StructureGenerator.kt:166 */
  257    370   
    }
         371  +
    /* StructureGenerator.kt:135 */
  258    372   
}
         373  +
/* StructureGenerator.kt:101 */
  259    374   
impl ::std::fmt::Debug for PutSnapshotBlockInput {
         375  +
    /* StructureGenerator.kt:105 */
  260    376   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         377  +
        /* StructureGenerator.kt:106 */
  261    378   
        let mut formatter = f.debug_struct("PutSnapshotBlockInput");
         379  +
        /* StructureGenerator.kt:121 */
  262    380   
        formatter.field("snapshot_id", &self.snapshot_id);
         381  +
        /* StructureGenerator.kt:121 */
  263    382   
        formatter.field("block_index", &self.block_index);
         383  +
        /* StructureGenerator.kt:121 */
  264    384   
        formatter.field("checksum", &self.checksum);
         385  +
        /* StructureGenerator.kt:121 */
  265    386   
        formatter.field("progress", &self.progress);
         387  +
        /* StructureGenerator.kt:121 */
  266    388   
        formatter.field("block_data", &"*** Sensitive Data Redacted ***");
         389  +
        /* StructureGenerator.kt:121 */
  267    390   
        formatter.field("data_length", &self.data_length);
         391  +
        /* StructureGenerator.kt:121 */
  268    392   
        formatter.field("checksum_algorithm", &self.checksum_algorithm);
         393  +
        /* StructureGenerator.kt:126 */
  269    394   
        formatter.finish()
         395  +
        /* StructureGenerator.kt:105 */
  270    396   
    }
         397  +
    /* StructureGenerator.kt:101 */
  271    398   
}
         399  +
/* RustType.kt:516 */
  272    400   
#[allow(clippy::new_without_default)]
         401  +
/* RustType.kt:516 */
  273    402   
#[allow(clippy::too_many_arguments)]
         403  +
/* RustType.kt:516 */
  274    404   
#[::pyo3::pymethods]
         405  +
/* PythonServerStructureGenerator.kt:88 */
  275    406   
impl PutSnapshotBlockInput {
  276    407   
    #[new]
  277    408   
    pub fn new(
  278    409   
        snapshot_id: ::std::string::String,
  279    410   
        block_index: i32,
  280    411   
        checksum: ::std::string::String,
  281         -
        progress: ::std::option::Option<i32>,
  282    412   
        block_data: ::aws_smithy_http_server_python::types::ByteStream,
  283    413   
        data_length: i32,
  284    414   
        checksum_algorithm: crate::model::ChecksumAlgorithm,
         415  +
        progress: ::std::option::Option<i32>,
  285    416   
    ) -> Self {
  286    417   
        Self {
  287    418   
            snapshot_id,
  288    419   
            block_index,
  289    420   
            checksum,
  290         -
            progress,
  291    421   
            block_data,
  292    422   
            data_length,
  293    423   
            checksum_algorithm,
         424  +
            progress,
  294    425   
        }
  295    426   
    }
  296    427   
    fn __repr__(&self) -> String {
  297    428   
        format!("{self:?}")
  298    429   
    }
  299    430   
    fn __str__(&self) -> String {
  300    431   
        format!("{self:?}")
  301    432   
    }
  302    433   
}
         434  +
/* PythonServerStructureGenerator.kt:111 */
  303    435   
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<PutSnapshotBlockInput> {
  304    436   
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
  305    437   
        ob.extract::<PutSnapshotBlockInput>().map(Box::new)
  306    438   
    }
  307    439   
}
  308    440   
  309    441   
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<PutSnapshotBlockInput> {
  310    442   
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
  311    443   
        (*self).into_py(py)
  312    444   
    }
  313    445   
}
         446  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
  314    447   
impl crate::constrained::Constrained for crate::input::PutSnapshotBlockInput {
  315    448   
    type Unconstrained = crate::input::put_snapshot_block_input_internal::Builder;
  316    449   
}
         450  +
/* ServerCodegenVisitor.kt:370 */
  317    451   
impl PutSnapshotBlockInput {
  318         -
    /// Creates a new builder-style object to manufacture [`PutSnapshotBlockInput`](crate::input::PutSnapshotBlockInput).
         452  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`PutSnapshotBlockInput`](crate::input::PutSnapshotBlockInput).
         453  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  319    454   
    pub fn builder() -> crate::input::put_snapshot_block_input::Builder {
         455  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  320    456   
        crate::input::put_snapshot_block_input::Builder::default()
         457  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  321    458   
    }
         459  +
    /* ServerCodegenVisitor.kt:370 */
  322    460   
}
  323    461   
         462  +
/* RustType.kt:516 */
  324    463   
#[::pyo3::pyclass]
         464  +
/* PythonServerStructureGenerator.kt:63 */
         465  +
/// :param snapshot_id str:
  325    466   
/// :param max_results typing.Optional\[int\]:
  326    467   
/// :param starting_block_index typing.Optional\[int\]:
  327    468   
/// :param next_token typing.Optional\[str\]:
  328         -
/// :param snapshot_id str:
  329    469   
/// :rtype None:
         470  +
/* StructureGenerator.kt:197 */
  330    471   
#[allow(missing_docs)] // documentation missing in model
         472  +
/* RustType.kt:516 */
  331    473   
#[derive(
  332    474   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  333    475   
)]
  334         -
pub struct ListSnapshotBlocksInput {
         476  +
pub /* StructureGenerator.kt:201 */ struct ListSnapshotBlocksInput {
         477  +
    /* RustType.kt:516 */
  335    478   
    #[pyo3(get, set)]
         479  +
    /* PythonServerStructureGenerator.kt:80 */
  336    480   
    /// :type typing.Optional\[int\]:
  337         -
    /// <p>The number of results to return.</p>
         481  +
    /// /* StructureGenerator.kt:231 */<p>The number of results to return.</p>
  338    482   
    pub max_results: ::std::option::Option<i32>,
         483  +
    /* RustType.kt:516 */
  339    484   
    #[pyo3(get, set)]
         485  +
    /* PythonServerStructureGenerator.kt:80 */
  340    486   
    /// :type typing.Optional\[int\]:
  341         -
    /// <p>The block index from which the list should start. The list in the response will start from this block index or the next valid block index in the snapshot.</p>
         487  +
    /// /* StructureGenerator.kt:231 */<p>The block index from which the list should start. The list in the response will start from this block index or the next valid block index in the snapshot.</p>
  342    488   
    pub starting_block_index: ::std::option::Option<i32>,
         489  +
    /* RustType.kt:516 */
  343    490   
    #[pyo3(get, set)]
         491  +
    /* PythonServerStructureGenerator.kt:80 */
  344    492   
    /// :type typing.Optional\[str\]:
  345         -
    /// <p>The token to request the next page of results.</p>
         493  +
    /// /* StructureGenerator.kt:231 */<p>The token to request the next page of results.</p>
  346    494   
    pub next_token: ::std::option::Option<::std::string::String>,
         495  +
    /* RustType.kt:516 */
  347    496   
    #[pyo3(get, set)]
         497  +
    /* PythonServerStructureGenerator.kt:80 */
  348    498   
    /// :type str:
  349         -
    /// <p>The ID of the snapshot from which to get block indexes and block tokens.</p>
         499  +
    /// /* StructureGenerator.kt:231 */<p>The ID of the snapshot from which to get block indexes and block tokens.</p>
  350    500   
    pub snapshot_id: ::std::string::String,
         501  +
    /* StructureGenerator.kt:201 */
  351    502   
}
         503  +
/* StructureGenerator.kt:135 */
  352    504   
impl ListSnapshotBlocksInput {
  353         -
    /// <p>The number of results to return.</p>
         505  +
    /// /* StructureGenerator.kt:231 */<p>The number of results to return.</p>
         506  +
    /* StructureGenerator.kt:166 */
  354    507   
    pub fn max_results(&self) -> ::std::option::Option<i32> {
         508  +
        /* StructureGenerator.kt:168 */
  355    509   
        self.max_results
         510  +
        /* StructureGenerator.kt:166 */
  356    511   
    }
  357         -
    /// <p>The block index from which the list should start. The list in the response will start from this block index or the next valid block index in the snapshot.</p>
         512  +
    /// /* StructureGenerator.kt:231 */<p>The block index from which the list should start. The list in the response will start from this block index or the next valid block index in the snapshot.</p>
         513  +
    /* StructureGenerator.kt:166 */
  358    514   
    pub fn starting_block_index(&self) -> ::std::option::Option<i32> {
         515  +
        /* StructureGenerator.kt:168 */
  359    516   
        self.starting_block_index
         517  +
        /* StructureGenerator.kt:166 */
  360    518   
    }
  361         -
    /// <p>The token to request the next page of results.</p>
         519  +
    /// /* StructureGenerator.kt:231 */<p>The token to request the next page of results.</p>
         520  +
    /* StructureGenerator.kt:166 */
  362    521   
    pub fn next_token(&self) -> ::std::option::Option<&str> {
         522  +
        /* StructureGenerator.kt:169 */
  363    523   
        self.next_token.as_deref()
         524  +
        /* StructureGenerator.kt:166 */
  364    525   
    }
  365         -
    /// <p>The ID of the snapshot from which to get block indexes and block tokens.</p>
         526  +
    /// /* StructureGenerator.kt:231 */<p>The ID of the snapshot from which to get block indexes and block tokens.</p>
         527  +
    /* StructureGenerator.kt:166 */
  366    528   
    pub fn snapshot_id(&self) -> &str {
         529  +
        /* StructureGenerator.kt:171 */
  367    530   
        use std::ops::Deref;
  368    531   
        self.snapshot_id.deref()
         532  +
        /* StructureGenerator.kt:166 */
  369    533   
    }
         534  +
    /* StructureGenerator.kt:135 */
  370    535   
}
         536  +
/* RustType.kt:516 */
  371    537   
#[allow(clippy::new_without_default)]
         538  +
/* RustType.kt:516 */
  372    539   
#[allow(clippy::too_many_arguments)]
         540  +
/* RustType.kt:516 */
  373    541   
#[::pyo3::pymethods]
         542  +
/* PythonServerStructureGenerator.kt:88 */
  374    543   
impl ListSnapshotBlocksInput {
  375    544   
    #[new]
  376    545   
    pub fn new(
         546  +
        snapshot_id: ::std::string::String,
  377    547   
        max_results: ::std::option::Option<i32>,
  378    548   
        starting_block_index: ::std::option::Option<i32>,
  379    549   
        next_token: ::std::option::Option<::std::string::String>,
  380         -
        snapshot_id: ::std::string::String,
  381    550   
    ) -> Self {
  382    551   
        Self {
         552  +
            snapshot_id,
  383    553   
            max_results,
  384    554   
            starting_block_index,
  385    555   
            next_token,
  386         -
            snapshot_id,
  387    556   
        }
  388    557   
    }
  389    558   
    fn __repr__(&self) -> String {
  390    559   
        format!("{self:?}")
  391    560   
    }
  392    561   
    fn __str__(&self) -> String {
  393    562   
        format!("{self:?}")
  394    563   
    }
  395    564   
}
         565  +
/* PythonServerStructureGenerator.kt:111 */
  396    566   
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<ListSnapshotBlocksInput> {
  397    567   
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
  398    568   
        ob.extract::<ListSnapshotBlocksInput>().map(Box::new)
  399    569   
    }
  400    570   
}
  401    571   
  402    572   
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<ListSnapshotBlocksInput> {
  403    573   
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
  404    574   
        (*self).into_py(py)
  405    575   
    }
  406    576   
}
         577  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
  407    578   
impl crate::constrained::Constrained for crate::input::ListSnapshotBlocksInput {
  408    579   
    type Unconstrained = crate::input::list_snapshot_blocks_input_internal::Builder;
  409    580   
}
         581  +
/* ServerCodegenVisitor.kt:370 */
  410    582   
impl ListSnapshotBlocksInput {
  411         -
    /// Creates a new builder-style object to manufacture [`ListSnapshotBlocksInput`](crate::input::ListSnapshotBlocksInput).
         583  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ListSnapshotBlocksInput`](crate::input::ListSnapshotBlocksInput).
         584  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  412    585   
    pub fn builder() -> crate::input::list_snapshot_blocks_input::Builder {
         586  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  413    587   
        crate::input::list_snapshot_blocks_input::Builder::default()
         588  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  414    589   
    }
         590  +
    /* ServerCodegenVisitor.kt:370 */
  415    591   
}
  416    592   
         593  +
/* RustType.kt:516 */
  417    594   
#[::pyo3::pyclass]
         595  +
/* PythonServerStructureGenerator.kt:63 */
  418    596   
/// :param second_snapshot_id str:
  419    597   
/// :param first_snapshot_id typing.Optional\[str\]:
  420    598   
/// :param next_token typing.Optional\[str\]:
  421    599   
/// :param max_results typing.Optional\[int\]:
  422    600   
/// :param starting_block_index typing.Optional\[int\]:
  423    601   
/// :rtype None:
         602  +
/* StructureGenerator.kt:197 */
  424    603   
#[allow(missing_docs)] // documentation missing in model
         604  +
/* RustType.kt:516 */
  425    605   
#[derive(
  426    606   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  427    607   
)]
  428         -
pub struct ListChangedBlocksInput {
         608  +
pub /* StructureGenerator.kt:201 */ struct ListChangedBlocksInput {
         609  +
    /* RustType.kt:516 */
  429    610   
    #[pyo3(get, set)]
         611  +
    /* PythonServerStructureGenerator.kt:80 */
  430    612   
    /// :type str:
  431         -
    /// <p>The ID of the second snapshot to use for the comparison.</p><important>
         613  +
    /// /* StructureGenerator.kt:231 */<p>The ID of the second snapshot to use for the comparison.</p><important>
  432    614   
    /// <p>The <code>SecondSnapshotId</code> parameter must be specified with a <code>FirstSnapshotID</code> parameter; otherwise, an error occurs.</p>
  433    615   
    /// </important>
  434    616   
    pub second_snapshot_id: ::std::string::String,
         617  +
    /* RustType.kt:516 */
  435    618   
    #[pyo3(get, set)]
         619  +
    /* PythonServerStructureGenerator.kt:80 */
  436    620   
    /// :type typing.Optional\[str\]:
  437         -
    /// <p>The ID of the first snapshot to use for the comparison.</p><important>
         621  +
    /// /* StructureGenerator.kt:231 */<p>The ID of the first snapshot to use for the comparison.</p><important>
  438    622   
    /// <p>The <code>FirstSnapshotID</code> parameter must be specified with a <code>SecondSnapshotId</code> parameter; otherwise, an error occurs.</p>
  439    623   
    /// </important>
  440    624   
    pub first_snapshot_id: ::std::option::Option<::std::string::String>,
         625  +
    /* RustType.kt:516 */
  441    626   
    #[pyo3(get, set)]
         627  +
    /* PythonServerStructureGenerator.kt:80 */
  442    628   
    /// :type typing.Optional\[str\]:
  443         -
    /// <p>The token to request the next page of results.</p>
         629  +
    /// /* StructureGenerator.kt:231 */<p>The token to request the next page of results.</p>
  444    630   
    pub next_token: ::std::option::Option<::std::string::String>,
         631  +
    /* RustType.kt:516 */
  445    632   
    #[pyo3(get, set)]
         633  +
    /* PythonServerStructureGenerator.kt:80 */
  446    634   
    /// :type typing.Optional\[int\]:
  447         -
    /// <p>The number of results to return.</p>
         635  +
    /// /* StructureGenerator.kt:231 */<p>The number of results to return.</p>
  448    636   
    pub max_results: ::std::option::Option<i32>,
         637  +
    /* RustType.kt:516 */
  449    638   
    #[pyo3(get, set)]
         639  +
    /* PythonServerStructureGenerator.kt:80 */
  450    640   
    /// :type typing.Optional\[int\]:
  451         -
    /// <p>The block index from which the comparison should start.</p>
         641  +
    /// /* StructureGenerator.kt:231 */<p>The block index from which the comparison should start.</p>
  452    642   
    /// <p>The list in the response will start from this block index or the next valid block index in the snapshots.</p>
  453    643   
    pub starting_block_index: ::std::option::Option<i32>,
         644  +
    /* StructureGenerator.kt:201 */
  454    645   
}
         646  +
/* StructureGenerator.kt:135 */
  455    647   
impl ListChangedBlocksInput {
  456         -
    /// <p>The ID of the second snapshot to use for the comparison.</p><important>
         648  +
    /// /* StructureGenerator.kt:231 */<p>The ID of the second snapshot to use for the comparison.</p><important>
  457    649   
    /// <p>The <code>SecondSnapshotId</code> parameter must be specified with a <code>FirstSnapshotID</code> parameter; otherwise, an error occurs.</p>
  458    650   
    /// </important>
         651  +
    /* StructureGenerator.kt:166 */
  459    652   
    pub fn second_snapshot_id(&self) -> &str {
         653  +
        /* StructureGenerator.kt:171 */
  460    654   
        use std::ops::Deref;
  461    655   
        self.second_snapshot_id.deref()
         656  +
        /* StructureGenerator.kt:166 */
  462    657   
    }
  463         -
    /// <p>The ID of the first snapshot to use for the comparison.</p><important>
         658  +
    /// /* StructureGenerator.kt:231 */<p>The ID of the first snapshot to use for the comparison.</p><important>
  464    659   
    /// <p>The <code>FirstSnapshotID</code> parameter must be specified with a <code>SecondSnapshotId</code> parameter; otherwise, an error occurs.</p>
  465    660   
    /// </important>
         661  +
    /* StructureGenerator.kt:166 */
  466    662   
    pub fn first_snapshot_id(&self) -> ::std::option::Option<&str> {
         663  +
        /* StructureGenerator.kt:169 */
  467    664   
        self.first_snapshot_id.as_deref()
         665  +
        /* StructureGenerator.kt:166 */
  468    666   
    }
  469         -
    /// <p>The token to request the next page of results.</p>
         667  +
    /// /* StructureGenerator.kt:231 */<p>The token to request the next page of results.</p>
         668  +
    /* StructureGenerator.kt:166 */
  470    669   
    pub fn next_token(&self) -> ::std::option::Option<&str> {
         670  +
        /* StructureGenerator.kt:169 */
  471    671   
        self.next_token.as_deref()
         672  +
        /* StructureGenerator.kt:166 */
  472    673   
    }
  473         -
    /// <p>The number of results to return.</p>
         674  +
    /// /* StructureGenerator.kt:231 */<p>The number of results to return.</p>
         675  +
    /* StructureGenerator.kt:166 */
  474    676   
    pub fn max_results(&self) -> ::std::option::Option<i32> {
         677  +
        /* StructureGenerator.kt:168 */
  475    678   
        self.max_results
         679  +
        /* StructureGenerator.kt:166 */
  476    680   
    }
  477         -
    /// <p>The block index from which the comparison should start.</p>
         681  +
    /// /* StructureGenerator.kt:231 */<p>The block index from which the comparison should start.</p>
  478    682   
    /// <p>The list in the response will start from this block index or the next valid block index in the snapshots.</p>
         683  +
    /* StructureGenerator.kt:166 */
  479    684   
    pub fn starting_block_index(&self) -> ::std::option::Option<i32> {
         685  +
        /* StructureGenerator.kt:168 */
  480    686   
        self.starting_block_index
         687  +
        /* StructureGenerator.kt:166 */
  481    688   
    }
         689  +
    /* StructureGenerator.kt:135 */
  482    690   
}
         691  +
/* RustType.kt:516 */
  483    692   
#[allow(clippy::new_without_default)]
         693  +
/* RustType.kt:516 */
  484    694   
#[allow(clippy::too_many_arguments)]
         695  +
/* RustType.kt:516 */
  485    696   
#[::pyo3::pymethods]
         697  +
/* PythonServerStructureGenerator.kt:88 */
  486    698   
impl ListChangedBlocksInput {
  487    699   
    #[new]
  488    700   
    pub fn new(
  489    701   
        second_snapshot_id: ::std::string::String,
  490    702   
        first_snapshot_id: ::std::option::Option<::std::string::String>,
  491    703   
        next_token: ::std::option::Option<::std::string::String>,
  492    704   
        max_results: ::std::option::Option<i32>,
  493    705   
        starting_block_index: ::std::option::Option<i32>,
  494    706   
    ) -> Self {
  495    707   
        Self {
  496    708   
            second_snapshot_id,
  497    709   
            first_snapshot_id,
  498    710   
            next_token,
  499    711   
            max_results,
  500    712   
            starting_block_index,
  501    713   
        }
  502    714   
    }
  503    715   
    fn __repr__(&self) -> String {
  504    716   
        format!("{self:?}")
  505    717   
    }
  506    718   
    fn __str__(&self) -> String {
  507    719   
        format!("{self:?}")
  508    720   
    }
  509    721   
}
         722  +
/* PythonServerStructureGenerator.kt:111 */
  510    723   
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<ListChangedBlocksInput> {
  511    724   
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
  512    725   
        ob.extract::<ListChangedBlocksInput>().map(Box::new)
  513    726   
    }
  514    727   
}
  515    728   
  516    729   
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<ListChangedBlocksInput> {
  517    730   
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
  518    731   
        (*self).into_py(py)
  519    732   
    }
  520    733   
}
         734  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
  521    735   
impl crate::constrained::Constrained for crate::input::ListChangedBlocksInput {
  522    736   
    type Unconstrained = crate::input::list_changed_blocks_input_internal::Builder;
  523    737   
}
         738  +
/* ServerCodegenVisitor.kt:370 */
  524    739   
impl ListChangedBlocksInput {
  525         -
    /// Creates a new builder-style object to manufacture [`ListChangedBlocksInput`](crate::input::ListChangedBlocksInput).
         740  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ListChangedBlocksInput`](crate::input::ListChangedBlocksInput).
         741  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  526    742   
    pub fn builder() -> crate::input::list_changed_blocks_input::Builder {
         743  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  527    744   
        crate::input::list_changed_blocks_input::Builder::default()
         745  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  528    746   
    }
         747  +
    /* ServerCodegenVisitor.kt:370 */
  529    748   
}
  530    749   
         750  +
/* RustType.kt:516 */
  531    751   
#[::pyo3::pyclass]
         752  +
/* PythonServerStructureGenerator.kt:63 */
  532    753   
/// :param snapshot_id str:
  533    754   
/// :param block_token str:
  534    755   
/// :param block_index int:
  535    756   
/// :rtype None:
         757  +
/* StructureGenerator.kt:197 */
  536    758   
#[allow(missing_docs)] // documentation missing in model
         759  +
/* RustType.kt:516 */
  537    760   
#[derive(
  538    761   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  539    762   
)]
  540         -
pub struct GetSnapshotBlockInput {
         763  +
pub /* StructureGenerator.kt:201 */ struct GetSnapshotBlockInput {
         764  +
    /* RustType.kt:516 */
  541    765   
    #[pyo3(get, set)]
         766  +
    /* PythonServerStructureGenerator.kt:80 */
  542    767   
    /// :type str:
  543         -
    /// <p>The ID of the snapshot containing the block from which to get data.</p>
         768  +
    /// /* StructureGenerator.kt:231 */<p>The ID of the snapshot containing the block from which to get data.</p>
  544    769   
    pub snapshot_id: ::std::string::String,
         770  +
    /* RustType.kt:516 */
  545    771   
    #[pyo3(get, set)]
         772  +
    /* PythonServerStructureGenerator.kt:80 */
  546    773   
    /// :type str:
  547         -
    /// <p>The block token of the block from which to get data.</p>
         774  +
    /// /* StructureGenerator.kt:231 */<p>The block token of the block from which to get data.</p>
  548    775   
    /// <p>Obtain the <code>BlockToken</code> by running the <code>ListChangedBlocks</code> or <code>ListSnapshotBlocks</code> operations.</p>
  549    776   
    pub block_token: ::std::string::String,
         777  +
    /* RustType.kt:516 */
  550    778   
    #[pyo3(get, set)]
         779  +
    /* PythonServerStructureGenerator.kt:80 */
  551    780   
    /// :type int:
  552         -
    /// <p>The block index of the block from which to get data.</p>
         781  +
    /// /* StructureGenerator.kt:231 */<p>The block index of the block from which to get data.</p>
  553    782   
    /// <p>Obtain the <code>BlockIndex</code> by running the <code>ListChangedBlocks</code> or <code>ListSnapshotBlocks</code> operations.</p>
  554    783   
    pub block_index: i32,
         784  +
    /* StructureGenerator.kt:201 */
  555    785   
}
         786  +
/* StructureGenerator.kt:135 */
  556    787   
impl GetSnapshotBlockInput {
  557         -
    /// <p>The ID of the snapshot containing the block from which to get data.</p>
         788  +
    /// /* StructureGenerator.kt:231 */<p>The ID of the snapshot containing the block from which to get data.</p>
         789  +
    /* StructureGenerator.kt:166 */
  558    790   
    pub fn snapshot_id(&self) -> &str {
         791  +
        /* StructureGenerator.kt:171 */
  559    792   
        use std::ops::Deref;
  560    793   
        self.snapshot_id.deref()
         794  +
        /* StructureGenerator.kt:166 */
  561    795   
    }
  562         -
    /// <p>The block token of the block from which to get data.</p>
         796  +
    /// /* StructureGenerator.kt:231 */<p>The block token of the block from which to get data.</p>
  563    797   
    /// <p>Obtain the <code>BlockToken</code> by running the <code>ListChangedBlocks</code> or <code>ListSnapshotBlocks</code> operations.</p>
         798  +
    /* StructureGenerator.kt:166 */
  564    799   
    pub fn block_token(&self) -> &str {
         800  +
        /* StructureGenerator.kt:171 */
  565    801   
        use std::ops::Deref;
  566    802   
        self.block_token.deref()
         803  +
        /* StructureGenerator.kt:166 */
  567    804   
    }
  568         -
    /// <p>The block index of the block from which to get data.</p>
         805  +
    /// /* StructureGenerator.kt:231 */<p>The block index of the block from which to get data.</p>
  569    806   
    /// <p>Obtain the <code>BlockIndex</code> by running the <code>ListChangedBlocks</code> or <code>ListSnapshotBlocks</code> operations.</p>
         807  +
    /* StructureGenerator.kt:166 */
  570    808   
    pub fn block_index(&self) -> i32 {
         809  +
        /* StructureGenerator.kt:168 */
  571    810   
        self.block_index
         811  +
        /* StructureGenerator.kt:166 */
  572    812   
    }
         813  +
    /* StructureGenerator.kt:135 */
  573    814   
}
         815  +
/* RustType.kt:516 */
  574    816   
#[allow(clippy::new_without_default)]
         817  +
/* RustType.kt:516 */
  575    818   
#[allow(clippy::too_many_arguments)]
         819  +
/* RustType.kt:516 */
  576    820   
#[::pyo3::pymethods]
         821  +
/* PythonServerStructureGenerator.kt:88 */
  577    822   
impl GetSnapshotBlockInput {
  578    823   
    #[new]
  579    824   
    pub fn new(
  580    825   
        snapshot_id: ::std::string::String,
  581    826   
        block_token: ::std::string::String,
  582    827   
        block_index: i32,
  583    828   
    ) -> Self {
  584    829   
        Self {
  585    830   
            snapshot_id,
  586    831   
            block_token,
  587    832   
            block_index,
  588    833   
        }
  589    834   
    }
  590    835   
    fn __repr__(&self) -> String {
  591    836   
        format!("{self:?}")
  592    837   
    }
  593    838   
    fn __str__(&self) -> String {
  594    839   
        format!("{self:?}")
  595    840   
    }
  596    841   
}
         842  +
/* PythonServerStructureGenerator.kt:111 */
  597    843   
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<GetSnapshotBlockInput> {
  598    844   
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
  599    845   
        ob.extract::<GetSnapshotBlockInput>().map(Box::new)
  600    846   
    }
  601    847   
}
  602    848   
  603    849   
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<GetSnapshotBlockInput> {
  604    850   
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
  605    851   
        (*self).into_py(py)
  606    852   
    }
  607    853   
}
         854  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
  608    855   
impl crate::constrained::Constrained for crate::input::GetSnapshotBlockInput {
  609    856   
    type Unconstrained = crate::input::get_snapshot_block_input_internal::Builder;
  610    857   
}
         858  +
/* ServerCodegenVisitor.kt:370 */
  611    859   
impl GetSnapshotBlockInput {
  612         -
    /// Creates a new builder-style object to manufacture [`GetSnapshotBlockInput`](crate::input::GetSnapshotBlockInput).
         860  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`GetSnapshotBlockInput`](crate::input::GetSnapshotBlockInput).
         861  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  613    862   
    pub fn builder() -> crate::input::get_snapshot_block_input::Builder {
         863  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  614    864   
        crate::input::get_snapshot_block_input::Builder::default()
         865  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  615    866   
    }
         867  +
    /* ServerCodegenVisitor.kt:370 */
  616    868   
}
  617    869   
         870  +
/* RustType.kt:516 */
  618    871   
#[::pyo3::pyclass]
         872  +
/* PythonServerStructureGenerator.kt:63 */
  619    873   
/// :param changed_blocks_count int:
         874  +
/// :param snapshot_id str:
  620    875   
/// :param checksum_aggregation_method typing.Optional\[ebs.model.ChecksumAggregationMethod\]:
  621    876   
/// :param checksum_algorithm typing.Optional\[ebs.model.ChecksumAlgorithm\]:
  622         -
/// :param snapshot_id str:
  623    877   
/// :param checksum typing.Optional\[str\]:
  624    878   
/// :rtype None:
         879  +
/* StructureGenerator.kt:197 */
  625    880   
#[allow(missing_docs)] // documentation missing in model
         881  +
/* RustType.kt:516 */
  626    882   
#[derive(
  627    883   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  628    884   
)]
  629         -
pub struct CompleteSnapshotInput {
         885  +
pub /* StructureGenerator.kt:201 */ struct CompleteSnapshotInput {
         886  +
    /* RustType.kt:516 */
  630    887   
    #[pyo3(get, set)]
         888  +
    /* PythonServerStructureGenerator.kt:80 */
  631    889   
    /// :type int:
  632         -
    /// <p>The number of blocks that were written to the snapshot.</p>
         890  +
    /// /* StructureGenerator.kt:231 */<p>The number of blocks that were written to the snapshot.</p>
  633    891   
    pub changed_blocks_count: i32,
         892  +
    /* RustType.kt:516 */
  634    893   
    #[pyo3(get, set)]
         894  +
    /* PythonServerStructureGenerator.kt:80 */
  635    895   
    /// :type typing.Optional\[ebs.model.ChecksumAggregationMethod\]:
  636         -
    /// <p>The aggregation method used to generate the checksum. Currently, the only supported aggregation method is <code>LINEAR</code>.</p>
         896  +
    /// /* StructureGenerator.kt:231 */<p>The aggregation method used to generate the checksum. Currently, the only supported aggregation method is <code>LINEAR</code>.</p>
  637    897   
    pub checksum_aggregation_method: ::std::option::Option<crate::model::ChecksumAggregationMethod>,
         898  +
    /* RustType.kt:516 */
  638    899   
    #[pyo3(get, set)]
         900  +
    /* PythonServerStructureGenerator.kt:80 */
  639    901   
    /// :type typing.Optional\[ebs.model.ChecksumAlgorithm\]:
  640         -
    /// <p>The algorithm used to generate the checksum. Currently, the only supported algorithm is <code>SHA256</code>.</p>
         902  +
    /// /* StructureGenerator.kt:231 */<p>The algorithm used to generate the checksum. Currently, the only supported algorithm is <code>SHA256</code>.</p>
  641    903   
    pub checksum_algorithm: ::std::option::Option<crate::model::ChecksumAlgorithm>,
         904  +
    /* RustType.kt:516 */
  642    905   
    #[pyo3(get, set)]
         906  +
    /* PythonServerStructureGenerator.kt:80 */
  643    907   
    /// :type str:
  644         -
    /// <p>The ID of the snapshot.</p>
         908  +
    /// /* StructureGenerator.kt:231 */<p>The ID of the snapshot.</p>
  645    909   
    pub snapshot_id: ::std::string::String,
         910  +
    /* RustType.kt:516 */
  646    911   
    #[pyo3(get, set)]
         912  +
    /* PythonServerStructureGenerator.kt:80 */
  647    913   
    /// :type typing.Optional\[str\]:
  648         -
    /// <p>An aggregated Base-64 SHA256 checksum based on the checksums of each written block.</p>
         914  +
    /// /* StructureGenerator.kt:231 */<p>An aggregated Base-64 SHA256 checksum based on the checksums of each written block.</p>
  649    915   
    /// <p>To generate the aggregated checksum using the linear aggregation method, arrange the checksums for each written block in ascending order of their block index, concatenate them to form a single string, and then generate the checksum on the entire string using the SHA256 algorithm.</p>
  650    916   
    pub checksum: ::std::option::Option<::std::string::String>,
         917  +
    /* StructureGenerator.kt:201 */
  651    918   
}
         919  +
/* StructureGenerator.kt:135 */
  652    920   
impl CompleteSnapshotInput {
  653         -
    /// <p>The number of blocks that were written to the snapshot.</p>
         921  +
    /// /* StructureGenerator.kt:231 */<p>The number of blocks that were written to the snapshot.</p>
         922  +
    /* StructureGenerator.kt:166 */
  654    923   
    pub fn changed_blocks_count(&self) -> i32 {
         924  +
        /* StructureGenerator.kt:168 */
  655    925   
        self.changed_blocks_count
         926  +
        /* StructureGenerator.kt:166 */
  656    927   
    }
  657         -
    /// <p>The aggregation method used to generate the checksum. Currently, the only supported aggregation method is <code>LINEAR</code>.</p>
         928  +
    /// /* StructureGenerator.kt:231 */<p>The aggregation method used to generate the checksum. Currently, the only supported aggregation method is <code>LINEAR</code>.</p>
         929  +
    /* StructureGenerator.kt:166 */
  658    930   
    pub fn checksum_aggregation_method(
  659    931   
        &self,
  660    932   
    ) -> ::std::option::Option<&crate::model::ChecksumAggregationMethod> {
         933  +
        /* StructureGenerator.kt:170 */
  661    934   
        self.checksum_aggregation_method.as_ref()
         935  +
        /* StructureGenerator.kt:166 */
  662    936   
    }
  663         -
    /// <p>The algorithm used to generate the checksum. Currently, the only supported algorithm is <code>SHA256</code>.</p>
         937  +
    /// /* StructureGenerator.kt:231 */<p>The algorithm used to generate the checksum. Currently, the only supported algorithm is <code>SHA256</code>.</p>
         938  +
    /* StructureGenerator.kt:166 */
  664    939   
    pub fn checksum_algorithm(&self) -> ::std::option::Option<&crate::model::ChecksumAlgorithm> {
         940  +
        /* StructureGenerator.kt:170 */
  665    941   
        self.checksum_algorithm.as_ref()
         942  +
        /* StructureGenerator.kt:166 */
  666    943   
    }
  667         -
    /// <p>The ID of the snapshot.</p>
         944  +
    /// /* StructureGenerator.kt:231 */<p>The ID of the snapshot.</p>
         945  +
    /* StructureGenerator.kt:166 */
  668    946   
    pub fn snapshot_id(&self) -> &str {
         947  +
        /* StructureGenerator.kt:171 */
  669    948   
        use std::ops::Deref;
  670    949   
        self.snapshot_id.deref()
         950  +
        /* StructureGenerator.kt:166 */
  671    951   
    }
  672         -
    /// <p>An aggregated Base-64 SHA256 checksum based on the checksums of each written block.</p>
         952  +
    /// /* StructureGenerator.kt:231 */<p>An aggregated Base-64 SHA256 checksum based on the checksums of each written block.</p>
  673    953   
    /// <p>To generate the aggregated checksum using the linear aggregation method, arrange the checksums for each written block in ascending order of their block index, concatenate them to form a single string, and then generate the checksum on the entire string using the SHA256 algorithm.</p>
         954  +
    /* StructureGenerator.kt:166 */
  674    955   
    pub fn checksum(&self) -> ::std::option::Option<&str> {
         956  +
        /* StructureGenerator.kt:169 */
  675    957   
        self.checksum.as_deref()
         958  +
        /* StructureGenerator.kt:166 */
  676    959   
    }
         960  +
    /* StructureGenerator.kt:135 */
  677    961   
}
         962  +
/* RustType.kt:516 */
  678    963   
#[allow(clippy::new_without_default)]
         964  +
/* RustType.kt:516 */
  679    965   
#[allow(clippy::too_many_arguments)]
         966  +
/* RustType.kt:516 */
  680    967   
#[::pyo3::pymethods]
         968  +
/* PythonServerStructureGenerator.kt:88 */
  681    969   
impl CompleteSnapshotInput {
  682    970   
    #[new]
  683    971   
    pub fn new(
  684    972   
        changed_blocks_count: i32,
         973  +
        snapshot_id: ::std::string::String,
  685    974   
        checksum_aggregation_method: ::std::option::Option<crate::model::ChecksumAggregationMethod>,
  686    975   
        checksum_algorithm: ::std::option::Option<crate::model::ChecksumAlgorithm>,
  687         -
        snapshot_id: ::std::string::String,
  688    976   
        checksum: ::std::option::Option<::std::string::String>,
  689    977   
    ) -> Self {
  690    978   
        Self {
  691    979   
            changed_blocks_count,
         980  +
            snapshot_id,
  692    981   
            checksum_aggregation_method,
  693    982   
            checksum_algorithm,
  694         -
            snapshot_id,
  695    983   
            checksum,
  696    984   
        }
  697    985   
    }
  698    986   
    fn __repr__(&self) -> String {
  699    987   
        format!("{self:?}")
  700    988   
    }
  701    989   
    fn __str__(&self) -> String {
  702    990   
        format!("{self:?}")
  703    991   
    }
  704    992   
}
         993  +
/* PythonServerStructureGenerator.kt:111 */
  705    994   
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<CompleteSnapshotInput> {
  706    995   
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
  707    996   
        ob.extract::<CompleteSnapshotInput>().map(Box::new)
  708    997   
    }
  709    998   
}
  710    999   
  711   1000   
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<CompleteSnapshotInput> {
  712   1001   
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
  713   1002   
        (*self).into_py(py)
  714   1003   
    }
  715   1004   
}
        1005  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
  716   1006   
impl crate::constrained::Constrained for crate::input::CompleteSnapshotInput {
  717   1007   
    type Unconstrained = crate::input::complete_snapshot_input_internal::Builder;
  718   1008   
}
        1009  +
/* ServerCodegenVisitor.kt:370 */
  719   1010   
impl CompleteSnapshotInput {
  720         -
    /// Creates a new builder-style object to manufacture [`CompleteSnapshotInput`](crate::input::CompleteSnapshotInput).
        1011  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`CompleteSnapshotInput`](crate::input::CompleteSnapshotInput).
        1012  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  721   1013   
    pub fn builder() -> crate::input::complete_snapshot_input::Builder {
        1014  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  722   1015   
        crate::input::complete_snapshot_input::Builder::default()
        1016  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  723   1017   
    }
        1018  +
    /* ServerCodegenVisitor.kt:370 */
  724   1019   
}
  725         -
/// See [`StartSnapshotInput`](crate::input::StartSnapshotInput).
        1020  +
/// /* ServerBuilderGenerator.kt:171 */See [`StartSnapshotInput`](crate::input::StartSnapshotInput).
  726   1021   
pub(crate) mod start_snapshot_input_internal {
  727   1022   
        1023  +
    /* RustType.kt:516 */
  728   1024   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  729         -
    /// Holds one variant for each of the ways the builder can fail.
        1025  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
        1026  +
    /* RustType.kt:516 */
  730   1027   
    #[non_exhaustive]
        1028  +
    /* ServerBuilderConstraintViolations.kt:75 */
  731   1029   
    #[allow(clippy::enum_variant_names)]
  732   1030   
    pub(crate) enum ConstraintViolation {
  733         -
        /// Constraint violation occurred building member `timeout` when building `StartSnapshotInput`.
        1031  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `timeout` when building `StartSnapshotInput`.
        1032  +
        /* RustType.kt:516 */
  734   1033   
        #[doc(hidden)]
        1034  +
        /* ServerBuilderConstraintViolations.kt:164 */
  735   1035   
        Timeout(crate::model::timeout_internal::ConstraintViolation),
  736         -
        /// Constraint violation occurred building member `client_token` when building `StartSnapshotInput`.
        1036  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `client_token` when building `StartSnapshotInput`.
        1037  +
        /* RustType.kt:516 */
  737   1038   
        #[doc(hidden)]
        1039  +
        /* ServerBuilderConstraintViolations.kt:164 */
  738   1040   
        ClientToken(crate::model::idempotency_token_internal::ConstraintViolation),
  739         -
        /// `volume_size` was not provided but it is required when building `StartSnapshotInput`.
        1041  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`volume_size` was not provided but it is required when building `StartSnapshotInput`.
        1042  +
        /* ServerBuilderConstraintViolations.kt:143 */
  740   1043   
        MissingVolumeSize,
  741         -
        /// Constraint violation occurred building member `volume_size` when building `StartSnapshotInput`.
        1044  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `volume_size` when building `StartSnapshotInput`.
        1045  +
        /* RustType.kt:516 */
  742   1046   
        #[doc(hidden)]
        1047  +
        /* ServerBuilderConstraintViolations.kt:164 */
  743   1048   
        VolumeSize(crate::model::volume_size_internal::ConstraintViolation),
  744         -
        /// Constraint violation occurred building member `tags` when building `StartSnapshotInput`.
        1049  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `tags` when building `StartSnapshotInput`.
        1050  +
        /* RustType.kt:516 */
  745   1051   
        #[doc(hidden)]
        1052  +
        /* ServerBuilderConstraintViolations.kt:164 */
  746   1053   
        Tags(crate::model::tags_internal::ConstraintViolation),
  747         -
        /// Constraint violation occurred building member `kms_key_arn` when building `StartSnapshotInput`.
        1054  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `kms_key_arn` when building `StartSnapshotInput`.
        1055  +
        /* RustType.kt:516 */
  748   1056   
        #[doc(hidden)]
        1057  +
        /* ServerBuilderConstraintViolations.kt:164 */
  749   1058   
        KmsKeyArn(crate::model::kms_key_arn_internal::ConstraintViolation),
  750         -
        /// Constraint violation occurred building member `parent_snapshot_id` when building `StartSnapshotInput`.
        1059  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `parent_snapshot_id` when building `StartSnapshotInput`.
        1060  +
        /* RustType.kt:516 */
  751   1061   
        #[doc(hidden)]
        1062  +
        /* ServerBuilderConstraintViolations.kt:164 */
  752   1063   
        ParentSnapshotId(crate::model::snapshot_id_internal::ConstraintViolation),
  753         -
        /// Constraint violation occurred building member `description` when building `StartSnapshotInput`.
        1064  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `description` when building `StartSnapshotInput`.
        1065  +
        /* RustType.kt:516 */
  754   1066   
        #[doc(hidden)]
        1067  +
        /* ServerBuilderConstraintViolations.kt:164 */
  755   1068   
        Description(crate::model::description_internal::ConstraintViolation),
        1069  +
        /* ServerBuilderConstraintViolations.kt:75 */
  756   1070   
    }
        1071  +
    /* ServerBuilderConstraintViolations.kt:117 */
  757   1072   
    impl ::std::fmt::Display for ConstraintViolation {
        1073  +
        /* ServerBuilderConstraintViolations.kt:118 */
  758   1074   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1075  +
            /* ServerBuilderConstraintViolations.kt:119 */
  759   1076   
            match self {
  760         -
                ConstraintViolation::Timeout(_) => write!(f, "constraint violation occurred building member `timeout` when building `StartSnapshotInput`"),
  761         -
                ConstraintViolation::ClientToken(_) => write!(f, "constraint violation occurred building member `client_token` when building `StartSnapshotInput`"),
  762         -
                ConstraintViolation::MissingVolumeSize => write!(f, "`volume_size` was not provided but it is required when building `StartSnapshotInput`"),
  763         -
                ConstraintViolation::VolumeSize(_) => write!(f, "constraint violation occurred building member `volume_size` when building `StartSnapshotInput`"),
  764         -
                ConstraintViolation::Tags(_) => write!(f, "constraint violation occurred building member `tags` when building `StartSnapshotInput`"),
  765         -
                ConstraintViolation::KmsKeyArn(_) => write!(f, "constraint violation occurred building member `kms_key_arn` when building `StartSnapshotInput`"),
  766         -
                ConstraintViolation::ParentSnapshotId(_) => write!(f, "constraint violation occurred building member `parent_snapshot_id` when building `StartSnapshotInput`"),
  767         -
                ConstraintViolation::Description(_) => write!(f, "constraint violation occurred building member `description` when building `StartSnapshotInput`"),
  768         -
            }
  769         -
        }
  770         -
    }
        1077  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::Timeout(_) => write!(f, "constraint violation occurred building member `timeout` when building `StartSnapshotInput`"),
        1078  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::ClientToken(_) => write!(f, "constraint violation occurred building member `client_token` when building `StartSnapshotInput`"),
        1079  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingVolumeSize => write!(f, "`volume_size` was not provided but it is required when building `StartSnapshotInput`"),
        1080  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::VolumeSize(_) => write!(f, "constraint violation occurred building member `volume_size` when building `StartSnapshotInput`"),
        1081  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::Tags(_) => write!(f, "constraint violation occurred building member `tags` when building `StartSnapshotInput`"),
        1082  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::KmsKeyArn(_) => write!(f, "constraint violation occurred building member `kms_key_arn` when building `StartSnapshotInput`"),
        1083  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::ParentSnapshotId(_) => write!(f, "constraint violation occurred building member `parent_snapshot_id` when building `StartSnapshotInput`"),
        1084  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::Description(_) => write!(f, "constraint violation occurred building member `description` when building `StartSnapshotInput`"),
        1085  +
            /* ServerBuilderConstraintViolations.kt:119 */}
        1086  +
            /* ServerBuilderConstraintViolations.kt:118 */
        1087  +
        }
        1088  +
        /* ServerBuilderConstraintViolations.kt:117 */
        1089  +
    }
        1090  +
    /* ServerBuilderConstraintViolations.kt:84 */
  771   1091   
    impl ::std::error::Error for ConstraintViolation {}
        1092  +
    /* ServerBuilderConstraintViolations.kt:171 */
  772   1093   
    impl ConstraintViolation {
  773   1094   
        pub(crate) fn as_validation_exception_field(
  774   1095   
            self,
  775   1096   
            path: ::std::string::String,
  776   1097   
        ) -> crate::model::ValidationExceptionField {
  777   1098   
            match self {
  778   1099   
            ConstraintViolation::Timeout(inner) => inner.as_validation_exception_field(path + "/Timeout"),
  779   1100   
            ConstraintViolation::ClientToken(inner) => inner.as_validation_exception_field(path + "/ClientToken"),
  780   1101   
            ConstraintViolation::MissingVolumeSize => crate::model::ValidationExceptionField {
  781   1102   
                                                message: format!("Value at '{}/VolumeSize' failed to satisfy constraint: Member must not be null", path),
  782   1103   
                                                path: path + "/VolumeSize",
  783   1104   
                                            },
  784   1105   
            ConstraintViolation::VolumeSize(inner) => inner.as_validation_exception_field(path + "/VolumeSize"),
  785   1106   
            ConstraintViolation::Tags(inner) => inner.as_validation_exception_field(path + "/Tags"),
  786   1107   
            ConstraintViolation::KmsKeyArn(inner) => inner.as_validation_exception_field(path + "/KmsKeyArn"),
  787   1108   
            ConstraintViolation::ParentSnapshotId(inner) => inner.as_validation_exception_field(path + "/ParentSnapshotId"),
  788   1109   
            ConstraintViolation::Description(inner) => inner.as_validation_exception_field(path + "/Description"),
  789   1110   
        }
  790   1111   
        }
  791   1112   
    }
        1113  +
    /* ServerBuilderGenerator.kt:234 */
  792   1114   
    impl ::std::convert::From<ConstraintViolation>
  793   1115   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
  794   1116   
    {
  795   1117   
        fn from(constraint_violation: ConstraintViolation) -> Self {
  796   1118   
            let first_validation_exception_field =
  797   1119   
                constraint_violation.as_validation_exception_field("".to_owned());
  798   1120   
            let validation_exception = crate::error::ValidationException {
  799   1121   
                message: format!(
  800   1122   
                    "1 validation error detected. {}",
  801   1123   
                    &first_validation_exception_field.message
  802   1124   
                ),
  803   1125   
                field_list: Some(vec![first_validation_exception_field]),
  804   1126   
            };
  805   1127   
            Self::ConstraintViolation(
  806   1128   
                                crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
  807   1129   
                                    .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
  808   1130   
                            )
  809   1131   
        }
  810   1132   
    }
        1133  +
    /* ServerBuilderGenerator.kt:244 */
  811   1134   
    impl ::std::convert::From<Builder>
  812   1135   
        for crate::constrained::MaybeConstrained<crate::input::StartSnapshotInput>
  813   1136   
    {
  814   1137   
        fn from(builder: Builder) -> Self {
  815   1138   
            Self::Unconstrained(builder)
  816   1139   
        }
  817   1140   
    }
        1141  +
    /* ServerBuilderGenerator.kt:446 */
  818   1142   
    impl ::std::convert::TryFrom<Builder> for crate::input::StartSnapshotInput {
  819   1143   
        type Error = ConstraintViolation;
  820   1144   
  821   1145   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
  822   1146   
            builder.build()
  823   1147   
        }
  824   1148   
    }
  825         -
    /// A builder for [`StartSnapshotInput`](crate::input::StartSnapshotInput).
        1149  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`StartSnapshotInput`](crate::input::StartSnapshotInput).
        1150  +
    /* RustType.kt:516 */
  826   1151   
    #[derive(::std::clone::Clone, ::std::default::Default)]
        1152  +
    /* ServerBuilderGenerator.kt:211 */
  827   1153   
    pub(crate) struct Builder {
        1154  +
        /* ServerBuilderGenerator.kt:308 */
  828   1155   
        pub(crate) timeout:
  829   1156   
            ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::Timeout>>,
        1157  +
        /* ServerBuilderGenerator.kt:308 */
  830   1158   
        pub(crate) client_token: ::std::option::Option<
  831   1159   
            crate::constrained::MaybeConstrained<crate::model::IdempotencyToken>,
  832   1160   
        >,
        1161  +
        /* ServerBuilderGenerator.kt:308 */
  833   1162   
        pub(crate) volume_size:
  834   1163   
            ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::VolumeSize>>,
        1164  +
        /* ServerBuilderGenerator.kt:308 */
  835   1165   
        pub(crate) tags: ::std::option::Option<
  836   1166   
            crate::constrained::MaybeConstrained<
  837   1167   
                crate::constrained::tags_constrained::TagsConstrained,
  838   1168   
            >,
  839   1169   
        >,
        1170  +
        /* ServerBuilderGenerator.kt:308 */
  840   1171   
        pub(crate) encrypted: ::std::option::Option<bool>,
        1172  +
        /* ServerBuilderGenerator.kt:308 */
  841   1173   
        pub(crate) kms_key_arn:
  842   1174   
            ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::KmsKeyArn>>,
        1175  +
        /* ServerBuilderGenerator.kt:308 */
  843   1176   
        pub(crate) parent_snapshot_id:
  844   1177   
            ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SnapshotId>>,
        1178  +
        /* ServerBuilderGenerator.kt:308 */
  845   1179   
        pub(crate) description:
  846   1180   
            ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::Description>>,
        1181  +
        /* ServerBuilderGenerator.kt:211 */
  847   1182   
    }
        1183  +
    /* ServerBuilderGenerator.kt:215 */
  848   1184   
    impl Builder {
  849         -
        /// <p>The amount of time (in minutes) after which the snapshot is automatically cancelled if:</p>
        1185  +
        /// /* ServerBuilderGenerator.kt:426 */<p>The amount of time (in minutes) after which the snapshot is automatically cancelled if:</p>
  850   1186   
        /// <ul>
  851   1187   
        /// <li>
  852   1188   
        /// <p>No blocks are written to the snapshot.</p></li>
  853   1189   
        /// <li>
  854   1190   
        /// <p>The snapshot is not completed after writing the last block of data.</p></li>
  855   1191   
        /// </ul>
  856   1192   
        /// <p>If no value is specified, the timeout defaults to <code>60</code> minutes.</p>
        1193  +
        /* ServerBuilderGenerator.kt:428 */
  857   1194   
        pub(crate) fn set_timeout(
  858   1195   
            mut self,
  859   1196   
            input: Option<
  860   1197   
                impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::Timeout>>,
  861   1198   
            >,
  862   1199   
        ) -> Self {
        1200  +
            /* ServerBuilderGenerator.kt:429 */
  863   1201   
            self.timeout = input.map(|v| v.into());
  864   1202   
            self
        1203  +
            /* ServerBuilderGenerator.kt:428 */
  865   1204   
        }
  866         -
        /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully. The subsequent retries with the same client token return the result from the original successful request and they have no additional effect.</p>
        1205  +
        /// /* ServerBuilderGenerator.kt:426 */<p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully. The subsequent retries with the same client token return the result from the original successful request and they have no additional effect.</p>
  867   1206   
        /// <p>If you do not specify a client token, one is automatically generated by the AWS SDK.</p>
  868   1207   
        /// <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-direct-api-idempotency.html"> Idempotency for StartSnapshot API</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
        1208  +
        /* ServerBuilderGenerator.kt:428 */
  869   1209   
        pub(crate) fn set_client_token(
  870   1210   
            mut self,
  871   1211   
            input: Option<
  872   1212   
                impl ::std::convert::Into<
  873   1213   
                    crate::constrained::MaybeConstrained<crate::model::IdempotencyToken>,
  874   1214   
                >,
  875   1215   
            >,
  876   1216   
        ) -> Self {
        1217  +
            /* ServerBuilderGenerator.kt:429 */
  877   1218   
            self.client_token = input.map(|v| v.into());
  878   1219   
            self
        1220  +
            /* ServerBuilderGenerator.kt:428 */
  879   1221   
        }
  880         -
        /// <p>The size of the volume, in GiB. The maximum size is <code>16384</code> GiB (16 TiB).</p>
        1222  +
        /// /* ServerBuilderGenerator.kt:426 */<p>The size of the volume, in GiB. The maximum size is <code>16384</code> GiB (16 TiB).</p>
        1223  +
        /* ServerBuilderGenerator.kt:428 */
  881   1224   
        pub(crate) fn set_volume_size(
  882   1225   
            mut self,
  883   1226   
            input: impl ::std::convert::Into<
  884   1227   
                crate::constrained::MaybeConstrained<crate::model::VolumeSize>,
  885   1228   
            >,
  886   1229   
        ) -> Self {
        1230  +
            /* ServerBuilderGenerator.kt:429 */
  887   1231   
            self.volume_size = Some(input.into());
  888   1232   
            self
        1233  +
            /* ServerBuilderGenerator.kt:428 */
  889   1234   
        }
  890         -
        /// <p>The tags to apply to the snapshot.</p>
        1235  +
        /// /* ServerBuilderGenerator.kt:426 */<p>The tags to apply to the snapshot.</p>
        1236  +
        /* ServerBuilderGenerator.kt:428 */
  891   1237   
        pub(crate) fn set_tags(
  892   1238   
            mut self,
  893   1239   
            input: Option<
  894   1240   
                impl ::std::convert::Into<
  895   1241   
                    crate::constrained::MaybeConstrained<
  896   1242   
                        crate::constrained::tags_constrained::TagsConstrained,
  897   1243   
                    >,
  898   1244   
                >,
  899   1245   
            >,
  900   1246   
        ) -> Self {
        1247  +
            /* ServerBuilderGenerator.kt:429 */
  901   1248   
            self.tags = input.map(|v| v.into());
  902   1249   
            self
        1250  +
            /* ServerBuilderGenerator.kt:428 */
  903   1251   
        }
  904         -
        /// <p>Indicates whether to encrypt the snapshot. To create an encrypted snapshot, specify <code>true</code>. To create an unencrypted snapshot, omit this parameter.</p>
        1252  +
        /// /* ServerBuilderGenerator.kt:426 */<p>Indicates whether to encrypt the snapshot. To create an encrypted snapshot, specify <code>true</code>. To create an unencrypted snapshot, omit this parameter.</p>
  905   1253   
        /// <p>If you specify a value for <b>ParentSnapshotId</b>, omit this parameter.</p>
  906   1254   
        /// <p>If you specify <code>true</code>, the snapshot is encrypted using the CMK specified using the <b>KmsKeyArn</b> parameter. If no value is specified for <b>KmsKeyArn</b>, the default CMK for your account is used. If no default CMK has been specified for your account, the AWS managed CMK is used. To set a default CMK for your account, use <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyEbsDefaultKmsKeyId.html"> ModifyEbsDefaultKmsKeyId</a>.</p>
  907   1255   
        /// <p>If your account is enabled for encryption by default, you cannot set this parameter to <code>false</code>. In this case, you can omit this parameter.</p>
  908   1256   
        /// <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html#ebsapis-using-encryption"> Using encryption</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
        1257  +
        /* ServerBuilderGenerator.kt:428 */
  909   1258   
        pub(crate) fn set_encrypted(
  910   1259   
            mut self,
  911   1260   
            input: Option<impl ::std::convert::Into<bool>>,
  912   1261   
        ) -> Self {
        1262  +
            /* ServerBuilderGenerator.kt:429 */
  913   1263   
            self.encrypted = input.map(|v| v.into());
  914   1264   
            self
        1265  +
            /* ServerBuilderGenerator.kt:428 */
  915   1266   
        }
  916         -
        /// <p>The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) customer master key (CMK) to be used to encrypt the snapshot. If you do not specify a CMK, the default AWS managed CMK is used.</p>
        1267  +
        /// /* ServerBuilderGenerator.kt:426 */<p>The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) customer master key (CMK) to be used to encrypt the snapshot. If you do not specify a CMK, the default AWS managed CMK is used.</p>
  917   1268   
        /// <p>If you specify a <b>ParentSnapshotId</b>, omit this parameter; the snapshot will be encrypted using the same CMK that was used to encrypt the parent snapshot.</p>
  918   1269   
        /// <p>If <b>Encrypted</b> is set to <code>true</code>, you must specify a CMK ARN.</p>
        1270  +
        /* ServerBuilderGenerator.kt:428 */
  919   1271   
        pub(crate) fn set_kms_key_arn(
  920   1272   
            mut self,
  921   1273   
            input: Option<
  922   1274   
                impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::KmsKeyArn>>,
  923   1275   
            >,
  924   1276   
        ) -> Self {
        1277  +
            /* ServerBuilderGenerator.kt:429 */
  925   1278   
            self.kms_key_arn = input.map(|v| v.into());
  926   1279   
            self
        1280  +
            /* ServerBuilderGenerator.kt:428 */
  927   1281   
        }
  928         -
        /// <p>The ID of the parent snapshot. If there is no parent snapshot, or if you are creating the first snapshot for an on-premises volume, omit this parameter.</p>
        1282  +
        /// /* ServerBuilderGenerator.kt:426 */<p>The ID of the parent snapshot. If there is no parent snapshot, or if you are creating the first snapshot for an on-premises volume, omit this parameter.</p>
  929   1283   
        /// <p>If your account is enabled for encryption by default, you cannot use an unencrypted snapshot as a parent snapshot. You must first create an encrypted copy of the parent snapshot using <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CopySnapshot.html">CopySnapshot</a>.</p>
        1284  +
        /* ServerBuilderGenerator.kt:428 */
  930   1285   
        pub(crate) fn set_parent_snapshot_id(
  931   1286   
            mut self,
  932   1287   
            input: Option<
  933   1288   
                impl ::std::convert::Into<
  934   1289   
                    crate::constrained::MaybeConstrained<crate::model::SnapshotId>,
  935   1290   
                >,
  936   1291   
            >,
  937   1292   
        ) -> Self {
        1293  +
            /* ServerBuilderGenerator.kt:429 */
  938   1294   
            self.parent_snapshot_id = input.map(|v| v.into());
  939   1295   
            self
        1296  +
            /* ServerBuilderGenerator.kt:428 */
  940   1297   
        }
  941         -
        /// <p>A description for the snapshot.</p>
        1298  +
        /// /* ServerBuilderGenerator.kt:426 */<p>A description for the snapshot.</p>
        1299  +
        /* ServerBuilderGenerator.kt:428 */
  942   1300   
        pub(crate) fn set_description(
  943   1301   
            mut self,
  944   1302   
            input: Option<
  945   1303   
                impl ::std::convert::Into<
  946   1304   
                    crate::constrained::MaybeConstrained<crate::model::Description>,
  947   1305   
                >,
  948   1306   
            >,
  949   1307   
        ) -> Self {
        1308  +
            /* ServerBuilderGenerator.kt:429 */
  950   1309   
            self.description = input.map(|v| v.into());
  951   1310   
            self
        1311  +
            /* ServerBuilderGenerator.kt:428 */
  952   1312   
        }
  953         -
        /// Consumes the builder and constructs a [`StartSnapshotInput`](crate::input::StartSnapshotInput).
  954         -
        ///
        1313  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`StartSnapshotInput`](crate::input::StartSnapshotInput).
        1314  +
        /// /* ServerBuilderGenerator.kt:260 */
  955   1315   
        /// The builder fails to construct a [`StartSnapshotInput`](crate::input::StartSnapshotInput) if a [`ConstraintViolation`] occurs.
  956   1316   
        ///
  957         -
        /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
        1317  +
        /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
        1318  +
        /* ServerBuilderGenerator.kt:271 */
  958   1319   
        pub fn build(self) -> Result<crate::input::StartSnapshotInput, ConstraintViolation> {
  959   1320   
            self.build_enforcing_all_constraints()
  960   1321   
        }
        1322  +
        /* ServerBuilderGenerator.kt:283 */
  961   1323   
        fn build_enforcing_all_constraints(
  962   1324   
            self,
  963   1325   
        ) -> Result<crate::input::StartSnapshotInput, ConstraintViolation> {
  964         -
            Ok(crate::input::StartSnapshotInput {
        1326  +
            /* ServerBuilderGenerator.kt:287 */
        1327  +
            Ok(
        1328  +
                /* ServerBuilderGenerator.kt:542 */
        1329  +
                crate::input::StartSnapshotInput {
        1330  +
                    /* ServerBuilderGenerator.kt:546 */
  965   1331   
                    timeout: self
  966   1332   
                        .timeout
        1333  +
                        /* ServerBuilderGenerator.kt:602 */
  967   1334   
                        .map(|v| match v {
  968   1335   
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
  969   1336   
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
  970   1337   
                        })
        1338  +
                        /* ServerBuilderGenerator.kt:614 */
  971   1339   
                        .map(|res| res.map_err(ConstraintViolation::Timeout))
  972   1340   
                        .transpose()?
        1341  +
                        /* ServerBuilderGenerator.kt:630 */
  973   1342   
                        .map(|v: crate::model::Timeout| v.into()),
        1343  +
                    /* ServerBuilderGenerator.kt:546 */
  974   1344   
                    client_token: self
  975   1345   
                        .client_token
        1346  +
                        /* ServerBuilderGenerator.kt:602 */
  976   1347   
                        .map(|v| match v {
  977   1348   
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
  978   1349   
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
  979   1350   
                        })
        1351  +
                        /* ServerBuilderGenerator.kt:614 */
  980   1352   
                        .map(|res| res.map_err(ConstraintViolation::ClientToken))
  981   1353   
                        .transpose()?
        1354  +
                        /* ServerBuilderGenerator.kt:630 */
  982   1355   
                        .map(|v: crate::model::IdempotencyToken| v.into()),
        1356  +
                    /* ServerBuilderGenerator.kt:546 */
  983   1357   
                    volume_size: self
  984   1358   
                        .volume_size
        1359  +
                        /* ServerBuilderGenerator.kt:602 */
  985   1360   
                        .map(|v| match v {
  986   1361   
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
  987   1362   
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
  988   1363   
                        })
        1364  +
                        /* ServerBuilderGenerator.kt:614 */
  989   1365   
                        .map(|res| res.map_err(ConstraintViolation::VolumeSize))
  990   1366   
                        .transpose()?
        1367  +
                        /* ServerBuilderGenerator.kt:630 */
  991   1368   
                        .map(|v: crate::model::VolumeSize| v.into())
        1369  +
                        /* ServerBuilderGenerator.kt:569 */
  992   1370   
                        .ok_or(ConstraintViolation::MissingVolumeSize)?,
        1371  +
                    /* ServerBuilderGenerator.kt:546 */
  993   1372   
                    tags: self
  994   1373   
                        .tags
        1374  +
                        /* ServerBuilderGenerator.kt:602 */
  995   1375   
                        .map(|v| match v {
  996   1376   
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
  997   1377   
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
  998   1378   
                        })
        1379  +
                        /* ServerBuilderGenerator.kt:614 */
  999   1380   
                        .map(|res| res.map(|v| v.into()).map_err(ConstraintViolation::Tags))
 1000   1381   
                        .transpose()?,
        1382  +
                    /* ServerBuilderGenerator.kt:546 */
 1001   1383   
                    encrypted: self.encrypted,
        1384  +
                    /* ServerBuilderGenerator.kt:546 */
 1002   1385   
                    kms_key_arn: self
 1003   1386   
                        .kms_key_arn
        1387  +
                        /* ServerBuilderGenerator.kt:602 */
 1004   1388   
                        .map(|v| match v {
 1005   1389   
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
 1006   1390   
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
 1007   1391   
                        })
        1392  +
                        /* ServerBuilderGenerator.kt:614 */
 1008   1393   
                        .map(|res| res.map_err(ConstraintViolation::KmsKeyArn))
 1009   1394   
                        .transpose()?
        1395  +
                        /* ServerBuilderGenerator.kt:630 */
 1010   1396   
                        .map(|v: crate::model::KmsKeyArn| v.into()),
        1397  +
                    /* ServerBuilderGenerator.kt:546 */
 1011   1398   
                    parent_snapshot_id: self
 1012   1399   
                        .parent_snapshot_id
        1400  +
                        /* ServerBuilderGenerator.kt:602 */
 1013   1401   
                        .map(|v| match v {
 1014   1402   
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
 1015   1403   
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
 1016   1404   
                        })
        1405  +
                        /* ServerBuilderGenerator.kt:614 */
 1017   1406   
                        .map(|res| res.map_err(ConstraintViolation::ParentSnapshotId))
 1018   1407   
                        .transpose()?
        1408  +
                        /* ServerBuilderGenerator.kt:630 */
 1019   1409   
                        .map(|v: crate::model::SnapshotId| v.into()),
        1410  +
                    /* ServerBuilderGenerator.kt:546 */
 1020   1411   
                    description: self
 1021   1412   
                        .description
        1413  +
                        /* ServerBuilderGenerator.kt:602 */
 1022   1414   
                        .map(|v| match v {
 1023   1415   
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
 1024   1416   
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
 1025   1417   
                        })
        1418  +
                        /* ServerBuilderGenerator.kt:614 */
 1026   1419   
                        .map(|res| res.map_err(ConstraintViolation::Description))
 1027   1420   
                        .transpose()?
        1421  +
                        /* ServerBuilderGenerator.kt:630 */
 1028   1422   
                        .map(|v: crate::model::Description| v.into()),
 1029         -
            })
        1423  +
                    /* ServerBuilderGenerator.kt:542 */
        1424  +
                }, /* ServerBuilderGenerator.kt:287 */
        1425  +
            )
        1426  +
            /* ServerBuilderGenerator.kt:283 */
 1030   1427   
        }
        1428  +
        /* ServerBuilderGenerator.kt:215 */
 1031   1429   
    }
        1430  +
    /* ServerBuilderGenerator.kt:474 */
 1032   1431   
    impl ::std::fmt::Debug for Builder {
        1432  +
        /* ServerBuilderGenerator.kt:475 */
 1033   1433   
        fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        1434  +
            /* ServerBuilderGenerator.kt:476 */
 1034   1435   
            let mut formatter = f.debug_struct("Builder");
        1436  +
            /* ServerBuilderGenerator.kt:481 */
 1035   1437   
            formatter.field("timeout", &self.timeout);
        1438  +
            /* ServerBuilderGenerator.kt:481 */
 1036   1439   
            formatter.field("client_token", &self.client_token);
        1440  +
            /* ServerBuilderGenerator.kt:481 */
 1037   1441   
            formatter.field("volume_size", &self.volume_size);
        1442  +
            /* ServerBuilderGenerator.kt:481 */
 1038   1443   
            formatter.field("tags", &self.tags);
        1444  +
            /* ServerBuilderGenerator.kt:481 */
 1039   1445   
            formatter.field("encrypted", &self.encrypted);
        1446  +
            /* ServerBuilderGenerator.kt:481 */
 1040   1447   
            formatter.field("kms_key_arn", &"*** Sensitive Data Redacted ***");
        1448  +
            /* ServerBuilderGenerator.kt:481 */
 1041   1449   
            formatter.field("parent_snapshot_id", &self.parent_snapshot_id);
        1450  +
            /* ServerBuilderGenerator.kt:481 */
 1042   1451   
            formatter.field("description", &self.description);
        1452  +
            /* ServerBuilderGenerator.kt:485 */
 1043   1453   
            formatter.finish()
        1454  +
            /* ServerBuilderGenerator.kt:475 */
 1044   1455   
        }
        1456  +
        /* ServerBuilderGenerator.kt:474 */
 1045   1457   
    }
        1458  +
        1459  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1046   1460   
}
 1047         -
/// See [`StartSnapshotInput`](crate::input::StartSnapshotInput).
        1461  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`StartSnapshotInput`](crate::input::StartSnapshotInput).
 1048   1462   
pub mod start_snapshot_input {
 1049   1463   
        1464  +
    /* RustType.kt:516 */
 1050   1465   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
 1051         -
    /// Holds one variant for each of the ways the builder can fail.
 1052         -
        1466  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
        1467  +
    /* ServerBuilderConstraintViolations.kt:75 */
 1053   1468   
    #[allow(clippy::enum_variant_names)]
 1054   1469   
    pub enum ConstraintViolation {
 1055         -
        /// `volume_size` was not provided but it is required when building `StartSnapshotInput`.
        1470  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`volume_size` was not provided but it is required when building `StartSnapshotInput`.
        1471  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1056   1472   
        MissingVolumeSize,
        1473  +
        /* ServerBuilderConstraintViolations.kt:75 */
 1057   1474   
    }
        1475  +
    /* ServerBuilderConstraintViolations.kt:117 */
 1058   1476   
    impl ::std::fmt::Display for ConstraintViolation {
        1477  +
        /* ServerBuilderConstraintViolations.kt:118 */
 1059   1478   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1479  +
            /* ServerBuilderConstraintViolations.kt:119 */
 1060   1480   
            match self {
 1061         -
                ConstraintViolation::MissingVolumeSize => write!(f, "`volume_size` was not provided but it is required when building `StartSnapshotInput`"),
 1062         -
            }
        1481  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingVolumeSize => write!(f, "`volume_size` was not provided but it is required when building `StartSnapshotInput`"),
        1482  +
            /* ServerBuilderConstraintViolations.kt:119 */}
        1483  +
            /* ServerBuilderConstraintViolations.kt:118 */
 1063   1484   
        }
        1485  +
        /* ServerBuilderConstraintViolations.kt:117 */
 1064   1486   
    }
        1487  +
    /* ServerBuilderConstraintViolations.kt:84 */
 1065   1488   
    impl ::std::error::Error for ConstraintViolation {}
        1489  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
 1066   1490   
    impl ::std::convert::TryFrom<Builder> for crate::input::StartSnapshotInput {
 1067   1491   
        type Error = ConstraintViolation;
 1068   1492   
 1069   1493   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
 1070   1494   
            builder.build()
 1071   1495   
        }
 1072   1496   
    }
 1073         -
    /// A builder for [`StartSnapshotInput`](crate::input::StartSnapshotInput).
        1497  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`StartSnapshotInput`](crate::input::StartSnapshotInput).
        1498  +
    /* RustType.kt:516 */
 1074   1499   
    #[derive(::std::clone::Clone, ::std::default::Default)]
        1500  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
 1075   1501   
    pub struct Builder {
        1502  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1076   1503   
        pub(crate) timeout: ::std::option::Option<i32>,
        1504  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1077   1505   
        pub(crate) client_token: ::std::option::Option<::std::string::String>,
        1506  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1078   1507   
        pub(crate) volume_size: ::std::option::Option<i64>,
        1508  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1079   1509   
        pub(crate) tags: ::std::option::Option<::std::vec::Vec<crate::model::Tag>>,
        1510  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1080   1511   
        pub(crate) encrypted: ::std::option::Option<bool>,
        1512  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1081   1513   
        pub(crate) kms_key_arn: ::std::option::Option<::std::string::String>,
        1514  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1082   1515   
        pub(crate) parent_snapshot_id: ::std::option::Option<::std::string::String>,
        1516  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1083   1517   
        pub(crate) description: ::std::option::Option<::std::string::String>,
        1518  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
 1084   1519   
    }
        1520  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1085   1521   
    impl Builder {
 1086         -
        /// <p>The amount of time (in minutes) after which the snapshot is automatically cancelled if:</p>
        1522  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>The amount of time (in minutes) after which the snapshot is automatically cancelled if:</p>
 1087   1523   
        /// <ul>
 1088   1524   
        /// <li>
 1089   1525   
        /// <p>No blocks are written to the snapshot.</p></li>
 1090   1526   
        /// <li>
 1091   1527   
        /// <p>The snapshot is not completed after writing the last block of data.</p></li>
 1092   1528   
        /// </ul>
 1093   1529   
        /// <p>If no value is specified, the timeout defaults to <code>60</code> minutes.</p>
        1530  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1094   1531   
        pub fn timeout(mut self, input: ::std::option::Option<i32>) -> Self {
 1095         -
            self.timeout = input;
        1532  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        1533  +
            self.timeout =
        1534  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        1535  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1096   1536   
            self
        1537  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1097   1538   
        }
 1098         -
        /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully. The subsequent retries with the same client token return the result from the original successful request and they have no additional effect.</p>
        1539  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully. The subsequent retries with the same client token return the result from the original successful request and they have no additional effect.</p>
 1099   1540   
        /// <p>If you do not specify a client token, one is automatically generated by the AWS SDK.</p>
 1100   1541   
        /// <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-direct-api-idempotency.html"> Idempotency for StartSnapshot API</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
        1542  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1101   1543   
        pub fn client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
 1102         -
            self.client_token = input;
        1544  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        1545  +
            self.client_token =
        1546  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        1547  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1103   1548   
            self
        1549  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1104   1550   
        }
 1105         -
        /// <p>The size of the volume, in GiB. The maximum size is <code>16384</code> GiB (16 TiB).</p>
        1551  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>The size of the volume, in GiB. The maximum size is <code>16384</code> GiB (16 TiB).</p>
        1552  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1106   1553   
        pub fn volume_size(mut self, input: i64) -> Self {
 1107         -
            self.volume_size = Some(input);
        1554  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        1555  +
            self.volume_size =
        1556  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        1557  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        1558  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        1559  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1108   1560   
            self
        1561  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1109   1562   
        }
 1110         -
        /// <p>The tags to apply to the snapshot.</p>
        1563  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>The tags to apply to the snapshot.</p>
        1564  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1111   1565   
        pub fn tags(
 1112   1566   
            mut self,
 1113   1567   
            input: ::std::option::Option<::std::vec::Vec<crate::model::Tag>>,
 1114   1568   
        ) -> Self {
 1115         -
            self.tags = input;
        1569  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        1570  +
            self.tags =
        1571  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        1572  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1116   1573   
            self
        1574  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1117   1575   
        }
 1118         -
        /// <p>Indicates whether to encrypt the snapshot. To create an encrypted snapshot, specify <code>true</code>. To create an unencrypted snapshot, omit this parameter.</p>
        1576  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>Indicates whether to encrypt the snapshot. To create an encrypted snapshot, specify <code>true</code>. To create an unencrypted snapshot, omit this parameter.</p>
 1119   1577   
        /// <p>If you specify a value for <b>ParentSnapshotId</b>, omit this parameter.</p>
 1120   1578   
        /// <p>If you specify <code>true</code>, the snapshot is encrypted using the CMK specified using the <b>KmsKeyArn</b> parameter. If no value is specified for <b>KmsKeyArn</b>, the default CMK for your account is used. If no default CMK has been specified for your account, the AWS managed CMK is used. To set a default CMK for your account, use <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyEbsDefaultKmsKeyId.html"> ModifyEbsDefaultKmsKeyId</a>.</p>
 1121   1579   
        /// <p>If your account is enabled for encryption by default, you cannot set this parameter to <code>false</code>. In this case, you can omit this parameter.</p>
 1122   1580   
        /// <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html#ebsapis-using-encryption"> Using encryption</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
        1581  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1123   1582   
        pub fn encrypted(mut self, input: ::std::option::Option<bool>) -> Self {
 1124         -
            self.encrypted = input;
        1583  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        1584  +
            self.encrypted =
        1585  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        1586  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1125   1587   
            self
        1588  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1126   1589   
        }
 1127         -
        /// <p>The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) customer master key (CMK) to be used to encrypt the snapshot. If you do not specify a CMK, the default AWS managed CMK is used.</p>
        1590  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) customer master key (CMK) to be used to encrypt the snapshot. If you do not specify a CMK, the default AWS managed CMK is used.</p>
 1128   1591   
        /// <p>If you specify a <b>ParentSnapshotId</b>, omit this parameter; the snapshot will be encrypted using the same CMK that was used to encrypt the parent snapshot.</p>
 1129   1592   
        /// <p>If <b>Encrypted</b> is set to <code>true</code>, you must specify a CMK ARN.</p>
        1593  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1130   1594   
        pub fn kms_key_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
 1131         -
            self.kms_key_arn = input;
        1595  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        1596  +
            self.kms_key_arn =
        1597  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        1598  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1132   1599   
            self
        1600  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1133   1601   
        }
 1134         -
        /// <p>The ID of the parent snapshot. If there is no parent snapshot, or if you are creating the first snapshot for an on-premises volume, omit this parameter.</p>
        1602  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>The ID of the parent snapshot. If there is no parent snapshot, or if you are creating the first snapshot for an on-premises volume, omit this parameter.</p>
 1135   1603   
        /// <p>If your account is enabled for encryption by default, you cannot use an unencrypted snapshot as a parent snapshot. You must first create an encrypted copy of the parent snapshot using <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CopySnapshot.html">CopySnapshot</a>.</p>
        1604  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1136   1605   
        pub fn parent_snapshot_id(
 1137   1606   
            mut self,
 1138   1607   
            input: ::std::option::Option<::std::string::String>,
 1139   1608   
        ) -> Self {
 1140         -
            self.parent_snapshot_id = input;
        1609  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        1610  +
            self.parent_snapshot_id =
        1611  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        1612  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1141   1613   
            self
        1614  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1142   1615   
        }
 1143         -
        /// <p>A description for the snapshot.</p>
        1616  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>A description for the snapshot.</p>
        1617  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1144   1618   
        pub fn description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
 1145         -
            self.description = input;
        1619  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        1620  +
            self.description =
        1621  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        1622  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1146   1623   
            self
        1624  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1147   1625   
        }
 1148         -
        /// Consumes the builder and constructs a [`StartSnapshotInput`](crate::input::StartSnapshotInput).
 1149         -
        ///
        1626  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`StartSnapshotInput`](crate::input::StartSnapshotInput).
        1627  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
 1150   1628   
        /// The builder fails to construct a [`StartSnapshotInput`](crate::input::StartSnapshotInput) if you do not provide a value for all non-`Option`al members.
 1151   1629   
        ///
        1630  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
 1152   1631   
        pub fn build(self) -> Result<crate::input::StartSnapshotInput, ConstraintViolation> {
 1153   1632   
            self.build_enforcing_required_and_enum_traits()
 1154   1633   
        }
        1634  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1155   1635   
        fn build_enforcing_required_and_enum_traits(
 1156   1636   
            self,
 1157   1637   
        ) -> Result<crate::input::StartSnapshotInput, ConstraintViolation> {
 1158         -
            Ok(crate::input::StartSnapshotInput {
        1638  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
        1639  +
            Ok(
        1640  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        1641  +
                crate::input::StartSnapshotInput {
        1642  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 1159   1643   
                    timeout: self.timeout,
        1644  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 1160   1645   
                    client_token: self.client_token,
        1646  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 1161   1647   
                    volume_size: self
 1162   1648   
                        .volume_size
        1649  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
 1163   1650   
                        .ok_or(ConstraintViolation::MissingVolumeSize)?,
        1651  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 1164   1652   
                    tags: self.tags,
        1653  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 1165   1654   
                    encrypted: self.encrypted,
        1655  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 1166   1656   
                    kms_key_arn: self.kms_key_arn,
        1657  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 1167   1658   
                    parent_snapshot_id: self.parent_snapshot_id,
        1659  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 1168   1660   
                    description: self.description,
 1169         -
            })
        1661  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        1662  +
                }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
        1663  +
            )
        1664  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1170   1665   
        }
        1666  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1171   1667   
    }
        1668  +
        1669  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1172   1670   
}
 1173         -
/// See [`PutSnapshotBlockInput`](crate::input::PutSnapshotBlockInput).
        1671  +
/// /* ServerBuilderGenerator.kt:171 */See [`PutSnapshotBlockInput`](crate::input::PutSnapshotBlockInput).
 1174   1672   
pub(crate) mod put_snapshot_block_input_internal {
 1175   1673   
        1674  +
    /* RustType.kt:516 */
 1176   1675   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
 1177         -
    /// Holds one variant for each of the ways the builder can fail.
        1676  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
        1677  +
    /* RustType.kt:516 */
 1178   1678   
    #[non_exhaustive]
        1679  +
    /* ServerBuilderConstraintViolations.kt:75 */
 1179   1680   
    #[allow(clippy::enum_variant_names)]
 1180   1681   
    pub(crate) enum ConstraintViolation {
 1181         -
        /// `snapshot_id` was not provided but it is required when building `PutSnapshotBlockInput`.
        1682  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`snapshot_id` was not provided but it is required when building `PutSnapshotBlockInput`.
        1683  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1182   1684   
        MissingSnapshotId,
 1183         -
        /// Constraint violation occurred building member `snapshot_id` when building `PutSnapshotBlockInput`.
        1685  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `snapshot_id` when building `PutSnapshotBlockInput`.
        1686  +
        /* RustType.kt:516 */
 1184   1687   
        #[doc(hidden)]
        1688  +
        /* ServerBuilderConstraintViolations.kt:164 */
 1185   1689   
        SnapshotId(crate::model::snapshot_id_internal::ConstraintViolation),
 1186         -
        /// `block_index` was not provided but it is required when building `PutSnapshotBlockInput`.
        1690  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`block_index` was not provided but it is required when building `PutSnapshotBlockInput`.
        1691  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1187   1692   
        MissingBlockIndex,
 1188         -
        /// Constraint violation occurred building member `block_index` when building `PutSnapshotBlockInput`.
        1693  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `block_index` when building `PutSnapshotBlockInput`.
        1694  +
        /* RustType.kt:516 */
 1189   1695   
        #[doc(hidden)]
        1696  +
        /* ServerBuilderConstraintViolations.kt:164 */
 1190   1697   
        BlockIndex(crate::model::block_index_internal::ConstraintViolation),
 1191         -
        /// `checksum` was not provided but it is required when building `PutSnapshotBlockInput`.
        1698  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`checksum` was not provided but it is required when building `PutSnapshotBlockInput`.
        1699  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1192   1700   
        MissingChecksum,
 1193         -
        /// Constraint violation occurred building member `checksum` when building `PutSnapshotBlockInput`.
        1701  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `checksum` when building `PutSnapshotBlockInput`.
        1702  +
        /* RustType.kt:516 */
 1194   1703   
        #[doc(hidden)]
        1704  +
        /* ServerBuilderConstraintViolations.kt:164 */
 1195   1705   
        Checksum(crate::model::checksum_internal::ConstraintViolation),
 1196         -
        /// Constraint violation occurred building member `progress` when building `PutSnapshotBlockInput`.
        1706  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `progress` when building `PutSnapshotBlockInput`.
        1707  +
        /* RustType.kt:516 */
 1197   1708   
        #[doc(hidden)]
        1709  +
        /* ServerBuilderConstraintViolations.kt:164 */
 1198   1710   
        Progress(crate::model::progress_internal::ConstraintViolation),
 1199         -
        /// `block_data` was not provided but it is required when building `PutSnapshotBlockInput`.
        1711  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`block_data` was not provided but it is required when building `PutSnapshotBlockInput`.
        1712  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1200   1713   
        MissingBlockData,
 1201         -
        /// `data_length` was not provided but it is required when building `PutSnapshotBlockInput`.
        1714  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`data_length` was not provided but it is required when building `PutSnapshotBlockInput`.
        1715  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1202   1716   
        MissingDataLength,
 1203         -
        /// `checksum_algorithm` was not provided but it is required when building `PutSnapshotBlockInput`.
        1717  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`checksum_algorithm` was not provided but it is required when building `PutSnapshotBlockInput`.
        1718  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1204   1719   
        MissingChecksumAlgorithm,
 1205         -
        /// Constraint violation occurred building member `checksum_algorithm` when building `PutSnapshotBlockInput`.
        1720  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `checksum_algorithm` when building `PutSnapshotBlockInput`.
        1721  +
        /* RustType.kt:516 */
 1206   1722   
        #[doc(hidden)]
        1723  +
        /* ServerBuilderConstraintViolations.kt:164 */
 1207   1724   
        ChecksumAlgorithm(crate::model::checksum_algorithm_internal::ConstraintViolation),
        1725  +
        /* ServerBuilderConstraintViolations.kt:75 */
 1208   1726   
    }
        1727  +
    /* ServerBuilderConstraintViolations.kt:117 */
 1209   1728   
    impl ::std::fmt::Display for ConstraintViolation {
        1729  +
        /* ServerBuilderConstraintViolations.kt:118 */
 1210   1730   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1731  +
            /* ServerBuilderConstraintViolations.kt:119 */
 1211   1732   
            match self {
 1212         -
                ConstraintViolation::MissingSnapshotId => write!(f, "`snapshot_id` was not provided but it is required when building `PutSnapshotBlockInput`"),
 1213         -
                ConstraintViolation::SnapshotId(_) => write!(f, "constraint violation occurred building member `snapshot_id` when building `PutSnapshotBlockInput`"),
 1214         -
                ConstraintViolation::MissingBlockIndex => write!(f, "`block_index` was not provided but it is required when building `PutSnapshotBlockInput`"),
 1215         -
                ConstraintViolation::BlockIndex(_) => write!(f, "constraint violation occurred building member `block_index` when building `PutSnapshotBlockInput`"),
 1216         -
                ConstraintViolation::MissingChecksum => write!(f, "`checksum` was not provided but it is required when building `PutSnapshotBlockInput`"),
 1217         -
                ConstraintViolation::Checksum(_) => write!(f, "constraint violation occurred building member `checksum` when building `PutSnapshotBlockInput`"),
 1218         -
                ConstraintViolation::Progress(_) => write!(f, "constraint violation occurred building member `progress` when building `PutSnapshotBlockInput`"),
 1219         -
                ConstraintViolation::MissingBlockData => write!(f, "`block_data` was not provided but it is required when building `PutSnapshotBlockInput`"),
 1220         -
                ConstraintViolation::MissingDataLength => write!(f, "`data_length` was not provided but it is required when building `PutSnapshotBlockInput`"),
 1221         -
                ConstraintViolation::MissingChecksumAlgorithm => write!(f, "`checksum_algorithm` was not provided but it is required when building `PutSnapshotBlockInput`"),
 1222         -
                ConstraintViolation::ChecksumAlgorithm(_) => write!(f, "constraint violation occurred building member `checksum_algorithm` when building `PutSnapshotBlockInput`"),
 1223         -
            }
 1224         -
        }
 1225         -
    }
        1733  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingSnapshotId => write!(f, "`snapshot_id` was not provided but it is required when building `PutSnapshotBlockInput`"),
        1734  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::SnapshotId(_) => write!(f, "constraint violation occurred building member `snapshot_id` when building `PutSnapshotBlockInput`"),
        1735  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingBlockIndex => write!(f, "`block_index` was not provided but it is required when building `PutSnapshotBlockInput`"),
        1736  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::BlockIndex(_) => write!(f, "constraint violation occurred building member `block_index` when building `PutSnapshotBlockInput`"),
        1737  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingChecksum => write!(f, "`checksum` was not provided but it is required when building `PutSnapshotBlockInput`"),
        1738  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::Checksum(_) => write!(f, "constraint violation occurred building member `checksum` when building `PutSnapshotBlockInput`"),
        1739  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::Progress(_) => write!(f, "constraint violation occurred building member `progress` when building `PutSnapshotBlockInput`"),
        1740  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingBlockData => write!(f, "`block_data` was not provided but it is required when building `PutSnapshotBlockInput`"),
        1741  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingDataLength => write!(f, "`data_length` was not provided but it is required when building `PutSnapshotBlockInput`"),
        1742  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingChecksumAlgorithm => write!(f, "`checksum_algorithm` was not provided but it is required when building `PutSnapshotBlockInput`"),
        1743  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::ChecksumAlgorithm(_) => write!(f, "constraint violation occurred building member `checksum_algorithm` when building `PutSnapshotBlockInput`"),
        1744  +
            /* ServerBuilderConstraintViolations.kt:119 */}
        1745  +
            /* ServerBuilderConstraintViolations.kt:118 */
        1746  +
        }
        1747  +
        /* ServerBuilderConstraintViolations.kt:117 */
        1748  +
    }
        1749  +
    /* ServerBuilderConstraintViolations.kt:84 */
 1226   1750   
    impl ::std::error::Error for ConstraintViolation {}
        1751  +
    /* ServerBuilderConstraintViolations.kt:171 */
 1227   1752   
    impl ConstraintViolation {
 1228   1753   
        pub(crate) fn as_validation_exception_field(
 1229   1754   
            self,
 1230   1755   
            path: ::std::string::String,
 1231   1756   
        ) -> crate::model::ValidationExceptionField {
 1232   1757   
            match self {
 1233   1758   
            ConstraintViolation::MissingSnapshotId => crate::model::ValidationExceptionField {
 1234   1759   
                                                message: format!("Value at '{}/SnapshotId' failed to satisfy constraint: Member must not be null", path),
 1235   1760   
                                                path: path + "/SnapshotId",
 1236   1761   
                                            },
 1237   1762   
            ConstraintViolation::SnapshotId(inner) => inner.as_validation_exception_field(path + "/SnapshotId"),
 1238   1763   
            ConstraintViolation::MissingBlockIndex => crate::model::ValidationExceptionField {
 1239   1764   
                                                message: format!("Value at '{}/BlockIndex' failed to satisfy constraint: Member must not be null", path),
 1240   1765   
                                                path: path + "/BlockIndex",
 1241   1766   
                                            },
 1242   1767   
            ConstraintViolation::BlockIndex(inner) => inner.as_validation_exception_field(path + "/BlockIndex"),
 1243   1768   
            ConstraintViolation::MissingChecksum => crate::model::ValidationExceptionField {
 1244   1769   
                                                message: format!("Value at '{}/Checksum' failed to satisfy constraint: Member must not be null", path),
 1245   1770   
                                                path: path + "/Checksum",
 1246   1771   
                                            },
 1247   1772   
            ConstraintViolation::Checksum(inner) => inner.as_validation_exception_field(path + "/Checksum"),
 1248   1773   
            ConstraintViolation::Progress(inner) => inner.as_validation_exception_field(path + "/Progress"),
 1249   1774   
            ConstraintViolation::MissingBlockData => crate::model::ValidationExceptionField {
 1250   1775   
                                                message: format!("Value at '{}/BlockData' failed to satisfy constraint: Member must not be null", path),
 1251   1776   
                                                path: path + "/BlockData",
 1252   1777   
                                            },
 1253   1778   
            ConstraintViolation::MissingDataLength => crate::model::ValidationExceptionField {
 1254   1779   
                                                message: format!("Value at '{}/DataLength' failed to satisfy constraint: Member must not be null", path),
 1255   1780   
                                                path: path + "/DataLength",
 1256   1781   
                                            },
 1257   1782   
            ConstraintViolation::MissingChecksumAlgorithm => crate::model::ValidationExceptionField {
 1258   1783   
                                                message: format!("Value at '{}/ChecksumAlgorithm' failed to satisfy constraint: Member must not be null", path),
 1259   1784   
                                                path: path + "/ChecksumAlgorithm",
 1260   1785   
                                            },
 1261   1786   
            ConstraintViolation::ChecksumAlgorithm(inner) => inner.as_validation_exception_field(path + "/ChecksumAlgorithm"),
 1262   1787   
        }
 1263   1788   
        }
 1264   1789   
    }
        1790  +
    /* ServerBuilderGenerator.kt:234 */
 1265   1791   
    impl ::std::convert::From<ConstraintViolation>
 1266   1792   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
 1267   1793   
    {
 1268   1794   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 1269   1795   
            let first_validation_exception_field =
 1270   1796   
                constraint_violation.as_validation_exception_field("".to_owned());
 1271   1797   
            let validation_exception = crate::error::ValidationException {
 1272   1798   
                message: format!(
 1273   1799   
                    "1 validation error detected. {}",
 1274   1800   
                    &first_validation_exception_field.message
 1275   1801   
                ),
 1276   1802   
                field_list: Some(vec![first_validation_exception_field]),
 1277   1803   
            };
 1278   1804   
            Self::ConstraintViolation(
 1279   1805   
                                crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
 1280   1806   
                                    .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
 1281   1807   
                            )
 1282   1808   
        }
 1283   1809   
    }
        1810  +
    /* ServerBuilderGenerator.kt:244 */
 1284   1811   
    impl ::std::convert::From<Builder>
 1285   1812   
        for crate::constrained::MaybeConstrained<crate::input::PutSnapshotBlockInput>
 1286   1813   
    {
 1287   1814   
        fn from(builder: Builder) -> Self {
 1288   1815   
            Self::Unconstrained(builder)
 1289   1816   
        }
 1290   1817   
    }
        1818  +
    /* ServerBuilderGenerator.kt:446 */
 1291   1819   
    impl ::std::convert::TryFrom<Builder> for crate::input::PutSnapshotBlockInput {
 1292   1820   
        type Error = ConstraintViolation;
 1293   1821   
 1294   1822   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
 1295   1823   
            builder.build()
 1296   1824   
        }
 1297   1825   
    }
 1298         -
    /// A builder for [`PutSnapshotBlockInput`](crate::input::PutSnapshotBlockInput).
        1826  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`PutSnapshotBlockInput`](crate::input::PutSnapshotBlockInput).
        1827  +
    /* RustType.kt:516 */
 1299   1828   
    #[derive(::std::clone::Clone, ::std::default::Default)]
        1829  +
    /* ServerBuilderGenerator.kt:211 */
 1300   1830   
    pub(crate) struct Builder {
        1831  +
        /* ServerBuilderGenerator.kt:308 */
 1301   1832   
        pub(crate) snapshot_id:
 1302   1833   
            ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SnapshotId>>,
        1834  +
        /* ServerBuilderGenerator.kt:308 */
 1303   1835   
        pub(crate) block_index:
 1304   1836   
            ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::BlockIndex>>,
        1837  +
        /* ServerBuilderGenerator.kt:308 */
 1305   1838   
        pub(crate) checksum:
 1306   1839   
            ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::Checksum>>,
        1840  +
        /* ServerBuilderGenerator.kt:308 */
 1307   1841   
        pub(crate) progress:
 1308   1842   
            ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::Progress>>,
        1843  +
        /* ServerBuilderGenerator.kt:308 */
 1309   1844   
        pub(crate) block_data:
 1310   1845   
            ::std::option::Option<::aws_smithy_http_server_python::types::ByteStream>,
        1846  +
        /* ServerBuilderGenerator.kt:308 */
 1311   1847   
        pub(crate) data_length: ::std::option::Option<i32>,
        1848  +
        /* ServerBuilderGenerator.kt:308 */
 1312   1849   
        pub(crate) checksum_algorithm: ::std::option::Option<
 1313   1850   
            crate::constrained::MaybeConstrained<crate::model::ChecksumAlgorithm>,
 1314   1851   
        >,
        1852  +
        /* ServerBuilderGenerator.kt:211 */
 1315   1853   
    }
        1854  +
    /* ServerBuilderGenerator.kt:215 */
 1316   1855   
    impl Builder {
 1317         -
        /// <p>The ID of the snapshot.</p>
        1856  +
        /// /* ServerBuilderGenerator.kt:426 */<p>The ID of the snapshot.</p>
        1857  +
        /* ServerBuilderGenerator.kt:428 */
 1318   1858   
        pub(crate) fn set_snapshot_id(
 1319   1859   
            mut self,
 1320   1860   
            input: impl ::std::convert::Into<
 1321   1861   
                crate::constrained::MaybeConstrained<crate::model::SnapshotId>,
 1322   1862   
            >,
 1323   1863   
        ) -> Self {
        1864  +
            /* ServerBuilderGenerator.kt:429 */
 1324   1865   
            self.snapshot_id = Some(input.into());
 1325   1866   
            self
        1867  +
            /* ServerBuilderGenerator.kt:428 */
 1326   1868   
        }
 1327         -
        /// <p>The block index of the block in which to write the data. A block index is a logical index in units of <code>512</code> KiB blocks. To identify the block index, divide the logical offset of the data in the logical volume by the block size (logical offset of data/<code>524288</code>). The logical offset of the data must be <code>512</code> KiB aligned.</p>
        1869  +
        /// /* ServerBuilderGenerator.kt:426 */<p>The block index of the block in which to write the data. A block index is a logical index in units of <code>512</code> KiB blocks. To identify the block index, divide the logical offset of the data in the logical volume by the block size (logical offset of data/<code>524288</code>). The logical offset of the data must be <code>512</code> KiB aligned.</p>
        1870  +
        /* ServerBuilderGenerator.kt:428 */
 1328   1871   
        pub(crate) fn set_block_index(
 1329   1872   
            mut self,
 1330   1873   
            input: impl ::std::convert::Into<
 1331   1874   
                crate::constrained::MaybeConstrained<crate::model::BlockIndex>,
 1332   1875   
            >,
 1333   1876   
        ) -> Self {
        1877  +
            /* ServerBuilderGenerator.kt:429 */
 1334   1878   
            self.block_index = Some(input.into());
 1335   1879   
            self
        1880  +
            /* ServerBuilderGenerator.kt:428 */
 1336   1881   
        }
 1337         -
        /// <p>A Base64-encoded SHA256 checksum of the data. Only SHA256 checksums are supported.</p>
        1882  +
        /// /* ServerBuilderGenerator.kt:426 */<p>A Base64-encoded SHA256 checksum of the data. Only SHA256 checksums are supported.</p>
        1883  +
        /* ServerBuilderGenerator.kt:428 */
 1338   1884   
        pub(crate) fn set_checksum(
 1339   1885   
            mut self,
 1340   1886   
            input: impl ::std::convert::Into<
 1341   1887   
                crate::constrained::MaybeConstrained<crate::model::Checksum>,
 1342   1888   
            >,
 1343   1889   
        ) -> Self {
        1890  +
            /* ServerBuilderGenerator.kt:429 */
 1344   1891   
            self.checksum = Some(input.into());
 1345   1892   
            self
        1893  +
            /* ServerBuilderGenerator.kt:428 */
 1346   1894   
        }
 1347         -
        /// <p>The progress of the write process, as a percentage.</p>
        1895  +
        /// /* ServerBuilderGenerator.kt:426 */<p>The progress of the write process, as a percentage.</p>
        1896  +
        /* ServerBuilderGenerator.kt:428 */
 1348   1897   
        pub(crate) fn set_progress(
 1349   1898   
            mut self,
 1350   1899   
            input: Option<
 1351   1900   
                impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::Progress>>,
 1352   1901   
            >,
 1353   1902   
        ) -> Self {
        1903  +
            /* ServerBuilderGenerator.kt:429 */
 1354   1904   
            self.progress = input.map(|v| v.into());
 1355   1905   
            self
        1906  +
            /* ServerBuilderGenerator.kt:428 */
 1356   1907   
        }
 1357         -
        /// <p>The data to write to the block.</p>
        1908  +
        /// /* ServerBuilderGenerator.kt:426 */<p>The data to write to the block.</p>
 1358   1909   
        /// <p>The block data is not signed as part of the Signature Version 4 signing process. As a result, you must generate and provide a Base64-encoded SHA256 checksum for the block data using the <b>x-amz-Checksum</b> header. Also, you must specify the checksum algorithm using the <b>x-amz-Checksum-Algorithm</b> header. The checksum that you provide is part of the Signature Version 4 signing process. It is validated against a checksum generated by Amazon EBS to ensure the validity and authenticity of the data. If the checksums do not correspond, the request fails. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html#ebsapis-using-checksums"> Using checksums with the EBS direct APIs</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
        1910  +
        /* ServerBuilderGenerator.kt:428 */
 1359   1911   
        pub(crate) fn set_block_data(
 1360   1912   
            mut self,
 1361   1913   
            input: impl ::std::convert::Into<::aws_smithy_http_server_python::types::ByteStream>,
 1362   1914   
        ) -> Self {
        1915  +
            /* ServerBuilderGenerator.kt:429 */
 1363   1916   
            self.block_data = Some(input.into());
 1364   1917   
            self
        1918  +
            /* ServerBuilderGenerator.kt:428 */
 1365   1919   
        }
 1366         -
        /// <p>The size of the data to write to the block, in bytes. Currently, the only supported size is <code>524288</code>.</p>
        1920  +
        /// /* ServerBuilderGenerator.kt:426 */<p>The size of the data to write to the block, in bytes. Currently, the only supported size is <code>524288</code>.</p>
 1367   1921   
        /// <p>Valid values: <code>524288</code></p>
        1922  +
        /* ServerBuilderGenerator.kt:428 */
 1368   1923   
        pub(crate) fn set_data_length(mut self, input: impl ::std::convert::Into<i32>) -> Self {
        1924  +
            /* ServerBuilderGenerator.kt:429 */
 1369   1925   
            self.data_length = Some(input.into());
 1370   1926   
            self
        1927  +
            /* ServerBuilderGenerator.kt:428 */
 1371   1928   
        }
 1372         -
        /// <p>The algorithm used to generate the checksum. Currently, the only supported algorithm is <code>SHA256</code>.</p>
        1929  +
        /// /* ServerBuilderGenerator.kt:426 */<p>The algorithm used to generate the checksum. Currently, the only supported algorithm is <code>SHA256</code>.</p>
        1930  +
        /* ServerBuilderGenerator.kt:428 */
 1373   1931   
        pub(crate) fn set_checksum_algorithm(
 1374   1932   
            mut self,
 1375   1933   
            input: impl ::std::convert::Into<
 1376   1934   
                crate::constrained::MaybeConstrained<crate::model::ChecksumAlgorithm>,
 1377   1935   
            >,
 1378   1936   
        ) -> Self {
        1937  +
            /* ServerBuilderGenerator.kt:429 */
 1379   1938   
            self.checksum_algorithm = Some(input.into());
 1380   1939   
            self
        1940  +
            /* ServerBuilderGenerator.kt:428 */
 1381   1941   
        }
 1382         -
        /// Consumes the builder and constructs a [`PutSnapshotBlockInput`](crate::input::PutSnapshotBlockInput).
 1383         -
        ///
        1942  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`PutSnapshotBlockInput`](crate::input::PutSnapshotBlockInput).
        1943  +
        /// /* ServerBuilderGenerator.kt:260 */
 1384   1944   
        /// The builder fails to construct a [`PutSnapshotBlockInput`](crate::input::PutSnapshotBlockInput) if a [`ConstraintViolation`] occurs.
 1385   1945   
        ///
 1386         -
        /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
        1946  +
        /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
        1947  +
        /* ServerBuilderGenerator.kt:271 */
 1387   1948   
        pub fn build(self) -> Result<crate::input::PutSnapshotBlockInput, ConstraintViolation> {
 1388   1949   
            self.build_enforcing_all_constraints()
 1389   1950   
        }
        1951  +
        /* ServerBuilderGenerator.kt:283 */
 1390   1952   
        fn build_enforcing_all_constraints(
 1391   1953   
            self,
 1392   1954   
        ) -> Result<crate::input::PutSnapshotBlockInput, ConstraintViolation> {
 1393         -
            Ok(crate::input::PutSnapshotBlockInput {
        1955  +
            /* ServerBuilderGenerator.kt:287 */
        1956  +
            Ok(
        1957  +
                /* ServerBuilderGenerator.kt:542 */
        1958  +
                crate::input::PutSnapshotBlockInput {
        1959  +
                    /* ServerBuilderGenerator.kt:546 */
 1394   1960   
                    snapshot_id: self
 1395   1961   
                        .snapshot_id
        1962  +
                        /* ServerBuilderGenerator.kt:602 */
 1396   1963   
                        .map(|v| match v {
 1397   1964   
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
 1398   1965   
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
 1399   1966   
                        })
        1967  +
                        /* ServerBuilderGenerator.kt:614 */
 1400   1968   
                        .map(|res| res.map_err(ConstraintViolation::SnapshotId))
 1401   1969   
                        .transpose()?
        1970  +
                        /* ServerBuilderGenerator.kt:630 */
 1402   1971   
                        .map(|v: crate::model::SnapshotId| v.into())
        1972  +
                        /* ServerBuilderGenerator.kt:569 */
 1403   1973   
                        .ok_or(ConstraintViolation::MissingSnapshotId)?,
        1974  +
                    /* ServerBuilderGenerator.kt:546 */
 1404   1975   
                    block_index: self
 1405   1976   
                        .block_index
        1977  +
                        /* ServerBuilderGenerator.kt:602 */
 1406   1978   
                        .map(|v| match v {
 1407   1979   
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
 1408   1980   
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
 1409   1981   
                        })
        1982  +
                        /* ServerBuilderGenerator.kt:614 */
 1410   1983   
                        .map(|res| res.map_err(ConstraintViolation::BlockIndex))
 1411   1984   
                        .transpose()?
        1985  +
                        /* ServerBuilderGenerator.kt:630 */
 1412   1986   
                        .map(|v: crate::model::BlockIndex| v.into())
        1987  +
                        /* ServerBuilderGenerator.kt:569 */
 1413   1988   
                        .ok_or(ConstraintViolation::MissingBlockIndex)?,
        1989  +
                    /* ServerBuilderGenerator.kt:546 */
 1414   1990   
                    checksum: self
 1415   1991   
                        .checksum
        1992  +
                        /* ServerBuilderGenerator.kt:602 */
 1416   1993   
                        .map(|v| match v {
 1417   1994   
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
 1418   1995   
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
 1419   1996   
                        })
        1997  +
                        /* ServerBuilderGenerator.kt:614 */
 1420   1998   
                        .map(|res| res.map_err(ConstraintViolation::Checksum))
 1421   1999   
                        .transpose()?
        2000  +
                        /* ServerBuilderGenerator.kt:630 */
 1422   2001   
                        .map(|v: crate::model::Checksum| v.into())
        2002  +
                        /* ServerBuilderGenerator.kt:569 */
 1423   2003   
                        .ok_or(ConstraintViolation::MissingChecksum)?,
        2004  +
                    /* ServerBuilderGenerator.kt:546 */
 1424   2005   
                    progress: self
 1425   2006   
                        .progress
        2007  +
                        /* ServerBuilderGenerator.kt:602 */
 1426   2008   
                        .map(|v| match v {
 1427   2009   
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
 1428   2010   
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
 1429   2011   
                        })
        2012  +
                        /* ServerBuilderGenerator.kt:614 */
 1430   2013   
                        .map(|res| res.map_err(ConstraintViolation::Progress))
 1431   2014   
                        .transpose()?
        2015  +
                        /* ServerBuilderGenerator.kt:630 */
 1432   2016   
                        .map(|v: crate::model::Progress| v.into()),
        2017  +
                    /* ServerBuilderGenerator.kt:546 */
 1433   2018   
                    block_data: self
 1434   2019   
                        .block_data
        2020  +
                        /* ServerBuilderGenerator.kt:569 */
 1435   2021   
                        .ok_or(ConstraintViolation::MissingBlockData)?,
        2022  +
                    /* ServerBuilderGenerator.kt:546 */
 1436   2023   
                    data_length: self
 1437   2024   
                        .data_length
        2025  +
                        /* ServerBuilderGenerator.kt:569 */
 1438   2026   
                        .ok_or(ConstraintViolation::MissingDataLength)?,
        2027  +
                    /* ServerBuilderGenerator.kt:546 */
 1439   2028   
                    checksum_algorithm: self
 1440   2029   
                        .checksum_algorithm
        2030  +
                        /* ServerBuilderGenerator.kt:602 */
 1441   2031   
                        .map(|v| match v {
 1442   2032   
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
 1443   2033   
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
 1444   2034   
                        })
        2035  +
                        /* ServerBuilderGenerator.kt:614 */
 1445   2036   
                        .map(|res| res.map_err(ConstraintViolation::ChecksumAlgorithm))
 1446   2037   
                        .transpose()?
        2038  +
                        /* ServerBuilderGenerator.kt:569 */
 1447   2039   
                        .ok_or(ConstraintViolation::MissingChecksumAlgorithm)?,
 1448         -
            })
        2040  +
                    /* ServerBuilderGenerator.kt:542 */
        2041  +
                }, /* ServerBuilderGenerator.kt:287 */
        2042  +
            )
        2043  +
            /* ServerBuilderGenerator.kt:283 */
 1449   2044   
        }
        2045  +
        /* ServerBuilderGenerator.kt:215 */
 1450   2046   
    }
        2047  +
    /* ServerBuilderGenerator.kt:474 */
 1451   2048   
    impl ::std::fmt::Debug for Builder {
        2049  +
        /* ServerBuilderGenerator.kt:475 */
 1452   2050   
        fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        2051  +
            /* ServerBuilderGenerator.kt:476 */
 1453   2052   
            let mut formatter = f.debug_struct("Builder");
        2053  +
            /* ServerBuilderGenerator.kt:481 */
 1454   2054   
            formatter.field("snapshot_id", &self.snapshot_id);
        2055  +
            /* ServerBuilderGenerator.kt:481 */
 1455   2056   
            formatter.field("block_index", &self.block_index);
        2057  +
            /* ServerBuilderGenerator.kt:481 */
 1456   2058   
            formatter.field("checksum", &self.checksum);
        2059  +
            /* ServerBuilderGenerator.kt:481 */
 1457   2060   
            formatter.field("progress", &self.progress);
        2061  +
            /* ServerBuilderGenerator.kt:481 */
 1458   2062   
            formatter.field("block_data", &"*** Sensitive Data Redacted ***");
        2063  +
            /* ServerBuilderGenerator.kt:481 */
 1459   2064   
            formatter.field("data_length", &self.data_length);
        2065  +
            /* ServerBuilderGenerator.kt:481 */
 1460   2066   
            formatter.field("checksum_algorithm", &self.checksum_algorithm);
        2067  +
            /* ServerBuilderGenerator.kt:485 */
 1461   2068   
            formatter.finish()
        2069  +
            /* ServerBuilderGenerator.kt:475 */
 1462   2070   
        }
        2071  +
        /* ServerBuilderGenerator.kt:474 */
 1463   2072   
    }
        2073  +
        2074  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1464   2075   
}
 1465         -
/// See [`PutSnapshotBlockInput`](crate::input::PutSnapshotBlockInput).
        2076  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`PutSnapshotBlockInput`](crate::input::PutSnapshotBlockInput).
 1466   2077   
pub mod put_snapshot_block_input {
 1467   2078   
        2079  +
    /* RustType.kt:516 */
 1468   2080   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
 1469         -
    /// Holds one variant for each of the ways the builder can fail.
 1470         -
        2081  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
        2082  +
    /* ServerBuilderConstraintViolations.kt:75 */
 1471   2083   
    #[allow(clippy::enum_variant_names)]
 1472   2084   
    pub enum ConstraintViolation {
 1473         -
        /// `snapshot_id` was not provided but it is required when building `PutSnapshotBlockInput`.
        2085  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`snapshot_id` was not provided but it is required when building `PutSnapshotBlockInput`.
        2086  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1474   2087   
        MissingSnapshotId,
 1475         -
        /// `block_index` was not provided but it is required when building `PutSnapshotBlockInput`.
        2088  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`block_index` was not provided but it is required when building `PutSnapshotBlockInput`.
        2089  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1476   2090   
        MissingBlockIndex,
 1477         -
        /// `checksum` was not provided but it is required when building `PutSnapshotBlockInput`.
        2091  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`checksum` was not provided but it is required when building `PutSnapshotBlockInput`.
        2092  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1478   2093   
        MissingChecksum,
 1479         -
        /// `block_data` was not provided but it is required when building `PutSnapshotBlockInput`.
        2094  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`block_data` was not provided but it is required when building `PutSnapshotBlockInput`.
        2095  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1480   2096   
        MissingBlockData,
 1481         -
        /// `data_length` was not provided but it is required when building `PutSnapshotBlockInput`.
        2097  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`data_length` was not provided but it is required when building `PutSnapshotBlockInput`.
        2098  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1482   2099   
        MissingDataLength,
 1483         -
        /// `checksum_algorithm` was not provided but it is required when building `PutSnapshotBlockInput`.
        2100  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`checksum_algorithm` was not provided but it is required when building `PutSnapshotBlockInput`.
        2101  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1484   2102   
        MissingChecksumAlgorithm,
        2103  +
        /* ServerBuilderConstraintViolations.kt:75 */
 1485   2104   
    }
        2105  +
    /* ServerBuilderConstraintViolations.kt:117 */
 1486   2106   
    impl ::std::fmt::Display for ConstraintViolation {
        2107  +
        /* ServerBuilderConstraintViolations.kt:118 */
 1487   2108   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2109  +
            /* ServerBuilderConstraintViolations.kt:119 */
 1488   2110   
            match self {
 1489         -
                ConstraintViolation::MissingSnapshotId => write!(f, "`snapshot_id` was not provided but it is required when building `PutSnapshotBlockInput`"),
 1490         -
                ConstraintViolation::MissingBlockIndex => write!(f, "`block_index` was not provided but it is required when building `PutSnapshotBlockInput`"),
 1491         -
                ConstraintViolation::MissingChecksum => write!(f, "`checksum` was not provided but it is required when building `PutSnapshotBlockInput`"),
 1492         -
                ConstraintViolation::MissingBlockData => write!(f, "`block_data` was not provided but it is required when building `PutSnapshotBlockInput`"),
 1493         -
                ConstraintViolation::MissingDataLength => write!(f, "`data_length` was not provided but it is required when building `PutSnapshotBlockInput`"),
 1494         -
                ConstraintViolation::MissingChecksumAlgorithm => write!(f, "`checksum_algorithm` was not provided but it is required when building `PutSnapshotBlockInput`"),
 1495         -
            }
 1496         -
        }
 1497         -
    }
        2111  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingSnapshotId => write!(f, "`snapshot_id` was not provided but it is required when building `PutSnapshotBlockInput`"),
        2112  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingBlockIndex => write!(f, "`block_index` was not provided but it is required when building `PutSnapshotBlockInput`"),
        2113  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingChecksum => write!(f, "`checksum` was not provided but it is required when building `PutSnapshotBlockInput`"),
        2114  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingBlockData => write!(f, "`block_data` was not provided but it is required when building `PutSnapshotBlockInput`"),
        2115  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingDataLength => write!(f, "`data_length` was not provided but it is required when building `PutSnapshotBlockInput`"),
        2116  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingChecksumAlgorithm => write!(f, "`checksum_algorithm` was not provided but it is required when building `PutSnapshotBlockInput`"),
        2117  +
            /* ServerBuilderConstraintViolations.kt:119 */}
        2118  +
            /* ServerBuilderConstraintViolations.kt:118 */
        2119  +
        }
        2120  +
        /* ServerBuilderConstraintViolations.kt:117 */
        2121  +
    }
        2122  +
    /* ServerBuilderConstraintViolations.kt:84 */
 1498   2123   
    impl ::std::error::Error for ConstraintViolation {}
        2124  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
 1499   2125   
    impl ::std::convert::TryFrom<Builder> for crate::input::PutSnapshotBlockInput {
 1500   2126   
        type Error = ConstraintViolation;
 1501   2127   
 1502   2128   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
 1503   2129   
            builder.build()
 1504   2130   
        }
 1505   2131   
    }
 1506         -
    /// A builder for [`PutSnapshotBlockInput`](crate::input::PutSnapshotBlockInput).
        2132  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`PutSnapshotBlockInput`](crate::input::PutSnapshotBlockInput).
        2133  +
    /* RustType.kt:516 */
 1507   2134   
    #[derive(::std::clone::Clone, ::std::default::Default)]
        2135  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
 1508   2136   
    pub struct Builder {
        2137  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1509   2138   
        pub(crate) snapshot_id: ::std::option::Option<::std::string::String>,
        2139  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1510   2140   
        pub(crate) block_index: ::std::option::Option<i32>,
        2141  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1511   2142   
        pub(crate) checksum: ::std::option::Option<::std::string::String>,
        2143  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1512   2144   
        pub(crate) progress: ::std::option::Option<i32>,
        2145  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1513   2146   
        pub(crate) block_data:
 1514   2147   
            ::std::option::Option<::aws_smithy_http_server_python::types::ByteStream>,
        2148  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1515   2149   
        pub(crate) data_length: ::std::option::Option<i32>,
        2150  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1516   2151   
        pub(crate) checksum_algorithm: ::std::option::Option<crate::model::ChecksumAlgorithm>,
        2152  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
 1517   2153   
    }
        2154  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1518   2155   
    impl Builder {
 1519         -
        /// <p>The ID of the snapshot.</p>
        2156  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>The ID of the snapshot.</p>
        2157  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1520   2158   
        pub fn snapshot_id(mut self, input: ::std::string::String) -> Self {
 1521         -
            self.snapshot_id = Some(input);
        2159  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        2160  +
            self.snapshot_id =
        2161  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        2162  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        2163  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        2164  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1522   2165   
            self
        2166  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1523   2167   
        }
 1524         -
        /// <p>The block index of the block in which to write the data. A block index is a logical index in units of <code>512</code> KiB blocks. To identify the block index, divide the logical offset of the data in the logical volume by the block size (logical offset of data/<code>524288</code>). The logical offset of the data must be <code>512</code> KiB aligned.</p>
        2168  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>The block index of the block in which to write the data. A block index is a logical index in units of <code>512</code> KiB blocks. To identify the block index, divide the logical offset of the data in the logical volume by the block size (logical offset of data/<code>524288</code>). The logical offset of the data must be <code>512</code> KiB aligned.</p>
        2169  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1525   2170   
        pub fn block_index(mut self, input: i32) -> Self {
 1526         -
            self.block_index = Some(input);
        2171  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        2172  +
            self.block_index =
        2173  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        2174  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        2175  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        2176  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1527   2177   
            self
        2178  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1528   2179   
        }
 1529         -
        /// <p>A Base64-encoded SHA256 checksum of the data. Only SHA256 checksums are supported.</p>
        2180  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>A Base64-encoded SHA256 checksum of the data. Only SHA256 checksums are supported.</p>
        2181  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1530   2182   
        pub fn checksum(mut self, input: ::std::string::String) -> Self {
 1531         -
            self.checksum = Some(input);
        2183  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        2184  +
            self.checksum =
        2185  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        2186  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        2187  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        2188  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1532   2189   
            self
        2190  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1533   2191   
        }
 1534         -
        /// <p>The progress of the write process, as a percentage.</p>
        2192  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>The progress of the write process, as a percentage.</p>
        2193  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1535   2194   
        pub fn progress(mut self, input: ::std::option::Option<i32>) -> Self {
 1536         -
            self.progress = input;
        2195  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        2196  +
            self.progress =
        2197  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        2198  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1537   2199   
            self
        2200  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1538   2201   
        }
 1539         -
        /// <p>The data to write to the block.</p>
        2202  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>The data to write to the block.</p>
 1540   2203   
        /// <p>The block data is not signed as part of the Signature Version 4 signing process. As a result, you must generate and provide a Base64-encoded SHA256 checksum for the block data using the <b>x-amz-Checksum</b> header. Also, you must specify the checksum algorithm using the <b>x-amz-Checksum-Algorithm</b> header. The checksum that you provide is part of the Signature Version 4 signing process. It is validated against a checksum generated by Amazon EBS to ensure the validity and authenticity of the data. If the checksums do not correspond, the request fails. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html#ebsapis-using-checksums"> Using checksums with the EBS direct APIs</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
        2204  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1541   2205   
        pub fn block_data(
 1542   2206   
            mut self,
 1543   2207   
            input: ::aws_smithy_http_server_python::types::ByteStream,
 1544   2208   
        ) -> Self {
 1545         -
            self.block_data = Some(input);
        2209  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        2210  +
            self.block_data =
        2211  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        2212  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        2213  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        2214  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1546   2215   
            self
        2216  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1547   2217   
        }
 1548         -
        /// <p>The size of the data to write to the block, in bytes. Currently, the only supported size is <code>524288</code>.</p>
        2218  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>The size of the data to write to the block, in bytes. Currently, the only supported size is <code>524288</code>.</p>
 1549   2219   
        /// <p>Valid values: <code>524288</code></p>
        2220  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1550   2221   
        pub fn data_length(mut self, input: i32) -> Self {
 1551         -
            self.data_length = Some(input);
        2222  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        2223  +
            self.data_length =
        2224  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        2225  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        2226  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        2227  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1552   2228   
            self
        2229  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1553   2230   
        }
 1554         -
        /// <p>The algorithm used to generate the checksum. Currently, the only supported algorithm is <code>SHA256</code>.</p>
        2231  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>The algorithm used to generate the checksum. Currently, the only supported algorithm is <code>SHA256</code>.</p>
        2232  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1555   2233   
        pub fn checksum_algorithm(mut self, input: crate::model::ChecksumAlgorithm) -> Self {
 1556         -
            self.checksum_algorithm = Some(input);
        2234  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        2235  +
            self.checksum_algorithm =
        2236  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        2237  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        2238  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        2239  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1557   2240   
            self
        2241  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1558   2242   
        }
 1559         -
        /// Consumes the builder and constructs a [`PutSnapshotBlockInput`](crate::input::PutSnapshotBlockInput).
 1560         -
        ///
        2243  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`PutSnapshotBlockInput`](crate::input::PutSnapshotBlockInput).
        2244  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
 1561   2245   
        /// The builder fails to construct a [`PutSnapshotBlockInput`](crate::input::PutSnapshotBlockInput) if you do not provide a value for all non-`Option`al members.
 1562   2246   
        ///
        2247  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
 1563   2248   
        pub fn build(self) -> Result<crate::input::PutSnapshotBlockInput, ConstraintViolation> {
 1564   2249   
            self.build_enforcing_required_and_enum_traits()
 1565   2250   
        }
        2251  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1566   2252   
        fn build_enforcing_required_and_enum_traits(
 1567   2253   
            self,
 1568   2254   
        ) -> Result<crate::input::PutSnapshotBlockInput, ConstraintViolation> {
 1569         -
            Ok(crate::input::PutSnapshotBlockInput {
        2255  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
        2256  +
            Ok(
        2257  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        2258  +
                crate::input::PutSnapshotBlockInput {
        2259  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 1570   2260   
                    snapshot_id: self
 1571   2261   
                        .snapshot_id
        2262  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
 1572   2263   
                        .ok_or(ConstraintViolation::MissingSnapshotId)?,
        2264  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 1573   2265   
                    block_index: self
 1574   2266   
                        .block_index
        2267  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
 1575   2268   
                        .ok_or(ConstraintViolation::MissingBlockIndex)?,
 1576         -
                checksum: self.checksum.ok_or(ConstraintViolation::MissingChecksum)?,
        2269  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
        2270  +
                    checksum: self
        2271  +
                        .checksum
        2272  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
        2273  +
                        .ok_or(ConstraintViolation::MissingChecksum)?,
        2274  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 1577   2275   
                    progress: self.progress,
        2276  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 1578   2277   
                    block_data: self
 1579   2278   
                        .block_data
        2279  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
 1580   2280   
                        .ok_or(ConstraintViolation::MissingBlockData)?,
        2281  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 1581   2282   
                    data_length: self
 1582   2283   
                        .data_length
        2284  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
 1583   2285   
                        .ok_or(ConstraintViolation::MissingDataLength)?,
        2286  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 1584   2287   
                    checksum_algorithm: self
 1585   2288   
                        .checksum_algorithm
        2289  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
 1586   2290   
                        .ok_or(ConstraintViolation::MissingChecksumAlgorithm)?,
 1587         -
            })
        2291  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        2292  +
                }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
        2293  +
            )
        2294  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1588   2295   
        }
        2296  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1589   2297   
    }
        2298  +
        2299  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1590   2300   
}
 1591         -
/// See [`ListSnapshotBlocksInput`](crate::input::ListSnapshotBlocksInput).
        2301  +
/// /* ServerBuilderGenerator.kt:171 */See [`ListSnapshotBlocksInput`](crate::input::ListSnapshotBlocksInput).
 1592   2302   
pub(crate) mod list_snapshot_blocks_input_internal {
 1593   2303   
        2304  +
    /* RustType.kt:516 */
 1594   2305   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
 1595         -
    /// Holds one variant for each of the ways the builder can fail.
        2306  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
        2307  +
    /* RustType.kt:516 */
 1596   2308   
    #[non_exhaustive]
        2309  +
    /* ServerBuilderConstraintViolations.kt:75 */
 1597   2310   
    #[allow(clippy::enum_variant_names)]
 1598   2311   
    pub(crate) enum ConstraintViolation {
 1599         -
        /// Constraint violation occurred building member `max_results` when building `ListSnapshotBlocksInput`.
        2312  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `max_results` when building `ListSnapshotBlocksInput`.
        2313  +
        /* RustType.kt:516 */
 1600   2314   
        #[doc(hidden)]
        2315  +
        /* ServerBuilderConstraintViolations.kt:164 */
 1601   2316   
        MaxResults(crate::model::max_results_internal::ConstraintViolation),
 1602         -
        /// Constraint violation occurred building member `starting_block_index` when building `ListSnapshotBlocksInput`.
        2317  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `starting_block_index` when building `ListSnapshotBlocksInput`.
        2318  +
        /* RustType.kt:516 */
 1603   2319   
        #[doc(hidden)]
        2320  +
        /* ServerBuilderConstraintViolations.kt:164 */
 1604   2321   
        StartingBlockIndex(crate::model::block_index_internal::ConstraintViolation),
 1605         -
        /// Constraint violation occurred building member `next_token` when building `ListSnapshotBlocksInput`.
        2322  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `next_token` when building `ListSnapshotBlocksInput`.
        2323  +
        /* RustType.kt:516 */
 1606   2324   
        #[doc(hidden)]
        2325  +
        /* ServerBuilderConstraintViolations.kt:164 */
 1607   2326   
        NextToken(crate::model::page_token_internal::ConstraintViolation),
 1608         -
        /// `snapshot_id` was not provided but it is required when building `ListSnapshotBlocksInput`.
        2327  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`snapshot_id` was not provided but it is required when building `ListSnapshotBlocksInput`.
        2328  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1609   2329   
        MissingSnapshotId,
 1610         -
        /// Constraint violation occurred building member `snapshot_id` when building `ListSnapshotBlocksInput`.
        2330  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `snapshot_id` when building `ListSnapshotBlocksInput`.
        2331  +
        /* RustType.kt:516 */
 1611   2332   
        #[doc(hidden)]
        2333  +
        /* ServerBuilderConstraintViolations.kt:164 */
 1612   2334   
        SnapshotId(crate::model::snapshot_id_internal::ConstraintViolation),
        2335  +
        /* ServerBuilderConstraintViolations.kt:75 */
 1613   2336   
    }
        2337  +
    /* ServerBuilderConstraintViolations.kt:117 */
 1614   2338   
    impl ::std::fmt::Display for ConstraintViolation {
        2339  +
        /* ServerBuilderConstraintViolations.kt:118 */
 1615   2340   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2341  +
            /* ServerBuilderConstraintViolations.kt:119 */
 1616   2342   
            match self {
 1617         -
                ConstraintViolation::MaxResults(_) => write!(f, "constraint violation occurred building member `max_results` when building `ListSnapshotBlocksInput`"),
 1618         -
                ConstraintViolation::StartingBlockIndex(_) => write!(f, "constraint violation occurred building member `starting_block_index` when building `ListSnapshotBlocksInput`"),
 1619         -
                ConstraintViolation::NextToken(_) => write!(f, "constraint violation occurred building member `next_token` when building `ListSnapshotBlocksInput`"),
 1620         -
                ConstraintViolation::MissingSnapshotId => write!(f, "`snapshot_id` was not provided but it is required when building `ListSnapshotBlocksInput`"),
 1621         -
                ConstraintViolation::SnapshotId(_) => write!(f, "constraint violation occurred building member `snapshot_id` when building `ListSnapshotBlocksInput`"),
 1622         -
            }
        2343  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MaxResults(_) => write!(f, "constraint violation occurred building member `max_results` when building `ListSnapshotBlocksInput`"),
        2344  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::StartingBlockIndex(_) => write!(f, "constraint violation occurred building member `starting_block_index` when building `ListSnapshotBlocksInput`"),
        2345  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::NextToken(_) => write!(f, "constraint violation occurred building member `next_token` when building `ListSnapshotBlocksInput`"),
        2346  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingSnapshotId => write!(f, "`snapshot_id` was not provided but it is required when building `ListSnapshotBlocksInput`"),
        2347  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::SnapshotId(_) => write!(f, "constraint violation occurred building member `snapshot_id` when building `ListSnapshotBlocksInput`"),
        2348  +
            /* ServerBuilderConstraintViolations.kt:119 */}
        2349  +
            /* ServerBuilderConstraintViolations.kt:118 */
 1623   2350   
        }
        2351  +
        /* ServerBuilderConstraintViolations.kt:117 */
 1624   2352   
    }
        2353  +
    /* ServerBuilderConstraintViolations.kt:84 */
 1625   2354   
    impl ::std::error::Error for ConstraintViolation {}
        2355  +
    /* ServerBuilderConstraintViolations.kt:171 */
 1626   2356   
    impl ConstraintViolation {
 1627   2357   
        pub(crate) fn as_validation_exception_field(
 1628   2358   
            self,
 1629   2359   
            path: ::std::string::String,
 1630   2360   
        ) -> crate::model::ValidationExceptionField {
 1631   2361   
            match self {
 1632   2362   
            ConstraintViolation::MaxResults(inner) => inner.as_validation_exception_field(path + "/MaxResults"),
 1633   2363   
            ConstraintViolation::StartingBlockIndex(inner) => inner.as_validation_exception_field(path + "/StartingBlockIndex"),
 1634   2364   
            ConstraintViolation::NextToken(inner) => inner.as_validation_exception_field(path + "/NextToken"),
 1635   2365   
            ConstraintViolation::MissingSnapshotId => crate::model::ValidationExceptionField {
 1636   2366   
                                                message: format!("Value at '{}/SnapshotId' failed to satisfy constraint: Member must not be null", path),
 1637   2367   
                                                path: path + "/SnapshotId",
 1638   2368   
                                            },
 1639   2369   
            ConstraintViolation::SnapshotId(inner) => inner.as_validation_exception_field(path + "/SnapshotId"),
 1640   2370   
        }
 1641   2371   
        }
 1642   2372   
    }
        2373  +
    /* ServerBuilderGenerator.kt:234 */
 1643   2374   
    impl ::std::convert::From<ConstraintViolation>
 1644   2375   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
 1645   2376   
    {
 1646   2377   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 1647   2378   
            let first_validation_exception_field =
 1648   2379   
                constraint_violation.as_validation_exception_field("".to_owned());
 1649   2380   
            let validation_exception = crate::error::ValidationException {
 1650   2381   
                message: format!(
 1651   2382   
                    "1 validation error detected. {}",
 1652   2383   
                    &first_validation_exception_field.message
 1653   2384   
                ),
 1654   2385   
                field_list: Some(vec![first_validation_exception_field]),
 1655   2386   
            };
 1656   2387   
            Self::ConstraintViolation(
 1657   2388   
                                crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
 1658   2389   
                                    .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
 1659   2390   
                            )
 1660   2391   
        }
 1661   2392   
    }
        2393  +
    /* ServerBuilderGenerator.kt:244 */
 1662   2394   
    impl ::std::convert::From<Builder>
 1663   2395   
        for crate::constrained::MaybeConstrained<crate::input::ListSnapshotBlocksInput>
 1664   2396   
    {
 1665   2397   
        fn from(builder: Builder) -> Self {
 1666   2398   
            Self::Unconstrained(builder)
 1667   2399   
        }
 1668   2400   
    }
        2401  +
    /* ServerBuilderGenerator.kt:446 */
 1669   2402   
    impl ::std::convert::TryFrom<Builder> for crate::input::ListSnapshotBlocksInput {
 1670   2403   
        type Error = ConstraintViolation;
 1671   2404   
 1672   2405   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
 1673   2406   
            builder.build()
 1674   2407   
        }
 1675   2408   
    }
 1676         -
    /// A builder for [`ListSnapshotBlocksInput`](crate::input::ListSnapshotBlocksInput).
        2409  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`ListSnapshotBlocksInput`](crate::input::ListSnapshotBlocksInput).
        2410  +
    /* RustType.kt:516 */
 1677   2411   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        2412  +
    /* ServerBuilderGenerator.kt:211 */
 1678   2413   
    pub(crate) struct Builder {
        2414  +
        /* ServerBuilderGenerator.kt:308 */
 1679   2415   
        pub(crate) max_results:
 1680   2416   
            ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MaxResults>>,
        2417  +
        /* ServerBuilderGenerator.kt:308 */
 1681   2418   
        pub(crate) starting_block_index:
 1682   2419   
            ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::BlockIndex>>,
        2420  +
        /* ServerBuilderGenerator.kt:308 */
 1683   2421   
        pub(crate) next_token:
 1684   2422   
            ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::PageToken>>,
        2423  +
        /* ServerBuilderGenerator.kt:308 */
 1685   2424   
        pub(crate) snapshot_id:
 1686   2425   
            ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SnapshotId>>,
        2426  +
        /* ServerBuilderGenerator.kt:211 */
 1687   2427   
    }
        2428  +
    /* ServerBuilderGenerator.kt:215 */
 1688   2429   
    impl Builder {
 1689         -
        /// <p>The number of results to return.</p>
        2430  +
        /// /* ServerBuilderGenerator.kt:426 */<p>The number of results to return.</p>
        2431  +
        /* ServerBuilderGenerator.kt:428 */
 1690   2432   
        pub(crate) fn set_max_results(
 1691   2433   
            mut self,
 1692   2434   
            input: Option<
 1693   2435   
                impl ::std::convert::Into<
 1694   2436   
                    crate::constrained::MaybeConstrained<crate::model::MaxResults>,
 1695   2437   
                >,
 1696   2438   
            >,
 1697   2439   
        ) -> Self {
        2440  +
            /* ServerBuilderGenerator.kt:429 */
 1698   2441   
            self.max_results = input.map(|v| v.into());
 1699   2442   
            self
        2443  +
            /* ServerBuilderGenerator.kt:428 */
 1700   2444   
        }
 1701         -
        /// <p>The block index from which the list should start. The list in the response will start from this block index or the next valid block index in the snapshot.</p>
        2445  +
        /// /* ServerBuilderGenerator.kt:426 */<p>The block index from which the list should start. The list in the response will start from this block index or the next valid block index in the snapshot.</p>
        2446  +
        /* ServerBuilderGenerator.kt:428 */
 1702   2447   
        pub(crate) fn set_starting_block_index(
 1703   2448   
            mut self,
 1704   2449   
            input: Option<
 1705   2450   
                impl ::std::convert::Into<
 1706   2451   
                    crate::constrained::MaybeConstrained<crate::model::BlockIndex>,
 1707   2452   
                >,
 1708   2453   
            >,
 1709   2454   
        ) -> Self {
        2455  +
            /* ServerBuilderGenerator.kt:429 */
 1710   2456   
            self.starting_block_index = input.map(|v| v.into());
 1711   2457   
            self
        2458  +
            /* ServerBuilderGenerator.kt:428 */
 1712   2459   
        }
 1713         -
        /// <p>The token to request the next page of results.</p>
        2460  +
        /// /* ServerBuilderGenerator.kt:426 */<p>The token to request the next page of results.</p>
        2461  +
        /* ServerBuilderGenerator.kt:428 */
 1714   2462   
        pub(crate) fn set_next_token(
 1715   2463   
            mut self,
 1716   2464   
            input: Option<
 1717   2465   
                impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::PageToken>>,
 1718   2466   
            >,
 1719   2467   
        ) -> Self {
        2468  +
            /* ServerBuilderGenerator.kt:429 */
 1720   2469   
            self.next_token = input.map(|v| v.into());
 1721   2470   
            self
        2471  +
            /* ServerBuilderGenerator.kt:428 */
 1722   2472   
        }
 1723         -
        /// <p>The ID of the snapshot from which to get block indexes and block tokens.</p>
        2473  +
        /// /* ServerBuilderGenerator.kt:426 */<p>The ID of the snapshot from which to get block indexes and block tokens.</p>
        2474  +
        /* ServerBuilderGenerator.kt:428 */
 1724   2475   
        pub(crate) fn set_snapshot_id(
 1725   2476   
            mut self,
 1726   2477   
            input: impl ::std::convert::Into<
 1727   2478   
                crate::constrained::MaybeConstrained<crate::model::SnapshotId>,
 1728   2479   
            >,
 1729   2480   
        ) -> Self {
        2481  +
            /* ServerBuilderGenerator.kt:429 */
 1730   2482   
            self.snapshot_id = Some(input.into());
 1731   2483   
            self
        2484  +
            /* ServerBuilderGenerator.kt:428 */
 1732   2485   
        }
 1733         -
        /// Consumes the builder and constructs a [`ListSnapshotBlocksInput`](crate::input::ListSnapshotBlocksInput).
 1734         -
        ///
        2486  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ListSnapshotBlocksInput`](crate::input::ListSnapshotBlocksInput).
        2487  +
        /// /* ServerBuilderGenerator.kt:260 */
 1735   2488   
        /// The builder fails to construct a [`ListSnapshotBlocksInput`](crate::input::ListSnapshotBlocksInput) if a [`ConstraintViolation`] occurs.
 1736   2489   
        ///
 1737         -
        /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
        2490  +
        /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
        2491  +
        /* ServerBuilderGenerator.kt:271 */
 1738   2492   
        pub fn build(self) -> Result<crate::input::ListSnapshotBlocksInput, ConstraintViolation> {
 1739   2493   
            self.build_enforcing_all_constraints()
 1740   2494   
        }
        2495  +
        /* ServerBuilderGenerator.kt:283 */
 1741   2496   
        fn build_enforcing_all_constraints(
 1742   2497   
            self,
 1743   2498   
        ) -> Result<crate::input::ListSnapshotBlocksInput, ConstraintViolation> {
 1744         -
            Ok(crate::input::ListSnapshotBlocksInput {
        2499  +
            /* ServerBuilderGenerator.kt:287 */
        2500  +
            Ok(
        2501  +
                /* ServerBuilderGenerator.kt:542 */
        2502  +
                crate::input::ListSnapshotBlocksInput {
        2503  +
                    /* ServerBuilderGenerator.kt:546 */
 1745   2504   
                    max_results: self
 1746   2505   
                        .max_results
        2506  +
                        /* ServerBuilderGenerator.kt:602 */
 1747   2507   
                        .map(|v| match v {
 1748   2508   
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
 1749   2509   
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
 1750   2510   
                        })
        2511  +
                        /* ServerBuilderGenerator.kt:614 */
 1751   2512   
                        .map(|res| res.map_err(ConstraintViolation::MaxResults))
 1752   2513   
                        .transpose()?
        2514  +
                        /* ServerBuilderGenerator.kt:630 */
 1753   2515   
                        .map(|v: crate::model::MaxResults| v.into()),
        2516  +
                    /* ServerBuilderGenerator.kt:546 */
 1754   2517   
                    starting_block_index: self
 1755   2518   
                        .starting_block_index
        2519  +
                        /* ServerBuilderGenerator.kt:602 */
 1756   2520   
                        .map(|v| match v {
 1757   2521   
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
 1758   2522   
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
 1759   2523   
                        })
        2524  +
                        /* ServerBuilderGenerator.kt:614 */
 1760   2525   
                        .map(|res| res.map_err(ConstraintViolation::StartingBlockIndex))
 1761   2526   
                        .transpose()?
        2527  +
                        /* ServerBuilderGenerator.kt:630 */
 1762   2528   
                        .map(|v: crate::model::BlockIndex| v.into()),
        2529  +
                    /* ServerBuilderGenerator.kt:546 */
 1763   2530   
                    next_token: self
 1764   2531   
                        .next_token
        2532  +
                        /* ServerBuilderGenerator.kt:602 */
 1765   2533   
                        .map(|v| match v {
 1766   2534   
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
 1767   2535   
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
 1768   2536   
                        })
        2537  +
                        /* ServerBuilderGenerator.kt:614 */
 1769   2538   
                        .map(|res| res.map_err(ConstraintViolation::NextToken))
 1770   2539   
                        .transpose()?
        2540  +
                        /* ServerBuilderGenerator.kt:630 */
 1771   2541   
                        .map(|v: crate::model::PageToken| v.into()),
        2542  +
                    /* ServerBuilderGenerator.kt:546 */
 1772   2543   
                    snapshot_id: self
 1773   2544   
                        .snapshot_id
        2545  +
                        /* ServerBuilderGenerator.kt:602 */
 1774   2546   
                        .map(|v| match v {
 1775   2547   
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
 1776   2548   
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
 1777   2549   
                        })
        2550  +
                        /* ServerBuilderGenerator.kt:614 */
 1778   2551   
                        .map(|res| res.map_err(ConstraintViolation::SnapshotId))
 1779   2552   
                        .transpose()?
        2553  +
                        /* ServerBuilderGenerator.kt:630 */
 1780   2554   
                        .map(|v: crate::model::SnapshotId| v.into())
        2555  +
                        /* ServerBuilderGenerator.kt:569 */
 1781   2556   
                        .ok_or(ConstraintViolation::MissingSnapshotId)?,
 1782         -
            })
        2557  +
                    /* ServerBuilderGenerator.kt:542 */
        2558  +
                }, /* ServerBuilderGenerator.kt:287 */
        2559  +
            )
        2560  +
            /* ServerBuilderGenerator.kt:283 */
 1783   2561   
        }
        2562  +
        /* ServerBuilderGenerator.kt:215 */
 1784   2563   
    }
        2564  +
        2565  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1785   2566   
}
 1786         -
/// See [`ListSnapshotBlocksInput`](crate::input::ListSnapshotBlocksInput).
        2567  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ListSnapshotBlocksInput`](crate::input::ListSnapshotBlocksInput).
 1787   2568   
pub mod list_snapshot_blocks_input {
 1788   2569   
        2570  +
    /* RustType.kt:516 */
 1789   2571   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
 1790         -
    /// Holds one variant for each of the ways the builder can fail.
 1791         -
        2572  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
        2573  +
    /* ServerBuilderConstraintViolations.kt:75 */
 1792   2574   
    #[allow(clippy::enum_variant_names)]
 1793   2575   
    pub enum ConstraintViolation {
 1794         -
        /// `snapshot_id` was not provided but it is required when building `ListSnapshotBlocksInput`.
        2576  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`snapshot_id` was not provided but it is required when building `ListSnapshotBlocksInput`.
        2577  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1795   2578   
        MissingSnapshotId,
        2579  +
        /* ServerBuilderConstraintViolations.kt:75 */
 1796   2580   
    }
        2581  +
    /* ServerBuilderConstraintViolations.kt:117 */
 1797   2582   
    impl ::std::fmt::Display for ConstraintViolation {
        2583  +
        /* ServerBuilderConstraintViolations.kt:118 */
 1798   2584   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2585  +
            /* ServerBuilderConstraintViolations.kt:119 */
 1799   2586   
            match self {
 1800         -
                ConstraintViolation::MissingSnapshotId => write!(f, "`snapshot_id` was not provided but it is required when building `ListSnapshotBlocksInput`"),
 1801         -
            }
        2587  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingSnapshotId => write!(f, "`snapshot_id` was not provided but it is required when building `ListSnapshotBlocksInput`"),
        2588  +
            /* ServerBuilderConstraintViolations.kt:119 */}
        2589  +
            /* ServerBuilderConstraintViolations.kt:118 */
 1802   2590   
        }
        2591  +
        /* ServerBuilderConstraintViolations.kt:117 */
 1803   2592   
    }
        2593  +
    /* ServerBuilderConstraintViolations.kt:84 */
 1804   2594   
    impl ::std::error::Error for ConstraintViolation {}
        2595  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
 1805   2596   
    impl ::std::convert::TryFrom<Builder> for crate::input::ListSnapshotBlocksInput {
 1806   2597   
        type Error = ConstraintViolation;
 1807   2598   
 1808   2599   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
 1809   2600   
            builder.build()
 1810   2601   
        }
 1811   2602   
    }
 1812         -
    /// A builder for [`ListSnapshotBlocksInput`](crate::input::ListSnapshotBlocksInput).
        2603  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ListSnapshotBlocksInput`](crate::input::ListSnapshotBlocksInput).
        2604  +
    /* RustType.kt:516 */
 1813   2605   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        2606  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
 1814   2607   
    pub struct Builder {
        2608  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1815   2609   
        pub(crate) max_results: ::std::option::Option<i32>,
        2610  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1816   2611   
        pub(crate) starting_block_index: ::std::option::Option<i32>,
        2612  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1817   2613   
        pub(crate) next_token: ::std::option::Option<::std::string::String>,
        2614  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1818   2615   
        pub(crate) snapshot_id: ::std::option::Option<::std::string::String>,
        2616  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
 1819   2617   
    }
        2618  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1820   2619   
    impl Builder {
 1821         -
        /// <p>The number of results to return.</p>
        2620  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>The number of results to return.</p>
        2621  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1822   2622   
        pub fn max_results(mut self, input: ::std::option::Option<i32>) -> Self {
 1823         -
            self.max_results = input;
        2623  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        2624  +
            self.max_results =
        2625  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        2626  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1824   2627   
            self
        2628  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1825   2629   
        }
 1826         -
        /// <p>The block index from which the list should start. The list in the response will start from this block index or the next valid block index in the snapshot.</p>
        2630  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>The block index from which the list should start. The list in the response will start from this block index or the next valid block index in the snapshot.</p>
        2631  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1827   2632   
        pub fn starting_block_index(mut self, input: ::std::option::Option<i32>) -> Self {
 1828         -
            self.starting_block_index = input;
        2633  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        2634  +
            self.starting_block_index =
        2635  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        2636  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1829   2637   
            self
        2638  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1830   2639   
        }
 1831         -
        /// <p>The token to request the next page of results.</p>
        2640  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>The token to request the next page of results.</p>
        2641  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1832   2642   
        pub fn next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
 1833         -
            self.next_token = input;
        2643  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        2644  +
            self.next_token =
        2645  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        2646  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1834   2647   
            self
        2648  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1835   2649   
        }
 1836         -
        /// <p>The ID of the snapshot from which to get block indexes and block tokens.</p>
        2650  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>The ID of the snapshot from which to get block indexes and block tokens.</p>
        2651  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1837   2652   
        pub fn snapshot_id(mut self, input: ::std::string::String) -> Self {
 1838         -
            self.snapshot_id = Some(input);
        2653  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        2654  +
            self.snapshot_id =
        2655  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        2656  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        2657  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        2658  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1839   2659   
            self
        2660  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1840   2661   
        }
 1841         -
        /// Consumes the builder and constructs a [`ListSnapshotBlocksInput`](crate::input::ListSnapshotBlocksInput).
 1842         -
        ///
        2662  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ListSnapshotBlocksInput`](crate::input::ListSnapshotBlocksInput).
        2663  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
 1843   2664   
        /// The builder fails to construct a [`ListSnapshotBlocksInput`](crate::input::ListSnapshotBlocksInput) if you do not provide a value for all non-`Option`al members.
 1844   2665   
        ///
        2666  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
 1845   2667   
        pub fn build(self) -> Result<crate::input::ListSnapshotBlocksInput, ConstraintViolation> {
 1846   2668   
            self.build_enforcing_required_and_enum_traits()
 1847   2669   
        }
        2670  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1848   2671   
        fn build_enforcing_required_and_enum_traits(
 1849   2672   
            self,
 1850   2673   
        ) -> Result<crate::input::ListSnapshotBlocksInput, ConstraintViolation> {
 1851         -
            Ok(crate::input::ListSnapshotBlocksInput {
        2674  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
        2675  +
            Ok(
        2676  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        2677  +
                crate::input::ListSnapshotBlocksInput {
        2678  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 1852   2679   
                    max_results: self.max_results,
        2680  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 1853   2681   
                    starting_block_index: self.starting_block_index,
        2682  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 1854   2683   
                    next_token: self.next_token,
        2684  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 1855   2685   
                    snapshot_id: self
 1856   2686   
                        .snapshot_id
        2687  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
 1857   2688   
                        .ok_or(ConstraintViolation::MissingSnapshotId)?,
 1858         -
            })
        2689  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        2690  +
                }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
        2691  +
            )
        2692  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1859   2693   
        }
        2694  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1860   2695   
    }
        2696  +
        2697  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1861   2698   
}
 1862         -
/// See [`ListChangedBlocksInput`](crate::input::ListChangedBlocksInput).
        2699  +
/// /* ServerBuilderGenerator.kt:171 */See [`ListChangedBlocksInput`](crate::input::ListChangedBlocksInput).
 1863   2700   
pub(crate) mod list_changed_blocks_input_internal {
 1864   2701   
        2702  +
    /* RustType.kt:516 */
 1865   2703   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
 1866         -
    /// Holds one variant for each of the ways the builder can fail.
        2704  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
        2705  +
    /* RustType.kt:516 */
 1867   2706   
    #[non_exhaustive]
        2707  +
    /* ServerBuilderConstraintViolations.kt:75 */
 1868   2708   
    #[allow(clippy::enum_variant_names)]
 1869   2709   
    pub(crate) enum ConstraintViolation {
 1870         -
        /// `second_snapshot_id` was not provided but it is required when building `ListChangedBlocksInput`.
        2710  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`second_snapshot_id` was not provided but it is required when building `ListChangedBlocksInput`.
        2711  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1871   2712   
        MissingSecondSnapshotId,
 1872         -
        /// Constraint violation occurred building member `second_snapshot_id` when building `ListChangedBlocksInput`.
        2713  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `second_snapshot_id` when building `ListChangedBlocksInput`.
        2714  +
        /* RustType.kt:516 */
 1873   2715   
        #[doc(hidden)]
        2716  +
        /* ServerBuilderConstraintViolations.kt:164 */
 1874   2717   
        SecondSnapshotId(crate::model::snapshot_id_internal::ConstraintViolation),
 1875         -
        /// Constraint violation occurred building member `first_snapshot_id` when building `ListChangedBlocksInput`.
        2718  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `first_snapshot_id` when building `ListChangedBlocksInput`.
        2719  +
        /* RustType.kt:516 */
 1876   2720   
        #[doc(hidden)]
        2721  +
        /* ServerBuilderConstraintViolations.kt:164 */
 1877   2722   
        FirstSnapshotId(crate::model::snapshot_id_internal::ConstraintViolation),
 1878         -
        /// Constraint violation occurred building member `next_token` when building `ListChangedBlocksInput`.
        2723  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `next_token` when building `ListChangedBlocksInput`.
        2724  +
        /* RustType.kt:516 */
 1879   2725   
        #[doc(hidden)]
        2726  +
        /* ServerBuilderConstraintViolations.kt:164 */
 1880   2727   
        NextToken(crate::model::page_token_internal::ConstraintViolation),
 1881         -
        /// Constraint violation occurred building member `max_results` when building `ListChangedBlocksInput`.
        2728  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `max_results` when building `ListChangedBlocksInput`.
        2729  +
        /* RustType.kt:516 */
 1882   2730   
        #[doc(hidden)]
        2731  +
        /* ServerBuilderConstraintViolations.kt:164 */
 1883   2732   
        MaxResults(crate::model::max_results_internal::ConstraintViolation),
 1884         -
        /// Constraint violation occurred building member `starting_block_index` when building `ListChangedBlocksInput`.
        2733  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `starting_block_index` when building `ListChangedBlocksInput`.
        2734  +
        /* RustType.kt:516 */
 1885   2735   
        #[doc(hidden)]
        2736  +
        /* ServerBuilderConstraintViolations.kt:164 */
 1886   2737   
        StartingBlockIndex(crate::model::block_index_internal::ConstraintViolation),
        2738  +
        /* ServerBuilderConstraintViolations.kt:75 */
 1887   2739   
    }
        2740  +
    /* ServerBuilderConstraintViolations.kt:117 */
 1888   2741   
    impl ::std::fmt::Display for ConstraintViolation {
        2742  +
        /* ServerBuilderConstraintViolations.kt:118 */
 1889   2743   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2744  +
            /* ServerBuilderConstraintViolations.kt:119 */
 1890   2745   
            match self {
 1891         -
                ConstraintViolation::MissingSecondSnapshotId => write!(f, "`second_snapshot_id` was not provided but it is required when building `ListChangedBlocksInput`"),
 1892         -
                ConstraintViolation::SecondSnapshotId(_) => write!(f, "constraint violation occurred building member `second_snapshot_id` when building `ListChangedBlocksInput`"),
 1893         -
                ConstraintViolation::FirstSnapshotId(_) => write!(f, "constraint violation occurred building member `first_snapshot_id` when building `ListChangedBlocksInput`"),
 1894         -
                ConstraintViolation::NextToken(_) => write!(f, "constraint violation occurred building member `next_token` when building `ListChangedBlocksInput`"),
 1895         -
                ConstraintViolation::MaxResults(_) => write!(f, "constraint violation occurred building member `max_results` when building `ListChangedBlocksInput`"),
 1896         -
                ConstraintViolation::StartingBlockIndex(_) => write!(f, "constraint violation occurred building member `starting_block_index` when building `ListChangedBlocksInput`"),
 1897         -
            }
 1898         -
        }
 1899         -
    }
        2746  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingSecondSnapshotId => write!(f, "`second_snapshot_id` was not provided but it is required when building `ListChangedBlocksInput`"),
        2747  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::SecondSnapshotId(_) => write!(f, "constraint violation occurred building member `second_snapshot_id` when building `ListChangedBlocksInput`"),
        2748  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::FirstSnapshotId(_) => write!(f, "constraint violation occurred building member `first_snapshot_id` when building `ListChangedBlocksInput`"),
        2749  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::NextToken(_) => write!(f, "constraint violation occurred building member `next_token` when building `ListChangedBlocksInput`"),
        2750  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MaxResults(_) => write!(f, "constraint violation occurred building member `max_results` when building `ListChangedBlocksInput`"),
        2751  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::StartingBlockIndex(_) => write!(f, "constraint violation occurred building member `starting_block_index` when building `ListChangedBlocksInput`"),
        2752  +
            /* ServerBuilderConstraintViolations.kt:119 */}
        2753  +
            /* ServerBuilderConstraintViolations.kt:118 */
        2754  +
        }
        2755  +
        /* ServerBuilderConstraintViolations.kt:117 */
        2756  +
    }
        2757  +
    /* ServerBuilderConstraintViolations.kt:84 */
 1900   2758   
    impl ::std::error::Error for ConstraintViolation {}
        2759  +
    /* ServerBuilderConstraintViolations.kt:171 */
 1901   2760   
    impl ConstraintViolation {
 1902   2761   
        pub(crate) fn as_validation_exception_field(
 1903   2762   
            self,
 1904   2763   
            path: ::std::string::String,
 1905   2764   
        ) -> crate::model::ValidationExceptionField {
 1906   2765   
            match self {
 1907   2766   
            ConstraintViolation::MissingSecondSnapshotId => crate::model::ValidationExceptionField {
 1908   2767   
                                                message: format!("Value at '{}/SecondSnapshotId' failed to satisfy constraint: Member must not be null", path),
 1909   2768   
                                                path: path + "/SecondSnapshotId",
 1910   2769   
                                            },
 1911   2770   
            ConstraintViolation::SecondSnapshotId(inner) => inner.as_validation_exception_field(path + "/SecondSnapshotId"),
 1912   2771   
            ConstraintViolation::FirstSnapshotId(inner) => inner.as_validation_exception_field(path + "/FirstSnapshotId"),
 1913   2772   
            ConstraintViolation::NextToken(inner) => inner.as_validation_exception_field(path + "/NextToken"),
 1914   2773   
            ConstraintViolation::MaxResults(inner) => inner.as_validation_exception_field(path + "/MaxResults"),
 1915   2774   
            ConstraintViolation::StartingBlockIndex(inner) => inner.as_validation_exception_field(path + "/StartingBlockIndex"),
 1916   2775   
        }
 1917   2776   
        }
 1918   2777   
    }
        2778  +
    /* ServerBuilderGenerator.kt:234 */
 1919   2779   
    impl ::std::convert::From<ConstraintViolation>
 1920   2780   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
 1921   2781   
    {
 1922   2782   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 1923   2783   
            let first_validation_exception_field =
 1924   2784   
                constraint_violation.as_validation_exception_field("".to_owned());
 1925   2785   
            let validation_exception = crate::error::ValidationException {
 1926   2786   
                message: format!(
 1927   2787   
                    "1 validation error detected. {}",
 1928   2788   
                    &first_validation_exception_field.message
 1929   2789   
                ),
 1930   2790   
                field_list: Some(vec![first_validation_exception_field]),
 1931   2791   
            };
 1932   2792   
            Self::ConstraintViolation(
 1933   2793   
                                crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
 1934   2794   
                                    .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
 1935   2795   
                            )
 1936   2796   
        }
 1937   2797   
    }
        2798  +
    /* ServerBuilderGenerator.kt:244 */
 1938   2799   
    impl ::std::convert::From<Builder>
 1939   2800   
        for crate::constrained::MaybeConstrained<crate::input::ListChangedBlocksInput>
 1940   2801   
    {
 1941   2802   
        fn from(builder: Builder) -> Self {
 1942   2803   
            Self::Unconstrained(builder)
 1943   2804   
        }
 1944   2805   
    }
        2806  +
    /* ServerBuilderGenerator.kt:446 */
 1945   2807   
    impl ::std::convert::TryFrom<Builder> for crate::input::ListChangedBlocksInput {
 1946   2808   
        type Error = ConstraintViolation;
 1947   2809   
 1948   2810   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
 1949   2811   
            builder.build()
 1950   2812   
        }
 1951   2813   
    }
 1952         -
    /// A builder for [`ListChangedBlocksInput`](crate::input::ListChangedBlocksInput).
        2814  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`ListChangedBlocksInput`](crate::input::ListChangedBlocksInput).
        2815  +
    /* RustType.kt:516 */
 1953   2816   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        2817  +
    /* ServerBuilderGenerator.kt:211 */
 1954   2818   
    pub(crate) struct Builder {
        2819  +
        /* ServerBuilderGenerator.kt:308 */
 1955   2820   
        pub(crate) second_snapshot_id:
 1956   2821   
            ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SnapshotId>>,
        2822  +
        /* ServerBuilderGenerator.kt:308 */
 1957   2823   
        pub(crate) first_snapshot_id:
 1958   2824   
            ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SnapshotId>>,
        2825  +
        /* ServerBuilderGenerator.kt:308 */
 1959   2826   
        pub(crate) next_token:
 1960   2827   
            ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::PageToken>>,
        2828  +
        /* ServerBuilderGenerator.kt:308 */
 1961   2829   
        pub(crate) max_results:
 1962   2830   
            ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MaxResults>>,
        2831  +
        /* ServerBuilderGenerator.kt:308 */
 1963   2832   
        pub(crate) starting_block_index:
 1964   2833   
            ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::BlockIndex>>,
        2834  +
        /* ServerBuilderGenerator.kt:211 */
 1965   2835   
    }
        2836  +
    /* ServerBuilderGenerator.kt:215 */
 1966   2837   
    impl Builder {
 1967         -
        /// <p>The ID of the second snapshot to use for the comparison.</p><important>
        2838  +
        /// /* ServerBuilderGenerator.kt:426 */<p>The ID of the second snapshot to use for the comparison.</p><important>
 1968   2839   
        /// <p>The <code>SecondSnapshotId</code> parameter must be specified with a <code>FirstSnapshotID</code> parameter; otherwise, an error occurs.</p>
 1969   2840   
        /// </important>
        2841  +
        /* ServerBuilderGenerator.kt:428 */
 1970   2842   
        pub(crate) fn set_second_snapshot_id(
 1971   2843   
            mut self,
 1972   2844   
            input: impl ::std::convert::Into<
 1973   2845   
                crate::constrained::MaybeConstrained<crate::model::SnapshotId>,
 1974   2846   
            >,
 1975   2847   
        ) -> Self {
        2848  +
            /* ServerBuilderGenerator.kt:429 */
 1976   2849   
            self.second_snapshot_id = Some(input.into());
 1977   2850   
            self
        2851  +
            /* ServerBuilderGenerator.kt:428 */
 1978   2852   
        }
 1979         -
        /// <p>The ID of the first snapshot to use for the comparison.</p><important>
        2853  +
        /// /* ServerBuilderGenerator.kt:426 */<p>The ID of the first snapshot to use for the comparison.</p><important>
 1980   2854   
        /// <p>The <code>FirstSnapshotID</code> parameter must be specified with a <code>SecondSnapshotId</code> parameter; otherwise, an error occurs.</p>
 1981   2855   
        /// </important>
        2856  +
        /* ServerBuilderGenerator.kt:428 */
 1982   2857   
        pub(crate) fn set_first_snapshot_id(
 1983   2858   
            mut self,
 1984   2859   
            input: Option<
 1985   2860   
                impl ::std::convert::Into<
 1986   2861   
                    crate::constrained::MaybeConstrained<crate::model::SnapshotId>,
 1987   2862   
                >,
 1988   2863   
            >,
 1989   2864   
        ) -> Self {
        2865  +
            /* ServerBuilderGenerator.kt:429 */
 1990   2866   
            self.first_snapshot_id = input.map(|v| v.into());
 1991   2867   
            self
        2868  +
            /* ServerBuilderGenerator.kt:428 */
 1992   2869   
        }
 1993         -
        /// <p>The token to request the next page of results.</p>
        2870  +
        /// /* ServerBuilderGenerator.kt:426 */<p>The token to request the next page of results.</p>
        2871  +
        /* ServerBuilderGenerator.kt:428 */
 1994   2872   
        pub(crate) fn set_next_token(
 1995   2873   
            mut self,
 1996   2874   
            input: Option<
 1997   2875   
                impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::PageToken>>,
 1998   2876   
            >,
 1999   2877   
        ) -> Self {
        2878  +
            /* ServerBuilderGenerator.kt:429 */
 2000   2879   
            self.next_token = input.map(|v| v.into());
 2001   2880   
            self
        2881  +
            /* ServerBuilderGenerator.kt:428 */
 2002   2882   
        }
 2003         -
        /// <p>The number of results to return.</p>
        2883  +
        /// /* ServerBuilderGenerator.kt:426 */<p>The number of results to return.</p>
        2884  +
        /* ServerBuilderGenerator.kt:428 */
 2004   2885   
        pub(crate) fn set_max_results(
 2005   2886   
            mut self,
 2006   2887   
            input: Option<
 2007   2888   
                impl ::std::convert::Into<
 2008   2889   
                    crate::constrained::MaybeConstrained<crate::model::MaxResults>,
 2009   2890   
                >,
 2010   2891   
            >,
 2011   2892   
        ) -> Self {
        2893  +
            /* ServerBuilderGenerator.kt:429 */
 2012   2894   
            self.max_results = input.map(|v| v.into());
 2013   2895   
            self
        2896  +
            /* ServerBuilderGenerator.kt:428 */
 2014   2897   
        }
 2015         -
        /// <p>The block index from which the comparison should start.</p>
        2898  +
        /// /* ServerBuilderGenerator.kt:426 */<p>The block index from which the comparison should start.</p>
 2016   2899   
        /// <p>The list in the response will start from this block index or the next valid block index in the snapshots.</p>
        2900  +
        /* ServerBuilderGenerator.kt:428 */
 2017   2901   
        pub(crate) fn set_starting_block_index(
 2018   2902   
            mut self,
 2019   2903   
            input: Option<
 2020   2904   
                impl ::std::convert::Into<
 2021   2905   
                    crate::constrained::MaybeConstrained<crate::model::BlockIndex>,
 2022   2906   
                >,
 2023   2907   
            >,
 2024   2908   
        ) -> Self {
        2909  +
            /* ServerBuilderGenerator.kt:429 */
 2025   2910   
            self.starting_block_index = input.map(|v| v.into());
 2026   2911   
            self
        2912  +
            /* ServerBuilderGenerator.kt:428 */
 2027   2913   
        }
 2028         -
        /// Consumes the builder and constructs a [`ListChangedBlocksInput`](crate::input::ListChangedBlocksInput).
 2029         -
        ///
        2914  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ListChangedBlocksInput`](crate::input::ListChangedBlocksInput).
        2915  +
        /// /* ServerBuilderGenerator.kt:260 */
 2030   2916   
        /// The builder fails to construct a [`ListChangedBlocksInput`](crate::input::ListChangedBlocksInput) if a [`ConstraintViolation`] occurs.
 2031   2917   
        ///
 2032         -
        /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
        2918  +
        /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
        2919  +
        /* ServerBuilderGenerator.kt:271 */
 2033   2920   
        pub fn build(self) -> Result<crate::input::ListChangedBlocksInput, ConstraintViolation> {
 2034   2921   
            self.build_enforcing_all_constraints()
 2035   2922   
        }
        2923  +
        /* ServerBuilderGenerator.kt:283 */
 2036   2924   
        fn build_enforcing_all_constraints(
 2037   2925   
            self,
 2038   2926   
        ) -> Result<crate::input::ListChangedBlocksInput, ConstraintViolation> {
 2039         -
            Ok(crate::input::ListChangedBlocksInput {
        2927  +
            /* ServerBuilderGenerator.kt:287 */
        2928  +
            Ok(
        2929  +
                /* ServerBuilderGenerator.kt:542 */
        2930  +
                crate::input::ListChangedBlocksInput {
        2931  +
                    /* ServerBuilderGenerator.kt:546 */
 2040   2932   
                    second_snapshot_id: self
 2041   2933   
                        .second_snapshot_id
        2934  +
                        /* ServerBuilderGenerator.kt:602 */
 2042   2935   
                        .map(|v| match v {
 2043   2936   
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
 2044   2937   
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
 2045   2938   
                        })
        2939  +
                        /* ServerBuilderGenerator.kt:614 */
 2046   2940   
                        .map(|res| res.map_err(ConstraintViolation::SecondSnapshotId))
 2047   2941   
                        .transpose()?
        2942  +
                        /* ServerBuilderGenerator.kt:630 */
 2048   2943   
                        .map(|v: crate::model::SnapshotId| v.into())
        2944  +
                        /* ServerBuilderGenerator.kt:569 */
 2049   2945   
                        .ok_or(ConstraintViolation::MissingSecondSnapshotId)?,
        2946  +
                    /* ServerBuilderGenerator.kt:546 */
 2050   2947   
                    first_snapshot_id: self
 2051   2948   
                        .first_snapshot_id
        2949  +
                        /* ServerBuilderGenerator.kt:602 */
 2052   2950   
                        .map(|v| match v {
 2053   2951   
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
 2054   2952   
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
 2055   2953   
                        })
        2954  +
                        /* ServerBuilderGenerator.kt:614 */
 2056   2955   
                        .map(|res| res.map_err(ConstraintViolation::FirstSnapshotId))
 2057   2956   
                        .transpose()?
        2957  +
                        /* ServerBuilderGenerator.kt:630 */
 2058   2958   
                        .map(|v: crate::model::SnapshotId| v.into()),
        2959  +
                    /* ServerBuilderGenerator.kt:546 */
 2059   2960   
                    next_token: self
 2060   2961   
                        .next_token
        2962  +
                        /* ServerBuilderGenerator.kt:602 */
 2061   2963   
                        .map(|v| match v {
 2062   2964   
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
 2063   2965   
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
 2064   2966   
                        })
        2967  +
                        /* ServerBuilderGenerator.kt:614 */
 2065   2968   
                        .map(|res| res.map_err(ConstraintViolation::NextToken))
 2066   2969   
                        .transpose()?
        2970  +
                        /* ServerBuilderGenerator.kt:630 */
 2067   2971   
                        .map(|v: crate::model::PageToken| v.into()),
        2972  +
                    /* ServerBuilderGenerator.kt:546 */
 2068   2973   
                    max_results: self
 2069   2974   
                        .max_results
        2975  +
                        /* ServerBuilderGenerator.kt:602 */
 2070   2976   
                        .map(|v| match v {
 2071   2977   
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
 2072   2978   
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
 2073   2979   
                        })
        2980  +
                        /* ServerBuilderGenerator.kt:614 */
 2074   2981   
                        .map(|res| res.map_err(ConstraintViolation::MaxResults))
 2075   2982   
                        .transpose()?
        2983  +
                        /* ServerBuilderGenerator.kt:630 */
 2076   2984   
                        .map(|v: crate::model::MaxResults| v.into()),
        2985  +
                    /* ServerBuilderGenerator.kt:546 */
 2077   2986   
                    starting_block_index: self
 2078   2987   
                        .starting_block_index
        2988  +
                        /* ServerBuilderGenerator.kt:602 */
 2079   2989   
                        .map(|v| match v {
 2080   2990   
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
 2081   2991   
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
 2082   2992   
                        })
        2993  +
                        /* ServerBuilderGenerator.kt:614 */
 2083   2994   
                        .map(|res| res.map_err(ConstraintViolation::StartingBlockIndex))
 2084   2995   
                        .transpose()?
        2996  +
                        /* ServerBuilderGenerator.kt:630 */
 2085   2997   
                        .map(|v: crate::model::BlockIndex| v.into()),
 2086         -
            })
        2998  +
                    /* ServerBuilderGenerator.kt:542 */
        2999  +
                }, /* ServerBuilderGenerator.kt:287 */
        3000  +
            )
        3001  +
            /* ServerBuilderGenerator.kt:283 */
 2087   3002   
        }
        3003  +
        /* ServerBuilderGenerator.kt:215 */
 2088   3004   
    }
        3005  +
        3006  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 2089   3007   
}
 2090         -
/// See [`ListChangedBlocksInput`](crate::input::ListChangedBlocksInput).
        3008  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ListChangedBlocksInput`](crate::input::ListChangedBlocksInput).
 2091   3009   
pub mod list_changed_blocks_input {
 2092   3010   
        3011  +
    /* RustType.kt:516 */
 2093   3012   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
 2094         -
    /// Holds one variant for each of the ways the builder can fail.
 2095         -
        3013  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
        3014  +
    /* ServerBuilderConstraintViolations.kt:75 */
 2096   3015   
    #[allow(clippy::enum_variant_names)]
 2097   3016   
    pub enum ConstraintViolation {
 2098         -
        /// `second_snapshot_id` was not provided but it is required when building `ListChangedBlocksInput`.
        3017  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`second_snapshot_id` was not provided but it is required when building `ListChangedBlocksInput`.
        3018  +
        /* ServerBuilderConstraintViolations.kt:143 */
 2099   3019   
        MissingSecondSnapshotId,
        3020  +
        /* ServerBuilderConstraintViolations.kt:75 */
 2100   3021   
    }
        3022  +
    /* ServerBuilderConstraintViolations.kt:117 */
 2101   3023   
    impl ::std::fmt::Display for ConstraintViolation {
        3024  +
        /* ServerBuilderConstraintViolations.kt:118 */
 2102   3025   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        3026  +
            /* ServerBuilderConstraintViolations.kt:119 */
 2103   3027   
            match self {
 2104         -
                ConstraintViolation::MissingSecondSnapshotId => write!(f, "`second_snapshot_id` was not provided but it is required when building `ListChangedBlocksInput`"),
 2105         -
            }
        3028  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingSecondSnapshotId => write!(f, "`second_snapshot_id` was not provided but it is required when building `ListChangedBlocksInput`"),
        3029  +
            /* ServerBuilderConstraintViolations.kt:119 */}
        3030  +
            /* ServerBuilderConstraintViolations.kt:118 */
 2106   3031   
        }
        3032  +
        /* ServerBuilderConstraintViolations.kt:117 */
 2107   3033   
    }
        3034  +
    /* ServerBuilderConstraintViolations.kt:84 */
 2108   3035   
    impl ::std::error::Error for ConstraintViolation {}
        3036  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
 2109   3037   
    impl ::std::convert::TryFrom<Builder> for crate::input::ListChangedBlocksInput {
 2110   3038   
        type Error = ConstraintViolation;
 2111   3039   
 2112   3040   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
 2113   3041   
            builder.build()
 2114   3042   
        }
 2115   3043   
    }
 2116         -
    /// A builder for [`ListChangedBlocksInput`](crate::input::ListChangedBlocksInput).
        3044  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ListChangedBlocksInput`](crate::input::ListChangedBlocksInput).
        3045  +
    /* RustType.kt:516 */
 2117   3046   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        3047  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
 2118   3048   
    pub struct Builder {
        3049  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 2119   3050   
        pub(crate) second_snapshot_id: ::std::option::Option<::std::string::String>,
        3051  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 2120   3052   
        pub(crate) first_snapshot_id: ::std::option::Option<::std::string::String>,
        3053  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 2121   3054   
        pub(crate) next_token: ::std::option::Option<::std::string::String>,
        3055  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 2122   3056   
        pub(crate) max_results: ::std::option::Option<i32>,
        3057  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 2123   3058   
        pub(crate) starting_block_index: ::std::option::Option<i32>,
        3059  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
 2124   3060   
    }
        3061  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 2125   3062   
    impl Builder {
 2126         -
        /// <p>The ID of the second snapshot to use for the comparison.</p><important>
        3063  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>The ID of the second snapshot to use for the comparison.</p><important>
 2127   3064   
        /// <p>The <code>SecondSnapshotId</code> parameter must be specified with a <code>FirstSnapshotID</code> parameter; otherwise, an error occurs.</p>
 2128   3065   
        /// </important>
        3066  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 2129   3067   
        pub fn second_snapshot_id(mut self, input: ::std::string::String) -> Self {
 2130         -
            self.second_snapshot_id = Some(input);
        3068  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        3069  +
            self.second_snapshot_id =
        3070  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        3071  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        3072  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        3073  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 2131   3074   
            self
        3075  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 2132   3076   
        }
 2133         -
        /// <p>The ID of the first snapshot to use for the comparison.</p><important>
        3077  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>The ID of the first snapshot to use for the comparison.</p><important>
 2134   3078   
        /// <p>The <code>FirstSnapshotID</code> parameter must be specified with a <code>SecondSnapshotId</code> parameter; otherwise, an error occurs.</p>
 2135   3079   
        /// </important>
        3080  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 2136   3081   
        pub fn first_snapshot_id(
 2137   3082   
            mut self,
 2138   3083   
            input: ::std::option::Option<::std::string::String>,
 2139   3084   
        ) -> Self {
 2140         -
            self.first_snapshot_id = input;
        3085  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        3086  +
            self.first_snapshot_id =
        3087  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        3088  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 2141   3089   
            self
        3090  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 2142   3091   
        }
 2143         -
        /// <p>The token to request the next page of results.</p>
        3092  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>The token to request the next page of results.</p>
        3093  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 2144   3094   
        pub fn next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
 2145         -
            self.next_token = input;
        3095  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        3096  +
            self.next_token =
        3097  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        3098  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 2146   3099   
            self
        3100  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 2147   3101   
        }
 2148         -
        /// <p>The number of results to return.</p>
        3102  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>The number of results to return.</p>
        3103  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 2149   3104   
        pub fn max_results(mut self, input: ::std::option::Option<i32>) -> Self {
 2150         -
            self.max_results = input;
        3105  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        3106  +
            self.max_results =
        3107  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        3108  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 2151   3109   
            self
        3110  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 2152   3111   
        }
 2153         -
        /// <p>The block index from which the comparison should start.</p>
        3112  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>The block index from which the comparison should start.</p>
 2154   3113   
        /// <p>The list in the response will start from this block index or the next valid block index in the snapshots.</p>
        3114  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 2155   3115   
        pub fn starting_block_index(mut self, input: ::std::option::Option<i32>) -> Self {
 2156         -
            self.starting_block_index = input;
        3116  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        3117  +
            self.starting_block_index =
        3118  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        3119  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 2157   3120   
            self
        3121  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 2158   3122   
        }
 2159         -
        /// Consumes the builder and constructs a [`ListChangedBlocksInput`](crate::input::ListChangedBlocksInput).
 2160         -
        ///
        3123  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ListChangedBlocksInput`](crate::input::ListChangedBlocksInput).
        3124  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
 2161   3125   
        /// The builder fails to construct a [`ListChangedBlocksInput`](crate::input::ListChangedBlocksInput) if you do not provide a value for all non-`Option`al members.
 2162   3126   
        ///
        3127  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
 2163   3128   
        pub fn build(self) -> Result<crate::input::ListChangedBlocksInput, ConstraintViolation> {
 2164   3129   
            self.build_enforcing_required_and_enum_traits()
 2165   3130   
        }
        3131  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 2166   3132   
        fn build_enforcing_required_and_enum_traits(
 2167   3133   
            self,
 2168   3134   
        ) -> Result<crate::input::ListChangedBlocksInput, ConstraintViolation> {
 2169         -
            Ok(crate::input::ListChangedBlocksInput {
        3135  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
        3136  +
            Ok(
        3137  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        3138  +
                crate::input::ListChangedBlocksInput {
        3139  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 2170   3140   
                    second_snapshot_id: self
 2171   3141   
                        .second_snapshot_id
        3142  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
 2172   3143   
                        .ok_or(ConstraintViolation::MissingSecondSnapshotId)?,
        3144  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 2173   3145   
                    first_snapshot_id: self.first_snapshot_id,
        3146  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 2174   3147   
                    next_token: self.next_token,
        3148  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 2175   3149   
                    max_results: self.max_results,
        3150  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 2176   3151   
                    starting_block_index: self.starting_block_index,
 2177         -
            })
        3152  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        3153  +
                }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
        3154  +
            )
        3155  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 2178   3156   
        }
        3157  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 2179   3158   
    }
        3159  +
        3160  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 2180   3161   
}
 2181         -
/// See [`GetSnapshotBlockInput`](crate::input::GetSnapshotBlockInput).
        3162  +
/// /* ServerBuilderGenerator.kt:171 */See [`GetSnapshotBlockInput`](crate::input::GetSnapshotBlockInput).
 2182   3163   
pub(crate) mod get_snapshot_block_input_internal {
 2183   3164   
        3165  +
    /* RustType.kt:516 */
 2184   3166   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
 2185         -
    /// Holds one variant for each of the ways the builder can fail.
        3167  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
        3168  +
    /* RustType.kt:516 */
 2186   3169   
    #[non_exhaustive]
        3170  +
    /* ServerBuilderConstraintViolations.kt:75 */
 2187   3171   
    #[allow(clippy::enum_variant_names)]
 2188   3172   
    pub(crate) enum ConstraintViolation {
 2189         -
        /// `snapshot_id` was not provided but it is required when building `GetSnapshotBlockInput`.
        3173  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`snapshot_id` was not provided but it is required when building `GetSnapshotBlockInput`.
        3174  +
        /* ServerBuilderConstraintViolations.kt:143 */
 2190   3175   
        MissingSnapshotId,
 2191         -
        /// Constraint violation occurred building member `snapshot_id` when building `GetSnapshotBlockInput`.
        3176  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `snapshot_id` when building `GetSnapshotBlockInput`.
        3177  +
        /* RustType.kt:516 */
 2192   3178   
        #[doc(hidden)]
        3179  +
        /* ServerBuilderConstraintViolations.kt:164 */
 2193   3180   
        SnapshotId(crate::model::snapshot_id_internal::ConstraintViolation),
 2194         -
        /// `block_token` was not provided but it is required when building `GetSnapshotBlockInput`.
        3181  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`block_token` was not provided but it is required when building `GetSnapshotBlockInput`.
        3182  +
        /* ServerBuilderConstraintViolations.kt:143 */
 2195   3183   
        MissingBlockToken,
 2196         -
        /// Constraint violation occurred building member `block_token` when building `GetSnapshotBlockInput`.
        3184  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `block_token` when building `GetSnapshotBlockInput`.
        3185  +
        /* RustType.kt:516 */
 2197   3186   
        #[doc(hidden)]
        3187  +
        /* ServerBuilderConstraintViolations.kt:164 */
 2198   3188   
        BlockToken(crate::model::block_token_internal::ConstraintViolation),
 2199         -
        /// `block_index` was not provided but it is required when building `GetSnapshotBlockInput`.
        3189  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`block_index` was not provided but it is required when building `GetSnapshotBlockInput`.
        3190  +
        /* ServerBuilderConstraintViolations.kt:143 */
 2200   3191   
        MissingBlockIndex,
 2201         -
        /// Constraint violation occurred building member `block_index` when building `GetSnapshotBlockInput`.
        3192  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `block_index` when building `GetSnapshotBlockInput`.
        3193  +
        /* RustType.kt:516 */
 2202   3194   
        #[doc(hidden)]
        3195  +
        /* ServerBuilderConstraintViolations.kt:164 */
 2203   3196   
        BlockIndex(crate::model::block_index_internal::ConstraintViolation),
        3197  +
        /* ServerBuilderConstraintViolations.kt:75 */
 2204   3198   
    }
        3199  +
    /* ServerBuilderConstraintViolations.kt:117 */
 2205   3200   
    impl ::std::fmt::Display for ConstraintViolation {
        3201  +
        /* ServerBuilderConstraintViolations.kt:118 */
 2206   3202   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        3203  +
            /* ServerBuilderConstraintViolations.kt:119 */
 2207   3204   
            match self {
 2208         -
                ConstraintViolation::MissingSnapshotId => write!(f, "`snapshot_id` was not provided but it is required when building `GetSnapshotBlockInput`"),
 2209         -
                ConstraintViolation::SnapshotId(_) => write!(f, "constraint violation occurred building member `snapshot_id` when building `GetSnapshotBlockInput`"),
 2210         -
                ConstraintViolation::MissingBlockToken => write!(f, "`block_token` was not provided but it is required when building `GetSnapshotBlockInput`"),
 2211         -
                ConstraintViolation::BlockToken(_) => write!(f, "constraint violation occurred building member `block_token` when building `GetSnapshotBlockInput`"),
 2212         -
                ConstraintViolation::MissingBlockIndex => write!(f, "`block_index` was not provided but it is required when building `GetSnapshotBlockInput`"),
 2213         -
                ConstraintViolation::BlockIndex(_) => write!(f, "constraint violation occurred building member `block_index` when building `GetSnapshotBlockInput`"),
 2214         -
            }
 2215         -
        }
 2216         -
    }
        3205  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingSnapshotId => write!(f, "`snapshot_id` was not provided but it is required when building `GetSnapshotBlockInput`"),
        3206  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::SnapshotId(_) => write!(f, "constraint violation occurred building member `snapshot_id` when building `GetSnapshotBlockInput`"),
        3207  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingBlockToken => write!(f, "`block_token` was not provided but it is required when building `GetSnapshotBlockInput`"),
        3208  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::BlockToken(_) => write!(f, "constraint violation occurred building member `block_token` when building `GetSnapshotBlockInput`"),
        3209  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingBlockIndex => write!(f, "`block_index` was not provided but it is required when building `GetSnapshotBlockInput`"),
        3210  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::BlockIndex(_) => write!(f, "constraint violation occurred building member `block_index` when building `GetSnapshotBlockInput`"),
        3211  +
            /* ServerBuilderConstraintViolations.kt:119 */}
        3212  +
            /* ServerBuilderConstraintViolations.kt:118 */
        3213  +
        }
        3214  +
        /* ServerBuilderConstraintViolations.kt:117 */
        3215  +
    }
        3216  +
    /* ServerBuilderConstraintViolations.kt:84 */
 2217   3217   
    impl ::std::error::Error for ConstraintViolation {}
        3218  +
    /* ServerBuilderConstraintViolations.kt:171 */
 2218   3219   
    impl ConstraintViolation {
 2219   3220   
        pub(crate) fn as_validation_exception_field(
 2220   3221   
            self,
 2221   3222   
            path: ::std::string::String,
 2222   3223   
        ) -> crate::model::ValidationExceptionField {
 2223   3224   
            match self {
 2224   3225   
            ConstraintViolation::MissingSnapshotId => crate::model::ValidationExceptionField {
 2225   3226   
                                                message: format!("Value at '{}/SnapshotId' failed to satisfy constraint: Member must not be null", path),
 2226   3227   
                                                path: path + "/SnapshotId",
 2227   3228   
                                            },
 2228   3229   
            ConstraintViolation::SnapshotId(inner) => inner.as_validation_exception_field(path + "/SnapshotId"),
 2229   3230   
            ConstraintViolation::MissingBlockToken => crate::model::ValidationExceptionField {
 2230   3231   
                                                message: format!("Value at '{}/BlockToken' failed to satisfy constraint: Member must not be null", path),
 2231   3232   
                                                path: path + "/BlockToken",
 2232   3233   
                                            },
 2233   3234   
            ConstraintViolation::BlockToken(inner) => inner.as_validation_exception_field(path + "/BlockToken"),
 2234   3235   
            ConstraintViolation::MissingBlockIndex => crate::model::ValidationExceptionField {
 2235   3236   
                                                message: format!("Value at '{}/BlockIndex' failed to satisfy constraint: Member must not be null", path),
 2236   3237   
                                                path: path + "/BlockIndex",
 2237   3238   
                                            },
 2238   3239   
            ConstraintViolation::BlockIndex(inner) => inner.as_validation_exception_field(path + "/BlockIndex"),
 2239   3240   
        }
 2240   3241   
        }
 2241   3242   
    }
        3243  +
    /* ServerBuilderGenerator.kt:234 */
 2242   3244   
    impl ::std::convert::From<ConstraintViolation>
 2243   3245   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
 2244   3246   
    {
 2245   3247   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 2246   3248   
            let first_validation_exception_field =
 2247   3249   
                constraint_violation.as_validation_exception_field("".to_owned());
 2248   3250   
            let validation_exception = crate::error::ValidationException {
 2249   3251   
                message: format!(
 2250   3252   
                    "1 validation error detected. {}",
 2251   3253   
                    &first_validation_exception_field.message
 2252   3254   
                ),
 2253   3255   
                field_list: Some(vec![first_validation_exception_field]),
 2254   3256   
            };
 2255   3257   
            Self::ConstraintViolation(
 2256   3258   
                                crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
 2257   3259   
                                    .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
 2258   3260   
                            )
 2259   3261   
        }
 2260   3262   
    }
        3263  +
    /* ServerBuilderGenerator.kt:244 */
 2261   3264   
    impl ::std::convert::From<Builder>
 2262   3265   
        for crate::constrained::MaybeConstrained<crate::input::GetSnapshotBlockInput>
 2263   3266   
    {
 2264   3267   
        fn from(builder: Builder) -> Self {
 2265   3268   
            Self::Unconstrained(builder)
 2266   3269   
        }
 2267   3270   
    }
        3271  +
    /* ServerBuilderGenerator.kt:446 */
 2268   3272   
    impl ::std::convert::TryFrom<Builder> for crate::input::GetSnapshotBlockInput {
 2269   3273   
        type Error = ConstraintViolation;
 2270   3274   
 2271   3275   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
 2272   3276   
            builder.build()
 2273   3277   
        }
 2274   3278   
    }
 2275         -
    /// A builder for [`GetSnapshotBlockInput`](crate::input::GetSnapshotBlockInput).
        3279  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`GetSnapshotBlockInput`](crate::input::GetSnapshotBlockInput).
        3280  +
    /* RustType.kt:516 */
 2276   3281   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        3282  +
    /* ServerBuilderGenerator.kt:211 */
 2277   3283   
    pub(crate) struct Builder {
        3284  +
        /* ServerBuilderGenerator.kt:308 */
 2278   3285   
        pub(crate) snapshot_id:
 2279   3286   
            ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SnapshotId>>,
        3287  +
        /* ServerBuilderGenerator.kt:308 */
 2280   3288   
        pub(crate) block_token:
 2281   3289   
            ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::BlockToken>>,
        3290  +
        /* ServerBuilderGenerator.kt:308 */
 2282   3291   
        pub(crate) block_index:
 2283   3292   
            ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::BlockIndex>>,
        3293  +
        /* ServerBuilderGenerator.kt:211 */
 2284   3294   
    }
        3295  +
    /* ServerBuilderGenerator.kt:215 */
 2285   3296   
    impl Builder {
 2286         -
        /// <p>The ID of the snapshot containing the block from which to get data.</p>
        3297  +
        /// /* ServerBuilderGenerator.kt:426 */<p>The ID of the snapshot containing the block from which to get data.</p>
        3298  +
        /* ServerBuilderGenerator.kt:428 */
 2287   3299   
        pub(crate) fn set_snapshot_id(
 2288   3300   
            mut self,
 2289   3301   
            input: impl ::std::convert::Into<
 2290   3302   
                crate::constrained::MaybeConstrained<crate::model::SnapshotId>,
 2291   3303   
            >,
 2292   3304   
        ) -> Self {
        3305  +
            /* ServerBuilderGenerator.kt:429 */
 2293   3306   
            self.snapshot_id = Some(input.into());
 2294   3307   
            self
        3308  +
            /* ServerBuilderGenerator.kt:428 */
 2295   3309   
        }
 2296         -
        /// <p>The block token of the block from which to get data.</p>
        3310  +
        /// /* ServerBuilderGenerator.kt:426 */<p>The block token of the block from which to get data.</p>
 2297   3311   
        /// <p>Obtain the <code>BlockToken</code> by running the <code>ListChangedBlocks</code> or <code>ListSnapshotBlocks</code> operations.</p>
        3312  +
        /* ServerBuilderGenerator.kt:428 */
 2298   3313   
        pub(crate) fn set_block_token(
 2299   3314   
            mut self,
 2300   3315   
            input: impl ::std::convert::Into<
 2301   3316   
                crate::constrained::MaybeConstrained<crate::model::BlockToken>,
 2302   3317   
            >,
 2303   3318   
        ) -> Self {
        3319  +
            /* ServerBuilderGenerator.kt:429 */
 2304   3320   
            self.block_token = Some(input.into());
 2305   3321   
            self
        3322  +
            /* ServerBuilderGenerator.kt:428 */
 2306   3323   
        }
 2307         -
        /// <p>The block index of the block from which to get data.</p>
        3324  +
        /// /* ServerBuilderGenerator.kt:426 */<p>The block index of the block from which to get data.</p>
 2308   3325   
        /// <p>Obtain the <code>BlockIndex</code> by running the <code>ListChangedBlocks</code> or <code>ListSnapshotBlocks</code> operations.</p>
        3326  +
        /* ServerBuilderGenerator.kt:428 */
 2309   3327   
        pub(crate) fn set_block_index(
 2310   3328   
            mut self,
 2311   3329   
            input: impl ::std::convert::Into<
 2312   3330   
                crate::constrained::MaybeConstrained<crate::model::BlockIndex>,
 2313   3331   
            >,
 2314   3332   
        ) -> Self {
        3333  +
            /* ServerBuilderGenerator.kt:429 */
 2315   3334   
            self.block_index = Some(input.into());
 2316   3335   
            self
        3336  +
            /* ServerBuilderGenerator.kt:428 */
 2317   3337   
        }
 2318         -
        /// Consumes the builder and constructs a [`GetSnapshotBlockInput`](crate::input::GetSnapshotBlockInput).
 2319         -
        ///
        3338  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`GetSnapshotBlockInput`](crate::input::GetSnapshotBlockInput).
        3339  +
        /// /* ServerBuilderGenerator.kt:260 */
 2320   3340   
        /// The builder fails to construct a [`GetSnapshotBlockInput`](crate::input::GetSnapshotBlockInput) if a [`ConstraintViolation`] occurs.
 2321   3341   
        ///
 2322         -
        /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
        3342  +
        /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
        3343  +
        /* ServerBuilderGenerator.kt:271 */
 2323   3344   
        pub fn build(self) -> Result<crate::input::GetSnapshotBlockInput, ConstraintViolation> {
 2324   3345   
            self.build_enforcing_all_constraints()
 2325   3346   
        }
        3347  +
        /* ServerBuilderGenerator.kt:283 */
 2326   3348   
        fn build_enforcing_all_constraints(
 2327   3349   
            self,
 2328   3350   
        ) -> Result<crate::input::GetSnapshotBlockInput, ConstraintViolation> {
 2329         -
            Ok(crate::input::GetSnapshotBlockInput {
        3351  +
            /* ServerBuilderGenerator.kt:287 */
        3352  +
            Ok(
        3353  +
                /* ServerBuilderGenerator.kt:542 */
        3354  +
                crate::input::GetSnapshotBlockInput {
        3355  +
                    /* ServerBuilderGenerator.kt:546 */
 2330   3356   
                    snapshot_id: self
 2331   3357   
                        .snapshot_id
        3358  +
                        /* ServerBuilderGenerator.kt:602 */
 2332   3359   
                        .map(|v| match v {
 2333   3360   
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
 2334   3361   
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
 2335   3362   
                        })
        3363  +
                        /* ServerBuilderGenerator.kt:614 */
 2336   3364   
                        .map(|res| res.map_err(ConstraintViolation::SnapshotId))
 2337   3365   
                        .transpose()?
        3366  +
                        /* ServerBuilderGenerator.kt:630 */
 2338   3367   
                        .map(|v: crate::model::SnapshotId| v.into())
        3368  +
                        /* ServerBuilderGenerator.kt:569 */
 2339   3369   
                        .ok_or(ConstraintViolation::MissingSnapshotId)?,
        3370  +
                    /* ServerBuilderGenerator.kt:546 */
 2340   3371   
                    block_token: self
 2341   3372   
                        .block_token
        3373  +
                        /* ServerBuilderGenerator.kt:602 */
 2342   3374   
                        .map(|v| match v {
 2343   3375   
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
 2344   3376   
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
 2345   3377   
                        })
        3378  +
                        /* ServerBuilderGenerator.kt:614 */
 2346   3379   
                        .map(|res| res.map_err(ConstraintViolation::BlockToken))
 2347   3380   
                        .transpose()?
        3381  +
                        /* ServerBuilderGenerator.kt:630 */
 2348   3382   
                        .map(|v: crate::model::BlockToken| v.into())
        3383  +
                        /* ServerBuilderGenerator.kt:569 */
 2349   3384   
                        .ok_or(ConstraintViolation::MissingBlockToken)?,
        3385  +
                    /* ServerBuilderGenerator.kt:546 */
 2350   3386   
                    block_index: self
 2351   3387   
                        .block_index
        3388  +
                        /* ServerBuilderGenerator.kt:602 */
 2352   3389   
                        .map(|v| match v {
 2353   3390   
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
 2354   3391   
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
 2355   3392   
                        })
        3393  +
                        /* ServerBuilderGenerator.kt:614 */
 2356   3394   
                        .map(|res| res.map_err(ConstraintViolation::BlockIndex))
 2357   3395   
                        .transpose()?
        3396  +
                        /* ServerBuilderGenerator.kt:630 */
 2358   3397   
                        .map(|v: crate::model::BlockIndex| v.into())
        3398  +
                        /* ServerBuilderGenerator.kt:569 */
 2359   3399   
                        .ok_or(ConstraintViolation::MissingBlockIndex)?,
 2360         -
            })
        3400  +
                    /* ServerBuilderGenerator.kt:542 */
        3401  +
                }, /* ServerBuilderGenerator.kt:287 */
        3402  +
            )
        3403  +
            /* ServerBuilderGenerator.kt:283 */
 2361   3404   
        }
        3405  +
        /* ServerBuilderGenerator.kt:215 */
 2362   3406   
    }
        3407  +
        3408  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 2363   3409   
}
 2364         -
/// See [`GetSnapshotBlockInput`](crate::input::GetSnapshotBlockInput).
        3410  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`GetSnapshotBlockInput`](crate::input::GetSnapshotBlockInput).
 2365   3411   
pub mod get_snapshot_block_input {
 2366   3412   
        3413  +
    /* RustType.kt:516 */
 2367   3414   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
 2368         -
    /// Holds one variant for each of the ways the builder can fail.
 2369         -
        3415  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
        3416  +
    /* ServerBuilderConstraintViolations.kt:75 */
 2370   3417   
    #[allow(clippy::enum_variant_names)]
 2371   3418   
    pub enum ConstraintViolation {
 2372         -
        /// `snapshot_id` was not provided but it is required when building `GetSnapshotBlockInput`.
        3419  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`snapshot_id` was not provided but it is required when building `GetSnapshotBlockInput`.
        3420  +
        /* ServerBuilderConstraintViolations.kt:143 */
 2373   3421   
        MissingSnapshotId,
 2374         -
        /// `block_token` was not provided but it is required when building `GetSnapshotBlockInput`.
        3422  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`block_token` was not provided but it is required when building `GetSnapshotBlockInput`.
        3423  +
        /* ServerBuilderConstraintViolations.kt:143 */
 2375   3424   
        MissingBlockToken,
 2376         -
        /// `block_index` was not provided but it is required when building `GetSnapshotBlockInput`.
        3425  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`block_index` was not provided but it is required when building `GetSnapshotBlockInput`.
        3426  +
        /* ServerBuilderConstraintViolations.kt:143 */
 2377   3427   
        MissingBlockIndex,
        3428  +
        /* ServerBuilderConstraintViolations.kt:75 */
 2378   3429   
    }
        3430  +
    /* ServerBuilderConstraintViolations.kt:117 */
 2379   3431   
    impl ::std::fmt::Display for ConstraintViolation {
        3432  +
        /* ServerBuilderConstraintViolations.kt:118 */
 2380   3433   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        3434  +
            /* ServerBuilderConstraintViolations.kt:119 */
 2381   3435   
            match self {
 2382         -
                ConstraintViolation::MissingSnapshotId => write!(f, "`snapshot_id` was not provided but it is required when building `GetSnapshotBlockInput`"),
 2383         -
                ConstraintViolation::MissingBlockToken => write!(f, "`block_token` was not provided but it is required when building `GetSnapshotBlockInput`"),
 2384         -
                ConstraintViolation::MissingBlockIndex => write!(f, "`block_index` was not provided but it is required when building `GetSnapshotBlockInput`"),
 2385         -
            }
        3436  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingSnapshotId => write!(f, "`snapshot_id` was not provided but it is required when building `GetSnapshotBlockInput`"),
        3437  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingBlockToken => write!(f, "`block_token` was not provided but it is required when building `GetSnapshotBlockInput`"),
        3438  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingBlockIndex => write!(f, "`block_index` was not provided but it is required when building `GetSnapshotBlockInput`"),
        3439  +
            /* ServerBuilderConstraintViolations.kt:119 */}
        3440  +
            /* ServerBuilderConstraintViolations.kt:118 */
 2386   3441   
        }
        3442  +
        /* ServerBuilderConstraintViolations.kt:117 */
 2387   3443   
    }
        3444  +
    /* ServerBuilderConstraintViolations.kt:84 */
 2388   3445   
    impl ::std::error::Error for ConstraintViolation {}
        3446  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
 2389   3447   
    impl ::std::convert::TryFrom<Builder> for crate::input::GetSnapshotBlockInput {
 2390   3448   
        type Error = ConstraintViolation;
 2391   3449   
 2392   3450   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
 2393   3451   
            builder.build()
 2394   3452   
        }
 2395   3453   
    }
 2396         -
    /// A builder for [`GetSnapshotBlockInput`](crate::input::GetSnapshotBlockInput).
        3454  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`GetSnapshotBlockInput`](crate::input::GetSnapshotBlockInput).
        3455  +
    /* RustType.kt:516 */
 2397   3456   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        3457  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
 2398   3458   
    pub struct Builder {
        3459  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 2399   3460   
        pub(crate) snapshot_id: ::std::option::Option<::std::string::String>,
        3461  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 2400   3462   
        pub(crate) block_token: ::std::option::Option<::std::string::String>,
        3463  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 2401   3464   
        pub(crate) block_index: ::std::option::Option<i32>,
        3465  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
 2402   3466   
    }
        3467  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 2403   3468   
    impl Builder {
 2404         -
        /// <p>The ID of the snapshot containing the block from which to get data.</p>
        3469  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>The ID of the snapshot containing the block from which to get data.</p>
        3470  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 2405   3471   
        pub fn snapshot_id(mut self, input: ::std::string::String) -> Self {
 2406         -
            self.snapshot_id = Some(input);
        3472  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        3473  +
            self.snapshot_id =
        3474  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        3475  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        3476  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        3477  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 2407   3478   
            self
        3479  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 2408   3480   
        }
 2409         -
        /// <p>The block token of the block from which to get data.</p>
        3481  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>The block token of the block from which to get data.</p>
 2410   3482   
        /// <p>Obtain the <code>BlockToken</code> by running the <code>ListChangedBlocks</code> or <code>ListSnapshotBlocks</code> operations.</p>
        3483  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 2411   3484   
        pub fn block_token(mut self, input: ::std::string::String) -> Self {
 2412         -
            self.block_token = Some(input);
        3485  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        3486  +
            self.block_token =
        3487  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        3488  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        3489  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        3490  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 2413   3491   
            self
        3492  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 2414   3493   
        }
 2415         -
        /// <p>The block index of the block from which to get data.</p>
        3494  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>The block index of the block from which to get data.</p>
 2416   3495   
        /// <p>Obtain the <code>BlockIndex</code> by running the <code>ListChangedBlocks</code> or <code>ListSnapshotBlocks</code> operations.</p>
        3496  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 2417   3497   
        pub fn block_index(mut self, input: i32) -> Self {
 2418         -
            self.block_index = Some(input);
        3498  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        3499  +
            self.block_index =
        3500  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        3501  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        3502  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        3503  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 2419   3504   
            self
        3505  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 2420   3506   
        }
 2421         -
        /// Consumes the builder and constructs a [`GetSnapshotBlockInput`](crate::input::GetSnapshotBlockInput).
 2422         -
        ///
        3507  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`GetSnapshotBlockInput`](crate::input::GetSnapshotBlockInput).
        3508  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
 2423   3509   
        /// The builder fails to construct a [`GetSnapshotBlockInput`](crate::input::GetSnapshotBlockInput) if you do not provide a value for all non-`Option`al members.
 2424   3510   
        ///
        3511  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
 2425   3512   
        pub fn build(self) -> Result<crate::input::GetSnapshotBlockInput, ConstraintViolation> {
 2426   3513   
            self.build_enforcing_required_and_enum_traits()
 2427   3514   
        }
        3515  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 2428   3516   
        fn build_enforcing_required_and_enum_traits(
 2429   3517   
            self,
 2430   3518   
        ) -> Result<crate::input::GetSnapshotBlockInput, ConstraintViolation> {
 2431         -
            Ok(crate::input::GetSnapshotBlockInput {
        3519  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
        3520  +
            Ok(
        3521  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        3522  +
                crate::input::GetSnapshotBlockInput {
        3523  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 2432   3524   
                    snapshot_id: self
 2433   3525   
                        .snapshot_id
        3526  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
 2434   3527   
                        .ok_or(ConstraintViolation::MissingSnapshotId)?,
        3528  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 2435   3529   
                    block_token: self
 2436   3530   
                        .block_token
        3531  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
 2437   3532   
                        .ok_or(ConstraintViolation::MissingBlockToken)?,
        3533  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 2438   3534   
                    block_index: self
 2439   3535   
                        .block_index
        3536  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
 2440   3537   
                        .ok_or(ConstraintViolation::MissingBlockIndex)?,
 2441         -
            })
        3538  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        3539  +
                }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
        3540  +
            )
        3541  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 2442   3542   
        }
        3543  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 2443   3544   
    }
        3545  +
        3546  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 2444   3547   
}
 2445         -
/// See [`CompleteSnapshotInput`](crate::input::CompleteSnapshotInput).
        3548  +
/// /* ServerBuilderGenerator.kt:171 */See [`CompleteSnapshotInput`](crate::input::CompleteSnapshotInput).
 2446   3549   
pub(crate) mod complete_snapshot_input_internal {
 2447   3550   
        3551  +
    /* RustType.kt:516 */
 2448   3552   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
 2449         -
    /// Holds one variant for each of the ways the builder can fail.
        3553  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
        3554  +
    /* RustType.kt:516 */
 2450   3555   
    #[non_exhaustive]
        3556  +
    /* ServerBuilderConstraintViolations.kt:75 */
 2451   3557   
    #[allow(clippy::enum_variant_names)]
 2452   3558   
    pub(crate) enum ConstraintViolation {
 2453         -
        /// `changed_blocks_count` was not provided but it is required when building `CompleteSnapshotInput`.
        3559  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`changed_blocks_count` was not provided but it is required when building `CompleteSnapshotInput`.
        3560  +
        /* ServerBuilderConstraintViolations.kt:143 */
 2454   3561   
        MissingChangedBlocksCount,
 2455         -
        /// Constraint violation occurred building member `changed_blocks_count` when building `CompleteSnapshotInput`.
        3562  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `changed_blocks_count` when building `CompleteSnapshotInput`.
        3563  +
        /* RustType.kt:516 */
 2456   3564   
        #[doc(hidden)]
        3565  +
        /* ServerBuilderConstraintViolations.kt:164 */
 2457   3566   
        ChangedBlocksCount(crate::model::changed_blocks_count_internal::ConstraintViolation),
 2458         -
        /// Constraint violation occurred building member `checksum_aggregation_method` when building `CompleteSnapshotInput`.
        3567  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `checksum_aggregation_method` when building `CompleteSnapshotInput`.
        3568  +
        /* RustType.kt:516 */
 2459   3569   
        #[doc(hidden)]
        3570  +
        /* ServerBuilderConstraintViolations.kt:164 */
 2460   3571   
        ChecksumAggregationMethod(
 2461   3572   
            crate::model::checksum_aggregation_method_internal::ConstraintViolation,
 2462   3573   
        ),
 2463         -
        /// Constraint violation occurred building member `checksum_algorithm` when building `CompleteSnapshotInput`.
        3574  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `checksum_algorithm` when building `CompleteSnapshotInput`.
        3575  +
        /* RustType.kt:516 */
 2464   3576   
        #[doc(hidden)]
        3577  +
        /* ServerBuilderConstraintViolations.kt:164 */
 2465   3578   
        ChecksumAlgorithm(crate::model::checksum_algorithm_internal::ConstraintViolation),
 2466         -
        /// `snapshot_id` was not provided but it is required when building `CompleteSnapshotInput`.
        3579  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`snapshot_id` was not provided but it is required when building `CompleteSnapshotInput`.
        3580  +
        /* ServerBuilderConstraintViolations.kt:143 */
 2467   3581   
        MissingSnapshotId,
 2468         -
        /// Constraint violation occurred building member `snapshot_id` when building `CompleteSnapshotInput`.
        3582  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `snapshot_id` when building `CompleteSnapshotInput`.
        3583  +
        /* RustType.kt:516 */
 2469   3584   
        #[doc(hidden)]
        3585  +
        /* ServerBuilderConstraintViolations.kt:164 */
 2470   3586   
        SnapshotId(crate::model::snapshot_id_internal::ConstraintViolation),
 2471         -
        /// Constraint violation occurred building member `checksum` when building `CompleteSnapshotInput`.
        3587  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `checksum` when building `CompleteSnapshotInput`.
        3588  +
        /* RustType.kt:516 */
 2472   3589   
        #[doc(hidden)]
        3590  +
        /* ServerBuilderConstraintViolations.kt:164 */
 2473   3591   
        Checksum(crate::model::checksum_internal::ConstraintViolation),
        3592  +
        /* ServerBuilderConstraintViolations.kt:75 */
 2474   3593   
    }
        3594  +
    /* ServerBuilderConstraintViolations.kt:117 */
 2475   3595   
    impl ::std::fmt::Display for ConstraintViolation {
        3596  +
        /* ServerBuilderConstraintViolations.kt:118 */
 2476   3597   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        3598  +
            /* ServerBuilderConstraintViolations.kt:119 */
 2477   3599   
            match self {
 2478         -
                ConstraintViolation::MissingChangedBlocksCount => write!(f, "`changed_blocks_count` was not provided but it is required when building `CompleteSnapshotInput`"),
 2479         -
                ConstraintViolation::ChangedBlocksCount(_) => write!(f, "constraint violation occurred building member `changed_blocks_count` when building `CompleteSnapshotInput`"),
 2480         -
                ConstraintViolation::ChecksumAggregationMethod(_) => write!(f, "constraint violation occurred building member `checksum_aggregation_method` when building `CompleteSnapshotInput`"),
 2481         -
                ConstraintViolation::ChecksumAlgorithm(_) => write!(f, "constraint violation occurred building member `checksum_algorithm` when building `CompleteSnapshotInput`"),
 2482         -
                ConstraintViolation::MissingSnapshotId => write!(f, "`snapshot_id` was not provided but it is required when building `CompleteSnapshotInput`"),
 2483         -
                ConstraintViolation::SnapshotId(_) => write!(f, "constraint violation occurred building member `snapshot_id` when building `CompleteSnapshotInput`"),
 2484         -
                ConstraintViolation::Checksum(_) => write!(f, "constraint violation occurred building member `checksum` when building `CompleteSnapshotInput`"),
 2485         -
            }
 2486         -
        }
 2487         -
    }
        3600  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingChangedBlocksCount => write!(f, "`changed_blocks_count` was not provided but it is required when building `CompleteSnapshotInput`"),
        3601  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::ChangedBlocksCount(_) => write!(f, "constraint violation occurred building member `changed_blocks_count` when building `CompleteSnapshotInput`"),
        3602  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::ChecksumAggregationMethod(_) => write!(f, "constraint violation occurred building member `checksum_aggregation_method` when building `CompleteSnapshotInput`"),
        3603  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::ChecksumAlgorithm(_) => write!(f, "constraint violation occurred building member `checksum_algorithm` when building `CompleteSnapshotInput`"),
        3604  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingSnapshotId => write!(f, "`snapshot_id` was not provided but it is required when building `CompleteSnapshotInput`"),
        3605  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::SnapshotId(_) => write!(f, "constraint violation occurred building member `snapshot_id` when building `CompleteSnapshotInput`"),
        3606  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::Checksum(_) => write!(f, "constraint violation occurred building member `checksum` when building `CompleteSnapshotInput`"),
        3607  +
            /* ServerBuilderConstraintViolations.kt:119 */}
        3608  +
            /* ServerBuilderConstraintViolations.kt:118 */
        3609  +
        }
        3610  +
        /* ServerBuilderConstraintViolations.kt:117 */
        3611  +
    }
        3612  +
    /* ServerBuilderConstraintViolations.kt:84 */
 2488   3613   
    impl ::std::error::Error for ConstraintViolation {}
        3614  +
    /* ServerBuilderConstraintViolations.kt:171 */
 2489   3615   
    impl ConstraintViolation {
 2490   3616   
        pub(crate) fn as_validation_exception_field(
 2491   3617   
            self,
 2492   3618   
            path: ::std::string::String,
 2493   3619   
        ) -> crate::model::ValidationExceptionField {
 2494   3620   
            match self {
 2495   3621   
            ConstraintViolation::MissingChangedBlocksCount => crate::model::ValidationExceptionField {
 2496   3622   
                                                message: format!("Value at '{}/ChangedBlocksCount' failed to satisfy constraint: Member must not be null", path),
 2497   3623   
                                                path: path + "/ChangedBlocksCount",
 2498   3624   
                                            },
 2499   3625   
            ConstraintViolation::ChangedBlocksCount(inner) => inner.as_validation_exception_field(path + "/ChangedBlocksCount"),
 2500   3626   
            ConstraintViolation::ChecksumAggregationMethod(inner) => inner.as_validation_exception_field(path + "/ChecksumAggregationMethod"),
 2501   3627   
            ConstraintViolation::ChecksumAlgorithm(inner) => inner.as_validation_exception_field(path + "/ChecksumAlgorithm"),
 2502   3628   
            ConstraintViolation::MissingSnapshotId => crate::model::ValidationExceptionField {
 2503   3629   
                                                message: format!("Value at '{}/SnapshotId' failed to satisfy constraint: Member must not be null", path),
 2504   3630   
                                                path: path + "/SnapshotId",
 2505   3631   
                                            },
 2506   3632   
            ConstraintViolation::SnapshotId(inner) => inner.as_validation_exception_field(path + "/SnapshotId"),
 2507   3633   
            ConstraintViolation::Checksum(inner) => inner.as_validation_exception_field(path + "/Checksum"),
 2508   3634   
        }
 2509   3635   
        }
 2510   3636   
    }
        3637  +
    /* ServerBuilderGenerator.kt:234 */
 2511   3638   
    impl ::std::convert::From<ConstraintViolation>
 2512   3639   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
 2513   3640   
    {
 2514   3641   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 2515   3642   
            let first_validation_exception_field =
 2516   3643   
                constraint_violation.as_validation_exception_field("".to_owned());
 2517   3644   
            let validation_exception = crate::error::ValidationException {
 2518   3645   
                message: format!(
 2519   3646   
                    "1 validation error detected. {}",
 2520   3647   
                    &first_validation_exception_field.message
 2521   3648   
                ),
 2522   3649   
                field_list: Some(vec![first_validation_exception_field]),
 2523   3650   
            };
 2524   3651   
            Self::ConstraintViolation(
 2525   3652   
                                crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
 2526   3653   
                                    .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
 2527   3654   
                            )
 2528   3655   
        }
 2529   3656   
    }
        3657  +
    /* ServerBuilderGenerator.kt:244 */
 2530   3658   
    impl ::std::convert::From<Builder>
 2531   3659   
        for crate::constrained::MaybeConstrained<crate::input::CompleteSnapshotInput>
 2532   3660   
    {
 2533   3661   
        fn from(builder: Builder) -> Self {
 2534   3662   
            Self::Unconstrained(builder)
 2535   3663   
        }
 2536   3664   
    }
        3665  +
    /* ServerBuilderGenerator.kt:446 */
 2537   3666   
    impl ::std::convert::TryFrom<Builder> for crate::input::CompleteSnapshotInput {
 2538   3667   
        type Error = ConstraintViolation;
 2539   3668   
 2540   3669   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
 2541   3670   
            builder.build()
 2542   3671   
        }
 2543   3672   
    }
 2544         -
    /// A builder for [`CompleteSnapshotInput`](crate::input::CompleteSnapshotInput).
        3673  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`CompleteSnapshotInput`](crate::input::CompleteSnapshotInput).
        3674  +
    /* RustType.kt:516 */
 2545   3675   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        3676  +
    /* ServerBuilderGenerator.kt:211 */
 2546   3677   
    pub(crate) struct Builder {
        3678  +
        /* ServerBuilderGenerator.kt:308 */
 2547   3679   
        pub(crate) changed_blocks_count: ::std::option::Option<
 2548   3680   
            crate::constrained::MaybeConstrained<crate::model::ChangedBlocksCount>,
 2549   3681   
        >,
        3682  +
        /* ServerBuilderGenerator.kt:308 */
 2550   3683   
        pub(crate) checksum_aggregation_method: ::std::option::Option<
 2551   3684   
            crate::constrained::MaybeConstrained<crate::model::ChecksumAggregationMethod>,
 2552   3685   
        >,
        3686  +
        /* ServerBuilderGenerator.kt:308 */
 2553   3687   
        pub(crate) checksum_algorithm: ::std::option::Option<
 2554   3688   
            crate::constrained::MaybeConstrained<crate::model::ChecksumAlgorithm>,
 2555   3689   
        >,
        3690  +
        /* ServerBuilderGenerator.kt:308 */
 2556   3691   
        pub(crate) snapshot_id:
 2557   3692   
            ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SnapshotId>>,
        3693  +
        /* ServerBuilderGenerator.kt:308 */
 2558   3694   
        pub(crate) checksum:
 2559   3695   
            ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::Checksum>>,
        3696  +
        /* ServerBuilderGenerator.kt:211 */
 2560   3697   
    }
        3698  +
    /* ServerBuilderGenerator.kt:215 */
 2561   3699   
    impl Builder {
 2562         -
        /// <p>The number of blocks that were written to the snapshot.</p>
        3700  +
        /// /* ServerBuilderGenerator.kt:426 */<p>The number of blocks that were written to the snapshot.</p>
        3701  +
        /* ServerBuilderGenerator.kt:428 */
 2563   3702   
        pub(crate) fn set_changed_blocks_count(
 2564   3703   
            mut self,
 2565   3704   
            input: impl ::std::convert::Into<
 2566   3705   
                crate::constrained::MaybeConstrained<crate::model::ChangedBlocksCount>,
 2567   3706   
            >,
 2568   3707   
        ) -> Self {
        3708  +
            /* ServerBuilderGenerator.kt:429 */
 2569   3709   
            self.changed_blocks_count = Some(input.into());
 2570   3710   
            self
        3711  +
            /* ServerBuilderGenerator.kt:428 */
 2571   3712   
        }
 2572         -
        /// <p>The aggregation method used to generate the checksum. Currently, the only supported aggregation method is <code>LINEAR</code>.</p>
        3713  +
        /// /* ServerBuilderGenerator.kt:426 */<p>The aggregation method used to generate the checksum. Currently, the only supported aggregation method is <code>LINEAR</code>.</p>
        3714  +
        /* ServerBuilderGenerator.kt:428 */
 2573   3715   
        pub(crate) fn set_checksum_aggregation_method(
 2574   3716   
            mut self,
 2575   3717   
            input: Option<
 2576   3718   
                impl ::std::convert::Into<
 2577   3719   
                    crate::constrained::MaybeConstrained<crate::model::ChecksumAggregationMethod>,
 2578   3720   
                >,
 2579   3721   
            >,
 2580   3722   
        ) -> Self {
        3723  +
            /* ServerBuilderGenerator.kt:429 */
 2581   3724   
            self.checksum_aggregation_method = input.map(|v| v.into());
 2582   3725   
            self
        3726  +
            /* ServerBuilderGenerator.kt:428 */
 2583   3727   
        }
 2584         -
        /// <p>The algorithm used to generate the checksum. Currently, the only supported algorithm is <code>SHA256</code>.</p>
        3728  +
        /// /* ServerBuilderGenerator.kt:426 */<p>The algorithm used to generate the checksum. Currently, the only supported algorithm is <code>SHA256</code>.</p>
        3729  +
        /* ServerBuilderGenerator.kt:428 */
 2585   3730   
        pub(crate) fn set_checksum_algorithm(
 2586   3731   
            mut self,
 2587   3732   
            input: Option<
 2588   3733   
                impl ::std::convert::Into<
 2589   3734   
                    crate::constrained::MaybeConstrained<crate::model::ChecksumAlgorithm>,
 2590   3735   
                >,
 2591   3736   
            >,
 2592   3737   
        ) -> Self {
        3738  +
            /* ServerBuilderGenerator.kt:429 */
 2593   3739   
            self.checksum_algorithm = input.map(|v| v.into());
 2594   3740   
            self
        3741  +
            /* ServerBuilderGenerator.kt:428 */
 2595   3742   
        }
 2596         -
        /// <p>The ID of the snapshot.</p>
        3743  +
        /// /* ServerBuilderGenerator.kt:426 */<p>The ID of the snapshot.</p>
        3744  +
        /* ServerBuilderGenerator.kt:428 */
 2597   3745   
        pub(crate) fn set_snapshot_id(
 2598   3746   
            mut self,
 2599   3747   
            input: impl ::std::convert::Into<
 2600   3748   
                crate::constrained::MaybeConstrained<crate::model::SnapshotId>,
 2601   3749   
            >,
 2602   3750   
        ) -> Self {
        3751  +
            /* ServerBuilderGenerator.kt:429 */
 2603   3752   
            self.snapshot_id = Some(input.into());
 2604   3753   
            self
        3754  +
            /* ServerBuilderGenerator.kt:428 */
 2605   3755   
        }
 2606         -
        /// <p>An aggregated Base-64 SHA256 checksum based on the checksums of each written block.</p>
        3756  +
        /// /* ServerBuilderGenerator.kt:426 */<p>An aggregated Base-64 SHA256 checksum based on the checksums of each written block.</p>
 2607   3757   
        /// <p>To generate the aggregated checksum using the linear aggregation method, arrange the checksums for each written block in ascending order of their block index, concatenate them to form a single string, and then generate the checksum on the entire string using the SHA256 algorithm.</p>
        3758  +
        /* ServerBuilderGenerator.kt:428 */
 2608   3759   
        pub(crate) fn set_checksum(
 2609   3760   
            mut self,
 2610   3761   
            input: Option<
 2611   3762   
                impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::Checksum>>,
 2612   3763   
            >,
 2613   3764   
        ) -> Self {
        3765  +
            /* ServerBuilderGenerator.kt:429 */
 2614   3766   
            self.checksum = input.map(|v| v.into());
 2615   3767   
            self
        3768  +
            /* ServerBuilderGenerator.kt:428 */
 2616   3769   
        }
 2617         -
        /// Consumes the builder and constructs a [`CompleteSnapshotInput`](crate::input::CompleteSnapshotInput).
 2618         -
        ///
        3770  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`CompleteSnapshotInput`](crate::input::CompleteSnapshotInput).
        3771  +
        /// /* ServerBuilderGenerator.kt:260 */
 2619   3772   
        /// The builder fails to construct a [`CompleteSnapshotInput`](crate::input::CompleteSnapshotInput) if a [`ConstraintViolation`] occurs.
 2620   3773   
        ///
 2621         -
        /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
        3774  +
        /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
        3775  +
        /* ServerBuilderGenerator.kt:271 */
 2622   3776   
        pub fn build(self) -> Result<crate::input::CompleteSnapshotInput, ConstraintViolation> {
 2623   3777   
            self.build_enforcing_all_constraints()
 2624   3778   
        }
        3779  +
        /* ServerBuilderGenerator.kt:283 */
 2625   3780   
        fn build_enforcing_all_constraints(
 2626   3781   
            self,
 2627   3782   
        ) -> Result<crate::input::CompleteSnapshotInput, ConstraintViolation> {
 2628         -
            Ok(crate::input::CompleteSnapshotInput {
        3783  +
            /* ServerBuilderGenerator.kt:287 */
        3784  +
            Ok(
        3785  +
                /* ServerBuilderGenerator.kt:542 */
        3786  +
                crate::input::CompleteSnapshotInput {
        3787  +
                    /* ServerBuilderGenerator.kt:546 */
 2629   3788   
                    changed_blocks_count: self
 2630   3789   
                        .changed_blocks_count
        3790  +
                        /* ServerBuilderGenerator.kt:602 */
 2631   3791   
                        .map(|v| match v {
 2632   3792   
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
 2633   3793   
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
 2634   3794   
                        })
        3795  +
                        /* ServerBuilderGenerator.kt:614 */
 2635   3796   
                        .map(|res| res.map_err(ConstraintViolation::ChangedBlocksCount))
 2636   3797   
                        .transpose()?
        3798  +
                        /* ServerBuilderGenerator.kt:630 */
 2637   3799   
                        .map(|v: crate::model::ChangedBlocksCount| v.into())
        3800  +
                        /* ServerBuilderGenerator.kt:569 */
 2638   3801   
                        .ok_or(ConstraintViolation::MissingChangedBlocksCount)?,
        3802  +
                    /* ServerBuilderGenerator.kt:546 */
 2639   3803   
                    checksum_aggregation_method: self
 2640   3804   
                        .checksum_aggregation_method
        3805  +
                        /* ServerBuilderGenerator.kt:602 */
 2641   3806   
                        .map(|v| match v {
 2642   3807   
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
 2643   3808   
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
 2644   3809   
                        })
        3810  +
                        /* ServerBuilderGenerator.kt:614 */
 2645   3811   
                        .map(|res| res.map_err(ConstraintViolation::ChecksumAggregationMethod))
 2646   3812   
                        .transpose()?,
        3813  +
                    /* ServerBuilderGenerator.kt:546 */
 2647   3814   
                    checksum_algorithm: self
 2648   3815   
                        .checksum_algorithm
        3816  +
                        /* ServerBuilderGenerator.kt:602 */
 2649   3817   
                        .map(|v| match v {
 2650   3818   
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
 2651   3819   
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
 2652   3820   
                        })
        3821  +
                        /* ServerBuilderGenerator.kt:614 */
 2653   3822   
                        .map(|res| res.map_err(ConstraintViolation::ChecksumAlgorithm))
 2654   3823   
                        .transpose()?,
        3824  +
                    /* ServerBuilderGenerator.kt:546 */
 2655   3825   
                    snapshot_id: self
 2656   3826   
                        .snapshot_id
        3827  +
                        /* ServerBuilderGenerator.kt:602 */
 2657   3828   
                        .map(|v| match v {
 2658   3829   
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
 2659   3830   
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
 2660   3831   
                        })
        3832  +
                        /* ServerBuilderGenerator.kt:614 */
 2661   3833   
                        .map(|res| res.map_err(ConstraintViolation::SnapshotId))
 2662   3834   
                        .transpose()?
        3835  +
                        /* ServerBuilderGenerator.kt:630 */
 2663   3836   
                        .map(|v: crate::model::SnapshotId| v.into())
        3837  +
                        /* ServerBuilderGenerator.kt:569 */
 2664   3838   
                        .ok_or(ConstraintViolation::MissingSnapshotId)?,
        3839  +
                    /* ServerBuilderGenerator.kt:546 */
 2665   3840   
                    checksum: self
 2666   3841   
                        .checksum
        3842  +
                        /* ServerBuilderGenerator.kt:602 */
 2667   3843   
                        .map(|v| match v {
 2668   3844   
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
 2669   3845   
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
 2670   3846   
                        })
        3847  +
                        /* ServerBuilderGenerator.kt:614 */
 2671   3848   
                        .map(|res| res.map_err(ConstraintViolation::Checksum))
 2672   3849   
                        .transpose()?
        3850  +
                        /* ServerBuilderGenerator.kt:630 */
 2673   3851   
                        .map(|v: crate::model::Checksum| v.into()),
 2674         -
            })
        3852  +
                    /* ServerBuilderGenerator.kt:542 */
        3853  +
                }, /* ServerBuilderGenerator.kt:287 */
        3854  +
            )
        3855  +
            /* ServerBuilderGenerator.kt:283 */
 2675   3856   
        }
        3857  +
        /* ServerBuilderGenerator.kt:215 */
 2676   3858   
    }
        3859  +
        3860  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 2677   3861   
}
 2678         -
/// See [`CompleteSnapshotInput`](crate::input::CompleteSnapshotInput).
        3862  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`CompleteSnapshotInput`](crate::input::CompleteSnapshotInput).
 2679   3863   
pub mod complete_snapshot_input {
 2680   3864   
        3865  +
    /* RustType.kt:516 */
 2681   3866   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
 2682         -
    /// Holds one variant for each of the ways the builder can fail.
 2683         -
        3867  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
        3868  +
    /* ServerBuilderConstraintViolations.kt:75 */
 2684   3869   
    #[allow(clippy::enum_variant_names)]
 2685   3870   
    pub enum ConstraintViolation {
 2686         -
        /// `changed_blocks_count` was not provided but it is required when building `CompleteSnapshotInput`.
        3871  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`changed_blocks_count` was not provided but it is required when building `CompleteSnapshotInput`.
        3872  +
        /* ServerBuilderConstraintViolations.kt:143 */
 2687   3873   
        MissingChangedBlocksCount,
 2688         -
        /// `snapshot_id` was not provided but it is required when building `CompleteSnapshotInput`.
        3874  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`snapshot_id` was not provided but it is required when building `CompleteSnapshotInput`.
        3875  +
        /* ServerBuilderConstraintViolations.kt:143 */
 2689   3876   
        MissingSnapshotId,
        3877  +
        /* ServerBuilderConstraintViolations.kt:75 */
 2690   3878   
    }
        3879  +
    /* ServerBuilderConstraintViolations.kt:117 */
 2691   3880   
    impl ::std::fmt::Display for ConstraintViolation {
        3881  +
        /* ServerBuilderConstraintViolations.kt:118 */
 2692   3882   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        3883  +
            /* ServerBuilderConstraintViolations.kt:119 */
 2693   3884   
            match self {
 2694         -
                ConstraintViolation::MissingChangedBlocksCount => write!(f, "`changed_blocks_count` was not provided but it is required when building `CompleteSnapshotInput`"),
 2695         -
                ConstraintViolation::MissingSnapshotId => write!(f, "`snapshot_id` was not provided but it is required when building `CompleteSnapshotInput`"),
 2696         -
            }
        3885  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingChangedBlocksCount => write!(f, "`changed_blocks_count` was not provided but it is required when building `CompleteSnapshotInput`"),
        3886  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingSnapshotId => write!(f, "`snapshot_id` was not provided but it is required when building `CompleteSnapshotInput`"),
        3887  +
            /* ServerBuilderConstraintViolations.kt:119 */}
        3888  +
            /* ServerBuilderConstraintViolations.kt:118 */
 2697   3889   
        }
        3890  +
        /* ServerBuilderConstraintViolations.kt:117 */
 2698   3891   
    }
        3892  +
    /* ServerBuilderConstraintViolations.kt:84 */
 2699   3893   
    impl ::std::error::Error for ConstraintViolation {}
        3894  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
 2700   3895   
    impl ::std::convert::TryFrom<Builder> for crate::input::CompleteSnapshotInput {
 2701   3896   
        type Error = ConstraintViolation;
 2702   3897   
 2703   3898   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
 2704   3899   
            builder.build()
 2705   3900   
        }
 2706   3901   
    }
 2707         -
    /// A builder for [`CompleteSnapshotInput`](crate::input::CompleteSnapshotInput).
        3902  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`CompleteSnapshotInput`](crate::input::CompleteSnapshotInput).
        3903  +
    /* RustType.kt:516 */
 2708   3904   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        3905  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
 2709   3906   
    pub struct Builder {
        3907  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 2710   3908   
        pub(crate) changed_blocks_count: ::std::option::Option<i32>,
        3909  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 2711   3910   
        pub(crate) checksum_aggregation_method:
 2712   3911   
            ::std::option::Option<crate::model::ChecksumAggregationMethod>,
        3912  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 2713   3913   
        pub(crate) checksum_algorithm: ::std::option::Option<crate::model::ChecksumAlgorithm>,
        3914  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 2714   3915   
        pub(crate) snapshot_id: ::std::option::Option<::std::string::String>,
        3916  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 2715   3917   
        pub(crate) checksum: ::std::option::Option<::std::string::String>,
        3918  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
 2716   3919   
    }
        3920  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 2717   3921   
    impl Builder {
 2718         -
        /// <p>The number of blocks that were written to the snapshot.</p>
        3922  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>The number of blocks that were written to the snapshot.</p>
        3923  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 2719   3924   
        pub fn changed_blocks_count(mut self, input: i32) -> Self {
 2720         -
            self.changed_blocks_count = Some(input);
        3925  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        3926  +
            self.changed_blocks_count =
        3927  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        3928  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        3929  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        3930  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 2721   3931   
            self
        3932  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 2722   3933   
        }
 2723         -
        /// <p>The aggregation method used to generate the checksum. Currently, the only supported aggregation method is <code>LINEAR</code>.</p>
        3934  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>The aggregation method used to generate the checksum. Currently, the only supported aggregation method is <code>LINEAR</code>.</p>
        3935  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 2724   3936   
        pub fn checksum_aggregation_method(
 2725   3937   
            mut self,
 2726   3938   
            input: ::std::option::Option<crate::model::ChecksumAggregationMethod>,
 2727   3939   
        ) -> Self {
 2728         -
            self.checksum_aggregation_method = input;
        3940  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        3941  +
            self.checksum_aggregation_method =
        3942  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        3943  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 2729   3944   
            self
        3945  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 2730   3946   
        }
 2731         -
        /// <p>The algorithm used to generate the checksum. Currently, the only supported algorithm is <code>SHA256</code>.</p>
        3947  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>The algorithm used to generate the checksum. Currently, the only supported algorithm is <code>SHA256</code>.</p>
        3948  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 2732   3949   
        pub fn checksum_algorithm(
 2733   3950   
            mut self,
 2734   3951   
            input: ::std::option::Option<crate::model::ChecksumAlgorithm>,
 2735   3952   
        ) -> Self {
 2736         -
            self.checksum_algorithm = input;
        3953  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        3954  +
            self.checksum_algorithm =
        3955  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        3956  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 2737   3957   
            self
        3958  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 2738   3959   
        }
 2739         -
        /// <p>The ID of the snapshot.</p>
        3960  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>The ID of the snapshot.</p>
        3961  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 2740   3962   
        pub fn snapshot_id(mut self, input: ::std::string::String) -> Self {
 2741         -
            self.snapshot_id = Some(input);
        3963  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        3964  +
            self.snapshot_id =
        3965  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        3966  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        3967  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        3968  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 2742   3969   
            self
        3970  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 2743   3971   
        }
 2744         -
        /// <p>An aggregated Base-64 SHA256 checksum based on the checksums of each written block.</p>
        3972  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */<p>An aggregated Base-64 SHA256 checksum based on the checksums of each written block.</p>
 2745   3973   
        /// <p>To generate the aggregated checksum using the linear aggregation method, arrange the checksums for each written block in ascending order of their block index, concatenate them to form a single string, and then generate the checksum on the entire string using the SHA256 algorithm.</p>
        3974  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 2746   3975   
        pub fn checksum(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
 2747         -
            self.checksum = input;
        3976  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        3977  +
            self.checksum =
        3978  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        3979  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 2748   3980   
            self
        3981  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 2749   3982   
        }
 2750         -
        /// Consumes the builder and constructs a [`CompleteSnapshotInput`](crate::input::CompleteSnapshotInput).
 2751         -
        ///
        3983  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`CompleteSnapshotInput`](crate::input::CompleteSnapshotInput).
        3984  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
 2752   3985   
        /// The builder fails to construct a [`CompleteSnapshotInput`](crate::input::CompleteSnapshotInput) if you do not provide a value for all non-`Option`al members.
 2753   3986   
        ///
        3987  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
 2754   3988   
        pub fn build(self) -> Result<crate::input::CompleteSnapshotInput, ConstraintViolation> {
 2755   3989   
            self.build_enforcing_required_and_enum_traits()
 2756   3990   
        }
        3991  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 2757   3992   
        fn build_enforcing_required_and_enum_traits(
 2758   3993   
            self,
 2759   3994   
        ) -> Result<crate::input::CompleteSnapshotInput, ConstraintViolation> {
 2760         -
            Ok(crate::input::CompleteSnapshotInput {
        3995  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
        3996  +
            Ok(
        3997  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        3998  +
                crate::input::CompleteSnapshotInput {
        3999  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 2761   4000   
                    changed_blocks_count: self
 2762   4001   
                        .changed_blocks_count
        4002  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
 2763   4003   
                        .ok_or(ConstraintViolation::MissingChangedBlocksCount)?,
        4004  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 2764   4005   
                    checksum_aggregation_method: self.checksum_aggregation_method,
        4006  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 2765   4007   
                    checksum_algorithm: self.checksum_algorithm,
        4008  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 2766   4009   
                    snapshot_id: self
 2767   4010   
                        .snapshot_id
        4011  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
 2768   4012   
                        .ok_or(ConstraintViolation::MissingSnapshotId)?,
        4013  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 2769   4014   
                    checksum: self.checksum,
 2770         -
            })
        4015  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        4016  +
                }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
        4017  +
            )
        4018  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 2771   4019   
        }
        4020  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 2772   4021   
    }
        4022  +
        4023  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 2773   4024   
}