Server Test Python

Server Test Python

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-server-test-python/constraints_without_public_constrained_types/rust-server-codegen-python/src/unconstrained.rs

@@ -1,1 +1879,2320 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
           3  +
/* UnconstrainedUnionGenerator.kt:121 */
    3      4   
impl crate::constrained::Constrained for crate::model::ConstrainedUnion {
    4      5   
    type Unconstrained =
    5      6   
        crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained;
    6      7   
}
    7      8   
    8      9   
impl From<crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained>
    9     10   
    for crate::constrained::MaybeConstrained<crate::model::ConstrainedUnion>
   10     11   
{
   11     12   
    fn from(
   12     13   
        value: crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained,
   13     14   
    ) -> Self {
   14     15   
        Self::Unconstrained(value)
   15     16   
    }
   16     17   
}
   17     18   
   18     19   
pub(crate) mod map_of_enum_string_unconstrained {
   19     20   
          21  +
    /* UnconstrainedMapGenerator.kt:79 */
   20     22   
    #[derive(Debug, Clone)]
   21     23   
    pub(crate) struct MapOfEnumStringUnconstrained(
   22     24   
        pub(crate) std::collections::HashMap<::std::string::String, ::std::string::String>,
   23     25   
    );
   24     26   
   25     27   
    impl From<MapOfEnumStringUnconstrained>
   26     28   
        for crate::constrained::MaybeConstrained<
   27     29   
            crate::constrained::map_of_enum_string_constrained::MapOfEnumStringConstrained,
   28     30   
        >
   29     31   
    {
   30     32   
        fn from(value: MapOfEnumStringUnconstrained) -> Self {
   31     33   
            Self::Unconstrained(value)
   32     34   
        }
   33     35   
    }
          36  +
    /* UnconstrainedMapGenerator.kt:101 */
   34     37   
    impl std::convert::TryFrom<MapOfEnumStringUnconstrained>
   35     38   
        for crate::constrained::map_of_enum_string_constrained::MapOfEnumStringConstrained
   36     39   
    {
          40  +
        /* UnconstrainedMapGenerator.kt:102 */
   37     41   
        type Error = crate::model::map_of_enum_string_internal::ConstraintViolation;
          42  +
        /* UnconstrainedMapGenerator.kt:104 */
   38     43   
        fn try_from(value: MapOfEnumStringUnconstrained) -> std::result::Result<Self, Self::Error> {
          44  +
            /* UnconstrainedMapGenerator.kt:186 */
   39     45   
            let res: ::std::result::Result<
   40     46   
                ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
   41     47   
                Self::Error,
   42     48   
            > = value
   43     49   
                .0
   44     50   
                .into_iter()
   45     51   
                .map(|(k, v)| {
   46     52   
                    let k: crate::model::EnumString = k.try_into().map_err(Self::Error::Key)?;
   47     53   
   48     54   
                    match crate::model::EnumString::try_from(v) {
   49     55   
                        Ok(v) => Ok((k, v)),
   50     56   
                        Err(inner_constraint_violation) => {
   51     57   
                            Err(Self::Error::Value(k, inner_constraint_violation))
   52     58   
                        }
   53     59   
                    }
   54     60   
                })
   55     61   
                .collect();
   56     62   
            let hm = res?;
          63  +
            /* UnconstrainedMapGenerator.kt:247 */
   57     64   
            Ok(Self(hm))
          65  +
            /* UnconstrainedMapGenerator.kt:104 */
   58     66   
        }
          67  +
        /* UnconstrainedMapGenerator.kt:101 */
   59     68   
    }
          69  +
          70  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
   60     71   
}
   61     72   
pub(crate) mod con_b_map_unconstrained {
   62     73   
          74  +
    /* UnconstrainedMapGenerator.kt:79 */
   63     75   
    #[derive(Debug, Clone)]
   64     76   
    pub(crate) struct ConBMapUnconstrained(
   65     77   
        pub(crate) std::collections::HashMap<::std::string::String, ::std::string::String>,
   66     78   
    );
   67     79   
   68     80   
    impl From<ConBMapUnconstrained> for crate::constrained::MaybeConstrained<crate::model::ConBMap> {
   69     81   
        fn from(value: ConBMapUnconstrained) -> Self {
   70     82   
            Self::Unconstrained(value)
   71     83   
        }
   72     84   
    }
          85  +
    /* UnconstrainedMapGenerator.kt:101 */
   73     86   
    impl std::convert::TryFrom<ConBMapUnconstrained> for crate::model::ConBMap {
          87  +
        /* UnconstrainedMapGenerator.kt:102 */
   74     88   
        type Error = crate::model::con_b_map_internal::ConstraintViolation;
          89  +
        /* UnconstrainedMapGenerator.kt:104 */
   75     90   
        fn try_from(value: ConBMapUnconstrained) -> std::result::Result<Self, Self::Error> {
          91  +
            /* UnconstrainedMapGenerator.kt:186 */
   76     92   
            let res: ::std::result::Result<
   77     93   
                ::std::collections::HashMap<::std::string::String, crate::model::LengthString>,
   78     94   
                Self::Error,
   79     95   
            > = value
   80     96   
                .0
   81     97   
                .into_iter()
   82     98   
                .map(|(k, v)| match crate::model::LengthString::try_from(v) {
   83     99   
                    Ok(v) => Ok((k, v)),
   84    100   
                    Err(inner_constraint_violation) => {
   85    101   
                        Err(Self::Error::Value(k, inner_constraint_violation))
   86    102   
                    }
   87    103   
                })
   88    104   
                .collect();
   89    105   
            let hm = res?;
         106  +
            /* UnconstrainedMapGenerator.kt:245 */
   90    107   
            Self::try_from(hm)
         108  +
            /* UnconstrainedMapGenerator.kt:104 */
   91    109   
        }
         110  +
        /* UnconstrainedMapGenerator.kt:101 */
   92    111   
    }
         112  +
         113  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
   93    114   
}
   94    115   
pub(crate) mod map_of_list_of_length_pattern_string_unconstrained {
   95    116   
         117  +
    /* UnconstrainedMapGenerator.kt:79 */
   96    118   
    #[derive(Debug, Clone)]
   97    119   
    pub(crate) struct MapOfListOfLengthPatternStringUnconstrained(pub(crate) std::collections::HashMap<::std::string::String, crate::unconstrained::list_of_length_pattern_string_unconstrained::ListOfLengthPatternStringUnconstrained>);
   98    120   
   99    121   
    impl From<MapOfListOfLengthPatternStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_pattern_string_constrained::MapOfListOfLengthPatternStringConstrained> {
  100    122   
                        fn from(value: MapOfListOfLengthPatternStringUnconstrained) -> Self {
  101    123   
                            Self::Unconstrained(value)
  102    124   
                        }
  103    125   
                    }
         126  +
    /* UnconstrainedMapGenerator.kt:101 */
  104    127   
    impl std::convert::TryFrom<MapOfListOfLengthPatternStringUnconstrained> for crate::constrained::map_of_list_of_length_pattern_string_constrained::MapOfListOfLengthPatternStringConstrained {
  105         -
        type Error = crate::model::map_of_list_of_length_pattern_string_internal::ConstraintViolation;
  106         -
        fn try_from(value: MapOfListOfLengthPatternStringUnconstrained) -> std::result::Result<Self, Self::Error> {
  107         -
            let res: ::std::result::Result<::std::collections::HashMap<crate::model::LengthPatternString, crate::constrained::list_of_length_pattern_string_constrained::ListOfLengthPatternStringConstrained>, Self::Error> = value.0
         128  +
        /* UnconstrainedMapGenerator.kt:102 */type Error = crate::model::map_of_list_of_length_pattern_string_internal::ConstraintViolation;
         129  +
        /* UnconstrainedMapGenerator.kt:104 */fn try_from(value: MapOfListOfLengthPatternStringUnconstrained) -> std::result::Result<Self, Self::Error> {
         130  +
            /* UnconstrainedMapGenerator.kt:186 */let res: ::std::result::Result<::std::collections::HashMap<crate::model::LengthPatternString, crate::constrained::list_of_length_pattern_string_constrained::ListOfLengthPatternStringConstrained>, Self::Error> = value.0
  108    131   
                                        .into_iter()
  109    132   
                                        .map(|(k, v)| {
  110    133   
                                            let k: crate::model::LengthPatternString = k.try_into().map_err(Self::Error::Key)?;
  111    134   
            
  112    135   
            match crate::constrained::list_of_length_pattern_string_constrained::ListOfLengthPatternStringConstrained::try_from(v) {
  113    136   
                                                    Ok(v) => Ok((k, v)),
  114    137   
                                                    Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
  115    138   
                                                }
  116    139   
                                        })
  117    140   
                                        .collect();
  118    141   
                                    let hm = res?;
  119         -
            Ok(Self(hm))
  120         -
        }
  121         -
    }
         142  +
            /* UnconstrainedMapGenerator.kt:247 */Ok(Self(hm))
         143  +
        /* UnconstrainedMapGenerator.kt:104 */}
         144  +
    /* UnconstrainedMapGenerator.kt:101 */}
         145  +
         146  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  122    147   
}
  123    148   
pub(crate) mod list_of_length_pattern_string_unconstrained {
  124    149   
         150  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  125    151   
    #[derive(Debug, Clone)]
  126    152   
    pub(crate) struct ListOfLengthPatternStringUnconstrained(
  127    153   
        pub(crate) std::vec::Vec<::std::string::String>,
  128    154   
    );
  129    155   
  130    156   
    impl From<ListOfLengthPatternStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::list_of_length_pattern_string_constrained::ListOfLengthPatternStringConstrained> {
  131    157   
                        fn from(value: ListOfLengthPatternStringUnconstrained) -> Self {
  132    158   
                            Self::Unconstrained(value)
  133    159   
                        }
  134    160   
                    }
         161  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  135    162   
    impl std::convert::TryFrom<ListOfLengthPatternStringUnconstrained> for crate::constrained::list_of_length_pattern_string_constrained::ListOfLengthPatternStringConstrained {
  136         -
        type Error = crate::model::list_of_length_pattern_string_internal::ConstraintViolation;
  137         -
        fn try_from(value: ListOfLengthPatternStringUnconstrained) -> std::result::Result<Self, Self::Error> {
  138         -
            let res: ::std::result::Result<::std::vec::Vec<crate::model::LengthPatternString>, (usize, crate::model::length_pattern_string_internal::ConstraintViolation) > = value
         163  +
        /* UnconstrainedCollectionGenerator.kt:98 */type Error = crate::model::list_of_length_pattern_string_internal::ConstraintViolation;
         164  +
        /* UnconstrainedCollectionGenerator.kt:100 */fn try_from(value: ListOfLengthPatternStringUnconstrained) -> std::result::Result<Self, Self::Error> {
         165  +
            /* UnconstrainedCollectionGenerator.kt:127 */let res: ::std::result::Result<::std::vec::Vec<crate::model::LengthPatternString>, (usize, crate::model::length_pattern_string_internal::ConstraintViolation) > = value
  139    166   
                                        .0
  140    167   
                                        .into_iter()
  141    168   
                                        .enumerate()
  142    169   
                                        .map(|(idx, inner)| {
  143    170   
                                            inner.try_into().map_err(|inner_violation| (idx, inner_violation))
  144    171   
                                        })
  145    172   
                                        .collect();
  146    173   
                                    let inner = res
  147    174   
                                        
  148    175   
                                        .map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
  149         -
            Ok(Self(inner))
  150         -
        }
  151         -
    }
         176  +
            /* UnconstrainedCollectionGenerator.kt:191 */Ok(Self(inner))
         177  +
        /* UnconstrainedCollectionGenerator.kt:100 */}
         178  +
    /* UnconstrainedCollectionGenerator.kt:97 */}
         179  +
         180  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  152    181   
}
  153    182   
pub(crate) mod map_of_length_pattern_string_unconstrained {
  154    183   
         184  +
    /* UnconstrainedMapGenerator.kt:79 */
  155    185   
    #[derive(Debug, Clone)]
  156    186   
    pub(crate) struct MapOfLengthPatternStringUnconstrained(
  157    187   
        pub(crate) std::collections::HashMap<::std::string::String, ::std::string::String>,
  158    188   
    );
  159    189   
  160    190   
    impl From<MapOfLengthPatternStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained> {
  161    191   
                        fn from(value: MapOfLengthPatternStringUnconstrained) -> Self {
  162    192   
                            Self::Unconstrained(value)
  163    193   
                        }
  164    194   
                    }
         195  +
    /* UnconstrainedMapGenerator.kt:101 */
  165    196   
    impl std::convert::TryFrom<MapOfLengthPatternStringUnconstrained> for crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained {
  166         -
        type Error = crate::model::map_of_length_pattern_string_internal::ConstraintViolation;
  167         -
        fn try_from(value: MapOfLengthPatternStringUnconstrained) -> std::result::Result<Self, Self::Error> {
  168         -
            let res: ::std::result::Result<::std::collections::HashMap<crate::model::LengthPatternString, crate::model::LengthPatternString>, Self::Error> = value.0
         197  +
        /* UnconstrainedMapGenerator.kt:102 */type Error = crate::model::map_of_length_pattern_string_internal::ConstraintViolation;
         198  +
        /* UnconstrainedMapGenerator.kt:104 */fn try_from(value: MapOfLengthPatternStringUnconstrained) -> std::result::Result<Self, Self::Error> {
         199  +
            /* UnconstrainedMapGenerator.kt:186 */let res: ::std::result::Result<::std::collections::HashMap<crate::model::LengthPatternString, crate::model::LengthPatternString>, Self::Error> = value.0
  169    200   
                                        .into_iter()
  170    201   
                                        .map(|(k, v)| {
  171    202   
                                            let k: crate::model::LengthPatternString = k.try_into().map_err(Self::Error::Key)?;
  172    203   
            
  173    204   
            match crate::model::LengthPatternString::try_from(v) {
  174    205   
                                                    Ok(v) => Ok((k, v)),
  175    206   
                                                    Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
  176    207   
                                                }
  177    208   
                                        })
  178    209   
                                        .collect();
  179    210   
                                    let hm = res?;
  180         -
            Ok(Self(hm))
  181         -
        }
  182         -
    }
         211  +
            /* UnconstrainedMapGenerator.kt:247 */Ok(Self(hm))
         212  +
        /* UnconstrainedMapGenerator.kt:104 */}
         213  +
    /* UnconstrainedMapGenerator.kt:101 */}
         214  +
         215  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  183    216   
}
  184    217   
pub(crate) mod map_of_list_of_pattern_string_unconstrained {
  185    218   
         219  +
    /* UnconstrainedMapGenerator.kt:79 */
  186    220   
    #[derive(Debug, Clone)]
  187    221   
    pub(crate) struct MapOfListOfPatternStringUnconstrained(pub(crate) std::collections::HashMap<::std::string::String, crate::unconstrained::list_of_pattern_string_unconstrained::ListOfPatternStringUnconstrained>);
  188    222   
  189    223   
    impl From<MapOfListOfPatternStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_pattern_string_constrained::MapOfListOfPatternStringConstrained> {
  190    224   
                        fn from(value: MapOfListOfPatternStringUnconstrained) -> Self {
  191    225   
                            Self::Unconstrained(value)
  192    226   
                        }
  193    227   
                    }
         228  +
    /* UnconstrainedMapGenerator.kt:101 */
  194    229   
    impl std::convert::TryFrom<MapOfListOfPatternStringUnconstrained> for crate::constrained::map_of_list_of_pattern_string_constrained::MapOfListOfPatternStringConstrained {
  195         -
        type Error = crate::model::map_of_list_of_pattern_string_internal::ConstraintViolation;
  196         -
        fn try_from(value: MapOfListOfPatternStringUnconstrained) -> std::result::Result<Self, Self::Error> {
  197         -
            let res: ::std::result::Result<::std::collections::HashMap<crate::model::PatternString, crate::constrained::list_of_pattern_string_constrained::ListOfPatternStringConstrained>, Self::Error> = value.0
         230  +
        /* UnconstrainedMapGenerator.kt:102 */type Error = crate::model::map_of_list_of_pattern_string_internal::ConstraintViolation;
         231  +
        /* UnconstrainedMapGenerator.kt:104 */fn try_from(value: MapOfListOfPatternStringUnconstrained) -> std::result::Result<Self, Self::Error> {
         232  +
            /* UnconstrainedMapGenerator.kt:186 */let res: ::std::result::Result<::std::collections::HashMap<crate::model::PatternString, crate::constrained::list_of_pattern_string_constrained::ListOfPatternStringConstrained>, Self::Error> = value.0
  198    233   
                                        .into_iter()
  199    234   
                                        .map(|(k, v)| {
  200    235   
                                            let k: crate::model::PatternString = k.try_into().map_err(Self::Error::Key)?;
  201    236   
            
  202    237   
            match crate::constrained::list_of_pattern_string_constrained::ListOfPatternStringConstrained::try_from(v) {
  203    238   
                                                    Ok(v) => Ok((k, v)),
  204    239   
                                                    Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
  205    240   
                                                }
  206    241   
                                        })
  207    242   
                                        .collect();
  208    243   
                                    let hm = res?;
  209         -
            Ok(Self(hm))
  210         -
        }
  211         -
    }
         244  +
            /* UnconstrainedMapGenerator.kt:247 */Ok(Self(hm))
         245  +
        /* UnconstrainedMapGenerator.kt:104 */}
         246  +
    /* UnconstrainedMapGenerator.kt:101 */}
         247  +
         248  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  212    249   
}
  213    250   
pub(crate) mod list_of_pattern_string_unconstrained {
  214    251   
         252  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  215    253   
    #[derive(Debug, Clone)]
  216    254   
    pub(crate) struct ListOfPatternStringUnconstrained(
  217    255   
        pub(crate) std::vec::Vec<::std::string::String>,
  218    256   
    );
  219    257   
  220    258   
    impl From<ListOfPatternStringUnconstrained>
  221    259   
        for crate::constrained::MaybeConstrained<
  222    260   
            crate::constrained::list_of_pattern_string_constrained::ListOfPatternStringConstrained,
  223    261   
        >
  224    262   
    {
  225    263   
        fn from(value: ListOfPatternStringUnconstrained) -> Self {
  226    264   
            Self::Unconstrained(value)
  227    265   
        }
  228    266   
    }
         267  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  229    268   
    impl std::convert::TryFrom<ListOfPatternStringUnconstrained>
  230    269   
        for crate::constrained::list_of_pattern_string_constrained::ListOfPatternStringConstrained
  231    270   
    {
         271  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  232    272   
        type Error = crate::model::list_of_pattern_string_internal::ConstraintViolation;
         273  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  233    274   
        fn try_from(
  234    275   
            value: ListOfPatternStringUnconstrained,
  235    276   
        ) -> std::result::Result<Self, Self::Error> {
         277  +
            /* UnconstrainedCollectionGenerator.kt:127 */
  236    278   
            let res: ::std::result::Result<
  237    279   
                ::std::vec::Vec<crate::model::PatternString>,
  238    280   
                (
  239    281   
                    usize,
  240    282   
                    crate::model::pattern_string_internal::ConstraintViolation,
  241    283   
                ),
  242    284   
            > = value
  243    285   
                .0
  244    286   
                .into_iter()
  245    287   
                .enumerate()
  246    288   
                .map(|(idx, inner)| {
  247    289   
                    inner
  248    290   
                        .try_into()
  249    291   
                        .map_err(|inner_violation| (idx, inner_violation))
  250    292   
                })
  251    293   
                .collect();
  252    294   
            let inner =
  253    295   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         296  +
            /* UnconstrainedCollectionGenerator.kt:191 */
  254    297   
            Ok(Self(inner))
         298  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  255    299   
        }
         300  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  256    301   
    }
         302  +
         303  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  257    304   
}
  258    305   
pub(crate) mod map_of_pattern_string_unconstrained {
  259    306   
         307  +
    /* UnconstrainedMapGenerator.kt:79 */
  260    308   
    #[derive(Debug, Clone)]
  261    309   
    pub(crate) struct MapOfPatternStringUnconstrained(
  262    310   
        pub(crate) std::collections::HashMap<::std::string::String, ::std::string::String>,
  263    311   
    );
  264    312   
  265    313   
    impl From<MapOfPatternStringUnconstrained>
  266    314   
        for crate::constrained::MaybeConstrained<
  267    315   
            crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained,
  268    316   
        >
  269    317   
    {
  270    318   
        fn from(value: MapOfPatternStringUnconstrained) -> Self {
  271    319   
            Self::Unconstrained(value)
  272    320   
        }
  273    321   
    }
         322  +
    /* UnconstrainedMapGenerator.kt:101 */
  274    323   
    impl std::convert::TryFrom<MapOfPatternStringUnconstrained>
  275    324   
        for crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained
  276    325   
    {
         326  +
        /* UnconstrainedMapGenerator.kt:102 */
  277    327   
        type Error = crate::model::map_of_pattern_string_internal::ConstraintViolation;
         328  +
        /* UnconstrainedMapGenerator.kt:104 */
  278    329   
        fn try_from(
  279    330   
            value: MapOfPatternStringUnconstrained,
  280    331   
        ) -> std::result::Result<Self, Self::Error> {
         332  +
            /* UnconstrainedMapGenerator.kt:186 */
  281    333   
            let res: ::std::result::Result<
  282    334   
                ::std::collections::HashMap<
  283    335   
                    crate::model::PatternString,
  284    336   
                    crate::model::PatternString,
  285    337   
                >,
  286    338   
                Self::Error,
  287    339   
            > = value
  288    340   
                .0
  289    341   
                .into_iter()
  290    342   
                .map(|(k, v)| {
  291    343   
                    let k: crate::model::PatternString = k.try_into().map_err(Self::Error::Key)?;
  292    344   
  293    345   
                    match crate::model::PatternString::try_from(v) {
  294    346   
                        Ok(v) => Ok((k, v)),
  295    347   
                        Err(inner_constraint_violation) => {
  296    348   
                            Err(Self::Error::Value(k, inner_constraint_violation))
  297    349   
                        }
  298    350   
                    }
  299    351   
                })
  300    352   
                .collect();
  301    353   
            let hm = res?;
         354  +
            /* UnconstrainedMapGenerator.kt:247 */
  302    355   
            Ok(Self(hm))
         356  +
            /* UnconstrainedMapGenerator.kt:104 */
  303    357   
        }
         358  +
        /* UnconstrainedMapGenerator.kt:101 */
  304    359   
    }
         360  +
         361  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  305    362   
}
  306    363   
