Server Test

Server Test

rev. d06a46cae0f385cdae37a9f8264db3469a090ab5

Files changed:

tmp-codegen-diff/codegen-server-test/constraints-http0x/rust-server-codegen/src/lib.rs

@@ -0,1 +0,348 @@
           1  +
#![allow(deprecated)]
           2  +
#![allow(unknown_lints)]
           3  +
#![allow(clippy::module_inception)]
           4  +
#![allow(clippy::upper_case_acronyms)]
           5  +
#![allow(clippy::large_enum_variant)]
           6  +
#![allow(clippy::wrong_self_convention)]
           7  +
#![allow(clippy::should_implement_trait)]
           8  +
#![allow(clippy::disallowed_names)]
           9  +
#![allow(clippy::vec_init_then_push)]
          10  +
#![allow(clippy::type_complexity)]
          11  +
#![allow(clippy::needless_return)]
          12  +
#![allow(clippy::derive_partial_eq_without_eq)]
          13  +
#![allow(clippy::result_large_err)]
          14  +
#![allow(clippy::unnecessary_map_on_constructor)]
          15  +
#![allow(clippy::deprecated_semver)]
          16  +
#![allow(clippy::uninlined_format_args)]
          17  +
#![allow(rustdoc::bare_urls)]
          18  +
#![allow(rustdoc::redundant_explicit_links)]
          19  +
#![allow(rustdoc::invalid_html_tags)]
          20  +
#![forbid(unsafe_code)]
          21  +
#![cfg_attr(docsrs, feature(doc_cfg))]
          22  +
//! A service to test aspects of code generation where shapes have constraint traits.
          23  +
          24  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
          25  +
//! A fast and customizable Rust implementation of the ConstraintsService Smithy service.
          26  +
//!
          27  +
//! # Using ConstraintsService
          28  +
//!
          29  +
//! The primary entrypoint is [`ConstraintsService`]: it satisfies the [`Service<http::Request, Response = http::Response>`](::tower::Service)
          30  +
//! trait and therefore can be handed to a [`hyper` server](https://github.com/hyperium/hyper) via [`ConstraintsService::into_make_service`]
          31  +
//! or used in AWS Lambda
          32  +
#![cfg_attr(
          33  +
    feature = "aws-lambda",
          34  +
    doc = " via [`LambdaHandler`](crate::server::routing::LambdaHandler)."
          35  +
)]
          36  +
#![cfg_attr(
          37  +
    not(feature = "aws-lambda"),
          38  +
    doc = " by enabling the `aws-lambda` feature flag and utilizing the `LambdaHandler`."
          39  +
)]
          40  +
//! The [`crate::input`], [`crate::output`], and [`crate::error`]
          41  +
//! modules provide the types used in each operation.
          42  +
//!
          43  +
//! ### Running on Hyper
          44  +
//!
          45  +
//! ```rust,no_run
          46  +
//! # use std::net::SocketAddr;
          47  +
//! # async fn dummy() {
          48  +
//! use constraints_http0x::{ConstraintsService, ConstraintsServiceConfig};
          49  +
//!
          50  +
//! # let app = ConstraintsService::builder(
          51  +
//! #     ConstraintsServiceConfig::builder()
          52  +
//! #         .build()
          53  +
//! # ).build_unchecked();
          54  +
//! let server = app.into_make_service();
          55  +
//! let bind: SocketAddr = "127.0.0.1:6969".parse()
          56  +
//!     .expect("unable to parse the server bind address and port");
          57  +
//! ::hyper::Server::bind(&bind).serve(server).await.unwrap();
          58  +
//! # }
          59  +
//!
          60  +
//! ```
          61  +
//!
          62  +
//! ### Running on Lambda
          63  +
//!
          64  +
//! ```rust,ignore
          65  +
//! use constraints_http0x::server::routing::LambdaHandler;
          66  +
//! use constraints_http0x::ConstraintsService;
          67  +
//!
          68  +
//! # async fn dummy() {
          69  +
//! # let app = ConstraintsService::builder(
          70  +
//! #     ConstraintsServiceConfig::builder()
          71  +
//! #         .build()
          72  +
//! # ).build_unchecked();
          73  +
//! let handler = LambdaHandler::new(app);
          74  +
//! lambda_http::run(handler).await.unwrap();
          75  +
//! # }
          76  +
//! ```
          77  +
//!
          78  +
//! # Building the ConstraintsService
          79  +
//!
          80  +
//! To construct [`ConstraintsService`] we use [`ConstraintsServiceBuilder`] returned by [`ConstraintsService::builder`].
          81  +
//!
          82  +
//! ## Plugins
          83  +
//!
          84  +
//! The [`ConstraintsService::builder`] method, returning [`ConstraintsServiceBuilder`],
          85  +
//! accepts a config object on which plugins can be registered.
          86  +
//! Plugins allow you to build middleware which is aware of the operation it is being applied to.
          87  +
//!
          88  +
//! ```rust,no_run
          89  +
//! # use constraints_http0x::server::plugin::IdentityPlugin as LoggingPlugin;
          90  +
//! # use constraints_http0x::server::plugin::IdentityPlugin as MetricsPlugin;
          91  +
//! # use ::hyper::Body;
          92  +
//! use constraints_http0x::server::plugin::HttpPlugins;
          93  +
//! use constraints_http0x::{ConstraintsService, ConstraintsServiceConfig, ConstraintsServiceBuilder};
          94  +
//!
          95  +
//! let http_plugins = HttpPlugins::new()
          96  +
//!         .push(LoggingPlugin)
          97  +
//!         .push(MetricsPlugin);
          98  +
//! let config = ConstraintsServiceConfig::builder().build();
          99  +
//! let builder: ConstraintsServiceBuilder<::hyper::Body, _, _, _> = ConstraintsService::builder(config);
         100  +
//! ```
         101  +
//!
         102  +
//! Check out [`crate::server::plugin`] to learn more about plugins.
         103  +
//!
         104  +
//! ## Handlers
         105  +
//!
         106  +
//! [`ConstraintsServiceBuilder`] provides a setter method for each operation in your Smithy model. The setter methods expect an async function as input, matching the signature for the corresponding operation in your Smithy model.
         107  +
//! We call these async functions **handlers**. This is where your application business logic lives.
         108  +
//!
         109  +
//! Every handler must take an `Input`, and optional [`extractor arguments`](crate::server::request), while returning:
         110  +
//!
         111  +
//! * A `Result<Output, Error>` if your operation has modeled errors, or
         112  +
//! * An `Output` otherwise.
         113  +
//!
         114  +
//! ```rust,no_run
         115  +
//! # struct Input;
         116  +
//! # struct Output;
         117  +
//! # struct Error;
         118  +
//! async fn infallible_handler(input: Input) -> Output { todo!() }
         119  +
//!
         120  +
//! async fn fallible_handler(input: Input) -> Result<Output, Error> { todo!() }
         121  +
//! ```
         122  +
//!
         123  +
//! Handlers can accept up to 8 extractors:
         124  +
//!
         125  +
//! ```rust,no_run
         126  +
//! # struct Input;
         127  +
//! # struct Output;
         128  +
//! # struct Error;
         129  +
//! # struct State;
         130  +
//! # use std::net::SocketAddr;
         131  +
//! use constraints_http0x::server::request::{extension::Extension, connect_info::ConnectInfo};
         132  +
//!
         133  +
//! async fn handler_with_no_extensions(input: Input) -> Output {
         134  +
//!     todo!()
         135  +
//! }
         136  +
//!
         137  +
//! async fn handler_with_one_extractor(input: Input, ext: Extension<State>) -> Output {
         138  +
//!     todo!()
         139  +
//! }
         140  +
//!
         141  +
//! async fn handler_with_two_extractors(
         142  +
//!     input: Input,
         143  +
//!     ext0: Extension<State>,
         144  +
//!     ext1: ConnectInfo<SocketAddr>,
         145  +
//! ) -> Output {
         146  +
//!     todo!()
         147  +
//! }
         148  +
//! ```
         149  +
//!
         150  +
//! See the [`operation module`](crate::operation) for information on precisely what constitutes a handler.
         151  +
//!
         152  +
//! ## Build
         153  +
//!
         154  +
//! You can convert [`ConstraintsServiceBuilder`] into [`ConstraintsService`] using either [`ConstraintsServiceBuilder::build`] or [`ConstraintsServiceBuilder::build_unchecked`].
         155  +
//!
         156  +
//! [`ConstraintsServiceBuilder::build`] requires you to provide a handler for every single operation in your Smithy model. It will return an error if that is not the case.
         157  +
//!
         158  +
//! [`ConstraintsServiceBuilder::build_unchecked`], instead, does not require exhaustiveness. The server will automatically return 500 Internal Server Error to all requests for operations that do not have a registered handler.
         159  +
//! [`ConstraintsServiceBuilder::build_unchecked`] is particularly useful if you are deploying your Smithy service as a collection of Lambda functions, where each Lambda is only responsible for a subset of the operations in the Smithy service (or even a single one!).
         160  +
//!
         161  +
//! # Example
         162  +
//!
         163  +
//! ```rust,no_run
         164  +
//! # use std::net::SocketAddr;
         165  +
//! use constraints_http0x::{ConstraintsService, ConstraintsServiceConfig};
         166  +
//!
         167  +
//! #[::tokio::main]
         168  +
//! pub async fn main() {
         169  +
//!    let config = ConstraintsServiceConfig::builder().build();
         170  +
//!    let app = ConstraintsService::builder(config)
         171  +
//!        .constrained_http_bound_shapes_operation(constrained_http_bound_shapes_operation)
         172  +
//!        .constrained_http_payload_bound_shape_operation(constrained_http_payload_bound_shape_operation)
         173  +
//!        .constrained_recursive_shapes_operation(constrained_recursive_shapes_operation)
         174  +
//!        .constrained_shapes_only_in_output_operation(constrained_shapes_only_in_output_operation)
         175  +
//!        .constrained_shapes_operation(constrained_shapes_operation)
         176  +
//!        .event_streams_operation(event_streams_operation)
         177  +
//!        .http_prefix_headers_targeting_length_map_operation(http_prefix_headers_targeting_length_map_operation)
         178  +
//!        .non_streaming_blob_operation(non_streaming_blob_operation)
         179  +
//!        .query_params_targeting_length_map_operation(query_params_targeting_length_map_operation)
         180  +
//!        .query_params_targeting_map_of_enum_string_operation(query_params_targeting_map_of_enum_string_operation)
         181  +
//!        .query_params_targeting_map_of_length_list_of_pattern_string_operation(query_params_targeting_map_of_length_list_of_pattern_string_operation)
         182  +
//!        .query_params_targeting_map_of_length_pattern_string_operation(query_params_targeting_map_of_length_pattern_string_operation)
         183  +
//!        .query_params_targeting_map_of_length_string_operation(query_params_targeting_map_of_length_string_operation)
         184  +
//!        .query_params_targeting_map_of_list_of_enum_string_operation(query_params_targeting_map_of_list_of_enum_string_operation)
         185  +
//!        .query_params_targeting_map_of_list_of_length_pattern_string_operation(query_params_targeting_map_of_list_of_length_pattern_string_operation)
         186  +
//!        .query_params_targeting_map_of_list_of_length_string_operation(query_params_targeting_map_of_list_of_length_string_operation)
         187  +
//!        .query_params_targeting_map_of_list_of_pattern_string_operation(query_params_targeting_map_of_list_of_pattern_string_operation)
         188  +
//!        .query_params_targeting_map_of_pattern_string_operation(query_params_targeting_map_of_pattern_string_operation)
         189  +
//!        .query_params_targeting_map_of_set_of_length_string_operation(query_params_targeting_map_of_set_of_length_string_operation)
         190  +
//!        .streaming_blob_operation(streaming_blob_operation)
         191  +
//!        .build()
         192  +
//!        .expect("failed to build an instance of ConstraintsService");
         193  +
//!
         194  +
//!    let bind: SocketAddr = "127.0.0.1:6969".parse()
         195  +
//!        .expect("unable to parse the server bind address and port");
         196  +
//!    let server = ::hyper::Server::bind(&bind).serve(app.into_make_service());
         197  +
//!    # let server = async { Ok::<_, ()>(()) };
         198  +
//!
         199  +
//!    // Run your service!
         200  +
//!    if let Err(err) = server.await {
         201  +
//!        eprintln!("server error: {:?}", err);
         202  +
//!    }
         203  +
//! }
         204  +
//!
         205  +
//! use constraints_http0x::{input, output, error};
         206  +
//!
         207  +
//! async fn constrained_http_bound_shapes_operation(input: input::ConstrainedHttpBoundShapesOperationInput) -> Result<output::ConstrainedHttpBoundShapesOperationOutput, error::ConstrainedHttpBoundShapesOperationError> {
         208  +
//!     todo!()
         209  +
//! }
         210  +
//!
         211  +
//! async fn constrained_http_payload_bound_shape_operation(input: input::ConstrainedHttpPayloadBoundShapeOperationInput) -> Result<output::ConstrainedHttpPayloadBoundShapeOperationOutput, error::ConstrainedHttpPayloadBoundShapeOperationError> {
         212  +
//!     todo!()
         213  +
//! }
         214  +
//!
         215  +
//! async fn constrained_recursive_shapes_operation(input: input::ConstrainedRecursiveShapesOperationInput) -> Result<output::ConstrainedRecursiveShapesOperationOutput, error::ConstrainedRecursiveShapesOperationError> {
         216  +
//!     todo!()
         217  +
//! }
         218  +
//!
         219  +
//! async fn constrained_shapes_only_in_output_operation(input: input::ConstrainedShapesOnlyInOutputOperationInput) -> output::ConstrainedShapesOnlyInOutputOperationOutput {
         220  +
//!     todo!()
         221  +
//! }
         222  +
//!
         223  +
//! async fn constrained_shapes_operation(input: input::ConstrainedShapesOperationInput) -> Result<output::ConstrainedShapesOperationOutput, error::ConstrainedShapesOperationError> {
         224  +
//!     todo!()
         225  +
//! }
         226  +
//!
         227  +
//! async fn event_streams_operation(input: input::EventStreamsOperationInput) -> Result<output::EventStreamsOperationOutput, error::EventStreamsOperationError> {
         228  +
//!     todo!()
         229  +
//! }
         230  +
//!
         231  +
//! async fn http_prefix_headers_targeting_length_map_operation(input: input::HttpPrefixHeadersTargetingLengthMapOperationInput) -> Result<output::HttpPrefixHeadersTargetingLengthMapOperationOutput, error::HttpPrefixHeadersTargetingLengthMapOperationError> {
         232  +
//!     todo!()
         233  +
//! }
         234  +
//!
         235  +
//! async fn non_streaming_blob_operation(input: input::NonStreamingBlobOperationInput) -> output::NonStreamingBlobOperationOutput {
         236  +
//!     todo!()
         237  +
//! }
         238  +
//!
         239  +
//! async fn query_params_targeting_length_map_operation(input: input::QueryParamsTargetingLengthMapOperationInput) -> Result<output::QueryParamsTargetingLengthMapOperationOutput, error::QueryParamsTargetingLengthMapOperationError> {
         240  +
//!     todo!()
         241  +
//! }
         242  +
//!
         243  +
//! async fn query_params_targeting_map_of_enum_string_operation(input: input::QueryParamsTargetingMapOfEnumStringOperationInput) -> Result<output::QueryParamsTargetingMapOfEnumStringOperationOutput, error::QueryParamsTargetingMapOfEnumStringOperationError> {
         244  +
//!     todo!()
         245  +
//! }
         246  +
//!
         247  +
//! async fn query_params_targeting_map_of_length_list_of_pattern_string_operation(input: input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput) -> Result<output::QueryParamsTargetingMapOfLengthListOfPatternStringOperationOutput, error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError> {
         248  +
//!     todo!()
         249  +
//! }
         250  +
//!
         251  +
//! async fn query_params_targeting_map_of_length_pattern_string_operation(input: input::QueryParamsTargetingMapOfLengthPatternStringOperationInput) -> Result<output::QueryParamsTargetingMapOfLengthPatternStringOperationOutput, error::QueryParamsTargetingMapOfLengthPatternStringOperationError> {
         252  +
//!     todo!()
         253  +
//! }
         254  +
//!
         255  +
//! async fn query_params_targeting_map_of_length_string_operation(input: input::QueryParamsTargetingMapOfLengthStringOperationInput) -> Result<output::QueryParamsTargetingMapOfLengthStringOperationOutput, error::QueryParamsTargetingMapOfLengthStringOperationError> {
         256  +
//!     todo!()
         257  +
//! }
         258  +
//!
         259  +
//! async fn query_params_targeting_map_of_list_of_enum_string_operation(input: input::QueryParamsTargetingMapOfListOfEnumStringOperationInput) -> Result<output::QueryParamsTargetingMapOfListOfEnumStringOperationOutput, error::QueryParamsTargetingMapOfListOfEnumStringOperationError> {
         260  +
//!     todo!()
         261  +
//! }
         262  +
//!
         263  +
//! async fn query_params_targeting_map_of_list_of_length_pattern_string_operation(input: input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput) -> Result<output::QueryParamsTargetingMapOfListOfLengthPatternStringOperationOutput, error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError> {
         264  +
//!     todo!()
         265  +
//! }
         266  +
//!
         267  +
//! async fn query_params_targeting_map_of_list_of_length_string_operation(input: input::QueryParamsTargetingMapOfListOfLengthStringOperationInput) -> Result<output::QueryParamsTargetingMapOfListOfLengthStringOperationOutput, error::QueryParamsTargetingMapOfListOfLengthStringOperationError> {
         268  +
//!     todo!()
         269  +
//! }
         270  +
//!
         271  +
//! async fn query_params_targeting_map_of_list_of_pattern_string_operation(input: input::QueryParamsTargetingMapOfListOfPatternStringOperationInput) -> Result<output::QueryParamsTargetingMapOfListOfPatternStringOperationOutput, error::QueryParamsTargetingMapOfListOfPatternStringOperationError> {
         272  +
//!     todo!()
         273  +
//! }
         274  +
//!
         275  +
//! async fn query_params_targeting_map_of_pattern_string_operation(input: input::QueryParamsTargetingMapOfPatternStringOperationInput) -> Result<output::QueryParamsTargetingMapOfPatternStringOperationOutput, error::QueryParamsTargetingMapOfPatternStringOperationError> {
         276  +
//!     todo!()
         277  +
//! }
         278  +
//!
         279  +
//! async fn query_params_targeting_map_of_set_of_length_string_operation(input: input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput) -> Result<output::QueryParamsTargetingMapOfSetOfLengthStringOperationOutput, error::QueryParamsTargetingMapOfSetOfLengthStringOperationError> {
         280  +
//!     todo!()
         281  +
//! }
         282  +
//!
         283  +
//! async fn streaming_blob_operation(input: input::StreamingBlobOperationInput) -> output::StreamingBlobOperationOutput {
         284  +
//!     todo!()
         285  +
//! }
         286  +
//!
         287  +
//! ```
         288  +
//!
         289  +
//! [`serve`]: https://docs.rs/hyper/0.14.16/hyper/server/struct.Builder.html#method.serve
         290  +
//! [hyper server]: https://docs.rs/hyper/0.14.26/hyper/server/index.html
         291  +
//! [`tower::make::MakeService`]: https://docs.rs/tower/latest/tower/make/trait.MakeService.html
         292  +
//! [HTTP binding traits]: https://smithy.io/2.0/spec/http-bindings.html
         293  +
//! [operations]: https://smithy.io/2.0/spec/service-types.html#operation
         294  +
//! [Service]: https://docs.rs/tower-service/latest/tower_service/trait.Service.html
         295  +
pub use crate::service::{
         296  +
    ConstraintsService, ConstraintsServiceBuilder, ConstraintsServiceConfig,
         297  +
    ConstraintsServiceConfigBuilder, MissingOperationsError,
         298  +
};
         299  +
         300  +
/// Contains the types that are re-exported from the `aws-smithy-http-server` crate.
         301  +
pub mod server {
         302  +
    // Re-export all types from the `aws-smithy-http-server` crate.
         303  +
    pub use ::aws_smithy_legacy_http_server::*;
         304  +
}
         305  +
         306  +
/// Crate version number.
         307  +
pub static PKG_VERSION: &str = env!("CARGO_PKG_VERSION");
         308  +
         309  +
/// Constrained types for constrained shapes.
         310  +
mod constrained;
         311  +
         312  +
/// All error types that operations can return. Documentation on these types is copied from the model.
         313  +
pub mod error;
         314  +
         315  +
/// Input structures for operations. Documentation on these types is copied from the model.
         316  +
pub mod input;
         317  +
         318  +
/// Data structures used by operation inputs/outputs. Documentation on these types is copied from the model.
         319  +
pub mod model;
         320  +
         321  +
/// All operations that this crate can perform.
         322  +
pub mod operation;
         323  +
         324  +
/// A collection of types representing each operation defined in the service closure.
         325  +
///
         326  +
/// The [plugin system](::aws_smithy_legacy_http_server::plugin) makes use of these
         327  +
/// [zero-sized types](https://doc.rust-lang.org/nomicon/exotic-sizes.html#zero-sized-types-zsts) (ZSTs) to
         328  +
/// parameterize [`Plugin`](::aws_smithy_legacy_http_server::plugin::Plugin) implementations. Their traits, such as
         329  +
/// [`OperationShape`](::aws_smithy_legacy_http_server::operation::OperationShape), can be used to provide
         330  +
/// operation specific information to the [`Layer`](::tower::Layer) being applied.
         331  +
pub mod operation_shape;
         332  +
         333  +
/// Output structures for operations. Documentation on these types is copied from the model.
         334  +
pub mod output;
         335  +
         336  +
mod service;
         337  +
         338  +
/// Data primitives referenced by other data types.
         339  +
pub mod types;
         340  +
         341  +
/// Unconstrained types for constrained shapes.
         342  +
mod unconstrained;
         343  +
         344  +
mod mimes;
         345  +
         346  +
mod event_stream_serde;
         347  +
         348  +
pub(crate) mod protocol_serde;

tmp-codegen-diff/codegen-server-test/constraints-http0x/rust-server-codegen/src/mimes.rs

@@ -0,1 +0,22 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub(crate) static CONTENT_TYPE_APPLICATION_VND_AMAZON_EVENTSTREAM: std::sync::LazyLock<
           3  +
    ::mime::Mime,
           4  +
> = std::sync::LazyLock::new(|| {
           5  +
    "application/vnd.amazon.eventstream"
           6  +
        .parse::<::mime::Mime>()
           7  +
        .expect("BUG: MIME parsing failed, content_type is not valid")
           8  +
});
           9  +
          10  +
pub(crate) static CONTENT_TYPE_APPLICATION_OCTET_STREAM: std::sync::LazyLock<::mime::Mime> =
          11  +
    std::sync::LazyLock::new(|| {
          12  +
        "application/octet-stream"
          13  +
            .parse::<::mime::Mime>()
          14  +
            .expect("BUG: MIME parsing failed, content_type is not valid")
          15  +
    });
          16  +
          17  +
pub(crate) static CONTENT_TYPE_APPLICATION_JSON: std::sync::LazyLock<::mime::Mime> =
          18  +
    std::sync::LazyLock::new(|| {
          19  +
        "application/json"
          20  +
            .parse::<::mime::Mime>()
          21  +
            .expect("BUG: MIME parsing failed, content_type is not valid")
          22  +
    });

tmp-codegen-diff/codegen-server-test/constraints-http0x/rust-server-codegen/src/model.rs

@@ -0,1 +0,10327 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// Describes one specific validation failure for an input member.
           4  +
#[derive(
           5  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
           6  +
)]
           7  +
pub struct ValidationExceptionField {
           8  +
    /// A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
           9  +
    pub path: ::std::string::String,
          10  +
    /// A detailed description of the validation failure.
          11  +
    pub message: ::std::string::String,
          12  +
}
          13  +
impl ValidationExceptionField {
          14  +
    /// A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
          15  +
    pub fn path(&self) -> &str {
          16  +
        use std::ops::Deref;
          17  +
        self.path.deref()
          18  +
    }
          19  +
    /// A detailed description of the validation failure.
          20  +
    pub fn message(&self) -> &str {
          21  +
        use std::ops::Deref;
          22  +
        self.message.deref()
          23  +
    }
          24  +
}
          25  +
impl ValidationExceptionField {
          26  +
    /// Creates a new builder-style object to manufacture [`ValidationExceptionField`](crate::model::ValidationExceptionField).
          27  +
    pub fn builder() -> crate::model::validation_exception_field::Builder {
          28  +
        crate::model::validation_exception_field::Builder::default()
          29  +
    }
          30  +
}
          31  +
          32  +
#[allow(missing_docs)] // documentation missing in model
          33  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
          34  +
pub enum Event {
          35  +
    #[allow(missing_docs)] // documentation missing in model
          36  +
    RegularMessage(crate::model::EventStreamRegularMessage),
          37  +
}
          38  +
impl Event {
          39  +
    #[allow(irrefutable_let_patterns)]
          40  +
    /// Tries to convert the enum instance into [`RegularMessage`](crate::model::Event::RegularMessage), extracting the inner [`EventStreamRegularMessage`](crate::model::EventStreamRegularMessage).
          41  +
    /// Returns `Err(&Self)` if it can't be converted.
          42  +
    pub fn as_regular_message(
          43  +
        &self,
          44  +
    ) -> ::std::result::Result<&crate::model::EventStreamRegularMessage, &Self> {
          45  +
        if let Event::RegularMessage(val) = &self {
          46  +
            ::std::result::Result::Ok(val)
          47  +
        } else {
          48  +
            ::std::result::Result::Err(self)
          49  +
        }
          50  +
    }
          51  +
    /// Returns true if this is a [`RegularMessage`](crate::model::Event::RegularMessage).
          52  +
    pub fn is_regular_message(&self) -> bool {
          53  +
        self.as_regular_message().is_ok()
          54  +
    }
          55  +
}
          56  +
          57  +
#[allow(missing_docs)] // documentation missing in model
          58  +
#[derive(
          59  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
          60  +
)]
          61  +
pub struct EventStreamRegularMessage {
          62  +
    #[allow(missing_docs)] // documentation missing in model
          63  +
    pub message_content: ::std::option::Option<::std::string::String>,
          64  +
}
          65  +
impl EventStreamRegularMessage {
          66  +
    #[allow(missing_docs)] // documentation missing in model
          67  +
    pub fn message_content(&self) -> ::std::option::Option<&str> {
          68  +
        self.message_content.as_deref()
          69  +
    }
          70  +
}
          71  +
impl EventStreamRegularMessage {
          72  +
    /// Creates a new builder-style object to manufacture [`EventStreamRegularMessage`](crate::model::EventStreamRegularMessage).
          73  +
    pub fn builder() -> crate::model::event_stream_regular_message::Builder {
          74  +
        crate::model::event_stream_regular_message::Builder::default()
          75  +
    }
          76  +
}
          77  +
impl crate::constrained::Constrained for crate::model::EventStreamRegularMessage {
          78  +
    type Unconstrained = crate::model::event_stream_regular_message::Builder;
          79  +
}
          80  +
          81  +
#[allow(missing_docs)] // documentation missing in model
          82  +
#[derive(
          83  +
    ::std::clone::Clone,
          84  +
    ::std::cmp::Eq,
          85  +
    ::std::cmp::Ord,
          86  +
    ::std::cmp::PartialEq,
          87  +
    ::std::cmp::PartialOrd,
          88  +
    ::std::fmt::Debug,
          89  +
    ::std::hash::Hash,
          90  +
)]
          91  +
pub enum EnumString {
          92  +
    #[allow(missing_docs)] // documentation missing in model
          93  +
    M256Mega,
          94  +
    #[allow(missing_docs)] // documentation missing in model
          95  +
    T2Micro,
          96  +
    #[allow(missing_docs)] // documentation missing in model
          97  +
    T2Nano,
          98  +
}
          99  +
/// See [`EnumString`](crate::model::EnumString).
         100  +
pub mod enum_string {
         101  +
    #[derive(Debug, PartialEq)]
         102  +
    pub struct ConstraintViolation(pub(crate) ::std::string::String);
         103  +
         104  +
    impl ::std::fmt::Display for ConstraintViolation {
         105  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         106  +
            write!(
         107  +
                f,
         108  +
                r#"Value provided for 'com.amazonaws.constraints#EnumString' failed to satisfy constraint: Member must satisfy enum value set: [t2.nano, t2.micro, m256.mega]"#
         109  +
            )
         110  +
        }
         111  +
    }
         112  +
         113  +
    impl ::std::error::Error for ConstraintViolation {}
         114  +
    impl ConstraintViolation {
         115  +
        pub(crate) fn as_validation_exception_field(
         116  +
            self,
         117  +
            path: ::std::string::String,
         118  +
        ) -> crate::model::ValidationExceptionField {
         119  +
            crate::model::ValidationExceptionField {
         120  +
                message: format!(
         121  +
                    r#"Value at '{}' failed to satisfy constraint: Member must satisfy enum value set: [t2.nano, t2.micro, m256.mega]"#,
         122  +
                    &path
         123  +
                ),
         124  +
                path,
         125  +
            }
         126  +
        }
         127  +
    }
         128  +
}
         129  +
impl ::std::convert::TryFrom<&str> for EnumString {
         130  +
    type Error = crate::model::enum_string::ConstraintViolation;
         131  +
    fn try_from(
         132  +
        s: &str,
         133  +
    ) -> ::std::result::Result<Self, <Self as ::std::convert::TryFrom<&str>>::Error> {
         134  +
        match s {
         135  +
            "m256.mega" => Ok(EnumString::M256Mega),
         136  +
            "t2.micro" => Ok(EnumString::T2Micro),
         137  +
            "t2.nano" => Ok(EnumString::T2Nano),
         138  +
            _ => Err(crate::model::enum_string::ConstraintViolation(s.to_owned())),
         139  +
        }
         140  +
    }
         141  +
}
         142  +
impl ::std::convert::TryFrom<::std::string::String> for EnumString {
         143  +
    type Error = crate::model::enum_string::ConstraintViolation;
         144  +
    fn try_from(
         145  +
        s: ::std::string::String,
         146  +
    ) -> ::std::result::Result<Self, <Self as ::std::convert::TryFrom<::std::string::String>>::Error>
         147  +
    {
         148  +
        s.as_str().try_into()
         149  +
    }
         150  +
}
         151  +
impl std::str::FromStr for EnumString {
         152  +
    type Err = crate::model::enum_string::ConstraintViolation;
         153  +
    fn from_str(s: &str) -> std::result::Result<Self, <Self as std::str::FromStr>::Err> {
         154  +
        Self::try_from(s)
         155  +
    }
         156  +
}
         157  +
impl EnumString {
         158  +
    /// Returns the `&str` value of the enum member.
         159  +
    pub fn as_str(&self) -> &str {
         160  +
        match self {
         161  +
            EnumString::M256Mega => "m256.mega",
         162  +
            EnumString::T2Micro => "t2.micro",
         163  +
            EnumString::T2Nano => "t2.nano",
         164  +
        }
         165  +
    }
         166  +
    /// Returns all the `&str` representations of the enum members.
         167  +
    pub const fn values() -> &'static [&'static str] {
         168  +
        &["m256.mega", "t2.micro", "t2.nano"]
         169  +
    }
         170  +
}
         171  +
impl ::std::convert::AsRef<str> for EnumString {
         172  +
    fn as_ref(&self) -> &str {
         173  +
        self.as_str()
         174  +
    }
         175  +
}
         176  +
impl crate::constrained::Constrained for EnumString {
         177  +
    type Unconstrained = ::std::string::String;
         178  +
}
         179  +
         180  +
impl ::std::convert::From<::std::string::String>
         181  +
    for crate::constrained::MaybeConstrained<crate::model::EnumString>
         182  +
{
         183  +
    fn from(value: ::std::string::String) -> Self {
         184  +
        Self::Unconstrained(value)
         185  +
    }
         186  +
}
         187  +
         188  +
#[allow(missing_docs)] // documentation missing in model
         189  +
///
         190  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
         191  +
/// [constraint traits]. Use [`ConBMap::try_from`] to construct values of this type.
         192  +
///
         193  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
         194  +
///
         195  +
#[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
         196  +
pub struct ConBMap(
         197  +
    pub(crate) ::std::collections::HashMap<::std::string::String, crate::model::LengthString>,
         198  +
);
         199  +
impl ConBMap {
         200  +
    /// Returns an immutable reference to the underlying [`::std::collections::HashMap<::std::string::String, crate::model::LengthString>`].
         201  +
    pub fn inner(
         202  +
        &self,
         203  +
    ) -> &::std::collections::HashMap<::std::string::String, crate::model::LengthString> {
         204  +
        &self.0
         205  +
    }
         206  +
    /// Consumes the value, returning the underlying [`::std::collections::HashMap<::std::string::String, crate::model::LengthString>`].
         207  +
    pub fn into_inner(
         208  +
        self,
         209  +
    ) -> ::std::collections::HashMap<::std::string::String, crate::model::LengthString> {
         210  +
        self.0
         211  +
    }
         212  +
}
         213  +
impl
         214  +
    ::std::convert::TryFrom<
         215  +
        ::std::collections::HashMap<::std::string::String, crate::model::LengthString>,
         216  +
    > for ConBMap
         217  +
{
         218  +
    type Error = crate::model::con_b_map::ConstraintViolation;
         219  +
         220  +
    /// Constructs a `ConBMap` from an [`::std::collections::HashMap<::std::string::String, crate::model::LengthString>`], failing when the provided value does not satisfy the modeled constraints.
         221  +
    fn try_from(
         222  +
        value: ::std::collections::HashMap<::std::string::String, crate::model::LengthString>,
         223  +
    ) -> ::std::result::Result<Self, Self::Error> {
         224  +
        let length = value.len();
         225  +
        if (1..=69).contains(&length) {
         226  +
            Ok(Self(value))
         227  +
        } else {
         228  +
            Err(crate::model::con_b_map::ConstraintViolation::Length(length))
         229  +
        }
         230  +
    }
         231  +
}
         232  +
         233  +
impl ::std::convert::From<ConBMap>
         234  +
    for ::std::collections::HashMap<::std::string::String, crate::model::LengthString>
         235  +
{
         236  +
    fn from(value: ConBMap) -> Self {
         237  +
        value.into_inner()
         238  +
    }
         239  +
}
         240  +
impl crate::constrained::Constrained for ConBMap {
         241  +
    type Unconstrained = crate::unconstrained::con_b_map_unconstrained::ConBMapUnconstrained;
         242  +
}
         243  +
         244  +
#[allow(missing_docs)] // documentation missing in model
         245  +
///
         246  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
         247  +
/// [constraint traits]. Use [`LengthString::try_from`] to construct values of this type.
         248  +
///
         249  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
         250  +
///
         251  +
#[derive(
         252  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
         253  +
)]
         254  +
pub struct LengthString(pub(crate) ::std::string::String);
         255  +
impl LengthString {
         256  +
    /// Extracts a string slice containing the entire underlying `String`.
         257  +
    pub fn as_str(&self) -> &str {
         258  +
        &self.0
         259  +
    }
         260  +
         261  +
    /// Returns an immutable reference to the underlying [`::std::string::String`].
         262  +
    pub fn inner(&self) -> &::std::string::String {
         263  +
        &self.0
         264  +
    }
         265  +
         266  +
    /// Consumes the value, returning the underlying [`::std::string::String`].
         267  +
    pub fn into_inner(self) -> ::std::string::String {
         268  +
        self.0
         269  +
    }
         270  +
}
         271  +
impl LengthString {
         272  +
    fn check_length(
         273  +
        string: &str,
         274  +
    ) -> ::std::result::Result<(), crate::model::length_string::ConstraintViolation> {
         275  +
        let length = string.chars().count();
         276  +
         277  +
        if (2..=69).contains(&length) {
         278  +
            Ok(())
         279  +
        } else {
         280  +
            Err(crate::model::length_string::ConstraintViolation::Length(
         281  +
                length,
         282  +
            ))
         283  +
        }
         284  +
    }
         285  +
}
         286  +
impl ::std::convert::TryFrom<::std::string::String> for LengthString {
         287  +
    type Error = crate::model::length_string::ConstraintViolation;
         288  +
         289  +
    /// Constructs a `LengthString` from an [`::std::string::String`], failing when the provided value does not satisfy the modeled constraints.
         290  +
    fn try_from(value: ::std::string::String) -> ::std::result::Result<Self, Self::Error> {
         291  +
        Self::check_length(&value)?;
         292  +
         293  +
        Ok(Self(value))
         294  +
    }
         295  +
}
         296  +
impl crate::constrained::Constrained for LengthString {
         297  +
    type Unconstrained = ::std::string::String;
         298  +
}
         299  +
         300  +
impl ::std::convert::From<::std::string::String>
         301  +
    for crate::constrained::MaybeConstrained<crate::model::LengthString>
         302  +
{
         303  +
    fn from(value: ::std::string::String) -> Self {
         304  +
        Self::Unconstrained(value)
         305  +
    }
         306  +
}
         307  +
         308  +
impl ::std::fmt::Display for LengthString {
         309  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         310  +
        self.0.fmt(f)
         311  +
    }
         312  +
}
         313  +
         314  +
impl ::std::convert::From<LengthString> for ::std::string::String {
         315  +
    fn from(value: LengthString) -> Self {
         316  +
        value.into_inner()
         317  +
    }
         318  +
}
         319  +
         320  +
#[allow(missing_docs)] // documentation missing in model
         321  +
///
         322  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
         323  +
/// [constraint traits]. Use [`LengthPatternString::try_from`] to construct values of this type.
         324  +
///
         325  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
         326  +
///
         327  +
#[derive(
         328  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
         329  +
)]
         330  +
pub struct LengthPatternString(pub(crate) ::std::string::String);
         331  +
impl LengthPatternString {
         332  +
    /// Extracts a string slice containing the entire underlying `String`.
         333  +
    pub fn as_str(&self) -> &str {
         334  +
        &self.0
         335  +
    }
         336  +
         337  +
    /// Returns an immutable reference to the underlying [`::std::string::String`].
         338  +
    pub fn inner(&self) -> &::std::string::String {
         339  +
        &self.0
         340  +
    }
         341  +
         342  +
    /// Consumes the value, returning the underlying [`::std::string::String`].
         343  +
    pub fn into_inner(self) -> ::std::string::String {
         344  +
        self.0
         345  +
    }
         346  +
}
         347  +
impl LengthPatternString {
         348  +
    fn check_length(
         349  +
        string: &str,
         350  +
    ) -> ::std::result::Result<(), crate::model::length_pattern_string::ConstraintViolation> {
         351  +
        let length = string.chars().count();
         352  +
         353  +
        if (5..=10).contains(&length) {
         354  +
            Ok(())
         355  +
        } else {
         356  +
            Err(crate::model::length_pattern_string::ConstraintViolation::Length(length))
         357  +
        }
         358  +
    }
         359  +
         360  +
    fn check_pattern(
         361  +
        string: ::std::string::String,
         362  +
    ) -> ::std::result::Result<
         363  +
        ::std::string::String,
         364  +
        crate::model::length_pattern_string::ConstraintViolation,
         365  +
    > {
         366  +
        let regex = Self::compile_regex();
         367  +
         368  +
        if regex.is_match(&string) {
         369  +
            Ok(string)
         370  +
        } else {
         371  +
            Err(crate::model::length_pattern_string::ConstraintViolation::Pattern(string))
         372  +
        }
         373  +
    }
         374  +
         375  +
    /// Attempts to compile the regex for this constrained type's `@pattern`.
         376  +
    /// This can fail if the specified regex is not supported by the `::regex` crate.
         377  +
    pub fn compile_regex() -> &'static ::regex::Regex {
         378  +
        static REGEX: std::sync::LazyLock<::regex::Regex> = std::sync::LazyLock::new(|| {
         379  +
            ::regex::Regex::new(r#"[a-f0-5]*"#).expect(r#"The regular expression [a-f0-5]* is not supported by the `regex` crate; feel free to file an issue under https://github.com/smithy-lang/smithy-rs/issues for support"#)
         380  +
        });
         381  +
         382  +
        &REGEX
         383  +
    }
         384  +
}
         385  +
impl ::std::convert::TryFrom<::std::string::String> for LengthPatternString {
         386  +
    type Error = crate::model::length_pattern_string::ConstraintViolation;
         387  +
         388  +
    /// Constructs a `LengthPatternString` from an [`::std::string::String`], failing when the provided value does not satisfy the modeled constraints.
         389  +
    fn try_from(value: ::std::string::String) -> ::std::result::Result<Self, Self::Error> {
         390  +
        Self::check_length(&value)?;
         391  +
         392  +
        let value = Self::check_pattern(value)?;
         393  +
         394  +
        Ok(Self(value))
         395  +
    }
         396  +
}
         397  +
impl crate::constrained::Constrained for LengthPatternString {
         398  +
    type Unconstrained = ::std::string::String;
         399  +
}
         400  +
         401  +
impl ::std::convert::From<::std::string::String>
         402  +
    for crate::constrained::MaybeConstrained<crate::model::LengthPatternString>
         403  +
{
         404  +
    fn from(value: ::std::string::String) -> Self {
         405  +
        Self::Unconstrained(value)
         406  +
    }
         407  +
}
         408  +
         409  +
impl ::std::fmt::Display for LengthPatternString {
         410  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         411  +
        self.0.fmt(f)
         412  +
    }
         413  +
}
         414  +
         415  +
impl ::std::convert::From<LengthPatternString> for ::std::string::String {
         416  +
    fn from(value: LengthPatternString) -> Self {
         417  +
        value.into_inner()
         418  +
    }
         419  +
}
         420  +
         421  +
#[cfg(test)]
         422  +
mod test_length_pattern_string {
         423  +
    #[test]
         424  +
    fn regex_compiles() {
         425  +
        crate::model::LengthPatternString::compile_regex();
         426  +
    }
         427  +
}
         428  +
         429  +
#[allow(missing_docs)] // documentation missing in model
         430  +
///
         431  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
         432  +
/// [constraint traits]. Use [`PatternString::try_from`] to construct values of this type.
         433  +
///
         434  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
         435  +
///
         436  +
#[derive(
         437  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
         438  +
)]
         439  +
pub struct PatternString(pub(crate) ::std::string::String);
         440  +
impl PatternString {
         441  +
    /// Extracts a string slice containing the entire underlying `String`.
         442  +
    pub fn as_str(&self) -> &str {
         443  +
        &self.0
         444  +
    }
         445  +
         446  +
    /// Returns an immutable reference to the underlying [`::std::string::String`].
         447  +
    pub fn inner(&self) -> &::std::string::String {
         448  +
        &self.0
         449  +
    }
         450  +
         451  +
    /// Consumes the value, returning the underlying [`::std::string::String`].
         452  +
    pub fn into_inner(self) -> ::std::string::String {
         453  +
        self.0
         454  +
    }
         455  +
}
         456  +
impl PatternString {
         457  +
    fn check_pattern(
         458  +
        string: ::std::string::String,
         459  +
    ) -> ::std::result::Result<
         460  +
        ::std::string::String,
         461  +
        crate::model::pattern_string::ConstraintViolation,
         462  +
    > {
         463  +
        let regex = Self::compile_regex();
         464  +
         465  +
        if regex.is_match(&string) {
         466  +
            Ok(string)
         467  +
        } else {
         468  +
            Err(crate::model::pattern_string::ConstraintViolation::Pattern(
         469  +
                string,
         470  +
            ))
         471  +
        }
         472  +
    }
         473  +
         474  +
    /// Attempts to compile the regex for this constrained type's `@pattern`.
         475  +
    /// This can fail if the specified regex is not supported by the `::regex` crate.
         476  +
    pub fn compile_regex() -> &'static ::regex::Regex {
         477  +
        static REGEX: std::sync::LazyLock<::regex::Regex> = std::sync::LazyLock::new(|| {
         478  +
            ::regex::Regex::new(r#"[a-d]{5}"#).expect(r#"The regular expression [a-d]{5} is not supported by the `regex` crate; feel free to file an issue under https://github.com/smithy-lang/smithy-rs/issues for support"#)
         479  +
        });
         480  +
         481  +
        &REGEX
         482  +
    }
         483  +
}
         484  +
impl ::std::convert::TryFrom<::std::string::String> for PatternString {
         485  +
    type Error = crate::model::pattern_string::ConstraintViolation;
         486  +
         487  +
    /// Constructs a `PatternString` from an [`::std::string::String`], failing when the provided value does not satisfy the modeled constraints.
         488  +
    fn try_from(value: ::std::string::String) -> ::std::result::Result<Self, Self::Error> {
         489  +
        let value = Self::check_pattern(value)?;
         490  +
         491  +
        Ok(Self(value))
         492  +
    }
         493  +
}
         494  +
impl crate::constrained::Constrained for PatternString {
         495  +
    type Unconstrained = ::std::string::String;
         496  +
}
         497  +
         498  +
impl ::std::convert::From<::std::string::String>
         499  +
    for crate::constrained::MaybeConstrained<crate::model::PatternString>
         500  +
{
         501  +
    fn from(value: ::std::string::String) -> Self {
         502  +
        Self::Unconstrained(value)
         503  +
    }
         504  +
}
         505  +
         506  +
impl ::std::fmt::Display for PatternString {
         507  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         508  +
        self.0.fmt(f)
         509  +
    }
         510  +
}
         511  +
         512  +
impl ::std::convert::From<PatternString> for ::std::string::String {
         513  +
    fn from(value: PatternString) -> Self {
         514  +
        value.into_inner()
         515  +
    }
         516  +
}
         517  +
         518  +
#[cfg(test)]
         519  +
mod test_pattern_string {
         520  +
    #[test]
         521  +
    fn regex_compiles() {
         522  +
        crate::model::PatternString::compile_regex();
         523  +
    }
         524  +
}
         525  +
         526  +
#[allow(missing_docs)] // documentation missing in model
         527  +
///
         528  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
         529  +
/// [constraint traits]. Use [`LengthListOfPatternString::try_from`] to construct values of this type.
         530  +
///
         531  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
         532  +
///
         533  +
#[derive(
         534  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
         535  +
)]
         536  +
pub struct LengthListOfPatternString(pub(crate) ::std::vec::Vec<crate::model::PatternString>);
         537  +
impl LengthListOfPatternString {
         538  +
    /// Returns an immutable reference to the underlying [`::std::vec::Vec<crate::model::PatternString>`].
         539  +
    pub fn inner(&self) -> &::std::vec::Vec<crate::model::PatternString> {
         540  +
        &self.0
         541  +
    }
         542  +
    /// Consumes the value, returning the underlying [`::std::vec::Vec<crate::model::PatternString>`].
         543  +
    pub fn into_inner(self) -> ::std::vec::Vec<crate::model::PatternString> {
         544  +
        self.0
         545  +
    }
         546  +
         547  +
    fn check_length(
         548  +
        length: usize,
         549  +
    ) -> ::std::result::Result<(), crate::model::length_list_of_pattern_string::ConstraintViolation>
         550  +
    {
         551  +
        if (12..=39).contains(&length) {
         552  +
            Ok(())
         553  +
        } else {
         554  +
            Err(crate::model::length_list_of_pattern_string::ConstraintViolation::Length(length))
         555  +
        }
         556  +
    }
         557  +
}
         558  +
impl ::std::convert::TryFrom<::std::vec::Vec<crate::model::PatternString>>
         559  +
    for LengthListOfPatternString
         560  +
{
         561  +
    type Error = crate::model::length_list_of_pattern_string::ConstraintViolation;
         562  +
         563  +
    /// Constructs a `LengthListOfPatternString` from an [`::std::vec::Vec<crate::model::PatternString>`], failing when the provided value does not satisfy the modeled constraints.
         564  +
    fn try_from(
         565  +
        value: ::std::vec::Vec<crate::model::PatternString>,
         566  +
    ) -> ::std::result::Result<Self, Self::Error> {
         567  +
        Self::check_length(value.len())?;
         568  +
         569  +
        Ok(Self(value))
         570  +
    }
         571  +
}
         572  +
         573  +
impl ::std::convert::From<LengthListOfPatternString>
         574  +
    for ::std::vec::Vec<crate::model::PatternString>
         575  +
{
         576  +
    fn from(value: LengthListOfPatternString) -> Self {
         577  +
        value.into_inner()
         578  +
    }
         579  +
}
         580  +
impl crate::constrained::Constrained for LengthListOfPatternString {
         581  +
    type Unconstrained = crate::unconstrained::length_list_of_pattern_string_unconstrained::LengthListOfPatternStringUnconstrained;
         582  +
}
         583  +
         584  +
#[allow(missing_docs)] // documentation missing in model
         585  +
///
         586  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
         587  +
/// [constraint traits]. Use [`SetOfLengthString::try_from`] to construct values of this type.
         588  +
///
         589  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
         590  +
///
         591  +
#[derive(
         592  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
         593  +
)]
         594  +
pub struct SetOfLengthString(pub(crate) ::std::vec::Vec<crate::model::LengthString>);
         595  +
impl SetOfLengthString {
         596  +
    /// Returns an immutable reference to the underlying [`::std::vec::Vec<crate::model::LengthString>`].
         597  +
    pub fn inner(&self) -> &::std::vec::Vec<crate::model::LengthString> {
         598  +
        &self.0
         599  +
    }
         600  +
    /// Consumes the value, returning the underlying [`::std::vec::Vec<crate::model::LengthString>`].
         601  +
    pub fn into_inner(self) -> ::std::vec::Vec<crate::model::LengthString> {
         602  +
        self.0
         603  +
    }
         604  +
         605  +
    fn check_unique_items(
         606  +
        items: ::std::vec::Vec<crate::model::LengthString>,
         607  +
    ) -> ::std::result::Result<
         608  +
        ::std::vec::Vec<crate::model::LengthString>,
         609  +
        crate::model::set_of_length_string::ConstraintViolation,
         610  +
    > {
         611  +
        let mut seen = ::std::collections::HashMap::new();
         612  +
        let mut duplicate_indices = ::std::vec::Vec::new();
         613  +
        for (idx, item) in items.iter().enumerate() {
         614  +
            if let Some(prev_idx) = seen.insert(item, idx) {
         615  +
                duplicate_indices.push(prev_idx);
         616  +
            }
         617  +
        }
         618  +
         619  +
        let mut last_duplicate_indices = ::std::vec::Vec::new();
         620  +
        for idx in &duplicate_indices {
         621  +
            if let Some(prev_idx) = seen.remove(&items[*idx]) {
         622  +
                last_duplicate_indices.push(prev_idx);
         623  +
            }
         624  +
        }
         625  +
        duplicate_indices.extend(last_duplicate_indices);
         626  +
         627  +
        if !duplicate_indices.is_empty() {
         628  +
            debug_assert!(duplicate_indices.len() >= 2);
         629  +
            Err(
         630  +
                crate::model::set_of_length_string::ConstraintViolation::UniqueItems {
         631  +
                    duplicate_indices,
         632  +
                    original: items,
         633  +
                },
         634  +
            )
         635  +
        } else {
         636  +
            Ok(items)
         637  +
        }
         638  +
    }
         639  +
}
         640  +
impl ::std::convert::TryFrom<::std::vec::Vec<crate::model::LengthString>> for SetOfLengthString {
         641  +
    type Error = crate::model::set_of_length_string::ConstraintViolation;
         642  +
         643  +
    /// Constructs a `SetOfLengthString` from an [`::std::vec::Vec<crate::model::LengthString>`], failing when the provided value does not satisfy the modeled constraints.
         644  +
    fn try_from(
         645  +
        value: ::std::vec::Vec<crate::model::LengthString>,
         646  +
    ) -> ::std::result::Result<Self, Self::Error> {
         647  +
        let value = Self::check_unique_items(value)?;
         648  +
         649  +
        Ok(Self(value))
         650  +
    }
         651  +
}
         652  +
         653  +
impl ::std::convert::From<SetOfLengthString> for ::std::vec::Vec<crate::model::LengthString> {
         654  +
    fn from(value: SetOfLengthString) -> Self {
         655  +
        value.into_inner()
         656  +
    }
         657  +
}
         658  +
impl crate::constrained::Constrained for SetOfLengthString {
         659  +
    type Unconstrained =
         660  +
        crate::unconstrained::set_of_length_string_unconstrained::SetOfLengthStringUnconstrained;
         661  +
}
         662  +
         663  +
#[allow(missing_docs)] // documentation missing in model
         664  +
#[derive(
         665  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
         666  +
)]
         667  +
pub struct RecursiveShapesInputOutputNested1 {
         668  +
    #[allow(missing_docs)] // documentation missing in model
         669  +
    pub recursive_member: ::std::boxed::Box<crate::model::RecursiveShapesInputOutputNested2>,
         670  +
}
         671  +
impl RecursiveShapesInputOutputNested1 {
         672  +
    #[allow(missing_docs)] // documentation missing in model
         673  +
    pub fn recursive_member(&self) -> &crate::model::RecursiveShapesInputOutputNested2 {
         674  +
        use std::ops::Deref;
         675  +
        self.recursive_member.deref()
         676  +
    }
         677  +
}
         678  +
impl RecursiveShapesInputOutputNested1 {
         679  +
    /// Creates a new builder-style object to manufacture [`RecursiveShapesInputOutputNested1`](crate::model::RecursiveShapesInputOutputNested1).
         680  +
    pub fn builder() -> crate::model::recursive_shapes_input_output_nested1::Builder {
         681  +
        crate::model::recursive_shapes_input_output_nested1::Builder::default()
         682  +
    }
         683  +
}
         684  +
impl crate::constrained::Constrained for crate::model::RecursiveShapesInputOutputNested1 {
         685  +
    type Unconstrained = crate::model::recursive_shapes_input_output_nested1::Builder;
         686  +
}
         687  +
         688  +
#[allow(missing_docs)] // documentation missing in model
         689  +
#[derive(
         690  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
         691  +
)]
         692  +
pub struct RecursiveShapesInputOutputNested2 {
         693  +
    #[allow(missing_docs)] // documentation missing in model
         694  +
    pub recursive_member: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
         695  +
}
         696  +
impl RecursiveShapesInputOutputNested2 {
         697  +
    #[allow(missing_docs)] // documentation missing in model
         698  +
    pub fn recursive_member(
         699  +
        &self,
         700  +
    ) -> ::std::option::Option<&crate::model::RecursiveShapesInputOutputNested1> {
         701  +
        self.recursive_member.as_ref()
         702  +
    }
         703  +
}
         704  +
impl RecursiveShapesInputOutputNested2 {
         705  +
    /// Creates a new builder-style object to manufacture [`RecursiveShapesInputOutputNested2`](crate::model::RecursiveShapesInputOutputNested2).
         706  +
    pub fn builder() -> crate::model::recursive_shapes_input_output_nested2::Builder {
         707  +
        crate::model::recursive_shapes_input_output_nested2::Builder::default()
         708  +
    }
         709  +
}
         710  +
impl crate::constrained::Constrained for crate::model::RecursiveShapesInputOutputNested2 {
         711  +
    type Unconstrained = crate::model::recursive_shapes_input_output_nested2::Builder;
         712  +
}
         713  +
         714  +
#[allow(missing_docs)] // documentation missing in model
         715  +
#[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
         716  +
pub struct ConA {
         717  +
    #[allow(missing_docs)] // documentation missing in model
         718  +
    pub con_b: crate::model::ConB,
         719  +
    #[allow(missing_docs)] // documentation missing in model
         720  +
    pub opt_con_b: ::std::option::Option<crate::model::ConB>,
         721  +
    #[allow(missing_docs)] // documentation missing in model
         722  +
    pub length_string: ::std::option::Option<crate::model::LengthString>,
         723  +
    #[allow(missing_docs)] // documentation missing in model
         724  +
    pub min_length_string: ::std::option::Option<crate::model::MinLengthString>,
         725  +
    #[allow(missing_docs)] // documentation missing in model
         726  +
    pub max_length_string: ::std::option::Option<crate::model::MaxLengthString>,
         727  +
    #[allow(missing_docs)] // documentation missing in model
         728  +
    pub fixed_length_string: ::std::option::Option<crate::model::FixedLengthString>,
         729  +
    #[allow(missing_docs)] // documentation missing in model
         730  +
    pub length_blob: ::std::option::Option<crate::model::LengthBlob>,
         731  +
    #[allow(missing_docs)] // documentation missing in model
         732  +
    pub min_length_blob: ::std::option::Option<crate::model::MinLengthBlob>,
         733  +
    #[allow(missing_docs)] // documentation missing in model
         734  +
    pub max_length_blob: ::std::option::Option<crate::model::MaxLengthBlob>,
         735  +
    #[allow(missing_docs)] // documentation missing in model
         736  +
    pub fixed_length_blob: ::std::option::Option<crate::model::FixedLengthBlob>,
         737  +
    #[allow(missing_docs)] // documentation missing in model
         738  +
    pub range_integer: crate::model::RangeInteger,
         739  +
    #[allow(missing_docs)] // documentation missing in model
         740  +
    pub min_range_integer: crate::model::MinRangeInteger,
         741  +
    #[allow(missing_docs)] // documentation missing in model
         742  +
    pub max_range_integer: crate::model::MaxRangeInteger,
         743  +
    #[allow(missing_docs)] // documentation missing in model
         744  +
    pub fixed_value_integer: crate::model::FixedValueInteger,
         745  +
    #[allow(missing_docs)] // documentation missing in model
         746  +
    pub range_short: crate::model::RangeShort,
         747  +
    #[allow(missing_docs)] // documentation missing in model
         748  +
    pub min_range_short: crate::model::MinRangeShort,
         749  +
    #[allow(missing_docs)] // documentation missing in model
         750  +
    pub max_range_short: crate::model::MaxRangeShort,
         751  +
    #[allow(missing_docs)] // documentation missing in model
         752  +
    pub fixed_value_short: crate::model::FixedValueShort,
         753  +
    #[allow(missing_docs)] // documentation missing in model
         754  +
    pub range_long: crate::model::RangeLong,
         755  +
    #[allow(missing_docs)] // documentation missing in model
         756  +
    pub min_range_long: crate::model::MinRangeLong,
         757  +
    #[allow(missing_docs)] // documentation missing in model
         758  +
    pub max_range_long: crate::model::MaxRangeLong,
         759  +
    #[allow(missing_docs)] // documentation missing in model
         760  +
    pub fixed_value_long: crate::model::FixedValueLong,
         761  +
    #[allow(missing_docs)] // documentation missing in model
         762  +
    pub range_byte: crate::model::RangeByte,
         763  +
    #[allow(missing_docs)] // documentation missing in model
         764  +
    pub min_range_byte: crate::model::MinRangeByte,
         765  +
    #[allow(missing_docs)] // documentation missing in model
         766  +
    pub max_range_byte: crate::model::MaxRangeByte,
         767  +
    #[allow(missing_docs)] // documentation missing in model
         768  +
    pub fixed_value_byte: crate::model::FixedValueByte,
         769  +
    #[allow(missing_docs)] // documentation missing in model
         770  +
    pub con_b_list: ::std::option::Option<::std::vec::Vec<::std::vec::Vec<crate::model::ConB>>>,
         771  +
    #[allow(missing_docs)] // documentation missing in model
         772  +
    pub length_list: ::std::option::Option<crate::model::LengthList>,
         773  +
    #[allow(missing_docs)] // documentation missing in model
         774  +
    pub sensitive_length_list: ::std::option::Option<crate::model::SensitiveLengthList>,
         775  +
    #[allow(missing_docs)] // documentation missing in model
         776  +
    pub con_b_set: ::std::option::Option<crate::model::ConBSet>,
         777  +
    #[allow(missing_docs)] // documentation missing in model
         778  +
    pub con_b_map: ::std::option::Option<crate::model::ConBMap>,
         779  +
    #[allow(missing_docs)] // documentation missing in model
         780  +
    pub length_map: ::std::option::Option<crate::model::LengthMap>,
         781  +
    #[allow(missing_docs)] // documentation missing in model
         782  +
    pub map_of_map_of_list_of_list_of_con_b: ::std::option::Option<
         783  +
        ::std::collections::HashMap<
         784  +
            ::std::string::String,
         785  +
            ::std::collections::HashMap<
         786  +
                ::std::string::String,
         787  +
                ::std::vec::Vec<::std::vec::Vec<crate::model::ConB>>,
         788  +
            >,
         789  +
        >,
         790  +
    >,
         791  +
    #[allow(missing_docs)] // documentation missing in model
         792  +
    pub sparse_map: ::std::option::Option<
         793  +
        ::std::collections::HashMap<
         794  +
            ::std::string::String,
         795  +
            ::std::option::Option<crate::model::UniqueItemsList>,
         796  +
        >,
         797  +
    >,
         798  +
    #[allow(missing_docs)] // documentation missing in model
         799  +
    pub sparse_list:
         800  +
        ::std::option::Option<::std::vec::Vec<::std::option::Option<crate::model::LengthString>>>,
         801  +
    #[allow(missing_docs)] // documentation missing in model
         802  +
    pub sparse_length_map: ::std::option::Option<crate::model::SparseLengthMap>,
         803  +
    #[allow(missing_docs)] // documentation missing in model
         804  +
    pub sparse_length_list: ::std::option::Option<crate::model::SparseLengthList>,
         805  +
    /// A union with constrained members.
         806  +
    pub constrained_union: ::std::option::Option<crate::model::ConstrainedUnion>,
         807  +
    #[allow(missing_docs)] // documentation missing in model
         808  +
    pub enum_string: ::std::option::Option<crate::model::EnumString>,
         809  +
    #[allow(missing_docs)] // documentation missing in model
         810  +
    pub list_of_length_string: ::std::option::Option<::std::vec::Vec<crate::model::LengthString>>,
         811  +
    #[allow(missing_docs)] // documentation missing in model
         812  +
    pub set_of_length_string: ::std::option::Option<crate::model::SetOfLengthString>,
         813  +
    #[allow(missing_docs)] // documentation missing in model
         814  +
    pub map_of_length_string: ::std::option::Option<
         815  +
        ::std::collections::HashMap<crate::model::LengthString, crate::model::LengthString>,
         816  +
    >,
         817  +
    #[allow(missing_docs)] // documentation missing in model
         818  +
    pub list_of_length_blob: ::std::option::Option<::std::vec::Vec<crate::model::LengthBlob>>,
         819  +
    #[allow(missing_docs)] // documentation missing in model
         820  +
    pub map_of_length_blob: ::std::option::Option<
         821  +
        ::std::collections::HashMap<::std::string::String, crate::model::LengthBlob>,
         822  +
    >,
         823  +
    #[allow(missing_docs)] // documentation missing in model
         824  +
    pub list_of_range_integer: ::std::option::Option<::std::vec::Vec<crate::model::RangeInteger>>,
         825  +
    #[allow(missing_docs)] // documentation missing in model
         826  +
    pub set_of_range_integer: ::std::option::Option<crate::model::SetOfRangeInteger>,
         827  +
    #[allow(missing_docs)] // documentation missing in model
         828  +
    pub map_of_range_integer: ::std::option::Option<
         829  +
        ::std::collections::HashMap<::std::string::String, crate::model::RangeInteger>,
         830  +
    >,
         831  +
    #[allow(missing_docs)] // documentation missing in model
         832  +
    pub list_of_range_short: ::std::option::Option<::std::vec::Vec<crate::model::RangeShort>>,
         833  +
    #[allow(missing_docs)] // documentation missing in model
         834  +
    pub set_of_range_short: ::std::option::Option<crate::model::SetOfRangeShort>,
         835  +
    #[allow(missing_docs)] // documentation missing in model
         836  +
    pub map_of_range_short: ::std::option::Option<
         837  +
        ::std::collections::HashMap<::std::string::String, crate::model::RangeShort>,
         838  +
    >,
         839  +
    #[allow(missing_docs)] // documentation missing in model
         840  +
    pub list_of_range_long: ::std::option::Option<::std::vec::Vec<crate::model::RangeLong>>,
         841  +
    #[allow(missing_docs)] // documentation missing in model
         842  +
    pub set_of_range_long: ::std::option::Option<crate::model::SetOfRangeLong>,
         843  +
    #[allow(missing_docs)] // documentation missing in model
         844  +
    pub map_of_range_long: ::std::option::Option<
         845  +
        ::std::collections::HashMap<::std::string::String, crate::model::RangeLong>,
         846  +
    >,
         847  +
    #[allow(missing_docs)] // documentation missing in model
         848  +
    pub list_of_range_byte: ::std::option::Option<::std::vec::Vec<crate::model::RangeByte>>,
         849  +
    #[allow(missing_docs)] // documentation missing in model
         850  +
    pub set_of_range_byte: ::std::option::Option<crate::model::SetOfRangeByte>,
         851  +
    #[allow(missing_docs)] // documentation missing in model
         852  +
    pub map_of_range_byte: ::std::option::Option<
         853  +
        ::std::collections::HashMap<::std::string::String, crate::model::RangeByte>,
         854  +
    >,
         855  +
    #[allow(missing_docs)] // documentation missing in model
         856  +
    pub non_streaming_blob: ::std::option::Option<::aws_smithy_types::Blob>,
         857  +
    #[allow(missing_docs)] // documentation missing in model
         858  +
    pub pattern_string: ::std::option::Option<crate::model::PatternString>,
         859  +
    #[allow(missing_docs)] // documentation missing in model
         860  +
    pub map_of_pattern_string: ::std::option::Option<
         861  +
        ::std::collections::HashMap<crate::model::PatternString, crate::model::PatternString>,
         862  +
    >,
         863  +
    #[allow(missing_docs)] // documentation missing in model
         864  +
    pub list_of_pattern_string: ::std::option::Option<::std::vec::Vec<crate::model::PatternString>>,
         865  +
    #[allow(missing_docs)] // documentation missing in model
         866  +
    pub set_of_pattern_string: ::std::option::Option<crate::model::SetOfPatternString>,
         867  +
    #[allow(missing_docs)] // documentation missing in model
         868  +
    pub length_length_pattern_string: ::std::option::Option<crate::model::LengthPatternString>,
         869  +
    #[allow(missing_docs)] // documentation missing in model
         870  +
    pub map_of_length_pattern_string: ::std::option::Option<
         871  +
        ::std::collections::HashMap<
         872  +
            crate::model::LengthPatternString,
         873  +
            crate::model::LengthPatternString,
         874  +
        >,
         875  +
    >,
         876  +
    #[allow(missing_docs)] // documentation missing in model
         877  +
    pub list_of_length_pattern_string:
         878  +
        ::std::option::Option<::std::vec::Vec<crate::model::LengthPatternString>>,
         879  +
    #[allow(missing_docs)] // documentation missing in model
         880  +
    pub set_of_length_pattern_string: ::std::option::Option<crate::model::SetOfLengthPatternString>,
         881  +
    #[allow(missing_docs)] // documentation missing in model
         882  +
    pub length_list_of_pattern_string:
         883  +
        ::std::option::Option<crate::model::LengthListOfPatternString>,
         884  +
    #[allow(missing_docs)] // documentation missing in model
         885  +
    pub length_set_of_pattern_string: ::std::option::Option<crate::model::LengthSetOfPatternString>,
         886  +
}
         887  +
impl ConA {
         888  +
    #[allow(missing_docs)] // documentation missing in model
         889  +
    pub fn con_b(&self) -> &crate::model::ConB {
         890  +
        &self.con_b
         891  +
    }
         892  +
    #[allow(missing_docs)] // documentation missing in model
         893  +
    pub fn opt_con_b(&self) -> ::std::option::Option<&crate::model::ConB> {
         894  +
        self.opt_con_b.as_ref()
         895  +
    }
         896  +
    #[allow(missing_docs)] // documentation missing in model
         897  +
    pub fn length_string(&self) -> ::std::option::Option<&crate::model::LengthString> {
         898  +
        self.length_string.as_ref()
         899  +
    }
         900  +
    #[allow(missing_docs)] // documentation missing in model
         901  +
    pub fn min_length_string(&self) -> ::std::option::Option<&crate::model::MinLengthString> {
         902  +
        self.min_length_string.as_ref()
         903  +
    }
         904  +
    #[allow(missing_docs)] // documentation missing in model
         905  +
    pub fn max_length_string(&self) -> ::std::option::Option<&crate::model::MaxLengthString> {
         906  +
        self.max_length_string.as_ref()
         907  +
    }
         908  +
    #[allow(missing_docs)] // documentation missing in model
         909  +
    pub fn fixed_length_string(&self) -> ::std::option::Option<&crate::model::FixedLengthString> {
         910  +
        self.fixed_length_string.as_ref()
         911  +
    }
         912  +
    #[allow(missing_docs)] // documentation missing in model
         913  +
    pub fn length_blob(&self) -> ::std::option::Option<&crate::model::LengthBlob> {
         914  +
        self.length_blob.as_ref()
         915  +
    }
         916  +
    #[allow(missing_docs)] // documentation missing in model
         917  +
    pub fn min_length_blob(&self) -> ::std::option::Option<&crate::model::MinLengthBlob> {
         918  +
        self.min_length_blob.as_ref()
         919  +
    }
         920  +
    #[allow(missing_docs)] // documentation missing in model
         921  +
    pub fn max_length_blob(&self) -> ::std::option::Option<&crate::model::MaxLengthBlob> {
         922  +
        self.max_length_blob.as_ref()
         923  +
    }
         924  +
    #[allow(missing_docs)] // documentation missing in model
         925  +
    pub fn fixed_length_blob(&self) -> ::std::option::Option<&crate::model::FixedLengthBlob> {
         926  +
        self.fixed_length_blob.as_ref()
         927  +
    }
         928  +
    #[allow(missing_docs)] // documentation missing in model
         929  +
    pub fn range_integer(&self) -> &crate::model::RangeInteger {
         930  +
        &self.range_integer
         931  +
    }
         932  +
    #[allow(missing_docs)] // documentation missing in model
         933  +
    pub fn min_range_integer(&self) -> &crate::model::MinRangeInteger {
         934  +
        &self.min_range_integer
         935  +
    }
         936  +
    #[allow(missing_docs)] // documentation missing in model
         937  +
    pub fn max_range_integer(&self) -> &crate::model::MaxRangeInteger {
         938  +
        &self.max_range_integer
         939  +
    }
         940  +
    #[allow(missing_docs)] // documentation missing in model
         941  +
    pub fn fixed_value_integer(&self) -> &crate::model::FixedValueInteger {
         942  +
        &self.fixed_value_integer
         943  +
    }
         944  +
    #[allow(missing_docs)] // documentation missing in model
         945  +
    pub fn range_short(&self) -> &crate::model::RangeShort {
         946  +
        &self.range_short
         947  +
    }
         948  +
    #[allow(missing_docs)] // documentation missing in model
         949  +
    pub fn min_range_short(&self) -> &crate::model::MinRangeShort {
         950  +
        &self.min_range_short
         951  +
    }
         952  +
    #[allow(missing_docs)] // documentation missing in model
         953  +
    pub fn max_range_short(&self) -> &crate::model::MaxRangeShort {
         954  +
        &self.max_range_short
         955  +
    }
         956  +
    #[allow(missing_docs)] // documentation missing in model
         957  +
    pub fn fixed_value_short(&self) -> &crate::model::FixedValueShort {
         958  +
        &self.fixed_value_short
         959  +
    }
         960  +
    #[allow(missing_docs)] // documentation missing in model
         961  +
    pub fn range_long(&self) -> &crate::model::RangeLong {
         962  +
        &self.range_long
         963  +
    }
         964  +
    #[allow(missing_docs)] // documentation missing in model
         965  +
    pub fn min_range_long(&self) -> &crate::model::MinRangeLong {
         966  +
        &self.min_range_long
         967  +
    }
         968  +
    #[allow(missing_docs)] // documentation missing in model
         969  +
    pub fn max_range_long(&self) -> &crate::model::MaxRangeLong {
         970  +
        &self.max_range_long
         971  +
    }
         972  +
    #[allow(missing_docs)] // documentation missing in model
         973  +
    pub fn fixed_value_long(&self) -> &crate::model::FixedValueLong {
         974  +
        &self.fixed_value_long
         975  +
    }
         976  +
    #[allow(missing_docs)] // documentation missing in model
         977  +
    pub fn range_byte(&self) -> &crate::model::RangeByte {
         978  +
        &self.range_byte
         979  +
    }
         980  +
    #[allow(missing_docs)] // documentation missing in model
         981  +
    pub fn min_range_byte(&self) -> &crate::model::MinRangeByte {
         982  +
        &self.min_range_byte
         983  +
    }
         984  +
    #[allow(missing_docs)] // documentation missing in model
         985  +
    pub fn max_range_byte(&self) -> &crate::model::MaxRangeByte {
         986  +
        &self.max_range_byte
         987  +
    }
         988  +
    #[allow(missing_docs)] // documentation missing in model
         989  +
    pub fn fixed_value_byte(&self) -> &crate::model::FixedValueByte {
         990  +
        &self.fixed_value_byte
         991  +
    }
         992  +
    #[allow(missing_docs)] // documentation missing in model
         993  +
    pub fn con_b_list(&self) -> ::std::option::Option<&[::std::vec::Vec<crate::model::ConB>]> {
         994  +
        self.con_b_list.as_deref()
         995  +
    }
         996  +
    #[allow(missing_docs)] // documentation missing in model
         997  +
    pub fn length_list(&self) -> ::std::option::Option<&crate::model::LengthList> {
         998  +
        self.length_list.as_ref()
         999  +
    }
        1000  +
    #[allow(missing_docs)] // documentation missing in model
        1001  +
    pub fn sensitive_length_list(
        1002  +
        &self,
        1003  +
    ) -> ::std::option::Option<&crate::model::SensitiveLengthList> {
        1004  +
        self.sensitive_length_list.as_ref()
        1005  +
    }
        1006  +
    #[allow(missing_docs)] // documentation missing in model
        1007  +
    pub fn con_b_set(&self) -> ::std::option::Option<&crate::model::ConBSet> {
        1008  +
        self.con_b_set.as_ref()
        1009  +
    }
        1010  +
    #[allow(missing_docs)] // documentation missing in model
        1011  +
    pub fn con_b_map(&self) -> ::std::option::Option<&crate::model::ConBMap> {
        1012  +
        self.con_b_map.as_ref()
        1013  +
    }
        1014  +
    #[allow(missing_docs)] // documentation missing in model
        1015  +
    pub fn length_map(&self) -> ::std::option::Option<&crate::model::LengthMap> {
        1016  +
        self.length_map.as_ref()
        1017  +
    }
        1018  +
    #[allow(missing_docs)] // documentation missing in model
        1019  +
    pub fn map_of_map_of_list_of_list_of_con_b(
        1020  +
        &self,
        1021  +
    ) -> ::std::option::Option<
        1022  +
        &::std::collections::HashMap<
        1023  +
            ::std::string::String,
        1024  +
            ::std::collections::HashMap<
        1025  +
                ::std::string::String,
        1026  +
                ::std::vec::Vec<::std::vec::Vec<crate::model::ConB>>,
        1027  +
            >,
        1028  +
        >,
        1029  +
    > {
        1030  +
        self.map_of_map_of_list_of_list_of_con_b.as_ref()
        1031  +
    }
        1032  +
    #[allow(missing_docs)] // documentation missing in model
        1033  +
    pub fn sparse_map(
        1034  +
        &self,
        1035  +
    ) -> ::std::option::Option<
        1036  +
        &::std::collections::HashMap<
        1037  +
            ::std::string::String,
        1038  +
            ::std::option::Option<crate::model::UniqueItemsList>,
        1039  +
        >,
        1040  +
    > {
        1041  +
        self.sparse_map.as_ref()
        1042  +
    }
        1043  +
    #[allow(missing_docs)] // documentation missing in model
        1044  +
    pub fn sparse_list(
        1045  +
        &self,
        1046  +
    ) -> ::std::option::Option<&[::std::option::Option<crate::model::LengthString>]> {
        1047  +
        self.sparse_list.as_deref()
        1048  +
    }
        1049  +
    #[allow(missing_docs)] // documentation missing in model
        1050  +
    pub fn sparse_length_map(&self) -> ::std::option::Option<&crate::model::SparseLengthMap> {
        1051  +
        self.sparse_length_map.as_ref()
        1052  +
    }
        1053  +
    #[allow(missing_docs)] // documentation missing in model
        1054  +
    pub fn sparse_length_list(&self) -> ::std::option::Option<&crate::model::SparseLengthList> {
        1055  +
        self.sparse_length_list.as_ref()
        1056  +
    }
        1057  +
    /// A union with constrained members.
        1058  +
    pub fn constrained_union(&self) -> ::std::option::Option<&crate::model::ConstrainedUnion> {
        1059  +
        self.constrained_union.as_ref()
        1060  +
    }
        1061  +
    #[allow(missing_docs)] // documentation missing in model
        1062  +
    pub fn enum_string(&self) -> ::std::option::Option<&crate::model::EnumString> {
        1063  +
        self.enum_string.as_ref()
        1064  +
    }
        1065  +
    #[allow(missing_docs)] // documentation missing in model
        1066  +
    pub fn list_of_length_string(&self) -> ::std::option::Option<&[crate::model::LengthString]> {
        1067  +
        self.list_of_length_string.as_deref()
        1068  +
    }
        1069  +
    #[allow(missing_docs)] // documentation missing in model
        1070  +
    pub fn set_of_length_string(&self) -> ::std::option::Option<&crate::model::SetOfLengthString> {
        1071  +
        self.set_of_length_string.as_ref()
        1072  +
    }
        1073  +
    #[allow(missing_docs)] // documentation missing in model
        1074  +
    pub fn map_of_length_string(
        1075  +
        &self,
        1076  +
    ) -> ::std::option::Option<
        1077  +
        &::std::collections::HashMap<crate::model::LengthString, crate::model::LengthString>,
        1078  +
    > {
        1079  +
        self.map_of_length_string.as_ref()
        1080  +
    }
        1081  +
    #[allow(missing_docs)] // documentation missing in model
        1082  +
    pub fn list_of_length_blob(&self) -> ::std::option::Option<&[crate::model::LengthBlob]> {
        1083  +
        self.list_of_length_blob.as_deref()
        1084  +
    }
        1085  +
    #[allow(missing_docs)] // documentation missing in model
        1086  +
    pub fn map_of_length_blob(
        1087  +
        &self,
        1088  +
    ) -> ::std::option::Option<
        1089  +
        &::std::collections::HashMap<::std::string::String, crate::model::LengthBlob>,
        1090  +
    > {
        1091  +
        self.map_of_length_blob.as_ref()
        1092  +
    }
        1093  +
    #[allow(missing_docs)] // documentation missing in model
        1094  +
    pub fn list_of_range_integer(&self) -> ::std::option::Option<&[crate::model::RangeInteger]> {
        1095  +
        self.list_of_range_integer.as_deref()
        1096  +
    }
        1097  +
    #[allow(missing_docs)] // documentation missing in model
        1098  +
    pub fn set_of_range_integer(&self) -> ::std::option::Option<&crate::model::SetOfRangeInteger> {
        1099  +
        self.set_of_range_integer.as_ref()
        1100  +
    }
        1101  +
    #[allow(missing_docs)] // documentation missing in model
        1102  +
    pub fn map_of_range_integer(
        1103  +
        &self,
        1104  +
    ) -> ::std::option::Option<
        1105  +
        &::std::collections::HashMap<::std::string::String, crate::model::RangeInteger>,
        1106  +
    > {
        1107  +
        self.map_of_range_integer.as_ref()
        1108  +
    }
        1109  +
    #[allow(missing_docs)] // documentation missing in model
        1110  +
    pub fn list_of_range_short(&self) -> ::std::option::Option<&[crate::model::RangeShort]> {
        1111  +
        self.list_of_range_short.as_deref()
        1112  +
    }
        1113  +
    #[allow(missing_docs)] // documentation missing in model
        1114  +
    pub fn set_of_range_short(&self) -> ::std::option::Option<&crate::model::SetOfRangeShort> {
        1115  +
        self.set_of_range_short.as_ref()
        1116  +
    }
        1117  +
    #[allow(missing_docs)] // documentation missing in model
        1118  +
    pub fn map_of_range_short(
        1119  +
        &self,
        1120  +
    ) -> ::std::option::Option<
        1121  +
        &::std::collections::HashMap<::std::string::String, crate::model::RangeShort>,
        1122  +
    > {
        1123  +
        self.map_of_range_short.as_ref()
        1124  +
    }
        1125  +
    #[allow(missing_docs)] // documentation missing in model
        1126  +
    pub fn list_of_range_long(&self) -> ::std::option::Option<&[crate::model::RangeLong]> {
        1127  +
        self.list_of_range_long.as_deref()
        1128  +
    }
        1129  +
    #[allow(missing_docs)] // documentation missing in model
        1130  +
    pub fn set_of_range_long(&self) -> ::std::option::Option<&crate::model::SetOfRangeLong> {
        1131  +
        self.set_of_range_long.as_ref()
        1132  +
    }
        1133  +
    #[allow(missing_docs)] // documentation missing in model
        1134  +
    pub fn map_of_range_long(
        1135  +
        &self,
        1136  +
    ) -> ::std::option::Option<
        1137  +
        &::std::collections::HashMap<::std::string::String, crate::model::RangeLong>,
        1138  +
    > {
        1139  +
        self.map_of_range_long.as_ref()
        1140  +
    }
        1141  +
    #[allow(missing_docs)] // documentation missing in model
        1142  +
    pub fn list_of_range_byte(&self) -> ::std::option::Option<&[crate::model::RangeByte]> {
        1143  +
        self.list_of_range_byte.as_deref()
        1144  +
    }
        1145  +
    #[allow(missing_docs)] // documentation missing in model
        1146  +
    pub fn set_of_range_byte(&self) -> ::std::option::Option<&crate::model::SetOfRangeByte> {
        1147  +
        self.set_of_range_byte.as_ref()
        1148  +
    }
        1149  +
    #[allow(missing_docs)] // documentation missing in model
        1150  +
    pub fn map_of_range_byte(
        1151  +
        &self,
        1152  +
    ) -> ::std::option::Option<
        1153  +
        &::std::collections::HashMap<::std::string::String, crate::model::RangeByte>,
        1154  +
    > {
        1155  +
        self.map_of_range_byte.as_ref()
        1156  +
    }
        1157  +
    #[allow(missing_docs)] // documentation missing in model
        1158  +
    pub fn non_streaming_blob(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
        1159  +
        self.non_streaming_blob.as_ref()
        1160  +
    }
        1161  +
    #[allow(missing_docs)] // documentation missing in model
        1162  +
    pub fn pattern_string(&self) -> ::std::option::Option<&crate::model::PatternString> {
        1163  +
        self.pattern_string.as_ref()
        1164  +
    }
        1165  +
    #[allow(missing_docs)] // documentation missing in model
        1166  +
    pub fn map_of_pattern_string(
        1167  +
        &self,
        1168  +
    ) -> ::std::option::Option<
        1169  +
        &::std::collections::HashMap<crate::model::PatternString, crate::model::PatternString>,
        1170  +
    > {
        1171  +
        self.map_of_pattern_string.as_ref()
        1172  +
    }
        1173  +
    #[allow(missing_docs)] // documentation missing in model
        1174  +
    pub fn list_of_pattern_string(&self) -> ::std::option::Option<&[crate::model::PatternString]> {
        1175  +
        self.list_of_pattern_string.as_deref()
        1176  +
    }
        1177  +
    #[allow(missing_docs)] // documentation missing in model
        1178  +
    pub fn set_of_pattern_string(
        1179  +
        &self,
        1180  +
    ) -> ::std::option::Option<&crate::model::SetOfPatternString> {
        1181  +
        self.set_of_pattern_string.as_ref()
        1182  +
    }
        1183  +
    #[allow(missing_docs)] // documentation missing in model
        1184  +
    pub fn length_length_pattern_string(
        1185  +
        &self,
        1186  +
    ) -> ::std::option::Option<&crate::model::LengthPatternString> {
        1187  +
        self.length_length_pattern_string.as_ref()
        1188  +
    }
        1189  +
    #[allow(missing_docs)] // documentation missing in model
        1190  +
    pub fn map_of_length_pattern_string(
        1191  +
        &self,
        1192  +
    ) -> ::std::option::Option<
        1193  +
        &::std::collections::HashMap<
        1194  +
            crate::model::LengthPatternString,
        1195  +
            crate::model::LengthPatternString,
        1196  +
        >,
        1197  +
    > {
        1198  +
        self.map_of_length_pattern_string.as_ref()
        1199  +
    }
        1200  +
    #[allow(missing_docs)] // documentation missing in model
        1201  +
    pub fn list_of_length_pattern_string(
        1202  +
        &self,
        1203  +
    ) -> ::std::option::Option<&[crate::model::LengthPatternString]> {
        1204  +
        self.list_of_length_pattern_string.as_deref()
        1205  +
    }
        1206  +
    #[allow(missing_docs)] // documentation missing in model
        1207  +
    pub fn set_of_length_pattern_string(
        1208  +
        &self,
        1209  +
    ) -> ::std::option::Option<&crate::model::SetOfLengthPatternString> {
        1210  +
        self.set_of_length_pattern_string.as_ref()
        1211  +
    }
        1212  +
    #[allow(missing_docs)] // documentation missing in model
        1213  +
    pub fn length_list_of_pattern_string(
        1214  +
        &self,
        1215  +
    ) -> ::std::option::Option<&crate::model::LengthListOfPatternString> {
        1216  +
        self.length_list_of_pattern_string.as_ref()
        1217  +
    }
        1218  +
    #[allow(missing_docs)] // documentation missing in model
        1219  +
    pub fn length_set_of_pattern_string(
        1220  +
        &self,
        1221  +
    ) -> ::std::option::Option<&crate::model::LengthSetOfPatternString> {
        1222  +
        self.length_set_of_pattern_string.as_ref()
        1223  +
    }
        1224  +
}
        1225  +
impl ConA {
        1226  +
    /// Creates a new builder-style object to manufacture [`ConA`](crate::model::ConA).
        1227  +
    pub fn builder() -> crate::model::con_a::Builder {
        1228  +
        crate::model::con_a::Builder::default()
        1229  +
    }
        1230  +
}
        1231  +
impl crate::constrained::Constrained for crate::model::ConA {
        1232  +
    type Unconstrained = crate::model::con_a::Builder;
        1233  +
}
        1234  +
        1235  +
#[allow(missing_docs)] // documentation missing in model
        1236  +
///
        1237  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        1238  +
/// [constraint traits]. Use [`LengthSetOfPatternString::try_from`] to construct values of this type.
        1239  +
///
        1240  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        1241  +
///
        1242  +
#[derive(
        1243  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        1244  +
)]
        1245  +
pub struct LengthSetOfPatternString(pub(crate) ::std::vec::Vec<crate::model::PatternString>);
        1246  +
impl LengthSetOfPatternString {
        1247  +
    /// Returns an immutable reference to the underlying [`::std::vec::Vec<crate::model::PatternString>`].
        1248  +
    pub fn inner(&self) -> &::std::vec::Vec<crate::model::PatternString> {
        1249  +
        &self.0
        1250  +
    }
        1251  +
    /// Consumes the value, returning the underlying [`::std::vec::Vec<crate::model::PatternString>`].
        1252  +
    pub fn into_inner(self) -> ::std::vec::Vec<crate::model::PatternString> {
        1253  +
        self.0
        1254  +
    }
        1255  +
        1256  +
    fn check_length(
        1257  +
        length: usize,
        1258  +
    ) -> ::std::result::Result<(), crate::model::length_set_of_pattern_string::ConstraintViolation>
        1259  +
    {
        1260  +
        if (5..=9).contains(&length) {
        1261  +
            Ok(())
        1262  +
        } else {
        1263  +
            Err(crate::model::length_set_of_pattern_string::ConstraintViolation::Length(length))
        1264  +
        }
        1265  +
    }
        1266  +
        1267  +
    fn check_unique_items(
        1268  +
        items: ::std::vec::Vec<crate::model::PatternString>,
        1269  +
    ) -> ::std::result::Result<
        1270  +
        ::std::vec::Vec<crate::model::PatternString>,
        1271  +
        crate::model::length_set_of_pattern_string::ConstraintViolation,
        1272  +
    > {
        1273  +
        let mut seen = ::std::collections::HashMap::new();
        1274  +
        let mut duplicate_indices = ::std::vec::Vec::new();
        1275  +
        for (idx, item) in items.iter().enumerate() {
        1276  +
            if let Some(prev_idx) = seen.insert(item, idx) {
        1277  +
                duplicate_indices.push(prev_idx);
        1278  +
            }
        1279  +
        }
        1280  +
        1281  +
        let mut last_duplicate_indices = ::std::vec::Vec::new();
        1282  +
        for idx in &duplicate_indices {
        1283  +
            if let Some(prev_idx) = seen.remove(&items[*idx]) {
        1284  +
                last_duplicate_indices.push(prev_idx);
        1285  +
            }
        1286  +
        }
        1287  +
        duplicate_indices.extend(last_duplicate_indices);
        1288  +
        1289  +
        if !duplicate_indices.is_empty() {
        1290  +
            debug_assert!(duplicate_indices.len() >= 2);
        1291  +
            Err(
        1292  +
                crate::model::length_set_of_pattern_string::ConstraintViolation::UniqueItems {
        1293  +
                    duplicate_indices,
        1294  +
                    original: items,
        1295  +
                },
        1296  +
            )
        1297  +
        } else {
        1298  +
            Ok(items)
        1299  +
        }
        1300  +
    }
        1301  +
}
        1302  +
impl ::std::convert::TryFrom<::std::vec::Vec<crate::model::PatternString>>
        1303  +
    for LengthSetOfPatternString
        1304  +
{
        1305  +
    type Error = crate::model::length_set_of_pattern_string::ConstraintViolation;
        1306  +
        1307  +
    /// Constructs a `LengthSetOfPatternString` from an [`::std::vec::Vec<crate::model::PatternString>`], failing when the provided value does not satisfy the modeled constraints.
        1308  +
    fn try_from(
        1309  +
        value: ::std::vec::Vec<crate::model::PatternString>,
        1310  +
    ) -> ::std::result::Result<Self, Self::Error> {
        1311  +
        Self::check_length(value.len())?;
        1312  +
        1313  +
        let value = Self::check_unique_items(value)?;
        1314  +
        1315  +
        Ok(Self(value))
        1316  +
    }
        1317  +
}
        1318  +
        1319  +
impl ::std::convert::From<LengthSetOfPatternString>
        1320  +
    for ::std::vec::Vec<crate::model::PatternString>
        1321  +
{
        1322  +
    fn from(value: LengthSetOfPatternString) -> Self {
        1323  +
        value.into_inner()
        1324  +
    }
        1325  +
}
        1326  +
impl crate::constrained::Constrained for LengthSetOfPatternString {
        1327  +
    type Unconstrained = crate::unconstrained::length_set_of_pattern_string_unconstrained::LengthSetOfPatternStringUnconstrained;
        1328  +
}
        1329  +
        1330  +
#[allow(missing_docs)] // documentation missing in model
        1331  +
///
        1332  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        1333  +
/// [constraint traits]. Use [`SetOfLengthPatternString::try_from`] to construct values of this type.
        1334  +
///
        1335  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        1336  +
///
        1337  +
#[derive(
        1338  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        1339  +
)]
        1340  +
pub struct SetOfLengthPatternString(pub(crate) ::std::vec::Vec<crate::model::LengthPatternString>);
        1341  +
impl SetOfLengthPatternString {
        1342  +
    /// Returns an immutable reference to the underlying [`::std::vec::Vec<crate::model::LengthPatternString>`].
        1343  +
    pub fn inner(&self) -> &::std::vec::Vec<crate::model::LengthPatternString> {
        1344  +
        &self.0
        1345  +
    }
        1346  +
    /// Consumes the value, returning the underlying [`::std::vec::Vec<crate::model::LengthPatternString>`].
        1347  +
    pub fn into_inner(self) -> ::std::vec::Vec<crate::model::LengthPatternString> {
        1348  +
        self.0
        1349  +
    }
        1350  +
        1351  +
    fn check_unique_items(
        1352  +
        items: ::std::vec::Vec<crate::model::LengthPatternString>,
        1353  +
    ) -> ::std::result::Result<
        1354  +
        ::std::vec::Vec<crate::model::LengthPatternString>,
        1355  +
        crate::model::set_of_length_pattern_string::ConstraintViolation,
        1356  +
    > {
        1357  +
        let mut seen = ::std::collections::HashMap::new();
        1358  +
        let mut duplicate_indices = ::std::vec::Vec::new();
        1359  +
        for (idx, item) in items.iter().enumerate() {
        1360  +
            if let Some(prev_idx) = seen.insert(item, idx) {
        1361  +
                duplicate_indices.push(prev_idx);
        1362  +
            }
        1363  +
        }
        1364  +
        1365  +
        let mut last_duplicate_indices = ::std::vec::Vec::new();
        1366  +
        for idx in &duplicate_indices {
        1367  +
            if let Some(prev_idx) = seen.remove(&items[*idx]) {
        1368  +
                last_duplicate_indices.push(prev_idx);
        1369  +
            }
        1370  +
        }
        1371  +
        duplicate_indices.extend(last_duplicate_indices);
        1372  +
        1373  +
        if !duplicate_indices.is_empty() {
        1374  +
            debug_assert!(duplicate_indices.len() >= 2);
        1375  +
            Err(
        1376  +
                crate::model::set_of_length_pattern_string::ConstraintViolation::UniqueItems {
        1377  +
                    duplicate_indices,
        1378  +
                    original: items,
        1379  +
                },
        1380  +
            )
        1381  +
        } else {
        1382  +
            Ok(items)
        1383  +
        }
        1384  +
    }
        1385  +
}
        1386  +
impl ::std::convert::TryFrom<::std::vec::Vec<crate::model::LengthPatternString>>
        1387  +
    for SetOfLengthPatternString
        1388  +
{
        1389  +
    type Error = crate::model::set_of_length_pattern_string::ConstraintViolation;
        1390  +
        1391  +
    /// Constructs a `SetOfLengthPatternString` from an [`::std::vec::Vec<crate::model::LengthPatternString>`], failing when the provided value does not satisfy the modeled constraints.
        1392  +
    fn try_from(
        1393  +
        value: ::std::vec::Vec<crate::model::LengthPatternString>,
        1394  +
    ) -> ::std::result::Result<Self, Self::Error> {
        1395  +
        let value = Self::check_unique_items(value)?;
        1396  +
        1397  +
        Ok(Self(value))
        1398  +
    }
        1399  +
}
        1400  +
        1401  +
impl ::std::convert::From<SetOfLengthPatternString>
        1402  +
    for ::std::vec::Vec<crate::model::LengthPatternString>
        1403  +
{
        1404  +
    fn from(value: SetOfLengthPatternString) -> Self {
        1405  +
        value.into_inner()
        1406  +
    }
        1407  +
}
        1408  +
impl crate::constrained::Constrained for SetOfLengthPatternString {
        1409  +
    type Unconstrained = crate::unconstrained::set_of_length_pattern_string_unconstrained::SetOfLengthPatternStringUnconstrained;
        1410  +
}
        1411  +
        1412  +
#[allow(missing_docs)] // documentation missing in model
        1413  +
///
        1414  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        1415  +
/// [constraint traits]. Use [`SetOfPatternString::try_from`] to construct values of this type.
        1416  +
///
        1417  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        1418  +
///
        1419  +
#[derive(
        1420  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        1421  +
)]
        1422  +
pub struct SetOfPatternString(pub(crate) ::std::vec::Vec<crate::model::PatternString>);
        1423  +
impl SetOfPatternString {
        1424  +
    /// Returns an immutable reference to the underlying [`::std::vec::Vec<crate::model::PatternString>`].
        1425  +
    pub fn inner(&self) -> &::std::vec::Vec<crate::model::PatternString> {
        1426  +
        &self.0
        1427  +
    }
        1428  +
    /// Consumes the value, returning the underlying [`::std::vec::Vec<crate::model::PatternString>`].
        1429  +
    pub fn into_inner(self) -> ::std::vec::Vec<crate::model::PatternString> {
        1430  +
        self.0
        1431  +
    }
        1432  +
        1433  +
    fn check_unique_items(
        1434  +
        items: ::std::vec::Vec<crate::model::PatternString>,
        1435  +
    ) -> ::std::result::Result<
        1436  +
        ::std::vec::Vec<crate::model::PatternString>,
        1437  +
        crate::model::set_of_pattern_string::ConstraintViolation,
        1438  +
    > {
        1439  +
        let mut seen = ::std::collections::HashMap::new();
        1440  +
        let mut duplicate_indices = ::std::vec::Vec::new();
        1441  +
        for (idx, item) in items.iter().enumerate() {
        1442  +
            if let Some(prev_idx) = seen.insert(item, idx) {
        1443  +
                duplicate_indices.push(prev_idx);
        1444  +
            }
        1445  +
        }
        1446  +
        1447  +
        let mut last_duplicate_indices = ::std::vec::Vec::new();
        1448  +
        for idx in &duplicate_indices {
        1449  +
            if let Some(prev_idx) = seen.remove(&items[*idx]) {
        1450  +
                last_duplicate_indices.push(prev_idx);
        1451  +
            }
        1452  +
        }
        1453  +
        duplicate_indices.extend(last_duplicate_indices);
        1454  +
        1455  +
        if !duplicate_indices.is_empty() {
        1456  +
            debug_assert!(duplicate_indices.len() >= 2);
        1457  +
            Err(
        1458  +
                crate::model::set_of_pattern_string::ConstraintViolation::UniqueItems {
        1459  +
                    duplicate_indices,
        1460  +
                    original: items,
        1461  +
                },
        1462  +
            )
        1463  +
        } else {
        1464  +
            Ok(items)
        1465  +
        }
        1466  +
    }
        1467  +
}
        1468  +
impl ::std::convert::TryFrom<::std::vec::Vec<crate::model::PatternString>> for SetOfPatternString {
        1469  +
    type Error = crate::model::set_of_pattern_string::ConstraintViolation;
        1470  +
        1471  +
    /// Constructs a `SetOfPatternString` from an [`::std::vec::Vec<crate::model::PatternString>`], failing when the provided value does not satisfy the modeled constraints.
        1472  +
    fn try_from(
        1473  +
        value: ::std::vec::Vec<crate::model::PatternString>,
        1474  +
    ) -> ::std::result::Result<Self, Self::Error> {
        1475  +
        let value = Self::check_unique_items(value)?;
        1476  +
        1477  +
        Ok(Self(value))
        1478  +
    }
        1479  +
}
        1480  +
        1481  +
impl ::std::convert::From<SetOfPatternString> for ::std::vec::Vec<crate::model::PatternString> {
        1482  +
    fn from(value: SetOfPatternString) -> Self {
        1483  +
        value.into_inner()
        1484  +
    }
        1485  +
}
        1486  +
impl crate::constrained::Constrained for SetOfPatternString {
        1487  +
    type Unconstrained =
        1488  +
        crate::unconstrained::set_of_pattern_string_unconstrained::SetOfPatternStringUnconstrained;
        1489  +
}
        1490  +
        1491  +
#[allow(missing_docs)] // documentation missing in model
        1492  +
///
        1493  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        1494  +
/// [constraint traits]. Use [`RangeByte::try_from`] to construct values of this type.
        1495  +
///
        1496  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        1497  +
///
        1498  +
#[derive(
        1499  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        1500  +
)]
        1501  +
pub struct RangeByte(pub(crate) i8);
        1502  +
impl RangeByte {
        1503  +
    /// Returns an immutable reference to the underlying [`i8`].
        1504  +
    pub fn inner(&self) -> &i8 {
        1505  +
        &self.0
        1506  +
    }
        1507  +
        1508  +
    /// Consumes the value, returning the underlying [`i8`].
        1509  +
    pub fn into_inner(self) -> i8 {
        1510  +
        self.0
        1511  +
    }
        1512  +
}
        1513  +
        1514  +
impl crate::constrained::Constrained for RangeByte {
        1515  +
    type Unconstrained = i8;
        1516  +
}
        1517  +
        1518  +
impl ::std::convert::From<i8> for crate::constrained::MaybeConstrained<crate::model::RangeByte> {
        1519  +
    fn from(value: i8) -> Self {
        1520  +
        Self::Unconstrained(value)
        1521  +
    }
        1522  +
}
        1523  +
        1524  +
impl ::std::fmt::Display for RangeByte {
        1525  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1526  +
        self.0.fmt(f)
        1527  +
    }
        1528  +
}
        1529  +
        1530  +
impl ::std::convert::From<RangeByte> for i8 {
        1531  +
    fn from(value: RangeByte) -> Self {
        1532  +
        value.into_inner()
        1533  +
    }
        1534  +
}
        1535  +
impl RangeByte {
        1536  +
    fn check_range(
        1537  +
        value: i8,
        1538  +
    ) -> ::std::result::Result<(), crate::model::range_byte::ConstraintViolation> {
        1539  +
        if (0..=10).contains(&value) {
        1540  +
            Ok(())
        1541  +
        } else {
        1542  +
            Err(crate::model::range_byte::ConstraintViolation::Range(value))
        1543  +
        }
        1544  +
    }
        1545  +
}
        1546  +
impl ::std::convert::TryFrom<i8> for RangeByte {
        1547  +
    type Error = crate::model::range_byte::ConstraintViolation;
        1548  +
        1549  +
    /// Constructs a `RangeByte` from an [`i8`], failing when the provided value does not satisfy the modeled constraints.
        1550  +
    fn try_from(value: i8) -> ::std::result::Result<Self, Self::Error> {
        1551  +
        Self::check_range(value)?;
        1552  +
        1553  +
        Ok(Self(value))
        1554  +
    }
        1555  +
}
        1556  +
        1557  +
#[allow(missing_docs)] // documentation missing in model
        1558  +
///
        1559  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        1560  +
/// [constraint traits]. Use [`SetOfRangeByte::try_from`] to construct values of this type.
        1561  +
///
        1562  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        1563  +
///
        1564  +
#[derive(
        1565  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        1566  +
)]
        1567  +
pub struct SetOfRangeByte(pub(crate) ::std::vec::Vec<crate::model::RangeByte>);
        1568  +
impl SetOfRangeByte {
        1569  +
    /// Returns an immutable reference to the underlying [`::std::vec::Vec<crate::model::RangeByte>`].
        1570  +
    pub fn inner(&self) -> &::std::vec::Vec<crate::model::RangeByte> {
        1571  +
        &self.0
        1572  +
    }
        1573  +
    /// Consumes the value, returning the underlying [`::std::vec::Vec<crate::model::RangeByte>`].
        1574  +
    pub fn into_inner(self) -> ::std::vec::Vec<crate::model::RangeByte> {
        1575  +
        self.0
        1576  +
    }
        1577  +
        1578  +
    fn check_unique_items(
        1579  +
        items: ::std::vec::Vec<crate::model::RangeByte>,
        1580  +
    ) -> ::std::result::Result<
        1581  +
        ::std::vec::Vec<crate::model::RangeByte>,
        1582  +
        crate::model::set_of_range_byte::ConstraintViolation,
        1583  +
    > {
        1584  +
        let mut seen = ::std::collections::HashMap::new();
        1585  +
        let mut duplicate_indices = ::std::vec::Vec::new();
        1586  +
        for (idx, item) in items.iter().enumerate() {
        1587  +
            if let Some(prev_idx) = seen.insert(item, idx) {
        1588  +
                duplicate_indices.push(prev_idx);
        1589  +
            }
        1590  +
        }
        1591  +
        1592  +
        let mut last_duplicate_indices = ::std::vec::Vec::new();
        1593  +
        for idx in &duplicate_indices {
        1594  +
            if let Some(prev_idx) = seen.remove(&items[*idx]) {
        1595  +
                last_duplicate_indices.push(prev_idx);
        1596  +
            }
        1597  +
        }
        1598  +
        duplicate_indices.extend(last_duplicate_indices);
        1599  +
        1600  +
        if !duplicate_indices.is_empty() {
        1601  +
            debug_assert!(duplicate_indices.len() >= 2);
        1602  +
            Err(
        1603  +
                crate::model::set_of_range_byte::ConstraintViolation::UniqueItems {
        1604  +
                    duplicate_indices,
        1605  +
                    original: items,
        1606  +
                },
        1607  +
            )
        1608  +
        } else {
        1609  +
            Ok(items)
        1610  +
        }
        1611  +
    }
        1612  +
}
        1613  +
impl ::std::convert::TryFrom<::std::vec::Vec<crate::model::RangeByte>> for SetOfRangeByte {
        1614  +
    type Error = crate::model::set_of_range_byte::ConstraintViolation;
        1615  +
        1616  +
    /// Constructs a `SetOfRangeByte` from an [`::std::vec::Vec<crate::model::RangeByte>`], failing when the provided value does not satisfy the modeled constraints.
        1617  +
    fn try_from(
        1618  +
        value: ::std::vec::Vec<crate::model::RangeByte>,
        1619  +
    ) -> ::std::result::Result<Self, Self::Error> {
        1620  +
        let value = Self::check_unique_items(value)?;
        1621  +
        1622  +
        Ok(Self(value))
        1623  +
    }
        1624  +
}
        1625  +
        1626  +
impl ::std::convert::From<SetOfRangeByte> for ::std::vec::Vec<crate::model::RangeByte> {
        1627  +
    fn from(value: SetOfRangeByte) -> Self {
        1628  +
        value.into_inner()
        1629  +
    }
        1630  +
}
        1631  +
impl crate::constrained::Constrained for SetOfRangeByte {
        1632  +
    type Unconstrained =
        1633  +
        crate::unconstrained::set_of_range_byte_unconstrained::SetOfRangeByteUnconstrained;
        1634  +
}
        1635  +
        1636  +
#[allow(missing_docs)] // documentation missing in model
        1637  +
///
        1638  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        1639  +
/// [constraint traits]. Use [`RangeLong::try_from`] to construct values of this type.
        1640  +
///
        1641  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        1642  +
///
        1643  +
#[derive(
        1644  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        1645  +
)]
        1646  +
pub struct RangeLong(pub(crate) i64);
        1647  +
impl RangeLong {
        1648  +
    /// Returns an immutable reference to the underlying [`i64`].
        1649  +
    pub fn inner(&self) -> &i64 {
        1650  +
        &self.0
        1651  +
    }
        1652  +
        1653  +
    /// Consumes the value, returning the underlying [`i64`].
        1654  +
    pub fn into_inner(self) -> i64 {
        1655  +
        self.0
        1656  +
    }
        1657  +
}
        1658  +
        1659  +
impl crate::constrained::Constrained for RangeLong {
        1660  +
    type Unconstrained = i64;
        1661  +
}
        1662  +
        1663  +
impl ::std::convert::From<i64> for crate::constrained::MaybeConstrained<crate::model::RangeLong> {
        1664  +
    fn from(value: i64) -> Self {
        1665  +
        Self::Unconstrained(value)
        1666  +
    }
        1667  +
}
        1668  +
        1669  +
impl ::std::fmt::Display for RangeLong {
        1670  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1671  +
        self.0.fmt(f)
        1672  +
    }
        1673  +
}
        1674  +
        1675  +
impl ::std::convert::From<RangeLong> for i64 {
        1676  +
    fn from(value: RangeLong) -> Self {
        1677  +
        value.into_inner()
        1678  +
    }
        1679  +
}
        1680  +
impl RangeLong {
        1681  +
    fn check_range(
        1682  +
        value: i64,
        1683  +
    ) -> ::std::result::Result<(), crate::model::range_long::ConstraintViolation> {
        1684  +
        if (0..=10).contains(&value) {
        1685  +
            Ok(())
        1686  +
        } else {
        1687  +
            Err(crate::model::range_long::ConstraintViolation::Range(value))
        1688  +
        }
        1689  +
    }
        1690  +
}
        1691  +
impl ::std::convert::TryFrom<i64> for RangeLong {
        1692  +
    type Error = crate::model::range_long::ConstraintViolation;
        1693  +
        1694  +
    /// Constructs a `RangeLong` from an [`i64`], failing when the provided value does not satisfy the modeled constraints.
        1695  +
    fn try_from(value: i64) -> ::std::result::Result<Self, Self::Error> {
        1696  +
        Self::check_range(value)?;
        1697  +
        1698  +
        Ok(Self(value))
        1699  +
    }
        1700  +
}
        1701  +
        1702  +
#[allow(missing_docs)] // documentation missing in model
        1703  +
///
        1704  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        1705  +
/// [constraint traits]. Use [`SetOfRangeLong::try_from`] to construct values of this type.
        1706  +
///
        1707  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        1708  +
///
        1709  +
#[derive(
        1710  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        1711  +
)]
        1712  +
pub struct SetOfRangeLong(pub(crate) ::std::vec::Vec<crate::model::RangeLong>);
        1713  +
impl SetOfRangeLong {
        1714  +
    /// Returns an immutable reference to the underlying [`::std::vec::Vec<crate::model::RangeLong>`].
        1715  +
    pub fn inner(&self) -> &::std::vec::Vec<crate::model::RangeLong> {
        1716  +
        &self.0
        1717  +
    }
        1718  +
    /// Consumes the value, returning the underlying [`::std::vec::Vec<crate::model::RangeLong>`].
        1719  +
    pub fn into_inner(self) -> ::std::vec::Vec<crate::model::RangeLong> {
        1720  +
        self.0
        1721  +
    }
        1722  +
        1723  +
    fn check_unique_items(
        1724  +
        items: ::std::vec::Vec<crate::model::RangeLong>,
        1725  +
    ) -> ::std::result::Result<
        1726  +
        ::std::vec::Vec<crate::model::RangeLong>,
        1727  +
        crate::model::set_of_range_long::ConstraintViolation,
        1728  +
    > {
        1729  +
        let mut seen = ::std::collections::HashMap::new();
        1730  +
        let mut duplicate_indices = ::std::vec::Vec::new();
        1731  +
        for (idx, item) in items.iter().enumerate() {
        1732  +
            if let Some(prev_idx) = seen.insert(item, idx) {
        1733  +
                duplicate_indices.push(prev_idx);
        1734  +
            }
        1735  +
        }
        1736  +
        1737  +
        let mut last_duplicate_indices = ::std::vec::Vec::new();
        1738  +
        for idx in &duplicate_indices {
        1739  +
            if let Some(prev_idx) = seen.remove(&items[*idx]) {
        1740  +
                last_duplicate_indices.push(prev_idx);
        1741  +
            }
        1742  +
        }
        1743  +
        duplicate_indices.extend(last_duplicate_indices);
        1744  +
        1745  +
        if !duplicate_indices.is_empty() {
        1746  +
            debug_assert!(duplicate_indices.len() >= 2);
        1747  +
            Err(
        1748  +
                crate::model::set_of_range_long::ConstraintViolation::UniqueItems {
        1749  +
                    duplicate_indices,
        1750  +
                    original: items,
        1751  +
                },
        1752  +
            )
        1753  +
        } else {
        1754  +
            Ok(items)
        1755  +
        }
        1756  +
    }
        1757  +
}
        1758  +
impl ::std::convert::TryFrom<::std::vec::Vec<crate::model::RangeLong>> for SetOfRangeLong {
        1759  +
    type Error = crate::model::set_of_range_long::ConstraintViolation;
        1760  +
        1761  +
    /// Constructs a `SetOfRangeLong` from an [`::std::vec::Vec<crate::model::RangeLong>`], failing when the provided value does not satisfy the modeled constraints.
        1762  +
    fn try_from(
        1763  +
        value: ::std::vec::Vec<crate::model::RangeLong>,
        1764  +
    ) -> ::std::result::Result<Self, Self::Error> {
        1765  +
        let value = Self::check_unique_items(value)?;
        1766  +
        1767  +
        Ok(Self(value))
        1768  +
    }
        1769  +
}
        1770  +
        1771  +
impl ::std::convert::From<SetOfRangeLong> for ::std::vec::Vec<crate::model::RangeLong> {
        1772  +
    fn from(value: SetOfRangeLong) -> Self {
        1773  +
        value.into_inner()
        1774  +
    }
        1775  +
}
        1776  +
impl crate::constrained::Constrained for SetOfRangeLong {
        1777  +
    type Unconstrained =
        1778  +
        crate::unconstrained::set_of_range_long_unconstrained::SetOfRangeLongUnconstrained;
        1779  +
}
        1780  +
        1781  +
#[allow(missing_docs)] // documentation missing in model
        1782  +
///
        1783  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        1784  +
/// [constraint traits]. Use [`RangeShort::try_from`] to construct values of this type.
        1785  +
///
        1786  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        1787  +
///
        1788  +
#[derive(
        1789  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        1790  +
)]
        1791  +
pub struct RangeShort(pub(crate) i16);
        1792  +
impl RangeShort {
        1793  +
    /// Returns an immutable reference to the underlying [`i16`].
        1794  +
    pub fn inner(&self) -> &i16 {
        1795  +
        &self.0
        1796  +
    }
        1797  +
        1798  +
    /// Consumes the value, returning the underlying [`i16`].
        1799  +
    pub fn into_inner(self) -> i16 {
        1800  +
        self.0
        1801  +
    }
        1802  +
}
        1803  +
        1804  +
impl crate::constrained::Constrained for RangeShort {
        1805  +
    type Unconstrained = i16;
        1806  +
}
        1807  +
        1808  +
impl ::std::convert::From<i16> for crate::constrained::MaybeConstrained<crate::model::RangeShort> {
        1809  +
    fn from(value: i16) -> Self {
        1810  +
        Self::Unconstrained(value)
        1811  +
    }
        1812  +
}
        1813  +
        1814  +
impl ::std::fmt::Display for RangeShort {
        1815  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1816  +
        self.0.fmt(f)
        1817  +
    }
        1818  +
}
        1819  +
        1820  +
impl ::std::convert::From<RangeShort> for i16 {
        1821  +
    fn from(value: RangeShort) -> Self {
        1822  +
        value.into_inner()
        1823  +
    }
        1824  +
}
        1825  +
impl RangeShort {
        1826  +
    fn check_range(
        1827  +
        value: i16,
        1828  +
    ) -> ::std::result::Result<(), crate::model::range_short::ConstraintViolation> {
        1829  +
        if (0..=10).contains(&value) {
        1830  +
            Ok(())
        1831  +
        } else {
        1832  +
            Err(crate::model::range_short::ConstraintViolation::Range(value))
        1833  +
        }
        1834  +
    }
        1835  +
}
        1836  +
impl ::std::convert::TryFrom<i16> for RangeShort {
        1837  +
    type Error = crate::model::range_short::ConstraintViolation;
        1838  +
        1839  +
    /// Constructs a `RangeShort` from an [`i16`], failing when the provided value does not satisfy the modeled constraints.
        1840  +
    fn try_from(value: i16) -> ::std::result::Result<Self, Self::Error> {
        1841  +
        Self::check_range(value)?;
        1842  +
        1843  +
        Ok(Self(value))
        1844  +
    }
        1845  +
}
        1846  +
        1847  +
#[allow(missing_docs)] // documentation missing in model
        1848  +
///
        1849  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        1850  +
/// [constraint traits]. Use [`SetOfRangeShort::try_from`] to construct values of this type.
        1851  +
///
        1852  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        1853  +
///
        1854  +
#[derive(
        1855  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        1856  +
)]
        1857  +
pub struct SetOfRangeShort(pub(crate) ::std::vec::Vec<crate::model::RangeShort>);
        1858  +
impl SetOfRangeShort {
        1859  +
    /// Returns an immutable reference to the underlying [`::std::vec::Vec<crate::model::RangeShort>`].
        1860  +
    pub fn inner(&self) -> &::std::vec::Vec<crate::model::RangeShort> {
        1861  +
        &self.0
        1862  +
    }
        1863  +
    /// Consumes the value, returning the underlying [`::std::vec::Vec<crate::model::RangeShort>`].
        1864  +
    pub fn into_inner(self) -> ::std::vec::Vec<crate::model::RangeShort> {
        1865  +
        self.0
        1866  +
    }
        1867  +
        1868  +
    fn check_unique_items(
        1869  +
        items: ::std::vec::Vec<crate::model::RangeShort>,
        1870  +
    ) -> ::std::result::Result<
        1871  +
        ::std::vec::Vec<crate::model::RangeShort>,
        1872  +
        crate::model::set_of_range_short::ConstraintViolation,
        1873  +
    > {
        1874  +
        let mut seen = ::std::collections::HashMap::new();
        1875  +
        let mut duplicate_indices = ::std::vec::Vec::new();
        1876  +
        for (idx, item) in items.iter().enumerate() {
        1877  +
            if let Some(prev_idx) = seen.insert(item, idx) {
        1878  +
                duplicate_indices.push(prev_idx);
        1879  +
            }
        1880  +
        }
        1881  +
        1882  +
        let mut last_duplicate_indices = ::std::vec::Vec::new();
        1883  +
        for idx in &duplicate_indices {
        1884  +
            if let Some(prev_idx) = seen.remove(&items[*idx]) {
        1885  +
                last_duplicate_indices.push(prev_idx);
        1886  +
            }
        1887  +
        }
        1888  +
        duplicate_indices.extend(last_duplicate_indices);
        1889  +
        1890  +
        if !duplicate_indices.is_empty() {
        1891  +
            debug_assert!(duplicate_indices.len() >= 2);
        1892  +
            Err(
        1893  +
                crate::model::set_of_range_short::ConstraintViolation::UniqueItems {
        1894  +
                    duplicate_indices,
        1895  +
                    original: items,
        1896  +
                },
        1897  +
            )
        1898  +
        } else {
        1899  +
            Ok(items)
        1900  +
        }
        1901  +
    }
        1902  +
}
        1903  +
impl ::std::convert::TryFrom<::std::vec::Vec<crate::model::RangeShort>> for SetOfRangeShort {
        1904  +
    type Error = crate::model::set_of_range_short::ConstraintViolation;
        1905  +
        1906  +
    /// Constructs a `SetOfRangeShort` from an [`::std::vec::Vec<crate::model::RangeShort>`], failing when the provided value does not satisfy the modeled constraints.
        1907  +
    fn try_from(
        1908  +
        value: ::std::vec::Vec<crate::model::RangeShort>,
        1909  +
    ) -> ::std::result::Result<Self, Self::Error> {
        1910  +
        let value = Self::check_unique_items(value)?;
        1911  +
        1912  +
        Ok(Self(value))
        1913  +
    }
        1914  +
}
        1915  +
        1916  +
impl ::std::convert::From<SetOfRangeShort> for ::std::vec::Vec<crate::model::RangeShort> {
        1917  +
    fn from(value: SetOfRangeShort) -> Self {
        1918  +
        value.into_inner()
        1919  +
    }
        1920  +
}
        1921  +
impl crate::constrained::Constrained for SetOfRangeShort {
        1922  +
    type Unconstrained =
        1923  +
        crate::unconstrained::set_of_range_short_unconstrained::SetOfRangeShortUnconstrained;
        1924  +
}
        1925  +
        1926  +
#[allow(missing_docs)] // documentation missing in model
        1927  +
///
        1928  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        1929  +
/// [constraint traits]. Use [`RangeInteger::try_from`] to construct values of this type.
        1930  +
///
        1931  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        1932  +
///
        1933  +
#[derive(
        1934  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        1935  +
)]
        1936  +
pub struct RangeInteger(pub(crate) i32);
        1937  +
impl RangeInteger {
        1938  +
    /// Returns an immutable reference to the underlying [`i32`].
        1939  +
    pub fn inner(&self) -> &i32 {
        1940  +
        &self.0
        1941  +
    }
        1942  +
        1943  +
    /// Consumes the value, returning the underlying [`i32`].
        1944  +
    pub fn into_inner(self) -> i32 {
        1945  +
        self.0
        1946  +
    }
        1947  +
}
        1948  +
        1949  +
impl crate::constrained::Constrained for RangeInteger {
        1950  +
    type Unconstrained = i32;
        1951  +
}
        1952  +
        1953  +
impl ::std::convert::From<i32>
        1954  +
    for crate::constrained::MaybeConstrained<crate::model::RangeInteger>
        1955  +
{
        1956  +
    fn from(value: i32) -> Self {
        1957  +
        Self::Unconstrained(value)
        1958  +
    }
        1959  +
}
        1960  +
        1961  +
impl ::std::fmt::Display for RangeInteger {
        1962  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1963  +
        self.0.fmt(f)
        1964  +
    }
        1965  +
}
        1966  +
        1967  +
impl ::std::convert::From<RangeInteger> for i32 {
        1968  +
    fn from(value: RangeInteger) -> Self {
        1969  +
        value.into_inner()
        1970  +
    }
        1971  +
}
        1972  +
impl RangeInteger {
        1973  +
    fn check_range(
        1974  +
        value: i32,
        1975  +
    ) -> ::std::result::Result<(), crate::model::range_integer::ConstraintViolation> {
        1976  +
        if (0..=69).contains(&value) {
        1977  +
            Ok(())
        1978  +
        } else {
        1979  +
            Err(crate::model::range_integer::ConstraintViolation::Range(
        1980  +
                value,
        1981  +
            ))
        1982  +
        }
        1983  +
    }
        1984  +
}
        1985  +
impl ::std::convert::TryFrom<i32> for RangeInteger {
        1986  +
    type Error = crate::model::range_integer::ConstraintViolation;
        1987  +
        1988  +
    /// Constructs a `RangeInteger` from an [`i32`], failing when the provided value does not satisfy the modeled constraints.
        1989  +
    fn try_from(value: i32) -> ::std::result::Result<Self, Self::Error> {
        1990  +
        Self::check_range(value)?;
        1991  +
        1992  +
        Ok(Self(value))
        1993  +
    }
        1994  +
}
        1995  +
        1996  +
#[allow(missing_docs)] // documentation missing in model
        1997  +
///
        1998  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        1999  +
/// [constraint traits]. Use [`SetOfRangeInteger::try_from`] to construct values of this type.
        2000  +
///
        2001  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        2002  +
///
        2003  +
#[derive(
        2004  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        2005  +
)]
        2006  +
pub struct SetOfRangeInteger(pub(crate) ::std::vec::Vec<crate::model::RangeInteger>);
        2007  +
impl SetOfRangeInteger {
        2008  +
    /// Returns an immutable reference to the underlying [`::std::vec::Vec<crate::model::RangeInteger>`].
        2009  +
    pub fn inner(&self) -> &::std::vec::Vec<crate::model::RangeInteger> {
        2010  +
        &self.0
        2011  +
    }
        2012  +
    /// Consumes the value, returning the underlying [`::std::vec::Vec<crate::model::RangeInteger>`].
        2013  +
    pub fn into_inner(self) -> ::std::vec::Vec<crate::model::RangeInteger> {
        2014  +
        self.0
        2015  +
    }
        2016  +
        2017  +
    fn check_unique_items(
        2018  +
        items: ::std::vec::Vec<crate::model::RangeInteger>,
        2019  +
    ) -> ::std::result::Result<
        2020  +
        ::std::vec::Vec<crate::model::RangeInteger>,
        2021  +
        crate::model::set_of_range_integer::ConstraintViolation,
        2022  +
    > {
        2023  +
        let mut seen = ::std::collections::HashMap::new();
        2024  +
        let mut duplicate_indices = ::std::vec::Vec::new();
        2025  +
        for (idx, item) in items.iter().enumerate() {
        2026  +
            if let Some(prev_idx) = seen.insert(item, idx) {
        2027  +
                duplicate_indices.push(prev_idx);
        2028  +
            }
        2029  +
        }
        2030  +
        2031  +
        let mut last_duplicate_indices = ::std::vec::Vec::new();
        2032  +
        for idx in &duplicate_indices {
        2033  +
            if let Some(prev_idx) = seen.remove(&items[*idx]) {
        2034  +
                last_duplicate_indices.push(prev_idx);
        2035  +
            }
        2036  +
        }
        2037  +
        duplicate_indices.extend(last_duplicate_indices);
        2038  +
        2039  +
        if !duplicate_indices.is_empty() {
        2040  +
            debug_assert!(duplicate_indices.len() >= 2);
        2041  +
            Err(
        2042  +
                crate::model::set_of_range_integer::ConstraintViolation::UniqueItems {
        2043  +
                    duplicate_indices,
        2044  +
                    original: items,
        2045  +
                },
        2046  +
            )
        2047  +
        } else {
        2048  +
            Ok(items)
        2049  +
        }
        2050  +
    }
        2051  +
}
        2052  +
impl ::std::convert::TryFrom<::std::vec::Vec<crate::model::RangeInteger>> for SetOfRangeInteger {
        2053  +
    type Error = crate::model::set_of_range_integer::ConstraintViolation;
        2054  +
        2055  +
    /// Constructs a `SetOfRangeInteger` from an [`::std::vec::Vec<crate::model::RangeInteger>`], failing when the provided value does not satisfy the modeled constraints.
        2056  +
    fn try_from(
        2057  +
        value: ::std::vec::Vec<crate::model::RangeInteger>,
        2058  +
    ) -> ::std::result::Result<Self, Self::Error> {
        2059  +
        let value = Self::check_unique_items(value)?;
        2060  +
        2061  +
        Ok(Self(value))
        2062  +
    }
        2063  +
}
        2064  +
        2065  +
impl ::std::convert::From<SetOfRangeInteger> for ::std::vec::Vec<crate::model::RangeInteger> {
        2066  +
    fn from(value: SetOfRangeInteger) -> Self {
        2067  +
        value.into_inner()
        2068  +
    }
        2069  +
}
        2070  +
impl crate::constrained::Constrained for SetOfRangeInteger {
        2071  +
    type Unconstrained =
        2072  +
        crate::unconstrained::set_of_range_integer_unconstrained::SetOfRangeIntegerUnconstrained;
        2073  +
}
        2074  +
        2075  +
#[allow(missing_docs)] // documentation missing in model
        2076  +
///
        2077  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        2078  +
/// [constraint traits]. Use [`LengthBlob::try_from`] to construct values of this type.
        2079  +
///
        2080  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        2081  +
///
        2082  +
#[derive(
        2083  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        2084  +
)]
        2085  +
pub struct LengthBlob(pub(crate) ::aws_smithy_types::Blob);
        2086  +
impl LengthBlob {
        2087  +
    /// Returns an immutable reference to the underlying [`::aws_smithy_types::Blob`].
        2088  +
    pub fn inner(&self) -> &::aws_smithy_types::Blob {
        2089  +
        &self.0
        2090  +
    }
        2091  +
    /// Consumes the value, returning the underlying [`::aws_smithy_types::Blob`].
        2092  +
    pub fn into_inner(self) -> ::aws_smithy_types::Blob {
        2093  +
        self.0
        2094  +
    }
        2095  +
}
        2096  +
impl LengthBlob {
        2097  +
    fn check_length(
        2098  +
        blob: &::aws_smithy_types::Blob,
        2099  +
    ) -> ::std::result::Result<(), crate::model::length_blob::ConstraintViolation> {
        2100  +
        let length = blob.as_ref().len();
        2101  +
        2102  +
        if (2..=70).contains(&length) {
        2103  +
            Ok(())
        2104  +
        } else {
        2105  +
            Err(crate::model::length_blob::ConstraintViolation::Length(
        2106  +
                length,
        2107  +
            ))
        2108  +
        }
        2109  +
    }
        2110  +
}
        2111  +
impl ::std::convert::TryFrom<::aws_smithy_types::Blob> for LengthBlob {
        2112  +
    type Error = crate::model::length_blob::ConstraintViolation;
        2113  +
        2114  +
    /// Constructs a `LengthBlob` from an [`::aws_smithy_types::Blob`], failing when the provided value does not satisfy the modeled constraints.
        2115  +
    fn try_from(value: ::aws_smithy_types::Blob) -> ::std::result::Result<Self, Self::Error> {
        2116  +
        Self::check_length(&value)?;
        2117  +
        2118  +
        Ok(Self(value))
        2119  +
    }
        2120  +
}
        2121  +
impl crate::constrained::Constrained for LengthBlob {
        2122  +
    type Unconstrained = ::aws_smithy_types::Blob;
        2123  +
}
        2124  +
        2125  +
impl ::std::convert::From<::aws_smithy_types::Blob>
        2126  +
    for crate::constrained::MaybeConstrained<crate::model::LengthBlob>
        2127  +
{
        2128  +
    fn from(value: ::aws_smithy_types::Blob) -> Self {
        2129  +
        Self::Unconstrained(value)
        2130  +
    }
        2131  +
}
        2132  +
        2133  +
impl ::std::convert::From<LengthBlob> for ::aws_smithy_types::Blob {
        2134  +
    fn from(value: LengthBlob) -> Self {
        2135  +
        value.into_inner()
        2136  +
    }
        2137  +
}
        2138  +
        2139  +
/// A union with constrained members.
        2140  +
#[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
        2141  +
pub enum ConstrainedUnion {
        2142  +
    #[allow(missing_docs)] // documentation missing in model
        2143  +
    ConBList(::std::vec::Vec<::std::vec::Vec<crate::model::ConB>>),
        2144  +
    #[allow(missing_docs)] // documentation missing in model
        2145  +
    ConBMap(crate::model::ConBMap),
        2146  +
    #[allow(missing_docs)] // documentation missing in model
        2147  +
    ConBSet(crate::model::ConBSet),
        2148  +
    #[allow(missing_docs)] // documentation missing in model
        2149  +
    ConstrainedStructure(crate::model::ConB),
        2150  +
    #[allow(missing_docs)] // documentation missing in model
        2151  +
    EnumString(crate::model::EnumString),
        2152  +
    #[allow(missing_docs)] // documentation missing in model
        2153  +
    LengthString(crate::model::LengthString),
        2154  +
}
        2155  +
impl ConstrainedUnion {
        2156  +
    /// Tries to convert the enum instance into [`ConBList`](crate::model::ConstrainedUnion::ConBList), extracting the inner [`Vec`](::std::vec::Vec).
        2157  +
    /// Returns `Err(&Self)` if it can't be converted.
        2158  +
    pub fn as_con_b_list(
        2159  +
        &self,
        2160  +
    ) -> ::std::result::Result<&::std::vec::Vec<::std::vec::Vec<crate::model::ConB>>, &Self> {
        2161  +
        if let ConstrainedUnion::ConBList(val) = &self {
        2162  +
            ::std::result::Result::Ok(val)
        2163  +
        } else {
        2164  +
            ::std::result::Result::Err(self)
        2165  +
        }
        2166  +
    }
        2167  +
    /// Returns true if this is a [`ConBList`](crate::model::ConstrainedUnion::ConBList).
        2168  +
    pub fn is_con_b_list(&self) -> bool {
        2169  +
        self.as_con_b_list().is_ok()
        2170  +
    }
        2171  +
    /// Tries to convert the enum instance into [`ConBMap`](crate::model::ConstrainedUnion::ConBMap), extracting the inner [`ConBMap`](crate::model::ConBMap).
        2172  +
    /// Returns `Err(&Self)` if it can't be converted.
        2173  +
    pub fn as_con_b_map(&self) -> ::std::result::Result<&crate::model::ConBMap, &Self> {
        2174  +
        if let ConstrainedUnion::ConBMap(val) = &self {
        2175  +
            ::std::result::Result::Ok(val)
        2176  +
        } else {
        2177  +
            ::std::result::Result::Err(self)
        2178  +
        }
        2179  +
    }
        2180  +
    /// Returns true if this is a [`ConBMap`](crate::model::ConstrainedUnion::ConBMap).
        2181  +
    pub fn is_con_b_map(&self) -> bool {
        2182  +
        self.as_con_b_map().is_ok()
        2183  +
    }
        2184  +
    /// Tries to convert the enum instance into [`ConBSet`](crate::model::ConstrainedUnion::ConBSet), extracting the inner [`ConBSet`](crate::model::ConBSet).
        2185  +
    /// Returns `Err(&Self)` if it can't be converted.
        2186  +
    pub fn as_con_b_set(&self) -> ::std::result::Result<&crate::model::ConBSet, &Self> {
        2187  +
        if let ConstrainedUnion::ConBSet(val) = &self {
        2188  +
            ::std::result::Result::Ok(val)
        2189  +
        } else {
        2190  +
            ::std::result::Result::Err(self)
        2191  +
        }
        2192  +
    }
        2193  +
    /// Returns true if this is a [`ConBSet`](crate::model::ConstrainedUnion::ConBSet).
        2194  +
    pub fn is_con_b_set(&self) -> bool {
        2195  +
        self.as_con_b_set().is_ok()
        2196  +
    }
        2197  +
    /// Tries to convert the enum instance into [`ConstrainedStructure`](crate::model::ConstrainedUnion::ConstrainedStructure), extracting the inner [`ConB`](crate::model::ConB).
        2198  +
    /// Returns `Err(&Self)` if it can't be converted.
        2199  +
    pub fn as_constrained_structure(&self) -> ::std::result::Result<&crate::model::ConB, &Self> {
        2200  +
        if let ConstrainedUnion::ConstrainedStructure(val) = &self {
        2201  +
            ::std::result::Result::Ok(val)
        2202  +
        } else {
        2203  +
            ::std::result::Result::Err(self)
        2204  +
        }
        2205  +
    }
        2206  +
    /// Returns true if this is a [`ConstrainedStructure`](crate::model::ConstrainedUnion::ConstrainedStructure).
        2207  +
    pub fn is_constrained_structure(&self) -> bool {
        2208  +
        self.as_constrained_structure().is_ok()
        2209  +
    }
        2210  +
    /// Tries to convert the enum instance into [`EnumString`](crate::model::ConstrainedUnion::EnumString), extracting the inner [`EnumString`](crate::model::EnumString).
        2211  +
    /// Returns `Err(&Self)` if it can't be converted.
        2212  +
    pub fn as_enum_string(&self) -> ::std::result::Result<&crate::model::EnumString, &Self> {
        2213  +
        if let ConstrainedUnion::EnumString(val) = &self {
        2214  +
            ::std::result::Result::Ok(val)
        2215  +
        } else {
        2216  +
            ::std::result::Result::Err(self)
        2217  +
        }
        2218  +
    }
        2219  +
    /// Returns true if this is a [`EnumString`](crate::model::ConstrainedUnion::EnumString).
        2220  +
    pub fn is_enum_string(&self) -> bool {
        2221  +
        self.as_enum_string().is_ok()
        2222  +
    }
        2223  +
    /// Tries to convert the enum instance into [`LengthString`](crate::model::ConstrainedUnion::LengthString), extracting the inner [`LengthString`](crate::model::LengthString).
        2224  +
    /// Returns `Err(&Self)` if it can't be converted.
        2225  +
    pub fn as_length_string(&self) -> ::std::result::Result<&crate::model::LengthString, &Self> {
        2226  +
        if let ConstrainedUnion::LengthString(val) = &self {
        2227  +
            ::std::result::Result::Ok(val)
        2228  +
        } else {
        2229  +
            ::std::result::Result::Err(self)
        2230  +
        }
        2231  +
    }
        2232  +
    /// Returns true if this is a [`LengthString`](crate::model::ConstrainedUnion::LengthString).
        2233  +
    pub fn is_length_string(&self) -> bool {
        2234  +
        self.as_length_string().is_ok()
        2235  +
    }
        2236  +
}
        2237  +
        2238  +
#[allow(missing_docs)] // documentation missing in model
        2239  +
///
        2240  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        2241  +
/// [constraint traits]. Use [`ConBSet::try_from`] to construct values of this type.
        2242  +
///
        2243  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        2244  +
///
        2245  +
#[derive(
        2246  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        2247  +
)]
        2248  +
pub struct ConBSet(pub(crate) ::std::vec::Vec<crate::model::ConBSetInner>);
        2249  +
impl ConBSet {
        2250  +
    /// Returns an immutable reference to the underlying [`::std::vec::Vec<crate::model::ConBSetInner>`].
        2251  +
    pub fn inner(&self) -> &::std::vec::Vec<crate::model::ConBSetInner> {
        2252  +
        &self.0
        2253  +
    }
        2254  +
    /// Consumes the value, returning the underlying [`::std::vec::Vec<crate::model::ConBSetInner>`].
        2255  +
    pub fn into_inner(self) -> ::std::vec::Vec<crate::model::ConBSetInner> {
        2256  +
        self.0
        2257  +
    }
        2258  +
        2259  +
    fn check_unique_items(
        2260  +
        items: ::std::vec::Vec<crate::model::ConBSetInner>,
        2261  +
    ) -> ::std::result::Result<
        2262  +
        ::std::vec::Vec<crate::model::ConBSetInner>,
        2263  +
        crate::model::con_b_set::ConstraintViolation,
        2264  +
    > {
        2265  +
        let mut seen = ::std::collections::HashMap::new();
        2266  +
        let mut duplicate_indices = ::std::vec::Vec::new();
        2267  +
        for (idx, item) in items.iter().enumerate() {
        2268  +
            if let Some(prev_idx) = seen.insert(item, idx) {
        2269  +
                duplicate_indices.push(prev_idx);
        2270  +
            }
        2271  +
        }
        2272  +
        2273  +
        let mut last_duplicate_indices = ::std::vec::Vec::new();
        2274  +
        for idx in &duplicate_indices {
        2275  +
            if let Some(prev_idx) = seen.remove(&items[*idx]) {
        2276  +
                last_duplicate_indices.push(prev_idx);
        2277  +
            }
        2278  +
        }
        2279  +
        duplicate_indices.extend(last_duplicate_indices);
        2280  +
        2281  +
        if !duplicate_indices.is_empty() {
        2282  +
            debug_assert!(duplicate_indices.len() >= 2);
        2283  +
            Err(crate::model::con_b_set::ConstraintViolation::UniqueItems {
        2284  +
                duplicate_indices,
        2285  +
                original: items,
        2286  +
            })
        2287  +
        } else {
        2288  +
            Ok(items)
        2289  +
        }
        2290  +
    }
        2291  +
}
        2292  +
impl ::std::convert::TryFrom<::std::vec::Vec<crate::model::ConBSetInner>> for ConBSet {
        2293  +
    type Error = crate::model::con_b_set::ConstraintViolation;
        2294  +
        2295  +
    /// Constructs a `ConBSet` from an [`::std::vec::Vec<crate::model::ConBSetInner>`], failing when the provided value does not satisfy the modeled constraints.
        2296  +
    fn try_from(
        2297  +
        value: ::std::vec::Vec<crate::model::ConBSetInner>,
        2298  +
    ) -> ::std::result::Result<Self, Self::Error> {
        2299  +
        let value = Self::check_unique_items(value)?;
        2300  +
        2301  +
        Ok(Self(value))
        2302  +
    }
        2303  +
}
        2304  +
        2305  +
impl ::std::convert::From<ConBSet> for ::std::vec::Vec<crate::model::ConBSetInner> {
        2306  +
    fn from(value: ConBSet) -> Self {
        2307  +
        value.into_inner()
        2308  +
    }
        2309  +
}
        2310  +
impl crate::constrained::Constrained for ConBSet {
        2311  +
    type Unconstrained = crate::unconstrained::con_b_set_unconstrained::ConBSetUnconstrained;
        2312  +
}
        2313  +
        2314  +
#[allow(missing_docs)] // documentation missing in model
        2315  +
///
        2316  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        2317  +
/// [constraint traits]. Use [`ConBSetInner::try_from`] to construct values of this type.
        2318  +
///
        2319  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        2320  +
///
        2321  +
#[derive(
        2322  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        2323  +
)]
        2324  +
pub struct ConBSetInner(pub(crate) ::std::vec::Vec<::std::string::String>);
        2325  +
impl ConBSetInner {
        2326  +
    /// Returns an immutable reference to the underlying [`::std::vec::Vec<::std::string::String>`].
        2327  +
    pub fn inner(&self) -> &::std::vec::Vec<::std::string::String> {
        2328  +
        &self.0
        2329  +
    }
        2330  +
    /// Consumes the value, returning the underlying [`::std::vec::Vec<::std::string::String>`].
        2331  +
    pub fn into_inner(self) -> ::std::vec::Vec<::std::string::String> {
        2332  +
        self.0
        2333  +
    }
        2334  +
        2335  +
    fn check_unique_items(
        2336  +
        items: ::std::vec::Vec<::std::string::String>,
        2337  +
    ) -> ::std::result::Result<
        2338  +
        ::std::vec::Vec<::std::string::String>,
        2339  +
        crate::model::con_b_set_inner::ConstraintViolation,
        2340  +
    > {
        2341  +
        let mut seen = ::std::collections::HashMap::new();
        2342  +
        let mut duplicate_indices = ::std::vec::Vec::new();
        2343  +
        for (idx, item) in items.iter().enumerate() {
        2344  +
            if let Some(prev_idx) = seen.insert(item, idx) {
        2345  +
                duplicate_indices.push(prev_idx);
        2346  +
            }
        2347  +
        }
        2348  +
        2349  +
        let mut last_duplicate_indices = ::std::vec::Vec::new();
        2350  +
        for idx in &duplicate_indices {
        2351  +
            if let Some(prev_idx) = seen.remove(&items[*idx]) {
        2352  +
                last_duplicate_indices.push(prev_idx);
        2353  +
            }
        2354  +
        }
        2355  +
        duplicate_indices.extend(last_duplicate_indices);
        2356  +
        2357  +
        if !duplicate_indices.is_empty() {
        2358  +
            debug_assert!(duplicate_indices.len() >= 2);
        2359  +
            Err(
        2360  +
                crate::model::con_b_set_inner::ConstraintViolation::UniqueItems {
        2361  +
                    duplicate_indices,
        2362  +
                    original: items,
        2363  +
                },
        2364  +
            )
        2365  +
        } else {
        2366  +
            Ok(items)
        2367  +
        }
        2368  +
    }
        2369  +
}
        2370  +
impl ::std::convert::TryFrom<::std::vec::Vec<::std::string::String>> for ConBSetInner {
        2371  +
    type Error = crate::model::con_b_set_inner::ConstraintViolation;
        2372  +
        2373  +
    /// Constructs a `ConBSetInner` from an [`::std::vec::Vec<::std::string::String>`], failing when the provided value does not satisfy the modeled constraints.
        2374  +
    fn try_from(
        2375  +
        value: ::std::vec::Vec<::std::string::String>,
        2376  +
    ) -> ::std::result::Result<Self, Self::Error> {
        2377  +
        let value = Self::check_unique_items(value)?;
        2378  +
        2379  +
        Ok(Self(value))
        2380  +
    }
        2381  +
}
        2382  +
        2383  +
impl ::std::convert::From<ConBSetInner> for ::std::vec::Vec<::std::string::String> {
        2384  +
    fn from(value: ConBSetInner) -> Self {
        2385  +
        value.into_inner()
        2386  +
    }
        2387  +
}
        2388  +
impl crate::constrained::Constrained for ConBSetInner {
        2389  +
    type Unconstrained =
        2390  +
        crate::unconstrained::con_b_set_inner_unconstrained::ConBSetInnerUnconstrained;
        2391  +
}
        2392  +
        2393  +
#[allow(missing_docs)] // documentation missing in model
        2394  +
#[derive(
        2395  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        2396  +
)]
        2397  +
pub struct ConB {
        2398  +
    #[allow(missing_docs)] // documentation missing in model
        2399  +
    pub nice: ::std::string::String,
        2400  +
    #[allow(missing_docs)] // documentation missing in model
        2401  +
    pub int: i32,
        2402  +
    #[allow(missing_docs)] // documentation missing in model
        2403  +
    pub opt_nice: ::std::option::Option<::std::string::String>,
        2404  +
    #[allow(missing_docs)] // documentation missing in model
        2405  +
    pub opt_int: ::std::option::Option<i32>,
        2406  +
}
        2407  +
impl ConB {
        2408  +
    #[allow(missing_docs)] // documentation missing in model
        2409  +
    pub fn nice(&self) -> &str {
        2410  +
        use std::ops::Deref;
        2411  +
        self.nice.deref()
        2412  +
    }
        2413  +
    #[allow(missing_docs)] // documentation missing in model
        2414  +
    pub fn int(&self) -> i32 {
        2415  +
        self.int
        2416  +
    }
        2417  +
    #[allow(missing_docs)] // documentation missing in model
        2418  +
    pub fn opt_nice(&self) -> ::std::option::Option<&str> {
        2419  +
        self.opt_nice.as_deref()
        2420  +
    }
        2421  +
    #[allow(missing_docs)] // documentation missing in model
        2422  +
    pub fn opt_int(&self) -> ::std::option::Option<i32> {
        2423  +
        self.opt_int
        2424  +
    }
        2425  +
}
        2426  +
impl ConB {
        2427  +
    /// Creates a new builder-style object to manufacture [`ConB`](crate::model::ConB).
        2428  +
    pub fn builder() -> crate::model::con_b::Builder {
        2429  +
        crate::model::con_b::Builder::default()
        2430  +
    }
        2431  +
}
        2432  +
impl crate::constrained::Constrained for crate::model::ConB {
        2433  +
    type Unconstrained = crate::model::con_b::Builder;
        2434  +
}
        2435  +
        2436  +
#[allow(missing_docs)] // documentation missing in model
        2437  +
///
        2438  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        2439  +
/// [constraint traits]. Use [`SparseLengthList::try_from`] to construct values of this type.
        2440  +
///
        2441  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        2442  +
///
        2443  +
#[derive(
        2444  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        2445  +
)]
        2446  +
pub struct SparseLengthList(
        2447  +
    pub(crate) ::std::vec::Vec<::std::option::Option<::std::string::String>>,
        2448  +
);
        2449  +
impl SparseLengthList {
        2450  +
    /// Returns an immutable reference to the underlying [`::std::vec::Vec<::std::option::Option<::std::string::String>>`].
        2451  +
    pub fn inner(&self) -> &::std::vec::Vec<::std::option::Option<::std::string::String>> {
        2452  +
        &self.0
        2453  +
    }
        2454  +
    /// Consumes the value, returning the underlying [`::std::vec::Vec<::std::option::Option<::std::string::String>>`].
        2455  +
    pub fn into_inner(self) -> ::std::vec::Vec<::std::option::Option<::std::string::String>> {
        2456  +
        self.0
        2457  +
    }
        2458  +
        2459  +
    fn check_length(
        2460  +
        length: usize,
        2461  +
    ) -> ::std::result::Result<(), crate::model::sparse_length_list::ConstraintViolation> {
        2462  +
        if 69 <= length {
        2463  +
            Ok(())
        2464  +
        } else {
        2465  +
            Err(crate::model::sparse_length_list::ConstraintViolation::Length(length))
        2466  +
        }
        2467  +
    }
        2468  +
}
        2469  +
impl ::std::convert::TryFrom<::std::vec::Vec<::std::option::Option<::std::string::String>>>
        2470  +
    for SparseLengthList
        2471  +
{
        2472  +
    type Error = crate::model::sparse_length_list::ConstraintViolation;
        2473  +
        2474  +
    /// Constructs a `SparseLengthList` from an [`::std::vec::Vec<::std::option::Option<::std::string::String>>`], failing when the provided value does not satisfy the modeled constraints.
        2475  +
    fn try_from(
        2476  +
        value: ::std::vec::Vec<::std::option::Option<::std::string::String>>,
        2477  +
    ) -> ::std::result::Result<Self, Self::Error> {
        2478  +
        Self::check_length(value.len())?;
        2479  +
        2480  +
        Ok(Self(value))
        2481  +
    }
        2482  +
}
        2483  +
        2484  +
impl ::std::convert::From<SparseLengthList>
        2485  +
    for ::std::vec::Vec<::std::option::Option<::std::string::String>>
        2486  +
{
        2487  +
    fn from(value: SparseLengthList) -> Self {
        2488  +
        value.into_inner()
        2489  +
    }
        2490  +
}
        2491  +
impl crate::constrained::Constrained for SparseLengthList {
        2492  +
    type Unconstrained =
        2493  +
        crate::unconstrained::sparse_length_list_unconstrained::SparseLengthListUnconstrained;
        2494  +
}
        2495  +
        2496  +
#[allow(missing_docs)] // documentation missing in model
        2497  +
///
        2498  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        2499  +
/// [constraint traits]. Use [`SparseLengthMap::try_from`] to construct values of this type.
        2500  +
///
        2501  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        2502  +
///
        2503  +
#[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
        2504  +
pub struct SparseLengthMap(
        2505  +
    pub(crate)  ::std::collections::HashMap<
        2506  +
        ::std::string::String,
        2507  +
        ::std::option::Option<::std::string::String>,
        2508  +
    >,
        2509  +
);
        2510  +
impl SparseLengthMap {
        2511  +
    /// Returns an immutable reference to the underlying [`::std::collections::HashMap<::std::string::String, ::std::option::Option<::std::string::String>>`].
        2512  +
    pub fn inner(
        2513  +
        &self,
        2514  +
    ) -> &::std::collections::HashMap<
        2515  +
        ::std::string::String,
        2516  +
        ::std::option::Option<::std::string::String>,
        2517  +
    > {
        2518  +
        &self.0
        2519  +
    }
        2520  +
    /// Consumes the value, returning the underlying [`::std::collections::HashMap<::std::string::String, ::std::option::Option<::std::string::String>>`].
        2521  +
    pub fn into_inner(
        2522  +
        self,
        2523  +
    ) -> ::std::collections::HashMap<
        2524  +
        ::std::string::String,
        2525  +
        ::std::option::Option<::std::string::String>,
        2526  +
    > {
        2527  +
        self.0
        2528  +
    }
        2529  +
}
        2530  +
impl
        2531  +
    ::std::convert::TryFrom<
        2532  +
        ::std::collections::HashMap<
        2533  +
            ::std::string::String,
        2534  +
            ::std::option::Option<::std::string::String>,
        2535  +
        >,
        2536  +
    > for SparseLengthMap
        2537  +
{
        2538  +
    type Error = crate::model::sparse_length_map::ConstraintViolation;
        2539  +
        2540  +
    /// Constructs a `SparseLengthMap` from an [`::std::collections::HashMap<::std::string::String, ::std::option::Option<::std::string::String>>`], failing when the provided value does not satisfy the modeled constraints.
        2541  +
    fn try_from(
        2542  +
        value: ::std::collections::HashMap<
        2543  +
            ::std::string::String,
        2544  +
            ::std::option::Option<::std::string::String>,
        2545  +
        >,
        2546  +
    ) -> ::std::result::Result<Self, Self::Error> {
        2547  +
        let length = value.len();
        2548  +
        if 69 <= length {
        2549  +
            Ok(Self(value))
        2550  +
        } else {
        2551  +
            Err(crate::model::sparse_length_map::ConstraintViolation::Length(length))
        2552  +
        }
        2553  +
    }
        2554  +
}
        2555  +
        2556  +
impl ::std::convert::From<SparseLengthMap>
        2557  +
    for ::std::collections::HashMap<
        2558  +
        ::std::string::String,
        2559  +
        ::std::option::Option<::std::string::String>,
        2560  +
    >
        2561  +
{
        2562  +
    fn from(value: SparseLengthMap) -> Self {
        2563  +
        value.into_inner()
        2564  +
    }
        2565  +
}
        2566  +
impl crate::constrained::Constrained for SparseLengthMap {
        2567  +
    type Unconstrained =
        2568  +
        crate::unconstrained::sparse_length_map_unconstrained::SparseLengthMapUnconstrained;
        2569  +
}
        2570  +
        2571  +
#[allow(missing_docs)] // documentation missing in model
        2572  +
///
        2573  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        2574  +
/// [constraint traits]. Use [`UniqueItemsList::try_from`] to construct values of this type.
        2575  +
///
        2576  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        2577  +
///
        2578  +
#[derive(
        2579  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        2580  +
)]
        2581  +
pub struct UniqueItemsList(pub(crate) ::std::vec::Vec<::std::string::String>);
        2582  +
impl UniqueItemsList {
        2583  +
    /// Returns an immutable reference to the underlying [`::std::vec::Vec<::std::string::String>`].
        2584  +
    pub fn inner(&self) -> &::std::vec::Vec<::std::string::String> {
        2585  +
        &self.0
        2586  +
    }
        2587  +
    /// Consumes the value, returning the underlying [`::std::vec::Vec<::std::string::String>`].
        2588  +
    pub fn into_inner(self) -> ::std::vec::Vec<::std::string::String> {
        2589  +
        self.0
        2590  +
    }
        2591  +
        2592  +
    fn check_unique_items(
        2593  +
        items: ::std::vec::Vec<::std::string::String>,
        2594  +
    ) -> ::std::result::Result<
        2595  +
        ::std::vec::Vec<::std::string::String>,
        2596  +
        crate::model::unique_items_list::ConstraintViolation,
        2597  +
    > {
        2598  +
        let mut seen = ::std::collections::HashMap::new();
        2599  +
        let mut duplicate_indices = ::std::vec::Vec::new();
        2600  +
        for (idx, item) in items.iter().enumerate() {
        2601  +
            if let Some(prev_idx) = seen.insert(item, idx) {
        2602  +
                duplicate_indices.push(prev_idx);
        2603  +
            }
        2604  +
        }
        2605  +
        2606  +
        let mut last_duplicate_indices = ::std::vec::Vec::new();
        2607  +
        for idx in &duplicate_indices {
        2608  +
            if let Some(prev_idx) = seen.remove(&items[*idx]) {
        2609  +
                last_duplicate_indices.push(prev_idx);
        2610  +
            }
        2611  +
        }
        2612  +
        duplicate_indices.extend(last_duplicate_indices);
        2613  +
        2614  +
        if !duplicate_indices.is_empty() {
        2615  +
            debug_assert!(duplicate_indices.len() >= 2);
        2616  +
            Err(
        2617  +
                crate::model::unique_items_list::ConstraintViolation::UniqueItems {
        2618  +
                    duplicate_indices,
        2619  +
                    original: items,
        2620  +
                },
        2621  +
            )
        2622  +
        } else {
        2623  +
            Ok(items)
        2624  +
        }
        2625  +
    }
        2626  +
}
        2627  +
impl ::std::convert::TryFrom<::std::vec::Vec<::std::string::String>> for UniqueItemsList {
        2628  +
    type Error = crate::model::unique_items_list::ConstraintViolation;
        2629  +
        2630  +
    /// Constructs a `UniqueItemsList` from an [`::std::vec::Vec<::std::string::String>`], failing when the provided value does not satisfy the modeled constraints.
        2631  +
    fn try_from(
        2632  +
        value: ::std::vec::Vec<::std::string::String>,
        2633  +
    ) -> ::std::result::Result<Self, Self::Error> {
        2634  +
        let value = Self::check_unique_items(value)?;
        2635  +
        2636  +
        Ok(Self(value))
        2637  +
    }
        2638  +
}
        2639  +
        2640  +
impl ::std::convert::From<UniqueItemsList> for ::std::vec::Vec<::std::string::String> {
        2641  +
    fn from(value: UniqueItemsList) -> Self {
        2642  +
        value.into_inner()
        2643  +
    }
        2644  +
}
        2645  +
impl crate::constrained::Constrained for UniqueItemsList {
        2646  +
    type Unconstrained =
        2647  +
        crate::unconstrained::unique_items_list_unconstrained::UniqueItemsListUnconstrained;
        2648  +
}
        2649  +
        2650  +
#[allow(missing_docs)] // documentation missing in model
        2651  +
///
        2652  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        2653  +
/// [constraint traits]. Use [`LengthMap::try_from`] to construct values of this type.
        2654  +
///
        2655  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        2656  +
///
        2657  +
#[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
        2658  +
pub struct LengthMap(
        2659  +
    pub(crate) ::std::collections::HashMap<::std::string::String, ::std::string::String>,
        2660  +
);
        2661  +
impl LengthMap {
        2662  +
    /// Returns an immutable reference to the underlying [`::std::collections::HashMap<::std::string::String, ::std::string::String>`].
        2663  +
    pub fn inner(
        2664  +
        &self,
        2665  +
    ) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> {
        2666  +
        &self.0
        2667  +
    }
        2668  +
    /// Consumes the value, returning the underlying [`::std::collections::HashMap<::std::string::String, ::std::string::String>`].
        2669  +
    pub fn into_inner(
        2670  +
        self,
        2671  +
    ) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> {
        2672  +
        self.0
        2673  +
    }
        2674  +
}
        2675  +
impl
        2676  +
    ::std::convert::TryFrom<
        2677  +
        ::std::collections::HashMap<::std::string::String, ::std::string::String>,
        2678  +
    > for LengthMap
        2679  +
{
        2680  +
    type Error = crate::model::length_map::ConstraintViolation;
        2681  +
        2682  +
    /// Constructs a `LengthMap` from an [`::std::collections::HashMap<::std::string::String, ::std::string::String>`], failing when the provided value does not satisfy the modeled constraints.
        2683  +
    fn try_from(
        2684  +
        value: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
        2685  +
    ) -> ::std::result::Result<Self, Self::Error> {
        2686  +
        let length = value.len();
        2687  +
        if (1..=69).contains(&length) {
        2688  +
            Ok(Self(value))
        2689  +
        } else {
        2690  +
            Err(crate::model::length_map::ConstraintViolation::Length(
        2691  +
                length,
        2692  +
            ))
        2693  +
        }
        2694  +
    }
        2695  +
}
        2696  +
        2697  +
impl ::std::convert::From<LengthMap>
        2698  +
    for ::std::collections::HashMap<::std::string::String, ::std::string::String>
        2699  +
{
        2700  +
    fn from(value: LengthMap) -> Self {
        2701  +
        value.into_inner()
        2702  +
    }
        2703  +
}
        2704  +
impl crate::constrained::Constrained for LengthMap {
        2705  +
    type Unconstrained = crate::unconstrained::length_map_unconstrained::LengthMapUnconstrained;
        2706  +
}
        2707  +
        2708  +
#[allow(missing_docs)] // documentation missing in model
        2709  +
///
        2710  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        2711  +
/// [constraint traits]. Use [`SensitiveLengthList::try_from`] to construct values of this type.
        2712  +
///
        2713  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        2714  +
///
        2715  +
#[derive(
        2716  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        2717  +
)]
        2718  +
pub struct SensitiveLengthList(pub(crate) ::std::vec::Vec<crate::model::SensitiveStructure>);
        2719  +
impl SensitiveLengthList {
        2720  +
    /// Returns an immutable reference to the underlying [`::std::vec::Vec<crate::model::SensitiveStructure>`].
        2721  +
    pub fn inner(&self) -> &::std::vec::Vec<crate::model::SensitiveStructure> {
        2722  +
        &self.0
        2723  +
    }
        2724  +
    /// Consumes the value, returning the underlying [`::std::vec::Vec<crate::model::SensitiveStructure>`].
        2725  +
    pub fn into_inner(self) -> ::std::vec::Vec<crate::model::SensitiveStructure> {
        2726  +
        self.0
        2727  +
    }
        2728  +
        2729  +
    fn check_length(
        2730  +
        length: usize,
        2731  +
    ) -> ::std::result::Result<(), crate::model::sensitive_length_list::ConstraintViolation> {
        2732  +
        if length <= 69 {
        2733  +
            Ok(())
        2734  +
        } else {
        2735  +
            Err(crate::model::sensitive_length_list::ConstraintViolation::Length(length))
        2736  +
        }
        2737  +
    }
        2738  +
}
        2739  +
impl ::std::convert::TryFrom<::std::vec::Vec<crate::model::SensitiveStructure>>
        2740  +
    for SensitiveLengthList
        2741  +
{
        2742  +
    type Error = crate::model::sensitive_length_list::ConstraintViolation;
        2743  +
        2744  +
    /// Constructs a `SensitiveLengthList` from an [`::std::vec::Vec<crate::model::SensitiveStructure>`], failing when the provided value does not satisfy the modeled constraints.
        2745  +
    fn try_from(
        2746  +
        value: ::std::vec::Vec<crate::model::SensitiveStructure>,
        2747  +
    ) -> ::std::result::Result<Self, Self::Error> {
        2748  +
        Self::check_length(value.len())?;
        2749  +
        2750  +
        Ok(Self(value))
        2751  +
    }
        2752  +
}
        2753  +
        2754  +
impl ::std::convert::From<SensitiveLengthList>
        2755  +
    for ::std::vec::Vec<crate::model::SensitiveStructure>
        2756  +
{
        2757  +
    fn from(value: SensitiveLengthList) -> Self {
        2758  +
        value.into_inner()
        2759  +
    }
        2760  +
}
        2761  +
impl crate::constrained::Constrained for SensitiveLengthList {
        2762  +
    type Unconstrained =
        2763  +
        crate::unconstrained::sensitive_length_list_unconstrained::SensitiveLengthListUnconstrained;
        2764  +
}
        2765  +
        2766  +
#[allow(missing_docs)] // documentation missing in model
        2767  +
#[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::hash::Hash)]
        2768  +
pub struct SensitiveStructure {}
        2769  +
impl ::std::fmt::Debug for SensitiveStructure {
        2770  +
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        2771  +
        let mut formatter = f.debug_struct("SensitiveStructure");
        2772  +
        formatter.finish()
        2773  +
    }
        2774  +
}
        2775  +
impl SensitiveStructure {
        2776  +
    /// Creates a new builder-style object to manufacture [`SensitiveStructure`](crate::model::SensitiveStructure).
        2777  +
    pub fn builder() -> crate::model::sensitive_structure::Builder {
        2778  +
        crate::model::sensitive_structure::Builder::default()
        2779  +
    }
        2780  +
}
        2781  +
impl crate::constrained::Constrained for crate::model::SensitiveStructure {
        2782  +
    type Unconstrained = crate::model::sensitive_structure::Builder;
        2783  +
}
        2784  +
        2785  +
#[allow(missing_docs)] // documentation missing in model
        2786  +
///
        2787  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        2788  +
/// [constraint traits]. Use [`LengthList::try_from`] to construct values of this type.
        2789  +
///
        2790  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        2791  +
///
        2792  +
#[derive(
        2793  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        2794  +
)]
        2795  +
pub struct LengthList(pub(crate) ::std::vec::Vec<::std::string::String>);
        2796  +
impl LengthList {
        2797  +
    /// Returns an immutable reference to the underlying [`::std::vec::Vec<::std::string::String>`].
        2798  +
    pub fn inner(&self) -> &::std::vec::Vec<::std::string::String> {
        2799  +
        &self.0
        2800  +
    }
        2801  +
    /// Consumes the value, returning the underlying [`::std::vec::Vec<::std::string::String>`].
        2802  +
    pub fn into_inner(self) -> ::std::vec::Vec<::std::string::String> {
        2803  +
        self.0
        2804  +
    }
        2805  +
        2806  +
    fn check_length(
        2807  +
        length: usize,
        2808  +
    ) -> ::std::result::Result<(), crate::model::length_list::ConstraintViolation> {
        2809  +
        if length <= 69 {
        2810  +
            Ok(())
        2811  +
        } else {
        2812  +
            Err(crate::model::length_list::ConstraintViolation::Length(
        2813  +
                length,
        2814  +
            ))
        2815  +
        }
        2816  +
    }
        2817  +
}
        2818  +
impl ::std::convert::TryFrom<::std::vec::Vec<::std::string::String>> for LengthList {
        2819  +
    type Error = crate::model::length_list::ConstraintViolation;
        2820  +
        2821  +
    /// Constructs a `LengthList` from an [`::std::vec::Vec<::std::string::String>`], failing when the provided value does not satisfy the modeled constraints.
        2822  +
    fn try_from(
        2823  +
        value: ::std::vec::Vec<::std::string::String>,
        2824  +
    ) -> ::std::result::Result<Self, Self::Error> {
        2825  +
        Self::check_length(value.len())?;
        2826  +
        2827  +
        Ok(Self(value))
        2828  +
    }
        2829  +
}
        2830  +
        2831  +
impl ::std::convert::From<LengthList> for ::std::vec::Vec<::std::string::String> {
        2832  +
    fn from(value: LengthList) -> Self {
        2833  +
        value.into_inner()
        2834  +
    }
        2835  +
}
        2836  +
impl crate::constrained::Constrained for LengthList {
        2837  +
    type Unconstrained = crate::unconstrained::length_list_unconstrained::LengthListUnconstrained;
        2838  +
}
        2839  +
        2840  +
#[allow(missing_docs)] // documentation missing in model
        2841  +
///
        2842  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        2843  +
/// [constraint traits]. Use [`FixedValueByte::try_from`] to construct values of this type.
        2844  +
///
        2845  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        2846  +
///
        2847  +
#[derive(
        2848  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        2849  +
)]
        2850  +
pub struct FixedValueByte(pub(crate) i8);
        2851  +
impl FixedValueByte {
        2852  +
    /// Returns an immutable reference to the underlying [`i8`].
        2853  +
    pub fn inner(&self) -> &i8 {
        2854  +
        &self.0
        2855  +
    }
        2856  +
        2857  +
    /// Consumes the value, returning the underlying [`i8`].
        2858  +
    pub fn into_inner(self) -> i8 {
        2859  +
        self.0
        2860  +
    }
        2861  +
}
        2862  +
        2863  +
impl crate::constrained::Constrained for FixedValueByte {
        2864  +
    type Unconstrained = i8;
        2865  +
}
        2866  +
        2867  +
impl ::std::convert::From<i8>
        2868  +
    for crate::constrained::MaybeConstrained<crate::model::FixedValueByte>
        2869  +
{
        2870  +
    fn from(value: i8) -> Self {
        2871  +
        Self::Unconstrained(value)
        2872  +
    }
        2873  +
}
        2874  +
        2875  +
impl ::std::fmt::Display for FixedValueByte {
        2876  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2877  +
        self.0.fmt(f)
        2878  +
    }
        2879  +
}
        2880  +
        2881  +
impl ::std::convert::From<FixedValueByte> for i8 {
        2882  +
    fn from(value: FixedValueByte) -> Self {
        2883  +
        value.into_inner()
        2884  +
    }
        2885  +
}
        2886  +
impl FixedValueByte {
        2887  +
    fn check_range(
        2888  +
        value: i8,
        2889  +
    ) -> ::std::result::Result<(), crate::model::fixed_value_byte::ConstraintViolation> {
        2890  +
        if (10..=10).contains(&value) {
        2891  +
            Ok(())
        2892  +
        } else {
        2893  +
            Err(crate::model::fixed_value_byte::ConstraintViolation::Range(
        2894  +
                value,
        2895  +
            ))
        2896  +
        }
        2897  +
    }
        2898  +
}
        2899  +
impl ::std::convert::TryFrom<i8> for FixedValueByte {
        2900  +
    type Error = crate::model::fixed_value_byte::ConstraintViolation;
        2901  +
        2902  +
    /// Constructs a `FixedValueByte` from an [`i8`], failing when the provided value does not satisfy the modeled constraints.
        2903  +
    fn try_from(value: i8) -> ::std::result::Result<Self, Self::Error> {
        2904  +
        Self::check_range(value)?;
        2905  +
        2906  +
        Ok(Self(value))
        2907  +
    }
        2908  +
}
        2909  +
        2910  +
#[allow(missing_docs)] // documentation missing in model
        2911  +
///
        2912  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        2913  +
/// [constraint traits]. Use [`MaxRangeByte::try_from`] to construct values of this type.
        2914  +
///
        2915  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        2916  +
///
        2917  +
#[derive(
        2918  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        2919  +
)]
        2920  +
pub struct MaxRangeByte(pub(crate) i8);
        2921  +
impl MaxRangeByte {
        2922  +
    /// Returns an immutable reference to the underlying [`i8`].
        2923  +
    pub fn inner(&self) -> &i8 {
        2924  +
        &self.0
        2925  +
    }
        2926  +
        2927  +
    /// Consumes the value, returning the underlying [`i8`].
        2928  +
    pub fn into_inner(self) -> i8 {
        2929  +
        self.0
        2930  +
    }
        2931  +
}
        2932  +
        2933  +
impl crate::constrained::Constrained for MaxRangeByte {
        2934  +
    type Unconstrained = i8;
        2935  +
}
        2936  +
        2937  +
impl ::std::convert::From<i8> for crate::constrained::MaybeConstrained<crate::model::MaxRangeByte> {
        2938  +
    fn from(value: i8) -> Self {
        2939  +
        Self::Unconstrained(value)
        2940  +
    }
        2941  +
}
        2942  +
        2943  +
impl ::std::fmt::Display for MaxRangeByte {
        2944  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2945  +
        self.0.fmt(f)
        2946  +
    }
        2947  +
}
        2948  +
        2949  +
impl ::std::convert::From<MaxRangeByte> for i8 {
        2950  +
    fn from(value: MaxRangeByte) -> Self {
        2951  +
        value.into_inner()
        2952  +
    }
        2953  +
}
        2954  +
impl MaxRangeByte {
        2955  +
    fn check_range(
        2956  +
        value: i8,
        2957  +
    ) -> ::std::result::Result<(), crate::model::max_range_byte::ConstraintViolation> {
        2958  +
        if value <= 11 {
        2959  +
            Ok(())
        2960  +
        } else {
        2961  +
            Err(crate::model::max_range_byte::ConstraintViolation::Range(
        2962  +
                value,
        2963  +
            ))
        2964  +
        }
        2965  +
    }
        2966  +
}
        2967  +
impl ::std::convert::TryFrom<i8> for MaxRangeByte {
        2968  +
    type Error = crate::model::max_range_byte::ConstraintViolation;
        2969  +
        2970  +
    /// Constructs a `MaxRangeByte` from an [`i8`], failing when the provided value does not satisfy the modeled constraints.
        2971  +
    fn try_from(value: i8) -> ::std::result::Result<Self, Self::Error> {
        2972  +
        Self::check_range(value)?;
        2973  +
        2974  +
        Ok(Self(value))
        2975  +
    }
        2976  +
}
        2977  +
        2978  +
#[allow(missing_docs)] // documentation missing in model
        2979  +
///
        2980  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        2981  +
/// [constraint traits]. Use [`MinRangeByte::try_from`] to construct values of this type.
        2982  +
///
        2983  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        2984  +
///
        2985  +
#[derive(
        2986  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        2987  +
)]
        2988  +
pub struct MinRangeByte(pub(crate) i8);
        2989  +
impl MinRangeByte {
        2990  +
    /// Returns an immutable reference to the underlying [`i8`].
        2991  +
    pub fn inner(&self) -> &i8 {
        2992  +
        &self.0
        2993  +
    }
        2994  +
        2995  +
    /// Consumes the value, returning the underlying [`i8`].
        2996  +
    pub fn into_inner(self) -> i8 {
        2997  +
        self.0
        2998  +
    }
        2999  +
}
        3000  +
        3001  +
impl crate::constrained::Constrained for MinRangeByte {
        3002  +
    type Unconstrained = i8;
        3003  +
}
        3004  +
        3005  +
impl ::std::convert::From<i8> for crate::constrained::MaybeConstrained<crate::model::MinRangeByte> {
        3006  +
    fn from(value: i8) -> Self {
        3007  +
        Self::Unconstrained(value)
        3008  +
    }
        3009  +
}
        3010  +
        3011  +
impl ::std::fmt::Display for MinRangeByte {
        3012  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        3013  +
        self.0.fmt(f)
        3014  +
    }
        3015  +
}
        3016  +
        3017  +
impl ::std::convert::From<MinRangeByte> for i8 {
        3018  +
    fn from(value: MinRangeByte) -> Self {
        3019  +
        value.into_inner()
        3020  +
    }
        3021  +
}
        3022  +
impl MinRangeByte {
        3023  +
    fn check_range(
        3024  +
        value: i8,
        3025  +
    ) -> ::std::result::Result<(), crate::model::min_range_byte::ConstraintViolation> {
        3026  +
        if -10 <= value {
        3027  +
            Ok(())
        3028  +
        } else {
        3029  +
            Err(crate::model::min_range_byte::ConstraintViolation::Range(
        3030  +
                value,
        3031  +
            ))
        3032  +
        }
        3033  +
    }
        3034  +
}
        3035  +
impl ::std::convert::TryFrom<i8> for MinRangeByte {
        3036  +
    type Error = crate::model::min_range_byte::ConstraintViolation;
        3037  +
        3038  +
    /// Constructs a `MinRangeByte` from an [`i8`], failing when the provided value does not satisfy the modeled constraints.
        3039  +
    fn try_from(value: i8) -> ::std::result::Result<Self, Self::Error> {
        3040  +
        Self::check_range(value)?;
        3041  +
        3042  +
        Ok(Self(value))
        3043  +
    }
        3044  +
}
        3045  +
        3046  +
#[allow(missing_docs)] // documentation missing in model
        3047  +
///
        3048  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        3049  +
/// [constraint traits]. Use [`FixedValueLong::try_from`] to construct values of this type.
        3050  +
///
        3051  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        3052  +
///
        3053  +
#[derive(
        3054  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        3055  +
)]
        3056  +
pub struct FixedValueLong(pub(crate) i64);
        3057  +
impl FixedValueLong {
        3058  +
    /// Returns an immutable reference to the underlying [`i64`].
        3059  +
    pub fn inner(&self) -> &i64 {
        3060  +
        &self.0
        3061  +
    }
        3062  +
        3063  +
    /// Consumes the value, returning the underlying [`i64`].
        3064  +
    pub fn into_inner(self) -> i64 {
        3065  +
        self.0
        3066  +
    }
        3067  +
}
        3068  +
        3069  +
impl crate::constrained::Constrained for FixedValueLong {
        3070  +
    type Unconstrained = i64;
        3071  +
}
        3072  +
        3073  +
impl ::std::convert::From<i64>
        3074  +
    for crate::constrained::MaybeConstrained<crate::model::FixedValueLong>
        3075  +
{
        3076  +
    fn from(value: i64) -> Self {
        3077  +
        Self::Unconstrained(value)
        3078  +
    }
        3079  +
}
        3080  +
        3081  +
impl ::std::fmt::Display for FixedValueLong {
        3082  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        3083  +
        self.0.fmt(f)
        3084  +
    }
        3085  +
}
        3086  +
        3087  +
impl ::std::convert::From<FixedValueLong> for i64 {
        3088  +
    fn from(value: FixedValueLong) -> Self {
        3089  +
        value.into_inner()
        3090  +
    }
        3091  +
}
        3092  +
impl FixedValueLong {
        3093  +
    fn check_range(
        3094  +
        value: i64,
        3095  +
    ) -> ::std::result::Result<(), crate::model::fixed_value_long::ConstraintViolation> {
        3096  +
        if (10..=10).contains(&value) {
        3097  +
            Ok(())
        3098  +
        } else {
        3099  +
            Err(crate::model::fixed_value_long::ConstraintViolation::Range(
        3100  +
                value,
        3101  +
            ))
        3102  +
        }
        3103  +
    }
        3104  +
}
        3105  +
impl ::std::convert::TryFrom<i64> for FixedValueLong {
        3106  +
    type Error = crate::model::fixed_value_long::ConstraintViolation;
        3107  +
        3108  +
    /// Constructs a `FixedValueLong` from an [`i64`], failing when the provided value does not satisfy the modeled constraints.
        3109  +
    fn try_from(value: i64) -> ::std::result::Result<Self, Self::Error> {
        3110  +
        Self::check_range(value)?;
        3111  +
        3112  +
        Ok(Self(value))
        3113  +
    }
        3114  +
}
        3115  +
        3116  +
#[allow(missing_docs)] // documentation missing in model
        3117  +
///
        3118  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        3119  +
/// [constraint traits]. Use [`MaxRangeLong::try_from`] to construct values of this type.
        3120  +
///
        3121  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        3122  +
///
        3123  +
#[derive(
        3124  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        3125  +
)]
        3126  +
pub struct MaxRangeLong(pub(crate) i64);
        3127  +
impl MaxRangeLong {
        3128  +
    /// Returns an immutable reference to the underlying [`i64`].
        3129  +
    pub fn inner(&self) -> &i64 {
        3130  +
        &self.0
        3131  +
    }
        3132  +
        3133  +
    /// Consumes the value, returning the underlying [`i64`].
        3134  +
    pub fn into_inner(self) -> i64 {
        3135  +
        self.0
        3136  +
    }
        3137  +
}
        3138  +
        3139  +
impl crate::constrained::Constrained for MaxRangeLong {
        3140  +
    type Unconstrained = i64;
        3141  +
}
        3142  +
        3143  +
impl ::std::convert::From<i64>
        3144  +
    for crate::constrained::MaybeConstrained<crate::model::MaxRangeLong>
        3145  +
{
        3146  +
    fn from(value: i64) -> Self {
        3147  +
        Self::Unconstrained(value)
        3148  +
    }
        3149  +
}
        3150  +
        3151  +
impl ::std::fmt::Display for MaxRangeLong {
        3152  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        3153  +
        self.0.fmt(f)
        3154  +
    }
        3155  +
}
        3156  +
        3157  +
impl ::std::convert::From<MaxRangeLong> for i64 {
        3158  +
    fn from(value: MaxRangeLong) -> Self {
        3159  +
        value.into_inner()
        3160  +
    }
        3161  +
}
        3162  +
impl MaxRangeLong {
        3163  +
    fn check_range(
        3164  +
        value: i64,
        3165  +
    ) -> ::std::result::Result<(), crate::model::max_range_long::ConstraintViolation> {
        3166  +
        if value <= 11 {
        3167  +
            Ok(())
        3168  +
        } else {
        3169  +
            Err(crate::model::max_range_long::ConstraintViolation::Range(
        3170  +
                value,
        3171  +
            ))
        3172  +
        }
        3173  +
    }
        3174  +
}
        3175  +
impl ::std::convert::TryFrom<i64> for MaxRangeLong {
        3176  +
    type Error = crate::model::max_range_long::ConstraintViolation;
        3177  +
        3178  +
    /// Constructs a `MaxRangeLong` from an [`i64`], failing when the provided value does not satisfy the modeled constraints.
        3179  +
    fn try_from(value: i64) -> ::std::result::Result<Self, Self::Error> {
        3180  +
        Self::check_range(value)?;
        3181  +
        3182  +
        Ok(Self(value))
        3183  +
    }
        3184  +
}
        3185  +
        3186  +
#[allow(missing_docs)] // documentation missing in model
        3187  +
///
        3188  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        3189  +
/// [constraint traits]. Use [`MinRangeLong::try_from`] to construct values of this type.
        3190  +
///
        3191  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        3192  +
///
        3193  +
#[derive(
        3194  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        3195  +
)]
        3196  +
pub struct MinRangeLong(pub(crate) i64);
        3197  +
impl MinRangeLong {
        3198  +
    /// Returns an immutable reference to the underlying [`i64`].
        3199  +
    pub fn inner(&self) -> &i64 {
        3200  +
        &self.0
        3201  +
    }
        3202  +
        3203  +
    /// Consumes the value, returning the underlying [`i64`].
        3204  +
    pub fn into_inner(self) -> i64 {
        3205  +
        self.0
        3206  +
    }
        3207  +
}
        3208  +
        3209  +
impl crate::constrained::Constrained for MinRangeLong {
        3210  +
    type Unconstrained = i64;
        3211  +
}
        3212  +
        3213  +
impl ::std::convert::From<i64>
        3214  +
    for crate::constrained::MaybeConstrained<crate::model::MinRangeLong>
        3215  +
{
        3216  +
    fn from(value: i64) -> Self {
        3217  +
        Self::Unconstrained(value)
        3218  +
    }
        3219  +
}
        3220  +
        3221  +
impl ::std::fmt::Display for MinRangeLong {
        3222  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        3223  +
        self.0.fmt(f)
        3224  +
    }
        3225  +
}
        3226  +
        3227  +
impl ::std::convert::From<MinRangeLong> for i64 {
        3228  +
    fn from(value: MinRangeLong) -> Self {
        3229  +
        value.into_inner()
        3230  +
    }
        3231  +
}
        3232  +
impl MinRangeLong {
        3233  +
    fn check_range(
        3234  +
        value: i64,
        3235  +
    ) -> ::std::result::Result<(), crate::model::min_range_long::ConstraintViolation> {
        3236  +
        if -10 <= value {
        3237  +
            Ok(())
        3238  +
        } else {
        3239  +
            Err(crate::model::min_range_long::ConstraintViolation::Range(
        3240  +
                value,
        3241  +
            ))
        3242  +
        }
        3243  +
    }
        3244  +
}
        3245  +
impl ::std::convert::TryFrom<i64> for MinRangeLong {
        3246  +
    type Error = crate::model::min_range_long::ConstraintViolation;
        3247  +
        3248  +
    /// Constructs a `MinRangeLong` from an [`i64`], failing when the provided value does not satisfy the modeled constraints.
        3249  +
    fn try_from(value: i64) -> ::std::result::Result<Self, Self::Error> {
        3250  +
        Self::check_range(value)?;
        3251  +
        3252  +
        Ok(Self(value))
        3253  +
    }
        3254  +
}
        3255  +
        3256  +
#[allow(missing_docs)] // documentation missing in model
        3257  +
///
        3258  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        3259  +
/// [constraint traits]. Use [`FixedValueShort::try_from`] to construct values of this type.
        3260  +
///
        3261  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        3262  +
///
        3263  +
#[derive(
        3264  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        3265  +
)]
        3266  +
pub struct FixedValueShort(pub(crate) i16);
        3267  +
impl FixedValueShort {
        3268  +
    /// Returns an immutable reference to the underlying [`i16`].
        3269  +
    pub fn inner(&self) -> &i16 {
        3270  +
        &self.0
        3271  +
    }
        3272  +
        3273  +
    /// Consumes the value, returning the underlying [`i16`].
        3274  +
    pub fn into_inner(self) -> i16 {
        3275  +
        self.0
        3276  +
    }
        3277  +
}
        3278  +
        3279  +
impl crate::constrained::Constrained for FixedValueShort {
        3280  +
    type Unconstrained = i16;
        3281  +
}
        3282  +
        3283  +
impl ::std::convert::From<i16>
        3284  +
    for crate::constrained::MaybeConstrained<crate::model::FixedValueShort>
        3285  +
{
        3286  +
    fn from(value: i16) -> Self {
        3287  +
        Self::Unconstrained(value)
        3288  +
    }
        3289  +
}
        3290  +
        3291  +
impl ::std::fmt::Display for FixedValueShort {
        3292  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        3293  +
        self.0.fmt(f)
        3294  +
    }
        3295  +
}
        3296  +
        3297  +
impl ::std::convert::From<FixedValueShort> for i16 {
        3298  +
    fn from(value: FixedValueShort) -> Self {
        3299  +
        value.into_inner()
        3300  +
    }
        3301  +
}
        3302  +
impl FixedValueShort {
        3303  +
    fn check_range(
        3304  +
        value: i16,
        3305  +
    ) -> ::std::result::Result<(), crate::model::fixed_value_short::ConstraintViolation> {
        3306  +
        if (10..=10).contains(&value) {
        3307  +
            Ok(())
        3308  +
        } else {
        3309  +
            Err(crate::model::fixed_value_short::ConstraintViolation::Range(
        3310  +
                value,
        3311  +
            ))
        3312  +
        }
        3313  +
    }
        3314  +
}
        3315  +
impl ::std::convert::TryFrom<i16> for FixedValueShort {
        3316  +
    type Error = crate::model::fixed_value_short::ConstraintViolation;
        3317  +
        3318  +
    /// Constructs a `FixedValueShort` from an [`i16`], failing when the provided value does not satisfy the modeled constraints.
        3319  +
    fn try_from(value: i16) -> ::std::result::Result<Self, Self::Error> {
        3320  +
        Self::check_range(value)?;
        3321  +
        3322  +
        Ok(Self(value))
        3323  +
    }
        3324  +
}
        3325  +
        3326  +
#[allow(missing_docs)] // documentation missing in model
        3327  +
///
        3328  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        3329  +
/// [constraint traits]. Use [`MaxRangeShort::try_from`] to construct values of this type.
        3330  +
///
        3331  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        3332  +
///
        3333  +
#[derive(
        3334  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        3335  +
)]
        3336  +
pub struct MaxRangeShort(pub(crate) i16);
        3337  +
impl MaxRangeShort {
        3338  +
    /// Returns an immutable reference to the underlying [`i16`].
        3339  +
    pub fn inner(&self) -> &i16 {
        3340  +
        &self.0
        3341  +
    }
        3342  +
        3343  +
    /// Consumes the value, returning the underlying [`i16`].
        3344  +
    pub fn into_inner(self) -> i16 {
        3345  +
        self.0
        3346  +
    }
        3347  +
}
        3348  +
        3349  +
impl crate::constrained::Constrained for MaxRangeShort {
        3350  +
    type Unconstrained = i16;
        3351  +
}
        3352  +
        3353  +
impl ::std::convert::From<i16>
        3354  +
    for crate::constrained::MaybeConstrained<crate::model::MaxRangeShort>
        3355  +
{
        3356  +
    fn from(value: i16) -> Self {
        3357  +
        Self::Unconstrained(value)
        3358  +
    }
        3359  +
}
        3360  +
        3361  +
impl ::std::fmt::Display for MaxRangeShort {
        3362  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        3363  +
        self.0.fmt(f)
        3364  +
    }
        3365  +
}
        3366  +
        3367  +
impl ::std::convert::From<MaxRangeShort> for i16 {
        3368  +
    fn from(value: MaxRangeShort) -> Self {
        3369  +
        value.into_inner()
        3370  +
    }
        3371  +
}
        3372  +
impl MaxRangeShort {
        3373  +
    fn check_range(
        3374  +
        value: i16,
        3375  +
    ) -> ::std::result::Result<(), crate::model::max_range_short::ConstraintViolation> {
        3376  +
        if value <= 11 {
        3377  +
            Ok(())
        3378  +
        } else {
        3379  +
            Err(crate::model::max_range_short::ConstraintViolation::Range(
        3380  +
                value,
        3381  +
            ))
        3382  +
        }
        3383  +
    }
        3384  +
}
        3385  +
impl ::std::convert::TryFrom<i16> for MaxRangeShort {
        3386  +
    type Error = crate::model::max_range_short::ConstraintViolation;
        3387  +
        3388  +
    /// Constructs a `MaxRangeShort` from an [`i16`], failing when the provided value does not satisfy the modeled constraints.
        3389  +
    fn try_from(value: i16) -> ::std::result::Result<Self, Self::Error> {
        3390  +
        Self::check_range(value)?;
        3391  +
        3392  +
        Ok(Self(value))
        3393  +
    }
        3394  +
}
        3395  +
        3396  +
#[allow(missing_docs)] // documentation missing in model
        3397  +
///
        3398  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        3399  +
/// [constraint traits]. Use [`MinRangeShort::try_from`] to construct values of this type.
        3400  +
///
        3401  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        3402  +
///
        3403  +
#[derive(
        3404  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        3405  +
)]
        3406  +
pub struct MinRangeShort(pub(crate) i16);
        3407  +
impl MinRangeShort {
        3408  +
    /// Returns an immutable reference to the underlying [`i16`].
        3409  +
    pub fn inner(&self) -> &i16 {
        3410  +
        &self.0
        3411  +
    }
        3412  +
        3413  +
    /// Consumes the value, returning the underlying [`i16`].
        3414  +
    pub fn into_inner(self) -> i16 {
        3415  +
        self.0
        3416  +
    }
        3417  +
}
        3418  +
        3419  +
impl crate::constrained::Constrained for MinRangeShort {
        3420  +
    type Unconstrained = i16;
        3421  +
}
        3422  +
        3423  +
impl ::std::convert::From<i16>
        3424  +
    for crate::constrained::MaybeConstrained<crate::model::MinRangeShort>
        3425  +
{
        3426  +
    fn from(value: i16) -> Self {
        3427  +
        Self::Unconstrained(value)
        3428  +
    }
        3429  +
}
        3430  +
        3431  +
impl ::std::fmt::Display for MinRangeShort {
        3432  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        3433  +
        self.0.fmt(f)
        3434  +
    }
        3435  +
}
        3436  +
        3437  +
impl ::std::convert::From<MinRangeShort> for i16 {
        3438  +
    fn from(value: MinRangeShort) -> Self {
        3439  +
        value.into_inner()
        3440  +
    }
        3441  +
}
        3442  +
impl MinRangeShort {
        3443  +
    fn check_range(
        3444  +
        value: i16,
        3445  +
    ) -> ::std::result::Result<(), crate::model::min_range_short::ConstraintViolation> {
        3446  +
        if -10 <= value {
        3447  +
            Ok(())
        3448  +
        } else {
        3449  +
            Err(crate::model::min_range_short::ConstraintViolation::Range(
        3450  +
                value,
        3451  +
            ))
        3452  +
        }
        3453  +
    }
        3454  +
}
        3455  +
impl ::std::convert::TryFrom<i16> for MinRangeShort {
        3456  +
    type Error = crate::model::min_range_short::ConstraintViolation;
        3457  +
        3458  +
    /// Constructs a `MinRangeShort` from an [`i16`], failing when the provided value does not satisfy the modeled constraints.
        3459  +
    fn try_from(value: i16) -> ::std::result::Result<Self, Self::Error> {
        3460  +
        Self::check_range(value)?;
        3461  +
        3462  +
        Ok(Self(value))
        3463  +
    }
        3464  +
}
        3465  +
        3466  +
#[allow(missing_docs)] // documentation missing in model
        3467  +
///
        3468  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        3469  +
/// [constraint traits]. Use [`FixedValueInteger::try_from`] to construct values of this type.
        3470  +
///
        3471  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        3472  +
///
        3473  +
#[derive(
        3474  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        3475  +
)]
        3476  +
pub struct FixedValueInteger(pub(crate) i32);
        3477  +
impl FixedValueInteger {
        3478  +
    /// Returns an immutable reference to the underlying [`i32`].
        3479  +
    pub fn inner(&self) -> &i32 {
        3480  +
        &self.0
        3481  +
    }
        3482  +
        3483  +
    /// Consumes the value, returning the underlying [`i32`].
        3484  +
    pub fn into_inner(self) -> i32 {
        3485  +
        self.0
        3486  +
    }
        3487  +
}
        3488  +
        3489  +
impl crate::constrained::Constrained for FixedValueInteger {
        3490  +
    type Unconstrained = i32;
        3491  +
}
        3492  +
        3493  +
impl ::std::convert::From<i32>
        3494  +
    for crate::constrained::MaybeConstrained<crate::model::FixedValueInteger>
        3495  +
{
        3496  +
    fn from(value: i32) -> Self {
        3497  +
        Self::Unconstrained(value)
        3498  +
    }
        3499  +
}
        3500  +
        3501  +
impl ::std::fmt::Display for FixedValueInteger {
        3502  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        3503  +
        self.0.fmt(f)
        3504  +
    }
        3505  +
}
        3506  +
        3507  +
impl ::std::convert::From<FixedValueInteger> for i32 {
        3508  +
    fn from(value: FixedValueInteger) -> Self {
        3509  +
        value.into_inner()
        3510  +
    }
        3511  +
}
        3512  +
impl FixedValueInteger {
        3513  +
    fn check_range(
        3514  +
        value: i32,
        3515  +
    ) -> ::std::result::Result<(), crate::model::fixed_value_integer::ConstraintViolation> {
        3516  +
        if (69..=69).contains(&value) {
        3517  +
            Ok(())
        3518  +
        } else {
        3519  +
            Err(crate::model::fixed_value_integer::ConstraintViolation::Range(value))
        3520  +
        }
        3521  +
    }
        3522  +
}
        3523  +
impl ::std::convert::TryFrom<i32> for FixedValueInteger {
        3524  +
    type Error = crate::model::fixed_value_integer::ConstraintViolation;
        3525  +
        3526  +
    /// Constructs a `FixedValueInteger` from an [`i32`], failing when the provided value does not satisfy the modeled constraints.
        3527  +
    fn try_from(value: i32) -> ::std::result::Result<Self, Self::Error> {
        3528  +
        Self::check_range(value)?;
        3529  +
        3530  +
        Ok(Self(value))
        3531  +
    }
        3532  +
}
        3533  +
        3534  +
#[allow(missing_docs)] // documentation missing in model
        3535  +
///
        3536  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        3537  +
/// [constraint traits]. Use [`MaxRangeInteger::try_from`] to construct values of this type.
        3538  +
///
        3539  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        3540  +
///
        3541  +
#[derive(
        3542  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        3543  +
)]
        3544  +
pub struct MaxRangeInteger(pub(crate) i32);
        3545  +
impl MaxRangeInteger {
        3546  +
    /// Returns an immutable reference to the underlying [`i32`].
        3547  +
    pub fn inner(&self) -> &i32 {
        3548  +
        &self.0
        3549  +
    }
        3550  +
        3551  +
    /// Consumes the value, returning the underlying [`i32`].
        3552  +
    pub fn into_inner(self) -> i32 {
        3553  +
        self.0
        3554  +
    }
        3555  +
}
        3556  +
        3557  +
impl crate::constrained::Constrained for MaxRangeInteger {
        3558  +
    type Unconstrained = i32;
        3559  +
}
        3560  +
        3561  +
impl ::std::convert::From<i32>
        3562  +
    for crate::constrained::MaybeConstrained<crate::model::MaxRangeInteger>
        3563  +
{
        3564  +
    fn from(value: i32) -> Self {
        3565  +
        Self::Unconstrained(value)
        3566  +
    }
        3567  +
}
        3568  +
        3569  +
impl ::std::fmt::Display for MaxRangeInteger {
        3570  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        3571  +
        self.0.fmt(f)
        3572  +
    }
        3573  +
}
        3574  +
        3575  +
impl ::std::convert::From<MaxRangeInteger> for i32 {
        3576  +
    fn from(value: MaxRangeInteger) -> Self {
        3577  +
        value.into_inner()
        3578  +
    }
        3579  +
}
        3580  +
impl MaxRangeInteger {
        3581  +
    fn check_range(
        3582  +
        value: i32,
        3583  +
    ) -> ::std::result::Result<(), crate::model::max_range_integer::ConstraintViolation> {
        3584  +
        if value <= 69 {
        3585  +
            Ok(())
        3586  +
        } else {
        3587  +
            Err(crate::model::max_range_integer::ConstraintViolation::Range(
        3588  +
                value,
        3589  +
            ))
        3590  +
        }
        3591  +
    }
        3592  +
}
        3593  +
impl ::std::convert::TryFrom<i32> for MaxRangeInteger {
        3594  +
    type Error = crate::model::max_range_integer::ConstraintViolation;
        3595  +
        3596  +
    /// Constructs a `MaxRangeInteger` from an [`i32`], failing when the provided value does not satisfy the modeled constraints.
        3597  +
    fn try_from(value: i32) -> ::std::result::Result<Self, Self::Error> {
        3598  +
        Self::check_range(value)?;
        3599  +
        3600  +
        Ok(Self(value))
        3601  +
    }
        3602  +
}
        3603  +
        3604  +
#[allow(missing_docs)] // documentation missing in model
        3605  +
///
        3606  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        3607  +
/// [constraint traits]. Use [`MinRangeInteger::try_from`] to construct values of this type.
        3608  +
///
        3609  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        3610  +
///
        3611  +
#[derive(
        3612  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        3613  +
)]
        3614  +
pub struct MinRangeInteger(pub(crate) i32);
        3615  +
impl MinRangeInteger {
        3616  +
    /// Returns an immutable reference to the underlying [`i32`].
        3617  +
    pub fn inner(&self) -> &i32 {
        3618  +
        &self.0
        3619  +
    }
        3620  +
        3621  +
    /// Consumes the value, returning the underlying [`i32`].
        3622  +
    pub fn into_inner(self) -> i32 {
        3623  +
        self.0
        3624  +
    }
        3625  +
}
        3626  +
        3627  +
impl crate::constrained::Constrained for MinRangeInteger {
        3628  +
    type Unconstrained = i32;
        3629  +
}
        3630  +
        3631  +
impl ::std::convert::From<i32>
        3632  +
    for crate::constrained::MaybeConstrained<crate::model::MinRangeInteger>
        3633  +
{
        3634  +
    fn from(value: i32) -> Self {
        3635  +
        Self::Unconstrained(value)
        3636  +
    }
        3637  +
}
        3638  +
        3639  +
impl ::std::fmt::Display for MinRangeInteger {
        3640  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        3641  +
        self.0.fmt(f)
        3642  +
    }
        3643  +
}
        3644  +
        3645  +
impl ::std::convert::From<MinRangeInteger> for i32 {
        3646  +
    fn from(value: MinRangeInteger) -> Self {
        3647  +
        value.into_inner()
        3648  +
    }
        3649  +
}
        3650  +
impl MinRangeInteger {
        3651  +
    fn check_range(
        3652  +
        value: i32,
        3653  +
    ) -> ::std::result::Result<(), crate::model::min_range_integer::ConstraintViolation> {
        3654  +
        if -10 <= value {
        3655  +
            Ok(())
        3656  +
        } else {
        3657  +
            Err(crate::model::min_range_integer::ConstraintViolation::Range(
        3658  +
                value,
        3659  +
            ))
        3660  +
        }
        3661  +
    }
        3662  +
}
        3663  +
impl ::std::convert::TryFrom<i32> for MinRangeInteger {
        3664  +
    type Error = crate::model::min_range_integer::ConstraintViolation;
        3665  +
        3666  +
    /// Constructs a `MinRangeInteger` from an [`i32`], failing when the provided value does not satisfy the modeled constraints.
        3667  +
    fn try_from(value: i32) -> ::std::result::Result<Self, Self::Error> {
        3668  +
        Self::check_range(value)?;
        3669  +
        3670  +
        Ok(Self(value))
        3671  +
    }
        3672  +
}
        3673  +
        3674  +
#[allow(missing_docs)] // documentation missing in model
        3675  +
///
        3676  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        3677  +
/// [constraint traits]. Use [`FixedLengthBlob::try_from`] to construct values of this type.
        3678  +
///
        3679  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        3680  +
///
        3681  +
#[derive(
        3682  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        3683  +
)]
        3684  +
pub struct FixedLengthBlob(pub(crate) ::aws_smithy_types::Blob);
        3685  +
impl FixedLengthBlob {
        3686  +
    /// Returns an immutable reference to the underlying [`::aws_smithy_types::Blob`].
        3687  +
    pub fn inner(&self) -> &::aws_smithy_types::Blob {
        3688  +
        &self.0
        3689  +
    }
        3690  +
    /// Consumes the value, returning the underlying [`::aws_smithy_types::Blob`].
        3691  +
    pub fn into_inner(self) -> ::aws_smithy_types::Blob {
        3692  +
        self.0
        3693  +
    }
        3694  +
}
        3695  +
impl FixedLengthBlob {
        3696  +
    fn check_length(
        3697  +
        blob: &::aws_smithy_types::Blob,
        3698  +
    ) -> ::std::result::Result<(), crate::model::fixed_length_blob::ConstraintViolation> {
        3699  +
        let length = blob.as_ref().len();
        3700  +
        3701  +
        if (70..=70).contains(&length) {
        3702  +
            Ok(())
        3703  +
        } else {
        3704  +
            Err(crate::model::fixed_length_blob::ConstraintViolation::Length(length))
        3705  +
        }
        3706  +
    }
        3707  +
}
        3708  +
impl ::std::convert::TryFrom<::aws_smithy_types::Blob> for FixedLengthBlob {
        3709  +
    type Error = crate::model::fixed_length_blob::ConstraintViolation;
        3710  +
        3711  +
    /// Constructs a `FixedLengthBlob` from an [`::aws_smithy_types::Blob`], failing when the provided value does not satisfy the modeled constraints.
        3712  +
    fn try_from(value: ::aws_smithy_types::Blob) -> ::std::result::Result<Self, Self::Error> {
        3713  +
        Self::check_length(&value)?;
        3714  +
        3715  +
        Ok(Self(value))
        3716  +
    }
        3717  +
}
        3718  +
impl crate::constrained::Constrained for FixedLengthBlob {
        3719  +
    type Unconstrained = ::aws_smithy_types::Blob;
        3720  +
}
        3721  +
        3722  +
impl ::std::convert::From<::aws_smithy_types::Blob>
        3723  +
    for crate::constrained::MaybeConstrained<crate::model::FixedLengthBlob>
        3724  +
{
        3725  +
    fn from(value: ::aws_smithy_types::Blob) -> Self {
        3726  +
        Self::Unconstrained(value)
        3727  +
    }
        3728  +
}
        3729  +
        3730  +
impl ::std::convert::From<FixedLengthBlob> for ::aws_smithy_types::Blob {
        3731  +
    fn from(value: FixedLengthBlob) -> Self {
        3732  +
        value.into_inner()
        3733  +
    }
        3734  +
}
        3735  +
        3736  +
#[allow(missing_docs)] // documentation missing in model
        3737  +
///
        3738  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        3739  +
/// [constraint traits]. Use [`MaxLengthBlob::try_from`] to construct values of this type.
        3740  +
///
        3741  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        3742  +
///
        3743  +
#[derive(
        3744  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        3745  +
)]
        3746  +
pub struct MaxLengthBlob(pub(crate) ::aws_smithy_types::Blob);
        3747  +
impl MaxLengthBlob {
        3748  +
    /// Returns an immutable reference to the underlying [`::aws_smithy_types::Blob`].
        3749  +
    pub fn inner(&self) -> &::aws_smithy_types::Blob {
        3750  +
        &self.0
        3751  +
    }
        3752  +
    /// Consumes the value, returning the underlying [`::aws_smithy_types::Blob`].
        3753  +
    pub fn into_inner(self) -> ::aws_smithy_types::Blob {
        3754  +
        self.0
        3755  +
    }
        3756  +
}
        3757  +
impl MaxLengthBlob {
        3758  +
    fn check_length(
        3759  +
        blob: &::aws_smithy_types::Blob,
        3760  +
    ) -> ::std::result::Result<(), crate::model::max_length_blob::ConstraintViolation> {
        3761  +
        let length = blob.as_ref().len();
        3762  +
        3763  +
        if length <= 70 {
        3764  +
            Ok(())
        3765  +
        } else {
        3766  +
            Err(crate::model::max_length_blob::ConstraintViolation::Length(
        3767  +
                length,
        3768  +
            ))
        3769  +
        }
        3770  +
    }
        3771  +
}
        3772  +
impl ::std::convert::TryFrom<::aws_smithy_types::Blob> for MaxLengthBlob {
        3773  +
    type Error = crate::model::max_length_blob::ConstraintViolation;
        3774  +
        3775  +
    /// Constructs a `MaxLengthBlob` from an [`::aws_smithy_types::Blob`], failing when the provided value does not satisfy the modeled constraints.
        3776  +
    fn try_from(value: ::aws_smithy_types::Blob) -> ::std::result::Result<Self, Self::Error> {
        3777  +
        Self::check_length(&value)?;
        3778  +
        3779  +
        Ok(Self(value))
        3780  +
    }
        3781  +
}
        3782  +
impl crate::constrained::Constrained for MaxLengthBlob {
        3783  +
    type Unconstrained = ::aws_smithy_types::Blob;
        3784  +
}
        3785  +
        3786  +
impl ::std::convert::From<::aws_smithy_types::Blob>
        3787  +
    for crate::constrained::MaybeConstrained<crate::model::MaxLengthBlob>
        3788  +
{
        3789  +
    fn from(value: ::aws_smithy_types::Blob) -> Self {
        3790  +
        Self::Unconstrained(value)
        3791  +
    }
        3792  +
}
        3793  +
        3794  +
impl ::std::convert::From<MaxLengthBlob> for ::aws_smithy_types::Blob {
        3795  +
    fn from(value: MaxLengthBlob) -> Self {
        3796  +
        value.into_inner()
        3797  +
    }
        3798  +
}
        3799  +
        3800  +
#[allow(missing_docs)] // documentation missing in model
        3801  +
///
        3802  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        3803  +
/// [constraint traits]. Use [`MinLengthBlob::try_from`] to construct values of this type.
        3804  +
///
        3805  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        3806  +
///
        3807  +
#[derive(
        3808  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        3809  +
)]
        3810  +
pub struct MinLengthBlob(pub(crate) ::aws_smithy_types::Blob);
        3811  +
impl MinLengthBlob {
        3812  +
    /// Returns an immutable reference to the underlying [`::aws_smithy_types::Blob`].
        3813  +
    pub fn inner(&self) -> &::aws_smithy_types::Blob {
        3814  +
        &self.0
        3815  +
    }
        3816  +
    /// Consumes the value, returning the underlying [`::aws_smithy_types::Blob`].
        3817  +
    pub fn into_inner(self) -> ::aws_smithy_types::Blob {
        3818  +
        self.0
        3819  +
    }
        3820  +
}
        3821  +
impl MinLengthBlob {
        3822  +
    fn check_length(
        3823  +
        blob: &::aws_smithy_types::Blob,
        3824  +
    ) -> ::std::result::Result<(), crate::model::min_length_blob::ConstraintViolation> {
        3825  +
        let length = blob.as_ref().len();
        3826  +
        3827  +
        if 2 <= length {
        3828  +
            Ok(())
        3829  +
        } else {
        3830  +
            Err(crate::model::min_length_blob::ConstraintViolation::Length(
        3831  +
                length,
        3832  +
            ))
        3833  +
        }
        3834  +
    }
        3835  +
}
        3836  +
impl ::std::convert::TryFrom<::aws_smithy_types::Blob> for MinLengthBlob {
        3837  +
    type Error = crate::model::min_length_blob::ConstraintViolation;
        3838  +
        3839  +
    /// Constructs a `MinLengthBlob` from an [`::aws_smithy_types::Blob`], failing when the provided value does not satisfy the modeled constraints.
        3840  +
    fn try_from(value: ::aws_smithy_types::Blob) -> ::std::result::Result<Self, Self::Error> {
        3841  +
        Self::check_length(&value)?;
        3842  +
        3843  +
        Ok(Self(value))
        3844  +
    }
        3845  +
}
        3846  +
impl crate::constrained::Constrained for MinLengthBlob {
        3847  +
    type Unconstrained = ::aws_smithy_types::Blob;
        3848  +
}
        3849  +
        3850  +
impl ::std::convert::From<::aws_smithy_types::Blob>
        3851  +
    for crate::constrained::MaybeConstrained<crate::model::MinLengthBlob>
        3852  +
{
        3853  +
    fn from(value: ::aws_smithy_types::Blob) -> Self {
        3854  +
        Self::Unconstrained(value)
        3855  +
    }
        3856  +
}
        3857  +
        3858  +
impl ::std::convert::From<MinLengthBlob> for ::aws_smithy_types::Blob {
        3859  +
    fn from(value: MinLengthBlob) -> Self {
        3860  +
        value.into_inner()
        3861  +
    }
        3862  +
}
        3863  +
        3864  +
#[allow(missing_docs)] // documentation missing in model
        3865  +
///
        3866  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        3867  +
/// [constraint traits]. Use [`FixedLengthString::try_from`] to construct values of this type.
        3868  +
///
        3869  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        3870  +
///
        3871  +
#[derive(
        3872  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        3873  +
)]
        3874  +
pub struct FixedLengthString(pub(crate) ::std::string::String);
        3875  +
impl FixedLengthString {
        3876  +
    /// Extracts a string slice containing the entire underlying `String`.
        3877  +
    pub fn as_str(&self) -> &str {
        3878  +
        &self.0
        3879  +
    }
        3880  +
        3881  +
    /// Returns an immutable reference to the underlying [`::std::string::String`].
        3882  +
    pub fn inner(&self) -> &::std::string::String {
        3883  +
        &self.0
        3884  +
    }
        3885  +
        3886  +
    /// Consumes the value, returning the underlying [`::std::string::String`].
        3887  +
    pub fn into_inner(self) -> ::std::string::String {
        3888  +
        self.0
        3889  +
    }
        3890  +
}
        3891  +
impl FixedLengthString {
        3892  +
    fn check_length(
        3893  +
        string: &str,
        3894  +
    ) -> ::std::result::Result<(), crate::model::fixed_length_string::ConstraintViolation> {
        3895  +
        let length = string.chars().count();
        3896  +
        3897  +
        if (69..=69).contains(&length) {
        3898  +
            Ok(())
        3899  +
        } else {
        3900  +
            Err(crate::model::fixed_length_string::ConstraintViolation::Length(length))
        3901  +
        }
        3902  +
    }
        3903  +
}
        3904  +
impl ::std::convert::TryFrom<::std::string::String> for FixedLengthString {
        3905  +
    type Error = crate::model::fixed_length_string::ConstraintViolation;
        3906  +
        3907  +
    /// Constructs a `FixedLengthString` from an [`::std::string::String`], failing when the provided value does not satisfy the modeled constraints.
        3908  +
    fn try_from(value: ::std::string::String) -> ::std::result::Result<Self, Self::Error> {
        3909  +
        Self::check_length(&value)?;
        3910  +
        3911  +
        Ok(Self(value))
        3912  +
    }
        3913  +
}
        3914  +
impl crate::constrained::Constrained for FixedLengthString {
        3915  +
    type Unconstrained = ::std::string::String;
        3916  +
}
        3917  +
        3918  +
impl ::std::convert::From<::std::string::String>
        3919  +
    for crate::constrained::MaybeConstrained<crate::model::FixedLengthString>
        3920  +
{
        3921  +
    fn from(value: ::std::string::String) -> Self {
        3922  +
        Self::Unconstrained(value)
        3923  +
    }
        3924  +
}
        3925  +
        3926  +
impl ::std::fmt::Display for FixedLengthString {
        3927  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        3928  +
        self.0.fmt(f)
        3929  +
    }
        3930  +
}
        3931  +
        3932  +
impl ::std::convert::From<FixedLengthString> for ::std::string::String {
        3933  +
    fn from(value: FixedLengthString) -> Self {
        3934  +
        value.into_inner()
        3935  +
    }
        3936  +
}
        3937  +
        3938  +
#[allow(missing_docs)] // documentation missing in model
        3939  +
///
        3940  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        3941  +
/// [constraint traits]. Use [`MaxLengthString::try_from`] to construct values of this type.
        3942  +
///
        3943  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        3944  +
///
        3945  +
#[derive(
        3946  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        3947  +
)]
        3948  +
pub struct MaxLengthString(pub(crate) ::std::string::String);
        3949  +
impl MaxLengthString {
        3950  +
    /// Extracts a string slice containing the entire underlying `String`.
        3951  +
    pub fn as_str(&self) -> &str {
        3952  +
        &self.0
        3953  +
    }
        3954  +
        3955  +
    /// Returns an immutable reference to the underlying [`::std::string::String`].
        3956  +
    pub fn inner(&self) -> &::std::string::String {
        3957  +
        &self.0
        3958  +
    }
        3959  +
        3960  +
    /// Consumes the value, returning the underlying [`::std::string::String`].
        3961  +
    pub fn into_inner(self) -> ::std::string::String {
        3962  +
        self.0
        3963  +
    }
        3964  +
}
        3965  +
impl MaxLengthString {
        3966  +
    fn check_length(
        3967  +
        string: &str,
        3968  +
    ) -> ::std::result::Result<(), crate::model::max_length_string::ConstraintViolation> {
        3969  +
        let length = string.chars().count();
        3970  +
        3971  +
        if length <= 69 {
        3972  +
            Ok(())
        3973  +
        } else {
        3974  +
            Err(crate::model::max_length_string::ConstraintViolation::Length(length))
        3975  +
        }
        3976  +
    }
        3977  +
}
        3978  +
impl ::std::convert::TryFrom<::std::string::String> for MaxLengthString {
        3979  +
    type Error = crate::model::max_length_string::ConstraintViolation;
        3980  +
        3981  +
    /// Constructs a `MaxLengthString` from an [`::std::string::String`], failing when the provided value does not satisfy the modeled constraints.
        3982  +
    fn try_from(value: ::std::string::String) -> ::std::result::Result<Self, Self::Error> {
        3983  +
        Self::check_length(&value)?;
        3984  +
        3985  +
        Ok(Self(value))
        3986  +
    }
        3987  +
}
        3988  +
impl crate::constrained::Constrained for MaxLengthString {
        3989  +
    type Unconstrained = ::std::string::String;
        3990  +
}
        3991  +
        3992  +
impl ::std::convert::From<::std::string::String>
        3993  +
    for crate::constrained::MaybeConstrained<crate::model::MaxLengthString>
        3994  +
{
        3995  +
    fn from(value: ::std::string::String) -> Self {
        3996  +
        Self::Unconstrained(value)
        3997  +
    }
        3998  +
}
        3999  +
        4000  +
impl ::std::fmt::Display for MaxLengthString {
        4001  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        4002  +
        self.0.fmt(f)
        4003  +
    }
        4004  +
}
        4005  +
        4006  +
impl ::std::convert::From<MaxLengthString> for ::std::string::String {
        4007  +
    fn from(value: MaxLengthString) -> Self {
        4008  +
        value.into_inner()
        4009  +
    }
        4010  +
}
        4011  +
        4012  +
#[allow(missing_docs)] // documentation missing in model
        4013  +
///
        4014  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        4015  +
/// [constraint traits]. Use [`MinLengthString::try_from`] to construct values of this type.
        4016  +
///
        4017  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        4018  +
///
        4019  +
#[derive(
        4020  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        4021  +
)]
        4022  +
pub struct MinLengthString(pub(crate) ::std::string::String);
        4023  +
impl MinLengthString {
        4024  +
    /// Extracts a string slice containing the entire underlying `String`.
        4025  +
    pub fn as_str(&self) -> &str {
        4026  +
        &self.0
        4027  +
    }
        4028  +
        4029  +
    /// Returns an immutable reference to the underlying [`::std::string::String`].
        4030  +
    pub fn inner(&self) -> &::std::string::String {
        4031  +
        &self.0
        4032  +
    }
        4033  +
        4034  +
    /// Consumes the value, returning the underlying [`::std::string::String`].
        4035  +
    pub fn into_inner(self) -> ::std::string::String {
        4036  +
        self.0
        4037  +
    }
        4038  +
}
        4039  +
impl MinLengthString {
        4040  +
    fn check_length(
        4041  +
        string: &str,
        4042  +
    ) -> ::std::result::Result<(), crate::model::min_length_string::ConstraintViolation> {
        4043  +
        let length = string.chars().count();
        4044  +
        4045  +
        if 2 <= length {
        4046  +
            Ok(())
        4047  +
        } else {
        4048  +
            Err(crate::model::min_length_string::ConstraintViolation::Length(length))
        4049  +
        }
        4050  +
    }
        4051  +
}
        4052  +
impl ::std::convert::TryFrom<::std::string::String> for MinLengthString {
        4053  +
    type Error = crate::model::min_length_string::ConstraintViolation;
        4054  +
        4055  +
    /// Constructs a `MinLengthString` from an [`::std::string::String`], failing when the provided value does not satisfy the modeled constraints.
        4056  +
    fn try_from(value: ::std::string::String) -> ::std::result::Result<Self, Self::Error> {
        4057  +
        Self::check_length(&value)?;
        4058  +
        4059  +
        Ok(Self(value))
        4060  +
    }
        4061  +
}
        4062  +
impl crate::constrained::Constrained for MinLengthString {
        4063  +
    type Unconstrained = ::std::string::String;
        4064  +
}
        4065  +
        4066  +
impl ::std::convert::From<::std::string::String>
        4067  +
    for crate::constrained::MaybeConstrained<crate::model::MinLengthString>
        4068  +
{
        4069  +
    fn from(value: ::std::string::String) -> Self {
        4070  +
        Self::Unconstrained(value)
        4071  +
    }
        4072  +
}
        4073  +
        4074  +
impl ::std::fmt::Display for MinLengthString {
        4075  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        4076  +
        self.0.fmt(f)
        4077  +
    }
        4078  +
}
        4079  +
        4080  +
impl ::std::convert::From<MinLengthString> for ::std::string::String {
        4081  +
    fn from(value: MinLengthString) -> Self {
        4082  +
        value.into_inner()
        4083  +
    }
        4084  +
}
        4085  +
        4086  +
#[allow(missing_docs)] // documentation missing in model
        4087  +
#[derive(
        4088  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        4089  +
)]
        4090  +
pub enum ConstrainedUnionInOutput {
        4091  +
    #[allow(missing_docs)] // documentation missing in model
        4092  +
    Structure(crate::model::TransitivelyConstrainedStructureInOutput),
        4093  +
}
        4094  +
impl ConstrainedUnionInOutput {
        4095  +
    #[allow(irrefutable_let_patterns)]
        4096  +
    /// Tries to convert the enum instance into [`Structure`](crate::model::ConstrainedUnionInOutput::Structure), extracting the inner [`TransitivelyConstrainedStructureInOutput`](crate::model::TransitivelyConstrainedStructureInOutput).
        4097  +
    /// Returns `Err(&Self)` if it can't be converted.
        4098  +
    pub fn as_structure(
        4099  +
        &self,
        4100  +
    ) -> ::std::result::Result<&crate::model::TransitivelyConstrainedStructureInOutput, &Self> {
        4101  +
        if let ConstrainedUnionInOutput::Structure(val) = &self {
        4102  +
            ::std::result::Result::Ok(val)
        4103  +
        } else {
        4104  +
            ::std::result::Result::Err(self)
        4105  +
        }
        4106  +
    }
        4107  +
    /// Returns true if this is a [`Structure`](crate::model::ConstrainedUnionInOutput::Structure).
        4108  +
    pub fn is_structure(&self) -> bool {
        4109  +
        self.as_structure().is_ok()
        4110  +
    }
        4111  +
}
        4112  +
        4113  +
#[allow(missing_docs)] // documentation missing in model
        4114  +
#[derive(
        4115  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        4116  +
)]
        4117  +
pub struct TransitivelyConstrainedStructureInOutput {
        4118  +
    #[allow(missing_docs)] // documentation missing in model
        4119  +
    pub length_string: ::std::option::Option<crate::model::LengthString>,
        4120  +
}
        4121  +
impl TransitivelyConstrainedStructureInOutput {
        4122  +
    #[allow(missing_docs)] // documentation missing in model
        4123  +
    pub fn length_string(&self) -> ::std::option::Option<&crate::model::LengthString> {
        4124  +
        self.length_string.as_ref()
        4125  +
    }
        4126  +
}
        4127  +
impl TransitivelyConstrainedStructureInOutput {
        4128  +
    /// Creates a new builder-style object to manufacture [`TransitivelyConstrainedStructureInOutput`](crate::model::TransitivelyConstrainedStructureInOutput).
        4129  +
    pub fn builder() -> crate::model::transitively_constrained_structure_in_output::Builder {
        4130  +
        crate::model::transitively_constrained_structure_in_output::Builder::default()
        4131  +
    }
        4132  +
}
        4133  +
        4134  +
#[allow(missing_docs)] // documentation missing in model
        4135  +
///
        4136  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        4137  +
/// [constraint traits]. Use [`ConstrainedMapInOutput::try_from`] to construct values of this type.
        4138  +
///
        4139  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        4140  +
///
        4141  +
#[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
        4142  +
pub struct ConstrainedMapInOutput(
        4143  +
    pub(crate)  ::std::collections::HashMap<
        4144  +
        ::std::string::String,
        4145  +
        crate::model::TransitivelyConstrainedStructureInOutput,
        4146  +
    >,
        4147  +
);
        4148  +
impl ConstrainedMapInOutput {
        4149  +
    /// Returns an immutable reference to the underlying [`::std::collections::HashMap<::std::string::String, crate::model::TransitivelyConstrainedStructureInOutput>`].
        4150  +
    pub fn inner(
        4151  +
        &self,
        4152  +
    ) -> &::std::collections::HashMap<
        4153  +
        ::std::string::String,
        4154  +
        crate::model::TransitivelyConstrainedStructureInOutput,
        4155  +
    > {
        4156  +
        &self.0
        4157  +
    }
        4158  +
    /// Consumes the value, returning the underlying [`::std::collections::HashMap<::std::string::String, crate::model::TransitivelyConstrainedStructureInOutput>`].
        4159  +
    pub fn into_inner(
        4160  +
        self,
        4161  +
    ) -> ::std::collections::HashMap<
        4162  +
        ::std::string::String,
        4163  +
        crate::model::TransitivelyConstrainedStructureInOutput,
        4164  +
    > {
        4165  +
        self.0
        4166  +
    }
        4167  +
}
        4168  +
impl
        4169  +
    ::std::convert::TryFrom<
        4170  +
        ::std::collections::HashMap<
        4171  +
            ::std::string::String,
        4172  +
            crate::model::TransitivelyConstrainedStructureInOutput,
        4173  +
        >,
        4174  +
    > for ConstrainedMapInOutput
        4175  +
{
        4176  +
    type Error = crate::model::constrained_map_in_output::ConstraintViolation;
        4177  +
        4178  +
    /// Constructs a `ConstrainedMapInOutput` from an [`::std::collections::HashMap<::std::string::String, crate::model::TransitivelyConstrainedStructureInOutput>`], failing when the provided value does not satisfy the modeled constraints.
        4179  +
    fn try_from(
        4180  +
        value: ::std::collections::HashMap<
        4181  +
            ::std::string::String,
        4182  +
            crate::model::TransitivelyConstrainedStructureInOutput,
        4183  +
        >,
        4184  +
    ) -> ::std::result::Result<Self, Self::Error> {
        4185  +
        let length = value.len();
        4186  +
        if 69 <= length {
        4187  +
            Ok(Self(value))
        4188  +
        } else {
        4189  +
            Err(crate::model::constrained_map_in_output::ConstraintViolation::Length(length))
        4190  +
        }
        4191  +
    }
        4192  +
}
        4193  +
        4194  +
impl ::std::convert::From<ConstrainedMapInOutput>
        4195  +
    for ::std::collections::HashMap<
        4196  +
        ::std::string::String,
        4197  +
        crate::model::TransitivelyConstrainedStructureInOutput,
        4198  +
    >
        4199  +
{
        4200  +
    fn from(value: ConstrainedMapInOutput) -> Self {
        4201  +
        value.into_inner()
        4202  +
    }
        4203  +
}
        4204  +
        4205  +
#[allow(missing_docs)] // documentation missing in model
        4206  +
///
        4207  +
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
        4208  +
/// [constraint traits]. Use [`ConstrainedListInOutput::try_from`] to construct values of this type.
        4209  +
///
        4210  +
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
        4211  +
///
        4212  +
#[derive(
        4213  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        4214  +
)]
        4215  +
pub struct ConstrainedListInOutput(
        4216  +
    pub(crate) ::std::vec::Vec<crate::model::ConstrainedUnionInOutput>,
        4217  +
);
        4218  +
impl ConstrainedListInOutput {
        4219  +
    /// Returns an immutable reference to the underlying [`::std::vec::Vec<crate::model::ConstrainedUnionInOutput>`].
        4220  +
    pub fn inner(&self) -> &::std::vec::Vec<crate::model::ConstrainedUnionInOutput> {
        4221  +
        &self.0
        4222  +
    }
        4223  +
    /// Consumes the value, returning the underlying [`::std::vec::Vec<crate::model::ConstrainedUnionInOutput>`].
        4224  +
    pub fn into_inner(self) -> ::std::vec::Vec<crate::model::ConstrainedUnionInOutput> {
        4225  +
        self.0
        4226  +
    }
        4227  +
        4228  +
    fn check_length(
        4229  +
        length: usize,
        4230  +
    ) -> ::std::result::Result<(), crate::model::constrained_list_in_output::ConstraintViolation>
        4231  +
    {
        4232  +
        if 69 <= length {
        4233  +
            Ok(())
        4234  +
        } else {
        4235  +
            Err(crate::model::constrained_list_in_output::ConstraintViolation::Length(length))
        4236  +
        }
        4237  +
    }
        4238  +
}
        4239  +
impl ::std::convert::TryFrom<::std::vec::Vec<crate::model::ConstrainedUnionInOutput>>
        4240  +
    for ConstrainedListInOutput
        4241  +
{
        4242  +
    type Error = crate::model::constrained_list_in_output::ConstraintViolation;
        4243  +
        4244  +
    /// Constructs a `ConstrainedListInOutput` from an [`::std::vec::Vec<crate::model::ConstrainedUnionInOutput>`], failing when the provided value does not satisfy the modeled constraints.
        4245  +
    fn try_from(
        4246  +
        value: ::std::vec::Vec<crate::model::ConstrainedUnionInOutput>,
        4247  +
    ) -> ::std::result::Result<Self, Self::Error> {
        4248  +
        Self::check_length(value.len())?;
        4249  +
        4250  +
        Ok(Self(value))
        4251  +
    }
        4252  +
}
        4253  +
        4254  +
impl ::std::convert::From<ConstrainedListInOutput>
        4255  +
    for ::std::vec::Vec<crate::model::ConstrainedUnionInOutput>
        4256  +
{
        4257  +
    fn from(value: ConstrainedListInOutput) -> Self {
        4258  +
        value.into_inner()
        4259  +
    }
        4260  +
}
        4261  +
        4262  +
/// See [`ValidationExceptionField`](crate::model::ValidationExceptionField).
        4263  +
pub mod validation_exception_field {
        4264  +
        4265  +
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
        4266  +
    /// Holds one variant for each of the ways the builder can fail.
        4267  +
    #[non_exhaustive]
        4268  +
    #[allow(clippy::enum_variant_names)]
        4269  +
    pub enum ConstraintViolation {
        4270  +
        /// `path` was not provided but it is required when building `ValidationExceptionField`.
        4271  +
        MissingPath,
        4272  +
        /// `message` was not provided but it is required when building `ValidationExceptionField`.
        4273  +
        MissingMessage,
        4274  +
    }
        4275  +
    impl ::std::fmt::Display for ConstraintViolation {
        4276  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        4277  +
            match self {
        4278  +
                ConstraintViolation::MissingPath => write!(f, "`path` was not provided but it is required when building `ValidationExceptionField`"),
        4279  +
                ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationExceptionField`"),
        4280  +
            }
        4281  +
        }
        4282  +
    }
        4283  +
    impl ::std::error::Error for ConstraintViolation {}
        4284  +
    impl ::std::convert::TryFrom<Builder> for crate::model::ValidationExceptionField {
        4285  +
        type Error = ConstraintViolation;
        4286  +
        4287  +
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
        4288  +
            builder.build()
        4289  +
        }
        4290  +
    }
        4291  +
    /// A builder for [`ValidationExceptionField`](crate::model::ValidationExceptionField).
        4292  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        4293  +
    pub struct Builder {
        4294  +
        pub(crate) path: ::std::option::Option<::std::string::String>,
        4295  +
        pub(crate) message: ::std::option::Option<::std::string::String>,
        4296  +
    }
        4297  +
    impl Builder {
        4298  +
        /// A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
        4299  +
        pub fn path(mut self, input: ::std::string::String) -> Self {
        4300  +
            self.path = Some(input);
        4301  +
            self
        4302  +
        }
        4303  +
        /// A detailed description of the validation failure.
        4304  +
        pub fn message(mut self, input: ::std::string::String) -> Self {
        4305  +
            self.message = Some(input);
        4306  +
            self
        4307  +
        }
        4308  +
        /// Consumes the builder and constructs a [`ValidationExceptionField`](crate::model::ValidationExceptionField).
        4309  +
        ///
        4310  +
        /// The builder fails to construct a [`ValidationExceptionField`](crate::model::ValidationExceptionField) if a [`ConstraintViolation`] occurs.
        4311  +
        ///
        4312  +
        /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
        4313  +
        pub fn build(self) -> Result<crate::model::ValidationExceptionField, ConstraintViolation> {
        4314  +
            self.build_enforcing_all_constraints()
        4315  +
        }
        4316  +
        fn build_enforcing_all_constraints(
        4317  +
            self,
        4318  +
        ) -> Result<crate::model::ValidationExceptionField, ConstraintViolation> {
        4319  +
            Ok(crate::model::ValidationExceptionField {
        4320  +
                path: self.path.ok_or(ConstraintViolation::MissingPath)?,
        4321  +
                message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
        4322  +
            })
        4323  +
        }
        4324  +
    }
        4325  +
}
        4326  +
/// See [`EventStreamRegularMessage`](crate::model::EventStreamRegularMessage).
        4327  +
pub mod event_stream_regular_message {
        4328  +
        4329  +
    impl ::std::convert::From<Builder> for crate::model::EventStreamRegularMessage {
        4330  +
        fn from(builder: Builder) -> Self {
        4331  +
            builder.build()
        4332  +
        }
        4333  +
    }
        4334  +
    /// A builder for [`EventStreamRegularMessage`](crate::model::EventStreamRegularMessage).
        4335  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        4336  +
    pub struct Builder {
        4337  +
        pub(crate) message_content: ::std::option::Option<::std::string::String>,
        4338  +
    }
        4339  +
    impl Builder {
        4340  +
        #[allow(missing_docs)] // documentation missing in model
        4341  +
        pub fn message_content(
        4342  +
            mut self,
        4343  +
            input: ::std::option::Option<::std::string::String>,
        4344  +
        ) -> Self {
        4345  +
            self.message_content = input;
        4346  +
            self
        4347  +
        }
        4348  +
        #[allow(missing_docs)] // documentation missing in model
        4349  +
        pub(crate) fn set_message_content(
        4350  +
            mut self,
        4351  +
            input: Option<impl ::std::convert::Into<::std::string::String>>,
        4352  +
        ) -> Self {
        4353  +
            self.message_content = input.map(|v| v.into());
        4354  +
            self
        4355  +
        }
        4356  +
        /// Consumes the builder and constructs a [`EventStreamRegularMessage`](crate::model::EventStreamRegularMessage).
        4357  +
        pub fn build(self) -> crate::model::EventStreamRegularMessage {
        4358  +
            self.build_enforcing_all_constraints()
        4359  +
        }
        4360  +
        fn build_enforcing_all_constraints(self) -> crate::model::EventStreamRegularMessage {
        4361  +
            crate::model::EventStreamRegularMessage {
        4362  +
                message_content: self.message_content,
        4363  +
            }
        4364  +
        }
        4365  +
    }
        4366  +
}
        4367  +
pub mod map_of_enum_string {
        4368  +
        4369  +
    #[allow(clippy::enum_variant_names)]
        4370  +
    #[derive(Debug, PartialEq)]
        4371  +
    pub enum ConstraintViolation {
        4372  +
        #[doc(hidden)]
        4373  +
        Key(crate::model::enum_string::ConstraintViolation),
        4374  +
        #[doc(hidden)]
        4375  +
        Value(
        4376  +
            crate::model::EnumString,
        4377  +
            crate::model::enum_string::ConstraintViolation,
        4378  +
        ),
        4379  +
    }
        4380  +
        4381  +
    impl ::std::fmt::Display for ConstraintViolation {
        4382  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        4383  +
            match self {
        4384  +
                Self::Key(key_constraint_violation) => write!(f, "{}", key_constraint_violation),
        4385  +
                Self::Value(_, value_constraint_violation) => {
        4386  +
                    write!(f, "{}", value_constraint_violation)
        4387  +
                }
        4388  +
            }
        4389  +
        }
        4390  +
    }
        4391  +
        4392  +
    impl ::std::error::Error for ConstraintViolation {}
        4393  +
    impl ConstraintViolation {
        4394  +
        pub(crate) fn as_validation_exception_field(
        4395  +
            self,
        4396  +
            path: ::std::string::String,
        4397  +
        ) -> crate::model::ValidationExceptionField {
        4398  +
            match self {
        4399  +
                Self::Key(key_constraint_violation) => {
        4400  +
                    key_constraint_violation.as_validation_exception_field(path)
        4401  +
                }
        4402  +
                Self::Value(key, value_constraint_violation) => value_constraint_violation
        4403  +
                    .as_validation_exception_field(path + "/" + key.as_str()),
        4404  +
            }
        4405  +
        }
        4406  +
    }
        4407  +
}
        4408  +
/// See [`ConBMap`](crate::model::ConBMap).
        4409  +
pub mod con_b_map {
        4410  +
        4411  +
    #[allow(clippy::enum_variant_names)]
        4412  +
    #[derive(Debug, PartialEq)]
        4413  +
    pub enum ConstraintViolation {
        4414  +
        Length(usize),
        4415  +
        4416  +
        #[doc(hidden)]
        4417  +
        Value(
        4418  +
            ::std::string::String,
        4419  +
            crate::model::length_string::ConstraintViolation,
        4420  +
        ),
        4421  +
    }
        4422  +
        4423  +
    impl ::std::fmt::Display for ConstraintViolation {
        4424  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        4425  +
            match self {
        4426  +
                Self::Length(length) => {
        4427  +
                    write!(f, "Value with length {} provided for 'com.amazonaws.constraints#ConBMap' failed to satisfy constraint: Member must have length between 1 and 69, inclusive", length)
        4428  +
                }
        4429  +
        4430  +
                Self::Value(_, value_constraint_violation) => {
        4431  +
                    write!(f, "{}", value_constraint_violation)
        4432  +
                }
        4433  +
            }
        4434  +
        }
        4435  +
    }
        4436  +
        4437  +
    impl ::std::error::Error for ConstraintViolation {}
        4438  +
    impl ConstraintViolation {
        4439  +
        pub(crate) fn as_validation_exception_field(
        4440  +
            self,
        4441  +
            path: ::std::string::String,
        4442  +
        ) -> crate::model::ValidationExceptionField {
        4443  +
            match self {
        4444  +
            Self::Length(length) => crate::model::ValidationExceptionField {
        4445  +
                                        message: format!("Value with length {} at '{}' failed to satisfy constraint: Member must have length between 1 and 69, inclusive", length, &path),
        4446  +
                                        path,
        4447  +
                                    },
        4448  +
            Self::Value(key, value_constraint_violation) => value_constraint_violation.as_validation_exception_field(path + "/" + key.as_str()),
        4449  +
        }
        4450  +
        }
        4451  +
    }
        4452  +
}
        4453  +
/// See [`LengthString`](crate::model::LengthString).
        4454  +
pub mod length_string {
        4455  +
        4456  +
    #[derive(Debug, PartialEq)]
        4457  +
    pub enum ConstraintViolation {
        4458  +
        /// Error when a string doesn't satisfy its `@length` requirements.
        4459  +
        Length(usize),
        4460  +
    }
        4461  +
        4462  +
    impl ::std::fmt::Display for ConstraintViolation {
        4463  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        4464  +
            let message = match self {
        4465  +
                Self::Length(length) => {
        4466  +
                    format!("Value with length {} provided for 'com.amazonaws.constraints#LengthString' failed to satisfy constraint: Member must have length between 2 and 69, inclusive", length)
        4467  +
                }
        4468  +
            };
        4469  +
            write!(f, "{message}")
        4470  +
        }
        4471  +
    }
        4472  +
        4473  +
    impl ::std::error::Error for ConstraintViolation {}
        4474  +
    impl ConstraintViolation {
        4475  +
        pub(crate) fn as_validation_exception_field(
        4476  +
            self,
        4477  +
            path: ::std::string::String,
        4478  +
        ) -> crate::model::ValidationExceptionField {
        4479  +
            match self {
        4480  +
                            Self::Length(length) => crate::model::ValidationExceptionField {
        4481  +
                            message: format!("Value with length {} at '{}' failed to satisfy constraint: Member must have length between 2 and 69, inclusive", length, &path),
        4482  +
                            path,
        4483  +
                        },
        4484  +
                        }
        4485  +
        }
        4486  +
    }
        4487  +
}
        4488  +
pub mod map_of_list_of_length_pattern_string {
        4489  +
        4490  +
    #[allow(clippy::enum_variant_names)]
        4491  +
    #[derive(Debug, PartialEq)]
        4492  +
    pub enum ConstraintViolation {
        4493  +
        #[doc(hidden)]
        4494  +
        Key(crate::model::length_pattern_string::ConstraintViolation),
        4495  +
        #[doc(hidden)]
        4496  +
        Value(
        4497  +
            crate::model::LengthPatternString,
        4498  +
            crate::model::list_of_length_pattern_string::ConstraintViolation,
        4499  +
        ),
        4500  +
    }
        4501  +
        4502  +
    impl ::std::fmt::Display for ConstraintViolation {
        4503  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        4504  +
            match self {
        4505  +
                Self::Key(key_constraint_violation) => write!(f, "{}", key_constraint_violation),
        4506  +
                Self::Value(_, value_constraint_violation) => {
        4507  +
                    write!(f, "{}", value_constraint_violation)
        4508  +
                }
        4509  +
            }
        4510  +
        }
        4511  +
    }
        4512  +
        4513  +
    impl ::std::error::Error for ConstraintViolation {}
        4514  +
    impl ConstraintViolation {
        4515  +
        pub(crate) fn as_validation_exception_field(
        4516  +
            self,
        4517  +
            path: ::std::string::String,
        4518  +
        ) -> crate::model::ValidationExceptionField {
        4519  +
            match self {
        4520  +
                Self::Key(key_constraint_violation) => {
        4521  +
                    key_constraint_violation.as_validation_exception_field(path)
        4522  +
                }
        4523  +
                Self::Value(key, value_constraint_violation) => value_constraint_violation
        4524  +
                    .as_validation_exception_field(path + "/" + key.as_str()),
        4525  +
            }
        4526  +
        }
        4527  +
    }
        4528  +
}
        4529  +
pub mod list_of_length_pattern_string {
        4530  +
        4531  +
    #[allow(clippy::enum_variant_names)]
        4532  +
    #[derive(Debug, PartialEq)]
        4533  +
    pub enum ConstraintViolation {
        4534  +
        /// Constraint violation error when an element doesn't satisfy its own constraints.
        4535  +
        /// The first component of the tuple is the index in the collection where the
        4536  +
        /// first constraint violation was found.
        4537  +
        #[doc(hidden)]
        4538  +
        Member(
        4539  +
            usize,
        4540  +
            crate::model::length_pattern_string::ConstraintViolation,
        4541  +
        ),
        4542  +
    }
        4543  +
        4544  +
    impl ::std::fmt::Display for ConstraintViolation {
        4545  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        4546  +
            let message = match self {
        4547  +
                Self::Member(index, failing_member) => format!(
        4548  +
                    "Value at index {index} failed to satisfy constraint. {}",
        4549  +
                    failing_member
        4550  +
                ),
        4551  +
            };
        4552  +
            write!(f, "{message}")
        4553  +
        }
        4554  +
    }
        4555  +
        4556  +
    impl ::std::error::Error for ConstraintViolation {}
        4557  +
    impl ConstraintViolation {
        4558  +
        pub(crate) fn as_validation_exception_field(
        4559  +
            self,
        4560  +
            path: ::std::string::String,
        4561  +
        ) -> crate::model::ValidationExceptionField {
        4562  +
            match self {
        4563  +
                Self::Member(index, member_constraint_violation) => member_constraint_violation
        4564  +
                    .as_validation_exception_field(path + "/" + &index.to_string()),
        4565  +
            }
        4566  +
        }
        4567  +
    }
        4568  +
}
        4569  +
/// See [`LengthPatternString`](crate::model::LengthPatternString).
        4570  +
pub mod length_pattern_string {
        4571  +
        4572  +
    #[derive(Debug, PartialEq)]
        4573  +
    pub enum ConstraintViolation {
        4574  +
        /// Error when a string doesn't satisfy its `@length` requirements.
        4575  +
        Length(usize),
        4576  +
        /// Error when a string doesn't satisfy its `@pattern`.
        4577  +
        /// Contains the String that failed the pattern.
        4578  +
        Pattern(String),
        4579  +
    }
        4580  +
        4581  +
    impl ::std::fmt::Display for ConstraintViolation {
        4582  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        4583  +
            let message = match self {
        4584  +
                Self::Length(length) => {
        4585  +
                    format!("Value with length {} provided for 'com.amazonaws.constraints#LengthPatternString' failed to satisfy constraint: Member must have length between 5 and 10, inclusive", length)
        4586  +
                }
        4587  +
                Self::Pattern(_) => {
        4588  +
                    format!(
        4589  +
                        r#"Value provided for `com.amazonaws.constraints#LengthPatternString` failed to satisfy the constraint: Member must match the regular expression pattern: {}"#,
        4590  +
                        r#"[a-f0-5]*"#
        4591  +
                    )
        4592  +
                }
        4593  +
            };
        4594  +
            write!(f, "{message}")
        4595  +
        }
        4596  +
    }
        4597  +
        4598  +
    impl ::std::error::Error for ConstraintViolation {}
        4599  +
    impl ConstraintViolation {
        4600  +
        pub(crate) fn as_validation_exception_field(
        4601  +
            self,
        4602  +
            path: ::std::string::String,
        4603  +
        ) -> crate::model::ValidationExceptionField {
        4604  +
            match self {
        4605  +
                            Self::Length(length) => crate::model::ValidationExceptionField {
        4606  +
                            message: format!("Value with length {} at '{}' failed to satisfy constraint: Member must have length between 5 and 10, inclusive", length, &path),
        4607  +
                            path,
        4608  +
                        },
        4609  +
    
        4610  +
    #[allow(unused_variables)]
        4611  +
    Self::Pattern(_) => crate::model::ValidationExceptionField {
        4612  +
                            message: format!("Value at '{}' failed to satisfy constraint: Member must satisfy regular expression pattern: {}", &path, r#"[a-f0-5]*"#),
        4613  +
                            path
        4614  +
                        },
        4615  +
                        }
        4616  +
        }
        4617  +
    }
        4618  +
}
        4619  +
pub mod map_of_length_pattern_string {
        4620  +
        4621  +
    #[allow(clippy::enum_variant_names)]
        4622  +
    #[derive(Debug, PartialEq)]
        4623  +
    pub enum ConstraintViolation {
        4624  +
        #[doc(hidden)]
        4625  +
        Key(crate::model::length_pattern_string::ConstraintViolation),
        4626  +
        #[doc(hidden)]
        4627  +
        Value(
        4628  +
            crate::model::LengthPatternString,
        4629  +
            crate::model::length_pattern_string::ConstraintViolation,
        4630  +
        ),
        4631  +
    }
        4632  +
        4633  +
    impl ::std::fmt::Display for ConstraintViolation {
        4634  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        4635  +
            match self {
        4636  +
                Self::Key(key_constraint_violation) => write!(f, "{}", key_constraint_violation),
        4637  +
                Self::Value(_, value_constraint_violation) => {
        4638  +
                    write!(f, "{}", value_constraint_violation)
        4639  +
                }
        4640  +
            }
        4641  +
        }
        4642  +
    }
        4643  +
        4644  +
    impl ::std::error::Error for ConstraintViolation {}
        4645  +
    impl ConstraintViolation {
        4646  +
        pub(crate) fn as_validation_exception_field(
        4647  +
            self,
        4648  +
            path: ::std::string::String,
        4649  +
        ) -> crate::model::ValidationExceptionField {
        4650  +
            match self {
        4651  +
                Self::Key(key_constraint_violation) => {
        4652  +
                    key_constraint_violation.as_validation_exception_field(path)
        4653  +
                }
        4654  +
                Self::Value(key, value_constraint_violation) => value_constraint_violation
        4655  +
                    .as_validation_exception_field(path + "/" + key.as_str()),
        4656  +
            }
        4657  +
        }
        4658  +
    }
        4659  +
}
        4660  +
pub mod map_of_list_of_pattern_string {
        4661  +
        4662  +
    #[allow(clippy::enum_variant_names)]
        4663  +
    #[derive(Debug, PartialEq)]
        4664  +
    pub enum ConstraintViolation {
        4665  +
        #[doc(hidden)]
        4666  +
        Key(crate::model::pattern_string::ConstraintViolation),
        4667  +
        #[doc(hidden)]
        4668  +
        Value(
        4669  +
            crate::model::PatternString,
        4670  +
            crate::model::list_of_pattern_string::ConstraintViolation,
        4671  +
        ),
        4672  +
    }
        4673  +
        4674  +
    impl ::std::fmt::Display for ConstraintViolation {
        4675  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        4676  +
            match self {
        4677  +
                Self::Key(key_constraint_violation) => write!(f, "{}", key_constraint_violation),
        4678  +
                Self::Value(_, value_constraint_violation) => {
        4679  +
                    write!(f, "{}", value_constraint_violation)
        4680  +
                }
        4681  +
            }
        4682  +
        }
        4683  +
    }
        4684  +
        4685  +
    impl ::std::error::Error for ConstraintViolation {}
        4686  +
    impl ConstraintViolation {
        4687  +
        pub(crate) fn as_validation_exception_field(
        4688  +
            self,
        4689  +
            path: ::std::string::String,
        4690  +
        ) -> crate::model::ValidationExceptionField {
        4691  +
            match self {
        4692  +
                Self::Key(key_constraint_violation) => {
        4693  +
                    key_constraint_violation.as_validation_exception_field(path)
        4694  +
                }
        4695  +
                Self::Value(key, value_constraint_violation) => value_constraint_violation
        4696  +
                    .as_validation_exception_field(path + "/" + key.as_str()),
        4697  +
            }
        4698  +
        }
        4699  +
    }
        4700  +
}
        4701  +
pub mod list_of_pattern_string {
        4702  +
        4703  +
    #[allow(clippy::enum_variant_names)]
        4704  +
    #[derive(Debug, PartialEq)]
        4705  +
    pub enum ConstraintViolation {
        4706  +
        /// Constraint violation error when an element doesn't satisfy its own constraints.
        4707  +
        /// The first component of the tuple is the index in the collection where the
        4708  +
        /// first constraint violation was found.
        4709  +
        #[doc(hidden)]
        4710  +
        Member(usize, crate::model::pattern_string::ConstraintViolation),
        4711  +
    }
        4712  +
        4713  +
    impl ::std::fmt::Display for ConstraintViolation {
        4714  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        4715  +
            let message = match self {
        4716  +
                Self::Member(index, failing_member) => format!(
        4717  +
                    "Value at index {index} failed to satisfy constraint. {}",
        4718  +
                    failing_member
        4719  +
                ),
        4720  +
            };
        4721  +
            write!(f, "{message}")
        4722  +
        }
        4723  +
    }
        4724  +
        4725  +
    impl ::std::error::Error for ConstraintViolation {}
        4726  +
    impl ConstraintViolation {
        4727  +
        pub(crate) fn as_validation_exception_field(
        4728  +
            self,
        4729  +
            path: ::std::string::String,
        4730  +
        ) -> crate::model::ValidationExceptionField {
        4731  +
            match self {
        4732  +
                Self::Member(index, member_constraint_violation) => member_constraint_violation
        4733  +
                    .as_validation_exception_field(path + "/" + &index.to_string()),
        4734  +
            }
        4735  +
        }
        4736  +
    }
        4737  +
}
        4738  +
/// See [`PatternString`](crate::model::PatternString).
        4739  +
pub mod pattern_string {
        4740  +
        4741  +
    #[derive(Debug, PartialEq)]
        4742  +
    pub enum ConstraintViolation {
        4743  +
        /// Error when a string doesn't satisfy its `@pattern`.
        4744  +
        /// Contains the String that failed the pattern.
        4745  +
        Pattern(String),
        4746  +
    }
        4747  +
        4748  +
    impl ::std::fmt::Display for ConstraintViolation {
        4749  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        4750  +
            let message = match self {
        4751  +
                Self::Pattern(_) => {
        4752  +
                    format!(
        4753  +
                        r#"Value provided for `com.amazonaws.constraints#PatternString` failed to satisfy the constraint: Member must match the regular expression pattern: {}"#,
        4754  +
                        r#"[a-d]{5}"#
        4755  +
                    )
        4756  +
                }
        4757  +
            };
        4758  +
            write!(f, "{message}")
        4759  +
        }
        4760  +
    }
        4761  +
        4762  +
    impl ::std::error::Error for ConstraintViolation {}
        4763  +
    impl ConstraintViolation {
        4764  +
        pub(crate) fn as_validation_exception_field(
        4765  +
            self,
        4766  +
            path: ::std::string::String,
        4767  +
        ) -> crate::model::ValidationExceptionField {
        4768  +
            match self {
        4769  +
                            #[allow(unused_variables)]
        4770  +
    Self::Pattern(_) => crate::model::ValidationExceptionField {
        4771  +
                            message: format!("Value at '{}' failed to satisfy constraint: Member must satisfy regular expression pattern: {}", &path, r#"[a-d]{5}"#),
        4772  +
                            path
        4773  +
                        },
        4774  +
                        }
        4775  +
        }
        4776  +
    }
        4777  +
}
        4778  +
pub mod map_of_pattern_string {
        4779  +
        4780  +
    #[allow(clippy::enum_variant_names)]
        4781  +
    #[derive(Debug, PartialEq)]
        4782  +
    pub enum ConstraintViolation {
        4783  +
        #[doc(hidden)]
        4784  +
        Key(crate::model::pattern_string::ConstraintViolation),
        4785  +
        #[doc(hidden)]
        4786  +
        Value(
        4787  +
            crate::model::PatternString,
        4788  +
            crate::model::pattern_string::ConstraintViolation,
        4789  +
        ),
        4790  +
    }
        4791  +
        4792  +
    impl ::std::fmt::Display for ConstraintViolation {
        4793  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        4794  +
            match self {
        4795  +
                Self::Key(key_constraint_violation) => write!(f, "{}", key_constraint_violation),
        4796  +
                Self::Value(_, value_constraint_violation) => {
        4797  +
                    write!(f, "{}", value_constraint_violation)
        4798  +
                }
        4799  +
            }
        4800  +
        }
        4801  +
    }
        4802  +
        4803  +
    impl ::std::error::Error for ConstraintViolation {}
        4804  +
    impl ConstraintViolation {
        4805  +
        pub(crate) fn as_validation_exception_field(
        4806  +
            self,
        4807  +
            path: ::std::string::String,
        4808  +
        ) -> crate::model::ValidationExceptionField {
        4809  +
            match self {
        4810  +
                Self::Key(key_constraint_violation) => {
        4811  +
                    key_constraint_violation.as_validation_exception_field(path)
        4812  +
                }
        4813  +
                Self::Value(key, value_constraint_violation) => value_constraint_violation
        4814  +
                    .as_validation_exception_field(path + "/" + key.as_str()),
        4815  +
            }
        4816  +
        }
        4817  +
    }
        4818  +
}
        4819  +
pub mod map_of_list_of_enum_string {
        4820  +
        4821  +
    #[allow(clippy::enum_variant_names)]
        4822  +
    #[derive(Debug, PartialEq)]
        4823  +
    pub enum ConstraintViolation {
        4824  +
        #[doc(hidden)]
        4825  +
        Key(crate::model::enum_string::ConstraintViolation),
        4826  +
        #[doc(hidden)]
        4827  +
        Value(
        4828  +
            crate::model::EnumString,
        4829  +
            crate::model::list_of_enum_string::ConstraintViolation,
        4830  +
        ),
        4831  +
    }
        4832  +
        4833  +
    impl ::std::fmt::Display for ConstraintViolation {
        4834  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        4835  +
            match self {
        4836  +
                Self::Key(key_constraint_violation) => write!(f, "{}", key_constraint_violation),
        4837  +
                Self::Value(_, value_constraint_violation) => {
        4838  +
                    write!(f, "{}", value_constraint_violation)
        4839  +
                }
        4840  +
            }
        4841  +
        }
        4842  +
    }
        4843  +
        4844  +
    impl ::std::error::Error for ConstraintViolation {}
        4845  +
    impl ConstraintViolation {
        4846  +
        pub(crate) fn as_validation_exception_field(
        4847  +
            self,
        4848  +
            path: ::std::string::String,
        4849  +
        ) -> crate::model::ValidationExceptionField {
        4850  +
            match self {
        4851  +
                Self::Key(key_constraint_violation) => {
        4852  +
                    key_constraint_violation.as_validation_exception_field(path)
        4853  +
                }
        4854  +
                Self::Value(key, value_constraint_violation) => value_constraint_violation
        4855  +
                    .as_validation_exception_field(path + "/" + key.as_str()),
        4856  +
            }
        4857  +
        }
        4858  +
    }
        4859  +
}
        4860  +
pub mod list_of_enum_string {
        4861  +
        4862  +
    #[allow(clippy::enum_variant_names)]
        4863  +
    #[derive(Debug, PartialEq)]
        4864  +
    pub enum ConstraintViolation {
        4865  +
        /// Constraint violation error when an element doesn't satisfy its own constraints.
        4866  +
        /// The first component of the tuple is the index in the collection where the
        4867  +
        /// first constraint violation was found.
        4868  +
        #[doc(hidden)]
        4869  +
        Member(usize, crate::model::enum_string::ConstraintViolation),
        4870  +
    }
        4871  +
        4872  +
    impl ::std::fmt::Display for ConstraintViolation {
        4873  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        4874  +
            let message = match self {
        4875  +
                Self::Member(index, failing_member) => format!(
        4876  +
                    "Value at index {index} failed to satisfy constraint. {}",
        4877  +
                    failing_member
        4878  +
                ),
        4879  +
            };
        4880  +
            write!(f, "{message}")
        4881  +
        }
        4882  +
    }
        4883  +
        4884  +
    impl ::std::error::Error for ConstraintViolation {}
        4885  +
    impl ConstraintViolation {
        4886  +
        pub(crate) fn as_validation_exception_field(
        4887  +
            self,
        4888  +
            path: ::std::string::String,
        4889  +
        ) -> crate::model::ValidationExceptionField {
        4890  +
            match self {
        4891  +
                Self::Member(index, member_constraint_violation) => member_constraint_violation
        4892  +
                    .as_validation_exception_field(path + "/" + &index.to_string()),
        4893  +
            }
        4894  +
        }
        4895  +
    }
        4896  +
}
        4897  +
pub mod map_of_length_list_of_pattern_string {
        4898  +
        4899  +
    #[allow(clippy::enum_variant_names)]
        4900  +
    #[derive(Debug, PartialEq)]
        4901  +
    pub enum ConstraintViolation {
        4902  +
        #[doc(hidden)]
        4903  +
        Key(crate::model::pattern_string::ConstraintViolation),
        4904  +
        #[doc(hidden)]
        4905  +
        Value(
        4906  +
            crate::model::PatternString,
        4907  +
            crate::model::length_list_of_pattern_string::ConstraintViolation,
        4908  +
        ),
        4909  +
    }
        4910  +
        4911  +
    impl ::std::fmt::Display for ConstraintViolation {
        4912  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        4913  +
            match self {
        4914  +
                Self::Key(key_constraint_violation) => write!(f, "{}", key_constraint_violation),
        4915  +
                Self::Value(_, value_constraint_violation) => {
        4916  +
                    write!(f, "{}", value_constraint_violation)
        4917  +
                }
        4918  +
            }
        4919  +
        }
        4920  +
    }
        4921  +
        4922  +
    impl ::std::error::Error for ConstraintViolation {}
        4923  +
    impl ConstraintViolation {
        4924  +
        pub(crate) fn as_validation_exception_field(
        4925  +
            self,
        4926  +
            path: ::std::string::String,
        4927  +
        ) -> crate::model::ValidationExceptionField {
        4928  +
            match self {
        4929  +
                Self::Key(key_constraint_violation) => {
        4930  +
                    key_constraint_violation.as_validation_exception_field(path)
        4931  +
                }
        4932  +
                Self::Value(key, value_constraint_violation) => value_constraint_violation
        4933  +
                    .as_validation_exception_field(path + "/" + key.as_str()),
        4934  +
            }
        4935  +
        }
        4936  +
    }
        4937  +
}
        4938  +
/// See [`LengthListOfPatternString`](crate::model::LengthListOfPatternString).
        4939  +
pub mod length_list_of_pattern_string {
        4940  +
        4941  +
    #[allow(clippy::enum_variant_names)]
        4942  +
    #[derive(Debug, PartialEq)]
        4943  +
    pub enum ConstraintViolation {
        4944  +
        /// Constraint violation error when the list doesn't have the required length
        4945  +
        Length(usize),
        4946  +
        /// Constraint violation error when an element doesn't satisfy its own constraints.
        4947  +
        /// The first component of the tuple is the index in the collection where the
        4948  +
        /// first constraint violation was found.
        4949  +
        #[doc(hidden)]
        4950  +
        Member(usize, crate::model::pattern_string::ConstraintViolation),
        4951  +
    }
        4952  +
        4953  +
    impl ::std::fmt::Display for ConstraintViolation {
        4954  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        4955  +
            let message = match self {
        4956  +
                Self::Length(length) => {
        4957  +
                    format!("Value with length {} provided for 'com.amazonaws.constraints#LengthListOfPatternString' failed to satisfy constraint: Member must have length between 12 and 39, inclusive", length)
        4958  +
                }
        4959  +
                Self::Member(index, failing_member) => format!(
        4960  +
                    "Value at index {index} failed to satisfy constraint. {}",
        4961  +
                    failing_member
        4962  +
                ),
        4963  +
            };
        4964  +
            write!(f, "{message}")
        4965  +
        }
        4966  +
    }
        4967  +
        4968  +
    impl ::std::error::Error for ConstraintViolation {}
        4969  +
    impl ConstraintViolation {
        4970  +
        pub(crate) fn as_validation_exception_field(
        4971  +
            self,
        4972  +
            path: ::std::string::String,
        4973  +
        ) -> crate::model::ValidationExceptionField {
        4974  +
            match self {
        4975  +
                        Self::Length(length) => crate::model::ValidationExceptionField {
        4976  +
                                message: format!("Value with length {} at '{}' failed to satisfy constraint: Member must have length between 12 and 39, inclusive", length, &path),
        4977  +
                                path,
        4978  +
                            },
        4979  +
    Self::Member(index, member_constraint_violation) =>
        4980  +
                        member_constraint_violation.as_validation_exception_field(path + "/" + &index.to_string())
        4981  +
                    }
        4982  +
        }
        4983  +
    }
        4984  +
}
        4985  +
pub mod map_of_set_of_length_string {
        4986  +
        4987  +
    #[allow(clippy::enum_variant_names)]
        4988  +
    #[derive(Debug, PartialEq)]
        4989  +
    pub enum ConstraintViolation {
        4990  +
        #[doc(hidden)]
        4991  +
        Key(crate::model::length_string::ConstraintViolation),
        4992  +
        #[doc(hidden)]
        4993  +
        Value(
        4994  +
            crate::model::LengthString,
        4995  +
            crate::model::set_of_length_string::ConstraintViolation,
        4996  +
        ),
        4997  +
    }
        4998  +
        4999  +
    impl ::std::fmt::Display for ConstraintViolation {
        5000  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        5001  +
            match self {
        5002  +
                Self::Key(key_constraint_violation) => write!(f, "{}", key_constraint_violation),
        5003  +
                Self::Value(_, value_constraint_violation) => {
        5004  +
                    write!(f, "{}", value_constraint_violation)
        5005  +
                }
        5006  +
            }
        5007  +
        }
        5008  +
    }
        5009  +
        5010  +
    impl ::std::error::Error for ConstraintViolation {}
        5011  +
    impl ConstraintViolation {
        5012  +
        pub(crate) fn as_validation_exception_field(
        5013  +
            self,
        5014  +
            path: ::std::string::String,
        5015  +
        ) -> crate::model::ValidationExceptionField {
        5016  +
            match self {
        5017  +
                Self::Key(key_constraint_violation) => {
        5018  +
                    key_constraint_violation.as_validation_exception_field(path)
        5019  +
                }
        5020  +
                Self::Value(key, value_constraint_violation) => value_constraint_violation
        5021  +
                    .as_validation_exception_field(path + "/" + key.as_str()),
        5022  +
            }
        5023  +
        }
        5024  +
    }
        5025  +
}
        5026  +
/// See [`SetOfLengthString`](crate::model::SetOfLengthString).
        5027  +
pub mod set_of_length_string {
        5028  +
        5029  +
    #[allow(clippy::enum_variant_names)]
        5030  +
    #[derive(Debug, PartialEq)]
        5031  +
    pub enum ConstraintViolation {
        5032  +
        /// Constraint violation error when the list does not contain unique items
        5033  +
        UniqueItems {
        5034  +
            /// A vector of indices into `original` pointing to all duplicate items. This vector has
        5035  +
            /// at least two elements.
        5036  +
            /// More specifically, for every element `idx_1` in `duplicate_indices`, there exists another
        5037  +
            /// distinct element `idx_2` such that `original[idx_1] == original[idx_2]` is `true`.
        5038  +
            /// Nothing is guaranteed about the order of the indices.
        5039  +
            duplicate_indices: ::std::vec::Vec<usize>,
        5040  +
            /// The original vector, that contains duplicate items.
        5041  +
            original: ::std::vec::Vec<crate::model::LengthString>,
        5042  +
        },
        5043  +
        /// Constraint violation error when an element doesn't satisfy its own constraints.
        5044  +
        /// The first component of the tuple is the index in the collection where the
        5045  +
        /// first constraint violation was found.
        5046  +
        #[doc(hidden)]
        5047  +
        Member(usize, crate::model::length_string::ConstraintViolation),
        5048  +
    }
        5049  +
        5050  +
    impl ::std::fmt::Display for ConstraintViolation {
        5051  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        5052  +
            let message = match self {
        5053  +
                                Self::UniqueItems { duplicate_indices, .. } =>
        5054  +
                            format!("Value with repeated values at indices {:?} provided for 'com.amazonaws.constraints#SetOfLengthString' failed to satisfy constraint: Member must have unique values", &duplicate_indices),
        5055  +
    Self::Member(index, failing_member) => format!("Value at index {index} failed to satisfy constraint. {}",
        5056  +
                           failing_member)
        5057  +
                            };
        5058  +
            write!(f, "{message}")
        5059  +
        }
        5060  +
    }
        5061  +
        5062  +
    impl ::std::error::Error for ConstraintViolation {}
        5063  +
    impl ConstraintViolation {
        5064  +
        pub(crate) fn as_validation_exception_field(
        5065  +
            self,
        5066  +
            path: ::std::string::String,
        5067  +
        ) -> crate::model::ValidationExceptionField {
        5068  +
            match self {
        5069  +
                        Self::UniqueItems { duplicate_indices, .. } =>
        5070  +
                                crate::model::ValidationExceptionField {
        5071  +
                                    message: format!("Value with repeated values at indices {:?} at '{}' failed to satisfy constraint: Member must have unique values", &duplicate_indices, &path),
        5072  +
                                    path,
        5073  +
                                },
        5074  +
    Self::Member(index, member_constraint_violation) =>
        5075  +
                        member_constraint_violation.as_validation_exception_field(path + "/" + &index.to_string())
        5076  +
                    }
        5077  +
        }
        5078  +
    }
        5079  +
}
        5080  +
pub mod map_of_list_of_length_string {
        5081  +
        5082  +
    #[allow(clippy::enum_variant_names)]
        5083  +
    #[derive(Debug, PartialEq)]
        5084  +
    pub enum ConstraintViolation {
        5085  +
        #[doc(hidden)]
        5086  +
        Key(crate::model::length_string::ConstraintViolation),
        5087  +
        #[doc(hidden)]
        5088  +
        Value(
        5089  +
            crate::model::LengthString,
        5090  +
            crate::model::list_of_length_string::ConstraintViolation,
        5091  +
        ),
        5092  +
    }
        5093  +
        5094  +
    impl ::std::fmt::Display for ConstraintViolation {
        5095  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        5096  +
            match self {
        5097  +
                Self::Key(key_constraint_violation) => write!(f, "{}", key_constraint_violation),
        5098  +
                Self::Value(_, value_constraint_violation) => {
        5099  +
                    write!(f, "{}", value_constraint_violation)
        5100  +
                }
        5101  +
            }
        5102  +
        }
        5103  +
    }
        5104  +
        5105  +
    impl ::std::error::Error for ConstraintViolation {}
        5106  +
    impl ConstraintViolation {
        5107  +
        pub(crate) fn as_validation_exception_field(
        5108  +
            self,
        5109  +
            path: ::std::string::String,
        5110  +
        ) -> crate::model::ValidationExceptionField {
        5111  +
            match self {
        5112  +
                Self::Key(key_constraint_violation) => {
        5113  +
                    key_constraint_violation.as_validation_exception_field(path)
        5114  +
                }
        5115  +
                Self::Value(key, value_constraint_violation) => value_constraint_violation
        5116  +
                    .as_validation_exception_field(path + "/" + key.as_str()),
        5117  +
            }
        5118  +
        }
        5119  +
    }
        5120  +
}
        5121  +
pub mod list_of_length_string {
        5122  +
        5123  +
    #[allow(clippy::enum_variant_names)]
        5124  +
    #[derive(Debug, PartialEq)]
        5125  +
    pub enum ConstraintViolation {
        5126  +
        /// Constraint violation error when an element doesn't satisfy its own constraints.
        5127  +
        /// The first component of the tuple is the index in the collection where the
        5128  +
        /// first constraint violation was found.
        5129  +
        #[doc(hidden)]
        5130  +
        Member(usize, crate::model::length_string::ConstraintViolation),
        5131  +
    }
        5132  +
        5133  +
    impl ::std::fmt::Display for ConstraintViolation {
        5134  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        5135  +
            let message = match self {
        5136  +
                Self::Member(index, failing_member) => format!(
        5137  +
                    "Value at index {index} failed to satisfy constraint. {}",
        5138  +
                    failing_member
        5139  +
                ),
        5140  +
            };
        5141  +
            write!(f, "{message}")
        5142  +
        }
        5143  +
    }
        5144  +
        5145  +
    impl ::std::error::Error for ConstraintViolation {}
        5146  +
    impl ConstraintViolation {
        5147  +
        pub(crate) fn as_validation_exception_field(
        5148  +
            self,
        5149  +
            path: ::std::string::String,
        5150  +
        ) -> crate::model::ValidationExceptionField {
        5151  +
            match self {
        5152  +
                Self::Member(index, member_constraint_violation) => member_constraint_violation
        5153  +
                    .as_validation_exception_field(path + "/" + &index.to_string()),
        5154  +
            }
        5155  +
        }
        5156  +
    }
        5157  +
}
        5158  +
pub mod map_of_length_string {
        5159  +
        5160  +
    #[allow(clippy::enum_variant_names)]
        5161  +
    #[derive(Debug, PartialEq)]
        5162  +
    pub enum ConstraintViolation {
        5163  +
        #[doc(hidden)]
        5164  +
        Key(crate::model::length_string::ConstraintViolation),
        5165  +
        #[doc(hidden)]
        5166  +
        Value(
        5167  +
            crate::model::LengthString,
        5168  +
            crate::model::length_string::ConstraintViolation,
        5169  +
        ),
        5170  +
    }
        5171  +
        5172  +
    impl ::std::fmt::Display for ConstraintViolation {
        5173  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        5174  +
            match self {
        5175  +
                Self::Key(key_constraint_violation) => write!(f, "{}", key_constraint_violation),
        5176  +
                Self::Value(_, value_constraint_violation) => {
        5177  +
                    write!(f, "{}", value_constraint_violation)
        5178  +
                }
        5179  +
            }
        5180  +
        }
        5181  +
    }
        5182  +
        5183  +
    impl ::std::error::Error for ConstraintViolation {}
        5184  +
    impl ConstraintViolation {
        5185  +
        pub(crate) fn as_validation_exception_field(
        5186  +
            self,
        5187  +
            path: ::std::string::String,
        5188  +
        ) -> crate::model::ValidationExceptionField {
        5189  +
            match self {
        5190  +
                Self::Key(key_constraint_violation) => {
        5191  +
                    key_constraint_violation.as_validation_exception_field(path)
        5192  +
                }
        5193  +
                Self::Value(key, value_constraint_violation) => value_constraint_violation
        5194  +
                    .as_validation_exception_field(path + "/" + key.as_str()),
        5195  +
            }
        5196  +
        }
        5197  +
    }
        5198  +
}
        5199  +
pub mod recursive_list {
        5200  +
        5201  +
    #[allow(clippy::enum_variant_names)]
        5202  +
    #[derive(Debug, PartialEq)]
        5203  +
    pub enum ConstraintViolation {
        5204  +
        /// Constraint violation error when an element doesn't satisfy its own constraints.
        5205  +
        /// The first component of the tuple is the index in the collection where the
        5206  +
        /// first constraint violation was found.
        5207  +
        #[doc(hidden)]
        5208  +
        Member(
        5209  +
            usize,
        5210  +
            crate::model::recursive_shapes_input_output_nested1::ConstraintViolation,
        5211  +
        ),
        5212  +
    }
        5213  +
        5214  +
    impl ::std::fmt::Display for ConstraintViolation {
        5215  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        5216  +
            let message = match self {
        5217  +
                Self::Member(index, failing_member) => format!(
        5218  +
                    "Value at index {index} failed to satisfy constraint. {}",
        5219  +
                    failing_member
        5220  +
                ),
        5221  +
            };
        5222  +
            write!(f, "{message}")
        5223  +
        }
        5224  +
    }
        5225  +
        5226  +
    impl ::std::error::Error for ConstraintViolation {}
        5227  +
    impl ConstraintViolation {
        5228  +
        pub(crate) fn as_validation_exception_field(
        5229  +
            self,
        5230  +
            path: ::std::string::String,
        5231  +
        ) -> crate::model::ValidationExceptionField {
        5232  +
            match self {
        5233  +
                Self::Member(index, member_constraint_violation) => member_constraint_violation
        5234  +
                    .as_validation_exception_field(path + "/" + &index.to_string()),
        5235  +
            }
        5236  +
        }
        5237  +
    }
        5238  +
}
        5239  +
/// See [`RecursiveShapesInputOutputNested1`](crate::model::RecursiveShapesInputOutputNested1).
        5240  +
pub mod recursive_shapes_input_output_nested1 {
        5241  +
        5242  +
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
        5243  +
    /// Holds one variant for each of the ways the builder can fail.
        5244  +
    #[non_exhaustive]
        5245  +
    #[allow(clippy::enum_variant_names)]
        5246  +
    pub enum ConstraintViolation {
        5247  +
        /// `recursive_member` was not provided but it is required when building `RecursiveShapesInputOutputNested1`.
        5248  +
        MissingRecursiveMember,
        5249  +
        /// Constraint violation occurred building member `recursive_member` when building `RecursiveShapesInputOutputNested1`.
        5250  +
        #[doc(hidden)]
        5251  +
        RecursiveMember(
        5252  +
            ::std::boxed::Box<
        5253  +
                crate::model::recursive_shapes_input_output_nested2::ConstraintViolation,
        5254  +
            >,
        5255  +
        ),
        5256  +
    }
        5257  +
    impl ::std::fmt::Display for ConstraintViolation {
        5258  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        5259  +
            match self {
        5260  +
                ConstraintViolation::MissingRecursiveMember => write!(f, "`recursive_member` was not provided but it is required when building `RecursiveShapesInputOutputNested1`"),
        5261  +
                ConstraintViolation::RecursiveMember(_) => write!(f, "constraint violation occurred building member `recursive_member` when building `RecursiveShapesInputOutputNested1`"),
        5262  +
            }
        5263  +
        }
        5264  +
    }
        5265  +
    impl ::std::error::Error for ConstraintViolation {}
        5266  +
    impl ConstraintViolation {
        5267  +
        pub(crate) fn as_validation_exception_field(
        5268  +
            self,
        5269  +
            path: ::std::string::String,
        5270  +
        ) -> crate::model::ValidationExceptionField {
        5271  +
            match self {
        5272  +
            ConstraintViolation::MissingRecursiveMember => crate::model::ValidationExceptionField {
        5273  +
                                                message: format!("Value at '{}/recursiveMember' failed to satisfy constraint: Member must not be null", path),
        5274  +
                                                path: path + "/recursiveMember",
        5275  +
                                            },
        5276  +
            ConstraintViolation::RecursiveMember(inner) => inner.as_validation_exception_field(path + "/recursiveMember"),
        5277  +
        }
        5278  +
        }
        5279  +
    }
        5280  +
    impl ::std::convert::From<Builder>
        5281  +
        for crate::constrained::MaybeConstrained<crate::model::RecursiveShapesInputOutputNested1>
        5282  +
    {
        5283  +
        fn from(builder: Builder) -> Self {
        5284  +
            Self::Unconstrained(builder)
        5285  +
        }
        5286  +
    }
        5287  +
    impl ::std::convert::TryFrom<Builder> for crate::model::RecursiveShapesInputOutputNested1 {
        5288  +
        type Error = ConstraintViolation;
        5289  +
        5290  +
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
        5291  +
            builder.build()
        5292  +
        }
        5293  +
    }
        5294  +
    /// A builder for [`RecursiveShapesInputOutputNested1`](crate::model::RecursiveShapesInputOutputNested1).
        5295  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        5296  +
    pub struct Builder {
        5297  +
        pub(crate) recursive_member: ::std::option::Option<
        5298  +
            ::std::boxed::Box<
        5299  +
                crate::constrained::MaybeConstrained<
        5300  +
                    crate::model::RecursiveShapesInputOutputNested2,
        5301  +
                >,
        5302  +
            >,
        5303  +
        >,
        5304  +
    }
        5305  +
    impl Builder {
        5306  +
        #[allow(missing_docs)] // documentation missing in model
        5307  +
        #[allow(clippy::boxed_local)]
        5308  +
        pub fn recursive_member(
        5309  +
            mut self,
        5310  +
            input: ::std::boxed::Box<crate::model::RecursiveShapesInputOutputNested2>,
        5311  +
        ) -> Self {
        5312  +
            self.recursive_member = Some(Box::new(
        5313  +
                crate::constrained::MaybeConstrained::Constrained(*input),
        5314  +
            ));
        5315  +
            self
        5316  +
        }
        5317  +
        #[allow(missing_docs)] // documentation missing in model
        5318  +
        pub(crate) fn set_recursive_member(
        5319  +
            mut self,
        5320  +
            input: impl ::std::convert::Into<
        5321  +
                ::std::boxed::Box<
        5322  +
                    crate::constrained::MaybeConstrained<
        5323  +
                        crate::model::RecursiveShapesInputOutputNested2,
        5324  +
                    >,
        5325  +
                >,
        5326  +
            >,
        5327  +
        ) -> Self {
        5328  +
            self.recursive_member = Some(input.into());
        5329  +
            self
        5330  +
        }
        5331  +
        /// Consumes the builder and constructs a [`RecursiveShapesInputOutputNested1`](crate::model::RecursiveShapesInputOutputNested1).
        5332  +
        ///
        5333  +
        /// The builder fails to construct a [`RecursiveShapesInputOutputNested1`](crate::model::RecursiveShapesInputOutputNested1) if a [`ConstraintViolation`] occurs.
        5334  +
        ///
        5335  +
        /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
        5336  +
        pub fn build(
        5337  +
            self,
        5338  +
        ) -> Result<crate::model::RecursiveShapesInputOutputNested1, ConstraintViolation> {
        5339  +
            self.build_enforcing_all_constraints()
        5340  +
        }
        5341  +
        fn build_enforcing_all_constraints(
        5342  +
            self,
        5343  +
        ) -> Result<crate::model::RecursiveShapesInputOutputNested1, ConstraintViolation> {
        5344  +
            Ok(crate::model::RecursiveShapesInputOutputNested1 {
        5345  +
                recursive_member: self
        5346  +
                    .recursive_member
        5347  +
                    .map(|v| match *v {
        5348  +
                        crate::constrained::MaybeConstrained::Constrained(x) => Ok(Box::new(x)),
        5349  +
                        crate::constrained::MaybeConstrained::Unconstrained(x) => {
        5350  +
                            Ok(Box::new(x.try_into()?))
        5351  +
                        }
        5352  +
                    })
        5353  +
                    .map(|res| {
        5354  +
                        res.map_err(Box::new)
        5355  +
                            .map_err(ConstraintViolation::RecursiveMember)
        5356  +
                    })
        5357  +
                    .transpose()?
        5358  +
                    .ok_or(ConstraintViolation::MissingRecursiveMember)?,
        5359  +
            })
        5360  +
        }
        5361  +
    }
        5362  +
}
        5363  +
/// See [`RecursiveShapesInputOutputNested2`](crate::model::RecursiveShapesInputOutputNested2).
        5364  +
pub mod recursive_shapes_input_output_nested2 {
        5365  +
        5366  +
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
        5367  +
    /// Holds one variant for each of the ways the builder can fail.
        5368  +
    #[non_exhaustive]
        5369  +
    #[allow(clippy::enum_variant_names)]
        5370  +
    pub enum ConstraintViolation {
        5371  +
        /// Constraint violation occurred building member `recursive_member` when building `RecursiveShapesInputOutputNested2`.
        5372  +
        #[doc(hidden)]
        5373  +
        RecursiveMember(crate::model::recursive_shapes_input_output_nested1::ConstraintViolation),
        5374  +
    }
        5375  +
    impl ::std::fmt::Display for ConstraintViolation {
        5376  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        5377  +
            match self {
        5378  +
                ConstraintViolation::RecursiveMember(_) => write!(f, "constraint violation occurred building member `recursive_member` when building `RecursiveShapesInputOutputNested2`"),
        5379  +
            }
        5380  +
        }
        5381  +
    }
        5382  +
    impl ::std::error::Error for ConstraintViolation {}
        5383  +
    impl ConstraintViolation {
        5384  +
        pub(crate) fn as_validation_exception_field(
        5385  +
            self,
        5386  +
            path: ::std::string::String,
        5387  +
        ) -> crate::model::ValidationExceptionField {
        5388  +
            match self {
        5389  +
                ConstraintViolation::RecursiveMember(inner) => {
        5390  +
                    inner.as_validation_exception_field(path + "/recursiveMember")
        5391  +
                }
        5392  +
            }
        5393  +
        }
        5394  +
    }
        5395  +
    impl ::std::convert::From<Builder>
        5396  +
        for crate::constrained::MaybeConstrained<crate::model::RecursiveShapesInputOutputNested2>
        5397  +
    {
        5398  +
        fn from(builder: Builder) -> Self {
        5399  +
            Self::Unconstrained(builder)
        5400  +
        }
        5401  +
    }
        5402  +
    impl ::std::convert::TryFrom<Builder> for crate::model::RecursiveShapesInputOutputNested2 {
        5403  +
        type Error = ConstraintViolation;
        5404  +
        5405  +
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
        5406  +
            builder.build()
        5407  +
        }
        5408  +
    }
        5409  +
    /// A builder for [`RecursiveShapesInputOutputNested2`](crate::model::RecursiveShapesInputOutputNested2).
        5410  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        5411  +
    pub struct Builder {
        5412  +
        pub(crate) recursive_member: ::std::option::Option<
        5413  +
            crate::constrained::MaybeConstrained<crate::model::RecursiveShapesInputOutputNested1>,
        5414  +
        >,
        5415  +
    }
        5416  +
    impl Builder {
        5417  +
        #[allow(missing_docs)] // documentation missing in model
        5418  +
        pub fn recursive_member(
        5419  +
            mut self,
        5420  +
            input: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
        5421  +
        ) -> Self {
        5422  +
            self.recursive_member = input.map(crate::constrained::MaybeConstrained::Constrained);
        5423  +
            self
        5424  +
        }
        5425  +
        #[allow(missing_docs)] // documentation missing in model
        5426  +
        pub(crate) fn set_recursive_member(
        5427  +
            mut self,
        5428  +
            input: Option<
        5429  +
                impl ::std::convert::Into<
        5430  +
                    crate::constrained::MaybeConstrained<
        5431  +
                        crate::model::RecursiveShapesInputOutputNested1,
        5432  +
                    >,
        5433  +
                >,
        5434  +
            >,
        5435  +
        ) -> Self {
        5436  +
            self.recursive_member = input.map(|v| v.into());
        5437  +
            self
        5438  +
        }
        5439  +
        /// Consumes the builder and constructs a [`RecursiveShapesInputOutputNested2`](crate::model::RecursiveShapesInputOutputNested2).
        5440  +
        ///
        5441  +
        /// The builder fails to construct a [`RecursiveShapesInputOutputNested2`](crate::model::RecursiveShapesInputOutputNested2) if a [`ConstraintViolation`] occurs.
        5442  +
        ///
        5443  +
        pub fn build(
        5444  +
            self,
        5445  +
        ) -> Result<crate::model::RecursiveShapesInputOutputNested2, ConstraintViolation> {
        5446  +
            self.build_enforcing_all_constraints()
        5447  +
        }
        5448  +
        fn build_enforcing_all_constraints(
        5449  +
            self,
        5450  +
        ) -> Result<crate::model::RecursiveShapesInputOutputNested2, ConstraintViolation> {
        5451  +
            Ok(crate::model::RecursiveShapesInputOutputNested2 {
        5452  +
                recursive_member: self
        5453  +
                    .recursive_member
        5454  +
                    .map(|v| match v {
        5455  +
                        crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        5456  +
                        crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        5457  +
                    })
        5458  +
                    .map(|res| res.map_err(ConstraintViolation::RecursiveMember))
        5459  +
                    .transpose()?,
        5460  +
            })
        5461  +
        }
        5462  +
    }
        5463  +
}
        5464  +
/// See [`ConA`](crate::model::ConA).
        5465  +
pub mod con_a {
        5466  +
        5467  +
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
        5468  +
    /// Holds one variant for each of the ways the builder can fail.
        5469  +
    #[non_exhaustive]
        5470  +
    #[allow(clippy::enum_variant_names)]
        5471  +
    pub enum ConstraintViolation {
        5472  +
        /// `con_b` was not provided but it is required when building `ConA`.
        5473  +
        MissingConB,
        5474  +
        /// Constraint violation occurred building member `con_b` when building `ConA`.
        5475  +
        #[doc(hidden)]
        5476  +
        ConB(crate::model::con_b::ConstraintViolation),
        5477  +
        /// Constraint violation occurred building member `opt_con_b` when building `ConA`.
        5478  +
        #[doc(hidden)]
        5479  +
        OptConB(crate::model::con_b::ConstraintViolation),
        5480  +
        /// Constraint violation occurred building member `length_string` when building `ConA`.
        5481  +
        #[doc(hidden)]
        5482  +
        LengthString(crate::model::length_string::ConstraintViolation),
        5483  +
        /// Constraint violation occurred building member `min_length_string` when building `ConA`.
        5484  +
        #[doc(hidden)]
        5485  +
        MinLengthString(crate::model::min_length_string::ConstraintViolation),
        5486  +
        /// Constraint violation occurred building member `max_length_string` when building `ConA`.
        5487  +
        #[doc(hidden)]
        5488  +
        MaxLengthString(crate::model::max_length_string::ConstraintViolation),
        5489  +
        /// Constraint violation occurred building member `fixed_length_string` when building `ConA`.
        5490  +
        #[doc(hidden)]
        5491  +
        FixedLengthString(crate::model::fixed_length_string::ConstraintViolation),
        5492  +
        /// Constraint violation occurred building member `length_blob` when building `ConA`.
        5493  +
        #[doc(hidden)]
        5494  +
        LengthBlob(crate::model::length_blob::ConstraintViolation),
        5495  +
        /// Constraint violation occurred building member `min_length_blob` when building `ConA`.
        5496  +
        #[doc(hidden)]
        5497  +
        MinLengthBlob(crate::model::min_length_blob::ConstraintViolation),
        5498  +
        /// Constraint violation occurred building member `max_length_blob` when building `ConA`.
        5499  +
        #[doc(hidden)]
        5500  +
        MaxLengthBlob(crate::model::max_length_blob::ConstraintViolation),
        5501  +
        /// Constraint violation occurred building member `fixed_length_blob` when building `ConA`.
        5502  +
        #[doc(hidden)]
        5503  +
        FixedLengthBlob(crate::model::fixed_length_blob::ConstraintViolation),
        5504  +
        /// Constraint violation occurred building member `range_integer` when building `ConA`.
        5505  +
        #[doc(hidden)]
        5506  +
        RangeInteger(crate::model::range_integer::ConstraintViolation),
        5507  +
        /// Constraint violation occurred building member `min_range_integer` when building `ConA`.
        5508  +
        #[doc(hidden)]
        5509  +
        MinRangeInteger(crate::model::min_range_integer::ConstraintViolation),
        5510  +
        /// Constraint violation occurred building member `max_range_integer` when building `ConA`.
        5511  +
        #[doc(hidden)]
        5512  +
        MaxRangeInteger(crate::model::max_range_integer::ConstraintViolation),
        5513  +
        /// Constraint violation occurred building member `fixed_value_integer` when building `ConA`.
        5514  +
        #[doc(hidden)]
        5515  +
        FixedValueInteger(crate::model::fixed_value_integer::ConstraintViolation),
        5516  +
        /// Constraint violation occurred building member `range_short` when building `ConA`.
        5517  +
        #[doc(hidden)]
        5518  +
        RangeShort(crate::model::range_short::ConstraintViolation),
        5519  +
        /// Constraint violation occurred building member `min_range_short` when building `ConA`.
        5520  +
        #[doc(hidden)]
        5521  +
        MinRangeShort(crate::model::min_range_short::ConstraintViolation),
        5522  +
        /// Constraint violation occurred building member `max_range_short` when building `ConA`.
        5523  +
        #[doc(hidden)]
        5524  +
        MaxRangeShort(crate::model::max_range_short::ConstraintViolation),
        5525  +
        /// Constraint violation occurred building member `fixed_value_short` when building `ConA`.
        5526  +
        #[doc(hidden)]
        5527  +
        FixedValueShort(crate::model::fixed_value_short::ConstraintViolation),
        5528  +
        /// Constraint violation occurred building member `range_long` when building `ConA`.
        5529  +
        #[doc(hidden)]
        5530  +
        RangeLong(crate::model::range_long::ConstraintViolation),
        5531  +
        /// Constraint violation occurred building member `min_range_long` when building `ConA`.
        5532  +
        #[doc(hidden)]
        5533  +
        MinRangeLong(crate::model::min_range_long::ConstraintViolation),
        5534  +
        /// Constraint violation occurred building member `max_range_long` when building `ConA`.
        5535  +
        #[doc(hidden)]
        5536  +
        MaxRangeLong(crate::model::max_range_long::ConstraintViolation),
        5537  +
        /// Constraint violation occurred building member `fixed_value_long` when building `ConA`.
        5538  +
        #[doc(hidden)]
        5539  +
        FixedValueLong(crate::model::fixed_value_long::ConstraintViolation),
        5540  +
        /// Constraint violation occurred building member `range_byte` when building `ConA`.
        5541  +
        #[doc(hidden)]
        5542  +
        RangeByte(crate::model::range_byte::ConstraintViolation),
        5543  +
        /// Constraint violation occurred building member `min_range_byte` when building `ConA`.
        5544  +
        #[doc(hidden)]
        5545  +
        MinRangeByte(crate::model::min_range_byte::ConstraintViolation),
        5546  +
        /// Constraint violation occurred building member `max_range_byte` when building `ConA`.
        5547  +
        #[doc(hidden)]
        5548  +
        MaxRangeByte(crate::model::max_range_byte::ConstraintViolation),
        5549  +
        /// Constraint violation occurred building member `fixed_value_byte` when building `ConA`.
        5550  +
        #[doc(hidden)]
        5551  +
        FixedValueByte(crate::model::fixed_value_byte::ConstraintViolation),
        5552  +
        /// Constraint violation occurred building member `con_b_list` when building `ConA`.
        5553  +
        #[doc(hidden)]
        5554  +
        ConBList(crate::model::con_b_list::ConstraintViolation),
        5555  +
        /// Constraint violation occurred building member `length_list` when building `ConA`.
        5556  +
        #[doc(hidden)]
        5557  +
        LengthList(crate::model::length_list::ConstraintViolation),
        5558  +
        /// Constraint violation occurred building member `sensitive_length_list` when building `ConA`.
        5559  +
        #[doc(hidden)]
        5560  +
        SensitiveLengthList(crate::model::sensitive_length_list::ConstraintViolation),
        5561  +
        /// Constraint violation occurred building member `con_b_set` when building `ConA`.
        5562  +
        #[doc(hidden)]
        5563  +
        ConBSet(crate::model::con_b_set::ConstraintViolation),
        5564  +
        /// Constraint violation occurred building member `con_b_map` when building `ConA`.
        5565  +
        #[doc(hidden)]
        5566  +
        ConBMap(crate::model::con_b_map::ConstraintViolation),
        5567  +
        /// Constraint violation occurred building member `length_map` when building `ConA`.
        5568  +
        #[doc(hidden)]
        5569  +
        LengthMap(crate::model::length_map::ConstraintViolation),
        5570  +
        /// Constraint violation occurred building member `map_of_map_of_list_of_list_of_con_b` when building `ConA`.
        5571  +
        #[doc(hidden)]
        5572  +
        MapOfMapOfListOfListOfConB(
        5573  +
            crate::model::map_of_map_of_list_of_list_of_con_b::ConstraintViolation,
        5574  +
        ),
        5575  +
        /// Constraint violation occurred building member `sparse_map` when building `ConA`.
        5576  +
        #[doc(hidden)]
        5577  +
        SparseMap(crate::model::sparse_map::ConstraintViolation),
        5578  +
        /// Constraint violation occurred building member `sparse_list` when building `ConA`.
        5579  +
        #[doc(hidden)]
        5580  +
        SparseList(crate::model::sparse_list::ConstraintViolation),
        5581  +
        /// Constraint violation occurred building member `sparse_length_map` when building `ConA`.
        5582  +
        #[doc(hidden)]
        5583  +
        SparseLengthMap(crate::model::sparse_length_map::ConstraintViolation),
        5584  +
        /// Constraint violation occurred building member `sparse_length_list` when building `ConA`.
        5585  +
        #[doc(hidden)]
        5586  +
        SparseLengthList(crate::model::sparse_length_list::ConstraintViolation),
        5587  +
        /// Constraint violation occurred building member `constrained_union` when building `ConA`.
        5588  +
        #[doc(hidden)]
        5589  +
        ConstrainedUnion(crate::model::constrained_union::ConstraintViolation),
        5590  +
        /// Constraint violation occurred building member `enum_string` when building `ConA`.
        5591  +
        #[doc(hidden)]
        5592  +
        EnumString(crate::model::enum_string::ConstraintViolation),
        5593  +
        /// Constraint violation occurred building member `list_of_length_string` when building `ConA`.
        5594  +
        #[doc(hidden)]
        5595  +
        ListOfLengthString(crate::model::list_of_length_string::ConstraintViolation),
        5596  +
        /// Constraint violation occurred building member `set_of_length_string` when building `ConA`.
        5597  +
        #[doc(hidden)]
        5598  +
        SetOfLengthString(crate::model::set_of_length_string::ConstraintViolation),
        5599  +
        /// Constraint violation occurred building member `map_of_length_string` when building `ConA`.
        5600  +
        #[doc(hidden)]
        5601  +
        MapOfLengthString(crate::model::map_of_length_string::ConstraintViolation),
        5602  +
        /// Constraint violation occurred building member `list_of_length_blob` when building `ConA`.
        5603  +
        #[doc(hidden)]
        5604  +
        ListOfLengthBlob(crate::model::list_of_length_blob::ConstraintViolation),
        5605  +
        /// Constraint violation occurred building member `map_of_length_blob` when building `ConA`.
        5606  +
        #[doc(hidden)]
        5607  +
        MapOfLengthBlob(crate::model::map_of_length_blob::ConstraintViolation),
        5608  +
        /// Constraint violation occurred building member `list_of_range_integer` when building `ConA`.
        5609  +
        #[doc(hidden)]
        5610  +
        ListOfRangeInteger(crate::model::list_of_range_integer::ConstraintViolation),
        5611  +
        /// Constraint violation occurred building member `set_of_range_integer` when building `ConA`.
        5612  +
        #[doc(hidden)]
        5613  +
        SetOfRangeInteger(crate::model::set_of_range_integer::ConstraintViolation),
        5614  +
        /// Constraint violation occurred building member `map_of_range_integer` when building `ConA`.
        5615  +
        #[doc(hidden)]
        5616  +
        MapOfRangeInteger(crate::model::map_of_range_integer::ConstraintViolation),
        5617  +
        /// Constraint violation occurred building member `list_of_range_short` when building `ConA`.
        5618  +
        #[doc(hidden)]
        5619  +
        ListOfRangeShort(crate::model::list_of_range_short::ConstraintViolation),
        5620  +
        /// Constraint violation occurred building member `set_of_range_short` when building `ConA`.
        5621  +
        #[doc(hidden)]
        5622  +
        SetOfRangeShort(crate::model::set_of_range_short::ConstraintViolation),
        5623  +
        /// Constraint violation occurred building member `map_of_range_short` when building `ConA`.
        5624  +
        #[doc(hidden)]
        5625  +
        MapOfRangeShort(crate::model::map_of_range_short::ConstraintViolation),
        5626  +
        /// Constraint violation occurred building member `list_of_range_long` when building `ConA`.
        5627  +
        #[doc(hidden)]
        5628  +
        ListOfRangeLong(crate::model::list_of_range_long::ConstraintViolation),
        5629  +
        /// Constraint violation occurred building member `set_of_range_long` when building `ConA`.
        5630  +
        #[doc(hidden)]
        5631  +
        SetOfRangeLong(crate::model::set_of_range_long::ConstraintViolation),
        5632  +
        /// Constraint violation occurred building member `map_of_range_long` when building `ConA`.
        5633  +
        #[doc(hidden)]
        5634  +
        MapOfRangeLong(crate::model::map_of_range_long::ConstraintViolation),
        5635  +
        /// Constraint violation occurred building member `list_of_range_byte` when building `ConA`.
        5636  +
        #[doc(hidden)]
        5637  +
        ListOfRangeByte(crate::model::list_of_range_byte::ConstraintViolation),
        5638  +
        /// Constraint violation occurred building member `set_of_range_byte` when building `ConA`.
        5639  +
        #[doc(hidden)]
        5640  +
        SetOfRangeByte(crate::model::set_of_range_byte::ConstraintViolation),
        5641  +
        /// Constraint violation occurred building member `map_of_range_byte` when building `ConA`.
        5642  +
        #[doc(hidden)]
        5643  +
        MapOfRangeByte(crate::model::map_of_range_byte::ConstraintViolation),
        5644  +
        /// Constraint violation occurred building member `pattern_string` when building `ConA`.
        5645  +
        #[doc(hidden)]
        5646  +
        PatternString(crate::model::pattern_string::ConstraintViolation),
        5647  +
        /// Constraint violation occurred building member `map_of_pattern_string` when building `ConA`.
        5648  +
        #[doc(hidden)]
        5649  +
        MapOfPatternString(crate::model::map_of_pattern_string::ConstraintViolation),
        5650  +
        /// Constraint violation occurred building member `list_of_pattern_string` when building `ConA`.
        5651  +
        #[doc(hidden)]
        5652  +
        ListOfPatternString(crate::model::list_of_pattern_string::ConstraintViolation),
        5653  +
        /// Constraint violation occurred building member `set_of_pattern_string` when building `ConA`.
        5654  +
        #[doc(hidden)]
        5655  +
        SetOfPatternString(crate::model::set_of_pattern_string::ConstraintViolation),
        5656  +
        /// Constraint violation occurred building member `length_length_pattern_string` when building `ConA`.
        5657  +
        #[doc(hidden)]
        5658  +
        LengthLengthPatternString(crate::model::length_pattern_string::ConstraintViolation),
        5659  +
        /// Constraint violation occurred building member `map_of_length_pattern_string` when building `ConA`.
        5660  +
        #[doc(hidden)]
        5661  +
        MapOfLengthPatternString(crate::model::map_of_length_pattern_string::ConstraintViolation),
        5662  +
        /// Constraint violation occurred building member `list_of_length_pattern_string` when building `ConA`.
        5663  +
        #[doc(hidden)]
        5664  +
        ListOfLengthPatternString(crate::model::list_of_length_pattern_string::ConstraintViolation),
        5665  +
        /// Constraint violation occurred building member `set_of_length_pattern_string` when building `ConA`.
        5666  +
        #[doc(hidden)]
        5667  +
        SetOfLengthPatternString(crate::model::set_of_length_pattern_string::ConstraintViolation),
        5668  +
        /// Constraint violation occurred building member `length_list_of_pattern_string` when building `ConA`.
        5669  +
        #[doc(hidden)]
        5670  +
        LengthListOfPatternString(crate::model::length_list_of_pattern_string::ConstraintViolation),
        5671  +
        /// Constraint violation occurred building member `length_set_of_pattern_string` when building `ConA`.
        5672  +
        #[doc(hidden)]
        5673  +
        LengthSetOfPatternString(crate::model::length_set_of_pattern_string::ConstraintViolation),
        5674  +
    }
        5675  +
    impl ::std::fmt::Display for ConstraintViolation {
        5676  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        5677  +
            match self {
        5678  +
                ConstraintViolation::MissingConB => write!(f, "`con_b` was not provided but it is required when building `ConA`"),
        5679  +
                ConstraintViolation::ConB(_) => write!(f, "constraint violation occurred building member `con_b` when building `ConA`"),
        5680  +
                ConstraintViolation::OptConB(_) => write!(f, "constraint violation occurred building member `opt_con_b` when building `ConA`"),
        5681  +
                ConstraintViolation::LengthString(_) => write!(f, "constraint violation occurred building member `length_string` when building `ConA`"),
        5682  +
                ConstraintViolation::MinLengthString(_) => write!(f, "constraint violation occurred building member `min_length_string` when building `ConA`"),
        5683  +
                ConstraintViolation::MaxLengthString(_) => write!(f, "constraint violation occurred building member `max_length_string` when building `ConA`"),
        5684  +
                ConstraintViolation::FixedLengthString(_) => write!(f, "constraint violation occurred building member `fixed_length_string` when building `ConA`"),
        5685  +
                ConstraintViolation::LengthBlob(_) => write!(f, "constraint violation occurred building member `length_blob` when building `ConA`"),
        5686  +
                ConstraintViolation::MinLengthBlob(_) => write!(f, "constraint violation occurred building member `min_length_blob` when building `ConA`"),
        5687  +
                ConstraintViolation::MaxLengthBlob(_) => write!(f, "constraint violation occurred building member `max_length_blob` when building `ConA`"),
        5688  +
                ConstraintViolation::FixedLengthBlob(_) => write!(f, "constraint violation occurred building member `fixed_length_blob` when building `ConA`"),
        5689  +
                ConstraintViolation::RangeInteger(_) => write!(f, "constraint violation occurred building member `range_integer` when building `ConA`"),
        5690  +
                ConstraintViolation::MinRangeInteger(_) => write!(f, "constraint violation occurred building member `min_range_integer` when building `ConA`"),
        5691  +
                ConstraintViolation::MaxRangeInteger(_) => write!(f, "constraint violation occurred building member `max_range_integer` when building `ConA`"),
        5692  +
                ConstraintViolation::FixedValueInteger(_) => write!(f, "constraint violation occurred building member `fixed_value_integer` when building `ConA`"),
        5693  +
                ConstraintViolation::RangeShort(_) => write!(f, "constraint violation occurred building member `range_short` when building `ConA`"),
        5694  +
                ConstraintViolation::MinRangeShort(_) => write!(f, "constraint violation occurred building member `min_range_short` when building `ConA`"),
        5695  +
                ConstraintViolation::MaxRangeShort(_) => write!(f, "constraint violation occurred building member `max_range_short` when building `ConA`"),
        5696  +
                ConstraintViolation::FixedValueShort(_) => write!(f, "constraint violation occurred building member `fixed_value_short` when building `ConA`"),
        5697  +
                ConstraintViolation::RangeLong(_) => write!(f, "constraint violation occurred building member `range_long` when building `ConA`"),
        5698  +
                ConstraintViolation::MinRangeLong(_) => write!(f, "constraint violation occurred building member `min_range_long` when building `ConA`"),
        5699  +
                ConstraintViolation::MaxRangeLong(_) => write!(f, "constraint violation occurred building member `max_range_long` when building `ConA`"),
        5700  +
                ConstraintViolation::FixedValueLong(_) => write!(f, "constraint violation occurred building member `fixed_value_long` when building `ConA`"),
        5701  +
                ConstraintViolation::RangeByte(_) => write!(f, "constraint violation occurred building member `range_byte` when building `ConA`"),
        5702  +
                ConstraintViolation::MinRangeByte(_) => write!(f, "constraint violation occurred building member `min_range_byte` when building `ConA`"),
        5703  +
                ConstraintViolation::MaxRangeByte(_) => write!(f, "constraint violation occurred building member `max_range_byte` when building `ConA`"),
        5704  +
                ConstraintViolation::FixedValueByte(_) => write!(f, "constraint violation occurred building member `fixed_value_byte` when building `ConA`"),
        5705  +
                ConstraintViolation::ConBList(_) => write!(f, "constraint violation occurred building member `con_b_list` when building `ConA`"),
        5706  +
                ConstraintViolation::LengthList(_) => write!(f, "constraint violation occurred building member `length_list` when building `ConA`"),
        5707  +
                ConstraintViolation::SensitiveLengthList(_) => write!(f, "constraint violation occurred building member `sensitive_length_list` when building `ConA`"),
        5708  +
                ConstraintViolation::ConBSet(_) => write!(f, "constraint violation occurred building member `con_b_set` when building `ConA`"),
        5709  +
                ConstraintViolation::ConBMap(_) => write!(f, "constraint violation occurred building member `con_b_map` when building `ConA`"),
        5710  +
                ConstraintViolation::LengthMap(_) => write!(f, "constraint violation occurred building member `length_map` when building `ConA`"),
        5711  +
                ConstraintViolation::MapOfMapOfListOfListOfConB(_) => write!(f, "constraint violation occurred building member `map_of_map_of_list_of_list_of_con_b` when building `ConA`"),
        5712  +
                ConstraintViolation::SparseMap(_) => write!(f, "constraint violation occurred building member `sparse_map` when building `ConA`"),
        5713  +
                ConstraintViolation::SparseList(_) => write!(f, "constraint violation occurred building member `sparse_list` when building `ConA`"),
        5714  +
                ConstraintViolation::SparseLengthMap(_) => write!(f, "constraint violation occurred building member `sparse_length_map` when building `ConA`"),
        5715  +
                ConstraintViolation::SparseLengthList(_) => write!(f, "constraint violation occurred building member `sparse_length_list` when building `ConA`"),
        5716  +
                ConstraintViolation::ConstrainedUnion(_) => write!(f, "constraint violation occurred building member `constrained_union` when building `ConA`"),
        5717  +
                ConstraintViolation::EnumString(_) => write!(f, "constraint violation occurred building member `enum_string` when building `ConA`"),
        5718  +
                ConstraintViolation::ListOfLengthString(_) => write!(f, "constraint violation occurred building member `list_of_length_string` when building `ConA`"),
        5719  +
                ConstraintViolation::SetOfLengthString(_) => write!(f, "constraint violation occurred building member `set_of_length_string` when building `ConA`"),
        5720  +
                ConstraintViolation::MapOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_length_string` when building `ConA`"),
        5721  +
                ConstraintViolation::ListOfLengthBlob(_) => write!(f, "constraint violation occurred building member `list_of_length_blob` when building `ConA`"),
        5722  +
                ConstraintViolation::MapOfLengthBlob(_) => write!(f, "constraint violation occurred building member `map_of_length_blob` when building `ConA`"),
        5723  +
                ConstraintViolation::ListOfRangeInteger(_) => write!(f, "constraint violation occurred building member `list_of_range_integer` when building `ConA`"),
        5724  +
                ConstraintViolation::SetOfRangeInteger(_) => write!(f, "constraint violation occurred building member `set_of_range_integer` when building `ConA`"),
        5725  +
                ConstraintViolation::MapOfRangeInteger(_) => write!(f, "constraint violation occurred building member `map_of_range_integer` when building `ConA`"),
        5726  +
                ConstraintViolation::ListOfRangeShort(_) => write!(f, "constraint violation occurred building member `list_of_range_short` when building `ConA`"),
        5727  +
                ConstraintViolation::SetOfRangeShort(_) => write!(f, "constraint violation occurred building member `set_of_range_short` when building `ConA`"),
        5728  +
                ConstraintViolation::MapOfRangeShort(_) => write!(f, "constraint violation occurred building member `map_of_range_short` when building `ConA`"),
        5729  +
                ConstraintViolation::ListOfRangeLong(_) => write!(f, "constraint violation occurred building member `list_of_range_long` when building `ConA`"),
        5730  +
                ConstraintViolation::SetOfRangeLong(_) => write!(f, "constraint violation occurred building member `set_of_range_long` when building `ConA`"),
        5731  +
                ConstraintViolation::MapOfRangeLong(_) => write!(f, "constraint violation occurred building member `map_of_range_long` when building `ConA`"),
        5732  +
                ConstraintViolation::ListOfRangeByte(_) => write!(f, "constraint violation occurred building member `list_of_range_byte` when building `ConA`"),
        5733  +
                ConstraintViolation::SetOfRangeByte(_) => write!(f, "constraint violation occurred building member `set_of_range_byte` when building `ConA`"),
        5734  +
                ConstraintViolation::MapOfRangeByte(_) => write!(f, "constraint violation occurred building member `map_of_range_byte` when building `ConA`"),
        5735  +
                ConstraintViolation::PatternString(_) => write!(f, "constraint violation occurred building member `pattern_string` when building `ConA`"),
        5736  +
                ConstraintViolation::MapOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_pattern_string` when building `ConA`"),
        5737  +
                ConstraintViolation::ListOfPatternString(_) => write!(f, "constraint violation occurred building member `list_of_pattern_string` when building `ConA`"),
        5738  +
                ConstraintViolation::SetOfPatternString(_) => write!(f, "constraint violation occurred building member `set_of_pattern_string` when building `ConA`"),
        5739  +
                ConstraintViolation::LengthLengthPatternString(_) => write!(f, "constraint violation occurred building member `length_length_pattern_string` when building `ConA`"),
        5740  +
                ConstraintViolation::MapOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_pattern_string` when building `ConA`"),
        5741  +
                ConstraintViolation::ListOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `list_of_length_pattern_string` when building `ConA`"),
        5742  +
                ConstraintViolation::SetOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `set_of_length_pattern_string` when building `ConA`"),
        5743  +
                ConstraintViolation::LengthListOfPatternString(_) => write!(f, "constraint violation occurred building member `length_list_of_pattern_string` when building `ConA`"),
        5744  +
                ConstraintViolation::LengthSetOfPatternString(_) => write!(f, "constraint violation occurred building member `length_set_of_pattern_string` when building `ConA`"),
        5745  +
            }
        5746  +
        }
        5747  +
    }
        5748  +
    impl ::std::error::Error for ConstraintViolation {}
        5749  +
    impl ConstraintViolation {
        5750  +
        pub(crate) fn as_validation_exception_field(
        5751  +
            self,
        5752  +
            path: ::std::string::String,
        5753  +
        ) -> crate::model::ValidationExceptionField {
        5754  +
            match self {
        5755  +
                ConstraintViolation::MissingConB => crate::model::ValidationExceptionField {
        5756  +
                    message: format!(
        5757  +
                        "Value at '{}/conB' failed to satisfy constraint: Member must not be null",
        5758  +
                        path
        5759  +
                    ),
        5760  +
                    path: path + "/conB",
        5761  +
                },
        5762  +
                ConstraintViolation::ConB(inner) => {
        5763  +
                    inner.as_validation_exception_field(path + "/conB")
        5764  +
                }
        5765  +
                ConstraintViolation::OptConB(inner) => {
        5766  +
                    inner.as_validation_exception_field(path + "/optConB")
        5767  +
                }
        5768  +
                ConstraintViolation::LengthString(inner) => {
        5769  +
                    inner.as_validation_exception_field(path + "/lengthString")
        5770  +
                }
        5771  +
                ConstraintViolation::MinLengthString(inner) => {
        5772  +
                    inner.as_validation_exception_field(path + "/minLengthString")
        5773  +
                }
        5774  +
                ConstraintViolation::MaxLengthString(inner) => {
        5775  +
                    inner.as_validation_exception_field(path + "/maxLengthString")
        5776  +
                }
        5777  +
                ConstraintViolation::FixedLengthString(inner) => {
        5778  +
                    inner.as_validation_exception_field(path + "/fixedLengthString")
        5779  +
                }
        5780  +
                ConstraintViolation::LengthBlob(inner) => {
        5781  +
                    inner.as_validation_exception_field(path + "/lengthBlob")
        5782  +
                }
        5783  +
                ConstraintViolation::MinLengthBlob(inner) => {
        5784  +
                    inner.as_validation_exception_field(path + "/minLengthBlob")
        5785  +
                }
        5786  +
                ConstraintViolation::MaxLengthBlob(inner) => {
        5787  +
                    inner.as_validation_exception_field(path + "/maxLengthBlob")
        5788  +
                }
        5789  +
                ConstraintViolation::FixedLengthBlob(inner) => {
        5790  +
                    inner.as_validation_exception_field(path + "/fixedLengthBlob")
        5791  +
                }
        5792  +
                ConstraintViolation::RangeInteger(inner) => {
        5793  +
                    inner.as_validation_exception_field(path + "/rangeInteger")
        5794  +
                }
        5795  +
                ConstraintViolation::MinRangeInteger(inner) => {
        5796  +
                    inner.as_validation_exception_field(path + "/minRangeInteger")
        5797  +
                }
        5798  +
                ConstraintViolation::MaxRangeInteger(inner) => {
        5799  +
                    inner.as_validation_exception_field(path + "/maxRangeInteger")
        5800  +
                }
        5801  +
                ConstraintViolation::FixedValueInteger(inner) => {
        5802  +
                    inner.as_validation_exception_field(path + "/fixedValueInteger")
        5803  +
                }
        5804  +
                ConstraintViolation::RangeShort(inner) => {
        5805  +
                    inner.as_validation_exception_field(path + "/rangeShort")
        5806  +
                }
        5807  +
                ConstraintViolation::MinRangeShort(inner) => {
        5808  +
                    inner.as_validation_exception_field(path + "/minRangeShort")
        5809  +
                }
        5810  +
                ConstraintViolation::MaxRangeShort(inner) => {
        5811  +
                    inner.as_validation_exception_field(path + "/maxRangeShort")
        5812  +
                }
        5813  +
                ConstraintViolation::FixedValueShort(inner) => {
        5814  +
                    inner.as_validation_exception_field(path + "/fixedValueShort")
        5815  +
                }
        5816  +
                ConstraintViolation::RangeLong(inner) => {
        5817  +
                    inner.as_validation_exception_field(path + "/rangeLong")
        5818  +
                }
        5819  +
                ConstraintViolation::MinRangeLong(inner) => {
        5820  +
                    inner.as_validation_exception_field(path + "/minRangeLong")
        5821  +
                }
        5822  +
                ConstraintViolation::MaxRangeLong(inner) => {
        5823  +
                    inner.as_validation_exception_field(path + "/maxRangeLong")
        5824  +
                }
        5825  +
                ConstraintViolation::FixedValueLong(inner) => {
        5826  +
                    inner.as_validation_exception_field(path + "/fixedValueLong")
        5827  +
                }
        5828  +
                ConstraintViolation::RangeByte(inner) => {
        5829  +
                    inner.as_validation_exception_field(path + "/rangeByte")
        5830  +
                }
        5831  +
                ConstraintViolation::MinRangeByte(inner) => {
        5832  +
                    inner.as_validation_exception_field(path + "/minRangeByte")
        5833  +
                }
        5834  +
                ConstraintViolation::MaxRangeByte(inner) => {
        5835  +
                    inner.as_validation_exception_field(path + "/maxRangeByte")
        5836  +
                }
        5837  +
                ConstraintViolation::FixedValueByte(inner) => {
        5838  +
                    inner.as_validation_exception_field(path + "/fixedValueByte")
        5839  +
                }
        5840  +
                ConstraintViolation::ConBList(inner) => {
        5841  +
                    inner.as_validation_exception_field(path + "/conBList")
        5842  +
                }
        5843  +
                ConstraintViolation::LengthList(inner) => {
        5844  +
                    inner.as_validation_exception_field(path + "/lengthList")
        5845  +
                }
        5846  +
                ConstraintViolation::SensitiveLengthList(inner) => {
        5847  +
                    inner.as_validation_exception_field(path + "/sensitiveLengthList")
        5848  +
                }
        5849  +
                ConstraintViolation::ConBSet(inner) => {
        5850  +
                    inner.as_validation_exception_field(path + "/conBSet")
        5851  +
                }
        5852  +
                ConstraintViolation::ConBMap(inner) => {
        5853  +
                    inner.as_validation_exception_field(path + "/conBMap")
        5854  +
                }
        5855  +
                ConstraintViolation::LengthMap(inner) => {
        5856  +
                    inner.as_validation_exception_field(path + "/lengthMap")
        5857  +
                }
        5858  +
                ConstraintViolation::MapOfMapOfListOfListOfConB(inner) => {
        5859  +
                    inner.as_validation_exception_field(path + "/mapOfMapOfListOfListOfConB")
        5860  +
                }
        5861  +
                ConstraintViolation::SparseMap(inner) => {
        5862  +
                    inner.as_validation_exception_field(path + "/sparseMap")
        5863  +
                }
        5864  +
                ConstraintViolation::SparseList(inner) => {
        5865  +
                    inner.as_validation_exception_field(path + "/sparseList")
        5866  +
                }
        5867  +
                ConstraintViolation::SparseLengthMap(inner) => {
        5868  +
                    inner.as_validation_exception_field(path + "/sparseLengthMap")
        5869  +
                }
        5870  +
                ConstraintViolation::SparseLengthList(inner) => {
        5871  +
                    inner.as_validation_exception_field(path + "/sparseLengthList")
        5872  +
                }
        5873  +
                ConstraintViolation::ConstrainedUnion(inner) => {
        5874  +
                    inner.as_validation_exception_field(path + "/constrainedUnion")
        5875  +
                }
        5876  +
                ConstraintViolation::EnumString(inner) => {
        5877  +
                    inner.as_validation_exception_field(path + "/enumString")
        5878  +
                }
        5879  +
                ConstraintViolation::ListOfLengthString(inner) => {
        5880  +
                    inner.as_validation_exception_field(path + "/listOfLengthString")
        5881  +
                }
        5882  +
                ConstraintViolation::SetOfLengthString(inner) => {
        5883  +
                    inner.as_validation_exception_field(path + "/setOfLengthString")
        5884  +
                }
        5885  +
                ConstraintViolation::MapOfLengthString(inner) => {
        5886  +
                    inner.as_validation_exception_field(path + "/mapOfLengthString")
        5887  +
                }
        5888  +
                ConstraintViolation::ListOfLengthBlob(inner) => {
        5889  +
                    inner.as_validation_exception_field(path + "/listOfLengthBlob")
        5890  +
                }
        5891  +
                ConstraintViolation::MapOfLengthBlob(inner) => {
        5892  +
                    inner.as_validation_exception_field(path + "/mapOfLengthBlob")
        5893  +
                }
        5894  +
                ConstraintViolation::ListOfRangeInteger(inner) => {
        5895  +
                    inner.as_validation_exception_field(path + "/listOfRangeInteger")
        5896  +
                }
        5897  +
                ConstraintViolation::SetOfRangeInteger(inner) => {
        5898  +
                    inner.as_validation_exception_field(path + "/setOfRangeInteger")
        5899  +
                }
        5900  +
                ConstraintViolation::MapOfRangeInteger(inner) => {
        5901  +
                    inner.as_validation_exception_field(path + "/mapOfRangeInteger")
        5902  +
                }
        5903  +
                ConstraintViolation::ListOfRangeShort(inner) => {
        5904  +
                    inner.as_validation_exception_field(path + "/listOfRangeShort")
        5905  +
                }
        5906  +
                ConstraintViolation::SetOfRangeShort(inner) => {
        5907  +
                    inner.as_validation_exception_field(path + "/setOfRangeShort")
        5908  +
                }
        5909  +
                ConstraintViolation::MapOfRangeShort(inner) => {
        5910  +
                    inner.as_validation_exception_field(path + "/mapOfRangeShort")
        5911  +
                }
        5912  +
                ConstraintViolation::ListOfRangeLong(inner) => {
        5913  +
                    inner.as_validation_exception_field(path + "/listOfRangeLong")
        5914  +
                }
        5915  +
                ConstraintViolation::SetOfRangeLong(inner) => {
        5916  +
                    inner.as_validation_exception_field(path + "/setOfRangeLong")
        5917  +
                }
        5918  +
                ConstraintViolation::MapOfRangeLong(inner) => {
        5919  +
                    inner.as_validation_exception_field(path + "/mapOfRangeLong")
        5920  +
                }
        5921  +
                ConstraintViolation::ListOfRangeByte(inner) => {
        5922  +
                    inner.as_validation_exception_field(path + "/listOfRangeByte")
        5923  +
                }
        5924  +
                ConstraintViolation::SetOfRangeByte(inner) => {
        5925  +
                    inner.as_validation_exception_field(path + "/setOfRangeByte")
        5926  +
                }
        5927  +
                ConstraintViolation::MapOfRangeByte(inner) => {
        5928  +
                    inner.as_validation_exception_field(path + "/mapOfRangeByte")
        5929  +
                }
        5930  +
                ConstraintViolation::PatternString(inner) => {
        5931  +
                    inner.as_validation_exception_field(path + "/patternString")
        5932  +
                }
        5933  +
                ConstraintViolation::MapOfPatternString(inner) => {
        5934  +
                    inner.as_validation_exception_field(path + "/mapOfPatternString")
        5935  +
                }
        5936  +
                ConstraintViolation::ListOfPatternString(inner) => {
        5937  +
                    inner.as_validation_exception_field(path + "/listOfPatternString")
        5938  +
                }
        5939  +
                ConstraintViolation::SetOfPatternString(inner) => {
        5940  +
                    inner.as_validation_exception_field(path + "/setOfPatternString")
        5941  +
                }
        5942  +
                ConstraintViolation::LengthLengthPatternString(inner) => {
        5943  +
                    inner.as_validation_exception_field(path + "/lengthLengthPatternString")
        5944  +
                }
        5945  +
                ConstraintViolation::MapOfLengthPatternString(inner) => {
        5946  +
                    inner.as_validation_exception_field(path + "/mapOfLengthPatternString")
        5947  +
                }
        5948  +
                ConstraintViolation::ListOfLengthPatternString(inner) => {
        5949  +
                    inner.as_validation_exception_field(path + "/listOfLengthPatternString")
        5950  +
                }
        5951  +
                ConstraintViolation::SetOfLengthPatternString(inner) => {
        5952  +
                    inner.as_validation_exception_field(path + "/setOfLengthPatternString")
        5953  +
                }
        5954  +
                ConstraintViolation::LengthListOfPatternString(inner) => {
        5955  +
                    inner.as_validation_exception_field(path + "/lengthListOfPatternString")
        5956  +
                }
        5957  +
                ConstraintViolation::LengthSetOfPatternString(inner) => {
        5958  +
                    inner.as_validation_exception_field(path + "/lengthSetOfPatternString")
        5959  +
                }
        5960  +
            }
        5961  +
        }
        5962  +
    }
        5963  +
    impl ::std::convert::From<Builder> for crate::constrained::MaybeConstrained<crate::model::ConA> {
        5964  +
        fn from(builder: Builder) -> Self {
        5965  +
            Self::Unconstrained(builder)
        5966  +
        }
        5967  +
    }
        5968  +
    impl ::std::convert::TryFrom<Builder> for crate::model::ConA {
        5969  +
        type Error = ConstraintViolation;
        5970  +
        5971  +
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
        5972  +
            builder.build()
        5973  +
        }
        5974  +
    }
        5975  +
    /// A builder for [`ConA`](crate::model::ConA).
        5976  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        5977  +
    pub struct Builder {
        5978  +
        pub(crate) con_b: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConB>>,
        5979  +
        pub(crate) opt_con_b: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConB>>,
        5980  +
        pub(crate) length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
        5981  +
        pub(crate) min_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MinLengthString>>,
        5982  +
        pub(crate) max_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MaxLengthString>>,
        5983  +
        pub(crate) fixed_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FixedLengthString>>,
        5984  +
        pub(crate) length_blob: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthBlob>>,
        5985  +
        pub(crate) min_length_blob: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MinLengthBlob>>,
        5986  +
        pub(crate) max_length_blob: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MaxLengthBlob>>,
        5987  +
        pub(crate) fixed_length_blob: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FixedLengthBlob>>,
        5988  +
        pub(crate) range_integer: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
        5989  +
        pub(crate) min_range_integer: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MinRangeInteger>>,
        5990  +
        pub(crate) max_range_integer: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MaxRangeInteger>>,
        5991  +
        pub(crate) fixed_value_integer: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FixedValueInteger>>,
        5992  +
        pub(crate) range_short: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
        5993  +
        pub(crate) min_range_short: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MinRangeShort>>,
        5994  +
        pub(crate) max_range_short: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MaxRangeShort>>,
        5995  +
        pub(crate) fixed_value_short: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FixedValueShort>>,
        5996  +
        pub(crate) range_long: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
        5997  +
        pub(crate) min_range_long: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MinRangeLong>>,
        5998  +
        pub(crate) max_range_long: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MaxRangeLong>>,
        5999  +
        pub(crate) fixed_value_long: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FixedValueLong>>,
        6000  +
        pub(crate) range_byte: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
        6001  +
        pub(crate) min_range_byte: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MinRangeByte>>,
        6002  +
        pub(crate) max_range_byte: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MaxRangeByte>>,
        6003  +
        pub(crate) fixed_value_byte: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FixedValueByte>>,
        6004  +
        pub(crate) con_b_list: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::con_b_list_constrained::ConBListConstrained>>,
        6005  +
        pub(crate) length_list: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthList>>,
        6006  +
        pub(crate) sensitive_length_list: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SensitiveLengthList>>,
        6007  +
        pub(crate) con_b_set: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConBSet>>,
        6008  +
        pub(crate) con_b_map: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
        6009  +
        pub(crate) length_map: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthMap>>,
        6010  +
        pub(crate) map_of_map_of_list_of_list_of_con_b: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_map_of_list_of_list_of_con_b_constrained::MapOfMapOfListOfListOfConBConstrained>>,
        6011  +
        pub(crate) sparse_map: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::sparse_map_constrained::SparseMapConstrained>>,
        6012  +
        pub(crate) sparse_list: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::sparse_list_constrained::SparseListConstrained>>,
        6013  +
        pub(crate) sparse_length_map: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SparseLengthMap>>,
        6014  +
        pub(crate) sparse_length_list: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SparseLengthList>>,
        6015  +
        pub(crate) constrained_union: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConstrainedUnion>>,
        6016  +
        pub(crate) enum_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::EnumString>>,
        6017  +
        pub(crate) list_of_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>,
        6018  +
        pub(crate) set_of_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>>,
        6019  +
        pub(crate) map_of_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>,
        6020  +
        pub(crate) list_of_length_blob: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_blob_constrained::ListOfLengthBlobConstrained>>,
        6021  +
        pub(crate) map_of_length_blob: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_blob_constrained::MapOfLengthBlobConstrained>>,
        6022  +
        pub(crate) list_of_range_integer: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>,
        6023  +
        pub(crate) set_of_range_integer: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>>,
        6024  +
        pub(crate) map_of_range_integer: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_range_integer_constrained::MapOfRangeIntegerConstrained>>,
        6025  +
        pub(crate) list_of_range_short: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>,
        6026  +
        pub(crate) set_of_range_short: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>>,
        6027  +
        pub(crate) map_of_range_short: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_range_short_constrained::MapOfRangeShortConstrained>>,
        6028  +
        pub(crate) list_of_range_long: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>,
        6029  +
        pub(crate) set_of_range_long: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>>,
        6030  +
        pub(crate) map_of_range_long: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_range_long_constrained::MapOfRangeLongConstrained>>,
        6031  +
        pub(crate) list_of_range_byte: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>,
        6032  +
        pub(crate) set_of_range_byte: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>>,
        6033  +
        pub(crate) map_of_range_byte: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_range_byte_constrained::MapOfRangeByteConstrained>>,
        6034  +
        pub(crate) non_streaming_blob: ::std::option::Option<::aws_smithy_types::Blob>,
        6035  +
        pub(crate) pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::PatternString>>,
        6036  +
        pub(crate) map_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained>>,
        6037  +
        pub(crate) list_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_pattern_string_constrained::ListOfPatternStringConstrained>>,
        6038  +
        pub(crate) set_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfPatternString>>,
        6039  +
        pub(crate) length_length_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthPatternString>>,
        6040  +
        pub(crate) map_of_length_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained>>,
        6041  +
        pub(crate) list_of_length_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_pattern_string_constrained::ListOfLengthPatternStringConstrained>>,
        6042  +
        pub(crate) set_of_length_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfLengthPatternString>>,
        6043  +
        pub(crate) length_list_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>>,
        6044  +
        pub(crate) length_set_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthSetOfPatternString>>,
        6045  +
    }
        6046  +
    impl Builder {
        6047  +
        #[allow(missing_docs)] // documentation missing in model
        6048  +
        pub fn con_b(mut self, input: crate::model::ConB) -> Self {
        6049  +
            self.con_b = Some(crate::constrained::MaybeConstrained::Constrained(input));
        6050  +
            self
        6051  +
        }
        6052  +
        #[allow(missing_docs)] // documentation missing in model
        6053  +
        pub(crate) fn set_con_b(
        6054  +
            mut self,
        6055  +
            input: impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConB>>,
        6056  +
        ) -> Self {
        6057  +
            self.con_b = Some(input.into());
        6058  +
            self
        6059  +
        }
        6060  +
        #[allow(missing_docs)] // documentation missing in model
        6061  +
        pub fn opt_con_b(mut self, input: ::std::option::Option<crate::model::ConB>) -> Self {
        6062  +
            self.opt_con_b = input.map(crate::constrained::MaybeConstrained::Constrained);
        6063  +
            self
        6064  +
        }
        6065  +
        #[allow(missing_docs)] // documentation missing in model
        6066  +
        pub(crate) fn set_opt_con_b(
        6067  +
            mut self,
        6068  +
            input: Option<
        6069  +
                impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConB>>,
        6070  +
            >,
        6071  +
        ) -> Self {
        6072  +
            self.opt_con_b = input.map(|v| v.into());
        6073  +
            self
        6074  +
        }
        6075  +
        #[allow(missing_docs)] // documentation missing in model
        6076  +
        pub fn length_string(
        6077  +
            mut self,
        6078  +
            input: ::std::option::Option<crate::model::LengthString>,
        6079  +
        ) -> Self {
        6080  +
            self.length_string = input.map(crate::constrained::MaybeConstrained::Constrained);
        6081  +
            self
        6082  +
        }
        6083  +
        #[allow(missing_docs)] // documentation missing in model
        6084  +
        pub(crate) fn set_length_string(
        6085  +
            mut self,
        6086  +
            input: Option<
        6087  +
                impl ::std::convert::Into<
        6088  +
                    crate::constrained::MaybeConstrained<crate::model::LengthString>,
        6089  +
                >,
        6090  +
            >,
        6091  +
        ) -> Self {
        6092  +
            self.length_string = input.map(|v| v.into());
        6093  +
            self
        6094  +
        }
        6095  +
        #[allow(missing_docs)] // documentation missing in model
        6096  +
        pub fn min_length_string(
        6097  +
            mut self,
        6098  +
            input: ::std::option::Option<crate::model::MinLengthString>,
        6099  +
        ) -> Self {
        6100  +
            self.min_length_string = input.map(crate::constrained::MaybeConstrained::Constrained);
        6101  +
            self
        6102  +
        }
        6103  +
        #[allow(missing_docs)] // documentation missing in model
        6104  +
        pub(crate) fn set_min_length_string(
        6105  +
            mut self,
        6106  +
            input: Option<
        6107  +
                impl ::std::convert::Into<
        6108  +
                    crate::constrained::MaybeConstrained<crate::model::MinLengthString>,
        6109  +
                >,
        6110  +
            >,
        6111  +
        ) -> Self {
        6112  +
            self.min_length_string = input.map(|v| v.into());
        6113  +
            self
        6114  +
        }
        6115  +
        #[allow(missing_docs)] // documentation missing in model
        6116  +
        pub fn max_length_string(
        6117  +
            mut self,
        6118  +
            input: ::std::option::Option<crate::model::MaxLengthString>,
        6119  +
        ) -> Self {
        6120  +
            self.max_length_string = input.map(crate::constrained::MaybeConstrained::Constrained);
        6121  +
            self
        6122  +
        }
        6123  +
        #[allow(missing_docs)] // documentation missing in model
        6124  +
        pub(crate) fn set_max_length_string(
        6125  +
            mut self,
        6126  +
            input: Option<
        6127  +
                impl ::std::convert::Into<
        6128  +
                    crate::constrained::MaybeConstrained<crate::model::MaxLengthString>,
        6129  +
                >,
        6130  +
            >,
        6131  +
        ) -> Self {
        6132  +
            self.max_length_string = input.map(|v| v.into());
        6133  +
            self
        6134  +
        }
        6135  +
        #[allow(missing_docs)] // documentation missing in model
        6136  +
        pub fn fixed_length_string(
        6137  +
            mut self,
        6138  +
            input: ::std::option::Option<crate::model::FixedLengthString>,
        6139  +
        ) -> Self {
        6140  +
            self.fixed_length_string = input.map(crate::constrained::MaybeConstrained::Constrained);
        6141  +
            self
        6142  +
        }
        6143  +
        #[allow(missing_docs)] // documentation missing in model
        6144  +
        pub(crate) fn set_fixed_length_string(
        6145  +
            mut self,
        6146  +
            input: Option<
        6147  +
                impl ::std::convert::Into<
        6148  +
                    crate::constrained::MaybeConstrained<crate::model::FixedLengthString>,
        6149  +
                >,
        6150  +
            >,
        6151  +
        ) -> Self {
        6152  +
            self.fixed_length_string = input.map(|v| v.into());
        6153  +
            self
        6154  +
        }
        6155  +
        #[allow(missing_docs)] // documentation missing in model
        6156  +
        pub fn length_blob(
        6157  +
            mut self,
        6158  +
            input: ::std::option::Option<crate::model::LengthBlob>,
        6159  +
        ) -> Self {
        6160  +
            self.length_blob = input.map(crate::constrained::MaybeConstrained::Constrained);
        6161  +
            self
        6162  +
        }
        6163  +
        #[allow(missing_docs)] // documentation missing in model
        6164  +
        pub(crate) fn set_length_blob(
        6165  +
            mut self,
        6166  +
            input: Option<
        6167  +
                impl ::std::convert::Into<
        6168  +
                    crate::constrained::MaybeConstrained<crate::model::LengthBlob>,
        6169  +
                >,
        6170  +
            >,
        6171  +
        ) -> Self {
        6172  +
            self.length_blob = input.map(|v| v.into());
        6173  +
            self
        6174  +
        }
        6175  +
        #[allow(missing_docs)] // documentation missing in model
        6176  +
        pub fn min_length_blob(
        6177  +
            mut self,
        6178  +
            input: ::std::option::Option<crate::model::MinLengthBlob>,
        6179  +
        ) -> Self {
        6180  +
            self.min_length_blob = input.map(crate::constrained::MaybeConstrained::Constrained);
        6181  +
            self
        6182  +
        }
        6183  +
        #[allow(missing_docs)] // documentation missing in model
        6184  +
        pub(crate) fn set_min_length_blob(
        6185  +
            mut self,
        6186  +
            input: Option<
        6187  +
                impl ::std::convert::Into<
        6188  +
                    crate::constrained::MaybeConstrained<crate::model::MinLengthBlob>,
        6189  +
                >,
        6190  +
            >,
        6191  +
        ) -> Self {
        6192  +
            self.min_length_blob = input.map(|v| v.into());
        6193  +
            self
        6194  +
        }
        6195  +
        #[allow(missing_docs)] // documentation missing in model
        6196  +
        pub fn max_length_blob(
        6197  +
            mut self,
        6198  +
            input: ::std::option::Option<crate::model::MaxLengthBlob>,
        6199  +
        ) -> Self {
        6200  +
            self.max_length_blob = input.map(crate::constrained::MaybeConstrained::Constrained);
        6201  +
            self
        6202  +
        }
        6203  +
        #[allow(missing_docs)] // documentation missing in model
        6204  +
        pub(crate) fn set_max_length_blob(
        6205  +
            mut self,
        6206  +
            input: Option<
        6207  +
                impl ::std::convert::Into<
        6208  +
                    crate::constrained::MaybeConstrained<crate::model::MaxLengthBlob>,
        6209  +
                >,
        6210  +
            >,
        6211  +
        ) -> Self {
        6212  +
            self.max_length_blob = input.map(|v| v.into());
        6213  +
            self
        6214  +
        }
        6215  +
        #[allow(missing_docs)] // documentation missing in model
        6216  +
        pub fn fixed_length_blob(
        6217  +
            mut self,
        6218  +
            input: ::std::option::Option<crate::model::FixedLengthBlob>,
        6219  +
        ) -> Self {
        6220  +
            self.fixed_length_blob = input.map(crate::constrained::MaybeConstrained::Constrained);
        6221  +
            self
        6222  +
        }
        6223  +
        #[allow(missing_docs)] // documentation missing in model
        6224  +
        pub(crate) fn set_fixed_length_blob(
        6225  +
            mut self,
        6226  +
            input: Option<
        6227  +
                impl ::std::convert::Into<
        6228  +
                    crate::constrained::MaybeConstrained<crate::model::FixedLengthBlob>,
        6229  +
                >,
        6230  +
            >,
        6231  +
        ) -> Self {
        6232  +
            self.fixed_length_blob = input.map(|v| v.into());
        6233  +
            self
        6234  +
        }
        6235  +
        #[allow(missing_docs)] // documentation missing in model
        6236  +
        pub fn range_integer(mut self, input: crate::model::RangeInteger) -> Self {
        6237  +
            self.range_integer = Some(crate::constrained::MaybeConstrained::Constrained(input));
        6238  +
            self
        6239  +
        }
        6240  +
        #[allow(missing_docs)] // documentation missing in model
        6241  +
        pub(crate) fn set_range_integer(
        6242  +
            mut self,
        6243  +
            input: impl ::std::convert::Into<
        6244  +
                crate::constrained::MaybeConstrained<crate::model::RangeInteger>,
        6245  +
            >,
        6246  +
        ) -> Self {
        6247  +
            self.range_integer = Some(input.into());
        6248  +
            self
        6249  +
        }
        6250  +
        #[allow(missing_docs)] // documentation missing in model
        6251  +
        pub fn min_range_integer(mut self, input: crate::model::MinRangeInteger) -> Self {
        6252  +
            self.min_range_integer = Some(crate::constrained::MaybeConstrained::Constrained(input));
        6253  +
            self
        6254  +
        }
        6255  +
        #[allow(missing_docs)] // documentation missing in model
        6256  +
        pub(crate) fn set_min_range_integer(
        6257  +
            mut self,
        6258  +
            input: impl ::std::convert::Into<
        6259  +
                crate::constrained::MaybeConstrained<crate::model::MinRangeInteger>,
        6260  +
            >,
        6261  +
        ) -> Self {
        6262  +
            self.min_range_integer = Some(input.into());
        6263  +
            self
        6264  +
        }
        6265  +
        #[allow(missing_docs)] // documentation missing in model
        6266  +
        pub fn max_range_integer(mut self, input: crate::model::MaxRangeInteger) -> Self {
        6267  +
            self.max_range_integer = Some(crate::constrained::MaybeConstrained::Constrained(input));
        6268  +
            self
        6269  +
        }
        6270  +
        #[allow(missing_docs)] // documentation missing in model
        6271  +
        pub(crate) fn set_max_range_integer(
        6272  +
            mut self,
        6273  +
            input: impl ::std::convert::Into<
        6274  +
                crate::constrained::MaybeConstrained<crate::model::MaxRangeInteger>,
        6275  +
            >,
        6276  +
        ) -> Self {
        6277  +
            self.max_range_integer = Some(input.into());
        6278  +
            self
        6279  +
        }
        6280  +
        #[allow(missing_docs)] // documentation missing in model
        6281  +
        pub fn fixed_value_integer(mut self, input: crate::model::FixedValueInteger) -> Self {
        6282  +
            self.fixed_value_integer =
        6283  +
                Some(crate::constrained::MaybeConstrained::Constrained(input));
        6284  +
            self
        6285  +
        }
        6286  +
        #[allow(missing_docs)] // documentation missing in model
        6287  +
        pub(crate) fn set_fixed_value_integer(
        6288  +
            mut self,
        6289  +
            input: impl ::std::convert::Into<
        6290  +
                crate::constrained::MaybeConstrained<crate::model::FixedValueInteger>,
        6291  +
            >,
        6292  +
        ) -> Self {
        6293  +
            self.fixed_value_integer = Some(input.into());
        6294  +
            self
        6295  +
        }
        6296  +
        #[allow(missing_docs)] // documentation missing in model
        6297  +
        pub fn range_short(mut self, input: crate::model::RangeShort) -> Self {
        6298  +
            self.range_short = Some(crate::constrained::MaybeConstrained::Constrained(input));
        6299  +
            self
        6300  +
        }
        6301  +
        #[allow(missing_docs)] // documentation missing in model
        6302  +
        pub(crate) fn set_range_short(
        6303  +
            mut self,
        6304  +
            input: impl ::std::convert::Into<
        6305  +
                crate::constrained::MaybeConstrained<crate::model::RangeShort>,
        6306  +
            >,
        6307  +
        ) -> Self {
        6308  +
            self.range_short = Some(input.into());
        6309  +
            self
        6310  +
        }
        6311  +
        #[allow(missing_docs)] // documentation missing in model
        6312  +
        pub fn min_range_short(mut self, input: crate::model::MinRangeShort) -> Self {
        6313  +
            self.min_range_short = Some(crate::constrained::MaybeConstrained::Constrained(input));
        6314  +
            self
        6315  +
        }
        6316  +
        #[allow(missing_docs)] // documentation missing in model
        6317  +
        pub(crate) fn set_min_range_short(
        6318  +
            mut self,
        6319  +
            input: impl ::std::convert::Into<
        6320  +
                crate::constrained::MaybeConstrained<crate::model::MinRangeShort>,
        6321  +
            >,
        6322  +
        ) -> Self {
        6323  +
            self.min_range_short = Some(input.into());
        6324  +
            self
        6325  +
        }
        6326  +
        #[allow(missing_docs)] // documentation missing in model
        6327  +
        pub fn max_range_short(mut self, input: crate::model::MaxRangeShort) -> Self {
        6328  +
            self.max_range_short = Some(crate::constrained::MaybeConstrained::Constrained(input));
        6329  +
            self
        6330  +
        }
        6331  +
        #[allow(missing_docs)] // documentation missing in model
        6332  +
        pub(crate) fn set_max_range_short(
        6333  +
            mut self,
        6334  +
            input: impl ::std::convert::Into<
        6335  +
                crate::constrained::MaybeConstrained<crate::model::MaxRangeShort>,
        6336  +
            >,
        6337  +
        ) -> Self {
        6338  +
            self.max_range_short = Some(input.into());
        6339  +
            self
        6340  +
        }
        6341  +
        #[allow(missing_docs)] // documentation missing in model
        6342  +
        pub fn fixed_value_short(mut self, input: crate::model::FixedValueShort) -> Self {
        6343  +
            self.fixed_value_short = Some(crate::constrained::MaybeConstrained::Constrained(input));
        6344  +
            self
        6345  +
        }
        6346  +
        #[allow(missing_docs)] // documentation missing in model
        6347  +
        pub(crate) fn set_fixed_value_short(
        6348  +
            mut self,
        6349  +
            input: impl ::std::convert::Into<
        6350  +
                crate::constrained::MaybeConstrained<crate::model::FixedValueShort>,
        6351  +
            >,
        6352  +
        ) -> Self {
        6353  +
            self.fixed_value_short = Some(input.into());
        6354  +
            self
        6355  +
        }
        6356  +
        #[allow(missing_docs)] // documentation missing in model
        6357  +
        pub fn range_long(mut self, input: crate::model::RangeLong) -> Self {
        6358  +
            self.range_long = Some(crate::constrained::MaybeConstrained::Constrained(input));
        6359  +
            self
        6360  +
        }
        6361  +
        #[allow(missing_docs)] // documentation missing in model
        6362  +
        pub(crate) fn set_range_long(
        6363  +
            mut self,
        6364  +
            input: impl ::std::convert::Into<
        6365  +
                crate::constrained::MaybeConstrained<crate::model::RangeLong>,
        6366  +
            >,
        6367  +
        ) -> Self {
        6368  +
            self.range_long = Some(input.into());
        6369  +
            self
        6370  +
        }
        6371  +
        #[allow(missing_docs)] // documentation missing in model
        6372  +
        pub fn min_range_long(mut self, input: crate::model::MinRangeLong) -> Self {
        6373  +
            self.min_range_long = Some(crate::constrained::MaybeConstrained::Constrained(input));
        6374  +
            self
        6375  +
        }
        6376  +
        #[allow(missing_docs)] // documentation missing in model
        6377  +
        pub(crate) fn set_min_range_long(
        6378  +
            mut self,
        6379  +
            input: impl ::std::convert::Into<
        6380  +
                crate::constrained::MaybeConstrained<crate::model::MinRangeLong>,
        6381  +
            >,
        6382  +
        ) -> Self {
        6383  +
            self.min_range_long = Some(input.into());
        6384  +
            self
        6385  +
        }
        6386  +
        #[allow(missing_docs)] // documentation missing in model
        6387  +
        pub fn max_range_long(mut self, input: crate::model::MaxRangeLong) -> Self {
        6388  +
            self.max_range_long = Some(crate::constrained::MaybeConstrained::Constrained(input));
        6389  +
            self
        6390  +
        }
        6391  +
        #[allow(missing_docs)] // documentation missing in model
        6392  +
        pub(crate) fn set_max_range_long(
        6393  +
            mut self,
        6394  +
            input: impl ::std::convert::Into<
        6395  +
                crate::constrained::MaybeConstrained<crate::model::MaxRangeLong>,
        6396  +
            >,
        6397  +
        ) -> Self {
        6398  +
            self.max_range_long = Some(input.into());
        6399  +
            self
        6400  +
        }
        6401  +
        #[allow(missing_docs)] // documentation missing in model
        6402  +
        pub fn fixed_value_long(mut self, input: crate::model::FixedValueLong) -> Self {
        6403  +
            self.fixed_value_long = Some(crate::constrained::MaybeConstrained::Constrained(input));
        6404  +
            self
        6405  +
        }
        6406  +
        #[allow(missing_docs)] // documentation missing in model
        6407  +
        pub(crate) fn set_fixed_value_long(
        6408  +
            mut self,
        6409  +
            input: impl ::std::convert::Into<
        6410  +
                crate::constrained::MaybeConstrained<crate::model::FixedValueLong>,
        6411  +
            >,
        6412  +
        ) -> Self {
        6413  +
            self.fixed_value_long = Some(input.into());
        6414  +
            self
        6415  +
        }
        6416  +
        #[allow(missing_docs)] // documentation missing in model
        6417  +
        pub fn range_byte(mut self, input: crate::model::RangeByte) -> Self {
        6418  +
            self.range_byte = Some(crate::constrained::MaybeConstrained::Constrained(input));
        6419  +
            self
        6420  +
        }
        6421  +
        #[allow(missing_docs)] // documentation missing in model
        6422  +
        pub(crate) fn set_range_byte(
        6423  +
            mut self,
        6424  +
            input: impl ::std::convert::Into<
        6425  +
                crate::constrained::MaybeConstrained<crate::model::RangeByte>,
        6426  +
            >,
        6427  +
        ) -> Self {
        6428  +
            self.range_byte = Some(input.into());
        6429  +
            self
        6430  +
        }
        6431  +
        #[allow(missing_docs)] // documentation missing in model
        6432  +
        pub fn min_range_byte(mut self, input: crate::model::MinRangeByte) -> Self {
        6433  +
            self.min_range_byte = Some(crate::constrained::MaybeConstrained::Constrained(input));
        6434  +
            self
        6435  +
        }
        6436  +
        #[allow(missing_docs)] // documentation missing in model
        6437  +
        pub(crate) fn set_min_range_byte(
        6438  +
            mut self,
        6439  +
            input: impl ::std::convert::Into<
        6440  +
                crate::constrained::MaybeConstrained<crate::model::MinRangeByte>,
        6441  +
            >,
        6442  +
        ) -> Self {
        6443  +
            self.min_range_byte = Some(input.into());
        6444  +
            self
        6445  +
        }
        6446  +
        #[allow(missing_docs)] // documentation missing in model
        6447  +
        pub fn max_range_byte(mut self, input: crate::model::MaxRangeByte) -> Self {
        6448  +
            self.max_range_byte = Some(crate::constrained::MaybeConstrained::Constrained(input));
        6449  +
            self
        6450  +
        }
        6451  +
        #[allow(missing_docs)] // documentation missing in model
        6452  +
        pub(crate) fn set_max_range_byte(
        6453  +
            mut self,
        6454  +
            input: impl ::std::convert::Into<
        6455  +
                crate::constrained::MaybeConstrained<crate::model::MaxRangeByte>,
        6456  +
            >,
        6457  +
        ) -> Self {
        6458  +
            self.max_range_byte = Some(input.into());
        6459  +
            self
        6460  +
        }
        6461  +
        #[allow(missing_docs)] // documentation missing in model
        6462  +
        pub fn fixed_value_byte(mut self, input: crate::model::FixedValueByte) -> Self {
        6463  +
            self.fixed_value_byte = Some(crate::constrained::MaybeConstrained::Constrained(input));
        6464  +
            self
        6465  +
        }
        6466  +
        #[allow(missing_docs)] // documentation missing in model
        6467  +
        pub(crate) fn set_fixed_value_byte(
        6468  +
            mut self,
        6469  +
            input: impl ::std::convert::Into<
        6470  +
                crate::constrained::MaybeConstrained<crate::model::FixedValueByte>,
        6471  +
            >,
        6472  +
        ) -> Self {
        6473  +
            self.fixed_value_byte = Some(input.into());
        6474  +
            self
        6475  +
        }
        6476  +
        #[allow(missing_docs)] // documentation missing in model
        6477  +
        pub fn con_b_list(
        6478  +
            mut self,
        6479  +
            input: ::std::option::Option<::std::vec::Vec<::std::vec::Vec<crate::model::ConB>>>,
        6480  +
        ) -> Self {
        6481  +
            self.con_b_list =
        6482  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        6483  +
            self
        6484  +
        }
        6485  +
        #[allow(missing_docs)] // documentation missing in model
        6486  +
        pub(crate) fn set_con_b_list(
        6487  +
            mut self,
        6488  +
            input: Option<
        6489  +
                impl ::std::convert::Into<
        6490  +
                    crate::constrained::MaybeConstrained<
        6491  +
                        crate::constrained::con_b_list_constrained::ConBListConstrained,
        6492  +
                    >,
        6493  +
                >,
        6494  +
            >,
        6495  +
        ) -> Self {
        6496  +
            self.con_b_list = input.map(|v| v.into());
        6497  +
            self
        6498  +
        }
        6499  +
        #[allow(missing_docs)] // documentation missing in model
        6500  +
        pub fn length_list(
        6501  +
            mut self,
        6502  +
            input: ::std::option::Option<crate::model::LengthList>,
        6503  +
        ) -> Self {
        6504  +
            self.length_list = input.map(crate::constrained::MaybeConstrained::Constrained);
        6505  +
            self
        6506  +
        }
        6507  +
        #[allow(missing_docs)] // documentation missing in model
        6508  +
        pub(crate) fn set_length_list(
        6509  +
            mut self,
        6510  +
            input: Option<
        6511  +
                impl ::std::convert::Into<
        6512  +
                    crate::constrained::MaybeConstrained<crate::model::LengthList>,
        6513  +
                >,
        6514  +
            >,
        6515  +
        ) -> Self {
        6516  +
            self.length_list = input.map(|v| v.into());
        6517  +
            self
        6518  +
        }
        6519  +
        #[allow(missing_docs)] // documentation missing in model
        6520  +
        pub fn sensitive_length_list(
        6521  +
            mut self,
        6522  +
            input: ::std::option::Option<crate::model::SensitiveLengthList>,
        6523  +
        ) -> Self {
        6524  +
            self.sensitive_length_list =
        6525  +
                input.map(crate::constrained::MaybeConstrained::Constrained);
        6526  +
            self
        6527  +
        }
        6528  +
        #[allow(missing_docs)] // documentation missing in model
        6529  +
        pub(crate) fn set_sensitive_length_list(
        6530  +
            mut self,
        6531  +
            input: Option<
        6532  +
                impl ::std::convert::Into<
        6533  +
                    crate::constrained::MaybeConstrained<crate::model::SensitiveLengthList>,
        6534  +
                >,
        6535  +
            >,
        6536  +
        ) -> Self {
        6537  +
            self.sensitive_length_list = input.map(|v| v.into());
        6538  +
            self
        6539  +
        }
        6540  +
        #[allow(missing_docs)] // documentation missing in model
        6541  +
        pub fn con_b_set(mut self, input: ::std::option::Option<crate::model::ConBSet>) -> Self {
        6542  +
            self.con_b_set = input.map(crate::constrained::MaybeConstrained::Constrained);
        6543  +
            self
        6544  +
        }
        6545  +
        #[allow(missing_docs)] // documentation missing in model
        6546  +
        pub(crate) fn set_con_b_set(
        6547  +
            mut self,
        6548  +
            input: Option<
        6549  +
                impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConBSet>>,
        6550  +
            >,
        6551  +
        ) -> Self {
        6552  +
            self.con_b_set = input.map(|v| v.into());
        6553  +
            self
        6554  +
        }
        6555  +
        #[allow(missing_docs)] // documentation missing in model
        6556  +
        pub fn con_b_map(mut self, input: ::std::option::Option<crate::model::ConBMap>) -> Self {
        6557  +
            self.con_b_map = input.map(crate::constrained::MaybeConstrained::Constrained);
        6558  +
            self
        6559  +
        }
        6560  +
        #[allow(missing_docs)] // documentation missing in model
        6561  +
        pub(crate) fn set_con_b_map(
        6562  +
            mut self,
        6563  +
            input: Option<
        6564  +
                impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
        6565  +
            >,
        6566  +
        ) -> Self {
        6567  +
            self.con_b_map = input.map(|v| v.into());
        6568  +
            self
        6569  +
        }
        6570  +
        #[allow(missing_docs)] // documentation missing in model
        6571  +
        pub fn length_map(mut self, input: ::std::option::Option<crate::model::LengthMap>) -> Self {
        6572  +
            self.length_map = input.map(crate::constrained::MaybeConstrained::Constrained);
        6573  +
            self
        6574  +
        }
        6575  +
        #[allow(missing_docs)] // documentation missing in model
        6576  +
        pub(crate) fn set_length_map(
        6577  +
            mut self,
        6578  +
            input: Option<
        6579  +
                impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::LengthMap>>,
        6580  +
            >,
        6581  +
        ) -> Self {
        6582  +
            self.length_map = input.map(|v| v.into());
        6583  +
            self
        6584  +
        }
        6585  +
        #[allow(missing_docs)] // documentation missing in model
        6586  +
        pub fn map_of_map_of_list_of_list_of_con_b(
        6587  +
            mut self,
        6588  +
            input: ::std::option::Option<
        6589  +
                ::std::collections::HashMap<
        6590  +
                    ::std::string::String,
        6591  +
                    ::std::collections::HashMap<
        6592  +
                        ::std::string::String,
        6593  +
                        ::std::vec::Vec<::std::vec::Vec<crate::model::ConB>>,
        6594  +
                    >,
        6595  +
                >,
        6596  +
            >,
        6597  +
        ) -> Self {
        6598  +
            self.map_of_map_of_list_of_list_of_con_b =
        6599  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        6600  +
            self
        6601  +
        }
        6602  +
        #[allow(missing_docs)] // documentation missing in model
        6603  +
        pub(crate) fn set_map_of_map_of_list_of_list_of_con_b(
        6604  +
            mut self,
        6605  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_map_of_list_of_list_of_con_b_constrained::MapOfMapOfListOfListOfConBConstrained>>>,
        6606  +
        ) -> Self {
        6607  +
            self.map_of_map_of_list_of_list_of_con_b = input.map(|v| v.into());
        6608  +
            self
        6609  +
        }
        6610  +
        #[allow(missing_docs)] // documentation missing in model
        6611  +
        pub fn sparse_map(
        6612  +
            mut self,
        6613  +
            input: ::std::option::Option<
        6614  +
                ::std::collections::HashMap<
        6615  +
                    ::std::string::String,
        6616  +
                    ::std::option::Option<crate::model::UniqueItemsList>,
        6617  +
                >,
        6618  +
            >,
        6619  +
        ) -> Self {
        6620  +
            self.sparse_map =
        6621  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        6622  +
            self
        6623  +
        }
        6624  +
        #[allow(missing_docs)] // documentation missing in model
        6625  +
        pub(crate) fn set_sparse_map(
        6626  +
            mut self,
        6627  +
            input: Option<
        6628  +
                impl ::std::convert::Into<
        6629  +
                    crate::constrained::MaybeConstrained<
        6630  +
                        crate::constrained::sparse_map_constrained::SparseMapConstrained,
        6631  +
                    >,
        6632  +
                >,
        6633  +
            >,
        6634  +
        ) -> Self {
        6635  +
            self.sparse_map = input.map(|v| v.into());
        6636  +
            self
        6637  +
        }
        6638  +
        #[allow(missing_docs)] // documentation missing in model
        6639  +
        pub fn sparse_list(
        6640  +
            mut self,
        6641  +
            input: ::std::option::Option<
        6642  +
                ::std::vec::Vec<::std::option::Option<crate::model::LengthString>>,
        6643  +
            >,
        6644  +
        ) -> Self {
        6645  +
            self.sparse_list =
        6646  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        6647  +
            self
        6648  +
        }
        6649  +
        #[allow(missing_docs)] // documentation missing in model
        6650  +
        pub(crate) fn set_sparse_list(
        6651  +
            mut self,
        6652  +
            input: Option<
        6653  +
                impl ::std::convert::Into<
        6654  +
                    crate::constrained::MaybeConstrained<
        6655  +
                        crate::constrained::sparse_list_constrained::SparseListConstrained,
        6656  +
                    >,
        6657  +
                >,
        6658  +
            >,
        6659  +
        ) -> Self {
        6660  +
            self.sparse_list = input.map(|v| v.into());
        6661  +
            self
        6662  +
        }
        6663  +
        #[allow(missing_docs)] // documentation missing in model
        6664  +
        pub fn sparse_length_map(
        6665  +
            mut self,
        6666  +
            input: ::std::option::Option<crate::model::SparseLengthMap>,
        6667  +
        ) -> Self {
        6668  +
            self.sparse_length_map = input.map(crate::constrained::MaybeConstrained::Constrained);
        6669  +
            self
        6670  +
        }
        6671  +
        #[allow(missing_docs)] // documentation missing in model
        6672  +
        pub(crate) fn set_sparse_length_map(
        6673  +
            mut self,
        6674  +
            input: Option<
        6675  +
                impl ::std::convert::Into<
        6676  +
                    crate::constrained::MaybeConstrained<crate::model::SparseLengthMap>,
        6677  +
                >,
        6678  +
            >,
        6679  +
        ) -> Self {
        6680  +
            self.sparse_length_map = input.map(|v| v.into());
        6681  +
            self
        6682  +
        }
        6683  +
        #[allow(missing_docs)] // documentation missing in model
        6684  +
        pub fn sparse_length_list(
        6685  +
            mut self,
        6686  +
            input: ::std::option::Option<crate::model::SparseLengthList>,
        6687  +
        ) -> Self {
        6688  +
            self.sparse_length_list = input.map(crate::constrained::MaybeConstrained::Constrained);
        6689  +
            self
        6690  +
        }
        6691  +
        #[allow(missing_docs)] // documentation missing in model
        6692  +
        pub(crate) fn set_sparse_length_list(
        6693  +
            mut self,
        6694  +
            input: Option<
        6695  +
                impl ::std::convert::Into<
        6696  +
                    crate::constrained::MaybeConstrained<crate::model::SparseLengthList>,
        6697  +
                >,
        6698  +
            >,
        6699  +
        ) -> Self {
        6700  +
            self.sparse_length_list = input.map(|v| v.into());
        6701  +
            self
        6702  +
        }
        6703  +
        /// A union with constrained members.
        6704  +
        pub fn constrained_union(
        6705  +
            mut self,
        6706  +
            input: ::std::option::Option<crate::model::ConstrainedUnion>,
        6707  +
        ) -> Self {
        6708  +
            self.constrained_union = input.map(crate::constrained::MaybeConstrained::Constrained);
        6709  +
            self
        6710  +
        }
        6711  +
        /// A union with constrained members.
        6712  +
        pub(crate) fn set_constrained_union(
        6713  +
            mut self,
        6714  +
            input: Option<
        6715  +
                impl ::std::convert::Into<
        6716  +
                    crate::constrained::MaybeConstrained<crate::model::ConstrainedUnion>,
        6717  +
                >,
        6718  +
            >,
        6719  +
        ) -> Self {
        6720  +
            self.constrained_union = input.map(|v| v.into());
        6721  +
            self
        6722  +
        }
        6723  +
        #[allow(missing_docs)] // documentation missing in model
        6724  +
        pub fn enum_string(
        6725  +
            mut self,
        6726  +
            input: ::std::option::Option<crate::model::EnumString>,
        6727  +
        ) -> Self {
        6728  +
            self.enum_string = input.map(crate::constrained::MaybeConstrained::Constrained);
        6729  +
            self
        6730  +
        }
        6731  +
        #[allow(missing_docs)] // documentation missing in model
        6732  +
        pub(crate) fn set_enum_string(
        6733  +
            mut self,
        6734  +
            input: Option<
        6735  +
                impl ::std::convert::Into<
        6736  +
                    crate::constrained::MaybeConstrained<crate::model::EnumString>,
        6737  +
                >,
        6738  +
            >,
        6739  +
        ) -> Self {
        6740  +
            self.enum_string = input.map(|v| v.into());
        6741  +
            self
        6742  +
        }
        6743  +
        #[allow(missing_docs)] // documentation missing in model
        6744  +
        pub fn list_of_length_string(
        6745  +
            mut self,
        6746  +
            input: ::std::option::Option<::std::vec::Vec<crate::model::LengthString>>,
        6747  +
        ) -> Self {
        6748  +
            self.list_of_length_string =
        6749  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        6750  +
            self
        6751  +
        }
        6752  +
        #[allow(missing_docs)] // documentation missing in model
        6753  +
        pub(crate) fn set_list_of_length_string(
        6754  +
            mut self,
        6755  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>>,
        6756  +
        ) -> Self {
        6757  +
            self.list_of_length_string = input.map(|v| v.into());
        6758  +
            self
        6759  +
        }
        6760  +
        #[allow(missing_docs)] // documentation missing in model
        6761  +
        pub fn set_of_length_string(
        6762  +
            mut self,
        6763  +
            input: ::std::option::Option<crate::model::SetOfLengthString>,
        6764  +
        ) -> Self {
        6765  +
            self.set_of_length_string =
        6766  +
                input.map(crate::constrained::MaybeConstrained::Constrained);
        6767  +
            self
        6768  +
        }
        6769  +
        #[allow(missing_docs)] // documentation missing in model
        6770  +
        pub(crate) fn set_set_of_length_string(
        6771  +
            mut self,
        6772  +
            input: Option<
        6773  +
                impl ::std::convert::Into<
        6774  +
                    crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>,
        6775  +
                >,
        6776  +
            >,
        6777  +
        ) -> Self {
        6778  +
            self.set_of_length_string = input.map(|v| v.into());
        6779  +
            self
        6780  +
        }
        6781  +
        #[allow(missing_docs)] // documentation missing in model
        6782  +
        pub fn map_of_length_string(
        6783  +
            mut self,
        6784  +
            input: ::std::option::Option<
        6785  +
                ::std::collections::HashMap<crate::model::LengthString, crate::model::LengthString>,
        6786  +
            >,
        6787  +
        ) -> Self {
        6788  +
            self.map_of_length_string =
        6789  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        6790  +
            self
        6791  +
        }
        6792  +
        #[allow(missing_docs)] // documentation missing in model
        6793  +
        pub(crate) fn set_map_of_length_string(
        6794  +
            mut self,
        6795  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>>,
        6796  +
        ) -> Self {
        6797  +
            self.map_of_length_string = input.map(|v| v.into());
        6798  +
            self
        6799  +
        }
        6800  +
        #[allow(missing_docs)] // documentation missing in model
        6801  +
        pub fn list_of_length_blob(
        6802  +
            mut self,
        6803  +
            input: ::std::option::Option<::std::vec::Vec<crate::model::LengthBlob>>,
        6804  +
        ) -> Self {
        6805  +
            self.list_of_length_blob =
        6806  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        6807  +
            self
        6808  +
        }
        6809  +
        #[allow(missing_docs)] // documentation missing in model
        6810  +
        pub(crate) fn set_list_of_length_blob(
        6811  +
            mut self,
        6812  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_blob_constrained::ListOfLengthBlobConstrained>>>,
        6813  +
        ) -> Self {
        6814  +
            self.list_of_length_blob = input.map(|v| v.into());
        6815  +
            self
        6816  +
        }
        6817  +
        #[allow(missing_docs)] // documentation missing in model
        6818  +
        pub fn map_of_length_blob(
        6819  +
            mut self,
        6820  +
            input: ::std::option::Option<
        6821  +
                ::std::collections::HashMap<::std::string::String, crate::model::LengthBlob>,
        6822  +
            >,
        6823  +
        ) -> Self {
        6824  +
            self.map_of_length_blob =
        6825  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        6826  +
            self
        6827  +
        }
        6828  +
        #[allow(missing_docs)] // documentation missing in model
        6829  +
        pub(crate) fn set_map_of_length_blob(
        6830  +
            mut self,
        6831  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_blob_constrained::MapOfLengthBlobConstrained>>>,
        6832  +
        ) -> Self {
        6833  +
            self.map_of_length_blob = input.map(|v| v.into());
        6834  +
            self
        6835  +
        }
        6836  +
        #[allow(missing_docs)] // documentation missing in model
        6837  +
        pub fn list_of_range_integer(
        6838  +
            mut self,
        6839  +
            input: ::std::option::Option<::std::vec::Vec<crate::model::RangeInteger>>,
        6840  +
        ) -> Self {
        6841  +
            self.list_of_range_integer =
        6842  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        6843  +
            self
        6844  +
        }
        6845  +
        #[allow(missing_docs)] // documentation missing in model
        6846  +
        pub(crate) fn set_list_of_range_integer(
        6847  +
            mut self,
        6848  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>>,
        6849  +
        ) -> Self {
        6850  +
            self.list_of_range_integer = input.map(|v| v.into());
        6851  +
            self
        6852  +
        }
        6853  +
        #[allow(missing_docs)] // documentation missing in model
        6854  +
        pub fn set_of_range_integer(
        6855  +
            mut self,
        6856  +
            input: ::std::option::Option<crate::model::SetOfRangeInteger>,
        6857  +
        ) -> Self {
        6858  +
            self.set_of_range_integer =
        6859  +
                input.map(crate::constrained::MaybeConstrained::Constrained);
        6860  +
            self
        6861  +
        }
        6862  +
        #[allow(missing_docs)] // documentation missing in model
        6863  +
        pub(crate) fn set_set_of_range_integer(
        6864  +
            mut self,
        6865  +
            input: Option<
        6866  +
                impl ::std::convert::Into<
        6867  +
                    crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>,
        6868  +
                >,
        6869  +
            >,
        6870  +
        ) -> Self {
        6871  +
            self.set_of_range_integer = input.map(|v| v.into());
        6872  +
            self
        6873  +
        }
        6874  +
        #[allow(missing_docs)] // documentation missing in model
        6875  +
        pub fn map_of_range_integer(
        6876  +
            mut self,
        6877  +
            input: ::std::option::Option<
        6878  +
                ::std::collections::HashMap<::std::string::String, crate::model::RangeInteger>,
        6879  +
            >,
        6880  +
        ) -> Self {
        6881  +
            self.map_of_range_integer =
        6882  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        6883  +
            self
        6884  +
        }
        6885  +
        #[allow(missing_docs)] // documentation missing in model
        6886  +
        pub(crate) fn set_map_of_range_integer(
        6887  +
            mut self,
        6888  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_range_integer_constrained::MapOfRangeIntegerConstrained>>>,
        6889  +
        ) -> Self {
        6890  +
            self.map_of_range_integer = input.map(|v| v.into());
        6891  +
            self
        6892  +
        }
        6893  +
        #[allow(missing_docs)] // documentation missing in model
        6894  +
        pub fn list_of_range_short(
        6895  +
            mut self,
        6896  +
            input: ::std::option::Option<::std::vec::Vec<crate::model::RangeShort>>,
        6897  +
        ) -> Self {
        6898  +
            self.list_of_range_short =
        6899  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        6900  +
            self
        6901  +
        }
        6902  +
        #[allow(missing_docs)] // documentation missing in model
        6903  +
        pub(crate) fn set_list_of_range_short(
        6904  +
            mut self,
        6905  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>>,
        6906  +
        ) -> Self {
        6907  +
            self.list_of_range_short = input.map(|v| v.into());
        6908  +
            self
        6909  +
        }
        6910  +
        #[allow(missing_docs)] // documentation missing in model
        6911  +
        pub fn set_of_range_short(
        6912  +
            mut self,
        6913  +
            input: ::std::option::Option<crate::model::SetOfRangeShort>,
        6914  +
        ) -> Self {
        6915  +
            self.set_of_range_short = input.map(crate::constrained::MaybeConstrained::Constrained);
        6916  +
            self
        6917  +
        }
        6918  +
        #[allow(missing_docs)] // documentation missing in model
        6919  +
        pub(crate) fn set_set_of_range_short(
        6920  +
            mut self,
        6921  +
            input: Option<
        6922  +
                impl ::std::convert::Into<
        6923  +
                    crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>,
        6924  +
                >,
        6925  +
            >,
        6926  +
        ) -> Self {
        6927  +
            self.set_of_range_short = input.map(|v| v.into());
        6928  +
            self
        6929  +
        }
        6930  +
        #[allow(missing_docs)] // documentation missing in model
        6931  +
        pub fn map_of_range_short(
        6932  +
            mut self,
        6933  +
            input: ::std::option::Option<
        6934  +
                ::std::collections::HashMap<::std::string::String, crate::model::RangeShort>,
        6935  +
            >,
        6936  +
        ) -> Self {
        6937  +
            self.map_of_range_short =
        6938  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        6939  +
            self
        6940  +
        }
        6941  +
        #[allow(missing_docs)] // documentation missing in model
        6942  +
        pub(crate) fn set_map_of_range_short(
        6943  +
            mut self,
        6944  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_range_short_constrained::MapOfRangeShortConstrained>>>,
        6945  +
        ) -> Self {
        6946  +
            self.map_of_range_short = input.map(|v| v.into());
        6947  +
            self
        6948  +
        }
        6949  +
        #[allow(missing_docs)] // documentation missing in model
        6950  +
        pub fn list_of_range_long(
        6951  +
            mut self,
        6952  +
            input: ::std::option::Option<::std::vec::Vec<crate::model::RangeLong>>,
        6953  +
        ) -> Self {
        6954  +
            self.list_of_range_long =
        6955  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        6956  +
            self
        6957  +
        }
        6958  +
        #[allow(missing_docs)] // documentation missing in model
        6959  +
        pub(crate) fn set_list_of_range_long(
        6960  +
            mut self,
        6961  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>>,
        6962  +
        ) -> Self {
        6963  +
            self.list_of_range_long = input.map(|v| v.into());
        6964  +
            self
        6965  +
        }
        6966  +
        #[allow(missing_docs)] // documentation missing in model
        6967  +
        pub fn set_of_range_long(
        6968  +
            mut self,
        6969  +
            input: ::std::option::Option<crate::model::SetOfRangeLong>,
        6970  +
        ) -> Self {
        6971  +
            self.set_of_range_long = input.map(crate::constrained::MaybeConstrained::Constrained);
        6972  +
            self
        6973  +
        }
        6974  +
        #[allow(missing_docs)] // documentation missing in model
        6975  +
        pub(crate) fn set_set_of_range_long(
        6976  +
            mut self,
        6977  +
            input: Option<
        6978  +
                impl ::std::convert::Into<
        6979  +
                    crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>,
        6980  +
                >,
        6981  +
            >,
        6982  +
        ) -> Self {
        6983  +
            self.set_of_range_long = input.map(|v| v.into());
        6984  +
            self
        6985  +
        }
        6986  +
        #[allow(missing_docs)] // documentation missing in model
        6987  +
        pub fn map_of_range_long(
        6988  +
            mut self,
        6989  +
            input: ::std::option::Option<
        6990  +
                ::std::collections::HashMap<::std::string::String, crate::model::RangeLong>,
        6991  +
            >,
        6992  +
        ) -> Self {
        6993  +
            self.map_of_range_long =
        6994  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        6995  +
            self
        6996  +
        }
        6997  +
        #[allow(missing_docs)] // documentation missing in model
        6998  +
        pub(crate) fn set_map_of_range_long(
        6999  +
            mut self,
        7000  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_range_long_constrained::MapOfRangeLongConstrained>>>,
        7001  +
        ) -> Self {
        7002  +
            self.map_of_range_long = input.map(|v| v.into());
        7003  +
            self
        7004  +
        }
        7005  +
        #[allow(missing_docs)] // documentation missing in model
        7006  +
        pub fn list_of_range_byte(
        7007  +
            mut self,
        7008  +
            input: ::std::option::Option<::std::vec::Vec<crate::model::RangeByte>>,
        7009  +
        ) -> Self {
        7010  +
            self.list_of_range_byte =
        7011  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        7012  +
            self
        7013  +
        }
        7014  +
        #[allow(missing_docs)] // documentation missing in model
        7015  +
        pub(crate) fn set_list_of_range_byte(
        7016  +
            mut self,
        7017  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>>,
        7018  +
        ) -> Self {
        7019  +
            self.list_of_range_byte = input.map(|v| v.into());
        7020  +
            self
        7021  +
        }
        7022  +
        #[allow(missing_docs)] // documentation missing in model
        7023  +
        pub fn set_of_range_byte(
        7024  +
            mut self,
        7025  +
            input: ::std::option::Option<crate::model::SetOfRangeByte>,
        7026  +
        ) -> Self {
        7027  +
            self.set_of_range_byte = input.map(crate::constrained::MaybeConstrained::Constrained);
        7028  +
            self
        7029  +
        }
        7030  +
        #[allow(missing_docs)] // documentation missing in model
        7031  +
        pub(crate) fn set_set_of_range_byte(
        7032  +
            mut self,
        7033  +
            input: Option<
        7034  +
                impl ::std::convert::Into<
        7035  +
                    crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>,
        7036  +
                >,
        7037  +
            >,
        7038  +
        ) -> Self {
        7039  +
            self.set_of_range_byte = input.map(|v| v.into());
        7040  +
            self
        7041  +
        }
        7042  +
        #[allow(missing_docs)] // documentation missing in model
        7043  +
        pub fn map_of_range_byte(
        7044  +
            mut self,
        7045  +
            input: ::std::option::Option<
        7046  +
                ::std::collections::HashMap<::std::string::String, crate::model::RangeByte>,
        7047  +
            >,
        7048  +
        ) -> Self {
        7049  +
            self.map_of_range_byte =
        7050  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        7051  +
            self
        7052  +
        }
        7053  +
        #[allow(missing_docs)] // documentation missing in model
        7054  +
        pub(crate) fn set_map_of_range_byte(
        7055  +
            mut self,
        7056  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_range_byte_constrained::MapOfRangeByteConstrained>>>,
        7057  +
        ) -> Self {
        7058  +
            self.map_of_range_byte = input.map(|v| v.into());
        7059  +
            self
        7060  +
        }
        7061  +
        #[allow(missing_docs)] // documentation missing in model
        7062  +
        pub fn non_streaming_blob(
        7063  +
            mut self,
        7064  +
            input: ::std::option::Option<::aws_smithy_types::Blob>,
        7065  +
        ) -> Self {
        7066  +
            self.non_streaming_blob = input;
        7067  +
            self
        7068  +
        }
        7069  +
        #[allow(missing_docs)] // documentation missing in model
        7070  +
        pub(crate) fn set_non_streaming_blob(
        7071  +
            mut self,
        7072  +
            input: Option<impl ::std::convert::Into<::aws_smithy_types::Blob>>,
        7073  +
        ) -> Self {
        7074  +
            self.non_streaming_blob = input.map(|v| v.into());
        7075  +
            self
        7076  +
        }
        7077  +
        #[allow(missing_docs)] // documentation missing in model
        7078  +
        pub fn pattern_string(
        7079  +
            mut self,
        7080  +
            input: ::std::option::Option<crate::model::PatternString>,
        7081  +
        ) -> Self {
        7082  +
            self.pattern_string = input.map(crate::constrained::MaybeConstrained::Constrained);
        7083  +
            self
        7084  +
        }
        7085  +
        #[allow(missing_docs)] // documentation missing in model
        7086  +
        pub(crate) fn set_pattern_string(
        7087  +
            mut self,
        7088  +
            input: Option<
        7089  +
                impl ::std::convert::Into<
        7090  +
                    crate::constrained::MaybeConstrained<crate::model::PatternString>,
        7091  +
                >,
        7092  +
            >,
        7093  +
        ) -> Self {
        7094  +
            self.pattern_string = input.map(|v| v.into());
        7095  +
            self
        7096  +
        }
        7097  +
        #[allow(missing_docs)] // documentation missing in model
        7098  +
        pub fn map_of_pattern_string(
        7099  +
            mut self,
        7100  +
            input: ::std::option::Option<
        7101  +
                ::std::collections::HashMap<
        7102  +
                    crate::model::PatternString,
        7103  +
                    crate::model::PatternString,
        7104  +
                >,
        7105  +
            >,
        7106  +
        ) -> Self {
        7107  +
            self.map_of_pattern_string =
        7108  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        7109  +
            self
        7110  +
        }
        7111  +
        #[allow(missing_docs)] // documentation missing in model
        7112  +
        pub(crate) fn set_map_of_pattern_string(
        7113  +
            mut self,
        7114  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained>>>,
        7115  +
        ) -> Self {
        7116  +
            self.map_of_pattern_string = input.map(|v| v.into());
        7117  +
            self
        7118  +
        }
        7119  +
        #[allow(missing_docs)] // documentation missing in model
        7120  +
        pub fn list_of_pattern_string(
        7121  +
            mut self,
        7122  +
            input: ::std::option::Option<::std::vec::Vec<crate::model::PatternString>>,
        7123  +
        ) -> Self {
        7124  +
            self.list_of_pattern_string =
        7125  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        7126  +
            self
        7127  +
        }
        7128  +
        #[allow(missing_docs)] // documentation missing in model
        7129  +
        pub(crate) fn set_list_of_pattern_string(
        7130  +
            mut self,
        7131  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_pattern_string_constrained::ListOfPatternStringConstrained>>>,
        7132  +
        ) -> Self {
        7133  +
            self.list_of_pattern_string = input.map(|v| v.into());
        7134  +
            self
        7135  +
        }
        7136  +
        #[allow(missing_docs)] // documentation missing in model
        7137  +
        pub fn set_of_pattern_string(
        7138  +
            mut self,
        7139  +
            input: ::std::option::Option<crate::model::SetOfPatternString>,
        7140  +
        ) -> Self {
        7141  +
            self.set_of_pattern_string =
        7142  +
                input.map(crate::constrained::MaybeConstrained::Constrained);
        7143  +
            self
        7144  +
        }
        7145  +
        #[allow(missing_docs)] // documentation missing in model
        7146  +
        pub(crate) fn set_set_of_pattern_string(
        7147  +
            mut self,
        7148  +
            input: Option<
        7149  +
                impl ::std::convert::Into<
        7150  +
                    crate::constrained::MaybeConstrained<crate::model::SetOfPatternString>,
        7151  +
                >,
        7152  +
            >,
        7153  +
        ) -> Self {
        7154  +
            self.set_of_pattern_string = input.map(|v| v.into());
        7155  +
            self
        7156  +
        }
        7157  +
        #[allow(missing_docs)] // documentation missing in model
        7158  +
        pub fn length_length_pattern_string(
        7159  +
            mut self,
        7160  +
            input: ::std::option::Option<crate::model::LengthPatternString>,
        7161  +
        ) -> Self {
        7162  +
            self.length_length_pattern_string =
        7163  +
                input.map(crate::constrained::MaybeConstrained::Constrained);
        7164  +
            self
        7165  +
        }
        7166  +
        #[allow(missing_docs)] // documentation missing in model
        7167  +
        pub(crate) fn set_length_length_pattern_string(
        7168  +
            mut self,
        7169  +
            input: Option<
        7170  +
                impl ::std::convert::Into<
        7171  +
                    crate::constrained::MaybeConstrained<crate::model::LengthPatternString>,
        7172  +
                >,
        7173  +
            >,
        7174  +
        ) -> Self {
        7175  +
            self.length_length_pattern_string = input.map(|v| v.into());
        7176  +
            self
        7177  +
        }
        7178  +
        #[allow(missing_docs)] // documentation missing in model
        7179  +
        pub fn map_of_length_pattern_string(
        7180  +
            mut self,
        7181  +
            input: ::std::option::Option<
        7182  +
                ::std::collections::HashMap<
        7183  +
                    crate::model::LengthPatternString,
        7184  +
                    crate::model::LengthPatternString,
        7185  +
                >,
        7186  +
            >,
        7187  +
        ) -> Self {
        7188  +
            self.map_of_length_pattern_string =
        7189  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        7190  +
            self
        7191  +
        }
        7192  +
        #[allow(missing_docs)] // documentation missing in model
        7193  +
        pub(crate) fn set_map_of_length_pattern_string(
        7194  +
            mut self,
        7195  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained>>>,
        7196  +
        ) -> Self {
        7197  +
            self.map_of_length_pattern_string = input.map(|v| v.into());
        7198  +
            self
        7199  +
        }
        7200  +
        #[allow(missing_docs)] // documentation missing in model
        7201  +
        pub fn list_of_length_pattern_string(
        7202  +
            mut self,
        7203  +
            input: ::std::option::Option<::std::vec::Vec<crate::model::LengthPatternString>>,
        7204  +
        ) -> Self {
        7205  +
            self.list_of_length_pattern_string =
        7206  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        7207  +
            self
        7208  +
        }
        7209  +
        #[allow(missing_docs)] // documentation missing in model
        7210  +
        pub(crate) fn set_list_of_length_pattern_string(
        7211  +
            mut self,
        7212  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_pattern_string_constrained::ListOfLengthPatternStringConstrained>>>,
        7213  +
        ) -> Self {
        7214  +
            self.list_of_length_pattern_string = input.map(|v| v.into());
        7215  +
            self
        7216  +
        }
        7217  +
        #[allow(missing_docs)] // documentation missing in model
        7218  +
        pub fn set_of_length_pattern_string(
        7219  +
            mut self,
        7220  +
            input: ::std::option::Option<crate::model::SetOfLengthPatternString>,
        7221  +
        ) -> Self {
        7222  +
            self.set_of_length_pattern_string =
        7223  +
                input.map(crate::constrained::MaybeConstrained::Constrained);
        7224  +
            self
        7225  +
        }
        7226  +
        #[allow(missing_docs)] // documentation missing in model
        7227  +
        pub(crate) fn set_set_of_length_pattern_string(
        7228  +
            mut self,
        7229  +
            input: Option<
        7230  +
                impl ::std::convert::Into<
        7231  +
                    crate::constrained::MaybeConstrained<crate::model::SetOfLengthPatternString>,
        7232  +
                >,
        7233  +
            >,
        7234  +
        ) -> Self {
        7235  +
            self.set_of_length_pattern_string = input.map(|v| v.into());
        7236  +
            self
        7237  +
        }
        7238  +
        #[allow(missing_docs)] // documentation missing in model
        7239  +
        pub fn length_list_of_pattern_string(
        7240  +
            mut self,
        7241  +
            input: ::std::option::Option<crate::model::LengthListOfPatternString>,
        7242  +
        ) -> Self {
        7243  +
            self.length_list_of_pattern_string =
        7244  +
                input.map(crate::constrained::MaybeConstrained::Constrained);
        7245  +
            self
        7246  +
        }
        7247  +
        #[allow(missing_docs)] // documentation missing in model
        7248  +
        pub(crate) fn set_length_list_of_pattern_string(
        7249  +
            mut self,
        7250  +
            input: Option<
        7251  +
                impl ::std::convert::Into<
        7252  +
                    crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>,
        7253  +
                >,
        7254  +
            >,
        7255  +
        ) -> Self {
        7256  +
            self.length_list_of_pattern_string = input.map(|v| v.into());
        7257  +
            self
        7258  +
        }
        7259  +
        #[allow(missing_docs)] // documentation missing in model
        7260  +
        pub fn length_set_of_pattern_string(
        7261  +
            mut self,
        7262  +
            input: ::std::option::Option<crate::model::LengthSetOfPatternString>,
        7263  +
        ) -> Self {
        7264  +
            self.length_set_of_pattern_string =
        7265  +
                input.map(crate::constrained::MaybeConstrained::Constrained);
        7266  +
            self
        7267  +
        }
        7268  +
        #[allow(missing_docs)] // documentation missing in model
        7269  +
        pub(crate) fn set_length_set_of_pattern_string(
        7270  +
            mut self,
        7271  +
            input: Option<
        7272  +
                impl ::std::convert::Into<
        7273  +
                    crate::constrained::MaybeConstrained<crate::model::LengthSetOfPatternString>,
        7274  +
                >,
        7275  +
            >,
        7276  +
        ) -> Self {
        7277  +
            self.length_set_of_pattern_string = input.map(|v| v.into());
        7278  +
            self
        7279  +
        }
        7280  +
        /// Consumes the builder and constructs a [`ConA`](crate::model::ConA).
        7281  +
        ///
        7282  +
        /// The builder fails to construct a [`ConA`](crate::model::ConA) if a [`ConstraintViolation`] occurs.
        7283  +
        ///
        7284  +
        /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
        7285  +
        pub fn build(self) -> Result<crate::model::ConA, ConstraintViolation> {
        7286  +
            self.build_enforcing_all_constraints()
        7287  +
        }
        7288  +
        fn build_enforcing_all_constraints(
        7289  +
            self,
        7290  +
        ) -> Result<crate::model::ConA, ConstraintViolation> {
        7291  +
            Ok(
        7292  +
                crate::model::ConA {
        7293  +
                    con_b: self.con_b
        7294  +
                        .map(|v| match v {
        7295  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7296  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7297  +
                                        })
        7298  +
                        .map(|res|
        7299  +
                                        res.map_err(ConstraintViolation::ConB)
        7300  +
                                    )
        7301  +
                                    .transpose()?
        7302  +
                        .ok_or(ConstraintViolation::MissingConB)?
        7303  +
                    ,
        7304  +
                    opt_con_b: self.opt_con_b
        7305  +
                        .map(|v| match v {
        7306  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7307  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7308  +
                                        })
        7309  +
                        .map(|res|
        7310  +
                                        res.map_err(ConstraintViolation::OptConB)
        7311  +
                                    )
        7312  +
                                    .transpose()?
        7313  +
                    ,
        7314  +
                    length_string: self.length_string
        7315  +
                        .map(|v| match v {
        7316  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7317  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7318  +
                                        })
        7319  +
                        .map(|res|
        7320  +
                                        res.map_err(ConstraintViolation::LengthString)
        7321  +
                                    )
        7322  +
                                    .transpose()?
        7323  +
                    ,
        7324  +
                    min_length_string: self.min_length_string
        7325  +
                        .map(|v| match v {
        7326  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7327  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7328  +
                                        })
        7329  +
                        .map(|res|
        7330  +
                                        res.map_err(ConstraintViolation::MinLengthString)
        7331  +
                                    )
        7332  +
                                    .transpose()?
        7333  +
                    ,
        7334  +
                    max_length_string: self.max_length_string
        7335  +
                        .map(|v| match v {
        7336  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7337  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7338  +
                                        })
        7339  +
                        .map(|res|
        7340  +
                                        res.map_err(ConstraintViolation::MaxLengthString)
        7341  +
                                    )
        7342  +
                                    .transpose()?
        7343  +
                    ,
        7344  +
                    fixed_length_string: self.fixed_length_string
        7345  +
                        .map(|v| match v {
        7346  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7347  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7348  +
                                        })
        7349  +
                        .map(|res|
        7350  +
                                        res.map_err(ConstraintViolation::FixedLengthString)
        7351  +
                                    )
        7352  +
                                    .transpose()?
        7353  +
                    ,
        7354  +
                    length_blob: self.length_blob
        7355  +
                        .map(|v| match v {
        7356  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7357  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7358  +
                                        })
        7359  +
                        .map(|res|
        7360  +
                                        res.map_err(ConstraintViolation::LengthBlob)
        7361  +
                                    )
        7362  +
                                    .transpose()?
        7363  +
                    ,
        7364  +
                    min_length_blob: self.min_length_blob
        7365  +
                        .map(|v| match v {
        7366  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7367  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7368  +
                                        })
        7369  +
                        .map(|res|
        7370  +
                                        res.map_err(ConstraintViolation::MinLengthBlob)
        7371  +
                                    )
        7372  +
                                    .transpose()?
        7373  +
                    ,
        7374  +
                    max_length_blob: self.max_length_blob
        7375  +
                        .map(|v| match v {
        7376  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7377  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7378  +
                                        })
        7379  +
                        .map(|res|
        7380  +
                                        res.map_err(ConstraintViolation::MaxLengthBlob)
        7381  +
                                    )
        7382  +
                                    .transpose()?
        7383  +
                    ,
        7384  +
                    fixed_length_blob: self.fixed_length_blob
        7385  +
                        .map(|v| match v {
        7386  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7387  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7388  +
                                        })
        7389  +
                        .map(|res|
        7390  +
                                        res.map_err(ConstraintViolation::FixedLengthBlob)
        7391  +
                                    )
        7392  +
                                    .transpose()?
        7393  +
                    ,
        7394  +
                    range_integer: self.range_integer
        7395  +
                        .map(|v| match v {
        7396  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7397  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7398  +
                                        })
        7399  +
                        .map(|res|
        7400  +
                                        res.map_err(ConstraintViolation::RangeInteger)
        7401  +
                                    )
        7402  +
                                    .transpose()?
        7403  +
                        .unwrap_or_else(||
        7404  +
                                            0i32
        7405  +
                                                .try_into()
        7406  +
                                                .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        7407  +
                                        )
        7408  +
                    ,
        7409  +
                    min_range_integer: self.min_range_integer
        7410  +
                        .map(|v| match v {
        7411  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7412  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7413  +
                                        })
        7414  +
                        .map(|res|
        7415  +
                                        res.map_err(ConstraintViolation::MinRangeInteger)
        7416  +
                                    )
        7417  +
                                    .transpose()?
        7418  +
                        .unwrap_or_else(||
        7419  +
                                            0i32
        7420  +
                                                .try_into()
        7421  +
                                                .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        7422  +
                                        )
        7423  +
                    ,
        7424  +
                    max_range_integer: self.max_range_integer
        7425  +
                        .map(|v| match v {
        7426  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7427  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7428  +
                                        })
        7429  +
                        .map(|res|
        7430  +
                                        res.map_err(ConstraintViolation::MaxRangeInteger)
        7431  +
                                    )
        7432  +
                                    .transpose()?
        7433  +
                        .unwrap_or_else(||
        7434  +
                                            0i32
        7435  +
                                                .try_into()
        7436  +
                                                .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        7437  +
                                        )
        7438  +
                    ,
        7439  +
                    fixed_value_integer: self.fixed_value_integer
        7440  +
                        .map(|v| match v {
        7441  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7442  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7443  +
                                        })
        7444  +
                        .map(|res|
        7445  +
                                        res.map_err(ConstraintViolation::FixedValueInteger)
        7446  +
                                    )
        7447  +
                                    .transpose()?
        7448  +
                        .unwrap_or_else(||
        7449  +
                                            0i32
        7450  +
                                                .try_into()
        7451  +
                                                .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        7452  +
                                        )
        7453  +
                    ,
        7454  +
                    range_short: self.range_short
        7455  +
                        .map(|v| match v {
        7456  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7457  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7458  +
                                        })
        7459  +
                        .map(|res|
        7460  +
                                        res.map_err(ConstraintViolation::RangeShort)
        7461  +
                                    )
        7462  +
                                    .transpose()?
        7463  +
                        .unwrap_or_else(||
        7464  +
                                            0i16
        7465  +
                                                .try_into()
        7466  +
                                                .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        7467  +
                                        )
        7468  +
                    ,
        7469  +
                    min_range_short: self.min_range_short
        7470  +
                        .map(|v| match v {
        7471  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7472  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7473  +
                                        })
        7474  +
                        .map(|res|
        7475  +
                                        res.map_err(ConstraintViolation::MinRangeShort)
        7476  +
                                    )
        7477  +
                                    .transpose()?
        7478  +
                        .unwrap_or_else(||
        7479  +
                                            0i16
        7480  +
                                                .try_into()
        7481  +
                                                .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        7482  +
                                        )
        7483  +
                    ,
        7484  +
                    max_range_short: self.max_range_short
        7485  +
                        .map(|v| match v {
        7486  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7487  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7488  +
                                        })
        7489  +
                        .map(|res|
        7490  +
                                        res.map_err(ConstraintViolation::MaxRangeShort)
        7491  +
                                    )
        7492  +
                                    .transpose()?
        7493  +
                        .unwrap_or_else(||
        7494  +
                                            0i16
        7495  +
                                                .try_into()
        7496  +
                                                .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        7497  +
                                        )
        7498  +
                    ,
        7499  +
                    fixed_value_short: self.fixed_value_short
        7500  +
                        .map(|v| match v {
        7501  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7502  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7503  +
                                        })
        7504  +
                        .map(|res|
        7505  +
                                        res.map_err(ConstraintViolation::FixedValueShort)
        7506  +
                                    )
        7507  +
                                    .transpose()?
        7508  +
                        .unwrap_or_else(||
        7509  +
                                            0i16
        7510  +
                                                .try_into()
        7511  +
                                                .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        7512  +
                                        )
        7513  +
                    ,
        7514  +
                    range_long: self.range_long
        7515  +
                        .map(|v| match v {
        7516  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7517  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7518  +
                                        })
        7519  +
                        .map(|res|
        7520  +
                                        res.map_err(ConstraintViolation::RangeLong)
        7521  +
                                    )
        7522  +
                                    .transpose()?
        7523  +
                        .unwrap_or_else(||
        7524  +
                                            0i64
        7525  +
                                                .try_into()
        7526  +
                                                .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        7527  +
                                        )
        7528  +
                    ,
        7529  +
                    min_range_long: self.min_range_long
        7530  +
                        .map(|v| match v {
        7531  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7532  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7533  +
                                        })
        7534  +
                        .map(|res|
        7535  +
                                        res.map_err(ConstraintViolation::MinRangeLong)
        7536  +
                                    )
        7537  +
                                    .transpose()?
        7538  +
                        .unwrap_or_else(||
        7539  +
                                            0i64
        7540  +
                                                .try_into()
        7541  +
                                                .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        7542  +
                                        )
        7543  +
                    ,
        7544  +
                    max_range_long: self.max_range_long
        7545  +
                        .map(|v| match v {
        7546  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7547  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7548  +
                                        })
        7549  +
                        .map(|res|
        7550  +
                                        res.map_err(ConstraintViolation::MaxRangeLong)
        7551  +
                                    )
        7552  +
                                    .transpose()?
        7553  +
                        .unwrap_or_else(||
        7554  +
                                            0i64
        7555  +
                                                .try_into()
        7556  +
                                                .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        7557  +
                                        )
        7558  +
                    ,
        7559  +
                    fixed_value_long: self.fixed_value_long
        7560  +
                        .map(|v| match v {
        7561  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7562  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7563  +
                                        })
        7564  +
                        .map(|res|
        7565  +
                                        res.map_err(ConstraintViolation::FixedValueLong)
        7566  +
                                    )
        7567  +
                                    .transpose()?
        7568  +
                        .unwrap_or_else(||
        7569  +
                                            0i64
        7570  +
                                                .try_into()
        7571  +
                                                .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        7572  +
                                        )
        7573  +
                    ,
        7574  +
                    range_byte: self.range_byte
        7575  +
                        .map(|v| match v {
        7576  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7577  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7578  +
                                        })
        7579  +
                        .map(|res|
        7580  +
                                        res.map_err(ConstraintViolation::RangeByte)
        7581  +
                                    )
        7582  +
                                    .transpose()?
        7583  +
                        .unwrap_or_else(||
        7584  +
                                            0i8
        7585  +
                                                .try_into()
        7586  +
                                                .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        7587  +
                                        )
        7588  +
                    ,
        7589  +
                    min_range_byte: self.min_range_byte
        7590  +
                        .map(|v| match v {
        7591  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7592  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7593  +
                                        })
        7594  +
                        .map(|res|
        7595  +
                                        res.map_err(ConstraintViolation::MinRangeByte)
        7596  +
                                    )
        7597  +
                                    .transpose()?
        7598  +
                        .unwrap_or_else(||
        7599  +
                                            0i8
        7600  +
                                                .try_into()
        7601  +
                                                .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        7602  +
                                        )
        7603  +
                    ,
        7604  +
                    max_range_byte: self.max_range_byte
        7605  +
                        .map(|v| match v {
        7606  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7607  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7608  +
                                        })
        7609  +
                        .map(|res|
        7610  +
                                        res.map_err(ConstraintViolation::MaxRangeByte)
        7611  +
                                    )
        7612  +
                                    .transpose()?
        7613  +
                        .unwrap_or_else(||
        7614  +
                                            0i8
        7615  +
                                                .try_into()
        7616  +
                                                .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        7617  +
                                        )
        7618  +
                    ,
        7619  +
                    fixed_value_byte: self.fixed_value_byte
        7620  +
                        .map(|v| match v {
        7621  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7622  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7623  +
                                        })
        7624  +
                        .map(|res|
        7625  +
                                        res.map_err(ConstraintViolation::FixedValueByte)
        7626  +
                                    )
        7627  +
                                    .transpose()?
        7628  +
                        .unwrap_or_else(||
        7629  +
                                            0i8
        7630  +
                                                .try_into()
        7631  +
                                                .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        7632  +
                                        )
        7633  +
                    ,
        7634  +
                    con_b_list: self.con_b_list
        7635  +
                        .map(|v| match v {
        7636  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7637  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7638  +
                                        })
        7639  +
                        .map(|res|
        7640  +
                                        res.map(|v| v.into()).map_err(ConstraintViolation::ConBList)
        7641  +
                                    )
        7642  +
                                    .transpose()?
        7643  +
                    ,
        7644  +
                    length_list: self.length_list
        7645  +
                        .map(|v| match v {
        7646  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7647  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7648  +
                                        })
        7649  +
                        .map(|res|
        7650  +
                                        res.map_err(ConstraintViolation::LengthList)
        7651  +
                                    )
        7652  +
                                    .transpose()?
        7653  +
                    ,
        7654  +
                    sensitive_length_list: self.sensitive_length_list
        7655  +
                        .map(|v| match v {
        7656  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7657  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7658  +
                                        })
        7659  +
                        .map(|res|
        7660  +
                                        res.map_err(ConstraintViolation::SensitiveLengthList)
        7661  +
                                    )
        7662  +
                                    .transpose()?
        7663  +
                    ,
        7664  +
                    con_b_set: self.con_b_set
        7665  +
                        .map(|v| match v {
        7666  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7667  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7668  +
                                        })
        7669  +
                        .map(|res|
        7670  +
                                        res.map_err(ConstraintViolation::ConBSet)
        7671  +
                                    )
        7672  +
                                    .transpose()?
        7673  +
                    ,
        7674  +
                    con_b_map: self.con_b_map
        7675  +
                        .map(|v| match v {
        7676  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7677  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7678  +
                                        })
        7679  +
                        .map(|res|
        7680  +
                                        res.map_err(ConstraintViolation::ConBMap)
        7681  +
                                    )
        7682  +
                                    .transpose()?
        7683  +
                    ,
        7684  +
                    length_map: self.length_map
        7685  +
                        .map(|v| match v {
        7686  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7687  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7688  +
                                        })
        7689  +
                        .map(|res|
        7690  +
                                        res.map_err(ConstraintViolation::LengthMap)
        7691  +
                                    )
        7692  +
                                    .transpose()?
        7693  +
                    ,
        7694  +
                    map_of_map_of_list_of_list_of_con_b: self.map_of_map_of_list_of_list_of_con_b
        7695  +
                        .map(|v| match v {
        7696  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7697  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7698  +
                                        })
        7699  +
                        .map(|res|
        7700  +
                                        res.map(|v| v.into()).map_err(ConstraintViolation::MapOfMapOfListOfListOfConB)
        7701  +
                                    )
        7702  +
                                    .transpose()?
        7703  +
                    ,
        7704  +
                    sparse_map: self.sparse_map
        7705  +
                        .map(|v| match v {
        7706  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7707  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7708  +
                                        })
        7709  +
                        .map(|res|
        7710  +
                                        res.map(|v| v.into()).map_err(ConstraintViolation::SparseMap)
        7711  +
                                    )
        7712  +
                                    .transpose()?
        7713  +
                    ,
        7714  +
                    sparse_list: self.sparse_list
        7715  +
                        .map(|v| match v {
        7716  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7717  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7718  +
                                        })
        7719  +
                        .map(|res|
        7720  +
                                        res.map(|v| v.into()).map_err(ConstraintViolation::SparseList)
        7721  +
                                    )
        7722  +
                                    .transpose()?
        7723  +
                    ,
        7724  +
                    sparse_length_map: self.sparse_length_map
        7725  +
                        .map(|v| match v {
        7726  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7727  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7728  +
                                        })
        7729  +
                        .map(|res|
        7730  +
                                        res.map_err(ConstraintViolation::SparseLengthMap)
        7731  +
                                    )
        7732  +
                                    .transpose()?
        7733  +
                    ,
        7734  +
                    sparse_length_list: self.sparse_length_list
        7735  +
                        .map(|v| match v {
        7736  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7737  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7738  +
                                        })
        7739  +
                        .map(|res|
        7740  +
                                        res.map_err(ConstraintViolation::SparseLengthList)
        7741  +
                                    )
        7742  +
                                    .transpose()?
        7743  +
                    ,
        7744  +
                    constrained_union: self.constrained_union
        7745  +
                        .map(|v| match v {
        7746  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7747  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7748  +
                                        })
        7749  +
                        .map(|res|
        7750  +
                                        res.map_err(ConstraintViolation::ConstrainedUnion)
        7751  +
                                    )
        7752  +
                                    .transpose()?
        7753  +
                    ,
        7754  +
                    enum_string: self.enum_string
        7755  +
                        .map(|v| match v {
        7756  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7757  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7758  +
                                        })
        7759  +
                        .map(|res|
        7760  +
                                        res.map_err(ConstraintViolation::EnumString)
        7761  +
                                    )
        7762  +
                                    .transpose()?
        7763  +
                    ,
        7764  +
                    list_of_length_string: self.list_of_length_string
        7765  +
                        .map(|v| match v {
        7766  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7767  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7768  +
                                        })
        7769  +
                        .map(|res|
        7770  +
                                        res.map(|v| v.into()).map_err(ConstraintViolation::ListOfLengthString)
        7771  +
                                    )
        7772  +
                                    .transpose()?
        7773  +
                    ,
        7774  +
                    set_of_length_string: self.set_of_length_string
        7775  +
                        .map(|v| match v {
        7776  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7777  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7778  +
                                        })
        7779  +
                        .map(|res|
        7780  +
                                        res.map_err(ConstraintViolation::SetOfLengthString)
        7781  +
                                    )
        7782  +
                                    .transpose()?
        7783  +
                    ,
        7784  +
                    map_of_length_string: self.map_of_length_string
        7785  +
                        .map(|v| match v {
        7786  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7787  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7788  +
                                        })
        7789  +
                        .map(|res|
        7790  +
                                        res.map(|v| v.into()).map_err(ConstraintViolation::MapOfLengthString)
        7791  +
                                    )
        7792  +
                                    .transpose()?
        7793  +
                    ,
        7794  +
                    list_of_length_blob: self.list_of_length_blob
        7795  +
                        .map(|v| match v {
        7796  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7797  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7798  +
                                        })
        7799  +
                        .map(|res|
        7800  +
                                        res.map(|v| v.into()).map_err(ConstraintViolation::ListOfLengthBlob)
        7801  +
                                    )
        7802  +
                                    .transpose()?
        7803  +
                    ,
        7804  +
                    map_of_length_blob: self.map_of_length_blob
        7805  +
                        .map(|v| match v {
        7806  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7807  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7808  +
                                        })
        7809  +
                        .map(|res|
        7810  +
                                        res.map(|v| v.into()).map_err(ConstraintViolation::MapOfLengthBlob)
        7811  +
                                    )
        7812  +
                                    .transpose()?
        7813  +
                    ,
        7814  +
                    list_of_range_integer: self.list_of_range_integer
        7815  +
                        .map(|v| match v {
        7816  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7817  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7818  +
                                        })
        7819  +
                        .map(|res|
        7820  +
                                        res.map(|v| v.into()).map_err(ConstraintViolation::ListOfRangeInteger)
        7821  +
                                    )
        7822  +
                                    .transpose()?
        7823  +
                    ,
        7824  +
                    set_of_range_integer: self.set_of_range_integer
        7825  +
                        .map(|v| match v {
        7826  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7827  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7828  +
                                        })
        7829  +
                        .map(|res|
        7830  +
                                        res.map_err(ConstraintViolation::SetOfRangeInteger)
        7831  +
                                    )
        7832  +
                                    .transpose()?
        7833  +
                    ,
        7834  +
                    map_of_range_integer: self.map_of_range_integer
        7835  +
                        .map(|v| match v {
        7836  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7837  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7838  +
                                        })
        7839  +
                        .map(|res|
        7840  +
                                        res.map(|v| v.into()).map_err(ConstraintViolation::MapOfRangeInteger)
        7841  +
                                    )
        7842  +
                                    .transpose()?
        7843  +
                    ,
        7844  +
                    list_of_range_short: self.list_of_range_short
        7845  +
                        .map(|v| match v {
        7846  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7847  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7848  +
                                        })
        7849  +
                        .map(|res|
        7850  +
                                        res.map(|v| v.into()).map_err(ConstraintViolation::ListOfRangeShort)
        7851  +
                                    )
        7852  +
                                    .transpose()?
        7853  +
                    ,
        7854  +
                    set_of_range_short: self.set_of_range_short
        7855  +
                        .map(|v| match v {
        7856  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7857  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7858  +
                                        })
        7859  +
                        .map(|res|
        7860  +
                                        res.map_err(ConstraintViolation::SetOfRangeShort)
        7861  +
                                    )
        7862  +
                                    .transpose()?
        7863  +
                    ,
        7864  +
                    map_of_range_short: self.map_of_range_short
        7865  +
                        .map(|v| match v {
        7866  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7867  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7868  +
                                        })
        7869  +
                        .map(|res|
        7870  +
                                        res.map(|v| v.into()).map_err(ConstraintViolation::MapOfRangeShort)
        7871  +
                                    )
        7872  +
                                    .transpose()?
        7873  +
                    ,
        7874  +
                    list_of_range_long: self.list_of_range_long
        7875  +
                        .map(|v| match v {
        7876  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7877  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7878  +
                                        })
        7879  +
                        .map(|res|
        7880  +
                                        res.map(|v| v.into()).map_err(ConstraintViolation::ListOfRangeLong)
        7881  +
                                    )
        7882  +
                                    .transpose()?
        7883  +
                    ,
        7884  +
                    set_of_range_long: self.set_of_range_long
        7885  +
                        .map(|v| match v {
        7886  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7887  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7888  +
                                        })
        7889  +
                        .map(|res|
        7890  +
                                        res.map_err(ConstraintViolation::SetOfRangeLong)
        7891  +
                                    )
        7892  +
                                    .transpose()?
        7893  +
                    ,
        7894  +
                    map_of_range_long: self.map_of_range_long
        7895  +
                        .map(|v| match v {
        7896  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7897  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7898  +
                                        })
        7899  +
                        .map(|res|
        7900  +
                                        res.map(|v| v.into()).map_err(ConstraintViolation::MapOfRangeLong)
        7901  +
                                    )
        7902  +
                                    .transpose()?
        7903  +
                    ,
        7904  +
                    list_of_range_byte: self.list_of_range_byte
        7905  +
                        .map(|v| match v {
        7906  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7907  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7908  +
                                        })
        7909  +
                        .map(|res|
        7910  +
                                        res.map(|v| v.into()).map_err(ConstraintViolation::ListOfRangeByte)
        7911  +
                                    )
        7912  +
                                    .transpose()?
        7913  +
                    ,
        7914  +
                    set_of_range_byte: self.set_of_range_byte
        7915  +
                        .map(|v| match v {
        7916  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7917  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7918  +
                                        })
        7919  +
                        .map(|res|
        7920  +
                                        res.map_err(ConstraintViolation::SetOfRangeByte)
        7921  +
                                    )
        7922  +
                                    .transpose()?
        7923  +
                    ,
        7924  +
                    map_of_range_byte: self.map_of_range_byte
        7925  +
                        .map(|v| match v {
        7926  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7927  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7928  +
                                        })
        7929  +
                        .map(|res|
        7930  +
                                        res.map(|v| v.into()).map_err(ConstraintViolation::MapOfRangeByte)
        7931  +
                                    )
        7932  +
                                    .transpose()?
        7933  +
                    ,
        7934  +
                    non_streaming_blob: self.non_streaming_blob
        7935  +
                    ,
        7936  +
                    pattern_string: self.pattern_string
        7937  +
                        .map(|v| match v {
        7938  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7939  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7940  +
                                        })
        7941  +
                        .map(|res|
        7942  +
                                        res.map_err(ConstraintViolation::PatternString)
        7943  +
                                    )
        7944  +
                                    .transpose()?
        7945  +
                    ,
        7946  +
                    map_of_pattern_string: self.map_of_pattern_string
        7947  +
                        .map(|v| match v {
        7948  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7949  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7950  +
                                        })
        7951  +
                        .map(|res|
        7952  +
                                        res.map(|v| v.into()).map_err(ConstraintViolation::MapOfPatternString)
        7953  +
                                    )
        7954  +
                                    .transpose()?
        7955  +
                    ,
        7956  +
                    list_of_pattern_string: self.list_of_pattern_string
        7957  +
                        .map(|v| match v {
        7958  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7959  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7960  +
                                        })
        7961  +
                        .map(|res|
        7962  +
                                        res.map(|v| v.into()).map_err(ConstraintViolation::ListOfPatternString)
        7963  +
                                    )
        7964  +
                                    .transpose()?
        7965  +
                    ,
        7966  +
                    set_of_pattern_string: self.set_of_pattern_string
        7967  +
                        .map(|v| match v {
        7968  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7969  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7970  +
                                        })
        7971  +
                        .map(|res|
        7972  +
                                        res.map_err(ConstraintViolation::SetOfPatternString)
        7973  +
                                    )
        7974  +
                                    .transpose()?
        7975  +
                    ,
        7976  +
                    length_length_pattern_string: self.length_length_pattern_string
        7977  +
                        .map(|v| match v {
        7978  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7979  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7980  +
                                        })
        7981  +
                        .map(|res|
        7982  +
                                        res.map_err(ConstraintViolation::LengthLengthPatternString)
        7983  +
                                    )
        7984  +
                                    .transpose()?
        7985  +
                    ,
        7986  +
                    map_of_length_pattern_string: self.map_of_length_pattern_string
        7987  +
                        .map(|v| match v {
        7988  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7989  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        7990  +
                                        })
        7991  +
                        .map(|res|
        7992  +
                                        res.map(|v| v.into()).map_err(ConstraintViolation::MapOfLengthPatternString)
        7993  +
                                    )
        7994  +
                                    .transpose()?
        7995  +
                    ,
        7996  +
                    list_of_length_pattern_string: self.list_of_length_pattern_string
        7997  +
                        .map(|v| match v {
        7998  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        7999  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        8000  +
                                        })
        8001  +
                        .map(|res|
        8002  +
                                        res.map(|v| v.into()).map_err(ConstraintViolation::ListOfLengthPatternString)
        8003  +
                                    )
        8004  +
                                    .transpose()?
        8005  +
                    ,
        8006  +
                    set_of_length_pattern_string: self.set_of_length_pattern_string
        8007  +
                        .map(|v| match v {
        8008  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        8009  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        8010  +
                                        })
        8011  +
                        .map(|res|
        8012  +
                                        res.map_err(ConstraintViolation::SetOfLengthPatternString)
        8013  +
                                    )
        8014  +
                                    .transpose()?
        8015  +
                    ,
        8016  +
                    length_list_of_pattern_string: self.length_list_of_pattern_string
        8017  +
                        .map(|v| match v {
        8018  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        8019  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        8020  +
                                        })
        8021  +
                        .map(|res|
        8022  +
                                        res.map_err(ConstraintViolation::LengthListOfPatternString)
        8023  +
                                    )
        8024  +
                                    .transpose()?
        8025  +
                    ,
        8026  +
                    length_set_of_pattern_string: self.length_set_of_pattern_string
        8027  +
                        .map(|v| match v {
        8028  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        8029  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        8030  +
                                        })
        8031  +
                        .map(|res|
        8032  +
                                        res.map_err(ConstraintViolation::LengthSetOfPatternString)
        8033  +
                                    )
        8034  +
                                    .transpose()?
        8035  +
                    ,
        8036  +
                }
        8037  +
            )
        8038  +
        }
        8039  +
    }
        8040  +
}
        8041  +
/// See [`LengthSetOfPatternString`](crate::model::LengthSetOfPatternString).
        8042  +
pub mod length_set_of_pattern_string {
        8043  +
        8044  +
    #[allow(clippy::enum_variant_names)]
        8045  +
    #[derive(Debug, PartialEq)]
        8046  +
    pub enum ConstraintViolation {
        8047  +
        /// Constraint violation error when the list doesn't have the required length
        8048  +
        Length(usize),
        8049  +
        /// Constraint violation error when the list does not contain unique items
        8050  +
        UniqueItems {
        8051  +
            /// A vector of indices into `original` pointing to all duplicate items. This vector has
        8052  +
            /// at least two elements.
        8053  +
            /// More specifically, for every element `idx_1` in `duplicate_indices`, there exists another
        8054  +
            /// distinct element `idx_2` such that `original[idx_1] == original[idx_2]` is `true`.
        8055  +
            /// Nothing is guaranteed about the order of the indices.
        8056  +
            duplicate_indices: ::std::vec::Vec<usize>,
        8057  +
            /// The original vector, that contains duplicate items.
        8058  +
            original: ::std::vec::Vec<crate::model::PatternString>,
        8059  +
        },
        8060  +
        /// Constraint violation error when an element doesn't satisfy its own constraints.
        8061  +
        /// The first component of the tuple is the index in the collection where the
        8062  +
        /// first constraint violation was found.
        8063  +
        #[doc(hidden)]
        8064  +
        Member(usize, crate::model::pattern_string::ConstraintViolation),
        8065  +
    }
        8066  +
        8067  +
    impl ::std::fmt::Display for ConstraintViolation {
        8068  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        8069  +
            let message = match self {
        8070  +
                                Self::Length(length) => {
        8071  +
                            format!("Value with length {} provided for 'com.amazonaws.constraints#LengthSetOfPatternString' failed to satisfy constraint: Member must have length between 5 and 9, inclusive", length)
        8072  +
                        },
        8073  +
    Self::UniqueItems { duplicate_indices, .. } =>
        8074  +
                            format!("Value with repeated values at indices {:?} provided for 'com.amazonaws.constraints#LengthSetOfPatternString' failed to satisfy constraint: Member must have unique values", &duplicate_indices),
        8075  +
    Self::Member(index, failing_member) => format!("Value at index {index} failed to satisfy constraint. {}",
        8076  +
                           failing_member)
        8077  +
                            };
        8078  +
            write!(f, "{message}")
        8079  +
        }
        8080  +
    }
        8081  +
        8082  +
    impl ::std::error::Error for ConstraintViolation {}
        8083  +
    impl ConstraintViolation {
        8084  +
        pub(crate) fn as_validation_exception_field(
        8085  +
            self,
        8086  +
            path: ::std::string::String,
        8087  +
        ) -> crate::model::ValidationExceptionField {
        8088  +
            match self {
        8089  +
                        Self::Length(length) => crate::model::ValidationExceptionField {
        8090  +
                                message: format!("Value with length {} at '{}' failed to satisfy constraint: Member must have length between 5 and 9, inclusive", length, &path),
        8091  +
                                path,
        8092  +
                            },
        8093  +
    Self::UniqueItems { duplicate_indices, .. } =>
        8094  +
                                crate::model::ValidationExceptionField {
        8095  +
                                    message: format!("Value with repeated values at indices {:?} at '{}' failed to satisfy constraint: Member must have unique values", &duplicate_indices, &path),
        8096  +
                                    path,
        8097  +
                                },
        8098  +
    Self::Member(index, member_constraint_violation) =>
        8099  +
                        member_constraint_violation.as_validation_exception_field(path + "/" + &index.to_string())
        8100  +
                    }
        8101  +
        }
        8102  +
    }
        8103  +
}
        8104  +
/// See [`SetOfLengthPatternString`](crate::model::SetOfLengthPatternString).
        8105  +
pub mod set_of_length_pattern_string {
        8106  +
        8107  +
    #[allow(clippy::enum_variant_names)]
        8108  +
    #[derive(Debug, PartialEq)]
        8109  +
    pub enum ConstraintViolation {
        8110  +
        /// Constraint violation error when the list does not contain unique items
        8111  +
        UniqueItems {
        8112  +
            /// A vector of indices into `original` pointing to all duplicate items. This vector has
        8113  +
            /// at least two elements.
        8114  +
            /// More specifically, for every element `idx_1` in `duplicate_indices`, there exists another
        8115  +
            /// distinct element `idx_2` such that `original[idx_1] == original[idx_2]` is `true`.
        8116  +
            /// Nothing is guaranteed about the order of the indices.
        8117  +
            duplicate_indices: ::std::vec::Vec<usize>,
        8118  +
            /// The original vector, that contains duplicate items.
        8119  +
            original: ::std::vec::Vec<crate::model::LengthPatternString>,
        8120  +
        },
        8121  +
        /// Constraint violation error when an element doesn't satisfy its own constraints.
        8122  +
        /// The first component of the tuple is the index in the collection where the
        8123  +
        /// first constraint violation was found.
        8124  +
        #[doc(hidden)]
        8125  +
        Member(
        8126  +
            usize,
        8127  +
            crate::model::length_pattern_string::ConstraintViolation,
        8128  +
        ),
        8129  +
    }
        8130  +
        8131  +
    impl ::std::fmt::Display for ConstraintViolation {
        8132  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        8133  +
            let message = match self {
        8134  +
                                Self::UniqueItems { duplicate_indices, .. } =>
        8135  +
                            format!("Value with repeated values at indices {:?} provided for 'com.amazonaws.constraints#SetOfLengthPatternString' failed to satisfy constraint: Member must have unique values", &duplicate_indices),
        8136  +
    Self::Member(index, failing_member) => format!("Value at index {index} failed to satisfy constraint. {}",
        8137  +
                           failing_member)
        8138  +
                            };
        8139  +
            write!(f, "{message}")
        8140  +
        }
        8141  +
    }
        8142  +
        8143  +
    impl ::std::error::Error for ConstraintViolation {}
        8144  +
    impl ConstraintViolation {
        8145  +
        pub(crate) fn as_validation_exception_field(
        8146  +
            self,
        8147  +
            path: ::std::string::String,
        8148  +
        ) -> crate::model::ValidationExceptionField {
        8149  +
            match self {
        8150  +
                        Self::UniqueItems { duplicate_indices, .. } =>
        8151  +
                                crate::model::ValidationExceptionField {
        8152  +
                                    message: format!("Value with repeated values at indices {:?} at '{}' failed to satisfy constraint: Member must have unique values", &duplicate_indices, &path),
        8153  +
                                    path,
        8154  +
                                },
        8155  +
    Self::Member(index, member_constraint_violation) =>
        8156  +
                        member_constraint_violation.as_validation_exception_field(path + "/" + &index.to_string())
        8157  +
                    }
        8158  +
        }
        8159  +
    }
        8160  +
}
        8161  +
/// See [`SetOfPatternString`](crate::model::SetOfPatternString).
        8162  +
pub mod set_of_pattern_string {
        8163  +
        8164  +
    #[allow(clippy::enum_variant_names)]
        8165  +
    #[derive(Debug, PartialEq)]
        8166  +
    pub enum ConstraintViolation {
        8167  +
        /// Constraint violation error when the list does not contain unique items
        8168  +
        UniqueItems {
        8169  +
            /// A vector of indices into `original` pointing to all duplicate items. This vector has
        8170  +
            /// at least two elements.
        8171  +
            /// More specifically, for every element `idx_1` in `duplicate_indices`, there exists another
        8172  +
            /// distinct element `idx_2` such that `original[idx_1] == original[idx_2]` is `true`.
        8173  +
            /// Nothing is guaranteed about the order of the indices.
        8174  +
            duplicate_indices: ::std::vec::Vec<usize>,
        8175  +
            /// The original vector, that contains duplicate items.
        8176  +
            original: ::std::vec::Vec<crate::model::PatternString>,
        8177  +
        },
        8178  +
        /// Constraint violation error when an element doesn't satisfy its own constraints.
        8179  +
        /// The first component of the tuple is the index in the collection where the
        8180  +
        /// first constraint violation was found.
        8181  +
        #[doc(hidden)]
        8182  +
        Member(usize, crate::model::pattern_string::ConstraintViolation),
        8183  +
    }
        8184  +
        8185  +
    impl ::std::fmt::Display for ConstraintViolation {
        8186  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        8187  +
            let message = match self {
        8188  +
                                Self::UniqueItems { duplicate_indices, .. } =>
        8189  +
                            format!("Value with repeated values at indices {:?} provided for 'com.amazonaws.constraints#SetOfPatternString' failed to satisfy constraint: Member must have unique values", &duplicate_indices),
        8190  +
    Self::Member(index, failing_member) => format!("Value at index {index} failed to satisfy constraint. {}",
        8191  +
                           failing_member)
        8192  +
                            };
        8193  +
            write!(f, "{message}")
        8194  +
        }
        8195  +
    }
        8196  +
        8197  +
    impl ::std::error::Error for ConstraintViolation {}
        8198  +
    impl ConstraintViolation {
        8199  +
        pub(crate) fn as_validation_exception_field(
        8200  +
            self,
        8201  +
            path: ::std::string::String,
        8202  +
        ) -> crate::model::ValidationExceptionField {
        8203  +
            match self {
        8204  +
                        Self::UniqueItems { duplicate_indices, .. } =>
        8205  +
                                crate::model::ValidationExceptionField {
        8206  +
                                    message: format!("Value with repeated values at indices {:?} at '{}' failed to satisfy constraint: Member must have unique values", &duplicate_indices, &path),
        8207  +
                                    path,
        8208  +
                                },
        8209  +
    Self::Member(index, member_constraint_violation) =>
        8210  +
                        member_constraint_violation.as_validation_exception_field(path + "/" + &index.to_string())
        8211  +
                    }
        8212  +
        }
        8213  +
    }
        8214  +
}
        8215  +
pub mod map_of_range_byte {
        8216  +
        8217  +
    #[allow(clippy::enum_variant_names)]
        8218  +
    #[derive(Debug, PartialEq)]
        8219  +
    pub enum ConstraintViolation {
        8220  +
        #[doc(hidden)]
        8221  +
        Value(
        8222  +
            ::std::string::String,
        8223  +
            crate::model::range_byte::ConstraintViolation,
        8224  +
        ),
        8225  +
    }
        8226  +
        8227  +
    impl ::std::fmt::Display for ConstraintViolation {
        8228  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        8229  +
            match self {
        8230  +
                Self::Value(_, value_constraint_violation) => {
        8231  +
                    write!(f, "{}", value_constraint_violation)
        8232  +
                }
        8233  +
            }
        8234  +
        }
        8235  +
    }
        8236  +
        8237  +
    impl ::std::error::Error for ConstraintViolation {}
        8238  +
    impl ConstraintViolation {
        8239  +
        pub(crate) fn as_validation_exception_field(
        8240  +
            self,
        8241  +
            path: ::std::string::String,
        8242  +
        ) -> crate::model::ValidationExceptionField {
        8243  +
            match self {
        8244  +
                Self::Value(key, value_constraint_violation) => value_constraint_violation
        8245  +
                    .as_validation_exception_field(path + "/" + key.as_str()),
        8246  +
            }
        8247  +
        }
        8248  +
    }
        8249  +
}
        8250  +
/// See [`RangeByte`](crate::model::RangeByte).
        8251  +
pub mod range_byte {
        8252  +
        8253  +
    #[derive(Debug, PartialEq)]
        8254  +
    pub enum ConstraintViolation {
        8255  +
        Range(i8),
        8256  +
    }
        8257  +
        8258  +
    impl ::std::fmt::Display for ConstraintViolation {
        8259  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        8260  +
            write!(f, "Value for `com.amazonaws.constraints#RangeByte`failed to satisfy constraint: Member must be between 0 and 10, inclusive")
        8261  +
        }
        8262  +
    }
        8263  +
        8264  +
    impl ::std::error::Error for ConstraintViolation {}
        8265  +
    impl ConstraintViolation {
        8266  +
        pub(crate) fn as_validation_exception_field(
        8267  +
            self,
        8268  +
            path: ::std::string::String,
        8269  +
        ) -> crate::model::ValidationExceptionField {
        8270  +
            match self {
        8271  +
                            Self::Range(_) => crate::model::ValidationExceptionField {
        8272  +
                            message: format!("Value at '{}' failed to satisfy constraint: Member must be between 0 and 10, inclusive", &path),
        8273  +
                            path,
        8274  +
                        },
        8275  +
                        }
        8276  +
        }
        8277  +
    }
        8278  +
}
        8279  +
/// See [`SetOfRangeByte`](crate::model::SetOfRangeByte).
        8280  +
pub mod set_of_range_byte {
        8281  +
        8282  +
    #[allow(clippy::enum_variant_names)]
        8283  +
    #[derive(Debug, PartialEq)]
        8284  +
    pub enum ConstraintViolation {
        8285  +
        /// Constraint violation error when the list does not contain unique items
        8286  +
        UniqueItems {
        8287  +
            /// A vector of indices into `original` pointing to all duplicate items. This vector has
        8288  +
            /// at least two elements.
        8289  +
            /// More specifically, for every element `idx_1` in `duplicate_indices`, there exists another
        8290  +
            /// distinct element `idx_2` such that `original[idx_1] == original[idx_2]` is `true`.
        8291  +
            /// Nothing is guaranteed about the order of the indices.
        8292  +
            duplicate_indices: ::std::vec::Vec<usize>,
        8293  +
            /// The original vector, that contains duplicate items.
        8294  +
            original: ::std::vec::Vec<crate::model::RangeByte>,
        8295  +
        },
        8296  +
        /// Constraint violation error when an element doesn't satisfy its own constraints.
        8297  +
        /// The first component of the tuple is the index in the collection where the
        8298  +
        /// first constraint violation was found.
        8299  +
        #[doc(hidden)]
        8300  +
        Member(usize, crate::model::range_byte::ConstraintViolation),
        8301  +
    }
        8302  +
        8303  +
    impl ::std::fmt::Display for ConstraintViolation {
        8304  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        8305  +
            let message = match self {
        8306  +
                                Self::UniqueItems { duplicate_indices, .. } =>
        8307  +
                            format!("Value with repeated values at indices {:?} provided for 'com.amazonaws.constraints#SetOfRangeByte' failed to satisfy constraint: Member must have unique values", &duplicate_indices),
        8308  +
    Self::Member(index, failing_member) => format!("Value at index {index} failed to satisfy constraint. {}",
        8309  +
                           failing_member)
        8310  +
                            };
        8311  +
            write!(f, "{message}")
        8312  +
        }
        8313  +
    }
        8314  +
        8315  +
    impl ::std::error::Error for ConstraintViolation {}
        8316  +
    impl ConstraintViolation {
        8317  +
        pub(crate) fn as_validation_exception_field(
        8318  +
            self,
        8319  +
            path: ::std::string::String,
        8320  +
        ) -> crate::model::ValidationExceptionField {
        8321  +
            match self {
        8322  +
                        Self::UniqueItems { duplicate_indices, .. } =>
        8323  +
                                crate::model::ValidationExceptionField {
        8324  +
                                    message: format!("Value with repeated values at indices {:?} at '{}' failed to satisfy constraint: Member must have unique values", &duplicate_indices, &path),
        8325  +
                                    path,
        8326  +
                                },
        8327  +
    Self::Member(index, member_constraint_violation) =>
        8328  +
                        member_constraint_violation.as_validation_exception_field(path + "/" + &index.to_string())
        8329  +
                    }
        8330  +
        }
        8331  +
    }
        8332  +
}
        8333  +
pub mod list_of_range_byte {
        8334  +
        8335  +
    #[allow(clippy::enum_variant_names)]
        8336  +
    #[derive(Debug, PartialEq)]
        8337  +
    pub enum ConstraintViolation {
        8338  +
        /// Constraint violation error when an element doesn't satisfy its own constraints.
        8339  +
        /// The first component of the tuple is the index in the collection where the
        8340  +
        /// first constraint violation was found.
        8341  +
        #[doc(hidden)]
        8342  +
        Member(usize, crate::model::range_byte::ConstraintViolation),
        8343  +
    }
        8344  +
        8345  +
    impl ::std::fmt::Display for ConstraintViolation {
        8346  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        8347  +
            let message = match self {
        8348  +
                Self::Member(index, failing_member) => format!(
        8349  +
                    "Value at index {index} failed to satisfy constraint. {}",
        8350  +
                    failing_member
        8351  +
                ),
        8352  +
            };
        8353  +
            write!(f, "{message}")
        8354  +
        }
        8355  +
    }
        8356  +
        8357  +
    impl ::std::error::Error for ConstraintViolation {}
        8358  +
    impl ConstraintViolation {
        8359  +
        pub(crate) fn as_validation_exception_field(
        8360  +
            self,
        8361  +
            path: ::std::string::String,
        8362  +
        ) -> crate::model::ValidationExceptionField {
        8363  +
            match self {
        8364  +
                Self::Member(index, member_constraint_violation) => member_constraint_violation
        8365  +
                    .as_validation_exception_field(path + "/" + &index.to_string()),
        8366  +
            }
        8367  +
        }
        8368  +
    }
        8369  +
}
        8370  +
pub mod map_of_range_long {
        8371  +
        8372  +
    #[allow(clippy::enum_variant_names)]
        8373  +
    #[derive(Debug, PartialEq)]
        8374  +
    pub enum ConstraintViolation {
        8375  +
        #[doc(hidden)]
        8376  +
        Value(
        8377  +
            ::std::string::String,
        8378  +
            crate::model::range_long::ConstraintViolation,
        8379  +
        ),
        8380  +
    }
        8381  +
        8382  +
    impl ::std::fmt::Display for ConstraintViolation {
        8383  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        8384  +
            match self {
        8385  +
                Self::Value(_, value_constraint_violation) => {
        8386  +
                    write!(f, "{}", value_constraint_violation)
        8387  +
                }
        8388  +
            }
        8389  +
        }
        8390  +
    }
        8391  +
        8392  +
    impl ::std::error::Error for ConstraintViolation {}
        8393  +
    impl ConstraintViolation {
        8394  +
        pub(crate) fn as_validation_exception_field(
        8395  +
            self,
        8396  +
            path: ::std::string::String,
        8397  +
        ) -> crate::model::ValidationExceptionField {
        8398  +
            match self {
        8399  +
                Self::Value(key, value_constraint_violation) => value_constraint_violation
        8400  +
                    .as_validation_exception_field(path + "/" + key.as_str()),
        8401  +
            }
        8402  +
        }
        8403  +
    }
        8404  +
}
        8405  +
/// See [`RangeLong`](crate::model::RangeLong).
        8406  +
pub mod range_long {
        8407  +
        8408  +
    #[derive(Debug, PartialEq)]
        8409  +
    pub enum ConstraintViolation {
        8410  +
        Range(i64),
        8411  +
    }
        8412  +
        8413  +
    impl ::std::fmt::Display for ConstraintViolation {
        8414  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        8415  +
            write!(f, "Value for `com.amazonaws.constraints#RangeLong`failed to satisfy constraint: Member must be between 0 and 10, inclusive")
        8416  +
        }
        8417  +
    }
        8418  +
        8419  +
    impl ::std::error::Error for ConstraintViolation {}
        8420  +
    impl ConstraintViolation {
        8421  +
        pub(crate) fn as_validation_exception_field(
        8422  +
            self,
        8423  +
            path: ::std::string::String,
        8424  +
        ) -> crate::model::ValidationExceptionField {
        8425  +
            match self {
        8426  +
                            Self::Range(_) => crate::model::ValidationExceptionField {
        8427  +
                            message: format!("Value at '{}' failed to satisfy constraint: Member must be between 0 and 10, inclusive", &path),
        8428  +
                            path,
        8429  +
                        },
        8430  +
                        }
        8431  +
        }
        8432  +
    }
        8433  +
}
        8434  +
/// See [`SetOfRangeLong`](crate::model::SetOfRangeLong).
        8435  +
pub mod set_of_range_long {
        8436  +
        8437  +
    #[allow(clippy::enum_variant_names)]
        8438  +
    #[derive(Debug, PartialEq)]
        8439  +
    pub enum ConstraintViolation {
        8440  +
        /// Constraint violation error when the list does not contain unique items
        8441  +
        UniqueItems {
        8442  +
            /// A vector of indices into `original` pointing to all duplicate items. This vector has
        8443  +
            /// at least two elements.
        8444  +
            /// More specifically, for every element `idx_1` in `duplicate_indices`, there exists another
        8445  +
            /// distinct element `idx_2` such that `original[idx_1] == original[idx_2]` is `true`.
        8446  +
            /// Nothing is guaranteed about the order of the indices.
        8447  +
            duplicate_indices: ::std::vec::Vec<usize>,
        8448  +
            /// The original vector, that contains duplicate items.
        8449  +
            original: ::std::vec::Vec<crate::model::RangeLong>,
        8450  +
        },
        8451  +
        /// Constraint violation error when an element doesn't satisfy its own constraints.
        8452  +
        /// The first component of the tuple is the index in the collection where the
        8453  +
        /// first constraint violation was found.
        8454  +
        #[doc(hidden)]
        8455  +
        Member(usize, crate::model::range_long::ConstraintViolation),
        8456  +
    }
        8457  +
        8458  +
    impl ::std::fmt::Display for ConstraintViolation {
        8459  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        8460  +
            let message = match self {
        8461  +
                                Self::UniqueItems { duplicate_indices, .. } =>
        8462  +
                            format!("Value with repeated values at indices {:?} provided for 'com.amazonaws.constraints#SetOfRangeLong' failed to satisfy constraint: Member must have unique values", &duplicate_indices),
        8463  +
    Self::Member(index, failing_member) => format!("Value at index {index} failed to satisfy constraint. {}",
        8464  +
                           failing_member)
        8465  +
                            };
        8466  +
            write!(f, "{message}")
        8467  +
        }
        8468  +
    }
        8469  +
        8470  +
    impl ::std::error::Error for ConstraintViolation {}
        8471  +
    impl ConstraintViolation {
        8472  +
        pub(crate) fn as_validation_exception_field(
        8473  +
            self,
        8474  +
            path: ::std::string::String,
        8475  +
        ) -> crate::model::ValidationExceptionField {
        8476  +
            match self {
        8477  +
                        Self::UniqueItems { duplicate_indices, .. } =>
        8478  +
                                crate::model::ValidationExceptionField {
        8479  +
                                    message: format!("Value with repeated values at indices {:?} at '{}' failed to satisfy constraint: Member must have unique values", &duplicate_indices, &path),
        8480  +
                                    path,
        8481  +
                                },
        8482  +
    Self::Member(index, member_constraint_violation) =>
        8483  +
                        member_constraint_violation.as_validation_exception_field(path + "/" + &index.to_string())
        8484  +
                    }
        8485  +
        }
        8486  +
    }
        8487  +
}
        8488  +
pub mod list_of_range_long {
        8489  +
        8490  +
    #[allow(clippy::enum_variant_names)]
        8491  +
    #[derive(Debug, PartialEq)]
        8492  +
    pub enum ConstraintViolation {
        8493  +
        /// Constraint violation error when an element doesn't satisfy its own constraints.
        8494  +
        /// The first component of the tuple is the index in the collection where the
        8495  +
        /// first constraint violation was found.
        8496  +
        #[doc(hidden)]
        8497  +
        Member(usize, crate::model::range_long::ConstraintViolation),
        8498  +
    }
        8499  +
        8500  +
    impl ::std::fmt::Display for ConstraintViolation {
        8501  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        8502  +
            let message = match self {
        8503  +
                Self::Member(index, failing_member) => format!(
        8504  +
                    "Value at index {index} failed to satisfy constraint. {}",
        8505  +
                    failing_member
        8506  +
                ),
        8507  +
            };
        8508  +
            write!(f, "{message}")
        8509  +
        }
        8510  +
    }
        8511  +
        8512  +
    impl ::std::error::Error for ConstraintViolation {}
        8513  +
    impl ConstraintViolation {
        8514  +
        pub(crate) fn as_validation_exception_field(
        8515  +
            self,
        8516  +
            path: ::std::string::String,
        8517  +
        ) -> crate::model::ValidationExceptionField {
        8518  +
            match self {
        8519  +
                Self::Member(index, member_constraint_violation) => member_constraint_violation
        8520  +
                    .as_validation_exception_field(path + "/" + &index.to_string()),
        8521  +
            }
        8522  +
        }
        8523  +
    }
        8524  +
}
        8525  +
pub mod map_of_range_short {
        8526  +
        8527  +
    #[allow(clippy::enum_variant_names)]
        8528  +
    #[derive(Debug, PartialEq)]
        8529  +
    pub enum ConstraintViolation {
        8530  +
        #[doc(hidden)]
        8531  +
        Value(
        8532  +
            ::std::string::String,
        8533  +
            crate::model::range_short::ConstraintViolation,
        8534  +
        ),
        8535  +
    }
        8536  +
        8537  +
    impl ::std::fmt::Display for ConstraintViolation {
        8538  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        8539  +
            match self {
        8540  +
                Self::Value(_, value_constraint_violation) => {
        8541  +
                    write!(f, "{}", value_constraint_violation)
        8542  +
                }
        8543  +
            }
        8544  +
        }
        8545  +
    }
        8546  +
        8547  +
    impl ::std::error::Error for ConstraintViolation {}
        8548  +
    impl ConstraintViolation {
        8549  +
        pub(crate) fn as_validation_exception_field(
        8550  +
            self,
        8551  +
            path: ::std::string::String,
        8552  +
        ) -> crate::model::ValidationExceptionField {
        8553  +
            match self {
        8554  +
                Self::Value(key, value_constraint_violation) => value_constraint_violation
        8555  +
                    .as_validation_exception_field(path + "/" + key.as_str()),
        8556  +
            }
        8557  +
        }
        8558  +
    }
        8559  +
}
        8560  +
/// See [`RangeShort`](crate::model::RangeShort).
        8561  +
pub mod range_short {
        8562  +
        8563  +
    #[derive(Debug, PartialEq)]
        8564  +
    pub enum ConstraintViolation {
        8565  +
        Range(i16),
        8566  +
    }
        8567  +
        8568  +
    impl ::std::fmt::Display for ConstraintViolation {
        8569  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        8570  +
            write!(f, "Value for `com.amazonaws.constraints#RangeShort`failed to satisfy constraint: Member must be between 0 and 10, inclusive")
        8571  +
        }
        8572  +
    }
        8573  +
        8574  +
    impl ::std::error::Error for ConstraintViolation {}
        8575  +
    impl ConstraintViolation {
        8576  +
        pub(crate) fn as_validation_exception_field(
        8577  +
            self,
        8578  +
            path: ::std::string::String,
        8579  +
        ) -> crate::model::ValidationExceptionField {
        8580  +
            match self {
        8581  +
                            Self::Range(_) => crate::model::ValidationExceptionField {
        8582  +
                            message: format!("Value at '{}' failed to satisfy constraint: Member must be between 0 and 10, inclusive", &path),
        8583  +
                            path,
        8584  +
                        },
        8585  +
                        }
        8586  +
        }
        8587  +
    }
        8588  +
}
        8589  +
/// See [`SetOfRangeShort`](crate::model::SetOfRangeShort).
        8590  +
pub mod set_of_range_short {
        8591  +
        8592  +
    #[allow(clippy::enum_variant_names)]
        8593  +
    #[derive(Debug, PartialEq)]
        8594  +
    pub enum ConstraintViolation {
        8595  +
        /// Constraint violation error when the list does not contain unique items
        8596  +
        UniqueItems {
        8597  +
            /// A vector of indices into `original` pointing to all duplicate items. This vector has
        8598  +
            /// at least two elements.
        8599  +
            /// More specifically, for every element `idx_1` in `duplicate_indices`, there exists another
        8600  +
            /// distinct element `idx_2` such that `original[idx_1] == original[idx_2]` is `true`.
        8601  +
            /// Nothing is guaranteed about the order of the indices.
        8602  +
            duplicate_indices: ::std::vec::Vec<usize>,
        8603  +
            /// The original vector, that contains duplicate items.
        8604  +
            original: ::std::vec::Vec<crate::model::RangeShort>,
        8605  +
        },
        8606  +
        /// Constraint violation error when an element doesn't satisfy its own constraints.
        8607  +
        /// The first component of the tuple is the index in the collection where the
        8608  +
        /// first constraint violation was found.
        8609  +
        #[doc(hidden)]
        8610  +
        Member(usize, crate::model::range_short::ConstraintViolation),
        8611  +
    }
        8612  +
        8613  +
    impl ::std::fmt::Display for ConstraintViolation {
        8614  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        8615  +
            let message = match self {
        8616  +
                                Self::UniqueItems { duplicate_indices, .. } =>
        8617  +
                            format!("Value with repeated values at indices {:?} provided for 'com.amazonaws.constraints#SetOfRangeShort' failed to satisfy constraint: Member must have unique values", &duplicate_indices),
        8618  +
    Self::Member(index, failing_member) => format!("Value at index {index} failed to satisfy constraint. {}",
        8619  +
                           failing_member)
        8620  +
                            };
        8621  +
            write!(f, "{message}")
        8622  +
        }
        8623  +
    }
        8624  +
        8625  +
    impl ::std::error::Error for ConstraintViolation {}
        8626  +
    impl ConstraintViolation {
        8627  +
        pub(crate) fn as_validation_exception_field(
        8628  +
            self,
        8629  +
            path: ::std::string::String,
        8630  +
        ) -> crate::model::ValidationExceptionField {
        8631  +
            match self {
        8632  +
                        Self::UniqueItems { duplicate_indices, .. } =>
        8633  +
                                crate::model::ValidationExceptionField {
        8634  +
                                    message: format!("Value with repeated values at indices {:?} at '{}' failed to satisfy constraint: Member must have unique values", &duplicate_indices, &path),
        8635  +
                                    path,
        8636  +
                                },
        8637  +
    Self::Member(index, member_constraint_violation) =>
        8638  +
                        member_constraint_violation.as_validation_exception_field(path + "/" + &index.to_string())
        8639  +
                    }
        8640  +
        }
        8641  +
    }
        8642  +
}
        8643  +
pub mod list_of_range_short {
        8644  +
        8645  +
    #[allow(clippy::enum_variant_names)]
        8646  +
    #[derive(Debug, PartialEq)]
        8647  +
    pub enum ConstraintViolation {
        8648  +
        /// Constraint violation error when an element doesn't satisfy its own constraints.
        8649  +
        /// The first component of the tuple is the index in the collection where the
        8650  +
        /// first constraint violation was found.
        8651  +
        #[doc(hidden)]
        8652  +
        Member(usize, crate::model::range_short::ConstraintViolation),
        8653  +
    }
        8654  +
        8655  +
    impl ::std::fmt::Display for ConstraintViolation {
        8656  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        8657  +
            let message = match self {
        8658  +
                Self::Member(index, failing_member) => format!(
        8659  +
                    "Value at index {index} failed to satisfy constraint. {}",
        8660  +
                    failing_member
        8661  +
                ),
        8662  +
            };
        8663  +
            write!(f, "{message}")
        8664  +
        }
        8665  +
    }
        8666  +
        8667  +
    impl ::std::error::Error for ConstraintViolation {}
        8668  +
    impl ConstraintViolation {
        8669  +
        pub(crate) fn as_validation_exception_field(
        8670  +
            self,
        8671  +
            path: ::std::string::String,
        8672  +
        ) -> crate::model::ValidationExceptionField {
        8673  +
            match self {
        8674  +
                Self::Member(index, member_constraint_violation) => member_constraint_violation
        8675  +
                    .as_validation_exception_field(path + "/" + &index.to_string()),
        8676  +
            }
        8677  +
        }
        8678  +
    }
        8679  +
}
        8680  +
pub mod map_of_range_integer {
        8681  +
        8682  +
    #[allow(clippy::enum_variant_names)]
        8683  +
    #[derive(Debug, PartialEq)]
        8684  +
    pub enum ConstraintViolation {
        8685  +
        #[doc(hidden)]
        8686  +
        Value(
        8687  +
            ::std::string::String,
        8688  +
            crate::model::range_integer::ConstraintViolation,
        8689  +
        ),
        8690  +
    }
        8691  +
        8692  +
    impl ::std::fmt::Display for ConstraintViolation {
        8693  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        8694  +
            match self {
        8695  +
                Self::Value(_, value_constraint_violation) => {
        8696  +
                    write!(f, "{}", value_constraint_violation)
        8697  +
                }
        8698  +
            }
        8699  +
        }
        8700  +
    }
        8701  +
        8702  +
    impl ::std::error::Error for ConstraintViolation {}
        8703  +
    impl ConstraintViolation {
        8704  +
        pub(crate) fn as_validation_exception_field(
        8705  +
            self,
        8706  +
            path: ::std::string::String,
        8707  +
        ) -> crate::model::ValidationExceptionField {
        8708  +
            match self {
        8709  +
                Self::Value(key, value_constraint_violation) => value_constraint_violation
        8710  +
                    .as_validation_exception_field(path + "/" + key.as_str()),
        8711  +
            }
        8712  +
        }
        8713  +
    }
        8714  +
}
        8715  +
/// See [`RangeInteger`](crate::model::RangeInteger).
        8716  +
pub mod range_integer {
        8717  +
        8718  +
    #[derive(Debug, PartialEq)]
        8719  +
    pub enum ConstraintViolation {
        8720  +
        Range(i32),
        8721  +
    }
        8722  +
        8723  +
    impl ::std::fmt::Display for ConstraintViolation {
        8724  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        8725  +
            write!(f, "Value for `com.amazonaws.constraints#RangeInteger`failed to satisfy constraint: Member must be between 0 and 69, inclusive")
        8726  +
        }
        8727  +
    }
        8728  +
        8729  +
    impl ::std::error::Error for ConstraintViolation {}
        8730  +
    impl ConstraintViolation {
        8731  +
        pub(crate) fn as_validation_exception_field(
        8732  +
            self,
        8733  +
            path: ::std::string::String,
        8734  +
        ) -> crate::model::ValidationExceptionField {
        8735  +
            match self {
        8736  +
                            Self::Range(_) => crate::model::ValidationExceptionField {
        8737  +
                            message: format!("Value at '{}' failed to satisfy constraint: Member must be between 0 and 69, inclusive", &path),
        8738  +
                            path,
        8739  +
                        },
        8740  +
                        }
        8741  +
        }
        8742  +
    }
        8743  +
}
        8744  +
/// See [`SetOfRangeInteger`](crate::model::SetOfRangeInteger).
        8745  +
pub mod set_of_range_integer {
        8746  +
        8747  +
    #[allow(clippy::enum_variant_names)]
        8748  +
    #[derive(Debug, PartialEq)]
        8749  +
    pub enum ConstraintViolation {
        8750  +
        /// Constraint violation error when the list does not contain unique items
        8751  +
        UniqueItems {
        8752  +
            /// A vector of indices into `original` pointing to all duplicate items. This vector has
        8753  +
            /// at least two elements.
        8754  +
            /// More specifically, for every element `idx_1` in `duplicate_indices`, there exists another
        8755  +
            /// distinct element `idx_2` such that `original[idx_1] == original[idx_2]` is `true`.
        8756  +
            /// Nothing is guaranteed about the order of the indices.
        8757  +
            duplicate_indices: ::std::vec::Vec<usize>,
        8758  +
            /// The original vector, that contains duplicate items.
        8759  +
            original: ::std::vec::Vec<crate::model::RangeInteger>,
        8760  +
        },
        8761  +
        /// Constraint violation error when an element doesn't satisfy its own constraints.
        8762  +
        /// The first component of the tuple is the index in the collection where the
        8763  +
        /// first constraint violation was found.
        8764  +
        #[doc(hidden)]
        8765  +
        Member(usize, crate::model::range_integer::ConstraintViolation),
        8766  +
    }
        8767  +
        8768  +
    impl ::std::fmt::Display for ConstraintViolation {
        8769  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        8770  +
            let message = match self {
        8771  +
                                Self::UniqueItems { duplicate_indices, .. } =>
        8772  +
                            format!("Value with repeated values at indices {:?} provided for 'com.amazonaws.constraints#SetOfRangeInteger' failed to satisfy constraint: Member must have unique values", &duplicate_indices),
        8773  +
    Self::Member(index, failing_member) => format!("Value at index {index} failed to satisfy constraint. {}",
        8774  +
                           failing_member)
        8775  +
                            };
        8776  +
            write!(f, "{message}")
        8777  +
        }
        8778  +
    }
        8779  +
        8780  +
    impl ::std::error::Error for ConstraintViolation {}
        8781  +
    impl ConstraintViolation {
        8782  +
        pub(crate) fn as_validation_exception_field(
        8783  +
            self,
        8784  +
            path: ::std::string::String,
        8785  +
        ) -> crate::model::ValidationExceptionField {
        8786  +
            match self {
        8787  +
                        Self::UniqueItems { duplicate_indices, .. } =>
        8788  +
                                crate::model::ValidationExceptionField {
        8789  +
                                    message: format!("Value with repeated values at indices {:?} at '{}' failed to satisfy constraint: Member must have unique values", &duplicate_indices, &path),
        8790  +
                                    path,
        8791  +
                                },
        8792  +
    Self::Member(index, member_constraint_violation) =>
        8793  +
                        member_constraint_violation.as_validation_exception_field(path + "/" + &index.to_string())
        8794  +
                    }
        8795  +
        }
        8796  +
    }
        8797  +
}
        8798  +
pub mod list_of_range_integer {
        8799  +
        8800  +
    #[allow(clippy::enum_variant_names)]
        8801  +
    #[derive(Debug, PartialEq)]
        8802  +
    pub enum ConstraintViolation {
        8803  +
        /// Constraint violation error when an element doesn't satisfy its own constraints.
        8804  +
        /// The first component of the tuple is the index in the collection where the
        8805  +
        /// first constraint violation was found.
        8806  +
        #[doc(hidden)]
        8807  +
        Member(usize, crate::model::range_integer::ConstraintViolation),
        8808  +
    }
        8809  +
        8810  +
    impl ::std::fmt::Display for ConstraintViolation {
        8811  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        8812  +
            let message = match self {
        8813  +
                Self::Member(index, failing_member) => format!(
        8814  +
                    "Value at index {index} failed to satisfy constraint. {}",
        8815  +
                    failing_member
        8816  +
                ),
        8817  +
            };
        8818  +
            write!(f, "{message}")
        8819  +
        }
        8820  +
    }
        8821  +
        8822  +
    impl ::std::error::Error for ConstraintViolation {}
        8823  +
    impl ConstraintViolation {
        8824  +
        pub(crate) fn as_validation_exception_field(
        8825  +
            self,
        8826  +
            path: ::std::string::String,
        8827  +
        ) -> crate::model::ValidationExceptionField {
        8828  +
            match self {
        8829  +
                Self::Member(index, member_constraint_violation) => member_constraint_violation
        8830  +
                    .as_validation_exception_field(path + "/" + &index.to_string()),
        8831  +
            }
        8832  +
        }
        8833  +
    }
        8834  +
}
        8835  +
pub mod map_of_length_blob {
        8836  +
        8837  +
    #[allow(clippy::enum_variant_names)]
        8838  +
    #[derive(Debug, PartialEq)]
        8839  +
    pub enum ConstraintViolation {
        8840  +
        #[doc(hidden)]
        8841  +
        Value(
        8842  +
            ::std::string::String,
        8843  +
            crate::model::length_blob::ConstraintViolation,
        8844  +
        ),
        8845  +
    }
        8846  +
        8847  +
    impl ::std::fmt::Display for ConstraintViolation {
        8848  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        8849  +
            match self {
        8850  +
                Self::Value(_, value_constraint_violation) => {
        8851  +
                    write!(f, "{}", value_constraint_violation)
        8852  +
                }
        8853  +
            }
        8854  +
        }
        8855  +
    }
        8856  +
        8857  +
    impl ::std::error::Error for ConstraintViolation {}
        8858  +
    impl ConstraintViolation {
        8859  +
        pub(crate) fn as_validation_exception_field(
        8860  +
            self,
        8861  +
            path: ::std::string::String,
        8862  +
        ) -> crate::model::ValidationExceptionField {
        8863  +
            match self {
        8864  +
                Self::Value(key, value_constraint_violation) => value_constraint_violation
        8865  +
                    .as_validation_exception_field(path + "/" + key.as_str()),
        8866  +
            }
        8867  +
        }
        8868  +
    }
        8869  +
}
        8870  +
/// See [`LengthBlob`](crate::model::LengthBlob).
        8871  +
pub mod length_blob {
        8872  +
        8873  +
    #[derive(Debug, PartialEq)]
        8874  +
    pub enum ConstraintViolation {
        8875  +
        /// Error when a blob doesn't satisfy its `@length` requirements.
        8876  +
        Length(usize),
        8877  +
    }
        8878  +
        8879  +
    impl ::std::fmt::Display for ConstraintViolation {
        8880  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        8881  +
            let message = match self {
        8882  +
                Self::Length(length) => {
        8883  +
                    format!("Value with length {} provided for 'com.amazonaws.constraints#LengthBlob' failed to satisfy constraint: Member must have length between 2 and 70, inclusive", length)
        8884  +
                }
        8885  +
            };
        8886  +
            write!(f, "{message}")
        8887  +
        }
        8888  +
    }
        8889  +
        8890  +
    impl ::std::error::Error for ConstraintViolation {}
        8891  +
    impl ConstraintViolation {
        8892  +
        pub(crate) fn as_validation_exception_field(
        8893  +
            self,
        8894  +
            path: ::std::string::String,
        8895  +
        ) -> crate::model::ValidationExceptionField {
        8896  +
            match self {
        8897  +
                            Self::Length(length) => crate::model::ValidationExceptionField {
        8898  +
                            message: format!("Value with length {} at '{}' failed to satisfy constraint: Member must have length between 2 and 70, inclusive", length, &path),
        8899  +
                            path,
        8900  +
                        },
        8901  +
                        }
        8902  +
        }
        8903  +
    }
        8904  +
}
        8905  +
pub mod list_of_length_blob {
        8906  +
        8907  +
    #[allow(clippy::enum_variant_names)]
        8908  +
    #[derive(Debug, PartialEq)]
        8909  +
    pub enum ConstraintViolation {
        8910  +
        /// Constraint violation error when an element doesn't satisfy its own constraints.
        8911  +
        /// The first component of the tuple is the index in the collection where the
        8912  +
        /// first constraint violation was found.
        8913  +
        #[doc(hidden)]
        8914  +
        Member(usize, crate::model::length_blob::ConstraintViolation),
        8915  +
    }
        8916  +
        8917  +
    impl ::std::fmt::Display for ConstraintViolation {
        8918  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        8919  +
            let message = match self {
        8920  +
                Self::Member(index, failing_member) => format!(
        8921  +
                    "Value at index {index} failed to satisfy constraint. {}",
        8922  +
                    failing_member
        8923  +
                ),
        8924  +
            };
        8925  +
            write!(f, "{message}")
        8926  +
        }
        8927  +
    }
        8928  +
        8929  +
    impl ::std::error::Error for ConstraintViolation {}
        8930  +
    impl ConstraintViolation {
        8931  +
        pub(crate) fn as_validation_exception_field(
        8932  +
            self,
        8933  +
            path: ::std::string::String,
        8934  +
        ) -> crate::model::ValidationExceptionField {
        8935  +
            match self {
        8936  +
                Self::Member(index, member_constraint_violation) => member_constraint_violation
        8937  +
                    .as_validation_exception_field(path + "/" + &index.to_string()),
        8938  +
            }
        8939  +
        }
        8940  +
    }
        8941  +
}
        8942  +
pub mod constrained_union {
        8943  +
        8944  +
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
        8945  +
    #[allow(clippy::enum_variant_names)]
        8946  +
    pub enum ConstraintViolation {
        8947  +
        ConBList(crate::model::con_b_list::ConstraintViolation),
        8948  +
        ConBMap(crate::model::con_b_map::ConstraintViolation),
        8949  +
        ConBSet(crate::model::con_b_set::ConstraintViolation),
        8950  +
        ConstrainedStructure(crate::model::con_b::ConstraintViolation),
        8951  +
        EnumString(crate::model::enum_string::ConstraintViolation),
        8952  +
        LengthString(crate::model::length_string::ConstraintViolation),
        8953  +
    }
        8954  +
    impl ::std::fmt::Display for ConstraintViolation {
        8955  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        8956  +
            match self {
        8957  +
                Self::ConBList(inner) => write!(f, "{inner}"),
        8958  +
                Self::ConBMap(inner) => write!(f, "{inner}"),
        8959  +
                Self::ConBSet(inner) => write!(f, "{inner}"),
        8960  +
                Self::ConstrainedStructure(inner) => write!(f, "{inner}"),
        8961  +
                Self::EnumString(inner) => write!(f, "{inner}"),
        8962  +
                Self::LengthString(inner) => write!(f, "{inner}"),
        8963  +
            }
        8964  +
        }
        8965  +
    }
        8966  +
        8967  +
    impl ::std::error::Error for ConstraintViolation {}
        8968  +
    impl ConstraintViolation {
        8969  +
        pub(crate) fn as_validation_exception_field(
        8970  +
            self,
        8971  +
            path: ::std::string::String,
        8972  +
        ) -> crate::model::ValidationExceptionField {
        8973  +
            match self {
        8974  +
                Self::ConBList(inner) => inner.as_validation_exception_field(path + "/conBList"),
        8975  +
                Self::ConBMap(inner) => inner.as_validation_exception_field(path + "/conBMap"),
        8976  +
                Self::ConBSet(inner) => inner.as_validation_exception_field(path + "/conBSet"),
        8977  +
                Self::ConstrainedStructure(inner) => {
        8978  +
                    inner.as_validation_exception_field(path + "/constrainedStructure")
        8979  +
                }
        8980  +
                Self::EnumString(inner) => {
        8981  +
                    inner.as_validation_exception_field(path + "/enumString")
        8982  +
                }
        8983  +
                Self::LengthString(inner) => {
        8984  +
                    inner.as_validation_exception_field(path + "/lengthString")
        8985  +
                }
        8986  +
            }
        8987  +
        }
        8988  +
    }
        8989  +
}
        8990  +
/// See [`ConBSet`](crate::model::ConBSet).
        8991  +
pub mod con_b_set {
        8992  +
        8993  +
    #[allow(clippy::enum_variant_names)]
        8994  +
    #[derive(Debug, PartialEq)]
        8995  +
    pub enum ConstraintViolation {
        8996  +
        /// Constraint violation error when the list does not contain unique items
        8997  +
        UniqueItems {
        8998  +
            /// A vector of indices into `original` pointing to all duplicate items. This vector has
        8999  +
            /// at least two elements.
        9000  +
            /// More specifically, for every element `idx_1` in `duplicate_indices`, there exists another
        9001  +
            /// distinct element `idx_2` such that `original[idx_1] == original[idx_2]` is `true`.
        9002  +
            /// Nothing is guaranteed about the order of the indices.
        9003  +
            duplicate_indices: ::std::vec::Vec<usize>,
        9004  +
            /// The original vector, that contains duplicate items.
        9005  +
            original: ::std::vec::Vec<crate::model::ConBSetInner>,
        9006  +
        },
        9007  +
        /// Constraint violation error when an element doesn't satisfy its own constraints.
        9008  +
        /// The first component of the tuple is the index in the collection where the
        9009  +
        /// first constraint violation was found.
        9010  +
        #[doc(hidden)]
        9011  +
        Member(usize, crate::model::con_b_set_inner::ConstraintViolation),
        9012  +
    }
        9013  +
        9014  +
    impl ::std::fmt::Display for ConstraintViolation {
        9015  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        9016  +
            let message = match self {
        9017  +
                                Self::UniqueItems { duplicate_indices, .. } =>
        9018  +
                            format!("Value with repeated values at indices {:?} provided for 'com.amazonaws.constraints#ConBSet' failed to satisfy constraint: Member must have unique values", &duplicate_indices),
        9019  +
    Self::Member(index, failing_member) => format!("Value at index {index} failed to satisfy constraint. {}",
        9020  +
                           failing_member)
        9021  +
                            };
        9022  +
            write!(f, "{message}")
        9023  +
        }
        9024  +
    }
        9025  +
        9026  +
    impl ::std::error::Error for ConstraintViolation {}
        9027  +
    impl ConstraintViolation {
        9028  +
        pub(crate) fn as_validation_exception_field(
        9029  +
            self,
        9030  +
            path: ::std::string::String,
        9031  +
        ) -> crate::model::ValidationExceptionField {
        9032  +
            match self {
        9033  +
                        Self::UniqueItems { duplicate_indices, .. } =>
        9034  +
                                crate::model::ValidationExceptionField {
        9035  +
                                    message: format!("Value with repeated values at indices {:?} at '{}' failed to satisfy constraint: Member must have unique values", &duplicate_indices, &path),
        9036  +
                                    path,
        9037  +
                                },
        9038  +
    Self::Member(index, member_constraint_violation) =>
        9039  +
                        member_constraint_violation.as_validation_exception_field(path + "/" + &index.to_string())
        9040  +
                    }
        9041  +
        }
        9042  +
    }
        9043  +
}
        9044  +
/// See [`ConBSetInner`](crate::model::ConBSetInner).
        9045  +
pub mod con_b_set_inner {
        9046  +
        9047  +
    #[allow(clippy::enum_variant_names)]
        9048  +
    #[derive(Debug, PartialEq)]
        9049  +
    pub enum ConstraintViolation {
        9050  +
        /// Constraint violation error when the list does not contain unique items
        9051  +
        UniqueItems {
        9052  +
            /// A vector of indices into `original` pointing to all duplicate items. This vector has
        9053  +
            /// at least two elements.
        9054  +
            /// More specifically, for every element `idx_1` in `duplicate_indices`, there exists another
        9055  +
            /// distinct element `idx_2` such that `original[idx_1] == original[idx_2]` is `true`.
        9056  +
            /// Nothing is guaranteed about the order of the indices.
        9057  +
            duplicate_indices: ::std::vec::Vec<usize>,
        9058  +
            /// The original vector, that contains duplicate items.
        9059  +
            original: ::std::vec::Vec<::std::string::String>,
        9060  +
        },
        9061  +
    }
        9062  +
        9063  +
    impl ::std::fmt::Display for ConstraintViolation {
        9064  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        9065  +
            let message = match self {
        9066  +
                                Self::UniqueItems { duplicate_indices, .. } =>
        9067  +
                            format!("Value with repeated values at indices {:?} provided for 'com.amazonaws.constraints#ConBSetInner' failed to satisfy constraint: Member must have unique values", &duplicate_indices),
        9068  +
                            };
        9069  +
            write!(f, "{message}")
        9070  +
        }
        9071  +
    }
        9072  +
        9073  +
    impl ::std::error::Error for ConstraintViolation {}
        9074  +
    impl ConstraintViolation {
        9075  +
        pub(crate) fn as_validation_exception_field(
        9076  +
            self,
        9077  +
            path: ::std::string::String,
        9078  +
        ) -> crate::model::ValidationExceptionField {
        9079  +
            match self {
        9080  +
                        Self::UniqueItems { duplicate_indices, .. } =>
        9081  +
                                crate::model::ValidationExceptionField {
        9082  +
                                    message: format!("Value with repeated values at indices {:?} at '{}' failed to satisfy constraint: Member must have unique values", &duplicate_indices, &path),
        9083  +
                                    path,
        9084  +
                                },
        9085  +
                    }
        9086  +
        }
        9087  +
    }
        9088  +
}
        9089  +
pub mod con_b_list {
        9090  +
        9091  +
    #[allow(clippy::enum_variant_names)]
        9092  +
    #[derive(Debug, PartialEq)]
        9093  +
    pub enum ConstraintViolation {
        9094  +
        /// Constraint violation error when an element doesn't satisfy its own constraints.
        9095  +
        /// The first component of the tuple is the index in the collection where the
        9096  +
        /// first constraint violation was found.
        9097  +
        #[doc(hidden)]
        9098  +
        Member(usize, crate::model::con_b_list_inner::ConstraintViolation),
        9099  +
    }
        9100  +
        9101  +
    impl ::std::fmt::Display for ConstraintViolation {
        9102  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        9103  +
            let message = match self {
        9104  +
                Self::Member(index, failing_member) => format!(
        9105  +
                    "Value at index {index} failed to satisfy constraint. {}",
        9106  +
                    failing_member
        9107  +
                ),
        9108  +
            };
        9109  +
            write!(f, "{message}")
        9110  +
        }
        9111  +
    }
        9112  +
        9113  +
    impl ::std::error::Error for ConstraintViolation {}
        9114  +
    impl ConstraintViolation {
        9115  +
        pub(crate) fn as_validation_exception_field(
        9116  +
            self,
        9117  +
            path: ::std::string::String,
        9118  +
        ) -> crate::model::ValidationExceptionField {
        9119  +
            match self {
        9120  +
                Self::Member(index, member_constraint_violation) => member_constraint_violation
        9121  +
                    .as_validation_exception_field(path + "/" + &index.to_string()),
        9122  +
            }
        9123  +
        }
        9124  +
    }
        9125  +
}
        9126  +
pub mod con_b_list_inner {
        9127  +
        9128  +
    #[allow(clippy::enum_variant_names)]
        9129  +
    #[derive(Debug, PartialEq)]
        9130  +
    pub enum ConstraintViolation {
        9131  +
        /// Constraint violation error when an element doesn't satisfy its own constraints.
        9132  +
        /// The first component of the tuple is the index in the collection where the
        9133  +
        /// first constraint violation was found.
        9134  +
        #[doc(hidden)]
        9135  +
        Member(usize, crate::model::con_b::ConstraintViolation),
        9136  +
    }
        9137  +
        9138  +
    impl ::std::fmt::Display for ConstraintViolation {
        9139  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        9140  +
            let message = match self {
        9141  +
                Self::Member(index, failing_member) => format!(
        9142  +
                    "Value at index {index} failed to satisfy constraint. {}",
        9143  +
                    failing_member
        9144  +
                ),
        9145  +
            };
        9146  +
            write!(f, "{message}")
        9147  +
        }
        9148  +
    }
        9149  +
        9150  +
    impl ::std::error::Error for ConstraintViolation {}
        9151  +
    impl ConstraintViolation {
        9152  +
        pub(crate) fn as_validation_exception_field(
        9153  +
            self,
        9154  +
            path: ::std::string::String,
        9155  +
        ) -> crate::model::ValidationExceptionField {
        9156  +
            match self {
        9157  +
                Self::Member(index, member_constraint_violation) => member_constraint_violation
        9158  +
                    .as_validation_exception_field(path + "/" + &index.to_string()),
        9159  +
            }
        9160  +
        }
        9161  +
    }
        9162  +
}
        9163  +
/// See [`ConB`](crate::model::ConB).
        9164  +
pub mod con_b {
        9165  +
        9166  +
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
        9167  +
    /// Holds one variant for each of the ways the builder can fail.
        9168  +
    #[non_exhaustive]
        9169  +
    #[allow(clippy::enum_variant_names)]
        9170  +
    pub enum ConstraintViolation {
        9171  +
        /// `nice` was not provided but it is required when building `ConB`.
        9172  +
        MissingNice,
        9173  +
        /// `int` was not provided but it is required when building `ConB`.
        9174  +
        MissingInt,
        9175  +
    }
        9176  +
    impl ::std::fmt::Display for ConstraintViolation {
        9177  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        9178  +
            match self {
        9179  +
                ConstraintViolation::MissingNice => write!(
        9180  +
                    f,
        9181  +
                    "`nice` was not provided but it is required when building `ConB`"
        9182  +
                ),
        9183  +
                ConstraintViolation::MissingInt => write!(
        9184  +
                    f,
        9185  +
                    "`int` was not provided but it is required when building `ConB`"
        9186  +
                ),
        9187  +
            }
        9188  +
        }
        9189  +
    }
        9190  +
    impl ::std::error::Error for ConstraintViolation {}
        9191  +
    impl ConstraintViolation {
        9192  +
        pub(crate) fn as_validation_exception_field(
        9193  +
            self,
        9194  +
            path: ::std::string::String,
        9195  +
        ) -> crate::model::ValidationExceptionField {
        9196  +
            match self {
        9197  +
                ConstraintViolation::MissingNice => crate::model::ValidationExceptionField {
        9198  +
                    message: format!(
        9199  +
                        "Value at '{}/nice' failed to satisfy constraint: Member must not be null",
        9200  +
                        path
        9201  +
                    ),
        9202  +
                    path: path + "/nice",
        9203  +
                },
        9204  +
                ConstraintViolation::MissingInt => crate::model::ValidationExceptionField {
        9205  +
                    message: format!(
        9206  +
                        "Value at '{}/int' failed to satisfy constraint: Member must not be null",
        9207  +
                        path
        9208  +
                    ),
        9209  +
                    path: path + "/int",
        9210  +
                },
        9211  +
            }
        9212  +
        }
        9213  +
    }
        9214  +
    impl ::std::convert::From<Builder> for crate::constrained::MaybeConstrained<crate::model::ConB> {
        9215  +
        fn from(builder: Builder) -> Self {
        9216  +
            Self::Unconstrained(builder)
        9217  +
        }
        9218  +
    }
        9219  +
    impl ::std::convert::TryFrom<Builder> for crate::model::ConB {
        9220  +
        type Error = ConstraintViolation;
        9221  +
        9222  +
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
        9223  +
            builder.build()
        9224  +
        }
        9225  +
    }
        9226  +
    /// A builder for [`ConB`](crate::model::ConB).
        9227  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        9228  +
    pub struct Builder {
        9229  +
        pub(crate) nice: ::std::option::Option<::std::string::String>,
        9230  +
        pub(crate) int: ::std::option::Option<i32>,
        9231  +
        pub(crate) opt_nice: ::std::option::Option<::std::string::String>,
        9232  +
        pub(crate) opt_int: ::std::option::Option<i32>,
        9233  +
    }
        9234  +
    impl Builder {
        9235  +
        #[allow(missing_docs)] // documentation missing in model
        9236  +
        pub fn nice(mut self, input: ::std::string::String) -> Self {
        9237  +
            self.nice = Some(input);
        9238  +
            self
        9239  +
        }
        9240  +
        #[allow(missing_docs)] // documentation missing in model
        9241  +
        pub(crate) fn set_nice(
        9242  +
            mut self,
        9243  +
            input: impl ::std::convert::Into<::std::string::String>,
        9244  +
        ) -> Self {
        9245  +
            self.nice = Some(input.into());
        9246  +
            self
        9247  +
        }
        9248  +
        #[allow(missing_docs)] // documentation missing in model
        9249  +
        pub fn int(mut self, input: i32) -> Self {
        9250  +
            self.int = Some(input);
        9251  +
            self
        9252  +
        }
        9253  +
        #[allow(missing_docs)] // documentation missing in model
        9254  +
        pub(crate) fn set_int(mut self, input: impl ::std::convert::Into<i32>) -> Self {
        9255  +
            self.int = Some(input.into());
        9256  +
            self
        9257  +
        }
        9258  +
        #[allow(missing_docs)] // documentation missing in model
        9259  +
        pub fn opt_nice(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        9260  +
            self.opt_nice = input;
        9261  +
            self
        9262  +
        }
        9263  +
        #[allow(missing_docs)] // documentation missing in model
        9264  +
        pub(crate) fn set_opt_nice(
        9265  +
            mut self,
        9266  +
            input: Option<impl ::std::convert::Into<::std::string::String>>,
        9267  +
        ) -> Self {
        9268  +
            self.opt_nice = input.map(|v| v.into());
        9269  +
            self
        9270  +
        }
        9271  +
        #[allow(missing_docs)] // documentation missing in model
        9272  +
        pub fn opt_int(mut self, input: ::std::option::Option<i32>) -> Self {
        9273  +
            self.opt_int = input;
        9274  +
            self
        9275  +
        }
        9276  +
        #[allow(missing_docs)] // documentation missing in model
        9277  +
        pub(crate) fn set_opt_int(mut self, input: Option<impl ::std::convert::Into<i32>>) -> Self {
        9278  +
            self.opt_int = input.map(|v| v.into());
        9279  +
            self
        9280  +
        }
        9281  +
        /// Consumes the builder and constructs a [`ConB`](crate::model::ConB).
        9282  +
        ///
        9283  +
        /// The builder fails to construct a [`ConB`](crate::model::ConB) if a [`ConstraintViolation`] occurs.
        9284  +
        ///
        9285  +
        /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
        9286  +
        pub fn build(self) -> Result<crate::model::ConB, ConstraintViolation> {
        9287  +
            self.build_enforcing_all_constraints()
        9288  +
        }
        9289  +
        fn build_enforcing_all_constraints(
        9290  +
            self,
        9291  +
        ) -> Result<crate::model::ConB, ConstraintViolation> {
        9292  +
            Ok(crate::model::ConB {
        9293  +
                nice: self.nice.ok_or(ConstraintViolation::MissingNice)?,
        9294  +
                int: self.int.ok_or(ConstraintViolation::MissingInt)?,
        9295  +
                opt_nice: self.opt_nice,
        9296  +
                opt_int: self.opt_int,
        9297  +
            })
        9298  +
        }
        9299  +
    }
        9300  +
}
        9301  +
/// See [`SparseLengthList`](crate::model::SparseLengthList).
        9302  +
pub mod sparse_length_list {
        9303  +
        9304  +
    #[allow(clippy::enum_variant_names)]
        9305  +
    #[derive(Debug, PartialEq)]
        9306  +
    pub enum ConstraintViolation {
        9307  +
        /// Constraint violation error when the list doesn't have the required length
        9308  +
        Length(usize),
        9309  +
    }
        9310  +
        9311  +
    impl ::std::fmt::Display for ConstraintViolation {
        9312  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        9313  +
            let message = match self {
        9314  +
                Self::Length(length) => {
        9315  +
                    format!("Value with length {} provided for 'com.amazonaws.constraints#SparseLengthList' failed to satisfy constraint: Member must have length greater than or equal to 69", length)
        9316  +
                }
        9317  +
            };
        9318  +
            write!(f, "{message}")
        9319  +
        }
        9320  +
    }
        9321  +
        9322  +
    impl ::std::error::Error for ConstraintViolation {}
        9323  +
    impl ConstraintViolation {
        9324  +
        pub(crate) fn as_validation_exception_field(
        9325  +
            self,
        9326  +
            path: ::std::string::String,
        9327  +
        ) -> crate::model::ValidationExceptionField {
        9328  +
            match self {
        9329  +
                        Self::Length(length) => crate::model::ValidationExceptionField {
        9330  +
                                message: format!("Value with length {} at '{}' failed to satisfy constraint: Member must have length greater than or equal to 69", length, &path),
        9331  +
                                path,
        9332  +
                            },
        9333  +
                    }
        9334  +
        }
        9335  +
    }
        9336  +
}
        9337  +
/// See [`SparseLengthMap`](crate::model::SparseLengthMap).
        9338  +
pub mod sparse_length_map {
        9339  +
        9340  +
    #[allow(clippy::enum_variant_names)]
        9341  +
    #[derive(Debug, PartialEq)]
        9342  +
    pub enum ConstraintViolation {
        9343  +
        Length(usize),
        9344  +
    }
        9345  +
        9346  +
    impl ::std::fmt::Display for ConstraintViolation {
        9347  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        9348  +
            match self {
        9349  +
                Self::Length(length) => {
        9350  +
                    write!(f, "Value with length {} provided for 'com.amazonaws.constraints#SparseLengthMap' failed to satisfy constraint: Member must have length greater than or equal to 69", length)
        9351  +
                }
        9352  +
            }
        9353  +
        }
        9354  +
    }
        9355  +
        9356  +
    impl ::std::error::Error for ConstraintViolation {}
        9357  +
    impl ConstraintViolation {
        9358  +
        pub(crate) fn as_validation_exception_field(
        9359  +
            self,
        9360  +
            path: ::std::string::String,
        9361  +
        ) -> crate::model::ValidationExceptionField {
        9362  +
            match self {
        9363  +
            Self::Length(length) => crate::model::ValidationExceptionField {
        9364  +
                                        message: format!("Value with length {} at '{}' failed to satisfy constraint: Member must have length greater than or equal to 69", length, &path),
        9365  +
                                        path,
        9366  +
                                    },
        9367  +
        }
        9368  +
        }
        9369  +
    }
        9370  +
}
        9371  +
pub mod sparse_list {
        9372  +
        9373  +
    #[allow(clippy::enum_variant_names)]
        9374  +
    #[derive(Debug, PartialEq)]
        9375  +
    pub enum ConstraintViolation {
        9376  +
        /// Constraint violation error when an element doesn't satisfy its own constraints.
        9377  +
        /// The first component of the tuple is the index in the collection where the
        9378  +
        /// first constraint violation was found.
        9379  +
        #[doc(hidden)]
        9380  +
        Member(usize, crate::model::length_string::ConstraintViolation),
        9381  +
    }
        9382  +
        9383  +
    impl ::std::fmt::Display for ConstraintViolation {
        9384  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        9385  +
            let message = match self {
        9386  +
                Self::Member(index, failing_member) => format!(
        9387  +
                    "Value at index {index} failed to satisfy constraint. {}",
        9388  +
                    failing_member
        9389  +
                ),
        9390  +
            };
        9391  +
            write!(f, "{message}")
        9392  +
        }
        9393  +
    }
        9394  +
        9395  +
    impl ::std::error::Error for ConstraintViolation {}
        9396  +
    impl ConstraintViolation {
        9397  +
        pub(crate) fn as_validation_exception_field(
        9398  +
            self,
        9399  +
            path: ::std::string::String,
        9400  +
        ) -> crate::model::ValidationExceptionField {
        9401  +
            match self {
        9402  +
                Self::Member(index, member_constraint_violation) => member_constraint_violation
        9403  +
                    .as_validation_exception_field(path + "/" + &index.to_string()),
        9404  +
            }
        9405  +
        }
        9406  +
    }
        9407  +
}
        9408  +
pub mod sparse_map {
        9409  +
        9410  +
    #[allow(clippy::enum_variant_names)]
        9411  +
    #[derive(Debug, PartialEq)]
        9412  +
    pub enum ConstraintViolation {
        9413  +
        #[doc(hidden)]
        9414  +
        Value(
        9415  +
            ::std::string::String,
        9416  +
            crate::model::unique_items_list::ConstraintViolation,
        9417  +
        ),
        9418  +
    }
        9419  +
        9420  +
    impl ::std::fmt::Display for ConstraintViolation {
        9421  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        9422  +
            match self {
        9423  +
                Self::Value(_, value_constraint_violation) => {
        9424  +
                    write!(f, "{}", value_constraint_violation)
        9425  +
                }
        9426  +
            }
        9427  +
        }
        9428  +
    }
        9429  +
        9430  +
    impl ::std::error::Error for ConstraintViolation {}
        9431  +
    impl ConstraintViolation {
        9432  +
        pub(crate) fn as_validation_exception_field(
        9433  +
            self,
        9434  +
            path: ::std::string::String,
        9435  +
        ) -> crate::model::ValidationExceptionField {
        9436  +
            match self {
        9437  +
                Self::Value(key, value_constraint_violation) => value_constraint_violation
        9438  +
                    .as_validation_exception_field(path + "/" + key.as_str()),
        9439  +
            }
        9440  +
        }
        9441  +
    }
        9442  +
}
        9443  +
/// See [`UniqueItemsList`](crate::model::UniqueItemsList).
        9444  +
pub mod unique_items_list {
        9445  +
        9446  +
    #[allow(clippy::enum_variant_names)]
        9447  +
    #[derive(Debug, PartialEq)]
        9448  +
    pub enum ConstraintViolation {
        9449  +
        /// Constraint violation error when the list does not contain unique items
        9450  +
        UniqueItems {
        9451  +
            /// A vector of indices into `original` pointing to all duplicate items. This vector has
        9452  +
            /// at least two elements.
        9453  +
            /// More specifically, for every element `idx_1` in `duplicate_indices`, there exists another
        9454  +
            /// distinct element `idx_2` such that `original[idx_1] == original[idx_2]` is `true`.
        9455  +
            /// Nothing is guaranteed about the order of the indices.
        9456  +
            duplicate_indices: ::std::vec::Vec<usize>,
        9457  +
            /// The original vector, that contains duplicate items.
        9458  +
            original: ::std::vec::Vec<::std::string::String>,
        9459  +
        },
        9460  +
    }
        9461  +
        9462  +
    impl ::std::fmt::Display for ConstraintViolation {
        9463  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        9464  +
            let message = match self {
        9465  +
                                Self::UniqueItems { duplicate_indices, .. } =>
        9466  +
                            format!("Value with repeated values at indices {:?} provided for 'com.amazonaws.constraints#UniqueItemsList' failed to satisfy constraint: Member must have unique values", &duplicate_indices),
        9467  +
                            };
        9468  +
            write!(f, "{message}")
        9469  +
        }
        9470  +
    }
        9471  +
        9472  +
    impl ::std::error::Error for ConstraintViolation {}
        9473  +
    impl ConstraintViolation {
        9474  +
        pub(crate) fn as_validation_exception_field(
        9475  +
            self,
        9476  +
            path: ::std::string::String,
        9477  +
        ) -> crate::model::ValidationExceptionField {
        9478  +
            match self {
        9479  +
                        Self::UniqueItems { duplicate_indices, .. } =>
        9480  +
                                crate::model::ValidationExceptionField {
        9481  +
                                    message: format!("Value with repeated values at indices {:?} at '{}' failed to satisfy constraint: Member must have unique values", &duplicate_indices, &path),
        9482  +
                                    path,
        9483  +
                                },
        9484  +
                    }
        9485  +
        }
        9486  +
    }
        9487  +
}
        9488  +
pub mod map_of_map_of_list_of_list_of_con_b {
        9489  +
        9490  +
    #[allow(clippy::enum_variant_names)]
        9491  +
    #[derive(Debug, PartialEq)]
        9492  +
    pub enum ConstraintViolation {
        9493  +
        #[doc(hidden)]
        9494  +
        Value(
        9495  +
            ::std::string::String,
        9496  +
            crate::model::map_of_list_of_list_of_con_b::ConstraintViolation,
        9497  +
        ),
        9498  +
    }
        9499  +
        9500  +
    impl ::std::fmt::Display for ConstraintViolation {
        9501  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        9502  +
            match self {
        9503  +
                Self::Value(_, value_constraint_violation) => {
        9504  +
                    write!(f, "{}", value_constraint_violation)
        9505  +
                }
        9506  +
            }
        9507  +
        }
        9508  +
    }
        9509  +
        9510  +
    impl ::std::error::Error for ConstraintViolation {}
        9511  +
    impl ConstraintViolation {
        9512  +
        pub(crate) fn as_validation_exception_field(
        9513  +
            self,
        9514  +
            path: ::std::string::String,
        9515  +
        ) -> crate::model::ValidationExceptionField {
        9516  +
            match self {
        9517  +
                Self::Value(key, value_constraint_violation) => value_constraint_violation
        9518  +
                    .as_validation_exception_field(path + "/" + key.as_str()),
        9519  +
            }
        9520  +
        }
        9521  +
    }
        9522  +
}
        9523  +
pub mod map_of_list_of_list_of_con_b {
        9524  +
        9525  +
    #[allow(clippy::enum_variant_names)]
        9526  +
    #[derive(Debug, PartialEq)]
        9527  +
    pub enum ConstraintViolation {
        9528  +
        #[doc(hidden)]
        9529  +
        Value(
        9530  +
            ::std::string::String,
        9531  +
            crate::model::con_b_list::ConstraintViolation,
        9532  +
        ),
        9533  +
    }
        9534  +
        9535  +
    impl ::std::fmt::Display for ConstraintViolation {
        9536  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        9537  +
            match self {
        9538  +
                Self::Value(_, value_constraint_violation) => {
        9539  +
                    write!(f, "{}", value_constraint_violation)
        9540  +
                }
        9541  +
            }
        9542  +
        }
        9543  +
    }
        9544  +
        9545  +
    impl ::std::error::Error for ConstraintViolation {}
        9546  +
    impl ConstraintViolation {
        9547  +
        pub(crate) fn as_validation_exception_field(
        9548  +
            self,
        9549  +
            path: ::std::string::String,
        9550  +
        ) -> crate::model::ValidationExceptionField {
        9551  +
            match self {
        9552  +
                Self::Value(key, value_constraint_violation) => value_constraint_violation
        9553  +
                    .as_validation_exception_field(path + "/" + key.as_str()),
        9554  +
            }
        9555  +
        }
        9556  +
    }
        9557  +
}
        9558  +
/// See [`LengthMap`](crate::model::LengthMap).
        9559  +
pub mod length_map {
        9560  +
        9561  +
    #[allow(clippy::enum_variant_names)]
        9562  +
    #[derive(Debug, PartialEq)]
        9563  +
    pub enum ConstraintViolation {
        9564  +
        Length(usize),
        9565  +
    }
        9566  +
        9567  +
    impl ::std::fmt::Display for ConstraintViolation {
        9568  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        9569  +
            match self {
        9570  +
                Self::Length(length) => {
        9571  +
                    write!(f, "Value with length {} provided for 'com.amazonaws.constraints#LengthMap' failed to satisfy constraint: Member must have length between 1 and 69, inclusive", length)
        9572  +
                }
        9573  +
            }
        9574  +
        }
        9575  +
    }
        9576  +
        9577  +
    impl ::std::error::Error for ConstraintViolation {}
        9578  +
    impl ConstraintViolation {
        9579  +
        pub(crate) fn as_validation_exception_field(
        9580  +
            self,
        9581  +
            path: ::std::string::String,
        9582  +
        ) -> crate::model::ValidationExceptionField {
        9583  +
            match self {
        9584  +
            Self::Length(length) => crate::model::ValidationExceptionField {
        9585  +
                                        message: format!("Value with length {} at '{}' failed to satisfy constraint: Member must have length between 1 and 69, inclusive", length, &path),
        9586  +
                                        path,
        9587  +
                                    },
        9588  +
        }
        9589  +
        }
        9590  +
    }
        9591  +
}
        9592  +
/// See [`SensitiveLengthList`](crate::model::SensitiveLengthList).
        9593  +
pub mod sensitive_length_list {
        9594  +
        9595  +
    #[allow(clippy::enum_variant_names)]
        9596  +
    #[derive(Debug, PartialEq)]
        9597  +
    pub enum ConstraintViolation {
        9598  +
        /// Constraint violation error when the list doesn't have the required length
        9599  +
        Length(usize),
        9600  +
    }
        9601  +
        9602  +
    impl ::std::fmt::Display for ConstraintViolation {
        9603  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        9604  +
            let message = match self {
        9605  +
                Self::Length(length) => {
        9606  +
                    format!("Value with length {} provided for 'com.amazonaws.constraints#SensitiveLengthList' failed to satisfy constraint: Member must have length less than or equal to 69", length)
        9607  +
                }
        9608  +
            };
        9609  +
            write!(f, "{message}")
        9610  +
        }
        9611  +
    }
        9612  +
        9613  +
    impl ::std::error::Error for ConstraintViolation {}
        9614  +
    impl ConstraintViolation {
        9615  +
        pub(crate) fn as_validation_exception_field(
        9616  +
            self,
        9617  +
            path: ::std::string::String,
        9618  +
        ) -> crate::model::ValidationExceptionField {
        9619  +
            match self {
        9620  +
                        Self::Length(length) => crate::model::ValidationExceptionField {
        9621  +
                                message: format!("Value with length {} at '{}' failed to satisfy constraint: Member must have length less than or equal to 69", length, &path),
        9622  +
                                path,
        9623  +
                            },
        9624  +
                    }
        9625  +
        }
        9626  +
    }
        9627  +
}
        9628  +
/// See [`SensitiveStructure`](crate::model::SensitiveStructure).
        9629  +
pub mod sensitive_structure {
        9630  +
        9631  +
    impl ::std::convert::From<Builder> for crate::model::SensitiveStructure {
        9632  +
        fn from(builder: Builder) -> Self {
        9633  +
            builder.build()
        9634  +
        }
        9635  +
    }
        9636  +
    /// A builder for [`SensitiveStructure`](crate::model::SensitiveStructure).
        9637  +
    #[derive(::std::clone::Clone, ::std::default::Default)]
        9638  +
    pub struct Builder {}
        9639  +
    impl Builder {
        9640  +
        /// Consumes the builder and constructs a [`SensitiveStructure`](crate::model::SensitiveStructure).
        9641  +
        pub fn build(self) -> crate::model::SensitiveStructure {
        9642  +
            self.build_enforcing_all_constraints()
        9643  +
        }
        9644  +
        fn build_enforcing_all_constraints(self) -> crate::model::SensitiveStructure {
        9645  +
            crate::model::SensitiveStructure {}
        9646  +
        }
        9647  +
    }
        9648  +
    impl ::std::fmt::Debug for Builder {
        9649  +
        fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        9650  +
            let mut formatter = f.debug_struct("Builder");
        9651  +
            formatter.finish()
        9652  +
        }
        9653  +
    }
        9654  +
}
        9655  +
/// See [`LengthList`](crate::model::LengthList).
        9656  +
pub mod length_list {
        9657  +
        9658  +
    #[allow(clippy::enum_variant_names)]
        9659  +
    #[derive(Debug, PartialEq)]
        9660  +
    pub enum ConstraintViolation {
        9661  +
        /// Constraint violation error when the list doesn't have the required length
        9662  +
        Length(usize),
        9663  +
    }
        9664  +
        9665  +
    impl ::std::fmt::Display for ConstraintViolation {
        9666  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        9667  +
            let message = match self {
        9668  +
                Self::Length(length) => {
        9669  +
                    format!("Value with length {} provided for 'com.amazonaws.constraints#LengthList' failed to satisfy constraint: Member must have length less than or equal to 69", length)
        9670  +
                }
        9671  +
            };
        9672  +
            write!(f, "{message}")
        9673  +
        }
        9674  +
    }
        9675  +
        9676  +
    impl ::std::error::Error for ConstraintViolation {}
        9677  +
    impl ConstraintViolation {
        9678  +
        pub(crate) fn as_validation_exception_field(
        9679  +
            self,
        9680  +
            path: ::std::string::String,
        9681  +
        ) -> crate::model::ValidationExceptionField {
        9682  +
            match self {
        9683  +
                        Self::Length(length) => crate::model::ValidationExceptionField {
        9684  +
                                message: format!("Value with length {} at '{}' failed to satisfy constraint: Member must have length less than or equal to 69", length, &path),
        9685  +
                                path,
        9686  +
                            },
        9687  +
                    }
        9688  +
        }
        9689  +
    }
        9690  +
}
        9691  +
/// See [`FixedValueByte`](crate::model::FixedValueByte).
        9692  +
pub mod fixed_value_byte {
        9693  +
        9694  +
    #[derive(Debug, PartialEq)]
        9695  +
    pub enum ConstraintViolation {
        9696  +
        Range(i8),
        9697  +
    }
        9698  +
        9699  +
    impl ::std::fmt::Display for ConstraintViolation {
        9700  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        9701  +
            write!(f, "Value for `com.amazonaws.constraints#FixedValueByte`failed to satisfy constraint: Member must be between 10 and 10, inclusive")
        9702  +
        }
        9703  +
    }
        9704  +
        9705  +
    impl ::std::error::Error for ConstraintViolation {}
        9706  +
    impl ConstraintViolation {
        9707  +
        pub(crate) fn as_validation_exception_field(
        9708  +
            self,
        9709  +
            path: ::std::string::String,
        9710  +
        ) -> crate::model::ValidationExceptionField {
        9711  +
            match self {
        9712  +
                            Self::Range(_) => crate::model::ValidationExceptionField {
        9713  +
                            message: format!("Value at '{}' failed to satisfy constraint: Member must be between 10 and 10, inclusive", &path),
        9714  +
                            path,
        9715  +
                        },
        9716  +
                        }
        9717  +
        }
        9718  +
    }
        9719  +
}
        9720  +
/// See [`MaxRangeByte`](crate::model::MaxRangeByte).
        9721  +
pub mod max_range_byte {
        9722  +
        9723  +
    #[derive(Debug, PartialEq)]
        9724  +
    pub enum ConstraintViolation {
        9725  +
        Range(i8),
        9726  +
    }
        9727  +
        9728  +
    impl ::std::fmt::Display for ConstraintViolation {
        9729  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        9730  +
            write!(f, "Value for `com.amazonaws.constraints#MaxRangeByte`failed to satisfy constraint: Member must be less than or equal to 11")
        9731  +
        }
        9732  +
    }
        9733  +
        9734  +
    impl ::std::error::Error for ConstraintViolation {}
        9735  +
    impl ConstraintViolation {
        9736  +
        pub(crate) fn as_validation_exception_field(
        9737  +
            self,
        9738  +
            path: ::std::string::String,
        9739  +
        ) -> crate::model::ValidationExceptionField {
        9740  +
            match self {
        9741  +
                            Self::Range(_) => crate::model::ValidationExceptionField {
        9742  +
                            message: format!("Value at '{}' failed to satisfy constraint: Member must be less than or equal to 11", &path),
        9743  +
                            path,
        9744  +
                        },
        9745  +
                        }
        9746  +
        }
        9747  +
    }
        9748  +
}
        9749  +
/// See [`MinRangeByte`](crate::model::MinRangeByte).
        9750  +
pub mod min_range_byte {
        9751  +
        9752  +
    #[derive(Debug, PartialEq)]
        9753  +
    pub enum ConstraintViolation {
        9754  +
        Range(i8),
        9755  +
    }
        9756  +
        9757  +
    impl ::std::fmt::Display for ConstraintViolation {
        9758  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        9759  +
            write!(f, "Value for `com.amazonaws.constraints#MinRangeByte`failed to satisfy constraint: Member must be greater than or equal to -10")
        9760  +
        }
        9761  +
    }
        9762  +
        9763  +
    impl ::std::error::Error for ConstraintViolation {}
        9764  +
    impl ConstraintViolation {
        9765  +
        pub(crate) fn as_validation_exception_field(
        9766  +
            self,
        9767  +
            path: ::std::string::String,
        9768  +
        ) -> crate::model::ValidationExceptionField {
        9769  +
            match self {
        9770  +
                            Self::Range(_) => crate::model::ValidationExceptionField {
        9771  +
                            message: format!("Value at '{}' failed to satisfy constraint: Member must be greater than or equal to -10", &path),
        9772  +
                            path,
        9773  +
                        },
        9774  +
                        }
        9775  +
        }
        9776  +
    }
        9777  +
}
        9778  +
/// See [`FixedValueLong`](crate::model::FixedValueLong).
        9779  +
pub mod fixed_value_long {
        9780  +
        9781  +
    #[derive(Debug, PartialEq)]
        9782  +
    pub enum ConstraintViolation {
        9783  +
        Range(i64),
        9784  +
    }
        9785  +
        9786  +
    impl ::std::fmt::Display for ConstraintViolation {
        9787  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        9788  +
            write!(f, "Value for `com.amazonaws.constraints#FixedValueLong`failed to satisfy constraint: Member must be between 10 and 10, inclusive")
        9789  +
        }
        9790  +
    }
        9791  +
        9792  +
    impl ::std::error::Error for ConstraintViolation {}
        9793  +
    impl ConstraintViolation {
        9794  +
        pub(crate) fn as_validation_exception_field(
        9795  +
            self,
        9796  +
            path: ::std::string::String,
        9797  +
        ) -> crate::model::ValidationExceptionField {
        9798  +
            match self {
        9799  +
                            Self::Range(_) => crate::model::ValidationExceptionField {
        9800  +
                            message: format!("Value at '{}' failed to satisfy constraint: Member must be between 10 and 10, inclusive", &path),
        9801  +
                            path,
        9802  +
                        },
        9803  +
                        }
        9804  +
        }
        9805  +
    }
        9806  +
}
        9807  +
/// See [`MaxRangeLong`](crate::model::MaxRangeLong).
        9808  +
pub mod max_range_long {
        9809  +
        9810  +
    #[derive(Debug, PartialEq)]
        9811  +
    pub enum ConstraintViolation {
        9812  +
        Range(i64),
        9813  +
    }
        9814  +
        9815  +
    impl ::std::fmt::Display for ConstraintViolation {
        9816  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        9817  +
            write!(f, "Value for `com.amazonaws.constraints#MaxRangeLong`failed to satisfy constraint: Member must be less than or equal to 11")
        9818  +
        }
        9819  +
    }
        9820  +
        9821  +
    impl ::std::error::Error for ConstraintViolation {}
        9822  +
    impl ConstraintViolation {
        9823  +
        pub(crate) fn as_validation_exception_field(
        9824  +
            self,
        9825  +
            path: ::std::string::String,
        9826  +
        ) -> crate::model::ValidationExceptionField {
        9827  +
            match self {
        9828  +
                            Self::Range(_) => crate::model::ValidationExceptionField {
        9829  +
                            message: format!("Value at '{}' failed to satisfy constraint: Member must be less than or equal to 11", &path),
        9830  +
                            path,
        9831  +
                        },
        9832  +
                        }
        9833  +
        }
        9834  +
    }
        9835  +
}
        9836  +
/// See [`MinRangeLong`](crate::model::MinRangeLong).
        9837  +
pub mod min_range_long {
        9838  +
        9839  +
    #[derive(Debug, PartialEq)]
        9840  +
    pub enum ConstraintViolation {
        9841  +
        Range(i64),
        9842  +
    }
        9843  +
        9844  +
    impl ::std::fmt::Display for ConstraintViolation {
        9845  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        9846  +
            write!(f, "Value for `com.amazonaws.constraints#MinRangeLong`failed to satisfy constraint: Member must be greater than or equal to -10")
        9847  +
        }
        9848  +
    }
        9849  +
        9850  +
    impl ::std::error::Error for ConstraintViolation {}
        9851  +
    impl ConstraintViolation {
        9852  +
        pub(crate) fn as_validation_exception_field(
        9853  +
            self,
        9854  +
            path: ::std::string::String,
        9855  +
        ) -> crate::model::ValidationExceptionField {
        9856  +
            match self {
        9857  +
                            Self::Range(_) => crate::model::ValidationExceptionField {
        9858  +
                            message: format!("Value at '{}' failed to satisfy constraint: Member must be greater than or equal to -10", &path),
        9859  +
                            path,
        9860  +
                        },
        9861  +
                        }
        9862  +
        }
        9863  +
    }
        9864  +
}
        9865  +
/// See [`FixedValueShort`](crate::model::FixedValueShort).
        9866  +
pub mod fixed_value_short {
        9867  +
        9868  +
    #[derive(Debug, PartialEq)]
        9869  +
    pub enum ConstraintViolation {
        9870  +
        Range(i16),
        9871  +
    }
        9872  +
        9873  +
    impl ::std::fmt::Display for ConstraintViolation {
        9874  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        9875  +
            write!(f, "Value for `com.amazonaws.constraints#FixedValueShort`failed to satisfy constraint: Member must be between 10 and 10, inclusive")
        9876  +
        }
        9877  +
    }
        9878  +
        9879  +
    impl ::std::error::Error for ConstraintViolation {}
        9880  +
    impl ConstraintViolation {
        9881  +
        pub(crate) fn as_validation_exception_field(
        9882  +
            self,
        9883  +
            path: ::std::string::String,
        9884  +
        ) -> crate::model::ValidationExceptionField {
        9885  +
            match self {
        9886  +
                            Self::Range(_) => crate::model::ValidationExceptionField {
        9887  +
                            message: format!("Value at '{}' failed to satisfy constraint: Member must be between 10 and 10, inclusive", &path),
        9888  +
                            path,
        9889  +
                        },
        9890  +
                        }
        9891  +
        }
        9892  +
    }
        9893  +
}
        9894  +
/// See [`MaxRangeShort`](crate::model::MaxRangeShort).
        9895  +
pub mod max_range_short {
        9896  +
        9897  +
    #[derive(Debug, PartialEq)]
        9898  +
    pub enum ConstraintViolation {
        9899  +
        Range(i16),
        9900  +
    }
        9901  +
        9902  +
    impl ::std::fmt::Display for ConstraintViolation {
        9903  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        9904  +
            write!(f, "Value for `com.amazonaws.constraints#MaxRangeShort`failed to satisfy constraint: Member must be less than or equal to 11")
        9905  +
        }
        9906  +
    }
        9907  +
        9908  +
    impl ::std::error::Error for ConstraintViolation {}
        9909  +
    impl ConstraintViolation {
        9910  +
        pub(crate) fn as_validation_exception_field(
        9911  +
            self,
        9912  +
            path: ::std::string::String,
        9913  +
        ) -> crate::model::ValidationExceptionField {
        9914  +
            match self {
        9915  +
                            Self::Range(_) => crate::model::ValidationExceptionField {
        9916  +
                            message: format!("Value at '{}' failed to satisfy constraint: Member must be less than or equal to 11", &path),
        9917  +
                            path,
        9918  +
                        },
        9919  +
                        }
        9920  +
        }
        9921  +
    }
        9922  +
}
        9923  +
/// See [`MinRangeShort`](crate::model::MinRangeShort).
        9924  +
pub mod min_range_short {
        9925  +
        9926  +
    #[derive(Debug, PartialEq)]
        9927  +
    pub enum ConstraintViolation {
        9928  +
        Range(i16),
        9929  +
    }
        9930  +
        9931  +
    impl ::std::fmt::Display for ConstraintViolation {
        9932  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        9933  +
            write!(f, "Value for `com.amazonaws.constraints#MinRangeShort`failed to satisfy constraint: Member must be greater than or equal to -10")
        9934  +
        }
        9935  +
    }
        9936  +
        9937  +
    impl ::std::error::Error for ConstraintViolation {}
        9938  +
    impl ConstraintViolation {
        9939  +
        pub(crate) fn as_validation_exception_field(
        9940  +
            self,
        9941  +
            path: ::std::string::String,
        9942  +
        ) -> crate::model::ValidationExceptionField {
        9943  +
            match self {
        9944  +
                            Self::Range(_) => crate::model::ValidationExceptionField {
        9945  +
                            message: format!("Value at '{}' failed to satisfy constraint: Member must be greater than or equal to -10", &path),
        9946  +
                            path,
        9947  +
                        },
        9948  +
                        }
        9949  +
        }
        9950  +
    }
        9951  +
}
        9952  +
/// See [`FixedValueInteger`](crate::model::FixedValueInteger).
        9953  +
pub mod fixed_value_integer {
        9954  +
        9955  +
    #[derive(Debug, PartialEq)]
        9956  +
    pub enum ConstraintViolation {
        9957  +
        Range(i32),
        9958  +
    }
        9959  +
        9960  +
    impl ::std::fmt::Display for ConstraintViolation {
        9961  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        9962  +
            write!(f, "Value for `com.amazonaws.constraints#FixedValueInteger`failed to satisfy constraint: Member must be between 69 and 69, inclusive")
        9963  +
        }
        9964  +
    }
        9965  +
        9966  +
    impl ::std::error::Error for ConstraintViolation {}
        9967  +
    impl ConstraintViolation {
        9968  +
        pub(crate) fn as_validation_exception_field(
        9969  +
            self,
        9970  +
            path: ::std::string::String,
        9971  +
        ) -> crate::model::ValidationExceptionField {
        9972  +
            match self {
        9973  +
                            Self::Range(_) => crate::model::ValidationExceptionField {
        9974  +
                            message: format!("Value at '{}' failed to satisfy constraint: Member must be between 69 and 69, inclusive", &path),
        9975  +
                            path,
        9976  +
                        },
        9977  +
                        }
        9978  +
        }
        9979  +
    }
        9980  +
}
        9981  +
/// See [`MaxRangeInteger`](crate::model::MaxRangeInteger).
        9982  +
pub mod max_range_integer {
        9983  +
        9984  +
    #[derive(Debug, PartialEq)]
        9985  +
    pub enum ConstraintViolation {
        9986  +
        Range(i32),
        9987  +
    }
        9988  +
        9989  +
    impl ::std::fmt::Display for ConstraintViolation {
        9990  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        9991  +
            write!(f, "Value for `com.amazonaws.constraints#MaxRangeInteger`failed to satisfy constraint: Member must be less than or equal to 69")
        9992  +
        }
        9993  +
    }
        9994  +
        9995  +
    impl ::std::error::Error for ConstraintViolation {}
        9996  +
    impl ConstraintViolation {
        9997  +
        pub(crate) fn as_validation_exception_field(
        9998  +
            self,
        9999  +
            path: ::std::string::String,
       10000  +
        ) -> crate::model::ValidationExceptionField {
       10001  +
            match self {
       10002  +
                            Self::Range(_) => crate::model::ValidationExceptionField {
       10003  +
                            message: format!("Value at '{}' failed to satisfy constraint: Member must be less than or equal to 69", &path),
       10004  +
                            path,
       10005  +
                        },
       10006  +
                        }
       10007  +
        }
       10008  +
    }
       10009  +
}
       10010  +
/// See [`MinRangeInteger`](crate::model::MinRangeInteger).
       10011  +
pub mod min_range_integer {
       10012  +
       10013  +
    #[derive(Debug, PartialEq)]
       10014  +
    pub enum ConstraintViolation {
       10015  +
        Range(i32),
       10016  +
    }
       10017  +
       10018  +
    impl ::std::fmt::Display for ConstraintViolation {
       10019  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
       10020  +
            write!(f, "Value for `com.amazonaws.constraints#MinRangeInteger`failed to satisfy constraint: Member must be greater than or equal to -10")
       10021  +
        }
       10022  +
    }
       10023  +
       10024  +
    impl ::std::error::Error for ConstraintViolation {}
       10025  +
    impl ConstraintViolation {
       10026  +
        pub(crate) fn as_validation_exception_field(
       10027  +
            self,
       10028  +
            path: ::std::string::String,
       10029  +
        ) -> crate::model::ValidationExceptionField {
       10030  +
            match self {
       10031  +
                            Self::Range(_) => crate::model::ValidationExceptionField {
       10032  +
                            message: format!("Value at '{}' failed to satisfy constraint: Member must be greater than or equal to -10", &path),
       10033  +
                            path,
       10034  +
                        },
       10035  +
                        }
       10036  +
        }
       10037  +
    }
       10038  +
}
       10039  +
/// See [`FixedLengthBlob`](crate::model::FixedLengthBlob).
       10040  +
pub mod fixed_length_blob {
       10041  +
       10042  +
    #[derive(Debug, PartialEq)]
       10043  +
    pub enum ConstraintViolation {
       10044  +
        /// Error when a blob doesn't satisfy its `@length` requirements.
       10045  +
        Length(usize),
       10046  +
    }
       10047  +
       10048  +
    impl ::std::fmt::Display for ConstraintViolation {
       10049  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
       10050  +
            let message = match self {
       10051  +
                Self::Length(length) => {
       10052  +
                    format!("Value with length {} provided for 'com.amazonaws.constraints#FixedLengthBlob' failed to satisfy constraint: Member must have length between 70 and 70, inclusive", length)
       10053  +
                }
       10054  +
            };
       10055  +
            write!(f, "{message}")
       10056  +
        }
       10057  +
    }
       10058  +
       10059  +
    impl ::std::error::Error for ConstraintViolation {}
       10060  +
    impl ConstraintViolation {
       10061  +
        pub(crate) fn as_validation_exception_field(
       10062  +
            self,
       10063  +
            path: ::std::string::String,
       10064  +
        ) -> crate::model::ValidationExceptionField {
       10065  +
            match self {
       10066  +
                            Self::Length(length) => crate::model::ValidationExceptionField {
       10067  +
                            message: format!("Value with length {} at '{}' failed to satisfy constraint: Member must have length between 70 and 70, inclusive", length, &path),
       10068  +
                            path,
       10069  +
                        },
       10070  +
                        }
       10071  +
        }
       10072  +
    }
       10073  +
}
       10074  +
/// See [`MaxLengthBlob`](crate::model::MaxLengthBlob).
       10075  +
pub mod max_length_blob {
       10076  +
       10077  +
    #[derive(Debug, PartialEq)]
       10078  +
    pub enum ConstraintViolation {
       10079  +
        /// Error when a blob doesn't satisfy its `@length` requirements.
       10080  +
        Length(usize),
       10081  +
    }
       10082  +
       10083  +
    impl ::std::fmt::Display for ConstraintViolation {
       10084  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
       10085  +
            let message = match self {
       10086  +
                Self::Length(length) => {
       10087  +
                    format!("Value with length {} provided for 'com.amazonaws.constraints#MaxLengthBlob' failed to satisfy constraint: Member must have length less than or equal to 70", length)
       10088  +
                }
       10089  +
            };
       10090  +
            write!(f, "{message}")
       10091  +
        }
       10092  +
    }
       10093  +
       10094  +
    impl ::std::error::Error for ConstraintViolation {}
       10095  +
    impl ConstraintViolation {
       10096  +
        pub(crate) fn as_validation_exception_field(
       10097  +
            self,
       10098  +
            path: ::std::string::String,
       10099  +
        ) -> crate::model::ValidationExceptionField {
       10100  +
            match self {
       10101  +
                            Self::Length(length) => crate::model::ValidationExceptionField {
       10102  +
                            message: format!("Value with length {} at '{}' failed to satisfy constraint: Member must have length less than or equal to 70", length, &path),
       10103  +
                            path,
       10104  +
                        },
       10105  +
                        }
       10106  +
        }
       10107  +
    }
       10108  +
}
       10109  +
/// See [`MinLengthBlob`](crate::model::MinLengthBlob).
       10110  +
pub mod min_length_blob {
       10111  +
       10112  +
    #[derive(Debug, PartialEq)]
       10113  +
    pub enum ConstraintViolation {
       10114  +
        /// Error when a blob doesn't satisfy its `@length` requirements.
       10115  +
        Length(usize),
       10116  +
    }
       10117  +
       10118  +
    impl ::std::fmt::Display for ConstraintViolation {
       10119  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
       10120  +
            let message = match self {
       10121  +
                Self::Length(length) => {
       10122  +
                    format!("Value with length {} provided for 'com.amazonaws.constraints#MinLengthBlob' failed to satisfy constraint: Member must have length greater than or equal to 2", length)
       10123  +
                }
       10124  +
            };
       10125  +
            write!(f, "{message}")
       10126  +
        }
       10127  +
    }
       10128  +
       10129  +
    impl ::std::error::Error for ConstraintViolation {}
       10130  +
    impl ConstraintViolation {
       10131  +
        pub(crate) fn as_validation_exception_field(
       10132  +
            self,
       10133  +
            path: ::std::string::String,
       10134  +
        ) -> crate::model::ValidationExceptionField {
       10135  +
            match self {
       10136  +
                            Self::Length(length) => crate::model::ValidationExceptionField {
       10137  +
                            message: format!("Value with length {} at '{}' failed to satisfy constraint: Member must have length greater than or equal to 2", length, &path),
       10138  +
                            path,
       10139  +
                        },
       10140  +
                        }
       10141  +
        }
       10142  +
    }
       10143  +
}
       10144  +
/// See [`FixedLengthString`](crate::model::FixedLengthString).
       10145  +
pub mod fixed_length_string {
       10146  +
       10147  +
    #[derive(Debug, PartialEq)]
       10148  +
    pub enum ConstraintViolation {
       10149  +
        /// Error when a string doesn't satisfy its `@length` requirements.
       10150  +
        Length(usize),
       10151  +
    }
       10152  +
       10153  +
    impl ::std::fmt::Display for ConstraintViolation {
       10154  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
       10155  +
            let message = match self {
       10156  +
                Self::Length(length) => {
       10157  +
                    format!("Value with length {} provided for 'com.amazonaws.constraints#FixedLengthString' failed to satisfy constraint: Member must have length between 69 and 69, inclusive", length)
       10158  +
                }
       10159  +
            };
       10160  +
            write!(f, "{message}")
       10161  +
        }
       10162  +
    }
       10163  +
       10164  +
    impl ::std::error::Error for ConstraintViolation {}
       10165  +
    impl ConstraintViolation {
       10166  +
        pub(crate) fn as_validation_exception_field(
       10167  +
            self,
       10168  +
            path: ::std::string::String,
       10169  +
        ) -> crate::model::ValidationExceptionField {
       10170  +
            match self {
       10171  +
                            Self::Length(length) => crate::model::ValidationExceptionField {
       10172  +
                            message: format!("Value with length {} at '{}' failed to satisfy constraint: Member must have length between 69 and 69, inclusive", length, &path),
       10173  +
                            path,
       10174  +
                        },
       10175  +
                        }
       10176  +
        }
       10177  +
    }
       10178  +
}
       10179  +
/// See [`MaxLengthString`](crate::model::MaxLengthString).
       10180  +
pub mod max_length_string {
       10181  +
       10182  +
    #[derive(Debug, PartialEq)]
       10183  +
    pub enum ConstraintViolation {
       10184  +
        /// Error when a string doesn't satisfy its `@length` requirements.
       10185  +
        Length(usize),
       10186  +
    }
       10187  +
       10188  +
    impl ::std::fmt::Display for ConstraintViolation {
       10189  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
       10190  +
            let message = match self {
       10191  +
                Self::Length(length) => {
       10192  +
                    format!("Value with length {} provided for 'com.amazonaws.constraints#MaxLengthString' failed to satisfy constraint: Member must have length less than or equal to 69", length)
       10193  +
                }
       10194  +
            };
       10195  +
            write!(f, "{message}")
       10196  +
        }
       10197  +
    }
       10198  +
       10199  +
    impl ::std::error::Error for ConstraintViolation {}
       10200  +
    impl ConstraintViolation {
       10201  +
        pub(crate) fn as_validation_exception_field(
       10202  +
            self,
       10203  +
            path: ::std::string::String,
       10204  +
        ) -> crate::model::ValidationExceptionField {
       10205  +
            match self {
       10206  +
                            Self::Length(length) => crate::model::ValidationExceptionField {
       10207  +
                            message: format!("Value with length {} at '{}' failed to satisfy constraint: Member must have length less than or equal to 69", length, &path),
       10208  +
                            path,
       10209  +
                        },
       10210  +
                        }
       10211  +
        }
       10212  +
    }
       10213  +
}
       10214  +
/// See [`MinLengthString`](crate::model::MinLengthString).
       10215  +
pub mod min_length_string {
       10216  +
       10217  +
    #[derive(Debug, PartialEq)]
       10218  +
    pub enum ConstraintViolation {
       10219  +
        /// Error when a string doesn't satisfy its `@length` requirements.
       10220  +
        Length(usize),
       10221  +
    }
       10222  +
       10223  +
    impl ::std::fmt::Display for ConstraintViolation {
       10224  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
       10225  +
            let message = match self {
       10226  +
                Self::Length(length) => {
       10227  +
                    format!("Value with length {} provided for 'com.amazonaws.constraints#MinLengthString' failed to satisfy constraint: Member must have length greater than or equal to 2", length)
       10228  +
                }
       10229  +
            };
       10230  +
            write!(f, "{message}")
       10231  +
        }
       10232  +
    }
       10233  +
       10234  +
    impl ::std::error::Error for ConstraintViolation {}
       10235  +
    impl ConstraintViolation {
       10236  +
        pub(crate) fn as_validation_exception_field(
       10237  +
            self,
       10238  +
            path: ::std::string::String,
       10239  +
        ) -> crate::model::ValidationExceptionField {
       10240  +
            match self {
       10241  +
                            Self::Length(length) => crate::model::ValidationExceptionField {
       10242  +
                            message: format!("Value with length {} at '{}' failed to satisfy constraint: Member must have length greater than or equal to 2", length, &path),
       10243  +
                            path,
       10244  +
                        },
       10245  +
                        }
       10246  +
        }
       10247  +
    }
       10248  +
}
       10249  +
/// See [`TransitivelyConstrainedStructureInOutput`](crate::model::TransitivelyConstrainedStructureInOutput).
       10250  +
pub mod transitively_constrained_structure_in_output {
       10251  +
       10252  +
    impl ::std::convert::From<Builder> for crate::model::TransitivelyConstrainedStructureInOutput {
       10253  +
        fn from(builder: Builder) -> Self {
       10254  +
            builder.build()
       10255  +
        }
       10256  +
    }
       10257  +
    /// A builder for [`TransitivelyConstrainedStructureInOutput`](crate::model::TransitivelyConstrainedStructureInOutput).
       10258  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
       10259  +
    pub struct Builder {
       10260  +
        pub(crate) length_string: ::std::option::Option<crate::model::LengthString>,
       10261  +
    }
       10262  +
    impl Builder {
       10263  +
        #[allow(missing_docs)] // documentation missing in model
       10264  +
        pub fn length_string(
       10265  +
            mut self,
       10266  +
            input: ::std::option::Option<crate::model::LengthString>,
       10267  +
        ) -> Self {
       10268  +
            self.length_string = input;
       10269  +
            self
       10270  +
        }
       10271  +
        /// Consumes the builder and constructs a [`TransitivelyConstrainedStructureInOutput`](crate::model::TransitivelyConstrainedStructureInOutput).
       10272  +
        pub fn build(self) -> crate::model::TransitivelyConstrainedStructureInOutput {
       10273  +
            self.build_enforcing_all_constraints()
       10274  +
        }
       10275  +
        fn build_enforcing_all_constraints(
       10276  +
            self,
       10277  +
        ) -> crate::model::TransitivelyConstrainedStructureInOutput {
       10278  +
            crate::model::TransitivelyConstrainedStructureInOutput {
       10279  +
                length_string: self.length_string,
       10280  +
            }
       10281  +
        }
       10282  +
    }
       10283  +
}
       10284  +
/// See [`ConstrainedMapInOutput`](crate::model::ConstrainedMapInOutput).
       10285  +
pub mod constrained_map_in_output {
       10286  +
       10287  +
    #[allow(clippy::enum_variant_names)]
       10288  +
    #[derive(Debug, PartialEq)]
       10289  +
    pub enum ConstraintViolation {
       10290  +
        Length(usize),
       10291  +
    }
       10292  +
       10293  +
    impl ::std::fmt::Display for ConstraintViolation {
       10294  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
       10295  +
            match self {
       10296  +
                Self::Length(length) => {
       10297  +
                    write!(f, "Value with length {} provided for 'com.amazonaws.constraints#ConstrainedMapInOutput' failed to satisfy constraint: Member must have length greater than or equal to 69", length)
       10298  +
                }
       10299  +
            }
       10300  +
        }
       10301  +
    }
       10302  +
       10303  +
    impl ::std::error::Error for ConstraintViolation {}
       10304  +
}
       10305  +
/// See [`ConstrainedListInOutput`](crate::model::ConstrainedListInOutput).
       10306  +
pub mod constrained_list_in_output {
       10307  +
       10308  +
    #[allow(clippy::enum_variant_names)]
       10309  +
    #[derive(Debug, PartialEq)]
       10310  +
    pub enum ConstraintViolation {
       10311  +
        /// Constraint violation error when the list doesn't have the required length
       10312  +
        Length(usize),
       10313  +
    }
       10314  +
       10315  +
    impl ::std::fmt::Display for ConstraintViolation {
       10316  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
       10317  +
            let message = match self {
       10318  +
                Self::Length(length) => {
       10319  +
                    format!("Value with length {} provided for 'com.amazonaws.constraints#ConstrainedListInOutput' failed to satisfy constraint: Member must have length greater than or equal to 69", length)
       10320  +
                }
       10321  +
            };
       10322  +
            write!(f, "{message}")
       10323  +
        }
       10324  +
    }
       10325  +
       10326  +
    impl ::std::error::Error for ConstraintViolation {}
       10327  +
}