Server Test

Server Test

rev. d06a46cae0f385cdae37a9f8264db3469a090ab5 (ignoring whitespace)

Files changed:

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

@@ -0,1 +0,157 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
#[non_exhaustive]
           3  +
#[derive(Debug)]
           4  +
pub struct EventErrorMarshaller;
           5  +
           6  +
impl EventErrorMarshaller {
           7  +
    pub fn new() -> Self {
           8  +
        EventErrorMarshaller
           9  +
    }
          10  +
}
          11  +
impl ::aws_smithy_eventstream::frame::MarshallMessage for EventErrorMarshaller {
          12  +
    type Input = crate::error::EventError;
          13  +
    fn marshall(
          14  +
        &self,
          15  +
        _input: Self::Input,
          16  +
    ) -> std::result::Result<
          17  +
        ::aws_smithy_types::event_stream::Message,
          18  +
        ::aws_smithy_eventstream::error::Error,
          19  +
    > {
          20  +
        let mut headers = Vec::new();
          21  +
        headers.push(::aws_smithy_types::event_stream::Header::new(
          22  +
            ":message-type",
          23  +
            ::aws_smithy_types::event_stream::HeaderValue::String("exception".into()),
          24  +
        ));
          25  +
        let payload = match _input {
          26  +
            crate::error::EventError::EventStreamErrorMessage(inner) => {
          27  +
                headers.push(::aws_smithy_types::event_stream::Header::new(
          28  +
                    ":exception-type",
          29  +
                    ::aws_smithy_types::event_stream::HeaderValue::String("errorMessage".into()),
          30  +
                ));
          31  +
                headers.push(::aws_smithy_types::event_stream::Header::new(
          32  +
                    ":content-type",
          33  +
                    ::aws_smithy_types::event_stream::HeaderValue::String(
          34  +
                        "application/json".into(),
          35  +
                    ),
          36  +
                ));
          37  +
                crate::protocol_serde::shape_event_stream_error_message::ser_event_stream_error_message_error(&inner)
          38  +
                                            .map_err(|err| ::aws_smithy_eventstream::error::Error::marshalling(format!("{err}")))?
          39  +
            }
          40  +
        };
          41  +
        Ok(::aws_smithy_types::event_stream::Message::new_from_parts(
          42  +
            headers, payload,
          43  +
        ))
          44  +
    }
          45  +
}
          46  +
          47  +
#[non_exhaustive]
          48  +
#[derive(Debug)]
          49  +
pub struct EventMarshaller;
          50  +
          51  +
impl EventMarshaller {
          52  +
    pub fn new() -> Self {
          53  +
        EventMarshaller
          54  +
    }
          55  +
}
          56  +
impl ::aws_smithy_eventstream::frame::MarshallMessage for EventMarshaller {
          57  +
    type Input = crate::model::Event;
          58  +
    fn marshall(
          59  +
        &self,
          60  +
        input: Self::Input,
          61  +
    ) -> std::result::Result<
          62  +
        ::aws_smithy_types::event_stream::Message,
          63  +
        ::aws_smithy_eventstream::error::Error,
          64  +
    > {
          65  +
        let mut headers = Vec::new();
          66  +
        headers.push(::aws_smithy_types::event_stream::Header::new(
          67  +
            ":message-type",
          68  +
            ::aws_smithy_types::event_stream::HeaderValue::String("event".into()),
          69  +
        ));
          70  +
        let payload = match input {
          71  +
            Self::Input::RegularMessage(inner) => {
          72  +
                headers.push(::aws_smithy_types::event_stream::Header::new(
          73  +
                    ":event-type",
          74  +
                    ::aws_smithy_types::event_stream::HeaderValue::String("regularMessage".into()),
          75  +
                ));
          76  +
                headers.push(::aws_smithy_types::event_stream::Header::new(
          77  +
                    ":content-type",
          78  +
                    ::aws_smithy_types::event_stream::HeaderValue::String(
          79  +
                        "application/json".into(),
          80  +
                    ),
          81  +
                ));
          82  +
                crate::protocol_serde::shape_event::ser_regular_message_payload(&inner).map_err(
          83  +
                    |err| ::aws_smithy_eventstream::error::Error::marshalling(format!("{err}")),
          84  +
                )?
          85  +
            }
          86  +
        };
          87  +
        Ok(::aws_smithy_types::event_stream::Message::new_from_parts(
          88  +
            headers, payload,
          89  +
        ))
          90  +
    }
          91  +
}
          92  +
          93  +
#[non_exhaustive]
          94  +
#[derive(Debug)]
          95  +
pub struct EventUnmarshaller;
          96  +
          97  +
impl EventUnmarshaller {
          98  +
    pub fn new() -> Self {
          99  +
        EventUnmarshaller
         100  +
    }
         101  +
}
         102  +
impl ::aws_smithy_eventstream::frame::UnmarshallMessage for EventUnmarshaller {
         103  +
    type Output = crate::model::Event;
         104  +
    type Error = crate::error::EventError;
         105  +
    fn unmarshall(
         106  +
        &self,
         107  +
        message: &::aws_smithy_types::event_stream::Message,
         108  +
    ) -> std::result::Result<
         109  +
        ::aws_smithy_eventstream::frame::UnmarshalledMessage<Self::Output, Self::Error>,
         110  +
        ::aws_smithy_eventstream::error::Error,
         111  +
    > {
         112  +
        let response_headers = ::aws_smithy_eventstream::smithy::parse_response_headers(message)?;
         113  +
        match response_headers.message_type.as_str() {
         114  +
            "event" => match response_headers.smithy_type.as_str() {
         115  +
                "regularMessage" => {
         116  +
                    let parsed =
         117  +
                            crate::protocol_serde::shape_event_stream_regular_message::de_event_stream_regular_message_payload(&message.payload()[..])
         118  +
                                            .map_err(|err| {
         119  +
                                                ::aws_smithy_eventstream::error::Error::unmarshalling(format!("failed to unmarshall RegularMessage: {err}"))
         120  +
                                            })?
         121  +
                        ;
         122  +
                    Ok(::aws_smithy_eventstream::frame::UnmarshalledMessage::Event(
         123  +
                        crate::model::Event::RegularMessage(parsed),
         124  +
                    ))
         125  +
                }
         126  +
                _unknown_variant => {
         127  +
                    return Err(::aws_smithy_eventstream::error::Error::unmarshalling(
         128  +
                        format!("unrecognized :event-type: {_unknown_variant}"),
         129  +
                    ));
         130  +
                }
         131  +
            },
         132  +
            "exception" => {
         133  +
                if response_headers.smithy_type.as_str() == "errorMessage" {
         134  +
                    let mut builder = crate::error::event_stream_error_message::Builder::default();
         135  +
                    builder = crate::protocol_serde::shape_event_stream_error_message::de_event_stream_error_message_json_err(&message.payload()[..], builder)
         136  +
                                                            .map_err(|err| {
         137  +
                                                                ::aws_smithy_eventstream::error::Error::unmarshalling(format!("failed to unmarshall errorMessage: {err}"))
         138  +
                                                            })?;
         139  +
                    return Ok(::aws_smithy_eventstream::frame::UnmarshalledMessage::Error(
         140  +
                        crate::error::EventError::EventStreamErrorMessage(builder.build()),
         141  +
                    ));
         142  +
                }
         143  +
                return Err(aws_smithy_eventstream::error::Error::unmarshalling(
         144  +
                    format!(
         145  +
                        "unrecognized exception: {}",
         146  +
                        response_headers.smithy_type.as_str()
         147  +
                    ),
         148  +
                ));
         149  +
            }
         150  +
            value => {
         151  +
                return Err(::aws_smithy_eventstream::error::Error::unmarshalling(
         152  +
                    format!("unrecognized :message-type: {value}"),
         153  +
                ));
         154  +
            }
         155  +
        }
         156  +
    }
         157  +
}

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

@@ -0,1 +0,4707 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
#[allow(missing_docs)] // documentation missing in model
           3  +
#[derive(::std::fmt::Debug)]
           4  +
pub struct EventStreamsOperationInput {
           5  +
    #[allow(missing_docs)] // documentation missing in model
           6  +
    pub events: ::aws_smithy_legacy_http::event_stream::Receiver<
           7  +
        crate::model::Event,
           8  +
        crate::error::EventError,
           9  +
    >,
          10  +
}
          11  +
impl EventStreamsOperationInput {
          12  +
    #[allow(missing_docs)] // documentation missing in model
          13  +
    pub fn events(
          14  +
        &self,
          15  +
    ) -> &::aws_smithy_legacy_http::event_stream::Receiver<
          16  +
        crate::model::Event,
          17  +
        crate::error::EventError,
          18  +
    > {
          19  +
        &self.events
          20  +
    }
          21  +
}
          22  +
impl EventStreamsOperationInput {
          23  +
    /// Creates a new builder-style object to manufacture [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
          24  +
    pub fn builder() -> crate::input::event_streams_operation_input::Builder {
          25  +
        crate::input::event_streams_operation_input::Builder::default()
          26  +
    }
          27  +
}
          28  +
impl crate::constrained::Constrained for crate::input::EventStreamsOperationInput {
          29  +
    type Unconstrained = crate::input::event_streams_operation_input::Builder;
          30  +
}
          31  +
          32  +
#[allow(missing_docs)] // documentation missing in model
          33  +
#[derive(::std::fmt::Debug)]
          34  +
pub struct StreamingBlobOperationInput {
          35  +
    #[allow(missing_docs)] // documentation missing in model
          36  +
    pub streaming_blob: ::aws_smithy_types::byte_stream::ByteStream,
          37  +
}
          38  +
impl StreamingBlobOperationInput {
          39  +
    #[allow(missing_docs)] // documentation missing in model
          40  +
    pub fn streaming_blob(&self) -> &::aws_smithy_types::byte_stream::ByteStream {
          41  +
        &self.streaming_blob
          42  +
    }
          43  +
}
          44  +
impl StreamingBlobOperationInput {
          45  +
    /// Creates a new builder-style object to manufacture [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
          46  +
    pub fn builder() -> crate::input::streaming_blob_operation_input::Builder {
          47  +
        crate::input::streaming_blob_operation_input::Builder::default()
          48  +
    }
          49  +
}
          50  +
impl crate::constrained::Constrained for crate::input::StreamingBlobOperationInput {
          51  +
    type Unconstrained = crate::input::streaming_blob_operation_input::Builder;
          52  +
}
          53  +
          54  +
#[allow(missing_docs)] // documentation missing in model
          55  +
#[derive(
          56  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
          57  +
)]
          58  +
pub struct NonStreamingBlobOperationInput {
          59  +
    #[allow(missing_docs)] // documentation missing in model
          60  +
    pub non_streaming_blob: ::std::option::Option<::aws_smithy_types::Blob>,
          61  +
}
          62  +
impl NonStreamingBlobOperationInput {
          63  +
    #[allow(missing_docs)] // documentation missing in model
          64  +
    pub fn non_streaming_blob(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
          65  +
        self.non_streaming_blob.as_ref()
          66  +
    }
          67  +
}
          68  +
impl NonStreamingBlobOperationInput {
          69  +
    /// Creates a new builder-style object to manufacture [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
          70  +
    pub fn builder() -> crate::input::non_streaming_blob_operation_input::Builder {
          71  +
        crate::input::non_streaming_blob_operation_input::Builder::default()
          72  +
    }
          73  +
}
          74  +
impl crate::constrained::Constrained for crate::input::NonStreamingBlobOperationInput {
          75  +
    type Unconstrained = crate::input::non_streaming_blob_operation_input::Builder;
          76  +
}
          77  +
          78  +
#[allow(missing_docs)] // documentation missing in model
          79  +
#[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
          80  +
pub struct QueryParamsTargetingMapOfEnumStringOperationInput {
          81  +
    #[allow(missing_docs)] // documentation missing in model
          82  +
    pub map_of_enum_string: ::std::option::Option<
          83  +
        ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
          84  +
    >,
          85  +
}
          86  +
impl QueryParamsTargetingMapOfEnumStringOperationInput {
          87  +
    #[allow(missing_docs)] // documentation missing in model
          88  +
    pub fn map_of_enum_string(
          89  +
        &self,
          90  +
    ) -> ::std::option::Option<
          91  +
        &::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
          92  +
    > {
          93  +
        self.map_of_enum_string.as_ref()
          94  +
    }
          95  +
}
          96  +
impl QueryParamsTargetingMapOfEnumStringOperationInput {
          97  +
    /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
          98  +
    pub fn builder(
          99  +
    ) -> crate::input::query_params_targeting_map_of_enum_string_operation_input::Builder {
         100  +
        crate::input::query_params_targeting_map_of_enum_string_operation_input::Builder::default()
         101  +
    }
         102  +
}
         103  +
impl crate::constrained::Constrained
         104  +
    for crate::input::QueryParamsTargetingMapOfEnumStringOperationInput
         105  +
{
         106  +
    type Unconstrained =
         107  +
        crate::input::query_params_targeting_map_of_enum_string_operation_input::Builder;
         108  +
}
         109  +
         110  +
#[allow(missing_docs)] // documentation missing in model
         111  +
#[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
         112  +
pub struct HttpPrefixHeadersTargetingLengthMapOperationInput {
         113  +
    #[allow(missing_docs)] // documentation missing in model
         114  +
    pub length_map: ::std::option::Option<crate::model::ConBMap>,
         115  +
}
         116  +
impl HttpPrefixHeadersTargetingLengthMapOperationInput {
         117  +
    #[allow(missing_docs)] // documentation missing in model
         118  +
    pub fn length_map(&self) -> ::std::option::Option<&crate::model::ConBMap> {
         119  +
        self.length_map.as_ref()
         120  +
    }
         121  +
}
         122  +
impl HttpPrefixHeadersTargetingLengthMapOperationInput {
         123  +
    /// Creates a new builder-style object to manufacture [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
         124  +
    pub fn builder(
         125  +
    ) -> crate::input::http_prefix_headers_targeting_length_map_operation_input::Builder {
         126  +
        crate::input::http_prefix_headers_targeting_length_map_operation_input::Builder::default()
         127  +
    }
         128  +
}
         129  +
impl crate::constrained::Constrained
         130  +
    for crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput
         131  +
{
         132  +
    type Unconstrained =
         133  +
        crate::input::http_prefix_headers_targeting_length_map_operation_input::Builder;
         134  +
}
         135  +
         136  +
#[allow(missing_docs)] // documentation missing in model
         137  +
#[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
         138  +
pub struct QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
         139  +
    #[allow(missing_docs)] // documentation missing in model
         140  +
    pub map_of_length_pattern_string: ::std::option::Option<
         141  +
        ::std::collections::HashMap<
         142  +
            crate::model::LengthPatternString,
         143  +
            ::std::vec::Vec<crate::model::LengthPatternString>,
         144  +
        >,
         145  +
    >,
         146  +
}
         147  +
impl QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
         148  +
    #[allow(missing_docs)] // documentation missing in model
         149  +
    pub fn map_of_length_pattern_string(
         150  +
        &self,
         151  +
    ) -> ::std::option::Option<
         152  +
        &::std::collections::HashMap<
         153  +
            crate::model::LengthPatternString,
         154  +
            ::std::vec::Vec<crate::model::LengthPatternString>,
         155  +
        >,
         156  +
    > {
         157  +
        self.map_of_length_pattern_string.as_ref()
         158  +
    }
         159  +
}
         160  +
impl QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
         161  +
    /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
         162  +
    pub fn builder() -> crate::input::query_params_targeting_map_of_list_of_length_pattern_string_operation_input::Builder{
         163  +
        crate::input::query_params_targeting_map_of_list_of_length_pattern_string_operation_input::Builder::default()
         164  +
    }
         165  +
}
         166  +
impl crate::constrained::Constrained
         167  +
    for crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
         168  +
{
         169  +
    type Unconstrained = crate::input::query_params_targeting_map_of_list_of_length_pattern_string_operation_input::Builder;
         170  +
}
         171  +
         172  +
#[allow(missing_docs)] // documentation missing in model
         173  +
#[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
         174  +
pub struct QueryParamsTargetingMapOfLengthPatternStringOperationInput {
         175  +
    #[allow(missing_docs)] // documentation missing in model
         176  +
    pub map_of_length_pattern_string: ::std::option::Option<
         177  +
        ::std::collections::HashMap<
         178  +
            crate::model::LengthPatternString,
         179  +
            crate::model::LengthPatternString,
         180  +
        >,
         181  +
    >,
         182  +
}
         183  +
impl QueryParamsTargetingMapOfLengthPatternStringOperationInput {
         184  +
    #[allow(missing_docs)] // documentation missing in model
         185  +
    pub fn map_of_length_pattern_string(
         186  +
        &self,
         187  +
    ) -> ::std::option::Option<
         188  +
        &::std::collections::HashMap<
         189  +
            crate::model::LengthPatternString,
         190  +
            crate::model::LengthPatternString,
         191  +
        >,
         192  +
    > {
         193  +
        self.map_of_length_pattern_string.as_ref()
         194  +
    }
         195  +
}
         196  +
impl QueryParamsTargetingMapOfLengthPatternStringOperationInput {
         197  +
    /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
         198  +
    pub fn builder(
         199  +
    ) -> crate::input::query_params_targeting_map_of_length_pattern_string_operation_input::Builder
         200  +
    {
         201  +
        crate::input::query_params_targeting_map_of_length_pattern_string_operation_input::Builder::default()
         202  +
    }
         203  +
}
         204  +
impl crate::constrained::Constrained
         205  +
    for crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput
         206  +
{
         207  +
    type Unconstrained =
         208  +
        crate::input::query_params_targeting_map_of_length_pattern_string_operation_input::Builder;
         209  +
}
         210  +
         211  +
#[allow(missing_docs)] // documentation missing in model
         212  +
#[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
         213  +
pub struct QueryParamsTargetingMapOfListOfPatternStringOperationInput {
         214  +
    #[allow(missing_docs)] // documentation missing in model
         215  +
    pub map_of_list_of_pattern_string: ::std::option::Option<
         216  +
        ::std::collections::HashMap<
         217  +
            crate::model::PatternString,
         218  +
            ::std::vec::Vec<crate::model::PatternString>,
         219  +
        >,
         220  +
    >,
         221  +
}
         222  +
impl QueryParamsTargetingMapOfListOfPatternStringOperationInput {
         223  +
    #[allow(missing_docs)] // documentation missing in model
         224  +
    pub fn map_of_list_of_pattern_string(
         225  +
        &self,
         226  +
    ) -> ::std::option::Option<
         227  +
        &::std::collections::HashMap<
         228  +
            crate::model::PatternString,
         229  +
            ::std::vec::Vec<crate::model::PatternString>,
         230  +
        >,
         231  +
    > {
         232  +
        self.map_of_list_of_pattern_string.as_ref()
         233  +
    }
         234  +
}
         235  +
impl QueryParamsTargetingMapOfListOfPatternStringOperationInput {
         236  +
    /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
         237  +
    pub fn builder(
         238  +
    ) -> crate::input::query_params_targeting_map_of_list_of_pattern_string_operation_input::Builder
         239  +
    {
         240  +
        crate::input::query_params_targeting_map_of_list_of_pattern_string_operation_input::Builder::default()
         241  +
    }
         242  +
}
         243  +
impl crate::constrained::Constrained
         244  +
    for crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput
         245  +
{
         246  +
    type Unconstrained =
         247  +
        crate::input::query_params_targeting_map_of_list_of_pattern_string_operation_input::Builder;
         248  +
}
         249  +
         250  +
#[allow(missing_docs)] // documentation missing in model
         251  +
#[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
         252  +
pub struct QueryParamsTargetingMapOfPatternStringOperationInput {
         253  +
    #[allow(missing_docs)] // documentation missing in model
         254  +
    pub map_of_pattern_string: ::std::option::Option<
         255  +
        ::std::collections::HashMap<crate::model::PatternString, crate::model::PatternString>,
         256  +
    >,
         257  +
}
         258  +
impl QueryParamsTargetingMapOfPatternStringOperationInput {
         259  +
    #[allow(missing_docs)] // documentation missing in model
         260  +
    pub fn map_of_pattern_string(
         261  +
        &self,
         262  +
    ) -> ::std::option::Option<
         263  +
        &::std::collections::HashMap<crate::model::PatternString, crate::model::PatternString>,
         264  +
    > {
         265  +
        self.map_of_pattern_string.as_ref()
         266  +
    }
         267  +
}
         268  +
impl QueryParamsTargetingMapOfPatternStringOperationInput {
         269  +
    /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
         270  +
    pub fn builder(
         271  +
    ) -> crate::input::query_params_targeting_map_of_pattern_string_operation_input::Builder {
         272  +
        crate::input::query_params_targeting_map_of_pattern_string_operation_input::Builder::default(
         273  +
        )
         274  +
    }
         275  +
}
         276  +
impl crate::constrained::Constrained
         277  +
    for crate::input::QueryParamsTargetingMapOfPatternStringOperationInput
         278  +
{
         279  +
    type Unconstrained =
         280  +
        crate::input::query_params_targeting_map_of_pattern_string_operation_input::Builder;
         281  +
}
         282  +
         283  +
#[allow(missing_docs)] // documentation missing in model
         284  +
#[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
         285  +
pub struct QueryParamsTargetingMapOfListOfEnumStringOperationInput {
         286  +
    #[allow(missing_docs)] // documentation missing in model
         287  +
    pub map_of_list_of_enum_string: ::std::option::Option<
         288  +
        ::std::collections::HashMap<
         289  +
            crate::model::EnumString,
         290  +
            ::std::vec::Vec<crate::model::EnumString>,
         291  +
        >,
         292  +
    >,
         293  +
}
         294  +
impl QueryParamsTargetingMapOfListOfEnumStringOperationInput {
         295  +
    #[allow(missing_docs)] // documentation missing in model
         296  +
    pub fn map_of_list_of_enum_string(
         297  +
        &self,
         298  +
    ) -> ::std::option::Option<
         299  +
        &::std::collections::HashMap<
         300  +
            crate::model::EnumString,
         301  +
            ::std::vec::Vec<crate::model::EnumString>,
         302  +
        >,
         303  +
    > {
         304  +
        self.map_of_list_of_enum_string.as_ref()
         305  +
    }
         306  +
}
         307  +
impl QueryParamsTargetingMapOfListOfEnumStringOperationInput {
         308  +
    /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
         309  +
    pub fn builder(
         310  +
    ) -> crate::input::query_params_targeting_map_of_list_of_enum_string_operation_input::Builder
         311  +
    {
         312  +
        crate::input::query_params_targeting_map_of_list_of_enum_string_operation_input::Builder::default()
         313  +
    }
         314  +
}
         315  +
impl crate::constrained::Constrained
         316  +
    for crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput
         317  +
{
         318  +
    type Unconstrained =
         319  +
        crate::input::query_params_targeting_map_of_list_of_enum_string_operation_input::Builder;
         320  +
}
         321  +
         322  +
#[allow(missing_docs)] // documentation missing in model
         323  +
#[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
         324  +
pub struct QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
         325  +
    #[allow(missing_docs)] // documentation missing in model
         326  +
    pub map_of_length_list_of_pattern_string: ::std::option::Option<
         327  +
        ::std::collections::HashMap<
         328  +
            crate::model::PatternString,
         329  +
            crate::model::LengthListOfPatternString,
         330  +
        >,
         331  +
    >,
         332  +
}
         333  +
impl QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
         334  +
    #[allow(missing_docs)] // documentation missing in model
         335  +
    pub fn map_of_length_list_of_pattern_string(
         336  +
        &self,
         337  +
    ) -> ::std::option::Option<
         338  +
        &::std::collections::HashMap<
         339  +
            crate::model::PatternString,
         340  +
            crate::model::LengthListOfPatternString,
         341  +
        >,
         342  +
    > {
         343  +
        self.map_of_length_list_of_pattern_string.as_ref()
         344  +
    }
         345  +
}
         346  +
impl QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
         347  +
    /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
         348  +
    pub fn builder() -> crate::input::query_params_targeting_map_of_length_list_of_pattern_string_operation_input::Builder{
         349  +
        crate::input::query_params_targeting_map_of_length_list_of_pattern_string_operation_input::Builder::default()
         350  +
    }
         351  +
}
         352  +
impl crate::constrained::Constrained
         353  +
    for crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
         354  +
{
         355  +
    type Unconstrained = crate::input::query_params_targeting_map_of_length_list_of_pattern_string_operation_input::Builder;
         356  +
}
         357  +
         358  +
#[allow(missing_docs)] // documentation missing in model
         359  +
#[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
         360  +
pub struct QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
         361  +
    #[allow(missing_docs)] // documentation missing in model
         362  +
    pub map_of_set_of_length_string: ::std::option::Option<
         363  +
        ::std::collections::HashMap<crate::model::LengthString, crate::model::SetOfLengthString>,
         364  +
    >,
         365  +
}
         366  +
impl QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
         367  +
    #[allow(missing_docs)] // documentation missing in model
         368  +
    pub fn map_of_set_of_length_string(
         369  +
        &self,
         370  +
    ) -> ::std::option::Option<
         371  +
        &::std::collections::HashMap<crate::model::LengthString, crate::model::SetOfLengthString>,
         372  +
    > {
         373  +
        self.map_of_set_of_length_string.as_ref()
         374  +
    }
         375  +
}
         376  +
impl QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
         377  +
    /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
         378  +
    pub fn builder(
         379  +
    ) -> crate::input::query_params_targeting_map_of_set_of_length_string_operation_input::Builder
         380  +
    {
         381  +
        crate::input::query_params_targeting_map_of_set_of_length_string_operation_input::Builder::default()
         382  +
    }
         383  +
}
         384  +
impl crate::constrained::Constrained
         385  +
    for crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput
         386  +
{
         387  +
    type Unconstrained =
         388  +
        crate::input::query_params_targeting_map_of_set_of_length_string_operation_input::Builder;
         389  +
}
         390  +
         391  +
#[allow(missing_docs)] // documentation missing in model
         392  +
#[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
         393  +
pub struct QueryParamsTargetingMapOfListOfLengthStringOperationInput {
         394  +
    #[allow(missing_docs)] // documentation missing in model
         395  +
    pub map_of_list_of_length_string: ::std::option::Option<
         396  +
        ::std::collections::HashMap<
         397  +
            crate::model::LengthString,
         398  +
            ::std::vec::Vec<crate::model::LengthString>,
         399  +
        >,
         400  +
    >,
         401  +
}
         402  +
impl QueryParamsTargetingMapOfListOfLengthStringOperationInput {
         403  +
    #[allow(missing_docs)] // documentation missing in model
         404  +
    pub fn map_of_list_of_length_string(
         405  +
        &self,
         406  +
    ) -> ::std::option::Option<
         407  +
        &::std::collections::HashMap<
         408  +
            crate::model::LengthString,
         409  +
            ::std::vec::Vec<crate::model::LengthString>,
         410  +
        >,
         411  +
    > {
         412  +
        self.map_of_list_of_length_string.as_ref()
         413  +
    }
         414  +
}
         415  +
impl QueryParamsTargetingMapOfListOfLengthStringOperationInput {
         416  +
    /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
         417  +
    pub fn builder(
         418  +
    ) -> crate::input::query_params_targeting_map_of_list_of_length_string_operation_input::Builder
         419  +
    {
         420  +
        crate::input::query_params_targeting_map_of_list_of_length_string_operation_input::Builder::default()
         421  +
    }
         422  +
}
         423  +
impl crate::constrained::Constrained
         424  +
    for crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput
         425  +
{
         426  +
    type Unconstrained =
         427  +
        crate::input::query_params_targeting_map_of_list_of_length_string_operation_input::Builder;
         428  +
}
         429  +
         430  +
#[allow(missing_docs)] // documentation missing in model
         431  +
#[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
         432  +
pub struct QueryParamsTargetingMapOfLengthStringOperationInput {
         433  +
    #[allow(missing_docs)] // documentation missing in model
         434  +
    pub map_of_length_string: ::std::option::Option<
         435  +
        ::std::collections::HashMap<crate::model::LengthString, crate::model::LengthString>,
         436  +
    >,
         437  +
}
         438  +
impl QueryParamsTargetingMapOfLengthStringOperationInput {
         439  +
    #[allow(missing_docs)] // documentation missing in model
         440  +
    pub fn map_of_length_string(
         441  +
        &self,
         442  +
    ) -> ::std::option::Option<
         443  +
        &::std::collections::HashMap<crate::model::LengthString, crate::model::LengthString>,
         444  +
    > {
         445  +
        self.map_of_length_string.as_ref()
         446  +
    }
         447  +
}
         448  +