pub(crate) mod map_of_list_of_enum_string_unconstrained {
  307    364   
         365  +
    /* UnconstrainedMapGenerator.kt:79 */
  308    366   
    #[derive(Debug, Clone)]
  309    367   
    pub(crate) struct MapOfListOfEnumStringUnconstrained(
  310    368   
        pub(crate)  std::collections::HashMap<
  311    369   
            ::std::string::String,
  312    370   
            crate::unconstrained::list_of_enum_string_unconstrained::ListOfEnumStringUnconstrained,
  313    371   
        >,
  314    372   
    );
  315    373   
  316    374   
    impl From<MapOfListOfEnumStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_enum_string_constrained::MapOfListOfEnumStringConstrained> {
  317    375   
                        fn from(value: MapOfListOfEnumStringUnconstrained) -> Self {
  318    376   
                            Self::Unconstrained(value)
  319    377   
                        }
  320    378   
                    }
         379  +
    /* UnconstrainedMapGenerator.kt:101 */
  321    380   
    impl std::convert::TryFrom<MapOfListOfEnumStringUnconstrained> for crate::constrained::map_of_list_of_enum_string_constrained::MapOfListOfEnumStringConstrained {
  322         -
        type Error = crate::model::map_of_list_of_enum_string_internal::ConstraintViolation;
  323         -
        fn try_from(value: MapOfListOfEnumStringUnconstrained) -> std::result::Result<Self, Self::Error> {
  324         -
            let res: ::std::result::Result<::std::collections::HashMap<crate::model::EnumString, crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained>, Self::Error> = value.0
         381  +
        /* UnconstrainedMapGenerator.kt:102 */type Error = crate::model::map_of_list_of_enum_string_internal::ConstraintViolation;
         382  +
        /* UnconstrainedMapGenerator.kt:104 */fn try_from(value: MapOfListOfEnumStringUnconstrained) -> std::result::Result<Self, Self::Error> {
         383  +
            /* UnconstrainedMapGenerator.kt:186 */let res: ::std::result::Result<::std::collections::HashMap<crate::model::EnumString, crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained>, Self::Error> = value.0
  325    384   
                                        .into_iter()
  326    385   
                                        .map(|(k, v)| {
  327    386   
                                            let k: crate::model::EnumString = k.try_into().map_err(Self::Error::Key)?;
  328    387   
            
  329    388   
            match crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained::try_from(v) {
  330    389   
                                                    Ok(v) => Ok((k, v)),
  331    390   
                                                    Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
  332    391   
                                                }
  333    392   
                                        })
  334    393   
                                        .collect();
  335    394   
                                    let hm = res?;
  336         -
            Ok(Self(hm))
  337         -
        }
  338         -
    }
         395  +
            /* UnconstrainedMapGenerator.kt:247 */Ok(Self(hm))
         396  +
        /* UnconstrainedMapGenerator.kt:104 */}
         397  +
    /* UnconstrainedMapGenerator.kt:101 */}
         398  +
         399  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  339    400   
}
  340    401   
pub(crate) mod list_of_enum_string_unconstrained {
  341    402   
         403  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  342    404   
    #[derive(Debug, Clone)]
  343    405   
    pub(crate) struct ListOfEnumStringUnconstrained(
  344    406   
        pub(crate) std::vec::Vec<::std::string::String>,
  345    407   
    );
  346    408   
  347    409   
    impl From<ListOfEnumStringUnconstrained>
  348    410   
        for crate::constrained::MaybeConstrained<
  349    411   
            crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained,
  350    412   
        >
  351    413   
    {
  352    414   
        fn from(value: ListOfEnumStringUnconstrained) -> Self {
  353    415   
            Self::Unconstrained(value)
  354    416   
        }
  355    417   
    }
         418  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  356    419   
    impl std::convert::TryFrom<ListOfEnumStringUnconstrained>
  357    420   
        for crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained
  358    421   
    {
         422  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  359    423   
        type Error = crate::model::list_of_enum_string_internal::ConstraintViolation;
         424  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  360    425   
        fn try_from(
  361    426   
            value: ListOfEnumStringUnconstrained,
  362    427   
        ) -> std::result::Result<Self, Self::Error> {
         428  +
            /* UnconstrainedCollectionGenerator.kt:127 */
  363    429   
            let res: ::std::result::Result<
  364    430   
                ::std::vec::Vec<crate::model::EnumString>,
  365    431   
                (
  366    432   
                    usize,
  367    433   
                    crate::model::enum_string_internal::ConstraintViolation,
  368    434   
                ),
  369    435   
            > = value
  370    436   
                .0
  371    437   
                .into_iter()
  372    438   
                .enumerate()
  373    439   
                .map(|(idx, inner)| {
  374    440   
                    inner
  375    441   
                        .try_into()
  376    442   
                        .map_err(|inner_violation| (idx, inner_violation))
  377    443   
                })
  378    444   
                .collect();
  379    445   
            let inner =
  380    446   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         447  +
            /* UnconstrainedCollectionGenerator.kt:191 */
  381    448   
            Ok(Self(inner))
         449  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  382    450   
        }
         451  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  383    452   
    }
         453  +
         454  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  384    455   
}
  385    456   
pub(crate) mod map_of_length_list_of_pattern_string_unconstrained {
  386    457   
         458  +
    /* UnconstrainedMapGenerator.kt:79 */
  387    459   
    #[derive(Debug, Clone)]
  388    460   
    pub(crate) struct MapOfLengthListOfPatternStringUnconstrained(pub(crate) std::collections::HashMap<::std::string::String, crate::unconstrained::length_list_of_pattern_string_unconstrained::LengthListOfPatternStringUnconstrained>);
  389    461   
  390    462   
    impl From<MapOfLengthListOfPatternStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_length_list_of_pattern_string_constrained::MapOfLengthListOfPatternStringConstrained> {
  391    463   
                        fn from(value: MapOfLengthListOfPatternStringUnconstrained) -> Self {
  392    464   
                            Self::Unconstrained(value)
  393    465   
                        }
  394    466   
                    }
         467  +
    /* UnconstrainedMapGenerator.kt:101 */
  395    468   
    impl std::convert::TryFrom<MapOfLengthListOfPatternStringUnconstrained> for crate::constrained::map_of_length_list_of_pattern_string_constrained::MapOfLengthListOfPatternStringConstrained {
  396         -
        type Error = crate::model::map_of_length_list_of_pattern_string_internal::ConstraintViolation;
  397         -
        fn try_from(value: MapOfLengthListOfPatternStringUnconstrained) -> std::result::Result<Self, Self::Error> {
  398         -
            let res: ::std::result::Result<::std::collections::HashMap<crate::model::PatternString, crate::model::LengthListOfPatternString>, Self::Error> = value.0
         469  +
        /* UnconstrainedMapGenerator.kt:102 */type Error = crate::model::map_of_length_list_of_pattern_string_internal::ConstraintViolation;
         470  +
        /* UnconstrainedMapGenerator.kt:104 */fn try_from(value: MapOfLengthListOfPatternStringUnconstrained) -> std::result::Result<Self, Self::Error> {
         471  +
            /* UnconstrainedMapGenerator.kt:186 */let res: ::std::result::Result<::std::collections::HashMap<crate::model::PatternString, crate::model::LengthListOfPatternString>, Self::Error> = value.0
  399    472   
                                        .into_iter()
  400    473   
                                        .map(|(k, v)| {
  401    474   
                                            let k: crate::model::PatternString = k.try_into().map_err(Self::Error::Key)?;
  402    475   
            
  403    476   
            match crate::model::LengthListOfPatternString::try_from(v) {
  404    477   
                                                    Ok(v) => Ok((k, v)),
  405    478   
                                                    Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
  406    479   
                                                }
  407    480   
                                        })
  408    481   
                                        .collect();
  409    482   
                                    let hm = res?;
  410         -
            Ok(Self(hm))
  411         -
        }
  412         -
    }
         483  +
            /* UnconstrainedMapGenerator.kt:247 */Ok(Self(hm))
         484  +
        /* UnconstrainedMapGenerator.kt:104 */}
         485  +
    /* UnconstrainedMapGenerator.kt:101 */}
         486  +
         487  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  413    488   
}
  414    489   
pub(crate) mod length_list_of_pattern_string_unconstrained {
  415    490   
         491  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  416    492   
    #[derive(Debug, Clone)]
  417    493   
    pub(crate) struct LengthListOfPatternStringUnconstrained(
  418    494   
        pub(crate) std::vec::Vec<::std::string::String>,
  419    495   
    );
  420    496   
  421    497   
    impl From<LengthListOfPatternStringUnconstrained>
  422    498   
        for crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>
  423    499   
    {
  424    500   
        fn from(value: LengthListOfPatternStringUnconstrained) -> Self {
  425    501   
            Self::Unconstrained(value)
  426    502   
        }
  427    503   
    }
         504  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  428    505   
    impl std::convert::TryFrom<LengthListOfPatternStringUnconstrained>
  429    506   
        for crate::model::LengthListOfPatternString
  430    507   
    {
         508  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  431    509   
        type Error = crate::model::length_list_of_pattern_string_internal::ConstraintViolation;
         510  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  432    511   
        fn try_from(
  433    512   
            value: LengthListOfPatternStringUnconstrained,
  434    513   
        ) -> std::result::Result<Self, Self::Error> {
         514  +
            /* UnconstrainedCollectionGenerator.kt:127 */
  435    515   
            let res: ::std::result::Result<
  436    516   
                ::std::vec::Vec<crate::model::PatternString>,
  437    517   
                (
  438    518   
                    usize,
  439    519   
                    crate::model::pattern_string_internal::ConstraintViolation,
  440    520   
                ),
  441    521   
            > = value
  442    522   
                .0
  443    523   
                .into_iter()
  444    524   
                .enumerate()
  445    525   
                .map(|(idx, inner)| {
  446    526   
                    inner
  447    527   
                        .try_into()
  448    528   
                        .map_err(|inner_violation| (idx, inner_violation))
  449    529   
                })
  450    530   
                .collect();
  451    531   
            let inner =
  452    532   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         533  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  453    534   
            Self::try_from(inner)
         535  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  454    536   
        }
         537  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  455    538   
    }
         539  +
         540  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  456    541   
}
  457    542   
pub(crate) mod map_of_set_of_length_string_unconstrained {
  458    543   
         544  +
    /* UnconstrainedMapGenerator.kt:79 */
  459    545   
    #[derive(Debug, Clone)]
  460    546   
    pub(crate) struct MapOfSetOfLengthStringUnconstrained(pub(crate) std::collections::HashMap<::std::string::String, crate::unconstrained::set_of_length_string_unconstrained::SetOfLengthStringUnconstrained>);
  461    547   
  462    548   
    impl From<MapOfSetOfLengthStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_set_of_length_string_constrained::MapOfSetOfLengthStringConstrained> {
  463    549   
                        fn from(value: MapOfSetOfLengthStringUnconstrained) -> Self {
  464    550   
                            Self::Unconstrained(value)
  465    551   
                        }
  466    552   
                    }
         553  +
    /* UnconstrainedMapGenerator.kt:101 */
  467    554   
    impl std::convert::TryFrom<MapOfSetOfLengthStringUnconstrained> for crate::constrained::map_of_set_of_length_string_constrained::MapOfSetOfLengthStringConstrained {
  468         -
        type Error = crate::model::map_of_set_of_length_string_internal::ConstraintViolation;
  469         -
        fn try_from(value: MapOfSetOfLengthStringUnconstrained) -> std::result::Result<Self, Self::Error> {
  470         -
            let res: ::std::result::Result<::std::collections::HashMap<crate::model::LengthString, crate::model::SetOfLengthString>, Self::Error> = value.0
         555  +
        /* UnconstrainedMapGenerator.kt:102 */type Error = crate::model::map_of_set_of_length_string_internal::ConstraintViolation;
         556  +
        /* UnconstrainedMapGenerator.kt:104 */fn try_from(value: MapOfSetOfLengthStringUnconstrained) -> std::result::Result<Self, Self::Error> {
         557  +
            /* UnconstrainedMapGenerator.kt:186 */let res: ::std::result::Result<::std::collections::HashMap<crate::model::LengthString, crate::model::SetOfLengthString>, Self::Error> = value.0
  471    558   
                                        .into_iter()
  472    559   
                                        .map(|(k, v)| {
  473    560   
                                            let k: crate::model::LengthString = k.try_into().map_err(Self::Error::Key)?;
  474    561   
            
  475    562   
            match crate::model::SetOfLengthString::try_from(v) {
  476    563   
                                                    Ok(v) => Ok((k, v)),
  477    564   
                                                    Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
  478    565   
                                                }
  479    566   
                                        })
  480    567   
                                        .collect();
  481    568   
                                    let hm = res?;
  482         -
            Ok(Self(hm))
  483         -
        }
  484         -
    }
         569  +
            /* UnconstrainedMapGenerator.kt:247 */Ok(Self(hm))
         570  +
        /* UnconstrainedMapGenerator.kt:104 */}
         571  +
    /* UnconstrainedMapGenerator.kt:101 */}
         572  +
         573  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  485    574   
}
  486    575   
pub(crate) mod set_of_length_string_unconstrained {
  487    576   
         577  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  488    578   
    #[derive(Debug, Clone)]
  489    579   
    pub(crate) struct SetOfLengthStringUnconstrained(
  490    580   
        pub(crate) std::vec::Vec<::std::string::String>,
  491    581   
    );
  492    582   
  493    583   
    impl From<SetOfLengthStringUnconstrained>
  494    584   
        for crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>
  495    585   
    {
  496    586   
        fn from(value: SetOfLengthStringUnconstrained) -> Self {
  497    587   
            Self::Unconstrained(value)
  498    588   
        }
  499    589   
    }
         590  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  500    591   
    impl std::convert::TryFrom<SetOfLengthStringUnconstrained> for crate::model::SetOfLengthString {
         592  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  501    593   
        type Error = crate::model::set_of_length_string_internal::ConstraintViolation;
         594  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  502    595   
        fn try_from(
  503    596   
            value: SetOfLengthStringUnconstrained,
  504    597   
        ) -> std::result::Result<Self, Self::Error> {
         598  +
            /* UnconstrainedCollectionGenerator.kt:127 */
  505    599   
            let res: ::std::result::Result<
  506    600   
                ::std::vec::Vec<crate::model::LengthString>,
  507    601   
                (
  508    602   
                    usize,
  509    603   
                    crate::model::length_string_internal::ConstraintViolation,
  510    604   
                ),
  511    605   
            > = value
  512    606   
                .0
  513    607   
                .into_iter()
  514    608   
                .enumerate()
  515    609   
                .map(|(idx, inner)| {
  516    610   
                    inner
  517    611   
                        .try_into()
  518    612   
                        .map_err(|inner_violation| (idx, inner_violation))
  519    613   
                })
  520    614   
                .collect();
  521    615   
            let inner =
  522    616   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         617  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  523    618   
            Self::try_from(inner)
         619  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  524    620   
        }
         621  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  525    622   
    }
         623  +
         624  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  526    625   
}
  527    626   
pub(crate) mod map_of_list_of_length_string_unconstrained {
  528    627   
         628  +
    /* UnconstrainedMapGenerator.kt:79 */
  529    629   
    #[derive(Debug, Clone)]
  530    630   
    pub(crate) struct MapOfListOfLengthStringUnconstrained(pub(crate) std::collections::HashMap<::std::string::String, crate::unconstrained::list_of_length_string_unconstrained::ListOfLengthStringUnconstrained>);
  531    631   
  532    632   
    impl From<MapOfListOfLengthStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_string_constrained::MapOfListOfLengthStringConstrained> {
  533    633   
                        fn from(value: MapOfListOfLengthStringUnconstrained) -> Self {
  534    634   
                            Self::Unconstrained(value)
  535    635   
                        }
  536    636   
                    }
         637  +
    /* UnconstrainedMapGenerator.kt:101 */
  537    638   
    impl std::convert::TryFrom<MapOfListOfLengthStringUnconstrained> for crate::constrained::map_of_list_of_length_string_constrained::MapOfListOfLengthStringConstrained {
  538         -
        type Error = crate::model::map_of_list_of_length_string_internal::ConstraintViolation;
  539         -
        fn try_from(value: MapOfListOfLengthStringUnconstrained) -> std::result::Result<Self, Self::Error> {
  540         -
            let res: ::std::result::Result<::std::collections::HashMap<crate::model::LengthString, crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>, Self::Error> = value.0
         639  +
        /* UnconstrainedMapGenerator.kt:102 */type Error = crate::model::map_of_list_of_length_string_internal::ConstraintViolation;
         640  +
        /* UnconstrainedMapGenerator.kt:104 */fn try_from(value: MapOfListOfLengthStringUnconstrained) -> std::result::Result<Self, Self::Error> {
         641  +
            /* UnconstrainedMapGenerator.kt:186 */let res: ::std::result::Result<::std::collections::HashMap<crate::model::LengthString, crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>, Self::Error> = value.0
  541    642   
                                        .into_iter()
  542    643   
                                        .map(|(k, v)| {
  543    644   
                                            let k: crate::model::LengthString = k.try_into().map_err(Self::Error::Key)?;
  544    645   
            
  545    646   
            match crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained::try_from(v) {
  546    647   
                                                    Ok(v) => Ok((k, v)),
  547    648   
                                                    Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
  548    649   
                                                }
  549    650   
                                        })
  550    651   
                                        .collect();
  551    652   
                                    let hm = res?;
  552         -
            Ok(Self(hm))
  553         -
        }
  554         -
    }
         653  +
            /* UnconstrainedMapGenerator.kt:247 */Ok(Self(hm))
         654  +
        /* UnconstrainedMapGenerator.kt:104 */}
         655  +
    /* UnconstrainedMapGenerator.kt:101 */}
         656  +
         657  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  555    658   
}
  556    659   
pub(crate) mod list_of_length_string_unconstrained {
  557    660   
         661  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  558    662   
    #[derive(Debug, Clone)]
  559    663   
    pub(crate) struct ListOfLengthStringUnconstrained(
  560    664   
        pub(crate) std::vec::Vec<::std::string::String>,
  561    665   
    );
  562    666   
  563    667   
    impl From<ListOfLengthStringUnconstrained>
  564    668   
        for crate::constrained::MaybeConstrained<
  565    669   
            crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained,
  566    670   
        >
  567    671   
    {
  568    672   
        fn from(value: ListOfLengthStringUnconstrained) -> Self {
  569    673   
            Self::Unconstrained(value)
  570    674   
        }
  571    675   
    }
         676  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  572    677   
    impl std::convert::TryFrom<ListOfLengthStringUnconstrained>
  573    678   
        for crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained
  574    679   
    {
         680  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  575    681   
        type Error = crate::model::list_of_length_string_internal::ConstraintViolation;
         682  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  576    683   
        fn try_from(
  577    684   
            value: ListOfLengthStringUnconstrained,
  578    685   
        ) -> std::result::Result<Self, Self::Error> {
         686  +
            /* UnconstrainedCollectionGenerator.kt:127 */
  579    687   
            let res: ::std::result::Result<
  580    688   
                ::std::vec::Vec<crate::model::LengthString>,
  581    689   
                (
  582    690   
                    usize,
  583    691   
                    crate::model::length_string_internal::ConstraintViolation,
  584    692   
                ),
  585    693   
            > = value
  586    694   
                .0
  587    695   
                .into_iter()
  588    696   
                .enumerate()
  589    697   
                .map(|(idx, inner)| {
  590    698   
                    inner
  591    699   
                        .try_into()
  592    700   
                        .map_err(|inner_violation| (idx, inner_violation))
  593    701   
                })
  594    702   
                .collect();
  595    703   
            let inner =
  596    704   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         705  +
            /* UnconstrainedCollectionGenerator.kt:191 */
  597    706   
            Ok(Self(inner))
         707  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  598    708   
        }
         709  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  599    710   
    }
         711  +
         712  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  600    713   
}
  601    714   
pub(crate) mod map_of_length_string_unconstrained {
  602    715   
         716  +
    /* UnconstrainedMapGenerator.kt:79 */
  603    717   
    #[derive(Debug, Clone)]
  604    718   
    pub(crate) struct MapOfLengthStringUnconstrained(
  605    719   
        pub(crate) std::collections::HashMap<::std::string::String, ::std::string::String>,
  606    720   
    );
  607    721   
  608    722   
    impl From<MapOfLengthStringUnconstrained>
  609    723   
        for crate::constrained::MaybeConstrained<
  610    724   
            crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained,
  611    725   
        >
  612    726   
    {
  613    727   
        fn from(value: MapOfLengthStringUnconstrained) -> Self {
  614    728   
            Self::Unconstrained(value)
  615    729   
        }
  616    730   
    }
         731  +
    /* UnconstrainedMapGenerator.kt:101 */
  617    732   
    impl std::convert::TryFrom<MapOfLengthStringUnconstrained>
  618    733   
        for crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained
  619    734   
    {
         735  +
        /* UnconstrainedMapGenerator.kt:102 */
  620    736   
        type Error = crate::model::map_of_length_string_internal::ConstraintViolation;
         737  +
        /* UnconstrainedMapGenerator.kt:104 */
  621    738   
        fn try_from(
  622    739   
            value: MapOfLengthStringUnconstrained,
  623    740   
        ) -> std::result::Result<Self, Self::Error> {
         741  +
            /* UnconstrainedMapGenerator.kt:186 */
  624    742   
            let res: ::std::result::Result<
  625    743   
                ::std::collections::HashMap<crate::model::LengthString, crate::model::LengthString>,
  626    744   
                Self::Error,
  627    745   
            > = value
  628    746   
                .0
  629    747   
                .into_iter()
  630    748   
                .map(|(k, v)| {
  631    749   
                    let k: crate::model::LengthString = k.try_into().map_err(Self::Error::Key)?;
  632    750   
  633    751   
                    match crate::model::LengthString::try_from(v) {
  634    752   
                        Ok(v) => Ok((k, v)),
  635    753   
                        Err(inner_constraint_violation) => {
  636    754   
                            Err(Self::Error::Value(k, inner_constraint_violation))
  637    755   
                        }
  638    756   
                    }
  639    757   
                })
  640    758   
                .collect();
  641    759   
            let hm = res?;
         760  +
            /* UnconstrainedMapGenerator.kt:247 */
  642    761   
            Ok(Self(hm))
         762  +
            /* UnconstrainedMapGenerator.kt:104 */
  643    763   
        }
         764  +
        /* UnconstrainedMapGenerator.kt:101 */
  644    765   
    }
         766  +
         767  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  645    768   
}
  646    769   
pub(crate) mod recursive_list_unconstrained {
  647    770   
         771  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  648    772   
    #[derive(Debug, Clone)]
  649    773   
    pub(crate) struct RecursiveListUnconstrained(
  650    774   
        pub(crate) 
  651    775   
            std::vec::Vec<crate::model::recursive_shapes_input_output_nested1_internal::Builder>,
  652    776   
    );
  653    777   
  654    778   
    impl From<RecursiveListUnconstrained>
  655    779   
        for crate::constrained::MaybeConstrained<
  656    780   
            crate::constrained::recursive_list_constrained::RecursiveListConstrained,
  657    781   
        >
  658    782   
    {
  659    783   
        fn from(value: RecursiveListUnconstrained) -> Self {
  660    784   
            Self::Unconstrained(value)
  661    785   
        }
  662    786   
    }
         787  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  663    788   
    impl std::convert::TryFrom<RecursiveListUnconstrained>
  664    789   
        for crate::constrained::recursive_list_constrained::RecursiveListConstrained
  665    790   
    {
         791  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  666    792   
        type Error = crate::model::recursive_list_internal::ConstraintViolation;
         793  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  667    794   
        fn try_from(value: RecursiveListUnconstrained) -> std::result::Result<Self, Self::Error> {
         795  +
            /* UnconstrainedCollectionGenerator.kt:127 */
  668    796   
            let res: ::std::result::Result<::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>, (usize, crate::model::recursive_shapes_input_output_nested1_internal::ConstraintViolation) > = value
  669    797   
                                        .0
  670    798   
                                        .into_iter()
  671    799   
                                        .enumerate()
  672    800   
                                        .map(|(idx, inner)| {
  673    801   
                                            inner.try_into().map_err(|inner_violation| (idx, inner_violation))
  674    802   
                                        })
  675    803   
                                        .collect();
  676    804   
            let inner =
  677    805   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         806  +
            /* UnconstrainedCollectionGenerator.kt:191 */
  678    807   
            Ok(Self(inner))
         808  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  679    809   
        }
         810  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  680    811   
    }
         812  +
         813  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  681    814   
}
  682    815   
pub(crate) mod length_set_of_pattern_string_unconstrained {
  683    816   
         817  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  684    818   
    #[derive(Debug, Clone)]
  685    819   
    pub(crate) struct LengthSetOfPatternStringUnconstrained(
  686    820   
        pub(crate) std::vec::Vec<::std::string::String>,
  687    821   
    );
  688    822   
  689    823   
    impl From<LengthSetOfPatternStringUnconstrained>
  690    824   
        for crate::constrained::MaybeConstrained<crate::model::LengthSetOfPatternString>
  691    825   
    {
  692    826   
        fn from(value: LengthSetOfPatternStringUnconstrained) -> Self {
  693    827   
            Self::Unconstrained(value)
  694    828   
        }
  695    829   
    }
         830  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  696    831   
    impl std::convert::TryFrom<LengthSetOfPatternStringUnconstrained>
  697    832   
        for crate::model::LengthSetOfPatternString
  698    833   
    {
         834  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  699    835   
        type Error = crate::model::length_set_of_pattern_string_internal::ConstraintViolation;
         836  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  700    837   
        fn try_from(
  701    838   
            value: LengthSetOfPatternStringUnconstrained,
  702    839   
        ) -> std::result::Result<Self, Self::Error> {
         840  +
            /* UnconstrainedCollectionGenerator.kt:127 */
  703    841   
            let res: ::std::result::Result<
  704    842   
                ::std::vec::Vec<crate::model::PatternString>,
  705    843   
                (
  706    844   
                    usize,
  707    845   
                    crate::model::pattern_string_internal::ConstraintViolation,
  708    846   
                ),
  709    847   
            > = value
  710    848   
                .0
  711    849   
                .into_iter()
  712    850   
                .enumerate()
  713    851   
                .map(|(idx, inner)| {
  714    852   
                    inner
  715    853   
                        .try_into()
  716    854   
                        .map_err(|inner_violation| (idx, inner_violation))
  717    855   
                })
  718    856   
                .collect();
  719    857   
            let inner =
  720    858   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         859  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  721    860   
            Self::try_from(inner)
         861  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  722    862   
        }
         863  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  723    864   
    }
         865  +
         866  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  724    867   
}
  725    868   
pub(crate) mod set_of_length_pattern_string_unconstrained {
  726    869   
         870  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  727    871   
    #[derive(Debug, Clone)]
  728    872   
    pub(crate) struct SetOfLengthPatternStringUnconstrained(
  729    873   
        pub(crate) std::vec::Vec<::std::string::String>,
  730    874   
    );
  731    875   
  732    876   
    impl From<SetOfLengthPatternStringUnconstrained>
  733    877   
        for crate::constrained::MaybeConstrained<crate::model::SetOfLengthPatternString>
  734    878   
    {
  735    879   
        fn from(value: SetOfLengthPatternStringUnconstrained) -> Self {
  736    880   
            Self::Unconstrained(value)
  737    881   
        }
  738    882   
    }
         883  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  739    884   
    impl std::convert::TryFrom<SetOfLengthPatternStringUnconstrained>
  740    885   
        for crate::model::SetOfLengthPatternString
  741    886   
    {
         887  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  742    888   
        type Error = crate::model::set_of_length_pattern_string_internal::ConstraintViolation;
         889  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  743    890   
        fn try_from(
  744    891   
            value: SetOfLengthPatternStringUnconstrained,
  745    892   
        ) -> std::result::Result<Self, Self::Error> {
         893  +
            /* UnconstrainedCollectionGenerator.kt:127 */
  746    894   
            let res: ::std::result::Result<
  747    895   
                ::std::vec::Vec<crate::model::LengthPatternString>,
  748    896   
                (
  749    897   
                    usize,
  750    898   
                    crate::model::length_pattern_string_internal::ConstraintViolation,
  751    899   
                ),
  752    900   
            > = value
  753    901   
                .0
  754    902   
                .into_iter()
  755    903   
                .enumerate()
  756    904   
                .map(|(idx, inner)| {
  757    905   
                    inner
  758    906   
                        .try_into()
  759    907   
                        .map_err(|inner_violation| (idx, inner_violation))
  760    908   
                })
  761    909   
                .collect();
  762    910   
            let inner =
  763    911   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         912  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  764    913   
            Self::try_from(inner)
         914  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  765    915   
        }
         916  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  766    917   
    }
         918  +
         919  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  767    920   
}
  768    921   
pub(crate) mod set_of_pattern_string_unconstrained {
  769    922   
         923  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  770    924   
    #[derive(Debug, Clone)]
  771    925   
    pub(crate) struct SetOfPatternStringUnconstrained(
  772    926   
        pub(crate) std::vec::Vec<::std::string::String>,
  773    927   
    );
  774    928   
  775    929   
    impl From<SetOfPatternStringUnconstrained>
  776    930   
        for crate::constrained::MaybeConstrained<crate::model::SetOfPatternString>
  777    931   
    {
  778    932   
        fn from(value: SetOfPatternStringUnconstrained) -> Self {
  779    933   
            Self::Unconstrained(value)
  780    934   
        }
  781    935   
    }
         936  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  782    937   
    impl std::convert::TryFrom<SetOfPatternStringUnconstrained> for crate::model::SetOfPatternString {
         938  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  783    939   
        type Error = crate::model::set_of_pattern_string_internal::ConstraintViolation;
         940  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  784    941   
        fn try_from(
  785    942   
            value: SetOfPatternStringUnconstrained,
  786    943   
        ) -> std::result::Result<Self, Self::Error> {
         944  +
            /* UnconstrainedCollectionGenerator.kt:127 */
  787    945   
            let res: ::std::result::Result<
  788    946   
                ::std::vec::Vec<crate::model::PatternString>,
  789    947   
                (
  790    948   
                    usize,
  791    949   
                    crate::model::pattern_string_internal::ConstraintViolation,
  792    950   
                ),
  793    951   
            > = value
  794    952   
                .0
  795    953   
                .into_iter()
  796    954   
                .enumerate()
  797    955   
                .map(|(idx, inner)| {
  798    956   
                    inner
  799    957   
                        .try_into()
  800    958   
                        .map_err(|inner_violation| (idx, inner_violation))
  801    959   
                })
  802    960   
                .collect();
  803    961   
            let inner =
  804    962   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         963  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  805    964   
            Self::try_from(inner)
         965  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  806    966   
        }
         967  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  807    968   
    }
         969  +
         970  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  808    971   
}
  809    972   
pub(crate) mod map_of_range_byte_unconstrained {
  810    973   
         974  +
    /* UnconstrainedMapGenerator.kt:79 */
  811    975   
    #[derive(Debug, Clone)]
  812    976   
    pub(crate) struct MapOfRangeByteUnconstrained(
  813    977   
        pub(crate) std::collections::HashMap<::std::string::String, i8>,
  814    978   
    );
  815    979   
  816    980   
    impl From<MapOfRangeByteUnconstrained>
  817    981   
        for crate::constrained::MaybeConstrained<
  818    982   
            crate::constrained::map_of_range_byte_constrained::MapOfRangeByteConstrained,
  819    983   
        >
  820    984   
    {
  821    985   
        fn from(value: MapOfRangeByteUnconstrained) -> Self {
  822    986   
            Self::Unconstrained(value)
  823    987   
        }
  824    988   
    }
         989  +
    /* UnconstrainedMapGenerator.kt:101 */
  825    990   
    impl std::convert::TryFrom<MapOfRangeByteUnconstrained>
  826    991   
        for crate::constrained::map_of_range_byte_constrained::MapOfRangeByteConstrained
  827    992   
    {
         993  +
        /* UnconstrainedMapGenerator.kt:102 */
  828    994   
        type Error = crate::model::map_of_range_byte_internal::ConstraintViolation;
         995  +
        /* UnconstrainedMapGenerator.kt:104 */
  829    996   
        fn try_from(value: MapOfRangeByteUnconstrained) -> std::result::Result<Self, Self::Error> {
         997  +
            /* UnconstrainedMapGenerator.kt:186 */
  830    998   
            let res: ::std::result::Result<
  831    999   
                ::std::collections::HashMap<::std::string::String, crate::model::RangeByte>,
  832   1000   
                Self::Error,
  833   1001   
            > = value
  834   1002   
                .0
  835   1003   
                .into_iter()
  836   1004   
                .map(|(k, v)| match crate::model::RangeByte::try_from(v) {
  837   1005   
                    Ok(v) => Ok((k, v)),
  838   1006   
                    Err(inner_constraint_violation) => {
  839   1007   
                        Err(Self::Error::Value(k, inner_constraint_violation))
  840   1008   
                    }
  841   1009   
                })
  842   1010   
                .collect();
  843   1011   
            let hm = res?;
        1012  +
            /* UnconstrainedMapGenerator.kt:247 */
  844   1013   
            Ok(Self(hm))
        1014  +
            /* UnconstrainedMapGenerator.kt:104 */
  845   1015   
        }
        1016  +
        /* UnconstrainedMapGenerator.kt:101 */
  846   1017   
    }
        1018  +
        1019  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  847   1020   
}
  848   1021   
pub(crate) mod set_of_range_byte_unconstrained {
  849   1022   
        1023  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  850   1024   
    #[derive(Debug, Clone)]
  851   1025   
    pub(crate) struct SetOfRangeByteUnconstrained(pub(crate) std::vec::Vec<i8>);
  852   1026   
  853   1027   
    impl From<SetOfRangeByteUnconstrained>
  854   1028   
        for crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>
  855   1029   
    {
  856   1030   
        fn from(value: SetOfRangeByteUnconstrained) -> Self {
  857   1031   
            Self::Unconstrained(value)
  858   1032   
        }
  859   1033   
    }
        1034  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  860   1035   
    impl std::convert::TryFrom<SetOfRangeByteUnconstrained> for crate::model::SetOfRangeByte {
        1036  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  861   1037   
        type Error = crate::model::set_of_range_byte_internal::ConstraintViolation;
        1038  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  862   1039   
        fn try_from(value: SetOfRangeByteUnconstrained) -> std::result::Result<Self, Self::Error> {
        1040  +
            /* UnconstrainedCollectionGenerator.kt:127 */
  863   1041   
            let res: ::std::result::Result<
  864   1042   
                ::std::vec::Vec<crate::model::RangeByte>,
  865   1043   
                (
  866   1044   
                    usize,
  867   1045   
                    crate::model::range_byte_internal::ConstraintViolation,
  868   1046   
                ),
  869   1047   
            > = value
  870   1048   
                .0
  871   1049   
                .into_iter()
  872   1050   
                .enumerate()
  873   1051   
                .map(|(idx, inner)| {
  874   1052   
                    inner
  875   1053   
                        .try_into()
  876   1054   
                        .map_err(|inner_violation| (idx, inner_violation))
  877   1055   
                })
  878   1056   
                .collect();
  879   1057   
            let inner =
  880   1058   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1059  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  881   1060   
            Self::try_from(inner)
        1061  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  882   1062   
        }
        1063  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  883   1064   
    }
        1065  +
        1066  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  884   1067   
}
  885   1068   
pub(crate) mod list_of_range_byte_unconstrained {
  886   1069   
        1070  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  887   1071   
    #[derive(Debug, Clone)]
  888   1072   
    pub(crate) struct ListOfRangeByteUnconstrained(pub(crate) std::vec::Vec<i8>);
  889   1073   
  890   1074   
    impl From<ListOfRangeByteUnconstrained>
  891   1075   
        for crate::constrained::MaybeConstrained<
  892   1076   
            crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained,
  893   1077   
        >
  894   1078   
    {
  895   1079   
        fn from(value: ListOfRangeByteUnconstrained) -> Self {
  896   1080   
            Self::Unconstrained(value)
  897   1081   
        }
  898   1082   
    }
        1083  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  899   1084   
    impl std::convert::TryFrom<ListOfRangeByteUnconstrained>
  900   1085   
        for crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained
  901   1086   
    {
        1087  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  902   1088   
        type Error = crate::model::list_of_range_byte_internal::ConstraintViolation;
        1089  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  903   1090   
        fn try_from(value: ListOfRangeByteUnconstrained) -> std::result::Result<Self, Self::Error> {
        1091  +
            /* UnconstrainedCollectionGenerator.kt:127 */
  904   1092   
            let res: ::std::result::Result<
  905   1093   
                ::std::vec::Vec<crate::model::RangeByte>,
  906   1094   
                (
  907   1095   
                    usize,
  908   1096   
                    crate::model::range_byte_internal::ConstraintViolation,
  909   1097   
                ),
  910   1098   
            > = value
  911   1099   
                .0
  912   1100   
                .into_iter()
  913   1101   
                .enumerate()
  914   1102   
                .map(|(idx, inner)| {
  915   1103   
                    inner
  916   1104   
                        .try_into()
  917   1105   
                        .map_err(|inner_violation| (idx, inner_violation))
  918   1106   
                })
  919   1107   
                .collect();
  920   1108   
            let inner =
  921   1109   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1110  +
            /* UnconstrainedCollectionGenerator.kt:191 */
  922   1111   
            Ok(Self(inner))
        1112  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  923   1113   
        }
        1114  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  924   1115   
    }
        1116  +
        1117  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  925   1118   
}
  926   1119   
pub(crate) mod map_of_range_long_unconstrained {
  927   1120   
        1121  +
    /* UnconstrainedMapGenerator.kt:79 */
  928   1122   
    #[derive(Debug, Clone)]
  929   1123   
    pub(crate) struct MapOfRangeLongUnconstrained(
  930   1124   
        pub(crate) std::collections::HashMap<::std::string::String, i64>,
  931   1125   
    );
  932   1126   
  933   1127   
    impl From<MapOfRangeLongUnconstrained>
  934   1128   
        for crate::constrained::MaybeConstrained<
  935   1129   
            crate::constrained::map_of_range_long_constrained::MapOfRangeLongConstrained,
  936   1130   
        >
  937   1131   
    {
  938   1132   
        fn from(value: MapOfRangeLongUnconstrained) -> Self {
  939   1133   
            Self::Unconstrained(value)
  940   1134   
        }
  941   1135   
    }
        1136  +
    /* UnconstrainedMapGenerator.kt:101 */
  942   1137   
    impl std::convert::TryFrom<MapOfRangeLongUnconstrained>
  943   1138   
        for crate::constrained::map_of_range_long_constrained::MapOfRangeLongConstrained
  944   1139   
    {
        1140  +
        /* UnconstrainedMapGenerator.kt:102 */
  945   1141   
        type Error = crate::model::map_of_range_long_internal::ConstraintViolation;
        1142  +
        /* UnconstrainedMapGenerator.kt:104 */
  946   1143   
        fn try_from(value: MapOfRangeLongUnconstrained) -> std::result::Result<Self, Self::Error> {
        1144  +
            /* UnconstrainedMapGenerator.kt:186 */
  947   1145   
            let res: ::std::result::Result<
  948   1146   
                ::std::collections::HashMap<::std::string::String, crate::model::RangeLong>,
  949   1147   
                Self::Error,
  950   1148   
            > = value
  951   1149   
                .0
  952   1150   
                .into_iter()
  953   1151   
                .map(|(k, v)| match crate::model::RangeLong::try_from(v) {
  954   1152   
                    Ok(v) => Ok((k, v)),
  955   1153   
                    Err(inner_constraint_violation) => {
  956   1154   
                        Err(Self::Error::Value(k, inner_constraint_violation))
  957   1155   
                    }
  958   1156   
                })
  959   1157   
                .collect();
  960   1158   
            let hm = res?;
        1159  +
            /* UnconstrainedMapGenerator.kt:247 */
  961   1160   
            Ok(Self(hm))
        1161  +
            /* UnconstrainedMapGenerator.kt:104 */
  962   1162   
        }
        1163  +
        /* UnconstrainedMapGenerator.kt:101 */
  963   1164   
    }
        1165  +
        1166  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  964   1167   
}
  965   1168   
pub(crate) mod set_of_range_long_unconstrained {
  966   1169   
        1170  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  967   1171   
    #[derive(Debug, Clone)]
  968   1172   
    pub(crate) struct SetOfRangeLongUnconstrained(pub(crate) std::vec::Vec<i64>);
  969   1173   
  970   1174   
    impl From<SetOfRangeLongUnconstrained>
  971   1175   
        for crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>
  972   1176   
    {
  973   1177   
        fn from(value: SetOfRangeLongUnconstrained) -> Self {
  974   1178   
            Self::Unconstrained(value)
  975   1179   
        }
  976   1180   
    }
        1181  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  977   1182   
    impl std::convert::TryFrom<SetOfRangeLongUnconstrained> for crate::model::SetOfRangeLong {
        1183  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  978   1184   
        type Error = crate::model::set_of_range_long_internal::ConstraintViolation;
        1185  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  979   1186   
        fn try_from(value: SetOfRangeLongUnconstrained) -> std::result::Result<Self, Self::Error> {
        1187  +
            /* UnconstrainedCollectionGenerator.kt:127 */
  980   1188   
            let res: ::std::result::Result<
  981   1189   
                ::std::vec::Vec<crate::model::RangeLong>,
  982   1190   
                (
  983   1191   
                    usize,
  984   1192   
                    crate::model::range_long_internal::ConstraintViolation,
  985   1193   
                ),
  986   1194   
            > = value
  987   1195   
                .0
  988   1196   
                .into_iter()
  989   1197   
                .enumerate()
  990   1198   
                .map(|(idx, inner)| {
  991   1199   
                    inner
  992   1200   
                        .try_into()
  993   1201   
                        .map_err(|inner_violation| (idx, inner_violation))
  994   1202   
                })
  995   1203   
                .collect();
  996   1204   
            let inner =
  997   1205   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1206  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  998   1207   
            Self::try_from(inner)
        1208  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  999   1209   
        }
        1210  +
        /* UnconstrainedCollectionGenerator.kt:97 */
 1000   1211   
    }
        1212  +
        1213  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1001   1214   
}
 1002   1215   