impl QueryParamsTargetingMapOfLengthStringOperationInput {
         449  +
    /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
         450  +
    pub fn builder(
         451  +
    ) -> crate::input::query_params_targeting_map_of_length_string_operation_input::Builder {
         452  +
        crate::input::query_params_targeting_map_of_length_string_operation_input::Builder::default(
         453  +
        )
         454  +
    }
         455  +
}
         456  +
impl crate::constrained::Constrained
         457  +
    for crate::input::QueryParamsTargetingMapOfLengthStringOperationInput
         458  +
{
         459  +
    type Unconstrained =
         460  +
        crate::input::query_params_targeting_map_of_length_string_operation_input::Builder;
         461  +
}
         462  +
         463  +
#[allow(missing_docs)] // documentation missing in model
         464  +
#[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
         465  +
pub struct QueryParamsTargetingLengthMapOperationInput {
         466  +
    #[allow(missing_docs)] // documentation missing in model
         467  +
    pub length_map: ::std::option::Option<crate::model::ConBMap>,
         468  +
}
         469  +
impl QueryParamsTargetingLengthMapOperationInput {
         470  +
    #[allow(missing_docs)] // documentation missing in model
         471  +
    pub fn length_map(&self) -> ::std::option::Option<&crate::model::ConBMap> {
         472  +
        self.length_map.as_ref()
         473  +
    }
         474  +
}
         475  +
impl QueryParamsTargetingLengthMapOperationInput {
         476  +
    /// Creates a new builder-style object to manufacture [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
         477  +
    pub fn builder() -> crate::input::query_params_targeting_length_map_operation_input::Builder {
         478  +
        crate::input::query_params_targeting_length_map_operation_input::Builder::default()
         479  +
    }
         480  +
}
         481  +
impl crate::constrained::Constrained for crate::input::QueryParamsTargetingLengthMapOperationInput {
         482  +
    type Unconstrained = crate::input::query_params_targeting_length_map_operation_input::Builder;
         483  +
}
         484  +
         485  +
#[allow(missing_docs)] // documentation missing in model
         486  +
#[derive(
         487  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
         488  +
)]
         489  +
pub struct ConstrainedRecursiveShapesOperationInput {
         490  +
    #[allow(missing_docs)] // documentation missing in model
         491  +
    pub nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
         492  +
    #[allow(missing_docs)] // documentation missing in model
         493  +
    pub recursive_list: ::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>,
         494  +
}
         495  +
impl ConstrainedRecursiveShapesOperationInput {
         496  +
    #[allow(missing_docs)] // documentation missing in model
         497  +
    pub fn nested(
         498  +
        &self,
         499  +
    ) -> ::std::option::Option<&crate::model::RecursiveShapesInputOutputNested1> {
         500  +
        self.nested.as_ref()
         501  +
    }
         502  +
    #[allow(missing_docs)] // documentation missing in model
         503  +
    pub fn recursive_list(&self) -> &[crate::model::RecursiveShapesInputOutputNested1] {
         504  +
        use std::ops::Deref;
         505  +
        self.recursive_list.deref()
         506  +
    }
         507  +
}
         508  +
impl ConstrainedRecursiveShapesOperationInput {
         509  +
    /// Creates a new builder-style object to manufacture [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
         510  +
    pub fn builder() -> crate::input::constrained_recursive_shapes_operation_input::Builder {
         511  +
        crate::input::constrained_recursive_shapes_operation_input::Builder::default()
         512  +
    }
         513  +
}
         514  +
impl crate::constrained::Constrained for crate::input::ConstrainedRecursiveShapesOperationInput {
         515  +
    type Unconstrained = crate::input::constrained_recursive_shapes_operation_input::Builder;
         516  +
}
         517  +
         518  +
#[allow(missing_docs)] // documentation missing in model
         519  +
#[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
         520  +
pub struct ConstrainedHttpPayloadBoundShapeOperationInput {
         521  +
    #[allow(missing_docs)] // documentation missing in model
         522  +
    pub http_payload_bound_constrained_shape: crate::model::ConA,
         523  +
}
         524  +
impl ConstrainedHttpPayloadBoundShapeOperationInput {
         525  +
    #[allow(missing_docs)] // documentation missing in model
         526  +
    pub fn http_payload_bound_constrained_shape(&self) -> &crate::model::ConA {
         527  +
        &self.http_payload_bound_constrained_shape
         528  +
    }
         529  +
}
         530  +
impl ConstrainedHttpPayloadBoundShapeOperationInput {
         531  +
    /// Creates a new builder-style object to manufacture [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
         532  +
    pub fn builder() -> crate::input::constrained_http_payload_bound_shape_operation_input::Builder
         533  +
    {
         534  +
        crate::input::constrained_http_payload_bound_shape_operation_input::Builder::default()
         535  +
    }
         536  +
}
         537  +
impl crate::constrained::Constrained
         538  +
    for crate::input::ConstrainedHttpPayloadBoundShapeOperationInput
         539  +
{
         540  +
    type Unconstrained =
         541  +
        crate::input::constrained_http_payload_bound_shape_operation_input::Builder;
         542  +
}
         543  +
         544  +
#[allow(missing_docs)] // documentation missing in model
         545  +
#[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
         546  +
pub struct ConstrainedHttpBoundShapesOperationInput {
         547  +
    #[allow(missing_docs)] // documentation missing in model
         548  +
    pub length_string_label: crate::model::LengthString,
         549  +
    #[allow(missing_docs)] // documentation missing in model
         550  +
    pub range_integer_label: crate::model::RangeInteger,
         551  +
    #[allow(missing_docs)] // documentation missing in model
         552  +
    pub range_short_label: crate::model::RangeShort,
         553  +
    #[allow(missing_docs)] // documentation missing in model
         554  +
    pub range_long_label: crate::model::RangeLong,
         555  +
    #[allow(missing_docs)] // documentation missing in model
         556  +
    pub range_byte_label: crate::model::RangeByte,
         557  +
    #[allow(missing_docs)] // documentation missing in model
         558  +
    pub enum_string_label: crate::model::EnumString,
         559  +
    #[allow(missing_docs)] // documentation missing in model
         560  +
    pub length_string_header_map:
         561  +
        ::std::collections::HashMap<crate::model::LengthString, crate::model::LengthString>,
         562  +
    #[allow(missing_docs)] // documentation missing in model
         563  +
    pub length_string_header: ::std::option::Option<crate::model::LengthString>,
         564  +
    #[allow(missing_docs)] // documentation missing in model
         565  +
    pub range_integer_header: crate::model::RangeInteger,
         566  +
    #[allow(missing_docs)] // documentation missing in model
         567  +
    pub range_short_header: crate::model::RangeShort,
         568  +
    #[allow(missing_docs)] // documentation missing in model
         569  +
    pub range_long_header: crate::model::RangeLong,
         570  +
    #[allow(missing_docs)] // documentation missing in model
         571  +
    pub range_byte_header: crate::model::RangeByte,
         572  +
    #[allow(missing_docs)] // documentation missing in model
         573  +
    pub length_string_set_header: ::std::option::Option<crate::model::SetOfLengthString>,
         574  +
    #[allow(missing_docs)] // documentation missing in model
         575  +
    pub list_length_string_header:
         576  +
        ::std::option::Option<::std::vec::Vec<crate::model::LengthString>>,
         577  +
    #[allow(missing_docs)] // documentation missing in model
         578  +
    pub length_list_pattern_string_header:
         579  +
        ::std::option::Option<crate::model::LengthListOfPatternString>,
         580  +
    #[allow(missing_docs)] // documentation missing in model
         581  +
    pub length_set_pattern_string_header:
         582  +
        ::std::option::Option<crate::model::LengthSetOfPatternString>,
         583  +
    #[allow(missing_docs)] // documentation missing in model
         584  +
    pub range_byte_set_header: ::std::option::Option<crate::model::SetOfRangeByte>,
         585  +
    #[allow(missing_docs)] // documentation missing in model
         586  +
    pub range_short_set_header: ::std::option::Option<crate::model::SetOfRangeShort>,
         587  +
    #[allow(missing_docs)] // documentation missing in model
         588  +
    pub range_integer_set_header: ::std::option::Option<crate::model::SetOfRangeInteger>,
         589  +
    #[allow(missing_docs)] // documentation missing in model
         590  +
    pub range_long_set_header: ::std::option::Option<crate::model::SetOfRangeLong>,
         591  +
    #[allow(missing_docs)] // documentation missing in model
         592  +
    pub range_byte_list_header: ::std::option::Option<::std::vec::Vec<crate::model::RangeByte>>,
         593  +
    #[allow(missing_docs)] // documentation missing in model
         594  +
    pub range_short_list_header: ::std::option::Option<::std::vec::Vec<crate::model::RangeShort>>,
         595  +
    #[allow(missing_docs)] // documentation missing in model
         596  +
    pub range_integer_list_header:
         597  +
        ::std::option::Option<::std::vec::Vec<crate::model::RangeInteger>>,
         598  +
    #[allow(missing_docs)] // documentation missing in model
         599  +
    pub range_long_list_header: ::std::option::Option<::std::vec::Vec<crate::model::RangeLong>>,
         600  +
    #[allow(missing_docs)] // documentation missing in model
         601  +
    pub length_string_query: ::std::option::Option<crate::model::LengthString>,
         602  +
    #[allow(missing_docs)] // documentation missing in model
         603  +
    pub range_byte_query: crate::model::RangeByte,
         604  +
    #[allow(missing_docs)] // documentation missing in model
         605  +
    pub range_short_query: crate::model::RangeShort,
         606  +
    #[allow(missing_docs)] // documentation missing in model
         607  +
    pub range_integer_query: crate::model::RangeInteger,
         608  +
    #[allow(missing_docs)] // documentation missing in model
         609  +
    pub range_long_query: crate::model::RangeLong,
         610  +
    #[allow(missing_docs)] // documentation missing in model
         611  +
    pub enum_string_query: ::std::option::Option<crate::model::EnumString>,
         612  +
    #[allow(missing_docs)] // documentation missing in model
         613  +
    pub length_string_list_query:
         614  +
        ::std::option::Option<::std::vec::Vec<crate::model::LengthString>>,
         615  +
    #[allow(missing_docs)] // documentation missing in model
         616  +
    pub length_list_pattern_string_query:
         617  +
        ::std::option::Option<crate::model::LengthListOfPatternString>,
         618  +
    #[allow(missing_docs)] // documentation missing in model
         619  +
    pub length_string_set_query: ::std::option::Option<crate::model::SetOfLengthString>,
         620  +
    #[allow(missing_docs)] // documentation missing in model
         621  +
    pub range_byte_list_query: ::std::option::Option<::std::vec::Vec<crate::model::RangeByte>>,
         622  +
    #[allow(missing_docs)] // documentation missing in model
         623  +
    pub range_short_list_query: ::std::option::Option<::std::vec::Vec<crate::model::RangeShort>>,
         624  +
    #[allow(missing_docs)] // documentation missing in model
         625  +
    pub range_integer_list_query:
         626  +
        ::std::option::Option<::std::vec::Vec<crate::model::RangeInteger>>,
         627  +
    #[allow(missing_docs)] // documentation missing in model
         628  +
    pub range_long_list_query: ::std::option::Option<::std::vec::Vec<crate::model::RangeLong>>,
         629  +
    #[allow(missing_docs)] // documentation missing in model
         630  +
    pub range_byte_set_query: ::std::option::Option<crate::model::SetOfRangeByte>,
         631  +
    #[allow(missing_docs)] // documentation missing in model
         632  +
    pub range_short_set_query: ::std::option::Option<crate::model::SetOfRangeShort>,
         633  +
    #[allow(missing_docs)] // documentation missing in model
         634  +
    pub range_integer_set_query: ::std::option::Option<crate::model::SetOfRangeInteger>,
         635  +
    #[allow(missing_docs)] // documentation missing in model
         636  +
    pub range_long_set_query: ::std::option::Option<crate::model::SetOfRangeLong>,
         637  +
    #[allow(missing_docs)] // documentation missing in model
         638  +
    pub enum_string_list_query: ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
         639  +
}
         640  +
impl ConstrainedHttpBoundShapesOperationInput {
         641  +
    #[allow(missing_docs)] // documentation missing in model
         642  +
    pub fn length_string_label(&self) -> &crate::model::LengthString {
         643  +
        &self.length_string_label
         644  +
    }
         645  +
    #[allow(missing_docs)] // documentation missing in model
         646  +
    pub fn range_integer_label(&self) -> &crate::model::RangeInteger {
         647  +
        &self.range_integer_label
         648  +
    }
         649  +
    #[allow(missing_docs)] // documentation missing in model
         650  +
    pub fn range_short_label(&self) -> &crate::model::RangeShort {
         651  +
        &self.range_short_label
         652  +
    }
         653  +
    #[allow(missing_docs)] // documentation missing in model
         654  +
    pub fn range_long_label(&self) -> &crate::model::RangeLong {
         655  +
        &self.range_long_label
         656  +
    }
         657  +
    #[allow(missing_docs)] // documentation missing in model
         658  +
    pub fn range_byte_label(&self) -> &crate::model::RangeByte {
         659  +
        &self.range_byte_label
         660  +
    }
         661  +
    #[allow(missing_docs)] // documentation missing in model
         662  +
    pub fn enum_string_label(&self) -> &crate::model::EnumString {
         663  +
        &self.enum_string_label
         664  +
    }
         665  +
    #[allow(missing_docs)] // documentation missing in model
         666  +
    pub fn length_string_header_map(
         667  +
        &self,
         668  +
    ) -> &::std::collections::HashMap<crate::model::LengthString, crate::model::LengthString> {
         669  +
        &self.length_string_header_map
         670  +
    }
         671  +
    #[allow(missing_docs)] // documentation missing in model
         672  +
    pub fn length_string_header(&self) -> ::std::option::Option<&crate::model::LengthString> {
         673  +
        self.length_string_header.as_ref()
         674  +
    }
         675  +
    #[allow(missing_docs)] // documentation missing in model
         676  +
    pub fn range_integer_header(&self) -> &crate::model::RangeInteger {
         677  +
        &self.range_integer_header
         678  +
    }
         679  +
    #[allow(missing_docs)] // documentation missing in model
         680  +
    pub fn range_short_header(&self) -> &crate::model::RangeShort {
         681  +
        &self.range_short_header
         682  +
    }
         683  +
    #[allow(missing_docs)] // documentation missing in model
         684  +
    pub fn range_long_header(&self) -> &crate::model::RangeLong {
         685  +
        &self.range_long_header
         686  +
    }
         687  +
    #[allow(missing_docs)] // documentation missing in model
         688  +
    pub fn range_byte_header(&self) -> &crate::model::RangeByte {
         689  +
        &self.range_byte_header
         690  +
    }
         691  +
    #[allow(missing_docs)] // documentation missing in model
         692  +
    pub fn length_string_set_header(
         693  +
        &self,
         694  +
    ) -> ::std::option::Option<&crate::model::SetOfLengthString> {
         695  +
        self.length_string_set_header.as_ref()
         696  +
    }
         697  +
    #[allow(missing_docs)] // documentation missing in model
         698  +
    pub fn list_length_string_header(
         699  +
        &self,
         700  +
    ) -> ::std::option::Option<&[crate::model::LengthString]> {
         701  +
        self.list_length_string_header.as_deref()
         702  +
    }
         703  +
    #[allow(missing_docs)] // documentation missing in model
         704  +
    pub fn length_list_pattern_string_header(
         705  +
        &self,
         706  +
    ) -> ::std::option::Option<&crate::model::LengthListOfPatternString> {
         707  +
        self.length_list_pattern_string_header.as_ref()
         708  +
    }
         709  +
    #[allow(missing_docs)] // documentation missing in model
         710  +
    pub fn length_set_pattern_string_header(
         711  +
        &self,
         712  +
    ) -> ::std::option::Option<&crate::model::LengthSetOfPatternString> {
         713  +
        self.length_set_pattern_string_header.as_ref()
         714  +
    }
         715  +
    #[allow(missing_docs)] // documentation missing in model
         716  +
    pub fn range_byte_set_header(&self) -> ::std::option::Option<&crate::model::SetOfRangeByte> {
         717  +
        self.range_byte_set_header.as_ref()
         718  +
    }
         719  +
    #[allow(missing_docs)] // documentation missing in model
         720  +
    pub fn range_short_set_header(&self) -> ::std::option::Option<&crate::model::SetOfRangeShort> {
         721  +
        self.range_short_set_header.as_ref()
         722  +
    }
         723  +
    #[allow(missing_docs)] // documentation missing in model
         724  +
    pub fn range_integer_set_header(
         725  +
        &self,
         726  +
    ) -> ::std::option::Option<&crate::model::SetOfRangeInteger> {
         727  +
        self.range_integer_set_header.as_ref()
         728  +
    }
         729  +
    #[allow(missing_docs)] // documentation missing in model
         730  +
    pub fn range_long_set_header(&self) -> ::std::option::Option<&crate::model::SetOfRangeLong> {
         731  +
        self.range_long_set_header.as_ref()
         732  +
    }
         733  +
    #[allow(missing_docs)] // documentation missing in model
         734  +
    pub fn range_byte_list_header(&self) -> ::std::option::Option<&[crate::model::RangeByte]> {
         735  +
        self.range_byte_list_header.as_deref()
         736  +
    }
         737  +
    #[allow(missing_docs)] // documentation missing in model
         738  +
    pub fn range_short_list_header(&self) -> ::std::option::Option<&[crate::model::RangeShort]> {
         739  +
        self.range_short_list_header.as_deref()
         740  +
    }
         741  +
    #[allow(missing_docs)] // documentation missing in model
         742  +
    pub fn range_integer_list_header(
         743  +
        &self,
         744  +
    ) -> ::std::option::Option<&[crate::model::RangeInteger]> {
         745  +
        self.range_integer_list_header.as_deref()
         746  +
    }
         747  +
    #[allow(missing_docs)] // documentation missing in model
         748  +
    pub fn range_long_list_header(&self) -> ::std::option::Option<&[crate::model::RangeLong]> {
         749  +
        self.range_long_list_header.as_deref()
         750  +
    }
         751  +
    #[allow(missing_docs)] // documentation missing in model
         752  +
    pub fn length_string_query(&self) -> ::std::option::Option<&crate::model::LengthString> {
         753  +
        self.length_string_query.as_ref()
         754  +
    }
         755  +
    #[allow(missing_docs)] // documentation missing in model
         756  +
    pub fn range_byte_query(&self) -> &crate::model::RangeByte {
         757  +
        &self.range_byte_query
         758  +
    }
         759  +
    #[allow(missing_docs)] // documentation missing in model
         760  +
    pub fn range_short_query(&self) -> &crate::model::RangeShort {
         761  +
        &self.range_short_query
         762  +
    }
         763  +
    #[allow(missing_docs)] // documentation missing in model
         764  +
    pub fn range_integer_query(&self) -> &crate::model::RangeInteger {
         765  +
        &self.range_integer_query
         766  +
    }
         767  +
    #[allow(missing_docs)] // documentation missing in model
         768  +
    pub fn range_long_query(&self) -> &crate::model::RangeLong {
         769  +
        &self.range_long_query
         770  +
    }
         771  +
    #[allow(missing_docs)] // documentation missing in model
         772  +
    pub fn enum_string_query(&self) -> ::std::option::Option<&crate::model::EnumString> {
         773  +
        self.enum_string_query.as_ref()
         774  +
    }
         775  +
    #[allow(missing_docs)] // documentation missing in model
         776  +
    pub fn length_string_list_query(&self) -> ::std::option::Option<&[crate::model::LengthString]> {
         777  +
        self.length_string_list_query.as_deref()
         778  +
    }
         779  +
    #[allow(missing_docs)] // documentation missing in model
         780  +
    pub fn length_list_pattern_string_query(
         781  +
        &self,
         782  +
    ) -> ::std::option::Option<&crate::model::LengthListOfPatternString> {
         783  +
        self.length_list_pattern_string_query.as_ref()
         784  +
    }
         785  +
    #[allow(missing_docs)] // documentation missing in model
         786  +
    pub fn length_string_set_query(
         787  +
        &self,
         788  +
    ) -> ::std::option::Option<&crate::model::SetOfLengthString> {
         789  +
        self.length_string_set_query.as_ref()
         790  +
    }
         791  +
    #[allow(missing_docs)] // documentation missing in model
         792  +
    pub fn range_byte_list_query(&self) -> ::std::option::Option<&[crate::model::RangeByte]> {
         793  +
        self.range_byte_list_query.as_deref()
         794  +
    }
         795  +
    #[allow(missing_docs)] // documentation missing in model
         796  +
    pub fn range_short_list_query(&self) -> ::std::option::Option<&[crate::model::RangeShort]> {
         797  +
        self.range_short_list_query.as_deref()
         798  +
    }
         799  +
    #[allow(missing_docs)] // documentation missing in model
         800  +
    pub fn range_integer_list_query(&self) -> ::std::option::Option<&[crate::model::RangeInteger]> {
         801  +
        self.range_integer_list_query.as_deref()
         802  +
    }
         803  +
    #[allow(missing_docs)] // documentation missing in model
         804  +
    pub fn range_long_list_query(&self) -> ::std::option::Option<&[crate::model::RangeLong]> {
         805  +
        self.range_long_list_query.as_deref()
         806  +
    }
         807  +
    #[allow(missing_docs)] // documentation missing in model
         808  +
    pub fn range_byte_set_query(&self) -> ::std::option::Option<&crate::model::SetOfRangeByte> {
         809  +
        self.range_byte_set_query.as_ref()
         810  +
    }
         811  +
    #[allow(missing_docs)] // documentation missing in model
         812  +
    pub fn range_short_set_query(&self) -> ::std::option::Option<&crate::model::SetOfRangeShort> {
         813  +
        self.range_short_set_query.as_ref()
         814  +
    }
         815  +
    #[allow(missing_docs)] // documentation missing in model
         816  +
    pub fn range_integer_set_query(
         817  +
        &self,
         818  +
    ) -> ::std::option::Option<&crate::model::SetOfRangeInteger> {
         819  +
        self.range_integer_set_query.as_ref()
         820  +
    }
         821  +
    #[allow(missing_docs)] // documentation missing in model
         822  +
    pub fn range_long_set_query(&self) -> ::std::option::Option<&crate::model::SetOfRangeLong> {
         823  +
        self.range_long_set_query.as_ref()
         824  +
    }
         825  +
    #[allow(missing_docs)] // documentation missing in model
         826  +
    pub fn enum_string_list_query(&self) -> ::std::option::Option<&[crate::model::EnumString]> {
         827  +
        self.enum_string_list_query.as_deref()
         828  +
    }
         829  +
}
         830  +
impl ConstrainedHttpBoundShapesOperationInput {
         831  +
    /// Creates a new builder-style object to manufacture [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
         832  +
    pub fn builder() -> crate::input::constrained_http_bound_shapes_operation_input::Builder {
         833  +
        crate::input::constrained_http_bound_shapes_operation_input::Builder::default()
         834  +
    }
         835  +
}
         836  +
impl crate::constrained::Constrained for crate::input::ConstrainedHttpBoundShapesOperationInput {
         837  +
    type Unconstrained = crate::input::constrained_http_bound_shapes_operation_input::Builder;
         838  +
}
         839  +
         840  +
#[allow(missing_docs)] // documentation missing in model
         841  +
#[derive(
         842  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
         843  +
)]
         844  +
pub struct ConstrainedShapesOnlyInOutputOperationInput {}
         845  +
impl ConstrainedShapesOnlyInOutputOperationInput {
         846  +
    /// Creates a new builder-style object to manufacture [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
         847  +
    pub fn builder() -> crate::input::constrained_shapes_only_in_output_operation_input::Builder {
         848  +
        crate::input::constrained_shapes_only_in_output_operation_input::Builder::default()
         849  +
    }
         850  +
}
         851  +
impl crate::constrained::Constrained for crate::input::ConstrainedShapesOnlyInOutputOperationInput {
         852  +
    type Unconstrained = crate::input::constrained_shapes_only_in_output_operation_input::Builder;
         853  +
}
         854  +
         855  +
#[allow(missing_docs)] // documentation missing in model
         856  +
#[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
         857  +
pub struct ConstrainedShapesOperationInput {
         858  +
    #[allow(missing_docs)] // documentation missing in model
         859  +
    pub con_a: crate::model::ConA,
         860  +
}
         861  +
impl ConstrainedShapesOperationInput {
         862  +
    #[allow(missing_docs)] // documentation missing in model
         863  +
    pub fn con_a(&self) -> &crate::model::ConA {
         864  +
        &self.con_a
         865  +
    }
         866  +
}
         867  +
impl ConstrainedShapesOperationInput {
         868  +
    /// Creates a new builder-style object to manufacture [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
         869  +
    pub fn builder() -> crate::input::constrained_shapes_operation_input::Builder {
         870  +
        crate::input::constrained_shapes_operation_input::Builder::default()
         871  +
    }
         872  +
}
         873  +
impl crate::constrained::Constrained for crate::input::ConstrainedShapesOperationInput {
         874  +
    type Unconstrained = crate::input::constrained_shapes_operation_input::Builder;
         875  +
}
         876  +
/// See [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
         877  +
pub mod event_streams_operation_input {
         878  +
         879  +
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
         880  +
    /// Holds one variant for each of the ways the builder can fail.
         881  +
    #[non_exhaustive]
         882  +
    #[allow(clippy::enum_variant_names)]
         883  +
    pub enum ConstraintViolation {
         884  +
        /// `events` was not provided but it is required when building `EventStreamsOperationInput`.
         885  +
        MissingEvents,
         886  +
    }
         887  +
    impl ::std::fmt::Display for ConstraintViolation {
         888  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         889  +
            match self {
         890  +
                ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `EventStreamsOperationInput`"),
         891  +
            }
         892  +
        }
         893  +
    }
         894  +
    impl ::std::error::Error for ConstraintViolation {}
         895  +
    impl ConstraintViolation {
         896  +
        pub(crate) fn as_validation_exception_field(
         897  +
            self,
         898  +
            path: ::std::string::String,
         899  +
        ) -> crate::model::ValidationExceptionField {
         900  +
            match self {
         901  +
            ConstraintViolation::MissingEvents => crate::model::ValidationExceptionField {
         902  +
                                                message: format!("Value at '{}/events' failed to satisfy constraint: Member must not be null", path),
         903  +
                                                path: path + "/events",
         904  +
                                            },
         905  +
        }
         906  +
        }
         907  +
    }
         908  +
    impl ::std::convert::From<ConstraintViolation>
         909  +
        for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
         910  +
    {
         911  +
        fn from(constraint_violation: ConstraintViolation) -> Self {
         912  +
            let first_validation_exception_field =
         913  +
                constraint_violation.as_validation_exception_field("".to_owned());
         914  +
            let validation_exception = crate::error::ValidationException {
         915  +
                message: format!(
         916  +
                    "1 validation error detected. {}",
         917  +
                    &first_validation_exception_field.message
         918  +
                ),
         919  +
                field_list: Some(vec![first_validation_exception_field]),
         920  +
            };
         921  +
            Self::ConstraintViolation(
         922  +
                                crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
         923  +
                                    .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
         924  +
                            )
         925  +
        }
         926  +
    }
         927  +
    impl ::std::convert::From<Builder>
         928  +
        for crate::constrained::MaybeConstrained<crate::input::EventStreamsOperationInput>
         929  +
    {
         930  +
        fn from(builder: Builder) -> Self {
         931  +
            Self::Unconstrained(builder)
         932  +
        }
         933  +
    }
         934  +
    impl ::std::convert::TryFrom<Builder> for crate::input::EventStreamsOperationInput {
         935  +
        type Error = ConstraintViolation;
         936  +
         937  +
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
         938  +
            builder.build()
         939  +
        }
         940  +
    }
         941  +
    /// A builder for [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
         942  +
    #[derive(::std::default::Default, ::std::fmt::Debug)]
         943  +
    pub struct Builder {
         944  +
        pub(crate) events: ::std::option::Option<
         945  +
            ::aws_smithy_legacy_http::event_stream::Receiver<
         946  +
                crate::model::Event,
         947  +
                crate::error::EventError,
         948  +
            >,
         949  +
        >,
         950  +
    }
         951  +
    impl Builder {
         952  +
        #[allow(missing_docs)] // documentation missing in model
         953  +
        pub fn events(
         954  +
            mut self,
         955  +
            input: ::aws_smithy_legacy_http::event_stream::Receiver<
         956  +
                crate::model::Event,
         957  +
                crate::error::EventError,
         958  +
            >,
         959  +
        ) -> Self {
         960  +
            self.events = Some(input);
         961  +
            self
         962  +
        }
         963  +
        #[allow(missing_docs)] // documentation missing in model
         964  +
        pub(crate) fn set_events(
         965  +
            mut self,
         966  +
            input: impl ::std::convert::Into<
         967  +
                ::aws_smithy_legacy_http::event_stream::Receiver<
         968  +
                    crate::model::Event,
         969  +
                    crate::error::EventError,
         970  +
                >,
         971  +
            >,
         972  +
        ) -> Self {
         973  +
            self.events = Some(input.into());
         974  +
            self
         975  +
        }
         976  +
        /// Consumes the builder and constructs a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
         977  +
        ///
         978  +
        /// The builder fails to construct a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput) if a [`ConstraintViolation`] occurs.
         979  +
        ///
         980  +
        pub fn build(
         981  +
            self,
         982  +
        ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
         983  +
            self.build_enforcing_all_constraints()
         984  +
        }
         985  +
        fn build_enforcing_all_constraints(
         986  +
            self,
         987  +
        ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
         988  +
            Ok(crate::input::EventStreamsOperationInput {
         989  +
                events: self.events.ok_or(ConstraintViolation::MissingEvents)?,
         990  +
            })
         991  +
        }
         992  +
    }
         993  +
}
         994  +