pub(crate) mod list_of_range_long_unconstrained {
 1003   1216   
        1217  +
    /* UnconstrainedCollectionGenerator.kt:77 */
 1004   1218   
    #[derive(Debug, Clone)]
 1005   1219   
    pub(crate) struct ListOfRangeLongUnconstrained(pub(crate) std::vec::Vec<i64>);
 1006   1220   
 1007   1221   
    impl From<ListOfRangeLongUnconstrained>
 1008   1222   
        for crate::constrained::MaybeConstrained<
 1009   1223   
            crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained,
 1010   1224   
        >
 1011   1225   
    {
 1012   1226   
        fn from(value: ListOfRangeLongUnconstrained) -> Self {
 1013   1227   
            Self::Unconstrained(value)
 1014   1228   
        }
 1015   1229   
    }
        1230  +
    /* UnconstrainedCollectionGenerator.kt:97 */
 1016   1231   
    impl std::convert::TryFrom<ListOfRangeLongUnconstrained>
 1017   1232   
        for crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained
 1018   1233   
    {
        1234  +
        /* UnconstrainedCollectionGenerator.kt:98 */
 1019   1235   
        type Error = crate::model::list_of_range_long_internal::ConstraintViolation;
        1236  +
        /* UnconstrainedCollectionGenerator.kt:100 */
 1020   1237   
        fn try_from(value: ListOfRangeLongUnconstrained) -> std::result::Result<Self, Self::Error> {
        1238  +
            /* UnconstrainedCollectionGenerator.kt:127 */
 1021   1239   
            let res: ::std::result::Result<
 1022   1240   
                ::std::vec::Vec<crate::model::RangeLong>,
 1023   1241   
                (
 1024   1242   
                    usize,
 1025   1243   
                    crate::model::range_long_internal::ConstraintViolation,
 1026   1244   
                ),
 1027   1245   
            > = value
 1028   1246   
                .0
 1029   1247   
                .into_iter()
 1030   1248   
                .enumerate()
 1031   1249   
                .map(|(idx, inner)| {
 1032   1250   
                    inner
 1033   1251   
                        .try_into()
 1034   1252   
                        .map_err(|inner_violation| (idx, inner_violation))
 1035   1253   
                })
 1036   1254   
                .collect();
 1037   1255   
            let inner =
 1038   1256   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1257  +
            /* UnconstrainedCollectionGenerator.kt:191 */
 1039   1258   
            Ok(Self(inner))
        1259  +
            /* UnconstrainedCollectionGenerator.kt:100 */
 1040   1260   
        }
        1261  +
        /* UnconstrainedCollectionGenerator.kt:97 */
 1041   1262   
    }
        1263  +
        1264  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1042   1265   
}
 1043   1266   
pub(crate) mod map_of_range_short_unconstrained {
 1044   1267   
        1268  +
    /* UnconstrainedMapGenerator.kt:79 */
 1045   1269   
    #[derive(Debug, Clone)]
 1046   1270   
    pub(crate) struct MapOfRangeShortUnconstrained(
 1047   1271   
        pub(crate) std::collections::HashMap<::std::string::String, i16>,
 1048   1272   
    );
 1049   1273   
 1050   1274   
    impl From<MapOfRangeShortUnconstrained>
 1051   1275   
        for crate::constrained::MaybeConstrained<
 1052   1276   
            crate::constrained::map_of_range_short_constrained::MapOfRangeShortConstrained,
 1053   1277   
        >
 1054   1278   
    {
 1055   1279   
        fn from(value: MapOfRangeShortUnconstrained) -> Self {
 1056   1280   
            Self::Unconstrained(value)
 1057   1281   
        }
 1058   1282   
    }
        1283  +
    /* UnconstrainedMapGenerator.kt:101 */
 1059   1284   
    impl std::convert::TryFrom<MapOfRangeShortUnconstrained>
 1060   1285   
        for crate::constrained::map_of_range_short_constrained::MapOfRangeShortConstrained
 1061   1286   
    {
        1287  +
        /* UnconstrainedMapGenerator.kt:102 */
 1062   1288   
        type Error = crate::model::map_of_range_short_internal::ConstraintViolation;
        1289  +
        /* UnconstrainedMapGenerator.kt:104 */
 1063   1290   
        fn try_from(value: MapOfRangeShortUnconstrained) -> std::result::Result<Self, Self::Error> {
        1291  +
            /* UnconstrainedMapGenerator.kt:186 */
 1064   1292   
            let res: ::std::result::Result<
 1065   1293   
                ::std::collections::HashMap<::std::string::String, crate::model::RangeShort>,
 1066   1294   
                Self::Error,
 1067   1295   
            > = value
 1068   1296   
                .0
 1069   1297   
                .into_iter()
 1070   1298   
                .map(|(k, v)| match crate::model::RangeShort::try_from(v) {
 1071   1299   
                    Ok(v) => Ok((k, v)),
 1072   1300   
                    Err(inner_constraint_violation) => {
 1073   1301   
                        Err(Self::Error::Value(k, inner_constraint_violation))
 1074   1302   
                    }
 1075   1303   
                })
 1076   1304   
                .collect();
 1077   1305   
            let hm = res?;
        1306  +
            /* UnconstrainedMapGenerator.kt:247 */
 1078   1307   
            Ok(Self(hm))
        1308  +
            /* UnconstrainedMapGenerator.kt:104 */
 1079   1309   
        }
        1310  +
        /* UnconstrainedMapGenerator.kt:101 */
 1080   1311   
    }
        1312  +
        1313  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1081   1314   
}
 1082   1315   
pub(crate) mod set_of_range_short_unconstrained {
 1083   1316   
        1317  +
    /* UnconstrainedCollectionGenerator.kt:77 */
 1084   1318   
    #[derive(Debug, Clone)]
 1085   1319   
    pub(crate) struct SetOfRangeShortUnconstrained(pub(crate) std::vec::Vec<i16>);
 1086   1320   
 1087   1321   
    impl From<SetOfRangeShortUnconstrained>
 1088   1322   
        for crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>
 1089   1323   
    {
 1090   1324   
        fn from(value: SetOfRangeShortUnconstrained) -> Self {
 1091   1325   
            Self::Unconstrained(value)
 1092   1326   
        }
 1093   1327   
    }
        1328  +
    /* UnconstrainedCollectionGenerator.kt:97 */
 1094   1329   
    impl std::convert::TryFrom<SetOfRangeShortUnconstrained> for crate::model::SetOfRangeShort {
        1330  +
        /* UnconstrainedCollectionGenerator.kt:98 */
 1095   1331   
        type Error = crate::model::set_of_range_short_internal::ConstraintViolation;
        1332  +
        /* UnconstrainedCollectionGenerator.kt:100 */
 1096   1333   
        fn try_from(value: SetOfRangeShortUnconstrained) -> std::result::Result<Self, Self::Error> {
        1334  +
            /* UnconstrainedCollectionGenerator.kt:127 */
 1097   1335   
            let res: ::std::result::Result<
 1098   1336   
                ::std::vec::Vec<crate::model::RangeShort>,
 1099   1337   
                (
 1100   1338   
                    usize,
 1101   1339   
                    crate::model::range_short_internal::ConstraintViolation,
 1102   1340   
                ),
 1103   1341   
            > = value
 1104   1342   
                .0
 1105   1343   
                .into_iter()
 1106   1344   
                .enumerate()
 1107   1345   
                .map(|(idx, inner)| {
 1108   1346   
                    inner
 1109   1347   
                        .try_into()
 1110   1348   
                        .map_err(|inner_violation| (idx, inner_violation))
 1111   1349   
                })
 1112   1350   
                .collect();
 1113   1351   
            let inner =
 1114   1352   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1353  +
            /* UnconstrainedCollectionGenerator.kt:189 */
 1115   1354   
            Self::try_from(inner)
        1355  +
            /* UnconstrainedCollectionGenerator.kt:100 */
 1116   1356   
        }
        1357  +
        /* UnconstrainedCollectionGenerator.kt:97 */
 1117   1358   
    }
        1359  +
        1360  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1118   1361   
}
 1119   1362   
pub(crate) mod list_of_range_short_unconstrained {
 1120   1363   
        1364  +
    /* UnconstrainedCollectionGenerator.kt:77 */
 1121   1365   
    #[derive(Debug, Clone)]
 1122   1366   
    pub(crate) struct ListOfRangeShortUnconstrained(pub(crate) std::vec::Vec<i16>);
 1123   1367   
 1124   1368   
    impl From<ListOfRangeShortUnconstrained>
 1125   1369   
        for crate::constrained::MaybeConstrained<
 1126   1370   
            crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained,
 1127   1371   
        >
 1128   1372   
    {
 1129   1373   
        fn from(value: ListOfRangeShortUnconstrained) -> Self {
 1130   1374   
            Self::Unconstrained(value)
 1131   1375   
        }
 1132   1376   
    }
        1377  +
    /* UnconstrainedCollectionGenerator.kt:97 */
 1133   1378   
    impl std::convert::TryFrom<ListOfRangeShortUnconstrained>
 1134   1379   
        for crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained
 1135   1380   
    {
        1381  +
        /* UnconstrainedCollectionGenerator.kt:98 */
 1136   1382   
        type Error = crate::model::list_of_range_short_internal::ConstraintViolation;
        1383  +
        /* UnconstrainedCollectionGenerator.kt:100 */
 1137   1384   
        fn try_from(
 1138   1385   
            value: ListOfRangeShortUnconstrained,
 1139   1386   
        ) -> std::result::Result<Self, Self::Error> {
        1387  +
            /* UnconstrainedCollectionGenerator.kt:127 */
 1140   1388   
            let res: ::std::result::Result<
 1141   1389   
                ::std::vec::Vec<crate::model::RangeShort>,
 1142   1390   
                (
 1143   1391   
                    usize,
 1144   1392   
                    crate::model::range_short_internal::ConstraintViolation,
 1145   1393   
                ),
 1146   1394   
            > = value
 1147   1395   
                .0
 1148   1396   
                .into_iter()
 1149   1397   
                .enumerate()
 1150   1398   
                .map(|(idx, inner)| {
 1151   1399   
                    inner
 1152   1400   
                        .try_into()
 1153   1401   
                        .map_err(|inner_violation| (idx, inner_violation))
 1154   1402   
                })
 1155   1403   
                .collect();
 1156   1404   
            let inner =
 1157   1405   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1406  +
            /* UnconstrainedCollectionGenerator.kt:191 */
 1158   1407   
            Ok(Self(inner))
        1408  +
            /* UnconstrainedCollectionGenerator.kt:100 */
 1159   1409   
        }
        1410  +
        /* UnconstrainedCollectionGenerator.kt:97 */
 1160   1411   
    }
        1412  +
        1413  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1161   1414   
}
 1162   1415   
pub(crate) mod map_of_range_integer_unconstrained {
 1163   1416   
        1417  +
    /* UnconstrainedMapGenerator.kt:79 */
 1164   1418   
    #[derive(Debug, Clone)]
 1165   1419   
    pub(crate) struct MapOfRangeIntegerUnconstrained(
 1166   1420   
        pub(crate) std::collections::HashMap<::std::string::String, i32>,
 1167   1421   
    );
 1168   1422   
 1169   1423   
    impl From<MapOfRangeIntegerUnconstrained>
 1170   1424   
        for crate::constrained::MaybeConstrained<
 1171   1425   
            crate::constrained::map_of_range_integer_constrained::MapOfRangeIntegerConstrained,
 1172   1426   
        >
 1173   1427   
    {
 1174   1428   
        fn from(value: MapOfRangeIntegerUnconstrained) -> Self {
 1175   1429   
            Self::Unconstrained(value)
 1176   1430   
        }
 1177   1431   
    }
        1432  +
    /* UnconstrainedMapGenerator.kt:101 */
 1178   1433   
    impl std::convert::TryFrom<MapOfRangeIntegerUnconstrained>
 1179   1434   
        for crate::constrained::map_of_range_integer_constrained::MapOfRangeIntegerConstrained
 1180   1435   
    {
        1436  +
        /* UnconstrainedMapGenerator.kt:102 */
 1181   1437   
        type Error = crate::model::map_of_range_integer_internal::ConstraintViolation;
        1438  +
        /* UnconstrainedMapGenerator.kt:104 */
 1182   1439   
        fn try_from(
 1183   1440   
            value: MapOfRangeIntegerUnconstrained,
 1184   1441   
        ) -> std::result::Result<Self, Self::Error> {
        1442  +
            /* UnconstrainedMapGenerator.kt:186 */
 1185   1443   
            let res: ::std::result::Result<
 1186   1444   
                ::std::collections::HashMap<::std::string::String, crate::model::RangeInteger>,
 1187   1445   
                Self::Error,
 1188   1446   
            > = value
 1189   1447   
                .0
 1190   1448   
                .into_iter()
 1191   1449   
                .map(|(k, v)| match crate::model::RangeInteger::try_from(v) {
 1192   1450   
                    Ok(v) => Ok((k, v)),
 1193   1451   
                    Err(inner_constraint_violation) => {
 1194   1452   
                        Err(Self::Error::Value(k, inner_constraint_violation))
 1195   1453   
                    }
 1196   1454   
                })
 1197   1455   
                .collect();
 1198   1456   
            let hm = res?;
        1457  +
            /* UnconstrainedMapGenerator.kt:247 */
 1199   1458   
            Ok(Self(hm))
        1459  +
            /* UnconstrainedMapGenerator.kt:104 */
 1200   1460   
        }
        1461  +
        /* UnconstrainedMapGenerator.kt:101 */
 1201   1462   
    }
        1463  +
        1464  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1202   1465   
}
 1203   1466   
pub(crate) mod set_of_range_integer_unconstrained {
 1204   1467   
        1468  +
    /* UnconstrainedCollectionGenerator.kt:77 */
 1205   1469   
    #[derive(Debug, Clone)]
 1206   1470   
    pub(crate) struct SetOfRangeIntegerUnconstrained(pub(crate) std::vec::Vec<i32>);
 1207   1471   
 1208   1472   
    impl From<SetOfRangeIntegerUnconstrained>
 1209   1473   
        for crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>
 1210   1474   
    {
 1211   1475   
        fn from(value: SetOfRangeIntegerUnconstrained) -> Self {
 1212   1476   
            Self::Unconstrained(value)
 1213   1477   
        }
 1214   1478   
    }
        1479  +
    /* UnconstrainedCollectionGenerator.kt:97 */
 1215   1480   
    impl std::convert::TryFrom<SetOfRangeIntegerUnconstrained> for crate::model::SetOfRangeInteger {
        1481  +
        /* UnconstrainedCollectionGenerator.kt:98 */
 1216   1482   
        type Error = crate::model::set_of_range_integer_internal::ConstraintViolation;
        1483  +
        /* UnconstrainedCollectionGenerator.kt:100 */
 1217   1484   
        fn try_from(
 1218   1485   
            value: SetOfRangeIntegerUnconstrained,
 1219   1486   
        ) -> std::result::Result<Self, Self::Error> {
        1487  +
            /* UnconstrainedCollectionGenerator.kt:127 */
 1220   1488   
            let res: ::std::result::Result<
 1221   1489   
                ::std::vec::Vec<crate::model::RangeInteger>,
 1222   1490   
                (
 1223   1491   
                    usize,
 1224   1492   
                    crate::model::range_integer_internal::ConstraintViolation,
 1225   1493   
                ),
 1226   1494   
            > = value
 1227   1495   
                .0
 1228   1496   
                .into_iter()
 1229   1497   
                .enumerate()
 1230   1498   
                .map(|(idx, inner)| {
 1231   1499   
                    inner
 1232   1500   
                        .try_into()
 1233   1501   
                        .map_err(|inner_violation| (idx, inner_violation))
 1234   1502   
                })
 1235   1503   
                .collect();
 1236   1504   
            let inner =
 1237   1505   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1506  +
            /* UnconstrainedCollectionGenerator.kt:189 */
 1238   1507   
            Self::try_from(inner)
        1508  +
            /* UnconstrainedCollectionGenerator.kt:100 */
 1239   1509   
        }
        1510  +
        /* UnconstrainedCollectionGenerator.kt:97 */
 1240   1511   
    }
        1512  +
        1513  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1241   1514   
}
 1242   1515   
pub(crate) mod list_of_range_integer_unconstrained {
 1243   1516   
        1517  +
    /* UnconstrainedCollectionGenerator.kt:77 */
 1244   1518   
    #[derive(Debug, Clone)]
 1245   1519   
    pub(crate) struct ListOfRangeIntegerUnconstrained(pub(crate) std::vec::Vec<i32>);
 1246   1520   
 1247   1521   
    impl From<ListOfRangeIntegerUnconstrained>
 1248   1522   
        for crate::constrained::MaybeConstrained<
 1249   1523   
            crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained,
 1250   1524   
        >
 1251   1525   
    {
 1252   1526   
        fn from(value: ListOfRangeIntegerUnconstrained) -> Self {
 1253   1527   
            Self::Unconstrained(value)
 1254   1528   
        }
 1255   1529   
    }
        1530  +
    /* UnconstrainedCollectionGenerator.kt:97 */
 1256   1531   
    impl std::convert::TryFrom<ListOfRangeIntegerUnconstrained>
 1257   1532   
        for crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained
 1258   1533   
    {
        1534  +
        /* UnconstrainedCollectionGenerator.kt:98 */
 1259   1535   
        type Error = crate::model::list_of_range_integer_internal::ConstraintViolation;
        1536  +
        /* UnconstrainedCollectionGenerator.kt:100 */
 1260   1537   
        fn try_from(
 1261   1538   
            value: ListOfRangeIntegerUnconstrained,
 1262   1539   
        ) -> std::result::Result<Self, Self::Error> {
        1540  +
            /* UnconstrainedCollectionGenerator.kt:127 */
 1263   1541   
            let res: ::std::result::Result<
 1264   1542   
                ::std::vec::Vec<crate::model::RangeInteger>,
 1265   1543   
                (
 1266   1544   
                    usize,
 1267   1545   
                    crate::model::range_integer_internal::ConstraintViolation,
 1268   1546   
                ),
 1269   1547   
            > = value
 1270   1548   
                .0
 1271   1549   
                .into_iter()
 1272   1550   
                .enumerate()
 1273   1551   
                .map(|(idx, inner)| {
 1274   1552   
                    inner
 1275   1553   
                        .try_into()
 1276   1554   
                        .map_err(|inner_violation| (idx, inner_violation))
 1277   1555   
                })
 1278   1556   
                .collect();
 1279   1557   
            let inner =
 1280   1558   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1559  +
            /* UnconstrainedCollectionGenerator.kt:191 */
 1281   1560   
            Ok(Self(inner))
        1561  +
            /* UnconstrainedCollectionGenerator.kt:100 */
 1282   1562   
        }
        1563  +
        /* UnconstrainedCollectionGenerator.kt:97 */
 1283   1564   
    }
        1565  +
        1566  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1284   1567   
}
 1285   1568   
pub(crate) mod map_of_length_blob_unconstrained {
 1286   1569   
        1570  +
    /* UnconstrainedMapGenerator.kt:79 */
 1287   1571   
    #[derive(Debug, Clone)]
 1288   1572   
    pub(crate) struct MapOfLengthBlobUnconstrained(
 1289   1573   
        pub(crate)  std::collections::HashMap<
 1290   1574   
            ::std::string::String,
 1291   1575   
            ::aws_smithy_http_server_python::types::Blob,
 1292   1576   
        >,
 1293   1577   
    );
 1294   1578   
 1295   1579   
    impl From<MapOfLengthBlobUnconstrained>
 1296   1580   
        for crate::constrained::MaybeConstrained<
 1297   1581   
            crate::constrained::map_of_length_blob_constrained::MapOfLengthBlobConstrained,
 1298   1582   
        >
 1299   1583   
    {
 1300   1584   
        fn from(value: MapOfLengthBlobUnconstrained) -> Self {
 1301   1585   
            Self::Unconstrained(value)
 1302   1586   
        }
 1303   1587   
    }
        1588  +
    /* UnconstrainedMapGenerator.kt:101 */
 1304   1589   
    impl std::convert::TryFrom<MapOfLengthBlobUnconstrained>
 1305   1590   
        for crate::constrained::map_of_length_blob_constrained::MapOfLengthBlobConstrained
 1306   1591   
    {
        1592  +
        /* UnconstrainedMapGenerator.kt:102 */
 1307   1593   
        type Error = crate::model::map_of_length_blob_internal::ConstraintViolation;
        1594  +
        /* UnconstrainedMapGenerator.kt:104 */
 1308   1595   
        fn try_from(value: MapOfLengthBlobUnconstrained) -> std::result::Result<Self, Self::Error> {
        1596  +
            /* UnconstrainedMapGenerator.kt:186 */
 1309   1597   
            let res: ::std::result::Result<
 1310   1598   
                ::std::collections::HashMap<::std::string::String, crate::model::LengthBlob>,
 1311   1599   
                Self::Error,
 1312   1600   
            > = value
 1313   1601   
                .0
 1314   1602   
                .into_iter()
 1315   1603   
                .map(|(k, v)| match crate::model::LengthBlob::try_from(v) {
 1316   1604   
                    Ok(v) => Ok((k, v)),
 1317   1605   
                    Err(inner_constraint_violation) => {
 1318   1606   
                        Err(Self::Error::Value(k, inner_constraint_violation))
 1319   1607   
                    }
 1320   1608   
                })
 1321   1609   
                .collect();
 1322   1610   
            let hm = res?;
        1611  +
            /* UnconstrainedMapGenerator.kt:247 */
 1323   1612   
            Ok(Self(hm))
        1613  +
            /* UnconstrainedMapGenerator.kt:104 */
 1324   1614   
        }
        1615  +
        /* UnconstrainedMapGenerator.kt:101 */
 1325   1616   
    }
        1617  +
        1618  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1326   1619   
}
 1327   1620   
pub(crate) mod list_of_length_blob_unconstrained {
 1328   1621   
        1622  +
    /* UnconstrainedCollectionGenerator.kt:77 */
 1329   1623   
    #[derive(Debug, Clone)]
 1330   1624   
    pub(crate) struct ListOfLengthBlobUnconstrained(
 1331   1625   
        pub(crate) std::vec::Vec<::aws_smithy_http_server_python::types::Blob>,
 1332   1626   
    );
 1333   1627   
 1334   1628   
    impl From<ListOfLengthBlobUnconstrained>
 1335   1629   
        for crate::constrained::MaybeConstrained<
 1336   1630   
            crate::constrained::list_of_length_blob_constrained::ListOfLengthBlobConstrained,
 1337   1631   
        >
 1338   1632   
    {
 1339   1633   
        fn from(value: ListOfLengthBlobUnconstrained) -> Self {
 1340   1634   
            Self::Unconstrained(value)
 1341   1635   
        }
 1342   1636   
    }
        1637  +
    /* UnconstrainedCollectionGenerator.kt:97 */
 1343   1638   
    impl std::convert::TryFrom<ListOfLengthBlobUnconstrained>
 1344   1639   
        for crate::constrained::list_of_length_blob_constrained::ListOfLengthBlobConstrained
 1345   1640   
    {
        1641  +
        /* UnconstrainedCollectionGenerator.kt:98 */
 1346   1642   
        type Error = crate::model::list_of_length_blob_internal::ConstraintViolation;
        1643  +
        /* UnconstrainedCollectionGenerator.kt:100 */
 1347   1644   
        fn try_from(
 1348   1645   
            value: ListOfLengthBlobUnconstrained,
 1349   1646   
        ) -> std::result::Result<Self, Self::Error> {
        1647  +
            /* UnconstrainedCollectionGenerator.kt:127 */
 1350   1648   
            let res: ::std::result::Result<
 1351   1649   
                ::std::vec::Vec<crate::model::LengthBlob>,
 1352   1650   
                (
 1353   1651   
                    usize,
 1354   1652   
                    crate::model::length_blob_internal::ConstraintViolation,
 1355   1653   
                ),
 1356   1654   
            > = value
 1357   1655   
                .0
 1358   1656   
                .into_iter()
 1359   1657   
                .enumerate()
 1360   1658   
                .map(|(idx, inner)| {
 1361   1659   
                    inner
 1362   1660   
                        .try_into()
 1363   1661   
                        .map_err(|inner_violation| (idx, inner_violation))
 1364   1662   
                })
 1365   1663   
                .collect();
 1366   1664   
            let inner =
 1367   1665   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1666  +
            /* UnconstrainedCollectionGenerator.kt:191 */
 1368   1667   
            Ok(Self(inner))
        1668  +
            /* UnconstrainedCollectionGenerator.kt:100 */
 1369   1669   
        }
        1670  +
        /* UnconstrainedCollectionGenerator.kt:97 */
 1370   1671   
    }
        1672  +
        1673  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1371   1674   
}
 1372   1675   
pub(crate) mod constrained_union_unconstrained {
 1373   1676   
        1677  +
    /* UnconstrainedUnionGenerator.kt:82 */
 1374   1678   
    #[allow(clippy::enum_variant_names)]
 1375   1679   
    #[derive(Debug, Clone)]
 1376   1680   
    pub(crate) enum ConstrainedUnionUnconstrained {
        1681  +
        /* UnconstrainedUnionGenerator.kt:95 */
 1377   1682   
        ConBList(crate::unconstrained::con_b_list_unconstrained::ConBListUnconstrained),
        1683  +
        /* UnconstrainedUnionGenerator.kt:95 */
 1378   1684   
        ConBMap(crate::unconstrained::con_b_map_unconstrained::ConBMapUnconstrained),
        1685  +
        /* UnconstrainedUnionGenerator.kt:95 */
 1379   1686   
        ConBSet(crate::unconstrained::con_b_set_unconstrained::ConBSetUnconstrained),
        1687  +
        /* UnconstrainedUnionGenerator.kt:95 */
 1380   1688   
        ConstrainedStructure(crate::model::con_b_internal::Builder),
 1381         -
        EnumString(::std::string::String),
        1689  +
        /* UnconstrainedUnionGenerator.kt:95 */ EnumString(::std::string::String),
        1690  +
        /* UnconstrainedUnionGenerator.kt:95 */
 1382   1691   
        LengthString(::std::string::String),
        1692  +
        /* UnconstrainedUnionGenerator.kt:82 */
 1383   1693   
    }
        1694  +
    /* UnconstrainedUnionGenerator.kt:103 */
 1384   1695   
    impl ::std::convert::TryFrom<ConstrainedUnionUnconstrained> for crate::model::ConstrainedUnion {
 1385   1696   
        type Error = crate::model::constrained_union_internal::ConstraintViolation;
 1386   1697   
 1387   1698   
        fn try_from(
 1388   1699   
            value: ConstrainedUnionUnconstrained,
 1389   1700   
        ) -> ::std::result::Result<Self, Self::Error> {
 1390   1701   
            Ok(
 1391   1702   
        match value {
 1392   1703   
            crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained::ConBList(unconstrained) => Self::ConBList(
 1393   1704   
                {
 1394   1705   
                                        let constrained: crate::constrained::con_b_list_constrained::ConBListConstrained = unconstrained
 1395   1706   
                                            .try_into()
 1396   1707   
                                            .map_err(Self::Error::ConBList)?;
 1397   1708   
                                        constrained.into()
 1398   1709   
                                    }
 1399   1710   
            ),
 1400   1711   
            crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained::ConBMap(unconstrained) => Self::ConBMap(
 1401   1712   
                {
 1402   1713   
                                        let constrained: crate::model::ConBMap = unconstrained
 1403   1714   
                                            .try_into()
 1404   1715   
                                            .map_err(Self::Error::ConBMap)?;
 1405   1716   
                                        constrained.into()
 1406   1717   
                                    }
 1407   1718   
            ),
 1408   1719   
            crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained::ConBSet(unconstrained) => Self::ConBSet(
 1409   1720   
                {
 1410   1721   
                                        let constrained: crate::model::ConBSet = unconstrained
 1411   1722   
                                            .try_into()
 1412   1723   
                                            .map_err(Self::Error::ConBSet)?;
 1413   1724   
                                        constrained.into()
 1414   1725   
                                    }
 1415   1726   
            ),
 1416   1727   
            crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained::ConstrainedStructure(unconstrained) => Self::ConstrainedStructure(
 1417   1728   
                unconstrained
 1418   1729   
                                        .try_into()
 1419   1730   
                                        
 1420   1731   
                                        
 1421   1732   
                                        .map_err(Self::Error::ConstrainedStructure)?
 1422   1733   
            ),
 1423   1734   
            crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained::EnumString(unconstrained) => Self::EnumString(
 1424   1735   
                unconstrained
 1425   1736   
                                        .try_into()
 1426   1737   
                                        
 1427   1738   
                                        
 1428   1739   
                                        .map_err(Self::Error::EnumString)?
 1429   1740   
            ),
 1430   1741   
            crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained::LengthString(unconstrained) => Self::LengthString(
 1431   1742   
                {
 1432   1743   
                                        let constrained: crate::model::LengthString = unconstrained
 1433   1744   
                                            .try_into()
 1434   1745   
                                            .map_err(Self::Error::LengthString)?;
 1435   1746   
                                        constrained.into()
 1436   1747   
                                    }
 1437   1748   
            ),
 1438   1749   
        }
 1439   1750   
    )
 1440   1751   
        }
 1441   1752   
    }
        1753  +
        1754  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1442   1755   
}
 1443   1756   
pub(crate) mod con_b_set_unconstrained {
 1444   1757   
        1758  +
    /* UnconstrainedCollectionGenerator.kt:77 */
 1445   1759   
    #[derive(Debug, Clone)]
 1446   1760   
    pub(crate) struct ConBSetUnconstrained(
 1447   1761   
        pub(crate)  std::vec::Vec<
 1448   1762   
            crate::unconstrained::con_b_set_inner_unconstrained::ConBSetInnerUnconstrained,
 1449   1763   
        >,
 1450   1764   
    );
 1451   1765   
 1452   1766   
    impl From<ConBSetUnconstrained> for crate::constrained::MaybeConstrained<crate::model::ConBSet> {
 1453   1767   
        fn from(value: ConBSetUnconstrained) -> Self {
 1454   1768   
            Self::Unconstrained(value)
 1455   1769   
        }
 1456   1770   
    }
        1771  +
    /* UnconstrainedCollectionGenerator.kt:97 */
 1457   1772   
    impl std::convert::TryFrom<ConBSetUnconstrained> for crate::model::ConBSet {
        1773  +
        /* UnconstrainedCollectionGenerator.kt:98 */
 1458   1774   
        type Error = crate::model::con_b_set_internal::ConstraintViolation;
        1775  +
        /* UnconstrainedCollectionGenerator.kt:100 */
 1459   1776   
        fn try_from(value: ConBSetUnconstrained) -> std::result::Result<Self, Self::Error> {
        1777  +
            /* UnconstrainedCollectionGenerator.kt:127 */
 1460   1778   
            let res: ::std::result::Result<
 1461   1779   
                ::std::vec::Vec<crate::model::ConBSetInner>,
 1462   1780   
                (
 1463   1781   
                    usize,
 1464   1782   
                    crate::model::con_b_set_inner_internal::ConstraintViolation,
 1465   1783   
                ),
 1466   1784   
            > = value
 1467   1785   
                .0
 1468   1786   
                .into_iter()
 1469   1787   
                .enumerate()
 1470   1788   
                .map(|(idx, inner)| {
 1471   1789   
                    inner
 1472   1790   
                        .try_into()
 1473   1791   
                        .map_err(|inner_violation| (idx, inner_violation))
 1474   1792   
                })
 1475   1793   
                .collect();
 1476   1794   
            let inner =
 1477   1795   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1796  +
            /* UnconstrainedCollectionGenerator.kt:189 */
 1478   1797   
            Self::try_from(inner)
        1798  +
            /* UnconstrainedCollectionGenerator.kt:100 */
 1479   1799   
        }
        1800  +
        /* UnconstrainedCollectionGenerator.kt:97 */
 1480   1801   
    }
        1802  +
        1803  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1481   1804   
}
 1482   1805   
pub(crate) mod con_b_set_inner_unconstrained {
 1483   1806   
        1807  +
    /* UnconstrainedCollectionGenerator.kt:77 */
 1484   1808   
    #[derive(Debug, Clone)]
 1485   1809   
    pub(crate) struct ConBSetInnerUnconstrained(pub(crate) std::vec::Vec<::std::string::String>);
 1486   1810   
 1487   1811   
    impl From<ConBSetInnerUnconstrained>
 1488   1812   
        for crate::constrained::MaybeConstrained<crate::model::ConBSetInner>
 1489   1813   
    {
 1490   1814   
        fn from(value: ConBSetInnerUnconstrained) -> Self {
 1491   1815   
            Self::Unconstrained(value)
 1492   1816   
        }
 1493   1817   
    }
        1818  +
    /* UnconstrainedCollectionGenerator.kt:97 */
 1494   1819   
    impl std::convert::TryFrom<ConBSetInnerUnconstrained> for crate::model::ConBSetInner {
        1820  +
        /* UnconstrainedCollectionGenerator.kt:98 */
 1495   1821   
        type Error = crate::model::con_b_set_inner_internal::ConstraintViolation;
        1822  +
        /* UnconstrainedCollectionGenerator.kt:100 */
 1496   1823   
        fn try_from(value: ConBSetInnerUnconstrained) -> std::result::Result<Self, Self::Error> {
        1824  +
            /* UnconstrainedCollectionGenerator.kt:185 */
 1497   1825   
            let inner = value.0;
        1826  +
            /* UnconstrainedCollectionGenerator.kt:189 */
 1498   1827   
            Self::try_from(inner)
        1828  +
            /* UnconstrainedCollectionGenerator.kt:100 */
 1499   1829   
        }
        1830  +
        /* UnconstrainedCollectionGenerator.kt:97 */
 1500   1831   
    }
        1832  +
        1833  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1501   1834   
}
 1502   1835   
pub(crate) mod con_b_list_unconstrained {
 1503   1836   
        1837  +
    /* UnconstrainedCollectionGenerator.kt:77 */
 1504   1838   
    #[derive(Debug, Clone)]
 1505   1839   
    pub(crate) struct ConBListUnconstrained(
 1506   1840   
        pub(crate)  std::vec::Vec<
 1507   1841   
            crate::unconstrained::con_b_list_inner_unconstrained::ConBListInnerUnconstrained,
 1508   1842   
        >,
 1509   1843   
    );
 1510   1844   
 1511   1845   
    impl From<ConBListUnconstrained>
 1512   1846   
        for crate::constrained::MaybeConstrained<
 1513   1847   
            crate::constrained::con_b_list_constrained::ConBListConstrained,
 1514   1848   
        >
 1515   1849   
    {
 1516   1850   
        fn from(value: ConBListUnconstrained) -> Self {
 1517   1851   
            Self::Unconstrained(value)
 1518   1852   
        }
 1519   1853   
    }
        1854  +
    /* UnconstrainedCollectionGenerator.kt:97 */
 1520   1855   
    impl std::convert::TryFrom<ConBListUnconstrained>
 1521   1856   
        for crate::constrained::con_b_list_constrained::ConBListConstrained
 1522   1857   
    {
        1858  +
        /* UnconstrainedCollectionGenerator.kt:98 */
 1523   1859   
        type Error = crate::model::con_b_list_internal::ConstraintViolation;
        1860  +
        /* UnconstrainedCollectionGenerator.kt:100 */
 1524   1861   
        fn try_from(value: ConBListUnconstrained) -> std::result::Result<Self, Self::Error> {
        1862  +
            /* UnconstrainedCollectionGenerator.kt:127 */
 1525   1863   
            let res: ::std::result::Result<
 1526   1864   
                ::std::vec::Vec<
 1527   1865   
                    crate::constrained::con_b_list_inner_constrained::ConBListInnerConstrained,
 1528   1866   
                >,
 1529   1867   
                (
 1530   1868   
                    usize,
 1531   1869   
                    crate::model::con_b_list_inner_internal::ConstraintViolation,
 1532   1870   
                ),
 1533   1871   
            > = value
 1534   1872   
                .0
 1535   1873   
                .into_iter()
 1536   1874   
                .enumerate()
 1537   1875   
                .map(|(idx, inner)| {
 1538   1876   
                    inner
 1539   1877   
                        .try_into()
 1540   1878   
                        .map_err(|inner_violation| (idx, inner_violation))
 1541   1879   
                })
 1542   1880   
                .collect();
 1543   1881   
            let inner =
 1544   1882   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1883  +
            /* UnconstrainedCollectionGenerator.kt:191 */
 1545   1884   
            Ok(Self(inner))
        1885  +
            /* UnconstrainedCollectionGenerator.kt:100 */
 1546   1886   
        }
        1887  +
        /* UnconstrainedCollectionGenerator.kt:97 */
 1547   1888   
    }
        1889  +
        1890  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1548   1891   
}
 1549   1892   
pub(crate) mod con_b_list_inner_unconstrained {
 1550   1893   
        1894  +
    /* UnconstrainedCollectionGenerator.kt:77 */
 1551   1895   
    #[derive(Debug, Clone)]
 1552   1896   
    pub(crate) struct ConBListInnerUnconstrained(
 1553   1897   
        pub(crate) std::vec::Vec<crate::model::con_b_internal::Builder>,
 1554   1898   
    );
 1555   1899   
 1556   1900   
    impl From<ConBListInnerUnconstrained>
 1557   1901   
        for crate::constrained::MaybeConstrained<
 1558   1902   
            crate::constrained::con_b_list_inner_constrained::ConBListInnerConstrained,
 1559   1903   
        >
 1560   1904   
    {
 1561   1905   
        fn from(value: ConBListInnerUnconstrained) -> Self {
 1562   1906   
            Self::Unconstrained(value)
 1563   1907   
        }
 1564   1908   
    }
        1909  +
    /* UnconstrainedCollectionGenerator.kt:97 */
 1565   1910   
    impl std::convert::TryFrom<ConBListInnerUnconstrained>
 1566   1911   
        for crate::constrained::con_b_list_inner_constrained::ConBListInnerConstrained
 1567   1912   
    {
        1913  +
        /* UnconstrainedCollectionGenerator.kt:98 */
 1568   1914   
        type Error = crate::model::con_b_list_inner_internal::ConstraintViolation;
        1915  +
        /* UnconstrainedCollectionGenerator.kt:100 */
 1569   1916   
        fn try_from(value: ConBListInnerUnconstrained) -> std::result::Result<Self, Self::Error> {
        1917  +
            /* UnconstrainedCollectionGenerator.kt:127 */
 1570   1918   
            let res: ::std::result::Result<
 1571   1919   
                ::std::vec::Vec<crate::model::ConB>,
 1572   1920   
                (usize, crate::model::con_b_internal::ConstraintViolation),
 1573   1921   
            > = value
 1574   1922   
                .0
 1575   1923   
                .into_iter()
 1576   1924   
                .enumerate()
 1577   1925   
                .map(|(idx, inner)| {
 1578   1926   
                    inner
 1579   1927   
                        .try_into()
 1580   1928   
                        .map_err(|inner_violation| (idx, inner_violation))
 1581   1929   
                })
 1582   1930   
                .collect();
 1583   1931   
            let inner =
 1584   1932   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1933  +
            /* UnconstrainedCollectionGenerator.kt:191 */
 1585   1934   
            Ok(Self(inner))
        1935  +
            /* UnconstrainedCollectionGenerator.kt:100 */
 1586   1936   
        }
        1937  +
        /* UnconstrainedCollectionGenerator.kt:97 */
 1587   1938   
    }
        1939  +
        1940  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1588   1941   
}
 1589   1942   
pub(crate) mod sparse_length_list_unconstrained {
 1590   1943   
        1944  +
    /* UnconstrainedCollectionGenerator.kt:77 */
 1591   1945   
    #[derive(Debug, Clone)]
 1592   1946   
    pub(crate) struct SparseLengthListUnconstrained(
 1593   1947   
        pub(crate) std::vec::Vec<::std::option::Option<::std::string::String>>,
 1594   1948   
    );
 1595   1949   
 1596   1950   
    impl From<SparseLengthListUnconstrained>
 1597   1951   
        for crate::constrained::MaybeConstrained<crate::model::SparseLengthList>
 1598   1952   
    {
 1599   1953   
        fn from(value: SparseLengthListUnconstrained) -> Self {
 1600   1954   
            Self::Unconstrained(value)
 1601   1955   
        }
 1602   1956   
    }
        1957  +
    /* UnconstrainedCollectionGenerator.kt:97 */
 1603   1958   
    impl std::convert::TryFrom<SparseLengthListUnconstrained> for crate::model::SparseLengthList {
        1959  +
        /* UnconstrainedCollectionGenerator.kt:98 */
 1604   1960   
        type Error = crate::model::sparse_length_list_internal::ConstraintViolation;
        1961  +
        /* UnconstrainedCollectionGenerator.kt:100 */
 1605   1962   
        fn try_from(
 1606   1963   
            value: SparseLengthListUnconstrained,
 1607   1964   
        ) -> std::result::Result<Self, Self::Error> {
        1965  +
            /* UnconstrainedCollectionGenerator.kt:185 */
 1608   1966   
            let inner = value.0;
        1967  +
            /* UnconstrainedCollectionGenerator.kt:189 */
 1609   1968   
            Self::try_from(inner)
        1969  +
            /* UnconstrainedCollectionGenerator.kt:100 */
 1610   1970   
        }
        1971  +
        /* UnconstrainedCollectionGenerator.kt:97 */
 1611   1972   
    }
        1973  +
        1974  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1612   1975   
}
 1613   1976   
pub(crate) mod sparse_length_map_unconstrained {
 1614   1977   
        1978  +
    /* UnconstrainedMapGenerator.kt:79 */
 1615   1979   
    #[derive(Debug, Clone)]
 1616   1980   
    pub(crate) struct SparseLengthMapUnconstrained(
 1617   1981   
        pub(crate)  std::collections::HashMap<
 1618   1982   
            ::std::string::String,
 1619   1983   
            ::std::option::Option<::std::string::String>,
 1620   1984   
        >,
 1621   1985   
    );
 1622   1986   
 1623   1987   
    impl From<SparseLengthMapUnconstrained>
 1624   1988   
        for crate::constrained::MaybeConstrained<crate::model::SparseLengthMap>
 1625   1989   
    {
 1626   1990   
        fn from(value: SparseLengthMapUnconstrained) -> Self {
 1627   1991   
            Self::Unconstrained(value)
 1628   1992   
        }
 1629   1993   
    }
        1994  +
    /* UnconstrainedMapGenerator.kt:101 */
 1630   1995   
    impl std::convert::TryFrom<SparseLengthMapUnconstrained> for crate::model::SparseLengthMap {
        1996  +
        /* UnconstrainedMapGenerator.kt:102 */
 1631   1997   
        type Error = crate::model::sparse_length_map_internal::ConstraintViolation;
        1998  +
        /* UnconstrainedMapGenerator.kt:104 */
 1632   1999   
        fn try_from(value: SparseLengthMapUnconstrained) -> std::result::Result<Self, Self::Error> {
        2000  +
            /* UnconstrainedMapGenerator.kt:241 */
 1633   2001   
            let hm = value.0;
        2002  +
            /* UnconstrainedMapGenerator.kt:245 */
 1634   2003   
            Self::try_from(hm)
        2004  +
            /* UnconstrainedMapGenerator.kt:104 */
 1635   2005   
        }
        2006  +
        /* UnconstrainedMapGenerator.kt:101 */
 1636   2007   
    }
        2008  +
        2009  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1637   2010   
}
 1638   2011   