/// See [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
         995  +
pub mod streaming_blob_operation_input {
         996  +
         997  +
    impl ::std::convert::From<Builder> for crate::input::StreamingBlobOperationInput {
         998  +
        fn from(builder: Builder) -> Self {
         999  +
            builder.build()
        1000  +
        }
        1001  +
    }
        1002  +
    /// A builder for [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
        1003  +
    #[derive(::std::default::Default, ::std::fmt::Debug)]
        1004  +
    pub struct Builder {
        1005  +
        pub(crate) streaming_blob:
        1006  +
            ::std::option::Option<::aws_smithy_types::byte_stream::ByteStream>,
        1007  +
    }
        1008  +
    impl Builder {
        1009  +
        #[allow(missing_docs)] // documentation missing in model
        1010  +
        pub fn streaming_blob(
        1011  +
            mut self,
        1012  +
            input: ::aws_smithy_types::byte_stream::ByteStream,
        1013  +
        ) -> Self {
        1014  +
            self.streaming_blob = Some(input);
        1015  +
            self
        1016  +
        }
        1017  +
        #[allow(missing_docs)] // documentation missing in model
        1018  +
        pub(crate) fn set_streaming_blob(
        1019  +
            mut self,
        1020  +
            input: impl ::std::convert::Into<::aws_smithy_types::byte_stream::ByteStream>,
        1021  +
        ) -> Self {
        1022  +
            self.streaming_blob = Some(input.into());
        1023  +
            self
        1024  +
        }
        1025  +
        /// Consumes the builder and constructs a [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
        1026  +
        pub fn build(self) -> crate::input::StreamingBlobOperationInput {
        1027  +
            self.build_enforcing_all_constraints()
        1028  +
        }
        1029  +
        fn build_enforcing_all_constraints(self) -> crate::input::StreamingBlobOperationInput {
        1030  +
            crate::input::StreamingBlobOperationInput {
        1031  +
                streaming_blob: self.streaming_blob.unwrap_or_default(),
        1032  +
            }
        1033  +
        }
        1034  +
    }
        1035  +
}
        1036  +
/// See [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
        1037  +
pub mod non_streaming_blob_operation_input {
        1038  +
        1039  +
    impl ::std::convert::From<Builder> for crate::input::NonStreamingBlobOperationInput {
        1040  +
        fn from(builder: Builder) -> Self {
        1041  +
            builder.build()
        1042  +
        }
        1043  +
    }
        1044  +
    /// A builder for [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
        1045  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        1046  +
    pub struct Builder {
        1047  +
        pub(crate) non_streaming_blob: ::std::option::Option<::aws_smithy_types::Blob>,
        1048  +
    }
        1049  +
    impl Builder {
        1050  +
        #[allow(missing_docs)] // documentation missing in model
        1051  +
        pub fn non_streaming_blob(
        1052  +
            mut self,
        1053  +
            input: ::std::option::Option<::aws_smithy_types::Blob>,
        1054  +
        ) -> Self {
        1055  +
            self.non_streaming_blob = input;
        1056  +
            self
        1057  +
        }
        1058  +
        #[allow(missing_docs)] // documentation missing in model
        1059  +
        pub(crate) fn set_non_streaming_blob(
        1060  +
            mut self,
        1061  +
            input: Option<impl ::std::convert::Into<::aws_smithy_types::Blob>>,
        1062  +
        ) -> Self {
        1063  +
            self.non_streaming_blob = input.map(|v| v.into());
        1064  +
            self
        1065  +
        }
        1066  +
        /// Consumes the builder and constructs a [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
        1067  +
        pub fn build(self) -> crate::input::NonStreamingBlobOperationInput {
        1068  +
            self.build_enforcing_all_constraints()
        1069  +
        }
        1070  +
        fn build_enforcing_all_constraints(self) -> crate::input::NonStreamingBlobOperationInput {
        1071  +
            crate::input::NonStreamingBlobOperationInput {
        1072  +
                non_streaming_blob: self.non_streaming_blob,
        1073  +
            }
        1074  +
        }
        1075  +
    }
        1076  +
}
        1077  +
/// See [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
        1078  +
pub mod query_params_targeting_map_of_enum_string_operation_input {
        1079  +
        1080  +
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
        1081  +
    /// Holds one variant for each of the ways the builder can fail.
        1082  +
    #[non_exhaustive]
        1083  +
    #[allow(clippy::enum_variant_names)]
        1084  +
    pub enum ConstraintViolation {
        1085  +
        /// Constraint violation occurred building member `map_of_enum_string` when building `QueryParamsTargetingMapOfEnumStringOperationInput`.
        1086  +
        #[doc(hidden)]
        1087  +
        MapOfEnumString(crate::model::map_of_enum_string::ConstraintViolation),
        1088  +
    }
        1089  +
    impl ::std::fmt::Display for ConstraintViolation {
        1090  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1091  +
            match self {
        1092  +
                ConstraintViolation::MapOfEnumString(_) => write!(f, "constraint violation occurred building member `map_of_enum_string` when building `QueryParamsTargetingMapOfEnumStringOperationInput`"),
        1093  +
            }
        1094  +
        }
        1095  +
    }
        1096  +
    impl ::std::error::Error for ConstraintViolation {}
        1097  +
    impl ConstraintViolation {
        1098  +
        pub(crate) fn as_validation_exception_field(
        1099  +
            self,
        1100  +
            path: ::std::string::String,
        1101  +
        ) -> crate::model::ValidationExceptionField {
        1102  +
            match self {
        1103  +
                ConstraintViolation::MapOfEnumString(inner) => {
        1104  +
                    inner.as_validation_exception_field(path + "/mapOfEnumString")
        1105  +
                }
        1106  +
            }
        1107  +
        }
        1108  +
    }
        1109  +
    impl ::std::convert::From<ConstraintViolation>
        1110  +
        for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
        1111  +
    {
        1112  +
        fn from(constraint_violation: ConstraintViolation) -> Self {
        1113  +
            let first_validation_exception_field =
        1114  +
                constraint_violation.as_validation_exception_field("".to_owned());
        1115  +
            let validation_exception = crate::error::ValidationException {
        1116  +
                message: format!(
        1117  +
                    "1 validation error detected. {}",
        1118  +
                    &first_validation_exception_field.message
        1119  +
                ),
        1120  +
                field_list: Some(vec![first_validation_exception_field]),
        1121  +
            };
        1122  +
            Self::ConstraintViolation(
        1123  +
                                crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
        1124  +
                                    .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        1125  +
                            )
        1126  +
        }
        1127  +
    }
        1128  +
    impl ::std::convert::From<Builder>
        1129  +
        for crate::constrained::MaybeConstrained<
        1130  +
            crate::input::QueryParamsTargetingMapOfEnumStringOperationInput,
        1131  +
        >
        1132  +
    {
        1133  +
        fn from(builder: Builder) -> Self {
        1134  +
            Self::Unconstrained(builder)
        1135  +
        }
        1136  +
    }
        1137  +
    impl ::std::convert::TryFrom<Builder>
        1138  +
        for crate::input::QueryParamsTargetingMapOfEnumStringOperationInput
        1139  +
    {
        1140  +
        type Error = ConstraintViolation;
        1141  +
        1142  +
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
        1143  +
            builder.build()
        1144  +
        }
        1145  +
    }
        1146  +
    /// A builder for [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
        1147  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        1148  +
    pub struct Builder {
        1149  +
        pub(crate) map_of_enum_string: ::std::option::Option<
        1150  +
            crate::constrained::MaybeConstrained<
        1151  +
                crate::constrained::map_of_enum_string_constrained::MapOfEnumStringConstrained,
        1152  +
            >,
        1153  +
        >,
        1154  +
    }
        1155  +
    impl Builder {
        1156  +
        #[allow(missing_docs)] // documentation missing in model
        1157  +
        pub fn map_of_enum_string(
        1158  +
            mut self,
        1159  +
            input: ::std::option::Option<
        1160  +
                ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
        1161  +
            >,
        1162  +
        ) -> Self {
        1163  +
            self.map_of_enum_string =
        1164  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        1165  +
            self
        1166  +
        }
        1167  +
        #[allow(missing_docs)] // documentation missing in model
        1168  +
        pub(crate) fn set_map_of_enum_string(
        1169  +
            mut self,
        1170  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_enum_string_constrained::MapOfEnumStringConstrained>>>,
        1171  +
        ) -> Self {
        1172  +
            self.map_of_enum_string = input.map(|v| v.into());
        1173  +
            self
        1174  +
        }
        1175  +
        /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
        1176  +
        ///
        1177  +
        /// The builder fails to construct a [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput) if a [`ConstraintViolation`] occurs.
        1178  +
        ///
        1179  +
        pub fn build(
        1180  +
            self,
        1181  +
        ) -> Result<
        1182  +
            crate::input::QueryParamsTargetingMapOfEnumStringOperationInput,
        1183  +
            ConstraintViolation,
        1184  +
        > {
        1185  +
            self.build_enforcing_all_constraints()
        1186  +
        }
        1187  +
        fn build_enforcing_all_constraints(
        1188  +
            self,
        1189  +
        ) -> Result<
        1190  +
            crate::input::QueryParamsTargetingMapOfEnumStringOperationInput,
        1191  +
            ConstraintViolation,
        1192  +
        > {
        1193  +
            Ok(
        1194  +
                crate::input::QueryParamsTargetingMapOfEnumStringOperationInput {
        1195  +
                    map_of_enum_string: self
        1196  +
                        .map_of_enum_string
        1197  +
                        .map(|v| match v {
        1198  +
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        1199  +
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        1200  +
                        })
        1201  +
                        .map(|res| {
        1202  +
                            res.map(|v| v.into())
        1203  +
                                .map_err(ConstraintViolation::MapOfEnumString)
        1204  +
                        })
        1205  +
                        .transpose()?,
        1206  +
                },
        1207  +
            )
        1208  +
        }
        1209  +
    }
        1210  +
}
        1211  +
/// See [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
        1212  +
pub mod http_prefix_headers_targeting_length_map_operation_input {
        1213  +
        1214  +
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
        1215  +
    /// Holds one variant for each of the ways the builder can fail.
        1216  +
    #[non_exhaustive]
        1217  +
    #[allow(clippy::enum_variant_names)]
        1218  +
    pub enum ConstraintViolation {
        1219  +
        /// Constraint violation occurred building member `length_map` when building `HttpPrefixHeadersTargetingLengthMapOperationInput`.
        1220  +
        #[doc(hidden)]
        1221  +
        LengthMap(crate::model::con_b_map::ConstraintViolation),
        1222  +
    }
        1223  +
    impl ::std::fmt::Display for ConstraintViolation {
        1224  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1225  +
            match self {
        1226  +
                ConstraintViolation::LengthMap(_) => write!(f, "constraint violation occurred building member `length_map` when building `HttpPrefixHeadersTargetingLengthMapOperationInput`"),
        1227  +
            }
        1228  +
        }
        1229  +
    }
        1230  +
    impl ::std::error::Error for ConstraintViolation {}
        1231  +
    impl ConstraintViolation {
        1232  +
        pub(crate) fn as_validation_exception_field(
        1233  +
            self,
        1234  +
            path: ::std::string::String,
        1235  +
        ) -> crate::model::ValidationExceptionField {
        1236  +
            match self {
        1237  +
                ConstraintViolation::LengthMap(inner) => {
        1238  +
                    inner.as_validation_exception_field(path + "/lengthMap")
        1239  +
                }
        1240  +
            }
        1241  +
        }
        1242  +
    }
        1243  +
    impl ::std::convert::From<ConstraintViolation>
        1244  +
        for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
        1245  +
    {
        1246  +
        fn from(constraint_violation: ConstraintViolation) -> Self {
        1247  +
            let first_validation_exception_field =
        1248  +
                constraint_violation.as_validation_exception_field("".to_owned());
        1249  +
            let validation_exception = crate::error::ValidationException {
        1250  +
                message: format!(
        1251  +
                    "1 validation error detected. {}",
        1252  +
                    &first_validation_exception_field.message
        1253  +
                ),
        1254  +
                field_list: Some(vec![first_validation_exception_field]),
        1255  +
            };
        1256  +
            Self::ConstraintViolation(
        1257  +
                                crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
        1258  +
                                    .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        1259  +
                            )
        1260  +
        }
        1261  +
    }
        1262  +
    impl ::std::convert::From<Builder>
        1263  +
        for crate::constrained::MaybeConstrained<
        1264  +
            crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput,
        1265  +
        >
        1266  +
    {
        1267  +
        fn from(builder: Builder) -> Self {
        1268  +
            Self::Unconstrained(builder)
        1269  +
        }
        1270  +
    }
        1271  +
    impl ::std::convert::TryFrom<Builder>
        1272  +
        for crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput
        1273  +
    {
        1274  +
        type Error = ConstraintViolation;
        1275  +
        1276  +
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
        1277  +
            builder.build()
        1278  +
        }
        1279  +
    }
        1280  +
    /// A builder for [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
        1281  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        1282  +
    pub struct Builder {
        1283  +
        pub(crate) length_map:
        1284  +
            ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
        1285  +
    }
        1286  +
    impl Builder {
        1287  +
        #[allow(missing_docs)] // documentation missing in model
        1288  +
        pub fn length_map(mut self, input: ::std::option::Option<crate::model::ConBMap>) -> Self {
        1289  +
            self.length_map = input.map(crate::constrained::MaybeConstrained::Constrained);
        1290  +
            self
        1291  +
        }
        1292  +
        #[allow(missing_docs)] // documentation missing in model
        1293  +
        pub(crate) fn set_length_map(
        1294  +
            mut self,
        1295  +
            input: Option<
        1296  +
                impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
        1297  +
            >,
        1298  +
        ) -> Self {
        1299  +
            self.length_map = input.map(|v| v.into());
        1300  +
            self
        1301  +
        }
        1302  +
        /// Consumes the builder and constructs a [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
        1303  +
        ///
        1304  +
        /// The builder fails to construct a [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput) if a [`ConstraintViolation`] occurs.
        1305  +
        ///
        1306  +
        pub fn build(
        1307  +
            self,
        1308  +
        ) -> Result<
        1309  +
            crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput,
        1310  +
            ConstraintViolation,
        1311  +
        > {
        1312  +
            self.build_enforcing_all_constraints()
        1313  +
        }
        1314  +
        fn build_enforcing_all_constraints(
        1315  +
            self,
        1316  +
        ) -> Result<
        1317  +
            crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput,
        1318  +
            ConstraintViolation,
        1319  +
        > {
        1320  +
            Ok(
        1321  +
                crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput {
        1322  +
                    length_map: self
        1323  +
                        .length_map
        1324  +
                        .map(|v| match v {
        1325  +
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        1326  +
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        1327  +
                        })
        1328  +
                        .map(|res| res.map_err(ConstraintViolation::LengthMap))
        1329  +
                        .transpose()?,
        1330  +
                },
        1331  +
            )
        1332  +
        }
        1333  +
    }
        1334  +
}
        1335  +
/// See [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
        1336  +
pub mod query_params_targeting_map_of_list_of_length_pattern_string_operation_input {
        1337  +
        1338  +
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
        1339  +
    /// Holds one variant for each of the ways the builder can fail.
        1340  +
    #[non_exhaustive]
        1341  +
    #[allow(clippy::enum_variant_names)]
        1342  +
    pub enum ConstraintViolation {
        1343  +
        /// Constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`.
        1344  +
        #[doc(hidden)]
        1345  +
        MapOfLengthPatternString(
        1346  +
            crate::model::map_of_list_of_length_pattern_string::ConstraintViolation,
        1347  +
        ),
        1348  +
    }
        1349  +
    impl ::std::fmt::Display for ConstraintViolation {
        1350  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1351  +
            match self {
        1352  +
                ConstraintViolation::MapOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`"),
        1353  +
            }
        1354  +
        }
        1355  +
    }
        1356  +
    impl ::std::error::Error for ConstraintViolation {}
        1357  +
    impl ConstraintViolation {
        1358  +
        pub(crate) fn as_validation_exception_field(
        1359  +
            self,
        1360  +
            path: ::std::string::String,
        1361  +
        ) -> crate::model::ValidationExceptionField {
        1362  +
            match self {
        1363  +
                ConstraintViolation::MapOfLengthPatternString(inner) => {
        1364  +
                    inner.as_validation_exception_field(path + "/mapOfLengthPatternString")
        1365  +
                }
        1366  +
            }
        1367  +
        }
        1368  +
    }
        1369  +
    impl ::std::convert::From<ConstraintViolation>
        1370  +
        for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
        1371  +
    {
        1372  +
        fn from(constraint_violation: ConstraintViolation) -> Self {
        1373  +
            let first_validation_exception_field =
        1374  +
                constraint_violation.as_validation_exception_field("".to_owned());
        1375  +
            let validation_exception = crate::error::ValidationException {
        1376  +
                message: format!(
        1377  +
                    "1 validation error detected. {}",
        1378  +
                    &first_validation_exception_field.message
        1379  +
                ),
        1380  +
                field_list: Some(vec![first_validation_exception_field]),
        1381  +
            };
        1382  +
            Self::ConstraintViolation(
        1383  +
                                crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
        1384  +
                                    .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        1385  +
                            )
        1386  +
        }
        1387  +
    }
        1388  +
    impl ::std::convert::From<Builder>
        1389  +
        for crate::constrained::MaybeConstrained<
        1390  +
            crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput,
        1391  +
        >
        1392  +
    {
        1393  +
        fn from(builder: Builder) -> Self {
        1394  +
            Self::Unconstrained(builder)
        1395  +
        }
        1396  +
    }
        1397  +
    impl ::std::convert::TryFrom<Builder>
        1398  +
        for crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
        1399  +
    {
        1400  +
        type Error = ConstraintViolation;
        1401  +
        1402  +
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
        1403  +
            builder.build()
        1404  +
        }
        1405  +
    }
        1406  +
    /// A builder for [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
        1407  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        1408  +
    pub struct Builder {
        1409  +
        pub(crate) map_of_length_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_pattern_string_constrained::MapOfListOfLengthPatternStringConstrained>>,
        1410  +
    }
        1411  +
    impl Builder {
        1412  +
        #[allow(missing_docs)] // documentation missing in model
        1413  +
        pub fn map_of_length_pattern_string(
        1414  +
            mut self,
        1415  +
            input: ::std::option::Option<
        1416  +
                ::std::collections::HashMap<
        1417  +
                    crate::model::LengthPatternString,
        1418  +
                    ::std::vec::Vec<crate::model::LengthPatternString>,
        1419  +
                >,
        1420  +
            >,
        1421  +
        ) -> Self {
        1422  +
            self.map_of_length_pattern_string =
        1423  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        1424  +
            self
        1425  +
        }
        1426  +
        #[allow(missing_docs)] // documentation missing in model
        1427  +
        pub(crate) fn set_map_of_length_pattern_string(
        1428  +
            mut self,
        1429  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_pattern_string_constrained::MapOfListOfLengthPatternStringConstrained>>>,
        1430  +
        ) -> Self {
        1431  +
            self.map_of_length_pattern_string = input.map(|v| v.into());
        1432  +
            self
        1433  +
        }
        1434  +
        /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
        1435  +
        ///
        1436  +
        /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
        1437  +
        ///
        1438  +
        pub fn build(
        1439  +
            self,
        1440  +
        ) -> Result<
        1441  +
            crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput,
        1442  +
            ConstraintViolation,
        1443  +
        > {
        1444  +
            self.build_enforcing_all_constraints()
        1445  +
        }
        1446  +
        fn build_enforcing_all_constraints(
        1447  +
            self,
        1448  +
        ) -> Result<
        1449  +
            crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput,
        1450  +
            ConstraintViolation,
        1451  +
        > {
        1452  +
            Ok(
        1453  +
                crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
        1454  +
                    map_of_length_pattern_string: self
        1455  +
                        .map_of_length_pattern_string
        1456  +
                        .map(|v| match v {
        1457  +
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        1458  +
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        1459  +
                        })
        1460  +
                        .map(|res| {
        1461  +
                            res.map(|v| v.into())
        1462  +
                                .map_err(ConstraintViolation::MapOfLengthPatternString)
        1463  +
                        })
        1464  +
                        .transpose()?,
        1465  +
                },
        1466  +
            )
        1467  +
        }
        1468  +
    }
        1469  +
}
        1470  +
/// See [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
        1471  +
pub mod query_params_targeting_map_of_length_pattern_string_operation_input {
        1472  +
        1473  +
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
        1474  +
    /// Holds one variant for each of the ways the builder can fail.
        1475  +
    #[non_exhaustive]
        1476  +
    #[allow(clippy::enum_variant_names)]
        1477  +
    pub enum ConstraintViolation {
        1478  +
        /// Constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfLengthPatternStringOperationInput`.
        1479  +
        #[doc(hidden)]
        1480  +
        MapOfLengthPatternString(crate::model::map_of_length_pattern_string::ConstraintViolation),
        1481  +
    }
        1482  +
    impl ::std::fmt::Display for ConstraintViolation {
        1483  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1484  +
            match self {
        1485  +
                ConstraintViolation::MapOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfLengthPatternStringOperationInput`"),
        1486  +
            }
        1487  +
        }
        1488  +
    }
        1489  +
    impl ::std::error::Error for ConstraintViolation {}
        1490  +
    impl ConstraintViolation {
        1491  +
        pub(crate) fn as_validation_exception_field(
        1492  +
            self,
        1493  +
            path: ::std::string::String,
        1494  +
        ) -> crate::model::ValidationExceptionField {
        1495  +
            match self {
        1496  +
                ConstraintViolation::MapOfLengthPatternString(inner) => {
        1497  +
                    inner.as_validation_exception_field(path + "/mapOfLengthPatternString")
        1498  +
                }
        1499  +
            }
        1500  +
        }
        1501  +
    }
        1502  +
    impl ::std::convert::From<ConstraintViolation>
        1503  +
        for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
        1504  +
    {
        1505  +
        fn from(constraint_violation: ConstraintViolation) -> Self {
        1506  +
            let first_validation_exception_field =
        1507  +
                constraint_violation.as_validation_exception_field("".to_owned());
        1508  +
            let validation_exception = crate::error::ValidationException {
        1509  +
                message: format!(
        1510  +
                    "1 validation error detected. {}",
        1511  +
                    &first_validation_exception_field.message
        1512  +
                ),
        1513  +
                field_list: Some(vec![first_validation_exception_field]),
        1514  +
            };
        1515  +
            Self::ConstraintViolation(
        1516  +
                                crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
        1517  +
                                    .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        1518  +
                            )
        1519  +
        }
        1520  +
    }
        1521  +
    impl ::std::convert::From<Builder>
        1522  +
        for crate::constrained::MaybeConstrained<
        1523  +
            crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput,
        1524  +
        >
        1525  +
    {
        1526  +
        fn from(builder: Builder) -> Self {
        1527  +
            Self::Unconstrained(builder)
        1528  +
        }
        1529  +
    }
        1530  +
    impl ::std::convert::TryFrom<Builder>
        1531  +
        for crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput
        1532  +
    {
        1533  +
        type Error = ConstraintViolation;
        1534  +
        1535  +
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
        1536  +
            builder.build()
        1537  +
        }
        1538  +
    }
        1539  +
    /// A builder for [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
        1540  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        1541  +
    pub struct Builder {
        1542  +
        pub(crate) map_of_length_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained>>,
        1543  +
    }
        1544  +
    impl Builder {
        1545  +
        #[allow(missing_docs)] // documentation missing in model
        1546  +
        pub fn map_of_length_pattern_string(
        1547  +
            mut self,
        1548  +
            input: ::std::option::Option<
        1549  +
                ::std::collections::HashMap<
        1550  +
                    crate::model::LengthPatternString,
        1551  +
                    crate::model::LengthPatternString,
        1552  +
                >,
        1553  +
            >,
        1554  +
        ) -> Self {
        1555  +
            self.map_of_length_pattern_string =
        1556  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        1557  +
            self
        1558  +
        }
        1559  +
        #[allow(missing_docs)] // documentation missing in model
        1560  +
        pub(crate) fn set_map_of_length_pattern_string(
        1561  +
            mut self,
        1562  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained>>>,
        1563  +
        ) -> Self {
        1564  +
            self.map_of_length_pattern_string = input.map(|v| v.into());
        1565  +
            self
        1566  +
        }
        1567  +
        /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
        1568  +
        ///
        1569  +
        /// The builder fails to construct a [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
        1570  +
        ///
        1571  +
        pub fn build(
        1572  +
            self,
        1573  +
        ) -> Result<
        1574  +
            crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput,
        1575  +
            ConstraintViolation,
        1576  +
        > {
        1577  +
            self.build_enforcing_all_constraints()
        1578  +
        }
        1579  +
        fn build_enforcing_all_constraints(
        1580  +
            self,
        1581  +
        ) -> Result<
        1582  +
            crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput,
        1583  +
            ConstraintViolation,
        1584  +
        > {
        1585  +
            Ok(
        1586  +
                crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput {
        1587  +
                    map_of_length_pattern_string: self
        1588  +
                        .map_of_length_pattern_string
        1589  +
                        .map(|v| match v {
        1590  +
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        1591  +
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        1592  +
                        })
        1593  +
                        .map(|res| {
        1594  +
                            res.map(|v| v.into())
        1595  +
                                .map_err(ConstraintViolation::MapOfLengthPatternString)
        1596  +
                        })
        1597  +
                        .transpose()?,
        1598  +
                },
        1599  +
            )
        1600  +
        }
        1601  +
    }
        1602  +
}
        1603  +
/// See [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
        1604  +
pub mod query_params_targeting_map_of_list_of_pattern_string_operation_input {
        1605  +
        1606  +
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
        1607  +
    /// Holds one variant for each of the ways the builder can fail.
        1608  +
    #[non_exhaustive]
        1609  +
    #[allow(clippy::enum_variant_names)]
        1610  +
    pub enum ConstraintViolation {
        1611  +
        /// Constraint violation occurred building member `map_of_list_of_pattern_string` when building `QueryParamsTargetingMapOfListOfPatternStringOperationInput`.
        1612  +
        #[doc(hidden)]
        1613  +
        MapOfListOfPatternString(crate::model::map_of_list_of_pattern_string::ConstraintViolation),
        1614  +
    }
        1615  +
    impl ::std::fmt::Display for ConstraintViolation {
        1616  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1617  +
            match self {
        1618  +
                ConstraintViolation::MapOfListOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_pattern_string` when building `QueryParamsTargetingMapOfListOfPatternStringOperationInput`"),
        1619  +
            }
        1620  +
        }
        1621  +
    }
        1622  +
    impl ::std::error::Error for ConstraintViolation {}
        1623  +
    impl ConstraintViolation {
        1624  +
        pub(crate) fn as_validation_exception_field(
        1625  +
            self,
        1626  +
            path: ::std::string::String,
        1627  +
        ) -> crate::model::ValidationExceptionField {
        1628  +
            match self {
        1629  +
                ConstraintViolation::MapOfListOfPatternString(inner) => {
        1630  +
                    inner.as_validation_exception_field(path + "/mapOfListOfPatternString")
        1631  +
                }
        1632  +
            }
        1633  +
        }
        1634  +
    }
        1635  +
    impl ::std::convert::From<ConstraintViolation>
        1636  +
        for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
        1637  +
    {
        1638  +
        fn from(constraint_violation: ConstraintViolation) -> Self {
        1639  +
            let first_validation_exception_field =
        1640  +
                constraint_violation.as_validation_exception_field("".to_owned());
        1641  +
            let validation_exception = crate::error::ValidationException {
        1642  +
                message: format!(
        1643  +
                    "1 validation error detected. {}",
        1644  +
                    &first_validation_exception_field.message
        1645  +
                ),
        1646  +
                field_list: Some(vec![first_validation_exception_field]),
        1647  +
            };
        1648  +
            Self::ConstraintViolation(
        1649  +
                                crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
        1650  +
                                    .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        1651  +
                            )
        1652  +
        }
        1653  +
    }
        1654  +
    impl ::std::convert::From<Builder>
        1655  +
        for crate::constrained::MaybeConstrained<
        1656  +
            crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput,
        1657  +
        >
        1658  +
    {
        1659  +
        fn from(builder: Builder) -> Self {
        1660  +
            Self::Unconstrained(builder)
        1661  +
        }
        1662  +
    }
        1663  +
    impl ::std::convert::TryFrom<Builder>
        1664  +
        for crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput
        1665  +
    {
        1666  +
        type Error = ConstraintViolation;
        1667  +
        1668  +
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
        1669  +
            builder.build()
        1670  +
        }
        1671  +
    }
        1672  +
    /// A builder for [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
        1673  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        1674  +
    pub struct Builder {
        1675  +
        pub(crate) map_of_list_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_pattern_string_constrained::MapOfListOfPatternStringConstrained>>,
        1676  +
    }
        1677  +
    impl Builder {
        1678  +
        #[allow(missing_docs)] // documentation missing in model
        1679  +
        pub fn map_of_list_of_pattern_string(
        1680  +
            mut self,
        1681  +
            input: ::std::option::Option<
        1682  +
                ::std::collections::HashMap<
        1683  +
                    crate::model::PatternString,
        1684  +
                    ::std::vec::Vec<crate::model::PatternString>,
        1685  +
                >,
        1686  +
            >,
        1687  +
        ) -> Self {
        1688  +
            self.map_of_list_of_pattern_string =
        1689  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        1690  +
            self
        1691  +
        }
        1692  +
        #[allow(missing_docs)] // documentation missing in model
        1693  +
        pub(crate) fn set_map_of_list_of_pattern_string(
        1694  +
            mut self,
        1695  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_pattern_string_constrained::MapOfListOfPatternStringConstrained>>>,
        1696  +
        ) -> Self {
        1697  +
            self.map_of_list_of_pattern_string = input.map(|v| v.into());
        1698  +
            self
        1699  +
        }
        1700  +
        /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
        1701  +
        ///
        1702  +
        /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
        1703  +
        ///
        1704  +
        pub fn build(
        1705  +
            self,
        1706  +
        ) -> Result<
        1707  +
            crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput,
        1708  +
            ConstraintViolation,
        1709  +
        > {
        1710  +
            self.build_enforcing_all_constraints()
        1711  +
        }
        1712  +
        fn build_enforcing_all_constraints(
        1713  +
            self,
        1714  +
        ) -> Result<
        1715  +
            crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput,
        1716  +
            ConstraintViolation,
        1717  +
        > {
        1718  +
            Ok(
        1719  +
                crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput {
        1720  +
                    map_of_list_of_pattern_string: self
        1721  +
                        .map_of_list_of_pattern_string
        1722  +
                        .map(|v| match v {
        1723  +
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        1724  +
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        1725  +
                        })
        1726  +
                        .map(|res| {
        1727  +
                            res.map(|v| v.into())
        1728  +
                                .map_err(ConstraintViolation::MapOfListOfPatternString)
        1729  +
                        })
        1730  +
                        .transpose()?,
        1731  +
                },
        1732  +
            )
        1733  +
        }
        1734  +
    }
        1735  +
}
        1736  +
/// See [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
        1737  +
pub mod query_params_targeting_map_of_pattern_string_operation_input {
        1738  +
        1739  +
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
        1740  +
    /// Holds one variant for each of the ways the builder can fail.
        1741  +
    #[non_exhaustive]
        1742  +
    #[allow(clippy::enum_variant_names)]
        1743  +
    pub enum ConstraintViolation {
        1744  +
        /// Constraint violation occurred building member `map_of_pattern_string` when building `QueryParamsTargetingMapOfPatternStringOperationInput`.
        1745  +
        #[doc(hidden)]
        1746  +
        MapOfPatternString(crate::model::map_of_pattern_string::ConstraintViolation),
        1747  +
    }
        1748  +
    impl ::std::fmt::Display for ConstraintViolation {
        1749  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1750  +
            match self {
        1751  +
                ConstraintViolation::MapOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_pattern_string` when building `QueryParamsTargetingMapOfPatternStringOperationInput`"),
        1752  +
            }
        1753  +
        }
        1754  +
    }
        1755  +
    impl ::std::error::Error for ConstraintViolation {}
        1756  +
    impl ConstraintViolation {
        1757  +
        pub(crate) fn as_validation_exception_field(
        1758  +
            self,
        1759  +
            path: ::std::string::String,
        1760  +
        ) -> crate::model::ValidationExceptionField {
        1761  +
            match self {
        1762  +
                ConstraintViolation::MapOfPatternString(inner) => {
        1763  +
                    inner.as_validation_exception_field(path + "/mapOfPatternString")
        1764  +
                }
        1765  +
            }
        1766  +
        }
        1767  +
    }
        1768  +
    impl ::std::convert::From<ConstraintViolation>
        1769  +
        for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
        1770  +
    {
        1771  +
        fn from(constraint_violation: ConstraintViolation) -> Self {
        1772  +
            let first_validation_exception_field =
        1773  +
                constraint_violation.as_validation_exception_field("".to_owned());
        1774  +
            let validation_exception = crate::error::ValidationException {
        1775  +
                message: format!(
        1776  +
                    "1 validation error detected. {}",
        1777  +
                    &first_validation_exception_field.message
        1778  +
                ),
        1779  +
                field_list: Some(vec![first_validation_exception_field]),
        1780  +
            };
        1781  +
            Self::ConstraintViolation(
        1782  +
                                crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
        1783  +
                                    .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        1784  +
                            )
        1785  +
        }
        1786  +
    }
        1787  +
    impl ::std::convert::From<Builder>
        1788  +
        for crate::constrained::MaybeConstrained<
        1789  +
            crate::input::QueryParamsTargetingMapOfPatternStringOperationInput,
        1790  +
        >
        1791  +
    {
        1792  +
        fn from(builder: Builder) -> Self {
        1793  +
            Self::Unconstrained(builder)
        1794  +
        }
        1795  +
    }
        1796  +
    impl ::std::convert::TryFrom<Builder>
        1797  +
        for crate::input::QueryParamsTargetingMapOfPatternStringOperationInput
        1798  +
    {
        1799  +
        type Error = ConstraintViolation;
        1800  +
        1801  +
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
        1802  +
            builder.build()
        1803  +
        }
        1804  +
    }
        1805  +
    /// A builder for [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
        1806  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        1807  +
    pub struct Builder {
        1808  +
        pub(crate) map_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained>>,
        1809  +
    }
        1810  +
    impl Builder {
        1811  +
        #[allow(missing_docs)] // documentation missing in model
        1812  +
        pub fn map_of_pattern_string(
        1813  +
            mut self,
        1814  +
            input: ::std::option::Option<
        1815  +
                ::std::collections::HashMap<
        1816  +
                    crate::model::PatternString,
        1817  +
                    crate::model::PatternString,
        1818  +
                >,
        1819  +
            >,
        1820  +
        ) -> Self {
        1821  +
            self.map_of_pattern_string =
        1822  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        1823  +
            self
        1824  +
        }
        1825  +
        #[allow(missing_docs)] // documentation missing in model
        1826  +
        pub(crate) fn set_map_of_pattern_string(
        1827  +
            mut self,
        1828  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained>>>,
        1829  +
        ) -> Self {
        1830  +
            self.map_of_pattern_string = input.map(|v| v.into());
        1831  +
            self
        1832  +
        }
        1833  +
        /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
        1834  +
        ///
        1835  +
        /// The builder fails to construct a [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
        1836  +
        ///
        1837  +
        pub fn build(
        1838  +
            self,
        1839  +
        ) -> Result<
        1840  +
            crate::input::QueryParamsTargetingMapOfPatternStringOperationInput,
        1841  +
            ConstraintViolation,
        1842  +
        > {
        1843  +
            self.build_enforcing_all_constraints()
        1844  +
        }
        1845  +
        fn build_enforcing_all_constraints(
        1846  +
            self,
        1847  +
        ) -> Result<
        1848  +
            crate::input::QueryParamsTargetingMapOfPatternStringOperationInput,
        1849  +
            ConstraintViolation,
        1850  +
        > {
        1851  +
            Ok(
        1852  +
                crate::input::QueryParamsTargetingMapOfPatternStringOperationInput {
        1853  +
                    map_of_pattern_string: self
        1854  +
                        .map_of_pattern_string
        1855  +
                        .map(|v| match v {
        1856  +
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        1857  +
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        1858  +
                        })
        1859  +
                        .map(|res| {
        1860  +
                            res.map(|v| v.into())
        1861  +
                                .map_err(ConstraintViolation::MapOfPatternString)
        1862  +
                        })
        1863  +
                        .transpose()?,
        1864  +
                },
        1865  +
            )
        1866  +
        }
        1867  +
    }
        1868  +
}
        1869  +
/// See [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
        1870  +
pub mod query_params_targeting_map_of_list_of_enum_string_operation_input {
        1871  +
        1872  +
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
        1873  +
    /// Holds one variant for each of the ways the builder can fail.
        1874  +
    #[non_exhaustive]
        1875  +
    #[allow(clippy::enum_variant_names)]
        1876  +
    pub enum ConstraintViolation {
        1877  +
        /// Constraint violation occurred building member `map_of_list_of_enum_string` when building `QueryParamsTargetingMapOfListOfEnumStringOperationInput`.
        1878  +
        #[doc(hidden)]
        1879  +
        MapOfListOfEnumString(crate::model::map_of_list_of_enum_string::ConstraintViolation),
        1880  +
    }
        1881  +
    impl ::std::fmt::Display for ConstraintViolation {
        1882  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1883  +
            match self {
        1884  +
                ConstraintViolation::MapOfListOfEnumString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_enum_string` when building `QueryParamsTargetingMapOfListOfEnumStringOperationInput`"),
        1885  +
            }
        1886  +
        }
        1887  +
    }
        1888  +
    impl ::std::error::Error for ConstraintViolation {}
        1889  +
    impl ConstraintViolation {
        1890  +
        pub(crate) fn as_validation_exception_field(
        1891  +
            self,
        1892  +
            path: ::std::string::String,
        1893  +
        ) -> crate::model::ValidationExceptionField {
        1894  +
            match self {
        1895  +
                ConstraintViolation::MapOfListOfEnumString(inner) => {
        1896  +
                    inner.as_validation_exception_field(path + "/mapOfListOfEnumString")
        1897  +
                }
        1898  +
            }
        1899  +
        }
        1900  +
    }
        1901  +
    impl ::std::convert::From<ConstraintViolation>
        1902  +
        for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
        1903  +
    {
        1904  +
        fn from(constraint_violation: ConstraintViolation) -> Self {
        1905  +
            let first_validation_exception_field =
        1906  +
                constraint_violation.as_validation_exception_field("".to_owned());
        1907  +
            let validation_exception = crate::error::ValidationException {
        1908  +
                message: format!(
        1909  +
                    "1 validation error detected. {}",
        1910  +
                    &first_validation_exception_field.message
        1911  +
                ),
        1912  +
                field_list: Some(vec![first_validation_exception_field]),
        1913  +
            };
        1914  +
            Self::ConstraintViolation(
        1915  +
                                crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
        1916  +
                                    .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        1917  +
                            )
        1918  +
        }
        1919  +
    }
        1920  +
    impl ::std::convert::From<Builder>
        1921  +
        for crate::constrained::MaybeConstrained<
        1922  +
            crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput,
        1923  +
        >
        1924  +
    {
        1925  +
        fn from(builder: Builder) -> Self {
        1926  +
            Self::Unconstrained(builder)
        1927  +
        }
        1928  +
    }
        1929  +
    impl ::std::convert::TryFrom<Builder>
        1930  +
        for crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput
        1931  +
    {
        1932  +
        type Error = ConstraintViolation;
        1933  +
        1934  +
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
        1935  +
            builder.build()
        1936  +
        }
        1937  +
    }
        1938  +
    /// A builder for [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
        1939  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        1940  +
    pub struct Builder {
        1941  +
        pub(crate) map_of_list_of_enum_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_enum_string_constrained::MapOfListOfEnumStringConstrained>>,
        1942  +
    }
        1943  +
    impl Builder {
        1944  +
        #[allow(missing_docs)] // documentation missing in model
        1945  +
        pub fn map_of_list_of_enum_string(
        1946  +
            mut self,
        1947  +
            input: ::std::option::Option<
        1948  +
                ::std::collections::HashMap<
        1949  +
                    crate::model::EnumString,
        1950  +
                    ::std::vec::Vec<crate::model::EnumString>,
        1951  +
                >,
        1952  +
            >,
        1953  +
        ) -> Self {
        1954  +
            self.map_of_list_of_enum_string =
        1955  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        1956  +
            self
        1957  +
        }
        1958  +
        #[allow(missing_docs)] // documentation missing in model
        1959  +
        pub(crate) fn set_map_of_list_of_enum_string(
        1960  +
            mut self,
        1961  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_enum_string_constrained::MapOfListOfEnumStringConstrained>>>,
        1962  +
        ) -> Self {
        1963  +
            self.map_of_list_of_enum_string = input.map(|v| v.into());
        1964  +
            self
        1965  +
        }
        1966  +
        /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
        1967  +
        ///
        1968  +
        /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput) if a [`ConstraintViolation`] occurs.
        1969  +
        ///
        1970  +
        pub fn build(
        1971  +
            self,
        1972  +
        ) -> Result<
        1973  +
            crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput,
        1974  +
            ConstraintViolation,
        1975  +
        > {
        1976  +
            self.build_enforcing_all_constraints()
        1977  +
        }
        1978  +
        fn build_enforcing_all_constraints(
        1979  +
            self,
        1980  +
        ) -> Result<
        1981  +
            crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput,
        1982  +
            ConstraintViolation,
        1983  +
        > {
        1984  +
            Ok(
        1985  +
                crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput {
        1986  +
                    map_of_list_of_enum_string: self
        1987  +
                        .map_of_list_of_enum_string
        1988  +
                        .map(|v| match v {
        1989  +
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        1990  +
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        1991  +
                        })
        1992  +
                        .map(|res| {
        1993  +
                            res.map(|v| v.into())
        1994  +
                                .map_err(ConstraintViolation::MapOfListOfEnumString)
        1995  +
                        })
        1996  +
                        .transpose()?,
        1997  +
                },
        1998  +
            )
        1999  +
        }
        2000  +
    }
        2001  +
}
        2002  +
/// See [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
        2003  +
pub mod query_params_targeting_map_of_length_list_of_pattern_string_operation_input {
        2004  +
        2005  +
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
        2006  +
    /// Holds one variant for each of the ways the builder can fail.
        2007  +
    #[non_exhaustive]
        2008  +
    #[allow(clippy::enum_variant_names)]
        2009  +
    pub enum ConstraintViolation {
        2010  +
        /// Constraint violation occurred building member `map_of_length_list_of_pattern_string` when building `QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`.
        2011  +
        #[doc(hidden)]
        2012  +
        MapOfLengthListOfPatternString(
        2013  +
            crate::model::map_of_length_list_of_pattern_string::ConstraintViolation,
        2014  +
        ),
        2015  +
    }
        2016  +
    impl ::std::fmt::Display for ConstraintViolation {
        2017  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2018  +
            match self {
        2019  +
                ConstraintViolation::MapOfLengthListOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_list_of_pattern_string` when building `QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`"),
        2020  +
            }
        2021  +
        }
        2022  +
    }
        2023  +
    impl ::std::error::Error for ConstraintViolation {}
        2024  +
    impl ConstraintViolation {
        2025  +
        pub(crate) fn as_validation_exception_field(
        2026  +
            self,
        2027  +
            path: ::std::string::String,
        2028  +
        ) -> crate::model::ValidationExceptionField {
        2029  +
            match self {
        2030  +
                ConstraintViolation::MapOfLengthListOfPatternString(inner) => {
        2031  +
                    inner.as_validation_exception_field(path + "/mapOfLengthListOfPatternString")
        2032  +
                }
        2033  +
            }
        2034  +
        }
        2035  +
    }
        2036  +
    impl ::std::convert::From<ConstraintViolation>
        2037  +
        for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
        2038  +
    {
        2039  +
        fn from(constraint_violation: ConstraintViolation) -> Self {
        2040  +
            let first_validation_exception_field =
        2041  +
                constraint_violation.as_validation_exception_field("".to_owned());
        2042  +
            let validation_exception = crate::error::ValidationException {
        2043  +
                message: format!(
        2044  +
                    "1 validation error detected. {}",
        2045  +
                    &first_validation_exception_field.message
        2046  +
                ),
        2047  +
                field_list: Some(vec![first_validation_exception_field]),
        2048  +
            };
        2049  +
            Self::ConstraintViolation(
        2050  +
                                crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
        2051  +
                                    .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        2052  +
                            )
        2053  +
        }
        2054  +
    }
        2055  +
    impl ::std::convert::From<Builder>
        2056  +
        for crate::constrained::MaybeConstrained<
        2057  +
            crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput,
        2058  +
        >
        2059  +
    {
        2060  +
        fn from(builder: Builder) -> Self {
        2061  +
            Self::Unconstrained(builder)
        2062  +
        }
        2063  +
    }
        2064  +
    impl ::std::convert::TryFrom<Builder>
        2065  +
        for crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
        2066  +
    {
        2067  +
        type Error = ConstraintViolation;
        2068  +
        2069  +
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
        2070  +
            builder.build()
        2071  +
        }
        2072  +
    }
        2073  +
    /// A builder for [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
        2074  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        2075  +
    pub struct Builder {
        2076  +
        pub(crate) map_of_length_list_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_list_of_pattern_string_constrained::MapOfLengthListOfPatternStringConstrained>>,
        2077  +
    }
        2078  +
    impl Builder {
        2079  +
        #[allow(missing_docs)] // documentation missing in model
        2080  +
        pub fn map_of_length_list_of_pattern_string(
        2081  +
            mut self,
        2082  +
            input: ::std::option::Option<
        2083  +
                ::std::collections::HashMap<
        2084  +
                    crate::model::PatternString,
        2085  +
                    crate::model::LengthListOfPatternString,
        2086  +
                >,
        2087  +
            >,
        2088  +
        ) -> Self {
        2089  +
            self.map_of_length_list_of_pattern_string =
        2090  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        2091  +
            self
        2092  +
        }
        2093  +
        #[allow(missing_docs)] // documentation missing in model
        2094  +
        pub(crate) fn set_map_of_length_list_of_pattern_string(
        2095  +
            mut self,
        2096  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_list_of_pattern_string_constrained::MapOfLengthListOfPatternStringConstrained>>>,
        2097  +
        ) -> Self {
        2098  +
            self.map_of_length_list_of_pattern_string = input.map(|v| v.into());
        2099  +
            self
        2100  +
        }
        2101  +
        /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
        2102  +
        ///
        2103  +
        /// The builder fails to construct a [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
        2104  +
        ///
        2105  +
        pub fn build(
        2106  +
            self,
        2107  +
        ) -> Result<
        2108  +
            crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput,
        2109  +
            ConstraintViolation,
        2110  +
        > {
        2111  +
            self.build_enforcing_all_constraints()
        2112  +
        }
        2113  +
        fn build_enforcing_all_constraints(
        2114  +
            self,
        2115  +
        ) -> Result<
        2116  +
            crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput,
        2117  +
            ConstraintViolation,
        2118  +
        > {
        2119  +
            Ok(
        2120  +
                crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
        2121  +
                    map_of_length_list_of_pattern_string: self
        2122  +
                        .map_of_length_list_of_pattern_string
        2123  +
                        .map(|v| match v {
        2124  +
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        2125  +
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        2126  +
                        })
        2127  +
                        .map(|res| {
        2128  +
                            res.map(|v| v.into())
        2129  +
                                .map_err(ConstraintViolation::MapOfLengthListOfPatternString)
        2130  +
                        })
        2131  +
                        .transpose()?,
        2132  +
                },
        2133  +
            )
        2134  +
        }
        2135  +
    }
        2136  +
}
        2137  +
/// See [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
        2138  +
pub mod query_params_targeting_map_of_set_of_length_string_operation_input {
        2139  +
        2140  +
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
        2141  +
    /// Holds one variant for each of the ways the builder can fail.
        2142  +
    #[non_exhaustive]
        2143  +
    #[allow(clippy::enum_variant_names)]
        2144  +
    pub enum ConstraintViolation {
        2145  +
        /// Constraint violation occurred building member `map_of_set_of_length_string` when building `QueryParamsTargetingMapOfSetOfLengthStringOperationInput`.
        2146  +
        #[doc(hidden)]
        2147  +
        MapOfSetOfLengthString(crate::model::map_of_set_of_length_string::ConstraintViolation),
        2148  +
    }
        2149  +
    impl ::std::fmt::Display for ConstraintViolation {
        2150  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2151  +
            match self {
        2152  +
                ConstraintViolation::MapOfSetOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_set_of_length_string` when building `QueryParamsTargetingMapOfSetOfLengthStringOperationInput`"),
        2153  +
            }
        2154  +
        }
        2155  +
    }
        2156  +
    impl ::std::error::Error for ConstraintViolation {}
        2157  +
    impl ConstraintViolation {
        2158  +
        pub(crate) fn as_validation_exception_field(
        2159  +
            self,
        2160  +
            path: ::std::string::String,
        2161  +
        ) -> crate::model::ValidationExceptionField {
        2162  +
            match self {
        2163  +
                ConstraintViolation::MapOfSetOfLengthString(inner) => {
        2164  +
                    inner.as_validation_exception_field(path + "/mapOfSetOfLengthString")
        2165  +
                }
        2166  +
            }
        2167  +
        }
        2168  +
    }
        2169  +
    impl ::std::convert::From<ConstraintViolation>
        2170  +
        for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
        2171  +
    {
        2172  +
        fn from(constraint_violation: ConstraintViolation) -> Self {
        2173  +
            let first_validation_exception_field =
        2174  +
                constraint_violation.as_validation_exception_field("".to_owned());
        2175  +
            let validation_exception = crate::error::ValidationException {
        2176  +
                message: format!(
        2177  +
                    "1 validation error detected. {}",
        2178  +
                    &first_validation_exception_field.message
        2179  +
                ),
        2180  +
                field_list: Some(vec![first_validation_exception_field]),
        2181  +
            };
        2182  +
            Self::ConstraintViolation(
        2183  +
                                crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
        2184  +
                                    .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        2185  +
                            )
        2186  +
        }
        2187  +
    }
        2188  +
    impl ::std::convert::From<Builder>
        2189  +
        for crate::constrained::MaybeConstrained<
        2190  +
            crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput,
        2191  +
        >
        2192  +
    {
        2193  +
        fn from(builder: Builder) -> Self {
        2194  +
            Self::Unconstrained(builder)
        2195  +
        }
        2196  +
    }
        2197  +
    impl ::std::convert::TryFrom<Builder>
        2198  +
        for crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput
        2199  +
    {
        2200  +
        type Error = ConstraintViolation;
        2201  +
        2202  +
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
        2203  +
            builder.build()
        2204  +
        }
        2205  +
    }
        2206  +
    /// A builder for [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
        2207  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        2208  +
    pub struct Builder {
        2209  +
        pub(crate) map_of_set_of_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_set_of_length_string_constrained::MapOfSetOfLengthStringConstrained>>,
        2210  +
    }
        2211  +
    impl Builder {
        2212  +
        #[allow(missing_docs)] // documentation missing in model
        2213  +
        pub fn map_of_set_of_length_string(
        2214  +
            mut self,
        2215  +
            input: ::std::option::Option<
        2216  +
                ::std::collections::HashMap<
        2217  +
                    crate::model::LengthString,
        2218  +
                    crate::model::SetOfLengthString,
        2219  +
                >,
        2220  +
            >,
        2221  +
        ) -> Self {
        2222  +
            self.map_of_set_of_length_string =
        2223  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        2224  +
            self
        2225  +
        }
        2226  +
        #[allow(missing_docs)] // documentation missing in model
        2227  +
        pub(crate) fn set_map_of_set_of_length_string(
        2228  +
            mut self,
        2229  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_set_of_length_string_constrained::MapOfSetOfLengthStringConstrained>>>,
        2230  +
        ) -> Self {
        2231  +
            self.map_of_set_of_length_string = input.map(|v| v.into());
        2232  +
            self
        2233  +
        }
        2234  +
        /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
        2235  +
        ///
        2236  +
        /// The builder fails to construct a [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput) if a [`ConstraintViolation`] occurs.
        2237  +
        ///
        2238  +
        pub fn build(
        2239  +
            self,
        2240  +
        ) -> Result<
        2241  +
            crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput,
        2242  +
            ConstraintViolation,
        2243  +
        > {
        2244  +
            self.build_enforcing_all_constraints()
        2245  +
        }
        2246  +
        fn build_enforcing_all_constraints(
        2247  +
            self,
        2248  +
        ) -> Result<
        2249  +
            crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput,
        2250  +
            ConstraintViolation,
        2251  +
        > {
        2252  +
            Ok(
        2253  +
                crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
        2254  +
                    map_of_set_of_length_string: self
        2255  +
                        .map_of_set_of_length_string
        2256  +
                        .map(|v| match v {
        2257  +
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        2258  +
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        2259  +
                        })
        2260  +
                        .map(|res| {
        2261  +
                            res.map(|v| v.into())
        2262  +
                                .map_err(ConstraintViolation::MapOfSetOfLengthString)
        2263  +
                        })
        2264  +
                        .transpose()?,
        2265  +
                },
        2266  +
            )
        2267  +
        }
        2268  +
    }
        2269  +
}
        2270  +
/// See [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
        2271  +