pub(crate) mod sparse_list_unconstrained {
 1639   2012   
        2013  +
    /* UnconstrainedCollectionGenerator.kt:77 */
 1640   2014   
    #[derive(Debug, Clone)]
 1641   2015   
    pub(crate) struct SparseListUnconstrained(
 1642   2016   
        pub(crate) std::vec::Vec<::std::option::Option<::std::string::String>>,
 1643   2017   
    );
 1644   2018   
 1645   2019   
    impl From<SparseListUnconstrained>
 1646   2020   
        for crate::constrained::MaybeConstrained<
 1647   2021   
            crate::constrained::sparse_list_constrained::SparseListConstrained,
 1648   2022   
        >
 1649   2023   
    {
 1650   2024   
        fn from(value: SparseListUnconstrained) -> Self {
 1651   2025   
            Self::Unconstrained(value)
 1652   2026   
        }
 1653   2027   
    }
        2028  +
    /* UnconstrainedCollectionGenerator.kt:97 */
 1654   2029   
    impl std::convert::TryFrom<SparseListUnconstrained>
 1655   2030   
        for crate::constrained::sparse_list_constrained::SparseListConstrained
 1656   2031   
    {
        2032  +
        /* UnconstrainedCollectionGenerator.kt:98 */
 1657   2033   
        type Error = crate::model::sparse_list_internal::ConstraintViolation;
        2034  +
        /* UnconstrainedCollectionGenerator.kt:100 */
 1658   2035   
        fn try_from(value: SparseListUnconstrained) -> std::result::Result<Self, Self::Error> {
        2036  +
            /* UnconstrainedCollectionGenerator.kt:127 */
 1659   2037   
            let res: ::std::result::Result<
 1660   2038   
                ::std::vec::Vec<::std::option::Option<crate::model::LengthString>>,
 1661   2039   
                (
 1662   2040   
                    usize,
 1663   2041   
                    crate::model::length_string_internal::ConstraintViolation,
 1664   2042   
                ),
 1665   2043   
            > = value
 1666   2044   
                .0
 1667   2045   
                .into_iter()
 1668   2046   
                .enumerate()
 1669   2047   
                .map(|(idx, inner)| {
 1670   2048   
                    inner
 1671   2049   
                        .map(|inner| {
 1672   2050   
                            inner
 1673   2051   
                                .try_into()
 1674   2052   
                                .map_err(|inner_violation| (idx, inner_violation))
 1675   2053   
                        })
 1676   2054   
                        .transpose()
 1677   2055   
                })
 1678   2056   
                .collect();
 1679   2057   
            let inner =
 1680   2058   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        2059  +
            /* UnconstrainedCollectionGenerator.kt:191 */
 1681   2060   
            Ok(Self(inner))
        2061  +
            /* UnconstrainedCollectionGenerator.kt:100 */
 1682   2062   
        }
        2063  +
        /* UnconstrainedCollectionGenerator.kt:97 */
 1683   2064   
    }
        2065  +
        2066  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1684   2067   
}
 1685   2068   
pub(crate) mod sparse_map_unconstrained {
 1686   2069   
        2070  +
    /* UnconstrainedMapGenerator.kt:79 */
 1687   2071   
    #[derive(Debug, Clone)]
 1688   2072   
    pub(crate) struct SparseMapUnconstrained(
 1689   2073   
        pub(crate)  std::collections::HashMap<
 1690   2074   
            ::std::string::String,
 1691   2075   
            ::std::option::Option<
 1692   2076   
                crate::unconstrained::unique_items_list_unconstrained::UniqueItemsListUnconstrained,
 1693   2077   
            >,
 1694   2078   
        >,
 1695   2079   
    );
 1696   2080   
 1697   2081   
    impl From<SparseMapUnconstrained>
 1698   2082   
        for crate::constrained::MaybeConstrained<
 1699   2083   
            crate::constrained::sparse_map_constrained::SparseMapConstrained,
 1700   2084   
        >
 1701   2085   
    {
 1702   2086   
        fn from(value: SparseMapUnconstrained) -> Self {
 1703   2087   
            Self::Unconstrained(value)
 1704   2088   
        }
 1705   2089   
    }
        2090  +
    /* UnconstrainedMapGenerator.kt:101 */
 1706   2091   
    impl std::convert::TryFrom<SparseMapUnconstrained>
 1707   2092   
        for crate::constrained::sparse_map_constrained::SparseMapConstrained
 1708   2093   
    {
        2094  +
        /* UnconstrainedMapGenerator.kt:102 */
 1709   2095   
        type Error = crate::model::sparse_map_internal::ConstraintViolation;
        2096  +
        /* UnconstrainedMapGenerator.kt:104 */
 1710   2097   
        fn try_from(value: SparseMapUnconstrained) -> std::result::Result<Self, Self::Error> {
        2098  +
            /* UnconstrainedMapGenerator.kt:186 */
 1711   2099   
            let res: ::std::result::Result<
 1712   2100   
                ::std::collections::HashMap<
 1713   2101   
                    ::std::string::String,
 1714   2102   
                    ::std::option::Option<crate::model::UniqueItemsList>,
 1715   2103   
                >,
 1716   2104   
                Self::Error,
 1717   2105   
            > = value
 1718   2106   
                .0
 1719   2107   
                .into_iter()
 1720   2108   
                .map(|(k, v)| match v {
 1721   2109   
                    None => Ok((k, None)),
 1722   2110   
                    Some(v) => match crate::model::UniqueItemsList::try_from(v) {
 1723   2111   
                        Ok(v) => Ok((k, Some(v))),
 1724   2112   
                        Err(inner_constraint_violation) => {
 1725   2113   
                            Err(Self::Error::Value(k, inner_constraint_violation))
 1726   2114   
                        }
 1727   2115   
                    },
 1728   2116   
                })
 1729   2117   
                .collect();
 1730   2118   
            let hm = res?;
        2119  +
            /* UnconstrainedMapGenerator.kt:247 */
 1731   2120   
            Ok(Self(hm))
        2121  +
            /* UnconstrainedMapGenerator.kt:104 */
 1732   2122   
        }
        2123  +
        /* UnconstrainedMapGenerator.kt:101 */
 1733   2124   
    }
        2125  +
        2126  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1734   2127   
}
 1735   2128   
pub(crate) mod unique_items_list_unconstrained {
 1736   2129   
        2130  +
    /* UnconstrainedCollectionGenerator.kt:77 */
 1737   2131   
    #[derive(Debug, Clone)]
 1738   2132   
    pub(crate) struct UniqueItemsListUnconstrained(pub(crate) std::vec::Vec<::std::string::String>);
 1739   2133   
 1740   2134   
    impl From<UniqueItemsListUnconstrained>
 1741   2135   
        for crate::constrained::MaybeConstrained<crate::model::UniqueItemsList>
 1742   2136   
    {
 1743   2137   
        fn from(value: UniqueItemsListUnconstrained) -> Self {
 1744   2138   
            Self::Unconstrained(value)
 1745   2139   
        }
 1746   2140   
    }
        2141  +
    /* UnconstrainedCollectionGenerator.kt:97 */
 1747   2142   
    impl std::convert::TryFrom<UniqueItemsListUnconstrained> for crate::model::UniqueItemsList {
        2143  +
        /* UnconstrainedCollectionGenerator.kt:98 */
 1748   2144   
        type Error = crate::model::unique_items_list_internal::ConstraintViolation;
        2145  +
        /* UnconstrainedCollectionGenerator.kt:100 */
 1749   2146   
        fn try_from(value: UniqueItemsListUnconstrained) -> std::result::Result<Self, Self::Error> {
        2147  +
            /* UnconstrainedCollectionGenerator.kt:185 */
 1750   2148   
            let inner = value.0;
        2149  +
            /* UnconstrainedCollectionGenerator.kt:189 */
 1751   2150   
            Self::try_from(inner)
        2151  +
            /* UnconstrainedCollectionGenerator.kt:100 */
 1752   2152   
        }
        2153  +
        /* UnconstrainedCollectionGenerator.kt:97 */
 1753   2154   
    }
        2155  +
        2156  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1754   2157   
}
 1755   2158   
pub(crate) mod map_of_map_of_list_of_list_of_con_b_unconstrained {
 1756   2159   
        2160  +
    /* UnconstrainedMapGenerator.kt:79 */
 1757   2161   
    #[derive(Debug, Clone)]
 1758   2162   
    pub(crate) struct MapOfMapOfListOfListOfConBUnconstrained(pub(crate) std::collections::HashMap<::std::string::String, crate::unconstrained::map_of_list_of_list_of_con_b_unconstrained::MapOfListOfListOfConBUnconstrained>);
 1759   2163   
 1760   2164   
    impl From<MapOfMapOfListOfListOfConBUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_map_of_list_of_list_of_con_b_constrained::MapOfMapOfListOfListOfConBConstrained> {
 1761   2165   
                        fn from(value: MapOfMapOfListOfListOfConBUnconstrained) -> Self {
 1762   2166   
                            Self::Unconstrained(value)
 1763   2167   
                        }
 1764   2168   
                    }
        2169  +
    /* UnconstrainedMapGenerator.kt:101 */
 1765   2170   
    impl std::convert::TryFrom<MapOfMapOfListOfListOfConBUnconstrained> for crate::constrained::map_of_map_of_list_of_list_of_con_b_constrained::MapOfMapOfListOfListOfConBConstrained {
 1766         -
        type Error = crate::model::map_of_map_of_list_of_list_of_con_b_internal::ConstraintViolation;
 1767         -
        fn try_from(value: MapOfMapOfListOfListOfConBUnconstrained) -> std::result::Result<Self, Self::Error> {
 1768         -
            let res: ::std::result::Result<::std::collections::HashMap<::std::string::String, crate::constrained::map_of_list_of_list_of_con_b_constrained::MapOfListOfListOfConBConstrained>, Self::Error> = value.0
        2171  +
        /* UnconstrainedMapGenerator.kt:102 */type Error = crate::model::map_of_map_of_list_of_list_of_con_b_internal::ConstraintViolation;
        2172  +
        /* UnconstrainedMapGenerator.kt:104 */fn try_from(value: MapOfMapOfListOfListOfConBUnconstrained) -> std::result::Result<Self, Self::Error> {
        2173  +
            /* UnconstrainedMapGenerator.kt:186 */let res: ::std::result::Result<::std::collections::HashMap<::std::string::String, crate::constrained::map_of_list_of_list_of_con_b_constrained::MapOfListOfListOfConBConstrained>, Self::Error> = value.0
 1769   2174   
                                        .into_iter()
 1770   2175   
                                        .map(|(k, v)| {
 1771   2176   
                                            match crate::constrained::map_of_list_of_list_of_con_b_constrained::MapOfListOfListOfConBConstrained::try_from(v) {
 1772   2177   
                                                    Ok(v) => Ok((k, v)),
 1773   2178   
                                                    Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
 1774   2179   
                                                }
 1775   2180   
                                        })
 1776   2181   
                                        .collect();
 1777   2182   
                                    let hm = res?;
 1778         -
            Ok(Self(hm))
 1779         -
        }
 1780         -
    }
        2183  +
            /* UnconstrainedMapGenerator.kt:247 */Ok(Self(hm))
        2184  +
        /* UnconstrainedMapGenerator.kt:104 */}
        2185  +
    /* UnconstrainedMapGenerator.kt:101 */}
        2186  +
        2187  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1781   2188   
}
 1782   2189   
pub(crate) mod map_of_list_of_list_of_con_b_unconstrained {
 1783   2190   
        2191  +
    /* UnconstrainedMapGenerator.kt:79 */
 1784   2192   
    #[derive(Debug, Clone)]
 1785   2193   
    pub(crate) struct MapOfListOfListOfConBUnconstrained(
 1786   2194   
        pub(crate)  std::collections::HashMap<
 1787   2195   
            ::std::string::String,
 1788   2196   
            crate::unconstrained::con_b_list_unconstrained::ConBListUnconstrained,
 1789   2197   
        >,
 1790   2198   
    );
 1791   2199   
 1792   2200   
    impl From<MapOfListOfListOfConBUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_list_of_con_b_constrained::MapOfListOfListOfConBConstrained> {
 1793   2201   
                        fn from(value: MapOfListOfListOfConBUnconstrained) -> Self {
 1794   2202   
                            Self::Unconstrained(value)
 1795   2203   
                        }
 1796   2204   
                    }
        2205  +
    /* UnconstrainedMapGenerator.kt:101 */
 1797   2206   
    impl std::convert::TryFrom<MapOfListOfListOfConBUnconstrained> for crate::constrained::map_of_list_of_list_of_con_b_constrained::MapOfListOfListOfConBConstrained {
 1798         -
        type Error = crate::model::map_of_list_of_list_of_con_b_internal::ConstraintViolation;
 1799         -
        fn try_from(value: MapOfListOfListOfConBUnconstrained) -> std::result::Result<Self, Self::Error> {
 1800         -
            let res: ::std::result::Result<::std::collections::HashMap<::std::string::String, crate::constrained::con_b_list_constrained::ConBListConstrained>, Self::Error> = value.0
        2207  +
        /* UnconstrainedMapGenerator.kt:102 */type Error = crate::model::map_of_list_of_list_of_con_b_internal::ConstraintViolation;
        2208  +
        /* UnconstrainedMapGenerator.kt:104 */fn try_from(value: MapOfListOfListOfConBUnconstrained) -> std::result::Result<Self, Self::Error> {
        2209  +
            /* UnconstrainedMapGenerator.kt:186 */let res: ::std::result::Result<::std::collections::HashMap<::std::string::String, crate::constrained::con_b_list_constrained::ConBListConstrained>, Self::Error> = value.0
 1801   2210   
                                        .into_iter()
 1802   2211   
                                        .map(|(k, v)| {
 1803   2212   
                                            match crate::constrained::con_b_list_constrained::ConBListConstrained::try_from(v) {
 1804   2213   
                                                    Ok(v) => Ok((k, v)),
 1805   2214   
                                                    Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
 1806   2215   
                                                }
 1807   2216   
                                        })
 1808   2217   
                                        .collect();
 1809   2218   
                                    let hm = res?;
 1810         -
            Ok(Self(hm))
 1811         -
        }
 1812         -
    }
        2219  +
            /* UnconstrainedMapGenerator.kt:247 */Ok(Self(hm))
        2220  +
        /* UnconstrainedMapGenerator.kt:104 */}
        2221  +
    /* UnconstrainedMapGenerator.kt:101 */}
        2222  +
        2223  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1813   2224   
}
 1814   2225   
pub(crate) mod length_map_unconstrained {
 1815   2226   
        2227  +
    /* UnconstrainedMapGenerator.kt:79 */
 1816   2228   
    #[derive(Debug, Clone)]
 1817   2229   
    pub(crate) struct LengthMapUnconstrained(
 1818   2230   
        pub(crate) std::collections::HashMap<::std::string::String, ::std::string::String>,
 1819   2231   
    );
 1820   2232   
 1821   2233   
    impl From<LengthMapUnconstrained>
 1822   2234   
        for crate::constrained::MaybeConstrained<crate::model::LengthMap>
 1823   2235   
    {
 1824   2236   
        fn from(value: LengthMapUnconstrained) -> Self {
 1825   2237   
            Self::Unconstrained(value)
 1826   2238   
        }
 1827   2239   
    }
        2240  +
    /* UnconstrainedMapGenerator.kt:101 */
 1828   2241   
    impl std::convert::TryFrom<LengthMapUnconstrained> for crate::model::LengthMap {
        2242  +
        /* UnconstrainedMapGenerator.kt:102 */
 1829   2243   
        type Error = crate::model::length_map_internal::ConstraintViolation;
        2244  +
        /* UnconstrainedMapGenerator.kt:104 */
 1830   2245   
        fn try_from(value: LengthMapUnconstrained) -> std::result::Result<Self, Self::Error> {
        2246  +
            /* UnconstrainedMapGenerator.kt:241 */
 1831   2247   
            let hm = value.0;
        2248  +
            /* UnconstrainedMapGenerator.kt:245 */
 1832   2249   
            Self::try_from(hm)
        2250  +
            /* UnconstrainedMapGenerator.kt:104 */
 1833   2251   
        }
        2252  +
        /* UnconstrainedMapGenerator.kt:101 */
 1834   2253   
    }
        2254  +
        2255  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1835   2256   
}
 1836   2257   
pub(crate) mod sensitive_length_list_unconstrained {
 1837   2258   
        2259  +
    /* UnconstrainedCollectionGenerator.kt:77 */
 1838   2260   
    #[derive(Debug, Clone)]
 1839   2261   
    pub(crate) struct SensitiveLengthListUnconstrained(
 1840   2262   
        pub(crate) std::vec::Vec<crate::model::SensitiveStructure>,
 1841   2263   
    );
 1842   2264   
 1843   2265   
    impl From<SensitiveLengthListUnconstrained>
 1844   2266   
        for crate::constrained::MaybeConstrained<crate::model::SensitiveLengthList>
 1845   2267   
    {
 1846   2268   
        fn from(value: SensitiveLengthListUnconstrained) -> Self {
 1847   2269   
            Self::Unconstrained(value)
 1848   2270   
        }
 1849   2271   
    }
        2272  +
    /* UnconstrainedCollectionGenerator.kt:97 */
 1850   2273   
    impl std::convert::TryFrom<SensitiveLengthListUnconstrained> for crate::model::SensitiveLengthList {
        2274  +
        /* UnconstrainedCollectionGenerator.kt:98 */
 1851   2275   
        type Error = crate::model::sensitive_length_list_internal::ConstraintViolation;
        2276  +
        /* UnconstrainedCollectionGenerator.kt:100 */
 1852   2277   
        fn try_from(
 1853   2278   
            value: SensitiveLengthListUnconstrained,
 1854   2279   
        ) -> std::result::Result<Self, Self::Error> {
        2280  +
            /* UnconstrainedCollectionGenerator.kt:185 */
 1855   2281   
            let inner = value.0;
        2282  +
            /* UnconstrainedCollectionGenerator.kt:189 */
 1856   2283   
            Self::try_from(inner)
        2284  +
            /* UnconstrainedCollectionGenerator.kt:100 */
 1857   2285   
        }
        2286  +
        /* UnconstrainedCollectionGenerator.kt:97 */
 1858   2287   
    }
        2288  +
        2289  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1859   2290   
}
 1860   2291   
pub(crate) mod length_list_unconstrained {
 1861   2292   
        2293  +
    /* UnconstrainedCollectionGenerator.kt:77 */
 1862   2294   
    #[derive(Debug, Clone)]
 1863   2295   
    pub(crate) struct LengthListUnconstrained(pub(crate) std::vec::Vec<::std::string::String>);
 1864   2296   
 1865   2297   
    impl From<LengthListUnconstrained>
 1866   2298   
        for crate::constrained::MaybeConstrained<crate::model::LengthList>
 1867   2299   
    {
 1868   2300   
        fn from(value: LengthListUnconstrained) -> Self {
 1869   2301   
            Self::Unconstrained(value)
 1870   2302   
        }
 1871   2303   
    }
        2304  +
    /* UnconstrainedCollectionGenerator.kt:97 */
 1872   2305   
    impl std::convert::TryFrom<LengthListUnconstrained> for crate::model::LengthList {
        2306  +
        /* UnconstrainedCollectionGenerator.kt:98 */
 1873   2307   
        type Error = crate::model::length_list_internal::ConstraintViolation;
        2308  +
        /* UnconstrainedCollectionGenerator.kt:100 */
 1874   2309   
        fn try_from(value: LengthListUnconstrained) -> std::result::Result<Self, Self::Error> {
        2310  +
            /* UnconstrainedCollectionGenerator.kt:185 */
 1875   2311   
            let inner = value.0;
        2312  +
            /* UnconstrainedCollectionGenerator.kt:189 */
 1876   2313   
            Self::try_from(inner)
        2314  +
            /* UnconstrainedCollectionGenerator.kt:100 */
 1877   2315   
        }
        2316  +
        /* UnconstrainedCollectionGenerator.kt:97 */
 1878   2317   
    }
        2318  +
        2319  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1879   2320   
}

tmp-codegen-diff/codegen-server-test-python/ebs/rust-server-codegen-python/Cargo.toml

@@ -12,12 +66,66 @@
   32     32   
version = "0.3"
   33     33   
[dependencies.nom]
   34     34   
version = "7"
   35     35   
[dependencies.parking_lot]
   36     36   
version = "0.12"
   37     37   
[dependencies.percent-encoding]
   38     38   
version = "2.0.0"
   39     39   
[dependencies.pin-project-lite]
   40     40   
version = "0.2"
   41     41   
[dependencies.pyo3]
   42         -
version = "0.18"
          42  +
version = "0.20"
   43     43   
[dependencies.pyo3-asyncio]
   44         -
version = "0.18"
          44  +
version = "0.20"
   45     45   
features = ["attributes", "tokio-runtime"]
   46     46   
[dependencies.regex]
   47     47   
version = "1.5.5"
   48     48   
[dependencies.tower]
   49     49   
version = "0.4"
   50     50   
[dependencies.tracing]
   51     51   
version = "0.1"
   52     52   
[dev-dependencies.hyper]
   53     53   
version = "0.14.12"
   54     54   
[dev-dependencies.tokio]

tmp-codegen-diff/codegen-server-test-python/ebs/rust-server-codegen-python/python/ebs/error/__init__.pyi

@@ -1,1 +125,125 @@
    1      1   
import ebs.model
    2      2   
import typing
    3      3   
    4      4   
class AccessDeniedException(Exception):
    5      5   
    """
    6         -
    <p>You do not have sufficient access to perform this action.</p>
           6  +
    /* StructureGenerator.kt:197 */<p>You do not have sufficient access to perform this action.</p>
    7      7   
    """
    8      8   
    9      9   
    message: typing.Optional[str]
   10     10   
   11     11   
    reason: ebs.model.AccessDeniedExceptionReason
   12     12   
    """
   13         -
    <p>The reason for the exception.</p>
          13  +
    /* StructureGenerator.kt:231 */<p>The reason for the exception.</p>
   14     14   
    """
   15     15   
   16         -
    def __init__(self, message: typing.Optional[str] = ..., reason: ebs.model.AccessDeniedExceptionReason) -> None:
          16  +
    def __init__(self, reason: ebs.model.AccessDeniedExceptionReason, message: typing.Optional[str] = ...) -> None:
   17     17   
        ...
   18     18   
   19     19   
   20     20   
class ConcurrentLimitExceededException(Exception):
   21     21   
    """
   22         -
    <p>You have reached the limit for concurrent API requests. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html#ebsapi-performance">Optimizing performance of the EBS direct APIs</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
          22  +
    /* StructureGenerator.kt:197 */<p>You have reached the limit for concurrent API requests. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html#ebsapi-performance">Optimizing performance of the EBS direct APIs</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
   23     23   
    """
   24     24   
   25     25   
    message: typing.Optional[str]
   26     26   
   27     27   
    def __init__(self, message: typing.Optional[str] = ...) -> None:
   28     28   
        ...
   29     29   
   30     30   
   31     31   
class ConflictException(Exception):
   32     32   
    """
   33         -
    <p>The request uses the same client token as a previous, but non-identical request.</p>
          33  +
    /* StructureGenerator.kt:197 */<p>The request uses the same client token as a previous, but non-identical request.</p>
   34     34   
    """
   35     35   
   36     36   
    message: typing.Optional[str]
   37     37   
   38     38   
    def __init__(self, message: typing.Optional[str] = ...) -> None:
   39     39   
        ...
   40     40   
   41     41   
   42     42   
class InternalServerError(Exception):
   43     43   
    message: str
   44     44   
   45     45   
    def __init__(self, message: str) -> None:
   46     46   
        ...
   47     47   
   48     48   
   49     49   
class InternalServerException(Exception):
   50     50   
    """
   51         -
    <p>An internal error has occurred.</p>
          51  +
    /* StructureGenerator.kt:197 */<p>An internal error has occurred.</p>
   52     52   
    """
   53     53   
   54     54   
    message: typing.Optional[str]
   55     55   
   56     56   
    def __init__(self, message: typing.Optional[str] = ...) -> None:
   57     57   
        ...
   58     58   
   59     59   
   60     60   
class RequestThrottledException(Exception):
   61     61   
    """
   62         -
    <p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
          62  +
    /* StructureGenerator.kt:197 */<p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
   63     63   
    """
   64     64   
   65     65   
    message: typing.Optional[str]
   66     66   
   67     67   
    reason: typing.Optional[ebs.model.RequestThrottledExceptionReason]
   68     68   
    """
   69         -
    <p>The reason for the exception.</p>
          69  +
    /* StructureGenerator.kt:231 */<p>The reason for the exception.</p>
   70     70   
    """
   71     71   
   72     72   
    def __init__(self, message: typing.Optional[str] = ..., reason: typing.Optional[ebs.model.RequestThrottledExceptionReason] = ...) -> None:
   73     73   
        ...
   74     74   
   75     75   
   76     76   
class ResourceNotFoundException(Exception):
   77     77   
    """
   78         -
    <p>The specified resource does not exist.</p>
          78  +
    /* StructureGenerator.kt:197 */<p>The specified resource does not exist.</p>
   79     79   
    """
   80     80   
   81     81   
    message: typing.Optional[str]
   82     82   
   83     83   
    reason: typing.Optional[ebs.model.ResourceNotFoundExceptionReason]
   84     84   
    """
   85         -
    <p>The reason for the exception.</p>
          85  +
    /* StructureGenerator.kt:231 */<p>The reason for the exception.</p>
   86     86   
    """
   87     87   
   88     88   
    def __init__(self, message: typing.Optional[str] = ..., reason: typing.Optional[ebs.model.ResourceNotFoundExceptionReason] = ...) -> None:
   89     89   
        ...
   90     90   
   91     91   
   92     92   
class ServiceQuotaExceededException(Exception):
   93     93   
    """
   94         -
    <p>Your current service quotas do not allow you to perform this action.</p>
          94  +
    /* StructureGenerator.kt:197 */<p>Your current service quotas do not allow you to perform this action.</p>
   95     95   
    """
   96     96   
   97     97   
    message: typing.Optional[str]
   98     98   
   99     99   
    reason: typing.Optional[ebs.model.ServiceQuotaExceededExceptionReason]
  100    100   
    """
  101         -
    <p>The reason for the exception.</p>
         101  +
    /* StructureGenerator.kt:231 */<p>The reason for the exception.</p>
  102    102   
    """
  103    103   
  104    104   
    def __init__(self, reason: typing.Optional[ebs.model.ServiceQuotaExceededExceptionReason] = ..., message: typing.Optional[str] = ...) -> None:
  105    105   
        ...
  106    106   
  107    107   
  108    108   
class ValidationException(Exception):
  109    109   
    """
  110         -
    A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
         110  +
    /* StructureGenerator.kt:197 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
  111    111   
    """
  112    112   
  113    113   
    field_list: typing.Optional[typing.List[ebs.model.ValidationExceptionField]]
  114    114   
    """
  115         -
    A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
         115  +
    /* StructureGenerator.kt:231 */A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
  116    116   
    """
  117    117   
  118    118   
    message: str
  119    119   
    """
  120         -
    A summary of the validation failure.
         120  +
    /* StructureGenerator.kt:231 */A summary of the validation failure.
  121    121   
    """
  122    122   
  123    123   
    def __init__(self, message: str, field_list: typing.Optional[typing.List[ebs.model.ValidationExceptionField]] = ...) -> None:
  124    124   
        ...
  125    125   

tmp-codegen-diff/codegen-server-test-python/ebs/rust-server-codegen-python/python/ebs/input/__init__.pyi

@@ -1,1 +219,219 @@
    1      1   
import ebs.model
    2      2   
import ebs.types
    3      3   
import typing
    4      4   
    5      5   
class CompleteSnapshotInput:
    6      6   
    changed_blocks_count: int
    7      7   
    """
    8         -
    <p>The number of blocks that were written to the snapshot.</p>
           8  +
    /* StructureGenerator.kt:231 */<p>The number of blocks that were written to the snapshot.</p>
    9      9   
    """
   10     10   
   11     11   
    checksum: typing.Optional[str]
   12     12   
    """
   13         -
    <p>An aggregated Base-64 SHA256 checksum based on the checksums of each written block.</p>
          13  +
    /* StructureGenerator.kt:231 */<p>An aggregated Base-64 SHA256 checksum based on the checksums of each written block.</p>
   14     14   
    <p>To generate the aggregated checksum using the linear aggregation method, arrange the checksums for each written block in ascending order of their block index, concatenate them to form a single string, and then generate the checksum on the entire string using the SHA256 algorithm.</p>
   15     15   
    """
   16     16   
   17     17   
    checksum_aggregation_method: typing.Optional[ebs.model.ChecksumAggregationMethod]
   18     18   
    """
   19         -
    <p>The aggregation method used to generate the checksum. Currently, the only supported aggregation method is <code>LINEAR</code>.</p>
          19  +
    /* StructureGenerator.kt:231 */<p>The aggregation method used to generate the checksum. Currently, the only supported aggregation method is <code>LINEAR</code>.</p>
   20     20   
    """
   21     21   
   22     22   
    checksum_algorithm: typing.Optional[ebs.model.ChecksumAlgorithm]
   23     23   
    """
   24         -
    <p>The algorithm used to generate the checksum. Currently, the only supported algorithm is <code>SHA256</code>.</p>
          24  +
    /* StructureGenerator.kt:231 */<p>The algorithm used to generate the checksum. Currently, the only supported algorithm is <code>SHA256</code>.</p>
   25     25   
    """
   26     26   
   27     27   
    snapshot_id: str
   28     28   
    """
   29         -
    <p>The ID of the snapshot.</p>
          29  +
    /* StructureGenerator.kt:231 */<p>The ID of the snapshot.</p>
   30     30   
    """
   31     31   
   32         -
    def __init__(self, changed_blocks_count: int, checksum_aggregation_method: typing.Optional[ebs.model.ChecksumAggregationMethod] = ..., checksum_algorithm: typing.Optional[ebs.model.ChecksumAlgorithm] = ..., snapshot_id: str, checksum: typing.Optional[str] = ...) -> None:
          32  +
    def __init__(self, changed_blocks_count: int, snapshot_id: str, checksum_aggregation_method: typing.Optional[ebs.model.ChecksumAggregationMethod] = ..., checksum_algorithm: typing.Optional[ebs.model.ChecksumAlgorithm] = ..., checksum: typing.Optional[str] = ...) -> None:
   33     33   
        ...
   34     34   
   35     35   
   36     36   
class GetSnapshotBlockInput:
   37     37   
    block_index: int
   38     38   
    """
   39         -
    <p>The block index of the block from which to get data.</p>
          39  +
    /* StructureGenerator.kt:231 */<p>The block index of the block from which to get data.</p>
   40     40   
    <p>Obtain the <code>BlockIndex</code> by running the <code>ListChangedBlocks</code> or <code>ListSnapshotBlocks</code> operations.</p>
   41     41   
    """
   42     42   
   43     43   
    block_token: str
   44     44   
    """
   45         -
    <p>The block token of the block from which to get data.</p>
          45  +
    /* StructureGenerator.kt:231 */<p>The block token of the block from which to get data.</p>
   46     46   
    <p>Obtain the <code>BlockToken</code> by running the <code>ListChangedBlocks</code> or <code>ListSnapshotBlocks</code> operations.</p>
   47     47   
    """
   48     48   
   49     49   
    snapshot_id: str
   50     50   
    """
   51         -
    <p>The ID of the snapshot containing the block from which to get data.</p>
          51  +
    /* StructureGenerator.kt:231 */<p>The ID of the snapshot containing the block from which to get data.</p>
   52     52   
    """
   53     53   
   54     54   
    def __init__(self, snapshot_id: str, block_token: str, block_index: int) -> None:
   55     55   
        ...
   56     56   
   57     57   
   58     58   
class ListChangedBlocksInput:
   59     59   
    first_snapshot_id: typing.Optional[str]
   60     60   
    """
   61         -
    <p>The ID of the first snapshot to use for the comparison.</p><important>
          61  +
    /* StructureGenerator.kt:231 */<p>The ID of the first snapshot to use for the comparison.</p><important>
   62     62   
    <p>The <code>FirstSnapshotID</code> parameter must be specified with a <code>SecondSnapshotId</code> parameter; otherwise, an error occurs.</p>
   63     63   
    </important>
   64     64   
    """
   65     65   
   66     66   
    max_results: typing.Optional[int]
   67     67   
    """
   68         -
    <p>The number of results to return.</p>
          68  +
    /* StructureGenerator.kt:231 */<p>The number of results to return.</p>
   69     69   
    """
   70     70   
   71     71   
    next_token: typing.Optional[str]
   72     72   
    """
   73         -
    <p>The token to request the next page of results.</p>
          73  +
    /* StructureGenerator.kt:231 */<p>The token to request the next page of results.</p>
   74     74   
    """
   75     75   
   76     76   
    second_snapshot_id: str
   77     77   
    """
   78         -
    <p>The ID of the second snapshot to use for the comparison.</p><important>
          78  +
    /* StructureGenerator.kt:231 */<p>The ID of the second snapshot to use for the comparison.</p><important>
   79     79   
    <p>The <code>SecondSnapshotId</code> parameter must be specified with a <code>FirstSnapshotID</code> parameter; otherwise, an error occurs.</p>
   80     80   
    </important>
   81     81   
    """
   82     82   
   83     83   
    starting_block_index: typing.Optional[int]
   84     84   
    """
   85         -
    <p>The block index from which the comparison should start.</p>
          85  +
    /* StructureGenerator.kt:231 */<p>The block index from which the comparison should start.</p>
   86     86   
    <p>The list in the response will start from this block index or the next valid block index in the snapshots.</p>
   87     87   
    """
   88     88   
   89     89   
    def __init__(self, second_snapshot_id: str, first_snapshot_id: typing.Optional[str] = ..., next_token: typing.Optional[str] = ..., max_results: typing.Optional[int] = ..., starting_block_index: typing.Optional[int] = ...) -> None:
   90     90   
        ...
   91     91   
   92     92   
   93     93   
class ListSnapshotBlocksInput:
   94     94   
    max_results: typing.Optional[int]
   95     95   
    """
   96         -
    <p>The number of results to return.</p>
          96  +
    /* StructureGenerator.kt:231 */<p>The number of results to return.</p>
   97     97   
    """
   98     98   
   99     99   
    next_token: typing.Optional[str]
  100    100   
    """
  101         -
    <p>The token to request the next page of results.</p>
         101  +
    /* StructureGenerator.kt:231 */<p>The token to request the next page of results.</p>
  102    102   
    """
  103    103   
  104    104   
    snapshot_id: str
  105    105   
    """
  106         -
    <p>The ID of the snapshot from which to get block indexes and block tokens.</p>
         106  +
    /* StructureGenerator.kt:231 */<p>The ID of the snapshot from which to get block indexes and block tokens.</p>
  107    107   
    """
  108    108   
  109    109   
    starting_block_index: typing.Optional[int]
  110    110   
    """
  111         -
    <p>The block index from which the list should start. The list in the response will start from this block index or the next valid block index in the snapshot.</p>
         111  +
    /* StructureGenerator.kt:231 */<p>The block index from which the list should start. The list in the response will start from this block index or the next valid block index in the snapshot.</p>
  112    112   
    """
  113    113   
  114         -
    def __init__(self, max_results: typing.Optional[int] = ..., starting_block_index: typing.Optional[int] = ..., next_token: typing.Optional[str] = ..., snapshot_id: str) -> None:
         114  +
    def __init__(self, snapshot_id: str, max_results: typing.Optional[int] = ..., starting_block_index: typing.Optional[int] = ..., next_token: typing.Optional[str] = ...) -> None:
  115    115   
        ...
  116    116   
  117    117   
  118    118   
class PutSnapshotBlockInput:
  119    119   
    block_data: ebs.types.ByteStream
  120    120   
    """
  121         -
    <p>The data to write to the block.</p>
         121  +
    /* StructureGenerator.kt:231 */<p>The data to write to the block.</p>
  122    122   
    <p>The block data is not signed as part of the Signature Version 4 signing process. As a result, you must generate and provide a Base64-encoded SHA256 checksum for the block data using the <b>x-amz-Checksum</b> header. Also, you must specify the checksum algorithm using the <b>x-amz-Checksum-Algorithm</b> header. The checksum that you provide is part of the Signature Version 4 signing process. It is validated against a checksum generated by Amazon EBS to ensure the validity and authenticity of the data. If the checksums do not correspond, the request fails. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html#ebsapis-using-checksums"> Using checksums with the EBS direct APIs</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
  123    123   
    """
  124    124   
  125    125   
    block_index: int
  126    126   
    """
  127         -
    <p>The block index of the block in which to write the data. A block index is a logical index in units of <code>512</code> KiB blocks. To identify the block index, divide the logical offset of the data in the logical volume by the block size (logical offset of data/<code>524288</code>). The logical offset of the data must be <code>512</code> KiB aligned.</p>
         127  +
    /* StructureGenerator.kt:231 */<p>The block index of the block in which to write the data. A block index is a logical index in units of <code>512</code> KiB blocks. To identify the block index, divide the logical offset of the data in the logical volume by the block size (logical offset of data/<code>524288</code>). The logical offset of the data must be <code>512</code> KiB aligned.</p>
  128    128   
    """
  129    129   
  130    130   
    checksum: str
  131    131   
    """
  132         -
    <p>A Base64-encoded SHA256 checksum of the data. Only SHA256 checksums are supported.</p>
         132  +
    /* StructureGenerator.kt:231 */<p>A Base64-encoded SHA256 checksum of the data. Only SHA256 checksums are supported.</p>
  133    133   
    """
  134    134   
  135    135   
    checksum_algorithm: ebs.model.ChecksumAlgorithm
  136    136   
    """
  137         -
    <p>The algorithm used to generate the checksum. Currently, the only supported algorithm is <code>SHA256</code>.</p>
         137  +
    /* StructureGenerator.kt:231 */<p>The algorithm used to generate the checksum. Currently, the only supported algorithm is <code>SHA256</code>.</p>
  138    138   
    """
  139    139   
  140    140   
    data_length: int
  141    141   
    """
  142         -
    <p>The size of the data to write to the block, in bytes. Currently, the only supported size is <code>524288</code>.</p>
         142  +
    /* StructureGenerator.kt:231 */<p>The size of the data to write to the block, in bytes. Currently, the only supported size is <code>524288</code>.</p>
  143    143   
    <p>Valid values: <code>524288</code></p>
  144    144   
    """
  145    145   
  146    146   
    progress: typing.Optional[int]
  147    147   
    """
  148         -
    <p>The progress of the write process, as a percentage.</p>
         148  +
    /* StructureGenerator.kt:231 */<p>The progress of the write process, as a percentage.</p>
  149    149   
    """
  150    150   
  151    151   
    snapshot_id: str
  152    152   
    """
  153         -
    <p>The ID of the snapshot.</p>
         153  +
    /* StructureGenerator.kt:231 */<p>The ID of the snapshot.</p>
  154    154   
    """
  155    155   
  156         -
    def __init__(self, snapshot_id: str, block_index: int, checksum: str, progress: typing.Optional[int] = ..., block_data: ebs.types.ByteStream, data_length: int, checksum_algorithm: ebs.model.ChecksumAlgorithm) -> None:
         156  +
    def __init__(self, snapshot_id: str, block_index: int, checksum: str, block_data: ebs.types.ByteStream, data_length: int, checksum_algorithm: ebs.model.ChecksumAlgorithm, progress: typing.Optional[int] = ...) -> None:
  157    157   
        ...
  158    158   
  159    159   
  160    160   
class StartSnapshotInput:
  161    161   
    client_token: typing.Optional[str]
  162    162   
    """
  163         -
    <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully. The subsequent retries with the same client token return the result from the original successful request and they have no additional effect.</p>
         163  +
    /* StructureGenerator.kt:231 */<p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully. The subsequent retries with the same client token return the result from the original successful request and they have no additional effect.</p>
  164    164   
    <p>If you do not specify a client token, one is automatically generated by the AWS SDK.</p>
  165    165   
    <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-direct-api-idempotency.html"> Idempotency for StartSnapshot API</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
  166    166   
    """
  167    167   
  168    168   
    description: typing.Optional[str]
  169    169   
    """
  170         -
    <p>A description for the snapshot.</p>
         170  +
    /* StructureGenerator.kt:231 */<p>A description for the snapshot.</p>
  171    171   
    """
  172    172   
  173    173   
    encrypted: typing.Optional[bool]
  174    174   
    """
  175         -
    <p>Indicates whether to encrypt the snapshot. To create an encrypted snapshot, specify <code>true</code>. To create an unencrypted snapshot, omit this parameter.</p>
         175  +
    /* StructureGenerator.kt:231 */<p>Indicates whether to encrypt the snapshot. To create an encrypted snapshot, specify <code>true</code>. To create an unencrypted snapshot, omit this parameter.</p>
  176    176   
    <p>If you specify a value for <b>ParentSnapshotId</b>, omit this parameter.</p>
  177    177   
    <p>If you specify <code>true</code>, the snapshot is encrypted using the CMK specified using the <b>KmsKeyArn</b> parameter. If no value is specified for <b>KmsKeyArn</b>, the default CMK for your account is used. If no default CMK has been specified for your account, the AWS managed CMK is used. To set a default CMK for your account, use <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyEbsDefaultKmsKeyId.html"> ModifyEbsDefaultKmsKeyId</a>.</p>
  178    178   
    <p>If your account is enabled for encryption by default, you cannot set this parameter to <code>false</code>. In this case, you can omit this parameter.</p>
  179    179   
    <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html#ebsapis-using-encryption"> Using encryption</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
  180    180   
    """
  181    181   
  182    182   
    kms_key_arn: typing.Optional[str]
  183    183   
    """
  184         -
    <p>The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) customer master key (CMK) to be used to encrypt the snapshot. If you do not specify a CMK, the default AWS managed CMK is used.</p>
         184  +
    /* StructureGenerator.kt:231 */<p>The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) customer master key (CMK) to be used to encrypt the snapshot. If you do not specify a CMK, the default AWS managed CMK is used.</p>
  185    185   
    <p>If you specify a <b>ParentSnapshotId</b>, omit this parameter; the snapshot will be encrypted using the same CMK that was used to encrypt the parent snapshot.</p>
  186    186   
    <p>If <b>Encrypted</b> is set to <code>true</code>, you must specify a CMK ARN.</p>
  187    187   
    """
  188    188   
  189    189   
    parent_snapshot_id: typing.Optional[str]
  190    190   
    """
  191         -
    <p>The ID of the parent snapshot. If there is no parent snapshot, or if you are creating the first snapshot for an on-premises volume, omit this parameter.</p>
         191  +
    /* StructureGenerator.kt:231 */<p>The ID of the parent snapshot. If there is no parent snapshot, or if you are creating the first snapshot for an on-premises volume, omit this parameter.</p>
  192    192   
    <p>If your account is enabled for encryption by default, you cannot use an unencrypted snapshot as a parent snapshot. You must first create an encrypted copy of the parent snapshot using <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CopySnapshot.html">CopySnapshot</a>.</p>
  193    193   
    """
  194    194   
  195    195   
    tags: typing.Optional[typing.List[ebs.model.Tag]]
  196    196   
    """
  197         -
    <p>The tags to apply to the snapshot.</p>
         197  +
    /* StructureGenerator.kt:231 */<p>The tags to apply to the snapshot.</p>
  198    198   
    """
  199    199   
  200    200   
    timeout: typing.Optional[int]
  201    201   
    """
  202         -
    <p>The amount of time (in minutes) after which the snapshot is automatically cancelled if:</p>
         202  +
    /* StructureGenerator.kt:231 */<p>The amount of time (in minutes) after which the snapshot is automatically cancelled if:</p>
  203    203   
    <ul>
  204    204   
    <li>
  205    205   
    <p>No blocks are written to the snapshot.</p></li>
  206    206   
    <li>
  207    207   
    <p>The snapshot is not completed after writing the last block of data.</p></li>
  208    208   
    </ul>
  209    209   
    <p>If no value is specified, the timeout defaults to <code>60</code> minutes.</p>
  210    210   
    """
  211    211   
  212    212   
    volume_size: int
  213    213   
    """
  214         -
    <p>The size of the volume, in GiB. The maximum size is <code>16384</code> GiB (16 TiB).</p>
         214  +
    /* StructureGenerator.kt:231 */<p>The size of the volume, in GiB. The maximum size is <code>16384</code> GiB (16 TiB).</p>
  215    215   
    """
  216    216   
  217         -
    def __init__(self, timeout: typing.Optional[int] = ..., client_token: typing.Optional[str] = ..., volume_size: int, tags: typing.Optional[typing.List[ebs.model.Tag]] = ..., encrypted: typing.Optional[bool] = ..., kms_key_arn: typing.Optional[str] = ..., parent_snapshot_id: typing.Optional[str] = ..., description: typing.Optional[str] = ...) -> None:
         217  +
    def __init__(self, volume_size: int, timeout: typing.Optional[int] = ..., client_token: typing.Optional[str] = ..., tags: typing.Optional[typing.List[ebs.model.Tag]] = ..., encrypted: typing.Optional[bool] = ..., kms_key_arn: typing.Optional[str] = ..., parent_snapshot_id: typing.Optional[str] = ..., description: typing.Optional[str] = ...) -> None:
  218    218   
        ...
  219    219   