pub mod query_params_targeting_map_of_list_of_length_string_operation_input {
        2272  +
        2273  +
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
        2274  +
    /// Holds one variant for each of the ways the builder can fail.
        2275  +
    #[non_exhaustive]
        2276  +
    #[allow(clippy::enum_variant_names)]
        2277  +
    pub enum ConstraintViolation {
        2278  +
        /// Constraint violation occurred building member `map_of_list_of_length_string` when building `QueryParamsTargetingMapOfListOfLengthStringOperationInput`.
        2279  +
        #[doc(hidden)]
        2280  +
        MapOfListOfLengthString(crate::model::map_of_list_of_length_string::ConstraintViolation),
        2281  +
    }
        2282  +
    impl ::std::fmt::Display for ConstraintViolation {
        2283  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2284  +
            match self {
        2285  +
                ConstraintViolation::MapOfListOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_length_string` when building `QueryParamsTargetingMapOfListOfLengthStringOperationInput`"),
        2286  +
            }
        2287  +
        }
        2288  +
    }
        2289  +
    impl ::std::error::Error for ConstraintViolation {}
        2290  +
    impl ConstraintViolation {
        2291  +
        pub(crate) fn as_validation_exception_field(
        2292  +
            self,
        2293  +
            path: ::std::string::String,
        2294  +
        ) -> crate::model::ValidationExceptionField {
        2295  +
            match self {
        2296  +
                ConstraintViolation::MapOfListOfLengthString(inner) => {
        2297  +
                    inner.as_validation_exception_field(path + "/mapOfListOfLengthString")
        2298  +
                }
        2299  +
            }
        2300  +
        }
        2301  +
    }
        2302  +
    impl ::std::convert::From<ConstraintViolation>
        2303  +
        for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
        2304  +
    {
        2305  +
        fn from(constraint_violation: ConstraintViolation) -> Self {
        2306  +
            let first_validation_exception_field =
        2307  +
                constraint_violation.as_validation_exception_field("".to_owned());
        2308  +
            let validation_exception = crate::error::ValidationException {
        2309  +
                message: format!(
        2310  +
                    "1 validation error detected. {}",
        2311  +
                    &first_validation_exception_field.message
        2312  +
                ),
        2313  +
                field_list: Some(vec![first_validation_exception_field]),
        2314  +
            };
        2315  +
            Self::ConstraintViolation(
        2316  +
                                crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
        2317  +
                                    .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        2318  +
                            )
        2319  +
        }
        2320  +
    }
        2321  +
    impl ::std::convert::From<Builder>
        2322  +
        for crate::constrained::MaybeConstrained<
        2323  +
            crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput,
        2324  +
        >
        2325  +
    {
        2326  +
        fn from(builder: Builder) -> Self {
        2327  +
            Self::Unconstrained(builder)
        2328  +
        }
        2329  +
    }
        2330  +
    impl ::std::convert::TryFrom<Builder>
        2331  +
        for crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput
        2332  +
    {
        2333  +
        type Error = ConstraintViolation;
        2334  +
        2335  +
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
        2336  +
            builder.build()
        2337  +
        }
        2338  +
    }
        2339  +
    /// A builder for [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
        2340  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        2341  +
    pub struct Builder {
        2342  +
        pub(crate) map_of_list_of_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_string_constrained::MapOfListOfLengthStringConstrained>>,
        2343  +
    }
        2344  +
    impl Builder {
        2345  +
        #[allow(missing_docs)] // documentation missing in model
        2346  +
        pub fn map_of_list_of_length_string(
        2347  +
            mut self,
        2348  +
            input: ::std::option::Option<
        2349  +
                ::std::collections::HashMap<
        2350  +
                    crate::model::LengthString,
        2351  +
                    ::std::vec::Vec<crate::model::LengthString>,
        2352  +
                >,
        2353  +
            >,
        2354  +
        ) -> Self {
        2355  +
            self.map_of_list_of_length_string =
        2356  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        2357  +
            self
        2358  +
        }
        2359  +
        #[allow(missing_docs)] // documentation missing in model
        2360  +
        pub(crate) fn set_map_of_list_of_length_string(
        2361  +
            mut self,
        2362  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_string_constrained::MapOfListOfLengthStringConstrained>>>,
        2363  +
        ) -> Self {
        2364  +
            self.map_of_list_of_length_string = input.map(|v| v.into());
        2365  +
            self
        2366  +
        }
        2367  +
        /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
        2368  +
        ///
        2369  +
        /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput) if a [`ConstraintViolation`] occurs.
        2370  +
        ///
        2371  +
        pub fn build(
        2372  +
            self,
        2373  +
        ) -> Result<
        2374  +
            crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput,
        2375  +
            ConstraintViolation,
        2376  +
        > {
        2377  +
            self.build_enforcing_all_constraints()
        2378  +
        }
        2379  +
        fn build_enforcing_all_constraints(
        2380  +
            self,
        2381  +
        ) -> Result<
        2382  +
            crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput,
        2383  +
            ConstraintViolation,
        2384  +
        > {
        2385  +
            Ok(
        2386  +
                crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput {
        2387  +
                    map_of_list_of_length_string: self
        2388  +
                        .map_of_list_of_length_string
        2389  +
                        .map(|v| match v {
        2390  +
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        2391  +
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        2392  +
                        })
        2393  +
                        .map(|res| {
        2394  +
                            res.map(|v| v.into())
        2395  +
                                .map_err(ConstraintViolation::MapOfListOfLengthString)
        2396  +
                        })
        2397  +
                        .transpose()?,
        2398  +
                },
        2399  +
            )
        2400  +
        }
        2401  +
    }
        2402  +
}
        2403  +
/// See [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
        2404  +
pub mod query_params_targeting_map_of_length_string_operation_input {
        2405  +
        2406  +
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
        2407  +
    /// Holds one variant for each of the ways the builder can fail.
        2408  +
    #[non_exhaustive]
        2409  +
    #[allow(clippy::enum_variant_names)]
        2410  +
    pub enum ConstraintViolation {
        2411  +
        /// Constraint violation occurred building member `map_of_length_string` when building `QueryParamsTargetingMapOfLengthStringOperationInput`.
        2412  +
        #[doc(hidden)]
        2413  +
        MapOfLengthString(crate::model::map_of_length_string::ConstraintViolation),
        2414  +
    }
        2415  +
    impl ::std::fmt::Display for ConstraintViolation {
        2416  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2417  +
            match self {
        2418  +
                ConstraintViolation::MapOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_length_string` when building `QueryParamsTargetingMapOfLengthStringOperationInput`"),
        2419  +
            }
        2420  +
        }
        2421  +
    }
        2422  +
    impl ::std::error::Error for ConstraintViolation {}
        2423  +
    impl ConstraintViolation {
        2424  +
        pub(crate) fn as_validation_exception_field(
        2425  +
            self,
        2426  +
            path: ::std::string::String,
        2427  +
        ) -> crate::model::ValidationExceptionField {
        2428  +
            match self {
        2429  +
                ConstraintViolation::MapOfLengthString(inner) => {
        2430  +
                    inner.as_validation_exception_field(path + "/mapOfLengthString")
        2431  +
                }
        2432  +
            }
        2433  +
        }
        2434  +
    }
        2435  +
    impl ::std::convert::From<ConstraintViolation>
        2436  +
        for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
        2437  +
    {
        2438  +
        fn from(constraint_violation: ConstraintViolation) -> Self {
        2439  +
            let first_validation_exception_field =
        2440  +
                constraint_violation.as_validation_exception_field("".to_owned());
        2441  +
            let validation_exception = crate::error::ValidationException {
        2442  +
                message: format!(
        2443  +
                    "1 validation error detected. {}",
        2444  +
                    &first_validation_exception_field.message
        2445  +
                ),
        2446  +
                field_list: Some(vec![first_validation_exception_field]),
        2447  +
            };
        2448  +
            Self::ConstraintViolation(
        2449  +
                                crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
        2450  +
                                    .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        2451  +
                            )
        2452  +
        }
        2453  +
    }
        2454  +
    impl ::std::convert::From<Builder>
        2455  +
        for crate::constrained::MaybeConstrained<
        2456  +
            crate::input::QueryParamsTargetingMapOfLengthStringOperationInput,
        2457  +
        >
        2458  +
    {
        2459  +
        fn from(builder: Builder) -> Self {
        2460  +
            Self::Unconstrained(builder)
        2461  +
        }
        2462  +
    }
        2463  +
    impl ::std::convert::TryFrom<Builder>
        2464  +
        for crate::input::QueryParamsTargetingMapOfLengthStringOperationInput
        2465  +
    {
        2466  +
        type Error = ConstraintViolation;
        2467  +
        2468  +
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
        2469  +
            builder.build()
        2470  +
        }
        2471  +
    }
        2472  +
    /// A builder for [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
        2473  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        2474  +
    pub struct Builder {
        2475  +
        pub(crate) map_of_length_string: ::std::option::Option<
        2476  +
            crate::constrained::MaybeConstrained<
        2477  +
                crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained,
        2478  +
            >,
        2479  +
        >,
        2480  +
    }
        2481  +
    impl Builder {
        2482  +
        #[allow(missing_docs)] // documentation missing in model
        2483  +
        pub fn map_of_length_string(
        2484  +
            mut self,
        2485  +
            input: ::std::option::Option<
        2486  +
                ::std::collections::HashMap<crate::model::LengthString, crate::model::LengthString>,
        2487  +
            >,
        2488  +
        ) -> Self {
        2489  +
            self.map_of_length_string =
        2490  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        2491  +
            self
        2492  +
        }
        2493  +
        #[allow(missing_docs)] // documentation missing in model
        2494  +
        pub(crate) fn set_map_of_length_string(
        2495  +
            mut self,
        2496  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>>,
        2497  +
        ) -> Self {
        2498  +
            self.map_of_length_string = input.map(|v| v.into());
        2499  +
            self
        2500  +
        }
        2501  +
        /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
        2502  +
        ///
        2503  +
        /// The builder fails to construct a [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput) if a [`ConstraintViolation`] occurs.
        2504  +
        ///
        2505  +
        pub fn build(
        2506  +
            self,
        2507  +
        ) -> Result<
        2508  +
            crate::input::QueryParamsTargetingMapOfLengthStringOperationInput,
        2509  +
            ConstraintViolation,
        2510  +
        > {
        2511  +
            self.build_enforcing_all_constraints()
        2512  +
        }
        2513  +
        fn build_enforcing_all_constraints(
        2514  +
            self,
        2515  +
        ) -> Result<
        2516  +
            crate::input::QueryParamsTargetingMapOfLengthStringOperationInput,
        2517  +
            ConstraintViolation,
        2518  +
        > {
        2519  +
            Ok(
        2520  +
                crate::input::QueryParamsTargetingMapOfLengthStringOperationInput {
        2521  +
                    map_of_length_string: self
        2522  +
                        .map_of_length_string
        2523  +
                        .map(|v| match v {
        2524  +
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        2525  +
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        2526  +
                        })
        2527  +
                        .map(|res| {
        2528  +
                            res.map(|v| v.into())
        2529  +
                                .map_err(ConstraintViolation::MapOfLengthString)
        2530  +
                        })
        2531  +
                        .transpose()?,
        2532  +
                },
        2533  +
            )
        2534  +
        }
        2535  +
    }
        2536  +
}
        2537  +
/// See [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
        2538  +
pub mod query_params_targeting_length_map_operation_input {
        2539  +
        2540  +
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
        2541  +
    /// Holds one variant for each of the ways the builder can fail.
        2542  +
    #[non_exhaustive]
        2543  +
    #[allow(clippy::enum_variant_names)]
        2544  +
    pub enum ConstraintViolation {
        2545  +
        /// Constraint violation occurred building member `length_map` when building `QueryParamsTargetingLengthMapOperationInput`.
        2546  +
        #[doc(hidden)]
        2547  +
        LengthMap(crate::model::con_b_map::ConstraintViolation),
        2548  +
    }
        2549  +
    impl ::std::fmt::Display for ConstraintViolation {
        2550  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2551  +
            match self {
        2552  +
                ConstraintViolation::LengthMap(_) => write!(f, "constraint violation occurred building member `length_map` when building `QueryParamsTargetingLengthMapOperationInput`"),
        2553  +
            }
        2554  +
        }
        2555  +
    }
        2556  +
    impl ::std::error::Error for ConstraintViolation {}
        2557  +
    impl ConstraintViolation {
        2558  +
        pub(crate) fn as_validation_exception_field(
        2559  +
            self,
        2560  +
            path: ::std::string::String,
        2561  +
        ) -> crate::model::ValidationExceptionField {
        2562  +
            match self {
        2563  +
                ConstraintViolation::LengthMap(inner) => {
        2564  +
                    inner.as_validation_exception_field(path + "/lengthMap")
        2565  +
                }
        2566  +
            }
        2567  +
        }
        2568  +
    }
        2569  +
    impl ::std::convert::From<ConstraintViolation>
        2570  +
        for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
        2571  +
    {
        2572  +
        fn from(constraint_violation: ConstraintViolation) -> Self {
        2573  +
            let first_validation_exception_field =
        2574  +
                constraint_violation.as_validation_exception_field("".to_owned());
        2575  +
            let validation_exception = crate::error::ValidationException {
        2576  +
                message: format!(
        2577  +
                    "1 validation error detected. {}",
        2578  +
                    &first_validation_exception_field.message
        2579  +
                ),
        2580  +
                field_list: Some(vec![first_validation_exception_field]),
        2581  +
            };
        2582  +
            Self::ConstraintViolation(
        2583  +
                                crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
        2584  +
                                    .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        2585  +
                            )
        2586  +
        }
        2587  +
    }
        2588  +
    impl ::std::convert::From<Builder>
        2589  +
        for crate::constrained::MaybeConstrained<
        2590  +
            crate::input::QueryParamsTargetingLengthMapOperationInput,
        2591  +
        >
        2592  +
    {
        2593  +
        fn from(builder: Builder) -> Self {
        2594  +
            Self::Unconstrained(builder)
        2595  +
        }
        2596  +
    }
        2597  +
    impl ::std::convert::TryFrom<Builder>
        2598  +
        for crate::input::QueryParamsTargetingLengthMapOperationInput
        2599  +
    {
        2600  +
        type Error = ConstraintViolation;
        2601  +
        2602  +
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
        2603  +
            builder.build()
        2604  +
        }
        2605  +
    }
        2606  +
    /// A builder for [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
        2607  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        2608  +
    pub struct Builder {
        2609  +
        pub(crate) length_map:
        2610  +
            ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
        2611  +
    }
        2612  +
    impl Builder {
        2613  +
        #[allow(missing_docs)] // documentation missing in model
        2614  +
        pub fn length_map(mut self, input: ::std::option::Option<crate::model::ConBMap>) -> Self {
        2615  +
            self.length_map = input.map(crate::constrained::MaybeConstrained::Constrained);
        2616  +
            self
        2617  +
        }
        2618  +
        #[allow(missing_docs)] // documentation missing in model
        2619  +
        pub(crate) fn set_length_map(
        2620  +
            mut self,
        2621  +
            input: Option<
        2622  +
                impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
        2623  +
            >,
        2624  +
        ) -> Self {
        2625  +
            self.length_map = input.map(|v| v.into());
        2626  +
            self
        2627  +
        }
        2628  +
        /// Consumes the builder and constructs a [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
        2629  +
        ///
        2630  +
        /// The builder fails to construct a [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput) if a [`ConstraintViolation`] occurs.
        2631  +
        ///
        2632  +
        pub fn build(
        2633  +
            self,
        2634  +
        ) -> Result<crate::input::QueryParamsTargetingLengthMapOperationInput, ConstraintViolation>
        2635  +
        {
        2636  +
            self.build_enforcing_all_constraints()
        2637  +
        }
        2638  +
        fn build_enforcing_all_constraints(
        2639  +
            self,
        2640  +
        ) -> Result<crate::input::QueryParamsTargetingLengthMapOperationInput, ConstraintViolation>
        2641  +
        {
        2642  +
            Ok(crate::input::QueryParamsTargetingLengthMapOperationInput {
        2643  +
                length_map: self
        2644  +
                    .length_map
        2645  +
                    .map(|v| match v {
        2646  +
                        crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        2647  +
                        crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        2648  +
                    })
        2649  +
                    .map(|res| res.map_err(ConstraintViolation::LengthMap))
        2650  +
                    .transpose()?,
        2651  +
            })
        2652  +
        }
        2653  +
    }
        2654  +
}
        2655  +
/// See [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
        2656  +
pub mod constrained_recursive_shapes_operation_input {
        2657  +
        2658  +
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
        2659  +
    /// Holds one variant for each of the ways the builder can fail.
        2660  +
    #[non_exhaustive]
        2661  +
    #[allow(clippy::enum_variant_names)]
        2662  +
    pub enum ConstraintViolation {
        2663  +
        /// Constraint violation occurred building member `nested` when building `ConstrainedRecursiveShapesOperationInput`.
        2664  +
        #[doc(hidden)]
        2665  +
        Nested(crate::model::recursive_shapes_input_output_nested1::ConstraintViolation),
        2666  +
        /// `recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`.
        2667  +
        MissingRecursiveList,
        2668  +
        /// Constraint violation occurred building member `recursive_list` when building `ConstrainedRecursiveShapesOperationInput`.
        2669  +
        #[doc(hidden)]
        2670  +
        RecursiveList(crate::model::recursive_list::ConstraintViolation),
        2671  +
    }
        2672  +
    impl ::std::fmt::Display for ConstraintViolation {
        2673  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2674  +
            match self {
        2675  +
                ConstraintViolation::Nested(_) => write!(f, "constraint violation occurred building member `nested` when building `ConstrainedRecursiveShapesOperationInput`"),
        2676  +
                ConstraintViolation::MissingRecursiveList => write!(f, "`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`"),
        2677  +
                ConstraintViolation::RecursiveList(_) => write!(f, "constraint violation occurred building member `recursive_list` when building `ConstrainedRecursiveShapesOperationInput`"),
        2678  +
            }
        2679  +
        }
        2680  +
    }
        2681  +
    impl ::std::error::Error for ConstraintViolation {}
        2682  +
    impl ConstraintViolation {
        2683  +
        pub(crate) fn as_validation_exception_field(
        2684  +
            self,
        2685  +
            path: ::std::string::String,
        2686  +
        ) -> crate::model::ValidationExceptionField {
        2687  +
            match self {
        2688  +
            ConstraintViolation::Nested(inner) => inner.as_validation_exception_field(path + "/nested"),
        2689  +
            ConstraintViolation::MissingRecursiveList => crate::model::ValidationExceptionField {
        2690  +
                                                message: format!("Value at '{}/recursiveList' failed to satisfy constraint: Member must not be null", path),
        2691  +
                                                path: path + "/recursiveList",
        2692  +
                                            },
        2693  +
            ConstraintViolation::RecursiveList(inner) => inner.as_validation_exception_field(path + "/recursiveList"),
        2694  +
        }
        2695  +
        }
        2696  +
    }
        2697  +
    impl ::std::convert::From<ConstraintViolation>
        2698  +
        for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
        2699  +
    {
        2700  +
        fn from(constraint_violation: ConstraintViolation) -> Self {
        2701  +
            let first_validation_exception_field =
        2702  +
                constraint_violation.as_validation_exception_field("".to_owned());
        2703  +
            let validation_exception = crate::error::ValidationException {
        2704  +
                message: format!(
        2705  +
                    "1 validation error detected. {}",
        2706  +
                    &first_validation_exception_field.message
        2707  +
                ),
        2708  +
                field_list: Some(vec![first_validation_exception_field]),
        2709  +
            };
        2710  +
            Self::ConstraintViolation(
        2711  +
                                crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
        2712  +
                                    .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        2713  +
                            )
        2714  +
        }
        2715  +
    }
        2716  +
    impl ::std::convert::From<Builder>
        2717  +
        for crate::constrained::MaybeConstrained<
        2718  +
            crate::input::ConstrainedRecursiveShapesOperationInput,
        2719  +
        >
        2720  +
    {
        2721  +
        fn from(builder: Builder) -> Self {
        2722  +
            Self::Unconstrained(builder)
        2723  +
        }
        2724  +
    }
        2725  +
    impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedRecursiveShapesOperationInput {
        2726  +
        type Error = ConstraintViolation;
        2727  +
        2728  +
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
        2729  +
            builder.build()
        2730  +
        }
        2731  +
    }
        2732  +
    /// A builder for [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
        2733  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        2734  +
    pub struct Builder {
        2735  +
        pub(crate) nested: ::std::option::Option<
        2736  +
            crate::constrained::MaybeConstrained<crate::model::RecursiveShapesInputOutputNested1>,
        2737  +
        >,
        2738  +
        pub(crate) recursive_list: ::std::option::Option<
        2739  +
            crate::constrained::MaybeConstrained<
        2740  +
                crate::constrained::recursive_list_constrained::RecursiveListConstrained,
        2741  +
            >,
        2742  +
        >,
        2743  +
    }
        2744  +
    impl Builder {
        2745  +
        #[allow(missing_docs)] // documentation missing in model
        2746  +
        pub fn nested(
        2747  +
            mut self,
        2748  +
            input: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
        2749  +
        ) -> Self {
        2750  +
            self.nested = input.map(crate::constrained::MaybeConstrained::Constrained);
        2751  +
            self
        2752  +
        }
        2753  +
        #[allow(missing_docs)] // documentation missing in model
        2754  +
        pub(crate) fn set_nested(
        2755  +
            mut self,
        2756  +
            input: Option<
        2757  +
                impl ::std::convert::Into<
        2758  +
                    crate::constrained::MaybeConstrained<
        2759  +
                        crate::model::RecursiveShapesInputOutputNested1,
        2760  +
                    >,
        2761  +
                >,
        2762  +
            >,
        2763  +
        ) -> Self {
        2764  +
            self.nested = input.map(|v| v.into());
        2765  +
            self
        2766  +
        }
        2767  +
        #[allow(missing_docs)] // documentation missing in model
        2768  +
        pub fn recursive_list(
        2769  +
            mut self,
        2770  +
            input: ::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>,
        2771  +
        ) -> Self {
        2772  +
            self.recursive_list = Some(crate::constrained::MaybeConstrained::Constrained(
        2773  +
                (input).into(),
        2774  +
            ));
        2775  +
            self
        2776  +
        }
        2777  +
        #[allow(missing_docs)] // documentation missing in model
        2778  +
        pub(crate) fn set_recursive_list(
        2779  +
            mut self,
        2780  +
            input: impl ::std::convert::Into<
        2781  +
                crate::constrained::MaybeConstrained<
        2782  +
                    crate::constrained::recursive_list_constrained::RecursiveListConstrained,
        2783  +
                >,
        2784  +
            >,
        2785  +
        ) -> Self {
        2786  +
            self.recursive_list = Some(input.into());
        2787  +
            self
        2788  +
        }
        2789  +
        /// Consumes the builder and constructs a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
        2790  +
        ///
        2791  +
        /// The builder fails to construct a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput) if a [`ConstraintViolation`] occurs.
        2792  +
        ///
        2793  +
        /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
        2794  +
        pub fn build(
        2795  +
            self,
        2796  +
        ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
        2797  +
        {
        2798  +
            self.build_enforcing_all_constraints()
        2799  +
        }
        2800  +
        fn build_enforcing_all_constraints(
        2801  +
            self,
        2802  +
        ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
        2803  +
        {
        2804  +
            Ok(crate::input::ConstrainedRecursiveShapesOperationInput {
        2805  +
                nested: self
        2806  +
                    .nested
        2807  +
                    .map(|v| match v {
        2808  +
                        crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        2809  +
                        crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        2810  +
                    })
        2811  +
                    .map(|res| res.map_err(ConstraintViolation::Nested))
        2812  +
                    .transpose()?,
        2813  +
                recursive_list: self
        2814  +
                    .recursive_list
        2815  +
                    .map(|v| match v {
        2816  +
                        crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        2817  +
                        crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        2818  +
                    })
        2819  +
                    .map(|res| {
        2820  +
                        res.map(|v| v.into())
        2821  +
                            .map_err(ConstraintViolation::RecursiveList)
        2822  +
                    })
        2823  +
                    .transpose()?
        2824  +
                    .ok_or(ConstraintViolation::MissingRecursiveList)?,
        2825  +
            })
        2826  +
        }
        2827  +
    }
        2828  +
}
        2829  +
/// See [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
        2830  +
pub mod constrained_http_payload_bound_shape_operation_input {
        2831  +
        2832  +
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
        2833  +
    /// Holds one variant for each of the ways the builder can fail.
        2834  +
    #[non_exhaustive]
        2835  +
    #[allow(clippy::enum_variant_names)]
        2836  +
    pub enum ConstraintViolation {
        2837  +
        /// `http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`.
        2838  +
        MissingHttpPayloadBoundConstrainedShape,
        2839  +
        /// Constraint violation occurred building member `http_payload_bound_constrained_shape` when building `ConstrainedHttpPayloadBoundShapeOperationInput`.
        2840  +
        #[doc(hidden)]
        2841  +
        HttpPayloadBoundConstrainedShape(crate::model::con_a::ConstraintViolation),
        2842  +
    }
        2843  +
    impl ::std::fmt::Display for ConstraintViolation {
        2844  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2845  +
            match self {
        2846  +
                ConstraintViolation::MissingHttpPayloadBoundConstrainedShape => write!(f, "`http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`"),
        2847  +
                ConstraintViolation::HttpPayloadBoundConstrainedShape(_) => write!(f, "constraint violation occurred building member `http_payload_bound_constrained_shape` when building `ConstrainedHttpPayloadBoundShapeOperationInput`"),
        2848  +
            }
        2849  +
        }
        2850  +
    }
        2851  +
    impl ::std::error::Error for ConstraintViolation {}
        2852  +
    impl ConstraintViolation {
        2853  +
        pub(crate) fn as_validation_exception_field(
        2854  +
            self,
        2855  +
            path: ::std::string::String,
        2856  +
        ) -> crate::model::ValidationExceptionField {
        2857  +
            match self {
        2858  +
            ConstraintViolation::MissingHttpPayloadBoundConstrainedShape => crate::model::ValidationExceptionField {
        2859  +
                                                message: format!("Value at '{}/httpPayloadBoundConstrainedShape' failed to satisfy constraint: Member must not be null", path),
        2860  +
                                                path: path + "/httpPayloadBoundConstrainedShape",
        2861  +
                                            },
        2862  +
            ConstraintViolation::HttpPayloadBoundConstrainedShape(inner) => inner.as_validation_exception_field(path + "/httpPayloadBoundConstrainedShape"),
        2863  +
        }
        2864  +
        }
        2865  +
    }
        2866  +
    impl ::std::convert::From<ConstraintViolation>
        2867  +
        for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
        2868  +
    {
        2869  +
        fn from(constraint_violation: ConstraintViolation) -> Self {
        2870  +
            let first_validation_exception_field =
        2871  +
                constraint_violation.as_validation_exception_field("".to_owned());
        2872  +
            let validation_exception = crate::error::ValidationException {
        2873  +
                message: format!(
        2874  +
                    "1 validation error detected. {}",
        2875  +
                    &first_validation_exception_field.message
        2876  +
                ),
        2877  +
                field_list: Some(vec![first_validation_exception_field]),
        2878  +
            };
        2879  +
            Self::ConstraintViolation(
        2880  +
                                crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
        2881  +
                                    .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        2882  +
                            )
        2883  +
        }
        2884  +
    }
        2885  +
    impl ::std::convert::From<Builder>
        2886  +
        for crate::constrained::MaybeConstrained<
        2887  +
            crate::input::ConstrainedHttpPayloadBoundShapeOperationInput,
        2888  +
        >
        2889  +
    {
        2890  +
        fn from(builder: Builder) -> Self {
        2891  +
            Self::Unconstrained(builder)
        2892  +
        }
        2893  +
    }
        2894  +
    impl ::std::convert::TryFrom<Builder>
        2895  +
        for crate::input::ConstrainedHttpPayloadBoundShapeOperationInput
        2896  +
    {
        2897  +
        type Error = ConstraintViolation;
        2898  +
        2899  +
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
        2900  +
            builder.build()
        2901  +
        }
        2902  +
    }
        2903  +
    /// A builder for [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
        2904  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        2905  +
    pub struct Builder {
        2906  +
        pub(crate) http_payload_bound_constrained_shape:
        2907  +
            ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConA>>,
        2908  +
    }
        2909  +
    impl Builder {
        2910  +
        #[allow(missing_docs)] // documentation missing in model
        2911  +
        pub fn http_payload_bound_constrained_shape(mut self, input: crate::model::ConA) -> Self {
        2912  +
            self.http_payload_bound_constrained_shape =
        2913  +
                Some(crate::constrained::MaybeConstrained::Constrained(input));
        2914  +
            self
        2915  +
        }
        2916  +
        #[allow(missing_docs)] // documentation missing in model
        2917  +
        pub(crate) fn set_http_payload_bound_constrained_shape(
        2918  +
            mut self,
        2919  +
            input: impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConA>>,
        2920  +
        ) -> Self {
        2921  +
            self.http_payload_bound_constrained_shape = Some(input.into());
        2922  +
            self
        2923  +
        }
        2924  +
        /// Consumes the builder and constructs a [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
        2925  +
        ///
        2926  +
        /// The builder fails to construct a [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput) if a [`ConstraintViolation`] occurs.
        2927  +
        ///
        2928  +
        /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
        2929  +
        pub fn build(
        2930  +
            self,
        2931  +
        ) -> Result<crate::input::ConstrainedHttpPayloadBoundShapeOperationInput, ConstraintViolation>
        2932  +
        {
        2933  +
            self.build_enforcing_all_constraints()
        2934  +
        }
        2935  +
        fn build_enforcing_all_constraints(
        2936  +
            self,
        2937  +
        ) -> Result<crate::input::ConstrainedHttpPayloadBoundShapeOperationInput, ConstraintViolation>
        2938  +
        {
        2939  +
            Ok(
        2940  +
                crate::input::ConstrainedHttpPayloadBoundShapeOperationInput {
        2941  +
                    http_payload_bound_constrained_shape: self
        2942  +
                        .http_payload_bound_constrained_shape
        2943  +
                        .map(|v| match v {
        2944  +
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        2945  +
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        2946  +
                        })
        2947  +
                        .map(|res| {
        2948  +
                            res.map_err(ConstraintViolation::HttpPayloadBoundConstrainedShape)
        2949  +
                        })
        2950  +
                        .transpose()?
        2951  +
                        .ok_or(ConstraintViolation::MissingHttpPayloadBoundConstrainedShape)?,
        2952  +
                },
        2953  +
            )
        2954  +
        }
        2955  +
    }
        2956  +
}
        2957  +
/// See [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
        2958  +