tmp-codegen-diff/codegen-server-test-python/ebs/rust-server-codegen-python/python/ebs/model/__init__.pyi

@@ -1,1 +141,141 @@
    4      4   
    DependencyAccessDenied: AccessDeniedExceptionReason
    5      5   
    6      6   
    UnauthorizedAccount: AccessDeniedExceptionReason
    7      7   
    8      8   
    name: typing.Any
    9      9   
   10     10   
    value: typing.Any
   11     11   
   12     12   
class Block:
   13     13   
    """
   14         -
    <p>A block of data in an Amazon Elastic Block Store snapshot.</p>
          14  +
    /* StructureGenerator.kt:197 */<p>A block of data in an Amazon Elastic Block Store snapshot.</p>
   15     15   
    """
   16     16   
   17     17   
    block_index: typing.Optional[int]
   18     18   
    """
   19         -
    <p>The block index.</p>
          19  +
    /* StructureGenerator.kt:231 */<p>The block index.</p>
   20     20   
    """
   21     21   
   22     22   
    block_token: typing.Optional[str]
   23     23   
    """
   24         -
    <p>The block token for the block index.</p>
          24  +
    /* StructureGenerator.kt:231 */<p>The block token for the block index.</p>
   25     25   
    """
   26     26   
   27     27   
    def __init__(self, block_token: typing.Optional[str] = ..., block_index: typing.Optional[int] = ...) -> None:
   28     28   
        ...
   29     29   
   30     30   
   31     31   
class ChangedBlock:
   32     32   
    """
   33         -
    <p>A block of data in an Amazon Elastic Block Store snapshot that is different from another snapshot of the same volume/snapshot lineage.</p>
          33  +
    /* StructureGenerator.kt:197 */<p>A block of data in an Amazon Elastic Block Store snapshot that is different from another snapshot of the same volume/snapshot lineage.</p>
   34     34   
    """
   35     35   
   36     36   
    block_index: typing.Optional[int]
   37     37   
    """
   38         -
    <p>The block index.</p>
          38  +
    /* StructureGenerator.kt:231 */<p>The block index.</p>
   39     39   
    """
   40     40   
   41     41   
    first_block_token: typing.Optional[str]
   42     42   
    """
   43         -
    <p>The block token for the block index of the <code>FirstSnapshotId</code> specified in the <code>ListChangedBlocks</code> operation. This value is absent if the first snapshot does not have the changed block that is on the second snapshot.</p>
          43  +
    /* StructureGenerator.kt:231 */<p>The block token for the block index of the <code>FirstSnapshotId</code> specified in the <code>ListChangedBlocks</code> operation. This value is absent if the first snapshot does not have the changed block that is on the second snapshot.</p>
   44     44   
    """
   45     45   
   46     46   
    second_block_token: typing.Optional[str]
   47     47   
    """
   48         -
    <p>The block token for the block index of the <code>SecondSnapshotId</code> specified in the <code>ListChangedBlocks</code> operation.</p>
          48  +
    /* StructureGenerator.kt:231 */<p>The block token for the block index of the <code>SecondSnapshotId</code> specified in the <code>ListChangedBlocks</code> operation.</p>
   49     49   
    """
   50     50   
   51     51   
    def __init__(self, first_block_token: typing.Optional[str] = ..., block_index: typing.Optional[int] = ..., second_block_token: typing.Optional[str] = ...) -> None:
   52     52   
        ...
   53     53   
   54     54   
   55     55   
class ChecksumAggregationMethod:
   56     56   
    ChecksumAggregationLinear: ChecksumAggregationMethod
   57     57   
   58     58   
    name: typing.Any
   59     59   
   60     60   
    value: typing.Any
   61     61   
   62     62   
class ChecksumAlgorithm:
   63     63   
    ChecksumAlgorithmSha256: ChecksumAlgorithm
   64     64   
   65     65   
    name: typing.Any
   66     66   
   67     67   
    value: typing.Any
   68     68   
   69     69   
class RequestThrottledExceptionReason:
   70     70   
    AccountThrottled: RequestThrottledExceptionReason
   71     71   
   72     72   
    DependencyRequestThrottled: RequestThrottledExceptionReason
   73     73   
   74     74   
    name: typing.Any
   75     75   
   76     76   
    value: typing.Any
   77     77   
   78     78   
class ResourceNotFoundExceptionReason:
   79     79   
    DependencyResourceNotFound: ResourceNotFoundExceptionReason
   80     80   
   81     81   
    SnapshotNotFound: ResourceNotFoundExceptionReason
   82     82   
   83     83   
    name: typing.Any
   84     84   
   85     85   
    value: typing.Any
   86     86   
   87     87   
class ServiceQuotaExceededExceptionReason:
   88     88   
    DependencyServiceQuotaExceeded: ServiceQuotaExceededExceptionReason
   89     89   
   90     90   
    name: typing.Any
   91     91   
   92     92   
    value: typing.Any
   93     93   
   94     94   
class Status:
   95     95   
    Completed: Status
   96     96   
   97     97   
    Error: Status
   98     98   
   99     99   
    Pending: Status
  100    100   
  101    101   
    name: typing.Any
  102    102   
  103    103   
    value: typing.Any
  104    104   
  105    105   
class Tag:
  106    106   
    """
  107         -
    <p>Describes a tag.</p>
         107  +
    /* StructureGenerator.kt:197 */<p>Describes a tag.</p>
  108    108   
    """
  109    109   
  110    110   
    key: typing.Optional[str]
  111    111   
    """
  112         -
    <p>The key of the tag.</p>
         112  +
    /* StructureGenerator.kt:231 */<p>The key of the tag.</p>
  113    113   
    """
  114    114   
  115    115   
    value: typing.Optional[str]
  116    116   
    """
  117         -
    <p>The value of the tag.</p>
         117  +
    /* StructureGenerator.kt:231 */<p>The value of the tag.</p>
  118    118   
    """
  119    119   
  120    120   
    def __init__(self, key: typing.Optional[str] = ..., value: typing.Optional[str] = ...) -> None:
  121    121   
        ...
  122    122   
  123    123   
  124    124   
class ValidationExceptionField:
  125    125   
    """
  126         -
    Describes one specific validation failure for an input member.
         126  +
    /* StructureGenerator.kt:197 */Describes one specific validation failure for an input member.
  127    127   
    """
  128    128   
  129    129   
    message: str
  130    130   
    """
  131         -
    A detailed description of the validation failure.
         131  +
    /* StructureGenerator.kt:231 */A detailed description of the validation failure.
  132    132   
    """
  133    133   
  134    134   
    path: str
  135    135   
    """
  136         -
    A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
         136  +
    /* StructureGenerator.kt:231 */A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
  137    137   
    """
  138    138   
  139    139   
    def __init__(self, path: str, message: str) -> None:
  140    140   
        ...
  141    141   

tmp-codegen-diff/codegen-server-test-python/ebs/rust-server-codegen-python/python/ebs/output/__init__.pyi

@@ -1,1 +168,168 @@
    1      1   
import ebs.model
    2      2   
import ebs.types
    3      3   
import typing
    4      4   
    5      5   
class CompleteSnapshotOutput:
    6      6   
    status: typing.Optional[ebs.model.Status]
    7      7   
    """
    8         -
    <p>The status of the snapshot.</p>
           8  +
    /* StructureGenerator.kt:231 */<p>The status of the snapshot.</p>
    9      9   
    """
   10     10   
   11     11   
    def __init__(self, status: typing.Optional[ebs.model.Status] = ...) -> None:
   12     12   
        ...
   13     13   
   14     14   
   15     15   
class GetSnapshotBlockOutput:
   16     16   
    block_data: ebs.types.ByteStream
   17     17   
    """
   18         -
    <p>The data content of the block.</p>
          18  +
    /* StructureGenerator.kt:231 */<p>The data content of the block.</p>
   19     19   
    """
   20     20   
   21     21   
    checksum: typing.Optional[str]
   22     22   
    """
   23         -
    <p>The checksum generated for the block, which is Base64 encoded.</p>
          23  +
    /* StructureGenerator.kt:231 */<p>The checksum generated for the block, which is Base64 encoded.</p>
   24     24   
    """
   25     25   
   26     26   
    checksum_algorithm: typing.Optional[ebs.model.ChecksumAlgorithm]
   27     27   
    """
   28         -
    <p>The algorithm used to generate the checksum for the block, such as SHA256.</p>
          28  +
    /* StructureGenerator.kt:231 */<p>The algorithm used to generate the checksum for the block, such as SHA256.</p>
   29     29   
    """
   30     30   
   31     31   
    data_length: typing.Optional[int]
   32     32   
    """
   33         -
    <p>The size of the data in the block.</p>
          33  +
    /* StructureGenerator.kt:231 */<p>The size of the data in the block.</p>
   34     34   
    """
   35     35   
   36         -
    def __init__(self, data_length: typing.Optional[int] = ..., checksum_algorithm: typing.Optional[ebs.model.ChecksumAlgorithm] = ..., checksum: typing.Optional[str] = ..., block_data: ebs.types.ByteStream) -> None:
          36  +
    def __init__(self, block_data: ebs.types.ByteStream, data_length: typing.Optional[int] = ..., checksum_algorithm: typing.Optional[ebs.model.ChecksumAlgorithm] = ..., checksum: typing.Optional[str] = ...) -> None:
   37     37   
        ...
   38     38   
   39     39   
   40     40   
class ListChangedBlocksOutput:
   41     41   
    block_size: typing.Optional[int]
   42     42   
    """
   43         -
    <p>The size of the block.</p>
          43  +
    /* StructureGenerator.kt:231 */<p>The size of the block.</p>
   44     44   
    """
   45     45   
   46     46   
    changed_blocks: typing.Optional[typing.List[ebs.model.ChangedBlock]]
   47     47   
    """
   48         -
    <p>An array of objects containing information about the changed blocks.</p>
          48  +
    /* StructureGenerator.kt:231 */<p>An array of objects containing information about the changed blocks.</p>
   49     49   
    """
   50     50   
   51     51   
    expiry_time: typing.Optional[ebs.types.DateTime]
   52     52   
    """
   53         -
    <p>The time when the <code>BlockToken</code> expires.</p>
          53  +
    /* StructureGenerator.kt:231 */<p>The time when the <code>BlockToken</code> expires.</p>
   54     54   
    """
   55     55   
   56     56   
    next_token: typing.Optional[str]
   57     57   
    """
   58         -
    <p>The token to use to retrieve the next page of results. This value is null when there are no more results to return.</p>
          58  +
    /* StructureGenerator.kt:231 */<p>The token to use to retrieve the next page of results. This value is null when there are no more results to return.</p>
   59     59   
    """
   60     60   
   61     61   
    volume_size: typing.Optional[int]
   62     62   
    """
   63         -
    <p>The size of the volume in GB.</p>
          63  +
    /* StructureGenerator.kt:231 */<p>The size of the volume in GB.</p>
   64     64   
    """
   65     65   
   66     66   
    def __init__(self, block_size: typing.Optional[int] = ..., expiry_time: typing.Optional[ebs.types.DateTime] = ..., volume_size: typing.Optional[int] = ..., next_token: typing.Optional[str] = ..., changed_blocks: typing.Optional[typing.List[ebs.model.ChangedBlock]] = ...) -> None:
   67     67   
        ...
   68     68   
   69     69   
   70     70   
class ListSnapshotBlocksOutput:
   71     71   
    block_size: typing.Optional[int]
   72     72   
    """
   73         -
    <p>The size of the block.</p>
          73  +
    /* StructureGenerator.kt:231 */<p>The size of the block.</p>
   74     74   
    """
   75     75   
   76     76   
    blocks: typing.Optional[typing.List[ebs.model.Block]]
   77     77   
    """
   78         -
    <p>An array of objects containing information about the blocks.</p>
          78  +
    /* StructureGenerator.kt:231 */<p>An array of objects containing information about the blocks.</p>
   79     79   
    """
   80     80   
   81     81   
    expiry_time: typing.Optional[ebs.types.DateTime]
   82     82   
    """
   83         -
    <p>The time when the <code>BlockToken</code> expires.</p>
          83  +
    /* StructureGenerator.kt:231 */<p>The time when the <code>BlockToken</code> expires.</p>
   84     84   
    """
   85     85   
   86     86   
    next_token: typing.Optional[str]
   87     87   
    """
   88         -
    <p>The token to use to retrieve the next page of results. This value is null when there are no more results to return.</p>
          88  +
    /* StructureGenerator.kt:231 */<p>The token to use to retrieve the next page of results. This value is null when there are no more results to return.</p>
   89     89   
    """
   90     90   
   91     91   
    volume_size: typing.Optional[int]
   92     92   
    """
   93         -
    <p>The size of the volume in GB.</p>
          93  +
    /* StructureGenerator.kt:231 */<p>The size of the volume in GB.</p>
   94     94   
    """
   95     95   
   96     96   
    def __init__(self, volume_size: typing.Optional[int] = ..., next_token: typing.Optional[str] = ..., expiry_time: typing.Optional[ebs.types.DateTime] = ..., blocks: typing.Optional[typing.List[ebs.model.Block]] = ..., block_size: typing.Optional[int] = ...) -> None:
   97     97   
        ...
   98     98   
   99     99   
  100    100   
class PutSnapshotBlockOutput:
  101    101   
    checksum: typing.Optional[str]
  102    102   
    """
  103         -
    <p>The SHA256 checksum generated for the block data by Amazon EBS.</p>
         103  +
    /* StructureGenerator.kt:231 */<p>The SHA256 checksum generated for the block data by Amazon EBS.</p>
  104    104   
    """
  105    105   
  106    106   
    checksum_algorithm: typing.Optional[ebs.model.ChecksumAlgorithm]
  107    107   
    """
  108         -
    <p>The algorithm used by Amazon EBS to generate the checksum.</p>
         108  +
    /* StructureGenerator.kt:231 */<p>The algorithm used by Amazon EBS to generate the checksum.</p>
  109    109   
    """
  110    110   
  111    111   
    def __init__(self, checksum_algorithm: typing.Optional[ebs.model.ChecksumAlgorithm] = ..., checksum: typing.Optional[str] = ...) -> None:
  112    112   
        ...
  113    113   
  114    114   
  115    115   
class StartSnapshotOutput:
  116    116   
    block_size: typing.Optional[int]
  117    117   
    """
  118         -
    <p>The size of the blocks in the snapshot, in bytes.</p>
         118  +
    /* StructureGenerator.kt:231 */<p>The size of the blocks in the snapshot, in bytes.</p>
  119    119   
    """
  120    120   
  121    121   
    description: typing.Optional[str]
  122    122   
    """
  123         -
    <p>The description of the snapshot.</p>
         123  +
    /* StructureGenerator.kt:231 */<p>The description of the snapshot.</p>
  124    124   
    """
  125    125   
  126    126   
    kms_key_arn: typing.Optional[str]
  127    127   
    """
  128         -
    <p>The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) customer master key (CMK) used to encrypt the snapshot.</p>
         128  +
    /* StructureGenerator.kt:231 */<p>The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) customer master key (CMK) used to encrypt the snapshot.</p>
  129    129   
    """
  130    130   
  131    131   
    owner_id: typing.Optional[str]
  132    132   
    """
  133         -
    <p>The AWS account ID of the snapshot owner.</p>
         133  +
    /* StructureGenerator.kt:231 */<p>The AWS account ID of the snapshot owner.</p>
  134    134   
    """
  135    135   
  136    136   
    parent_snapshot_id: typing.Optional[str]
  137    137   
    """
  138         -
    <p>The ID of the parent snapshot.</p>
         138  +
    /* StructureGenerator.kt:231 */<p>The ID of the parent snapshot.</p>
  139    139   
    """
  140    140   
  141    141   
    snapshot_id: typing.Optional[str]
  142    142   
    """
  143         -
    <p>The ID of the snapshot.</p>
         143  +
    /* StructureGenerator.kt:231 */<p>The ID of the snapshot.</p>
  144    144   
    """
  145    145   
  146    146   
    start_time: typing.Optional[ebs.types.DateTime]
  147    147   
    """
  148         -
    <p>The timestamp when the snapshot was created.</p>
         148  +
    /* StructureGenerator.kt:231 */<p>The timestamp when the snapshot was created.</p>
  149    149   
    """
  150    150   
  151    151   
    status: typing.Optional[ebs.model.Status]
  152    152   
    """
  153         -
    <p>The status of the snapshot.</p>
         153  +
    /* StructureGenerator.kt:231 */<p>The status of the snapshot.</p>
  154    154   
    """
  155    155   
  156    156   
    tags: typing.Optional[typing.List[ebs.model.Tag]]
  157    157   
    """
  158         -
    <p>The tags applied to the snapshot. You can specify up to 50 tags per snapshot. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html"> Tagging your Amazon EC2 resources</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
         158  +
    /* StructureGenerator.kt:231 */<p>The tags applied to the snapshot. You can specify up to 50 tags per snapshot. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html"> Tagging your Amazon EC2 resources</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
  159    159   
    """
  160    160   
  161    161   
    volume_size: typing.Optional[int]
  162    162   
    """
  163         -
    <p>The size of the volume, in GiB.</p>
         163  +
    /* StructureGenerator.kt:231 */<p>The size of the volume, in GiB.</p>
  164    164   
    """
  165    165   
  166    166   
    def __init__(self, tags: typing.Optional[typing.List[ebs.model.Tag]] = ..., kms_key_arn: typing.Optional[str] = ..., owner_id: typing.Optional[str] = ..., volume_size: typing.Optional[int] = ..., parent_snapshot_id: typing.Optional[str] = ..., description: typing.Optional[str] = ..., snapshot_id: typing.Optional[str] = ..., block_size: typing.Optional[int] = ..., start_time: typing.Optional[ebs.types.DateTime] = ..., status: typing.Optional[ebs.model.Status] = ...) -> None:
  167    167   
        ...
  168    168   

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

@@ -1,1 +32,40 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
    3      3   
pub(crate) mod tags_constrained {
    4      4   
           5  +
    /* PubCrateConstrainedCollectionGenerator.kt:79 */
    5      6   
    #[derive(Debug, Clone)]
    6      7   
    pub(crate) struct TagsConstrained(pub(crate) std::vec::Vec<crate::model::Tag>);
    7      8   
    8      9   
    impl crate::constrained::Constrained for TagsConstrained {
    9     10   
        type Unconstrained = crate::unconstrained::tags_unconstrained::TagsUnconstrained;
   10     11   
    }
          12  +
    /* PubCrateConstrainedCollectionGenerator.kt:140 */
   11     13   
    impl ::std::convert::From<TagsConstrained> for ::std::vec::Vec<crate::model::Tag> {
          14  +
        /* PubCrateConstrainedCollectionGenerator.kt:141 */
   12     15   
        fn from(v: TagsConstrained) -> Self {
          16  +
            /* PubCrateConstrainedCollectionGenerator.kt:149 */
   13     17   
            v.0
          18  +
            /* PubCrateConstrainedCollectionGenerator.kt:141 */
   14     19   
        }
          20  +
        /* PubCrateConstrainedCollectionGenerator.kt:140 */
   15     21   
    }
          22  +
          23  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
   16     24   
}
   17     25   
   18     26   
/*
   19     27   
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
   20     28   
 * SPDX-License-Identifier: Apache-2.0
   21     29   
 */
   22     30   
   23     31   
pub(crate) trait Constrained {
   24     32   
    type Unconstrained;
   25     33   
}

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

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