pub mod constrained_http_bound_shapes_operation_input {
        2959  +
        2960  +
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
        2961  +
    /// Holds one variant for each of the ways the builder can fail.
        2962  +
    #[non_exhaustive]
        2963  +
    #[allow(clippy::enum_variant_names)]
        2964  +
    pub enum ConstraintViolation {
        2965  +
        /// `length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
        2966  +
        MissingLengthStringLabel,
        2967  +
        /// Constraint violation occurred building member `length_string_label` when building `ConstrainedHttpBoundShapesOperationInput`.
        2968  +
        #[doc(hidden)]
        2969  +
        LengthStringLabel(crate::model::length_string::ConstraintViolation),
        2970  +
        /// Constraint violation occurred building member `range_integer_label` when building `ConstrainedHttpBoundShapesOperationInput`.
        2971  +
        #[doc(hidden)]
        2972  +
        RangeIntegerLabel(crate::model::range_integer::ConstraintViolation),
        2973  +
        /// Constraint violation occurred building member `range_short_label` when building `ConstrainedHttpBoundShapesOperationInput`.
        2974  +
        #[doc(hidden)]
        2975  +
        RangeShortLabel(crate::model::range_short::ConstraintViolation),
        2976  +
        /// Constraint violation occurred building member `range_long_label` when building `ConstrainedHttpBoundShapesOperationInput`.
        2977  +
        #[doc(hidden)]
        2978  +
        RangeLongLabel(crate::model::range_long::ConstraintViolation),
        2979  +
        /// Constraint violation occurred building member `range_byte_label` when building `ConstrainedHttpBoundShapesOperationInput`.
        2980  +
        #[doc(hidden)]
        2981  +
        RangeByteLabel(crate::model::range_byte::ConstraintViolation),
        2982  +
        /// `enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
        2983  +
        MissingEnumStringLabel,
        2984  +
        /// Constraint violation occurred building member `enum_string_label` when building `ConstrainedHttpBoundShapesOperationInput`.
        2985  +
        #[doc(hidden)]
        2986  +
        EnumStringLabel(crate::model::enum_string::ConstraintViolation),
        2987  +
        /// `length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
        2988  +
        MissingLengthStringHeaderMap,
        2989  +
        /// Constraint violation occurred building member `length_string_header_map` when building `ConstrainedHttpBoundShapesOperationInput`.
        2990  +
        #[doc(hidden)]
        2991  +
        LengthStringHeaderMap(crate::model::map_of_length_string::ConstraintViolation),
        2992  +
        /// Constraint violation occurred building member `length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
        2993  +
        #[doc(hidden)]
        2994  +
        LengthStringHeader(crate::model::length_string::ConstraintViolation),
        2995  +
        /// Constraint violation occurred building member `range_integer_header` when building `ConstrainedHttpBoundShapesOperationInput`.
        2996  +
        #[doc(hidden)]
        2997  +
        RangeIntegerHeader(crate::model::range_integer::ConstraintViolation),
        2998  +
        /// Constraint violation occurred building member `range_short_header` when building `ConstrainedHttpBoundShapesOperationInput`.
        2999  +
        #[doc(hidden)]
        3000  +
        RangeShortHeader(crate::model::range_short::ConstraintViolation),
        3001  +
        /// Constraint violation occurred building member `range_long_header` when building `ConstrainedHttpBoundShapesOperationInput`.
        3002  +
        #[doc(hidden)]
        3003  +
        RangeLongHeader(crate::model::range_long::ConstraintViolation),
        3004  +
        /// Constraint violation occurred building member `range_byte_header` when building `ConstrainedHttpBoundShapesOperationInput`.
        3005  +
        #[doc(hidden)]
        3006  +
        RangeByteHeader(crate::model::range_byte::ConstraintViolation),
        3007  +
        /// Constraint violation occurred building member `length_string_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
        3008  +
        #[doc(hidden)]
        3009  +
        LengthStringSetHeader(crate::model::set_of_length_string::ConstraintViolation),
        3010  +
        /// Constraint violation occurred building member `list_length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
        3011  +
        #[doc(hidden)]
        3012  +
        ListLengthStringHeader(crate::model::list_of_length_string::ConstraintViolation),
        3013  +
        /// Constraint violation occurred building member `length_list_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
        3014  +
        #[doc(hidden)]
        3015  +
        LengthListPatternStringHeader(
        3016  +
            crate::model::length_list_of_pattern_string::ConstraintViolation,
        3017  +
        ),
        3018  +
        /// Constraint violation occurred building member `length_set_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
        3019  +
        #[doc(hidden)]
        3020  +
        LengthSetPatternStringHeader(
        3021  +
            crate::model::length_set_of_pattern_string::ConstraintViolation,
        3022  +
        ),
        3023  +
        /// Constraint violation occurred building member `range_byte_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
        3024  +
        #[doc(hidden)]
        3025  +
        RangeByteSetHeader(crate::model::set_of_range_byte::ConstraintViolation),
        3026  +
        /// Constraint violation occurred building member `range_short_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
        3027  +
        #[doc(hidden)]
        3028  +
        RangeShortSetHeader(crate::model::set_of_range_short::ConstraintViolation),
        3029  +
        /// Constraint violation occurred building member `range_integer_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
        3030  +
        #[doc(hidden)]
        3031  +
        RangeIntegerSetHeader(crate::model::set_of_range_integer::ConstraintViolation),
        3032  +
        /// Constraint violation occurred building member `range_long_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
        3033  +
        #[doc(hidden)]
        3034  +
        RangeLongSetHeader(crate::model::set_of_range_long::ConstraintViolation),
        3035  +
        /// Constraint violation occurred building member `range_byte_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
        3036  +
        #[doc(hidden)]
        3037  +
        RangeByteListHeader(crate::model::list_of_range_byte::ConstraintViolation),
        3038  +
        /// Constraint violation occurred building member `range_short_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
        3039  +
        #[doc(hidden)]
        3040  +
        RangeShortListHeader(crate::model::list_of_range_short::ConstraintViolation),
        3041  +
        /// Constraint violation occurred building member `range_integer_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
        3042  +
        #[doc(hidden)]
        3043  +
        RangeIntegerListHeader(crate::model::list_of_range_integer::ConstraintViolation),
        3044  +
        /// Constraint violation occurred building member `range_long_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
        3045  +
        #[doc(hidden)]
        3046  +
        RangeLongListHeader(crate::model::list_of_range_long::ConstraintViolation),
        3047  +
        /// Constraint violation occurred building member `length_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
        3048  +
        #[doc(hidden)]
        3049  +
        LengthStringQuery(crate::model::length_string::ConstraintViolation),
        3050  +
        /// Constraint violation occurred building member `range_byte_query` when building `ConstrainedHttpBoundShapesOperationInput`.
        3051  +
        #[doc(hidden)]
        3052  +
        RangeByteQuery(crate::model::range_byte::ConstraintViolation),
        3053  +
        /// Constraint violation occurred building member `range_short_query` when building `ConstrainedHttpBoundShapesOperationInput`.
        3054  +
        #[doc(hidden)]
        3055  +
        RangeShortQuery(crate::model::range_short::ConstraintViolation),
        3056  +
        /// Constraint violation occurred building member `range_integer_query` when building `ConstrainedHttpBoundShapesOperationInput`.
        3057  +
        #[doc(hidden)]
        3058  +
        RangeIntegerQuery(crate::model::range_integer::ConstraintViolation),
        3059  +
        /// Constraint violation occurred building member `range_long_query` when building `ConstrainedHttpBoundShapesOperationInput`.
        3060  +
        #[doc(hidden)]
        3061  +
        RangeLongQuery(crate::model::range_long::ConstraintViolation),
        3062  +
        /// Constraint violation occurred building member `enum_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
        3063  +
        #[doc(hidden)]
        3064  +
        EnumStringQuery(crate::model::enum_string::ConstraintViolation),
        3065  +
        /// Constraint violation occurred building member `length_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
        3066  +
        #[doc(hidden)]
        3067  +
        LengthStringListQuery(crate::model::list_of_length_string::ConstraintViolation),
        3068  +
        /// Constraint violation occurred building member `length_list_pattern_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
        3069  +
        #[doc(hidden)]
        3070  +
        LengthListPatternStringQuery(
        3071  +
            crate::model::length_list_of_pattern_string::ConstraintViolation,
        3072  +
        ),
        3073  +
        /// Constraint violation occurred building member `length_string_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
        3074  +
        #[doc(hidden)]
        3075  +
        LengthStringSetQuery(crate::model::set_of_length_string::ConstraintViolation),
        3076  +
        /// Constraint violation occurred building member `range_byte_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
        3077  +
        #[doc(hidden)]
        3078  +
        RangeByteListQuery(crate::model::list_of_range_byte::ConstraintViolation),
        3079  +
        /// Constraint violation occurred building member `range_short_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
        3080  +
        #[doc(hidden)]
        3081  +
        RangeShortListQuery(crate::model::list_of_range_short::ConstraintViolation),
        3082  +
        /// Constraint violation occurred building member `range_integer_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
        3083  +
        #[doc(hidden)]
        3084  +
        RangeIntegerListQuery(crate::model::list_of_range_integer::ConstraintViolation),
        3085  +
        /// Constraint violation occurred building member `range_long_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
        3086  +
        #[doc(hidden)]
        3087  +
        RangeLongListQuery(crate::model::list_of_range_long::ConstraintViolation),
        3088  +
        /// Constraint violation occurred building member `range_byte_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
        3089  +
        #[doc(hidden)]
        3090  +
        RangeByteSetQuery(crate::model::set_of_range_byte::ConstraintViolation),
        3091  +
        /// Constraint violation occurred building member `range_short_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
        3092  +
        #[doc(hidden)]
        3093  +
        RangeShortSetQuery(crate::model::set_of_range_short::ConstraintViolation),
        3094  +
        /// Constraint violation occurred building member `range_integer_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
        3095  +
        #[doc(hidden)]
        3096  +
        RangeIntegerSetQuery(crate::model::set_of_range_integer::ConstraintViolation),
        3097  +
        /// Constraint violation occurred building member `range_long_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
        3098  +
        #[doc(hidden)]
        3099  +
        RangeLongSetQuery(crate::model::set_of_range_long::ConstraintViolation),
        3100  +
        /// Constraint violation occurred building member `enum_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
        3101  +
        #[doc(hidden)]
        3102  +
        EnumStringListQuery(crate::model::list_of_enum_string::ConstraintViolation),
        3103  +
    }
        3104  +
    impl ::std::fmt::Display for ConstraintViolation {
        3105  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        3106  +
            match self {
        3107  +
                ConstraintViolation::MissingLengthStringLabel => write!(f, "`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
        3108  +
                ConstraintViolation::LengthStringLabel(_) => write!(f, "constraint violation occurred building member `length_string_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3109  +
                ConstraintViolation::RangeIntegerLabel(_) => write!(f, "constraint violation occurred building member `range_integer_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3110  +
                ConstraintViolation::RangeShortLabel(_) => write!(f, "constraint violation occurred building member `range_short_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3111  +
                ConstraintViolation::RangeLongLabel(_) => write!(f, "constraint violation occurred building member `range_long_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3112  +
                ConstraintViolation::RangeByteLabel(_) => write!(f, "constraint violation occurred building member `range_byte_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3113  +
                ConstraintViolation::MissingEnumStringLabel => write!(f, "`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
        3114  +
                ConstraintViolation::EnumStringLabel(_) => write!(f, "constraint violation occurred building member `enum_string_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3115  +
                ConstraintViolation::MissingLengthStringHeaderMap => write!(f, "`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
        3116  +
                ConstraintViolation::LengthStringHeaderMap(_) => write!(f, "constraint violation occurred building member `length_string_header_map` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3117  +
                ConstraintViolation::LengthStringHeader(_) => write!(f, "constraint violation occurred building member `length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3118  +
                ConstraintViolation::RangeIntegerHeader(_) => write!(f, "constraint violation occurred building member `range_integer_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3119  +
                ConstraintViolation::RangeShortHeader(_) => write!(f, "constraint violation occurred building member `range_short_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3120  +
                ConstraintViolation::RangeLongHeader(_) => write!(f, "constraint violation occurred building member `range_long_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3121  +
                ConstraintViolation::RangeByteHeader(_) => write!(f, "constraint violation occurred building member `range_byte_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3122  +
                ConstraintViolation::LengthStringSetHeader(_) => write!(f, "constraint violation occurred building member `length_string_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3123  +
                ConstraintViolation::ListLengthStringHeader(_) => write!(f, "constraint violation occurred building member `list_length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3124  +
                ConstraintViolation::LengthListPatternStringHeader(_) => write!(f, "constraint violation occurred building member `length_list_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3125  +
                ConstraintViolation::LengthSetPatternStringHeader(_) => write!(f, "constraint violation occurred building member `length_set_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3126  +
                ConstraintViolation::RangeByteSetHeader(_) => write!(f, "constraint violation occurred building member `range_byte_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3127  +
                ConstraintViolation::RangeShortSetHeader(_) => write!(f, "constraint violation occurred building member `range_short_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3128  +
                ConstraintViolation::RangeIntegerSetHeader(_) => write!(f, "constraint violation occurred building member `range_integer_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3129  +
                ConstraintViolation::RangeLongSetHeader(_) => write!(f, "constraint violation occurred building member `range_long_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3130  +
                ConstraintViolation::RangeByteListHeader(_) => write!(f, "constraint violation occurred building member `range_byte_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3131  +
                ConstraintViolation::RangeShortListHeader(_) => write!(f, "constraint violation occurred building member `range_short_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3132  +
                ConstraintViolation::RangeIntegerListHeader(_) => write!(f, "constraint violation occurred building member `range_integer_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3133  +
                ConstraintViolation::RangeLongListHeader(_) => write!(f, "constraint violation occurred building member `range_long_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3134  +
                ConstraintViolation::LengthStringQuery(_) => write!(f, "constraint violation occurred building member `length_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3135  +
                ConstraintViolation::RangeByteQuery(_) => write!(f, "constraint violation occurred building member `range_byte_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3136  +
                ConstraintViolation::RangeShortQuery(_) => write!(f, "constraint violation occurred building member `range_short_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3137  +
                ConstraintViolation::RangeIntegerQuery(_) => write!(f, "constraint violation occurred building member `range_integer_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3138  +
                ConstraintViolation::RangeLongQuery(_) => write!(f, "constraint violation occurred building member `range_long_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3139  +
                ConstraintViolation::EnumStringQuery(_) => write!(f, "constraint violation occurred building member `enum_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3140  +
                ConstraintViolation::LengthStringListQuery(_) => write!(f, "constraint violation occurred building member `length_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3141  +
                ConstraintViolation::LengthListPatternStringQuery(_) => write!(f, "constraint violation occurred building member `length_list_pattern_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3142  +
                ConstraintViolation::LengthStringSetQuery(_) => write!(f, "constraint violation occurred building member `length_string_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3143  +
                ConstraintViolation::RangeByteListQuery(_) => write!(f, "constraint violation occurred building member `range_byte_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3144  +
                ConstraintViolation::RangeShortListQuery(_) => write!(f, "constraint violation occurred building member `range_short_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3145  +
                ConstraintViolation::RangeIntegerListQuery(_) => write!(f, "constraint violation occurred building member `range_integer_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3146  +
                ConstraintViolation::RangeLongListQuery(_) => write!(f, "constraint violation occurred building member `range_long_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3147  +
                ConstraintViolation::RangeByteSetQuery(_) => write!(f, "constraint violation occurred building member `range_byte_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3148  +
                ConstraintViolation::RangeShortSetQuery(_) => write!(f, "constraint violation occurred building member `range_short_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3149  +
                ConstraintViolation::RangeIntegerSetQuery(_) => write!(f, "constraint violation occurred building member `range_integer_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3150  +
                ConstraintViolation::RangeLongSetQuery(_) => write!(f, "constraint violation occurred building member `range_long_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3151  +
                ConstraintViolation::EnumStringListQuery(_) => write!(f, "constraint violation occurred building member `enum_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
        3152  +
            }
        3153  +
        }
        3154  +
    }
        3155  +
    impl ::std::error::Error for ConstraintViolation {}
        3156  +
    impl ConstraintViolation {
        3157  +
        pub(crate) fn as_validation_exception_field(
        3158  +
            self,
        3159  +
            path: ::std::string::String,
        3160  +
        ) -> crate::model::ValidationExceptionField {
        3161  +
            match self {
        3162  +
            ConstraintViolation::MissingLengthStringLabel => crate::model::ValidationExceptionField {
        3163  +
                                                message: format!("Value at '{}/lengthStringLabel' failed to satisfy constraint: Member must not be null", path),
        3164  +
                                                path: path + "/lengthStringLabel",
        3165  +
                                            },
        3166  +
            ConstraintViolation::LengthStringLabel(inner) => inner.as_validation_exception_field(path + "/lengthStringLabel"),
        3167  +
            ConstraintViolation::RangeIntegerLabel(inner) => inner.as_validation_exception_field(path + "/rangeIntegerLabel"),
        3168  +
            ConstraintViolation::RangeShortLabel(inner) => inner.as_validation_exception_field(path + "/rangeShortLabel"),
        3169  +
            ConstraintViolation::RangeLongLabel(inner) => inner.as_validation_exception_field(path + "/rangeLongLabel"),
        3170  +
            ConstraintViolation::RangeByteLabel(inner) => inner.as_validation_exception_field(path + "/rangeByteLabel"),
        3171  +
            ConstraintViolation::MissingEnumStringLabel => crate::model::ValidationExceptionField {
        3172  +
                                                message: format!("Value at '{}/enumStringLabel' failed to satisfy constraint: Member must not be null", path),
        3173  +
                                                path: path + "/enumStringLabel",
        3174  +
                                            },
        3175  +
            ConstraintViolation::EnumStringLabel(inner) => inner.as_validation_exception_field(path + "/enumStringLabel"),
        3176  +
            ConstraintViolation::MissingLengthStringHeaderMap => crate::model::ValidationExceptionField {
        3177  +
                                                message: format!("Value at '{}/lengthStringHeaderMap' failed to satisfy constraint: Member must not be null", path),
        3178  +
                                                path: path + "/lengthStringHeaderMap",
        3179  +
                                            },
        3180  +
            ConstraintViolation::LengthStringHeaderMap(inner) => inner.as_validation_exception_field(path + "/lengthStringHeaderMap"),
        3181  +
            ConstraintViolation::LengthStringHeader(inner) => inner.as_validation_exception_field(path + "/lengthStringHeader"),
        3182  +
            ConstraintViolation::RangeIntegerHeader(inner) => inner.as_validation_exception_field(path + "/rangeIntegerHeader"),
        3183  +
            ConstraintViolation::RangeShortHeader(inner) => inner.as_validation_exception_field(path + "/rangeShortHeader"),
        3184  +
            ConstraintViolation::RangeLongHeader(inner) => inner.as_validation_exception_field(path + "/rangeLongHeader"),
        3185  +
            ConstraintViolation::RangeByteHeader(inner) => inner.as_validation_exception_field(path + "/rangeByteHeader"),
        3186  +
            ConstraintViolation::LengthStringSetHeader(inner) => inner.as_validation_exception_field(path + "/lengthStringSetHeader"),
        3187  +
            ConstraintViolation::ListLengthStringHeader(inner) => inner.as_validation_exception_field(path + "/listLengthStringHeader"),
        3188  +
            ConstraintViolation::LengthListPatternStringHeader(inner) => inner.as_validation_exception_field(path + "/lengthListPatternStringHeader"),
        3189  +
            ConstraintViolation::LengthSetPatternStringHeader(inner) => inner.as_validation_exception_field(path + "/lengthSetPatternStringHeader"),
        3190  +
            ConstraintViolation::RangeByteSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeByteSetHeader"),
        3191  +
            ConstraintViolation::RangeShortSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeShortSetHeader"),
        3192  +
            ConstraintViolation::RangeIntegerSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeIntegerSetHeader"),
        3193  +
            ConstraintViolation::RangeLongSetHeader(inner) => inner.as_validation_exception_field(path + "/rangeLongSetHeader"),
        3194  +
            ConstraintViolation::RangeByteListHeader(inner) => inner.as_validation_exception_field(path + "/rangeByteListHeader"),
        3195  +
            ConstraintViolation::RangeShortListHeader(inner) => inner.as_validation_exception_field(path + "/rangeShortListHeader"),
        3196  +
            ConstraintViolation::RangeIntegerListHeader(inner) => inner.as_validation_exception_field(path + "/rangeIntegerListHeader"),
        3197  +
            ConstraintViolation::RangeLongListHeader(inner) => inner.as_validation_exception_field(path + "/rangeLongListHeader"),
        3198  +
            ConstraintViolation::LengthStringQuery(inner) => inner.as_validation_exception_field(path + "/lengthStringQuery"),
        3199  +
            ConstraintViolation::RangeByteQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteQuery"),
        3200  +
            ConstraintViolation::RangeShortQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortQuery"),
        3201  +
            ConstraintViolation::RangeIntegerQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerQuery"),
        3202  +
            ConstraintViolation::RangeLongQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongQuery"),
        3203  +
            ConstraintViolation::EnumStringQuery(inner) => inner.as_validation_exception_field(path + "/enumStringQuery"),
        3204  +
            ConstraintViolation::LengthStringListQuery(inner) => inner.as_validation_exception_field(path + "/lengthStringListQuery"),
        3205  +
            ConstraintViolation::LengthListPatternStringQuery(inner) => inner.as_validation_exception_field(path + "/lengthListPatternStringQuery"),
        3206  +
            ConstraintViolation::LengthStringSetQuery(inner) => inner.as_validation_exception_field(path + "/lengthStringSetQuery"),
        3207  +
            ConstraintViolation::RangeByteListQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteListQuery"),
        3208  +
            ConstraintViolation::RangeShortListQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortListQuery"),
        3209  +
            ConstraintViolation::RangeIntegerListQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerListQuery"),
        3210  +
            ConstraintViolation::RangeLongListQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongListQuery"),
        3211  +
            ConstraintViolation::RangeByteSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteSetQuery"),
        3212  +
            ConstraintViolation::RangeShortSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortSetQuery"),
        3213  +
            ConstraintViolation::RangeIntegerSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerSetQuery"),
        3214  +
            ConstraintViolation::RangeLongSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongSetQuery"),
        3215  +
            ConstraintViolation::EnumStringListQuery(inner) => inner.as_validation_exception_field(path + "/enumStringListQuery"),
        3216  +
        }
        3217  +
        }
        3218  +
    }
        3219  +
    impl ::std::convert::From<ConstraintViolation>
        3220  +
        for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
        3221  +
    {
        3222  +
        fn from(constraint_violation: ConstraintViolation) -> Self {
        3223  +
            let first_validation_exception_field =
        3224  +
                constraint_violation.as_validation_exception_field("".to_owned());
        3225  +
            let validation_exception = crate::error::ValidationException {
        3226  +
                message: format!(
        3227  +
                    "1 validation error detected. {}",
        3228  +
                    &first_validation_exception_field.message
        3229  +
                ),
        3230  +
                field_list: Some(vec![first_validation_exception_field]),
        3231  +
            };
        3232  +
            Self::ConstraintViolation(
        3233  +
                                crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
        3234  +
                                    .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        3235  +
                            )
        3236  +
        }
        3237  +
    }
        3238  +
    impl ::std::convert::From<Builder>
        3239  +
        for crate::constrained::MaybeConstrained<
        3240  +
            crate::input::ConstrainedHttpBoundShapesOperationInput,
        3241  +
        >
        3242  +
    {
        3243  +
        fn from(builder: Builder) -> Self {
        3244  +
            Self::Unconstrained(builder)
        3245  +
        }
        3246  +
    }
        3247  +
    impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedHttpBoundShapesOperationInput {
        3248  +
        type Error = ConstraintViolation;
        3249  +
        3250  +
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
        3251  +
            builder.build()
        3252  +
        }
        3253  +
    }
        3254  +
    /// A builder for [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
        3255  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        3256  +
    pub struct Builder {
        3257  +
        pub(crate) length_string_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
        3258  +
        pub(crate) range_integer_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
        3259  +
        pub(crate) range_short_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
        3260  +
        pub(crate) range_long_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
        3261  +
        pub(crate) range_byte_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
        3262  +
        pub(crate) enum_string_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::EnumString>>,
        3263  +
        pub(crate) length_string_header_map: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>,
        3264  +
        pub(crate) length_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
        3265  +
        pub(crate) range_integer_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
        3266  +
        pub(crate) range_short_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
        3267  +
        pub(crate) range_long_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
        3268  +
        pub(crate) range_byte_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
        3269  +
        pub(crate) length_string_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>>,
        3270  +
        pub(crate) list_length_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>,
        3271  +
        pub(crate) length_list_pattern_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>>,
        3272  +
        pub(crate) length_set_pattern_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthSetOfPatternString>>,
        3273  +
        pub(crate) range_byte_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>>,
        3274  +
        pub(crate) range_short_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>>,
        3275  +
        pub(crate) range_integer_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>>,
        3276  +
        pub(crate) range_long_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>>,
        3277  +
        pub(crate) range_byte_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>,
        3278  +
        pub(crate) range_short_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>,
        3279  +
        pub(crate) range_integer_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>,
        3280  +
        pub(crate) range_long_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>,
        3281  +
        pub(crate) length_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
        3282  +
        pub(crate) range_byte_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
        3283  +
        pub(crate) range_short_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
        3284  +
        pub(crate) range_integer_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
        3285  +
        pub(crate) range_long_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
        3286  +
        pub(crate) enum_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::EnumString>>,
        3287  +
        pub(crate) length_string_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>,
        3288  +
        pub(crate) length_list_pattern_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>>,
        3289  +
        pub(crate) length_string_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>>,
        3290  +
        pub(crate) range_byte_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>,
        3291  +
        pub(crate) range_short_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>,
        3292  +
        pub(crate) range_integer_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>,
        3293  +
        pub(crate) range_long_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>,
        3294  +
        pub(crate) range_byte_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>>,
        3295  +
        pub(crate) range_short_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>>,
        3296  +
        pub(crate) range_integer_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>>,
        3297  +
        pub(crate) range_long_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>>,
        3298  +
        pub(crate) enum_string_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained>>,
        3299  +
    }
        3300  +
    impl Builder {
        3301  +
        #[allow(missing_docs)] // documentation missing in model
        3302  +
        pub fn length_string_label(mut self, input: crate::model::LengthString) -> Self {
        3303  +
            self.length_string_label =
        3304  +
                Some(crate::constrained::MaybeConstrained::Constrained(input));
        3305  +
            self
        3306  +
        }
        3307  +
        #[allow(missing_docs)] // documentation missing in model
        3308  +
        pub(crate) fn set_length_string_label(
        3309  +
            mut self,
        3310  +
            input: impl ::std::convert::Into<
        3311  +
                crate::constrained::MaybeConstrained<crate::model::LengthString>,
        3312  +
            >,
        3313  +
        ) -> Self {
        3314  +
            self.length_string_label = Some(input.into());
        3315  +
            self
        3316  +
        }
        3317  +
        #[allow(missing_docs)] // documentation missing in model
        3318  +
        pub fn range_integer_label(mut self, input: crate::model::RangeInteger) -> Self {
        3319  +
            self.range_integer_label =
        3320  +
                Some(crate::constrained::MaybeConstrained::Constrained(input));
        3321  +
            self
        3322  +
        }
        3323  +
        #[allow(missing_docs)] // documentation missing in model
        3324  +
        pub(crate) fn set_range_integer_label(
        3325  +
            mut self,
        3326  +
            input: impl ::std::convert::Into<
        3327  +
                crate::constrained::MaybeConstrained<crate::model::RangeInteger>,
        3328  +
            >,
        3329  +
        ) -> Self {
        3330  +
            self.range_integer_label = Some(input.into());
        3331  +
            self
        3332  +
        }
        3333  +
        #[allow(missing_docs)] // documentation missing in model
        3334  +
        pub fn range_short_label(mut self, input: crate::model::RangeShort) -> Self {
        3335  +
            self.range_short_label = Some(crate::constrained::MaybeConstrained::Constrained(input));
        3336  +
            self
        3337  +
        }
        3338  +
        #[allow(missing_docs)] // documentation missing in model
        3339  +
        pub(crate) fn set_range_short_label(
        3340  +
            mut self,
        3341  +
            input: impl ::std::convert::Into<
        3342  +
                crate::constrained::MaybeConstrained<crate::model::RangeShort>,
        3343  +
            >,
        3344  +
        ) -> Self {
        3345  +
            self.range_short_label = Some(input.into());
        3346  +
            self
        3347  +
        }
        3348  +
        #[allow(missing_docs)] // documentation missing in model
        3349  +
        pub fn range_long_label(mut self, input: crate::model::RangeLong) -> Self {
        3350  +
            self.range_long_label = Some(crate::constrained::MaybeConstrained::Constrained(input));
        3351  +
            self
        3352  +
        }
        3353  +
        #[allow(missing_docs)] // documentation missing in model
        3354  +
        pub(crate) fn set_range_long_label(
        3355  +
            mut self,
        3356  +
            input: impl ::std::convert::Into<
        3357  +
                crate::constrained::MaybeConstrained<crate::model::RangeLong>,
        3358  +
            >,
        3359  +
        ) -> Self {
        3360  +
            self.range_long_label = Some(input.into());
        3361  +
            self
        3362  +
        }
        3363  +
        #[allow(missing_docs)] // documentation missing in model
        3364  +
        pub fn range_byte_label(mut self, input: crate::model::RangeByte) -> Self {
        3365  +
            self.range_byte_label = Some(crate::constrained::MaybeConstrained::Constrained(input));
        3366  +
            self
        3367  +
        }
        3368  +
        #[allow(missing_docs)] // documentation missing in model
        3369  +
        pub(crate) fn set_range_byte_label(
        3370  +
            mut self,
        3371  +
            input: impl ::std::convert::Into<
        3372  +
                crate::constrained::MaybeConstrained<crate::model::RangeByte>,
        3373  +
            >,
        3374  +
        ) -> Self {
        3375  +
            self.range_byte_label = Some(input.into());
        3376  +
            self
        3377  +
        }
        3378  +
        #[allow(missing_docs)] // documentation missing in model
        3379  +
        pub fn enum_string_label(mut self, input: crate::model::EnumString) -> Self {
        3380  +
            self.enum_string_label = Some(crate::constrained::MaybeConstrained::Constrained(input));
        3381  +
            self
        3382  +
        }
        3383  +
        #[allow(missing_docs)] // documentation missing in model
        3384  +
        pub(crate) fn set_enum_string_label(
        3385  +
            mut self,
        3386  +
            input: impl ::std::convert::Into<
        3387  +
                crate::constrained::MaybeConstrained<crate::model::EnumString>,
        3388  +
            >,
        3389  +
        ) -> Self {
        3390  +
            self.enum_string_label = Some(input.into());
        3391  +
            self
        3392  +
        }
        3393  +
        #[allow(missing_docs)] // documentation missing in model
        3394  +
        pub fn length_string_header_map(
        3395  +
            mut self,
        3396  +
            input: ::std::collections::HashMap<
        3397  +
                crate::model::LengthString,
        3398  +
                crate::model::LengthString,
        3399  +
            >,
        3400  +
        ) -> Self {
        3401  +
            self.length_string_header_map = Some(
        3402  +
                crate::constrained::MaybeConstrained::Constrained((input).into()),
        3403  +
            );
        3404  +
            self
        3405  +
        }
        3406  +
        #[allow(missing_docs)] // documentation missing in model
        3407  +
        pub(crate) fn set_length_string_header_map(
        3408  +
            mut self,
        3409  +
            input: impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>,
        3410  +
        ) -> Self {
        3411  +
            self.length_string_header_map = Some(input.into());
        3412  +
            self
        3413  +
        }
        3414  +
        #[allow(missing_docs)] // documentation missing in model
        3415  +
        pub fn length_string_header(
        3416  +
            mut self,
        3417  +
            input: ::std::option::Option<crate::model::LengthString>,
        3418  +
        ) -> Self {
        3419  +
            self.length_string_header =
        3420  +
                input.map(crate::constrained::MaybeConstrained::Constrained);
        3421  +
            self
        3422  +
        }
        3423  +
        #[allow(missing_docs)] // documentation missing in model
        3424  +
        pub(crate) fn set_length_string_header(
        3425  +
            mut self,
        3426  +
            input: Option<
        3427  +
                impl ::std::convert::Into<
        3428  +
                    crate::constrained::MaybeConstrained<crate::model::LengthString>,
        3429  +
                >,
        3430  +
            >,
        3431  +
        ) -> Self {
        3432  +
            self.length_string_header = input.map(|v| v.into());
        3433  +
            self
        3434  +
        }
        3435  +
        #[allow(missing_docs)] // documentation missing in model
        3436  +
        pub fn range_integer_header(mut self, input: crate::model::RangeInteger) -> Self {
        3437  +
            self.range_integer_header =
        3438  +
                Some(crate::constrained::MaybeConstrained::Constrained(input));
        3439  +
            self
        3440  +
        }
        3441  +
        #[allow(missing_docs)] // documentation missing in model
        3442  +
        pub(crate) fn set_range_integer_header(
        3443  +
            mut self,
        3444  +
            input: impl ::std::convert::Into<
        3445  +
                crate::constrained::MaybeConstrained<crate::model::RangeInteger>,
        3446  +
            >,
        3447  +
        ) -> Self {
        3448  +
            self.range_integer_header = Some(input.into());
        3449  +
            self
        3450  +
        }
        3451  +
        #[allow(missing_docs)] // documentation missing in model
        3452  +
        pub fn range_short_header(mut self, input: crate::model::RangeShort) -> Self {
        3453  +
            self.range_short_header =
        3454  +
                Some(crate::constrained::MaybeConstrained::Constrained(input));
        3455  +
            self
        3456  +
        }
        3457  +
        #[allow(missing_docs)] // documentation missing in model
        3458  +
        pub(crate) fn set_range_short_header(
        3459  +
            mut self,
        3460  +
            input: impl ::std::convert::Into<
        3461  +
                crate::constrained::MaybeConstrained<crate::model::RangeShort>,
        3462  +
            >,
        3463  +
        ) -> Self {
        3464  +
            self.range_short_header = Some(input.into());
        3465  +
            self
        3466  +
        }
        3467  +
        #[allow(missing_docs)] // documentation missing in model
        3468  +
        pub fn range_long_header(mut self, input: crate::model::RangeLong) -> Self {
        3469  +
            self.range_long_header = Some(crate::constrained::MaybeConstrained::Constrained(input));
        3470  +
            self
        3471  +
        }
        3472  +
        #[allow(missing_docs)] // documentation missing in model
        3473  +
        pub(crate) fn set_range_long_header(
        3474  +
            mut self,
        3475  +
            input: impl ::std::convert::Into<
        3476  +
                crate::constrained::MaybeConstrained<crate::model::RangeLong>,
        3477  +
            >,
        3478  +
        ) -> Self {
        3479  +
            self.range_long_header = Some(input.into());
        3480  +
            self
        3481  +
        }
        3482  +
        #[allow(missing_docs)] // documentation missing in model
        3483  +
        pub fn range_byte_header(mut self, input: crate::model::RangeByte) -> Self {
        3484  +
            self.range_byte_header = Some(crate::constrained::MaybeConstrained::Constrained(input));
        3485  +
            self
        3486  +
        }
        3487  +
        #[allow(missing_docs)] // documentation missing in model
        3488  +
        pub(crate) fn set_range_byte_header(
        3489  +
            mut self,
        3490  +
            input: impl ::std::convert::Into<
        3491  +
                crate::constrained::MaybeConstrained<crate::model::RangeByte>,
        3492  +
            >,
        3493  +
        ) -> Self {
        3494  +
            self.range_byte_header = Some(input.into());
        3495  +
            self
        3496  +
        }
        3497  +
        #[allow(missing_docs)] // documentation missing in model
        3498  +
        pub fn length_string_set_header(
        3499  +
            mut self,
        3500  +
            input: ::std::option::Option<crate::model::SetOfLengthString>,
        3501  +
        ) -> Self {
        3502  +
            self.length_string_set_header =
        3503  +
                input.map(crate::constrained::MaybeConstrained::Constrained);
        3504  +
            self
        3505  +
        }
        3506  +
        #[allow(missing_docs)] // documentation missing in model
        3507  +
        pub(crate) fn set_length_string_set_header(
        3508  +
            mut self,
        3509  +
            input: Option<
        3510  +
                impl ::std::convert::Into<
        3511  +
                    crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>,
        3512  +
                >,
        3513  +
            >,
        3514  +
        ) -> Self {
        3515  +
            self.length_string_set_header = input.map(|v| v.into());
        3516  +
            self
        3517  +
        }
        3518  +
        #[allow(missing_docs)] // documentation missing in model
        3519  +
        pub fn list_length_string_header(
        3520  +
            mut self,
        3521  +
            input: ::std::option::Option<::std::vec::Vec<crate::model::LengthString>>,
        3522  +
        ) -> Self {
        3523  +
            self.list_length_string_header =
        3524  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        3525  +
            self
        3526  +
        }
        3527  +
        #[allow(missing_docs)] // documentation missing in model
        3528  +
        pub(crate) fn set_list_length_string_header(
        3529  +
            mut self,
        3530  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>>,
        3531  +
        ) -> Self {
        3532  +
            self.list_length_string_header = input.map(|v| v.into());
        3533  +
            self
        3534  +
        }
        3535  +
        #[allow(missing_docs)] // documentation missing in model
        3536  +
        pub fn length_list_pattern_string_header(
        3537  +
            mut self,
        3538  +
            input: ::std::option::Option<crate::model::LengthListOfPatternString>,
        3539  +
        ) -> Self {
        3540  +
            self.length_list_pattern_string_header =
        3541  +
                input.map(crate::constrained::MaybeConstrained::Constrained);
        3542  +
            self
        3543  +
        }
        3544  +
        #[allow(missing_docs)] // documentation missing in model
        3545  +
        pub(crate) fn set_length_list_pattern_string_header(
        3546  +
            mut self,
        3547  +
            input: Option<
        3548  +
                impl ::std::convert::Into<
        3549  +
                    crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>,
        3550  +
                >,
        3551  +
            >,
        3552  +
        ) -> Self {
        3553  +
            self.length_list_pattern_string_header = input.map(|v| v.into());
        3554  +
            self
        3555  +
        }
        3556  +
        #[allow(missing_docs)] // documentation missing in model
        3557  +
        pub fn length_set_pattern_string_header(
        3558  +
            mut self,
        3559  +
            input: ::std::option::Option<crate::model::LengthSetOfPatternString>,
        3560  +
        ) -> Self {
        3561  +
            self.length_set_pattern_string_header =
        3562  +
                input.map(crate::constrained::MaybeConstrained::Constrained);
        3563  +
            self
        3564  +
        }
        3565  +
        #[allow(missing_docs)] // documentation missing in model
        3566  +
        pub(crate) fn set_length_set_pattern_string_header(
        3567  +
            mut self,
        3568  +
            input: Option<
        3569  +
                impl ::std::convert::Into<
        3570  +
                    crate::constrained::MaybeConstrained<crate::model::LengthSetOfPatternString>,
        3571  +
                >,
        3572  +
            >,
        3573  +
        ) -> Self {
        3574  +
            self.length_set_pattern_string_header = input.map(|v| v.into());
        3575  +
            self
        3576  +
        }
        3577  +
        #[allow(missing_docs)] // documentation missing in model
        3578  +
        pub fn range_byte_set_header(
        3579  +
            mut self,
        3580  +
            input: ::std::option::Option<crate::model::SetOfRangeByte>,
        3581  +
        ) -> Self {
        3582  +
            self.range_byte_set_header =
        3583  +
                input.map(crate::constrained::MaybeConstrained::Constrained);
        3584  +
            self
        3585  +
        }
        3586  +
        #[allow(missing_docs)] // documentation missing in model
        3587  +
        pub(crate) fn set_range_byte_set_header(
        3588  +
            mut self,
        3589  +
            input: Option<
        3590  +
                impl ::std::convert::Into<
        3591  +
                    crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>,
        3592  +
                >,
        3593  +
            >,
        3594  +
        ) -> Self {
        3595  +
            self.range_byte_set_header = input.map(|v| v.into());
        3596  +
            self
        3597  +
        }
        3598  +
        #[allow(missing_docs)] // documentation missing in model
        3599  +
        pub fn range_short_set_header(
        3600  +
            mut self,
        3601  +
            input: ::std::option::Option<crate::model::SetOfRangeShort>,
        3602  +
        ) -> Self {
        3603  +
            self.range_short_set_header =
        3604  +
                input.map(crate::constrained::MaybeConstrained::Constrained);
        3605  +
            self
        3606  +
        }
        3607  +
        #[allow(missing_docs)] // documentation missing in model
        3608  +
        pub(crate) fn set_range_short_set_header(
        3609  +
            mut self,
        3610  +
            input: Option<
        3611  +
                impl ::std::convert::Into<
        3612  +
                    crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>,
        3613  +
                >,
        3614  +
            >,
        3615  +
        ) -> Self {
        3616  +
            self.range_short_set_header = input.map(|v| v.into());
        3617  +
            self
        3618  +
        }
        3619  +
        #[allow(missing_docs)] // documentation missing in model
        3620  +
        pub fn range_integer_set_header(
        3621  +
            mut self,
        3622  +
            input: ::std::option::Option<crate::model::SetOfRangeInteger>,
        3623  +
        ) -> Self {
        3624  +
            self.range_integer_set_header =
        3625  +
                input.map(crate::constrained::MaybeConstrained::Constrained);
        3626  +
            self
        3627  +
        }
        3628  +
        #[allow(missing_docs)] // documentation missing in model
        3629  +
        pub(crate) fn set_range_integer_set_header(
        3630  +
            mut self,
        3631  +
            input: Option<
        3632  +
                impl ::std::convert::Into<
        3633  +
                    crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>,
        3634  +
                >,
        3635  +
            >,
        3636  +
        ) -> Self {
        3637  +
            self.range_integer_set_header = input.map(|v| v.into());
        3638  +
            self
        3639  +
        }
        3640  +
        #[allow(missing_docs)] // documentation missing in model
        3641  +
        pub fn range_long_set_header(
        3642  +
            mut self,
        3643  +
            input: ::std::option::Option<crate::model::SetOfRangeLong>,
        3644  +
        ) -> Self {
        3645  +
            self.range_long_set_header =
        3646  +
                input.map(crate::constrained::MaybeConstrained::Constrained);
        3647  +
            self
        3648  +
        }
        3649  +
        #[allow(missing_docs)] // documentation missing in model
        3650  +
        pub(crate) fn set_range_long_set_header(
        3651  +
            mut self,
        3652  +
            input: Option<
        3653  +
                impl ::std::convert::Into<
        3654  +
                    crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>,
        3655  +
                >,
        3656  +
            >,
        3657  +
        ) -> Self {
        3658  +
            self.range_long_set_header = input.map(|v| v.into());
        3659  +
            self
        3660  +
        }
        3661  +
        #[allow(missing_docs)] // documentation missing in model
        3662  +
        pub fn range_byte_list_header(
        3663  +
            mut self,
        3664  +
            input: ::std::option::Option<::std::vec::Vec<crate::model::RangeByte>>,
        3665  +
        ) -> Self {
        3666  +
            self.range_byte_list_header =
        3667  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        3668  +
            self
        3669  +
        }
        3670  +
        #[allow(missing_docs)] // documentation missing in model
        3671  +
        pub(crate) fn set_range_byte_list_header(
        3672  +
            mut self,
        3673  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>>,
        3674  +
        ) -> Self {
        3675  +
            self.range_byte_list_header = input.map(|v| v.into());
        3676  +
            self
        3677  +
        }
        3678  +
        #[allow(missing_docs)] // documentation missing in model
        3679  +
        pub fn range_short_list_header(
        3680  +
            mut self,
        3681  +
            input: ::std::option::Option<::std::vec::Vec<crate::model::RangeShort>>,
        3682  +
        ) -> Self {
        3683  +
            self.range_short_list_header =
        3684  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        3685  +
            self
        3686  +
        }
        3687  +
        #[allow(missing_docs)] // documentation missing in model
        3688  +
        pub(crate) fn set_range_short_list_header(
        3689  +
            mut self,
        3690  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>>,
        3691  +
        ) -> Self {
        3692  +
            self.range_short_list_header = input.map(|v| v.into());
        3693  +
            self
        3694  +
        }
        3695  +
        #[allow(missing_docs)] // documentation missing in model
        3696  +
        pub fn range_integer_list_header(
        3697  +
            mut self,
        3698  +
            input: ::std::option::Option<::std::vec::Vec<crate::model::RangeInteger>>,
        3699  +
        ) -> Self {
        3700  +
            self.range_integer_list_header =
        3701  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        3702  +
            self
        3703  +
        }
        3704  +
        #[allow(missing_docs)] // documentation missing in model
        3705  +
        pub(crate) fn set_range_integer_list_header(
        3706  +
            mut self,
        3707  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>>,
        3708  +
        ) -> Self {
        3709  +
            self.range_integer_list_header = input.map(|v| v.into());
        3710  +
            self
        3711  +
        }
        3712  +
        #[allow(missing_docs)] // documentation missing in model
        3713  +
        pub fn range_long_list_header(
        3714  +
            mut self,
        3715  +
            input: ::std::option::Option<::std::vec::Vec<crate::model::RangeLong>>,
        3716  +
        ) -> Self {
        3717  +
            self.range_long_list_header =
        3718  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        3719  +
            self
        3720  +
        }
        3721  +
        #[allow(missing_docs)] // documentation missing in model
        3722  +
        pub(crate) fn set_range_long_list_header(
        3723  +
            mut self,
        3724  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>>,
        3725  +
        ) -> Self {
        3726  +
            self.range_long_list_header = input.map(|v| v.into());
        3727  +
            self
        3728  +
        }
        3729  +
        #[allow(missing_docs)] // documentation missing in model
        3730  +
        pub fn length_string_query(
        3731  +
            mut self,
        3732  +
            input: ::std::option::Option<crate::model::LengthString>,
        3733  +
        ) -> Self {
        3734  +
            self.length_string_query = input.map(crate::constrained::MaybeConstrained::Constrained);
        3735  +
            self
        3736  +
        }
        3737  +
        #[allow(missing_docs)] // documentation missing in model
        3738  +
        pub(crate) fn set_length_string_query(
        3739  +
            mut self,
        3740  +
            input: Option<
        3741  +
                impl ::std::convert::Into<
        3742  +
                    crate::constrained::MaybeConstrained<crate::model::LengthString>,
        3743  +
                >,
        3744  +
            >,
        3745  +
        ) -> Self {
        3746  +
            self.length_string_query = input.map(|v| v.into());
        3747  +
            self
        3748  +
        }
        3749  +
        #[allow(missing_docs)] // documentation missing in model
        3750  +
        pub fn range_byte_query(mut self, input: crate::model::RangeByte) -> Self {
        3751  +
            self.range_byte_query = Some(crate::constrained::MaybeConstrained::Constrained(input));
        3752  +
            self
        3753  +
        }
        3754  +
        #[allow(missing_docs)] // documentation missing in model
        3755  +
        pub(crate) fn set_range_byte_query(
        3756  +
            mut self,
        3757  +
            input: impl ::std::convert::Into<
        3758  +
                crate::constrained::MaybeConstrained<crate::model::RangeByte>,
        3759  +
            >,
        3760  +
        ) -> Self {
        3761  +
            self.range_byte_query = Some(input.into());
        3762  +
            self
        3763  +
        }
        3764  +
        #[allow(missing_docs)] // documentation missing in model
        3765  +
        pub fn range_short_query(mut self, input: crate::model::RangeShort) -> Self {
        3766  +
            self.range_short_query = Some(crate::constrained::MaybeConstrained::Constrained(input));
        3767  +
            self
        3768  +
        }
        3769  +
        #[allow(missing_docs)] // documentation missing in model
        3770  +
        pub(crate) fn set_range_short_query(
        3771  +
            mut self,
        3772  +
            input: impl ::std::convert::Into<
        3773  +
                crate::constrained::MaybeConstrained<crate::model::RangeShort>,
        3774  +
            >,
        3775  +
        ) -> Self {
        3776  +
            self.range_short_query = Some(input.into());
        3777  +
            self
        3778  +
        }
        3779  +
        #[allow(missing_docs)] // documentation missing in model
        3780  +
        pub fn range_integer_query(mut self, input: crate::model::RangeInteger) -> Self {
        3781  +
            self.range_integer_query =
        3782  +
                Some(crate::constrained::MaybeConstrained::Constrained(input));
        3783  +
            self
        3784  +
        }
        3785  +
        #[allow(missing_docs)] // documentation missing in model
        3786  +
        pub(crate) fn set_range_integer_query(
        3787  +
            mut self,
        3788  +
            input: impl ::std::convert::Into<
        3789  +
                crate::constrained::MaybeConstrained<crate::model::RangeInteger>,
        3790  +
            >,
        3791  +
        ) -> Self {
        3792  +
            self.range_integer_query = Some(input.into());
        3793  +
            self
        3794  +
        }
        3795  +
        #[allow(missing_docs)] // documentation missing in model
        3796  +
        pub fn range_long_query(mut self, input: crate::model::RangeLong) -> Self {
        3797  +
            self.range_long_query = Some(crate::constrained::MaybeConstrained::Constrained(input));
        3798  +
            self
        3799  +
        }
        3800  +
        #[allow(missing_docs)] // documentation missing in model
        3801  +
        pub(crate) fn set_range_long_query(
        3802  +
            mut self,
        3803  +
            input: impl ::std::convert::Into<
        3804  +
                crate::constrained::MaybeConstrained<crate::model::RangeLong>,
        3805  +
            >,
        3806  +
        ) -> Self {
        3807  +
            self.range_long_query = Some(input.into());
        3808  +
            self
        3809  +
        }
        3810  +
        #[allow(missing_docs)] // documentation missing in model
        3811  +
        pub fn enum_string_query(
        3812  +
            mut self,
        3813  +
            input: ::std::option::Option<crate::model::EnumString>,
        3814  +
        ) -> Self {
        3815  +
            self.enum_string_query = input.map(crate::constrained::MaybeConstrained::Constrained);
        3816  +
            self
        3817  +
        }
        3818  +
        #[allow(missing_docs)] // documentation missing in model
        3819  +
        pub(crate) fn set_enum_string_query(
        3820  +
            mut self,
        3821  +
            input: Option<
        3822  +
                impl ::std::convert::Into<
        3823  +
                    crate::constrained::MaybeConstrained<crate::model::EnumString>,
        3824  +
                >,
        3825  +
            >,
        3826  +
        ) -> Self {
        3827  +
            self.enum_string_query = input.map(|v| v.into());
        3828  +
            self
        3829  +
        }
        3830  +
        #[allow(missing_docs)] // documentation missing in model
        3831  +
        pub fn length_string_list_query(
        3832  +
            mut self,
        3833  +
            input: ::std::option::Option<::std::vec::Vec<crate::model::LengthString>>,
        3834  +
        ) -> Self {
        3835  +
            self.length_string_list_query =
        3836  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        3837  +
            self
        3838  +
        }
        3839  +
        #[allow(missing_docs)] // documentation missing in model
        3840  +
        pub(crate) fn set_length_string_list_query(
        3841  +
            mut self,
        3842  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>>,
        3843  +
        ) -> Self {
        3844  +
            self.length_string_list_query = input.map(|v| v.into());
        3845  +
            self
        3846  +
        }
        3847  +
        #[allow(missing_docs)] // documentation missing in model
        3848  +
        pub fn length_list_pattern_string_query(
        3849  +
            mut self,
        3850  +
            input: ::std::option::Option<crate::model::LengthListOfPatternString>,
        3851  +
        ) -> Self {
        3852  +
            self.length_list_pattern_string_query =
        3853  +
                input.map(crate::constrained::MaybeConstrained::Constrained);
        3854  +
            self
        3855  +
        }
        3856  +
        #[allow(missing_docs)] // documentation missing in model
        3857  +
        pub(crate) fn set_length_list_pattern_string_query(
        3858  +
            mut self,
        3859  +
            input: Option<
        3860  +
                impl ::std::convert::Into<
        3861  +
                    crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>,
        3862  +
                >,
        3863  +
            >,
        3864  +
        ) -> Self {
        3865  +
            self.length_list_pattern_string_query = input.map(|v| v.into());
        3866  +
            self
        3867  +
        }
        3868  +
        #[allow(missing_docs)] // documentation missing in model
        3869  +
        pub fn length_string_set_query(
        3870  +
            mut self,
        3871  +
            input: ::std::option::Option<crate::model::SetOfLengthString>,
        3872  +
        ) -> Self {
        3873  +
            self.length_string_set_query =
        3874  +
                input.map(crate::constrained::MaybeConstrained::Constrained);
        3875  +
            self
        3876  +
        }
        3877  +
        #[allow(missing_docs)] // documentation missing in model
        3878  +
        pub(crate) fn set_length_string_set_query(
        3879  +
            mut self,
        3880  +
            input: Option<
        3881  +
                impl ::std::convert::Into<
        3882  +
                    crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>,
        3883  +
                >,
        3884  +
            >,
        3885  +
        ) -> Self {
        3886  +
            self.length_string_set_query = input.map(|v| v.into());
        3887  +
            self
        3888  +
        }
        3889  +
        #[allow(missing_docs)] // documentation missing in model
        3890  +
        pub fn range_byte_list_query(
        3891  +
            mut self,
        3892  +
            input: ::std::option::Option<::std::vec::Vec<crate::model::RangeByte>>,
        3893  +
        ) -> Self {
        3894  +
            self.range_byte_list_query =
        3895  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        3896  +
            self
        3897  +
        }
        3898  +
        #[allow(missing_docs)] // documentation missing in model
        3899  +
        pub(crate) fn set_range_byte_list_query(
        3900  +
            mut self,
        3901  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>>,
        3902  +
        ) -> Self {
        3903  +
            self.range_byte_list_query = input.map(|v| v.into());
        3904  +
            self
        3905  +
        }
        3906  +
        #[allow(missing_docs)] // documentation missing in model
        3907  +
        pub fn range_short_list_query(
        3908  +
            mut self,
        3909  +
            input: ::std::option::Option<::std::vec::Vec<crate::model::RangeShort>>,
        3910  +
        ) -> Self {
        3911  +
            self.range_short_list_query =
        3912  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        3913  +
            self
        3914  +
        }
        3915  +
        #[allow(missing_docs)] // documentation missing in model
        3916  +
        pub(crate) fn set_range_short_list_query(
        3917  +
            mut self,
        3918  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>>,
        3919  +
        ) -> Self {
        3920  +
            self.range_short_list_query = input.map(|v| v.into());
        3921  +
            self
        3922  +
        }
        3923  +
        #[allow(missing_docs)] // documentation missing in model
        3924  +
        pub fn range_integer_list_query(
        3925  +
            mut self,
        3926  +
            input: ::std::option::Option<::std::vec::Vec<crate::model::RangeInteger>>,
        3927  +
        ) -> Self {
        3928  +
            self.range_integer_list_query =
        3929  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        3930  +
            self
        3931  +
        }
        3932  +
        #[allow(missing_docs)] // documentation missing in model
        3933  +
        pub(crate) fn set_range_integer_list_query(
        3934  +
            mut self,
        3935  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>>,
        3936  +
        ) -> Self {
        3937  +
            self.range_integer_list_query = input.map(|v| v.into());
        3938  +
            self
        3939  +
        }
        3940  +
        #[allow(missing_docs)] // documentation missing in model
        3941  +
        pub fn range_long_list_query(
        3942  +
            mut self,
        3943  +
            input: ::std::option::Option<::std::vec::Vec<crate::model::RangeLong>>,
        3944  +
        ) -> Self {
        3945  +
            self.range_long_list_query =
        3946  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        3947  +
            self
        3948  +
        }
        3949  +
        #[allow(missing_docs)] // documentation missing in model
        3950  +
        pub(crate) fn set_range_long_list_query(
        3951  +
            mut self,
        3952  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>>,
        3953  +
        ) -> Self {
        3954  +
            self.range_long_list_query = input.map(|v| v.into());
        3955  +
            self
        3956  +
        }
        3957  +
        #[allow(missing_docs)] // documentation missing in model
        3958  +
        pub fn range_byte_set_query(
        3959  +
            mut self,
        3960  +
            input: ::std::option::Option<crate::model::SetOfRangeByte>,
        3961  +
        ) -> Self {
        3962  +
            self.range_byte_set_query =
        3963  +
                input.map(crate::constrained::MaybeConstrained::Constrained);
        3964  +
            self
        3965  +
        }
        3966  +
        #[allow(missing_docs)] // documentation missing in model
        3967  +
        pub(crate) fn set_range_byte_set_query(
        3968  +
            mut self,
        3969  +
            input: Option<
        3970  +
                impl ::std::convert::Into<
        3971  +
                    crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>,
        3972  +
                >,
        3973  +
            >,
        3974  +
        ) -> Self {
        3975  +
            self.range_byte_set_query = input.map(|v| v.into());
        3976  +
            self
        3977  +
        }
        3978  +
        #[allow(missing_docs)] // documentation missing in model
        3979  +
        pub fn range_short_set_query(
        3980  +
            mut self,
        3981  +
            input: ::std::option::Option<crate::model::SetOfRangeShort>,
        3982  +
        ) -> Self {
        3983  +
            self.range_short_set_query =
        3984  +
                input.map(crate::constrained::MaybeConstrained::Constrained);
        3985  +
            self
        3986  +
        }
        3987  +
        #[allow(missing_docs)] // documentation missing in model
        3988  +
        pub(crate) fn set_range_short_set_query(
        3989  +
            mut self,
        3990  +
            input: Option<
        3991  +
                impl ::std::convert::Into<
        3992  +
                    crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>,
        3993  +
                >,
        3994  +
            >,
        3995  +
        ) -> Self {
        3996  +
            self.range_short_set_query = input.map(|v| v.into());
        3997  +
            self
        3998  +
        }
        3999  +
        #[allow(missing_docs)] // documentation missing in model
        4000  +
        pub fn range_integer_set_query(
        4001  +
            mut self,
        4002  +
            input: ::std::option::Option<crate::model::SetOfRangeInteger>,
        4003  +
        ) -> Self {
        4004  +
            self.range_integer_set_query =
        4005  +
                input.map(crate::constrained::MaybeConstrained::Constrained);
        4006  +
            self
        4007  +
        }
        4008  +
        #[allow(missing_docs)] // documentation missing in model
        4009  +
        pub(crate) fn set_range_integer_set_query(
        4010  +
            mut self,
        4011  +
            input: Option<
        4012  +
                impl ::std::convert::Into<
        4013  +
                    crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>,
        4014  +
                >,
        4015  +
            >,
        4016  +
        ) -> Self {
        4017  +
            self.range_integer_set_query = input.map(|v| v.into());
        4018  +
            self
        4019  +
        }
        4020  +
        #[allow(missing_docs)] // documentation missing in model
        4021  +
        pub fn range_long_set_query(
        4022  +
            mut self,
        4023  +
            input: ::std::option::Option<crate::model::SetOfRangeLong>,
        4024  +
        ) -> Self {
        4025  +
            self.range_long_set_query =
        4026  +
                input.map(crate::constrained::MaybeConstrained::Constrained);
        4027  +
            self
        4028  +
        }
        4029  +
        #[allow(missing_docs)] // documentation missing in model
        4030  +
        pub(crate) fn set_range_long_set_query(
        4031  +
            mut self,
        4032  +
            input: Option<
        4033  +
                impl ::std::convert::Into<
        4034  +
                    crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>,
        4035  +
                >,
        4036  +
            >,
        4037  +
        ) -> Self {
        4038  +
            self.range_long_set_query = input.map(|v| v.into());
        4039  +
            self
        4040  +
        }
        4041  +
        #[allow(missing_docs)] // documentation missing in model
        4042  +
        pub fn enum_string_list_query(
        4043  +
            mut self,
        4044  +
            input: ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
        4045  +
        ) -> Self {
        4046  +
            self.enum_string_list_query =
        4047  +
                input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
        4048  +
            self
        4049  +
        }
        4050  +
        #[allow(missing_docs)] // documentation missing in model
        4051  +
        pub(crate) fn set_enum_string_list_query(
        4052  +
            mut self,
        4053  +
            input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained>>>,
        4054  +
        ) -> Self {
        4055  +
            self.enum_string_list_query = input.map(|v| v.into());
        4056  +
            self
        4057  +
        }
        4058  +
        /// Consumes the builder and constructs a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
        4059  +
        ///
        4060  +
        /// The builder fails to construct a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput) if a [`ConstraintViolation`] occurs.
        4061  +
        ///
        4062  +
        /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
        4063  +
        pub fn build(
        4064  +
            self,
        4065  +
        ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
        4066  +
        {
        4067  +
            self.build_enforcing_all_constraints()
        4068  +
        }
        4069  +
        fn build_enforcing_all_constraints(
        4070  +
            self,
        4071  +
        ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
        4072  +
        {
        4073  +
            Ok(
        4074  +
                crate::input::ConstrainedHttpBoundShapesOperationInput {
        4075  +
                    length_string_label: self.length_string_label
        4076  +
                        .map(|v| match v {
        4077  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4078  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4079  +
                                        })
        4080  +
                        .map(|res|
        4081  +
                                        res.map_err(ConstraintViolation::LengthStringLabel)
        4082  +
                                    )
        4083  +
                                    .transpose()?
        4084  +
                        .ok_or(ConstraintViolation::MissingLengthStringLabel)?
        4085  +
                    ,
        4086  +
                    range_integer_label: self.range_integer_label
        4087  +
                        .map(|v| match v {
        4088  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4089  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4090  +
                                        })
        4091  +
                        .map(|res|
        4092  +
                                        res.map_err(ConstraintViolation::RangeIntegerLabel)
        4093  +
                                    )
        4094  +
                                    .transpose()?
        4095  +
                        .unwrap_or_else(||
        4096  +
                                            0i32
        4097  +
                                                .try_into()
        4098  +
                                                .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        4099  +
                                        )
        4100  +
                    ,
        4101  +
                    range_short_label: self.range_short_label
        4102  +
                        .map(|v| match v {
        4103  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4104  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4105  +
                                        })
        4106  +
                        .map(|res|
        4107  +
                                        res.map_err(ConstraintViolation::RangeShortLabel)
        4108  +
                                    )
        4109  +
                                    .transpose()?
        4110  +
                        .unwrap_or_else(||
        4111  +
                                            0i16
        4112  +
                                                .try_into()
        4113  +
                                                .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        4114  +
                                        )
        4115  +
                    ,
        4116  +
                    range_long_label: self.range_long_label
        4117  +
                        .map(|v| match v {
        4118  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4119  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4120  +
                                        })
        4121  +
                        .map(|res|
        4122  +
                                        res.map_err(ConstraintViolation::RangeLongLabel)
        4123  +
                                    )
        4124  +
                                    .transpose()?
        4125  +
                        .unwrap_or_else(||
        4126  +
                                            0i64
        4127  +
                                                .try_into()
        4128  +
                                                .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        4129  +
                                        )
        4130  +
                    ,
        4131  +
                    range_byte_label: self.range_byte_label
        4132  +
                        .map(|v| match v {
        4133  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4134  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4135  +
                                        })
        4136  +
                        .map(|res|
        4137  +
                                        res.map_err(ConstraintViolation::RangeByteLabel)
        4138  +
                                    )
        4139  +
                                    .transpose()?
        4140  +
                        .unwrap_or_else(||
        4141  +
                                            0i8
        4142  +
                                                .try_into()
        4143  +
                                                .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        4144  +
                                        )
        4145  +
                    ,
        4146  +
                    enum_string_label: self.enum_string_label
        4147  +
                        .map(|v| match v {
        4148  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4149  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4150  +
                                        })
        4151  +
                        .map(|res|
        4152  +
                                        res.map_err(ConstraintViolation::EnumStringLabel)
        4153  +
                                    )
        4154  +
                                    .transpose()?
        4155  +
                        .ok_or(ConstraintViolation::MissingEnumStringLabel)?
        4156  +
                    ,
        4157  +
                    length_string_header_map: self.length_string_header_map
        4158  +
                        .map(|v| match v {
        4159  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4160  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4161  +
                                        })
        4162  +
                        .map(|res|
        4163  +
                                        res.map(|v| v.into()).map_err(ConstraintViolation::LengthStringHeaderMap)
        4164  +
                                    )
        4165  +
                                    .transpose()?
        4166  +
                        .ok_or(ConstraintViolation::MissingLengthStringHeaderMap)?
        4167  +
                    ,
        4168  +
                    length_string_header: self.length_string_header
        4169  +
                        .map(|v| match v {
        4170  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4171  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4172  +
                                        })
        4173  +
                        .map(|res|
        4174  +
                                        res.map_err(ConstraintViolation::LengthStringHeader)
        4175  +
                                    )
        4176  +
                                    .transpose()?
        4177  +
                    ,
        4178  +
                    range_integer_header: self.range_integer_header
        4179  +
                        .map(|v| match v {
        4180  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4181  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4182  +
                                        })
        4183  +
                        .map(|res|
        4184  +
                                        res.map_err(ConstraintViolation::RangeIntegerHeader)
        4185  +
                                    )
        4186  +
                                    .transpose()?
        4187  +
                        .unwrap_or_else(||
        4188  +
                                            0i32
        4189  +
                                                .try_into()
        4190  +
                                                .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        4191  +
                                        )
        4192  +
                    ,
        4193  +
                    range_short_header: self.range_short_header
        4194  +
                        .map(|v| match v {
        4195  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4196  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4197  +
                                        })
        4198  +
                        .map(|res|
        4199  +
                                        res.map_err(ConstraintViolation::RangeShortHeader)
        4200  +
                                    )
        4201  +
                                    .transpose()?
        4202  +
                        .unwrap_or_else(||
        4203  +
                                            0i16
        4204  +
                                                .try_into()
        4205  +
                                                .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        4206  +
                                        )
        4207  +
                    ,
        4208  +
                    range_long_header: self.range_long_header
        4209  +
                        .map(|v| match v {
        4210  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4211  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4212  +
                                        })
        4213  +
                        .map(|res|
        4214  +
                                        res.map_err(ConstraintViolation::RangeLongHeader)
        4215  +
                                    )
        4216  +
                                    .transpose()?
        4217  +
                        .unwrap_or_else(||
        4218  +
                                            0i64
        4219  +
                                                .try_into()
        4220  +
                                                .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        4221  +
                                        )
        4222  +
                    ,
        4223  +
                    range_byte_header: self.range_byte_header
        4224  +
                        .map(|v| match v {
        4225  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4226  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4227  +
                                        })
        4228  +
                        .map(|res|
        4229  +
                                        res.map_err(ConstraintViolation::RangeByteHeader)
        4230  +
                                    )
        4231  +
                                    .transpose()?
        4232  +
                        .unwrap_or_else(||
        4233  +
                                            0i8
        4234  +
                                                .try_into()
        4235  +
                                                .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        4236  +
                                        )
        4237  +
                    ,
        4238  +
                    length_string_set_header: self.length_string_set_header
        4239  +
                        .map(|v| match v {
        4240  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4241  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4242  +
                                        })
        4243  +
                        .map(|res|
        4244  +
                                        res.map_err(ConstraintViolation::LengthStringSetHeader)
        4245  +
                                    )
        4246  +
                                    .transpose()?
        4247  +
                    ,
        4248  +
                    list_length_string_header: self.list_length_string_header
        4249  +
                        .map(|v| match v {
        4250  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4251  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4252  +
                                        })
        4253  +
                        .map(|res|
        4254  +
                                        res.map(|v| v.into()).map_err(ConstraintViolation::ListLengthStringHeader)
        4255  +
                                    )
        4256  +
                                    .transpose()?
        4257  +
                    ,
        4258  +
                    length_list_pattern_string_header: self.length_list_pattern_string_header
        4259  +
                        .map(|v| match v {
        4260  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4261  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4262  +
                                        })
        4263  +
                        .map(|res|
        4264  +
                                        res.map_err(ConstraintViolation::LengthListPatternStringHeader)
        4265  +
                                    )
        4266  +
                                    .transpose()?
        4267  +
                    ,
        4268  +
                    length_set_pattern_string_header: self.length_set_pattern_string_header
        4269  +
                        .map(|v| match v {
        4270  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4271  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4272  +
                                        })
        4273  +
                        .map(|res|
        4274  +
                                        res.map_err(ConstraintViolation::LengthSetPatternStringHeader)
        4275  +
                                    )
        4276  +
                                    .transpose()?
        4277  +
                    ,
        4278  +
                    range_byte_set_header: self.range_byte_set_header
        4279  +
                        .map(|v| match v {
        4280  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4281  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4282  +
                                        })
        4283  +
                        .map(|res|
        4284  +
                                        res.map_err(ConstraintViolation::RangeByteSetHeader)
        4285  +
                                    )
        4286  +
                                    .transpose()?
        4287  +
                    ,
        4288  +
                    range_short_set_header: self.range_short_set_header
        4289  +
                        .map(|v| match v {
        4290  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4291  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4292  +
                                        })
        4293  +
                        .map(|res|
        4294  +
                                        res.map_err(ConstraintViolation::RangeShortSetHeader)
        4295  +
                                    )
        4296  +
                                    .transpose()?
        4297  +
                    ,
        4298  +
                    range_integer_set_header: self.range_integer_set_header
        4299  +
                        .map(|v| match v {
        4300  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4301  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4302  +
                                        })
        4303  +
                        .map(|res|
        4304  +
                                        res.map_err(ConstraintViolation::RangeIntegerSetHeader)
        4305  +
                                    )
        4306  +
                                    .transpose()?
        4307  +
                    ,
        4308  +
                    range_long_set_header: self.range_long_set_header
        4309  +
                        .map(|v| match v {
        4310  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4311  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4312  +
                                        })
        4313  +
                        .map(|res|
        4314  +
                                        res.map_err(ConstraintViolation::RangeLongSetHeader)
        4315  +
                                    )
        4316  +
                                    .transpose()?
        4317  +
                    ,
        4318  +
                    range_byte_list_header: self.range_byte_list_header
        4319  +
                        .map(|v| match v {
        4320  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4321  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4322  +
                                        })
        4323  +
                        .map(|res|
        4324  +
                                        res.map(|v| v.into()).map_err(ConstraintViolation::RangeByteListHeader)
        4325  +
                                    )
        4326  +
                                    .transpose()?
        4327  +
                    ,
        4328  +
                    range_short_list_header: self.range_short_list_header
        4329  +
                        .map(|v| match v {
        4330  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4331  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4332  +
                                        })
        4333  +
                        .map(|res|
        4334  +
                                        res.map(|v| v.into()).map_err(ConstraintViolation::RangeShortListHeader)
        4335  +
                                    )
        4336  +
                                    .transpose()?
        4337  +
                    ,
        4338  +
                    range_integer_list_header: self.range_integer_list_header
        4339  +
                        .map(|v| match v {
        4340  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4341  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4342  +
                                        })
        4343  +
                        .map(|res|
        4344  +
                                        res.map(|v| v.into()).map_err(ConstraintViolation::RangeIntegerListHeader)
        4345  +
                                    )
        4346  +
                                    .transpose()?
        4347  +
                    ,
        4348  +
                    range_long_list_header: self.range_long_list_header
        4349  +
                        .map(|v| match v {
        4350  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4351  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4352  +
                                        })
        4353  +
                        .map(|res|
        4354  +
                                        res.map(|v| v.into()).map_err(ConstraintViolation::RangeLongListHeader)
        4355  +
                                    )
        4356  +
                                    .transpose()?
        4357  +
                    ,
        4358  +
                    length_string_query: self.length_string_query
        4359  +
                        .map(|v| match v {
        4360  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4361  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4362  +
                                        })
        4363  +
                        .map(|res|
        4364  +
                                        res.map_err(ConstraintViolation::LengthStringQuery)
        4365  +
                                    )
        4366  +
                                    .transpose()?
        4367  +
                    ,
        4368  +
                    range_byte_query: self.range_byte_query
        4369  +
                        .map(|v| match v {
        4370  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4371  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4372  +
                                        })
        4373  +
                        .map(|res|
        4374  +
                                        res.map_err(ConstraintViolation::RangeByteQuery)
        4375  +
                                    )
        4376  +
                                    .transpose()?
        4377  +
                        .unwrap_or_else(||
        4378  +
                                            0i8
        4379  +
                                                .try_into()
        4380  +
                                                .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        4381  +
                                        )
        4382  +
                    ,
        4383  +
                    range_short_query: self.range_short_query
        4384  +
                        .map(|v| match v {
        4385  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4386  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4387  +
                                        })
        4388  +
                        .map(|res|
        4389  +
                                        res.map_err(ConstraintViolation::RangeShortQuery)
        4390  +
                                    )
        4391  +
                                    .transpose()?
        4392  +
                        .unwrap_or_else(||
        4393  +
                                            0i16
        4394  +
                                                .try_into()
        4395  +
                                                .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        4396  +
                                        )
        4397  +
                    ,
        4398  +
                    range_integer_query: self.range_integer_query
        4399  +
                        .map(|v| match v {
        4400  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4401  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4402  +
                                        })
        4403  +
                        .map(|res|
        4404  +
                                        res.map_err(ConstraintViolation::RangeIntegerQuery)
        4405  +
                                    )
        4406  +
                                    .transpose()?
        4407  +
                        .unwrap_or_else(||
        4408  +
                                            0i32
        4409  +
                                                .try_into()
        4410  +
                                                .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        4411  +
                                        )
        4412  +
                    ,
        4413  +
                    range_long_query: self.range_long_query
        4414  +
                        .map(|v| match v {
        4415  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4416  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4417  +
                                        })
        4418  +
                        .map(|res|
        4419  +
                                        res.map_err(ConstraintViolation::RangeLongQuery)
        4420  +
                                    )
        4421  +
                                    .transpose()?
        4422  +
                        .unwrap_or_else(||
        4423  +
                                            0i64
        4424  +
                                                .try_into()
        4425  +
                                                .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        4426  +
                                        )
        4427  +
                    ,
        4428  +
                    enum_string_query: self.enum_string_query
        4429  +
                        .map(|v| match v {
        4430  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4431  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4432  +
                                        })
        4433  +
                        .map(|res|
        4434  +
                                        res.map_err(ConstraintViolation::EnumStringQuery)
        4435  +
                                    )
        4436  +
                                    .transpose()?
        4437  +
                    ,
        4438  +
                    length_string_list_query: self.length_string_list_query
        4439  +
                        .map(|v| match v {
        4440  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4441  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4442  +
                                        })
        4443  +
                        .map(|res|
        4444  +
                                        res.map(|v| v.into()).map_err(ConstraintViolation::LengthStringListQuery)
        4445  +
                                    )
        4446  +
                                    .transpose()?
        4447  +
                    ,
        4448  +
                    length_list_pattern_string_query: self.length_list_pattern_string_query
        4449  +
                        .map(|v| match v {
        4450  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4451  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4452  +
                                        })
        4453  +
                        .map(|res|
        4454  +
                                        res.map_err(ConstraintViolation::LengthListPatternStringQuery)
        4455  +
                                    )
        4456  +
                                    .transpose()?
        4457  +
                    ,
        4458  +
                    length_string_set_query: self.length_string_set_query
        4459  +
                        .map(|v| match v {
        4460  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4461  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4462  +
                                        })
        4463  +
                        .map(|res|
        4464  +
                                        res.map_err(ConstraintViolation::LengthStringSetQuery)
        4465  +
                                    )
        4466  +
                                    .transpose()?
        4467  +
                    ,
        4468  +
                    range_byte_list_query: self.range_byte_list_query
        4469  +
                        .map(|v| match v {
        4470  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4471  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4472  +
                                        })
        4473  +
                        .map(|res|
        4474  +
                                        res.map(|v| v.into()).map_err(ConstraintViolation::RangeByteListQuery)
        4475  +
                                    )
        4476  +
                                    .transpose()?
        4477  +
                    ,
        4478  +
                    range_short_list_query: self.range_short_list_query
        4479  +
                        .map(|v| match v {
        4480  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4481  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4482  +
                                        })
        4483  +
                        .map(|res|
        4484  +
                                        res.map(|v| v.into()).map_err(ConstraintViolation::RangeShortListQuery)
        4485  +
                                    )
        4486  +
                                    .transpose()?
        4487  +
                    ,
        4488  +
                    range_integer_list_query: self.range_integer_list_query
        4489  +
                        .map(|v| match v {
        4490  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4491  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4492  +
                                        })
        4493  +
                        .map(|res|
        4494  +
                                        res.map(|v| v.into()).map_err(ConstraintViolation::RangeIntegerListQuery)
        4495  +
                                    )
        4496  +
                                    .transpose()?
        4497  +
                    ,
        4498  +
                    range_long_list_query: self.range_long_list_query
        4499  +
                        .map(|v| match v {
        4500  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4501  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4502  +
                                        })
        4503  +
                        .map(|res|
        4504  +
                                        res.map(|v| v.into()).map_err(ConstraintViolation::RangeLongListQuery)
        4505  +
                                    )
        4506  +
                                    .transpose()?
        4507  +
                    ,
        4508  +
                    range_byte_set_query: self.range_byte_set_query
        4509  +
                        .map(|v| match v {
        4510  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4511  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4512  +
                                        })
        4513  +
                        .map(|res|
        4514  +
                                        res.map_err(ConstraintViolation::RangeByteSetQuery)
        4515  +
                                    )
        4516  +
                                    .transpose()?
        4517  +
                    ,
        4518  +
                    range_short_set_query: self.range_short_set_query
        4519  +
                        .map(|v| match v {
        4520  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4521  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4522  +
                                        })
        4523  +
                        .map(|res|
        4524  +
                                        res.map_err(ConstraintViolation::RangeShortSetQuery)
        4525  +
                                    )
        4526  +
                                    .transpose()?
        4527  +
                    ,
        4528  +
                    range_integer_set_query: self.range_integer_set_query
        4529  +
                        .map(|v| match v {
        4530  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4531  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4532  +
                                        })
        4533  +
                        .map(|res|
        4534  +
                                        res.map_err(ConstraintViolation::RangeIntegerSetQuery)
        4535  +
                                    )
        4536  +
                                    .transpose()?
        4537  +
                    ,
        4538  +
                    range_long_set_query: self.range_long_set_query
        4539  +
                        .map(|v| match v {
        4540  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4541  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4542  +
                                        })
        4543  +
                        .map(|res|
        4544  +
                                        res.map_err(ConstraintViolation::RangeLongSetQuery)
        4545  +
                                    )
        4546  +
                                    .transpose()?
        4547  +
                    ,
        4548  +
                    enum_string_list_query: self.enum_string_list_query
        4549  +
                        .map(|v| match v {
        4550  +
                                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4551  +
                                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4552  +
                                        })
        4553  +
                        .map(|res|
        4554  +
                                        res.map(|v| v.into()).map_err(ConstraintViolation::EnumStringListQuery)
        4555  +
                                    )
        4556  +
                                    .transpose()?
        4557  +
                    ,
        4558  +
                }
        4559  +
            )
        4560  +
        }
        4561  +
    }
        4562  +
}
        4563  +
/// See [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
        4564  +
pub mod constrained_shapes_only_in_output_operation_input {
        4565  +
        4566  +
    impl ::std::convert::From<Builder> for crate::input::ConstrainedShapesOnlyInOutputOperationInput {
        4567  +
        fn from(builder: Builder) -> Self {
        4568  +
            builder.build()
        4569  +
        }
        4570  +
    }
        4571  +
    /// A builder for [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
        4572  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        4573  +
    pub struct Builder {}
        4574  +
    impl Builder {
        4575  +
        /// Consumes the builder and constructs a [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
        4576  +
        pub fn build(self) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
        4577  +
            self.build_enforcing_all_constraints()
        4578  +
        }
        4579  +
        fn build_enforcing_all_constraints(
        4580  +
            self,
        4581  +
        ) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
        4582  +
            crate::input::ConstrainedShapesOnlyInOutputOperationInput {}
        4583  +
        }
        4584  +
    }
        4585  +
}
        4586  +
/// See [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
        4587  +
pub mod constrained_shapes_operation_input {
        4588  +
        4589  +
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
        4590  +
    /// Holds one variant for each of the ways the builder can fail.
        4591  +
    #[non_exhaustive]
        4592  +
    #[allow(clippy::enum_variant_names)]
        4593  +
    pub enum ConstraintViolation {
        4594  +
        /// `con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`.
        4595  +
        MissingConA,
        4596  +
        /// Constraint violation occurred building member `con_a` when building `ConstrainedShapesOperationInput`.
        4597  +
        #[doc(hidden)]
        4598  +
        ConA(crate::model::con_a::ConstraintViolation),
        4599  +
    }
        4600  +
    impl ::std::fmt::Display for ConstraintViolation {
        4601  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        4602  +
            match self {
        4603  +
                ConstraintViolation::MissingConA => write!(f, "`con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`"),
        4604  +
                ConstraintViolation::ConA(_) => write!(f, "constraint violation occurred building member `con_a` when building `ConstrainedShapesOperationInput`"),
        4605  +
            }
        4606  +
        }
        4607  +
    }
        4608  +
    impl ::std::error::Error for ConstraintViolation {}
        4609  +
    impl ConstraintViolation {
        4610  +
        pub(crate) fn as_validation_exception_field(
        4611  +
            self,
        4612  +
            path: ::std::string::String,
        4613  +
        ) -> crate::model::ValidationExceptionField {
        4614  +
            match self {
        4615  +
                ConstraintViolation::MissingConA => crate::model::ValidationExceptionField {
        4616  +
                    message: format!(
        4617  +
                        "Value at '{}/conA' failed to satisfy constraint: Member must not be null",
        4618  +
                        path
        4619  +
                    ),
        4620  +
                    path: path + "/conA",
        4621  +
                },
        4622  +
                ConstraintViolation::ConA(inner) => {
        4623  +
                    inner.as_validation_exception_field(path + "/conA")
        4624  +
                }
        4625  +
            }
        4626  +
        }
        4627  +
    }
        4628  +
    impl ::std::convert::From<ConstraintViolation>
        4629  +
        for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
        4630  +
    {
        4631  +
        fn from(constraint_violation: ConstraintViolation) -> Self {
        4632  +
            let first_validation_exception_field =
        4633  +
                constraint_violation.as_validation_exception_field("".to_owned());
        4634  +
            let validation_exception = crate::error::ValidationException {
        4635  +
                message: format!(
        4636  +
                    "1 validation error detected. {}",
        4637  +
                    &first_validation_exception_field.message
        4638  +
                ),
        4639  +
                field_list: Some(vec![first_validation_exception_field]),
        4640  +
            };
        4641  +
            Self::ConstraintViolation(
        4642  +
                                crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
        4643  +
                                    .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
        4644  +
                            )
        4645  +
        }
        4646  +
    }
        4647  +
    impl ::std::convert::From<Builder>
        4648  +
        for crate::constrained::MaybeConstrained<crate::input::ConstrainedShapesOperationInput>
        4649  +
    {
        4650  +
        fn from(builder: Builder) -> Self {
        4651  +
            Self::Unconstrained(builder)
        4652  +
        }
        4653  +
    }
        4654  +
    impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedShapesOperationInput {
        4655  +
        type Error = ConstraintViolation;
        4656  +
        4657  +
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
        4658  +
            builder.build()
        4659  +
        }
        4660  +
    }
        4661  +
    /// A builder for [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
        4662  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        4663  +
    pub struct Builder {
        4664  +
        pub(crate) con_a:
        4665  +
            ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConA>>,
        4666  +
    }
        4667  +
    impl Builder {
        4668  +
        #[allow(missing_docs)] // documentation missing in model
        4669  +
        pub fn con_a(mut self, input: crate::model::ConA) -> Self {
        4670  +
            self.con_a = Some(crate::constrained::MaybeConstrained::Constrained(input));
        4671  +
            self
        4672  +
        }
        4673  +
        #[allow(missing_docs)] // documentation missing in model
        4674  +
        pub(crate) fn set_con_a(
        4675  +
            mut self,
        4676  +
            input: impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConA>>,
        4677  +
        ) -> Self {
        4678  +
            self.con_a = Some(input.into());
        4679  +
            self
        4680  +
        }
        4681  +
        /// Consumes the builder and constructs a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
        4682  +
        ///
        4683  +
        /// The builder fails to construct a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput) if a [`ConstraintViolation`] occurs.
        4684  +
        ///
        4685  +
        /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
        4686  +
        pub fn build(
        4687  +
            self,
        4688  +
        ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
        4689  +
            self.build_enforcing_all_constraints()
        4690  +
        }
        4691  +
        fn build_enforcing_all_constraints(
        4692  +
            self,
        4693  +
        ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
        4694  +
            Ok(crate::input::ConstrainedShapesOperationInput {
        4695  +
                con_a: self
        4696  +
                    .con_a
        4697  +
                    .map(|v| match v {
        4698  +
                        crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        4699  +
                        crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        4700  +
                    })
        4701  +
                    .map(|res| res.map_err(ConstraintViolation::ConA))
        4702  +
                    .transpose()?
        4703  +
                    .ok_or(ConstraintViolation::MissingConA)?,
        4704  +
            })
        4705  +
        }
        4706  +
    }
        4707  +
}