Server Test

Server Test

rev. 7254d43655ed63111c94f599437f2b0d3f55446e (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-server-test/pokemon-service-server-sdk/rust-server-codegen/src/error.rs

@@ -1,1 +373,594 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
    2      3   
/* ServerOperationErrorGenerator.kt:63 */
    3         -
/// Error type for the `GetStorage` operation.
           4  +
/// Error type for the `CapturePokemon` operation.
    4      5   
/* ServerOperationErrorGenerator.kt:64 */
    5         -
/// Each variant represents an error that can occur for the `GetStorage` operation.
           6  +
/// Each variant represents an error that can occur for the `CapturePokemon` operation.
    6      7   
/* RustType.kt:534 */
    7      8   
#[derive(::std::fmt::Debug)]
    8         -
pub /* ServerOperationErrorGenerator.kt:66 */ enum GetStorageError {
           9  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum CapturePokemonError {
    9     10   
    /* ServerOperationErrorGenerator.kt:68 */
   10     11   
    #[allow(missing_docs)] // documentation missing in model
   11     12   
    /* ServerOperationErrorGenerator.kt:71 */
   12         -
    ResourceNotFoundException(crate::error::ResourceNotFoundException),
   13         -
    /// /* ServerOperationErrorGenerator.kt:68 */Not authorized to access Pokémon storage.
          13  +
    UnsupportedRegionError(crate::error::UnsupportedRegionError),
          14  +
    /* ServerOperationErrorGenerator.kt:68 */
          15  +
    #[allow(missing_docs)] // documentation missing in model
   14     16   
    /* ServerOperationErrorGenerator.kt:71 */
   15         -
    StorageAccessNotAuthorized(crate::error::StorageAccessNotAuthorized),
          17  +
    ThrottlingError(crate::error::ThrottlingError),
   16     18   
    /// /* 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.
   17     19   
    /* ServerOperationErrorGenerator.kt:71 */
   18     20   
    ValidationException(crate::error::ValidationException),
          21  +
    /* ServerOperationErrorGenerator.kt:68 */
          22  +
    #[allow(missing_docs)] // documentation missing in model
          23  +
    /* ServerOperationErrorGenerator.kt:71 */
          24  +
    MasterBallUnsuccessful(crate::error::MasterBallUnsuccessful),
          25  +
    /* ServerOperationErrorGenerator.kt:68 */
          26  +
    #[allow(missing_docs)] // documentation missing in model
          27  +
    /* ServerOperationErrorGenerator.kt:71 */
          28  +
    InvalidPokeballError(crate::error::InvalidPokeballError),
   19     29   
    /* ServerOperationErrorGenerator.kt:66 */
   20     30   
}
   21     31   
/* ServerOperationErrorGenerator.kt:75 */
   22         -
impl ::std::fmt::Display for GetStorageError {
          32  +
impl ::std::fmt::Display for CapturePokemonError {
   23     33   
    /* ServerOperationErrorGenerator.kt:76 */
   24     34   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
   25     35   
        /* ServerOperationErrorGenerator.kt:139 */
   26     36   
        match &self {
   27     37   
            /* ServerOperationErrorGenerator.kt:142 */
   28         -
            GetStorageError::ResourceNotFoundException(_inner) =>
          38  +
            CapturePokemonError::UnsupportedRegionError(_inner) =>
   29     39   
            /* ServerOperationErrorGenerator.kt:78 */
   30     40   
            {
   31     41   
                _inner.fmt(f)
   32     42   
            }
   33     43   
            ,
   34     44   
            /* ServerOperationErrorGenerator.kt:142 */
   35         -
            GetStorageError::StorageAccessNotAuthorized(_inner) =>
          45  +
            CapturePokemonError::ThrottlingError(_inner) =>
   36     46   
            /* ServerOperationErrorGenerator.kt:78 */
   37     47   
            {
   38     48   
                _inner.fmt(f)
   39     49   
            }
   40     50   
            ,
   41     51   
            /* ServerOperationErrorGenerator.kt:142 */
   42         -
            GetStorageError::ValidationException(_inner) =>
          52  +
            CapturePokemonError::ValidationException(_inner) =>
          53  +
            /* ServerOperationErrorGenerator.kt:78 */
          54  +
            {
          55  +
                _inner.fmt(f)
          56  +
            }
          57  +
            ,
          58  +
            /* ServerOperationErrorGenerator.kt:142 */
          59  +
            CapturePokemonError::MasterBallUnsuccessful(_inner) =>
          60  +
            /* ServerOperationErrorGenerator.kt:78 */
          61  +
            {
          62  +
                _inner.fmt(f)
          63  +
            }
          64  +
            ,
          65  +
            /* ServerOperationErrorGenerator.kt:142 */
          66  +
            CapturePokemonError::InvalidPokeballError(_inner) =>
   43     67   
            /* ServerOperationErrorGenerator.kt:78 */
   44     68   
            {
   45     69   
                _inner.fmt(f)
   46     70   
            }
   47     71   
            /* ServerOperationErrorGenerator.kt:139 */
   48     72   
        }
   49     73   
        /* ServerOperationErrorGenerator.kt:76 */
   50     74   
    }
   51     75   
    /* ServerOperationErrorGenerator.kt:75 */
   52     76   
}
   53     77   
/* ServerOperationErrorGenerator.kt:83 */
   54         -
impl GetStorageError {
          78  +
impl CapturePokemonError {
   55     79   
    /* ServerOperationErrorGenerator.kt:87 */
   56         -
    /// Returns `true` if the error kind is `GetStorageError::ResourceNotFoundException`.
          80  +
    /// Returns `true` if the error kind is `CapturePokemonError::UnsupportedRegionError`.
   57     81   
    /* ServerOperationErrorGenerator.kt:88 */
   58         -
    pub fn is_resource_not_found_exception(&self) -> bool {
          82  +
    pub fn is_unsupported_region_error(&self) -> bool {
   59     83   
        /* ServerOperationErrorGenerator.kt:89 */
   60         -
        matches!(&self, GetStorageError::ResourceNotFoundException(_))
          84  +
        matches!(&self, CapturePokemonError::UnsupportedRegionError(_))
   61     85   
        /* ServerOperationErrorGenerator.kt:88 */
   62     86   
    }
   63     87   
    /* ServerOperationErrorGenerator.kt:87 */
   64         -
    /// Returns `true` if the error kind is `GetStorageError::StorageAccessNotAuthorized`.
          88  +
    /// Returns `true` if the error kind is `CapturePokemonError::ThrottlingError`.
   65     89   
    /* ServerOperationErrorGenerator.kt:88 */
   66         -
    pub fn is_storage_access_not_authorized(&self) -> bool {
          90  +
    pub fn is_throttling_error(&self) -> bool {
   67     91   
        /* ServerOperationErrorGenerator.kt:89 */
   68         -
        matches!(&self, GetStorageError::StorageAccessNotAuthorized(_))
          92  +
        matches!(&self, CapturePokemonError::ThrottlingError(_))
   69     93   
        /* ServerOperationErrorGenerator.kt:88 */
   70     94   
    }
   71     95   
    /* ServerOperationErrorGenerator.kt:87 */
   72         -
    /// Returns `true` if the error kind is `GetStorageError::ValidationException`.
          96  +
    /// Returns `true` if the error kind is `CapturePokemonError::ValidationException`.
   73     97   
    /* ServerOperationErrorGenerator.kt:88 */
   74     98   
    pub fn is_validation_exception(&self) -> bool {
   75     99   
        /* ServerOperationErrorGenerator.kt:89 */
   76         -
        matches!(&self, GetStorageError::ValidationException(_))
         100  +
        matches!(&self, CapturePokemonError::ValidationException(_))
         101  +
        /* ServerOperationErrorGenerator.kt:88 */
         102  +
    }
         103  +
    /* ServerOperationErrorGenerator.kt:87 */
         104  +
    /// Returns `true` if the error kind is `CapturePokemonError::MasterBallUnsuccessful`.
         105  +
    /* ServerOperationErrorGenerator.kt:88 */
         106  +
    pub fn is_master_ball_unsuccessful(&self) -> bool {
         107  +
        /* ServerOperationErrorGenerator.kt:89 */
         108  +
        matches!(&self, CapturePokemonError::MasterBallUnsuccessful(_))
         109  +
        /* ServerOperationErrorGenerator.kt:88 */
         110  +
    }
         111  +
    /* ServerOperationErrorGenerator.kt:87 */
         112  +
    /// Returns `true` if the error kind is `CapturePokemonError::InvalidPokeballError`.
         113  +
    /* ServerOperationErrorGenerator.kt:88 */
         114  +
    pub fn is_invalid_pokeball_error(&self) -> bool {
         115  +
        /* ServerOperationErrorGenerator.kt:89 */
         116  +
        matches!(&self, CapturePokemonError::InvalidPokeballError(_))
   77    117   
        /* ServerOperationErrorGenerator.kt:88 */
   78    118   
    }
   79    119   
    /* ServerOperationErrorGenerator.kt:92 */
   80    120   
    /// Returns the error name string by matching the correct variant.
   81    121   
    /* ServerOperationErrorGenerator.kt:93 */
   82    122   
    pub fn name(&self) -> &'static str {
   83    123   
        /* ServerOperationErrorGenerator.kt:139 */
   84    124   
        match &self {
   85    125   
            /* ServerOperationErrorGenerator.kt:142 */
   86         -
            GetStorageError::ResourceNotFoundException(_inner) =>
         126  +
            CapturePokemonError::UnsupportedRegionError(_inner) =>
   87    127   
            /* ServerOperationErrorGenerator.kt:95 */
   88    128   
            {
   89    129   
                _inner.name()
   90    130   
            }
   91    131   
            ,
   92    132   
            /* ServerOperationErrorGenerator.kt:142 */
   93         -
            GetStorageError::StorageAccessNotAuthorized(_inner) =>
         133  +
            CapturePokemonError::ThrottlingError(_inner) =>
   94    134   
            /* ServerOperationErrorGenerator.kt:95 */
   95    135   
            {
   96    136   
                _inner.name()
   97    137   
            }
   98    138   
            ,
   99    139   
            /* ServerOperationErrorGenerator.kt:142 */
  100         -
            GetStorageError::ValidationException(_inner) =>
         140  +
            CapturePokemonError::ValidationException(_inner) =>
         141  +
            /* ServerOperationErrorGenerator.kt:95 */
         142  +
            {
         143  +
                _inner.name()
         144  +
            }
         145  +
            ,
         146  +
            /* ServerOperationErrorGenerator.kt:142 */
         147  +
            CapturePokemonError::MasterBallUnsuccessful(_inner) =>
         148  +
            /* ServerOperationErrorGenerator.kt:95 */
         149  +
            {
         150  +
                _inner.name()
         151  +
            }
         152  +
            ,
         153  +
            /* ServerOperationErrorGenerator.kt:142 */
         154  +
            CapturePokemonError::InvalidPokeballError(_inner) =>
  101    155   
            /* ServerOperationErrorGenerator.kt:95 */
  102    156   
            {
  103    157   
                _inner.name()
  104    158   
            }
  105    159   
            /* ServerOperationErrorGenerator.kt:139 */
  106    160   
        }
  107    161   
        /* ServerOperationErrorGenerator.kt:93 */
  108    162   
    }
  109    163   
    /* ServerOperationErrorGenerator.kt:83 */
  110    164   
}
  111    165   
/* ServerOperationErrorGenerator.kt:100 */
  112         -
impl ::std::error::Error for GetStorageError {
         166  +
impl ::std::error::Error for CapturePokemonError {
  113    167   
    /* ServerOperationErrorGenerator.kt:101 */
  114    168   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
  115    169   
        /* ServerOperationErrorGenerator.kt:139 */
  116    170   
        match &self {
  117    171   
            /* ServerOperationErrorGenerator.kt:142 */
  118         -
            GetStorageError::ResourceNotFoundException(_inner) =>
         172  +
            CapturePokemonError::UnsupportedRegionError(_inner) =>
  119    173   
            /* ServerOperationErrorGenerator.kt:103 */
  120    174   
            {
  121    175   
                Some(_inner)
  122    176   
            }
  123    177   
            ,
  124    178   
            /* ServerOperationErrorGenerator.kt:142 */
  125         -
            GetStorageError::StorageAccessNotAuthorized(_inner) =>
         179  +
            CapturePokemonError::ThrottlingError(_inner) =>
  126    180   
            /* ServerOperationErrorGenerator.kt:103 */
  127    181   
            {
  128    182   
                Some(_inner)
  129    183   
            }
  130    184   
            ,
  131    185   
            /* ServerOperationErrorGenerator.kt:142 */
  132         -
            GetStorageError::ValidationException(_inner) =>
         186  +
            CapturePokemonError::ValidationException(_inner) =>
         187  +
            /* ServerOperationErrorGenerator.kt:103 */
         188  +
            {
         189  +
                Some(_inner)
         190  +
            }
         191  +
            ,
         192  +
            /* ServerOperationErrorGenerator.kt:142 */
         193  +
            CapturePokemonError::MasterBallUnsuccessful(_inner) =>
         194  +
            /* ServerOperationErrorGenerator.kt:103 */
         195  +
            {
         196  +
                Some(_inner)
         197  +
            }
         198  +
            ,
         199  +
            /* ServerOperationErrorGenerator.kt:142 */
         200  +
            CapturePokemonError::InvalidPokeballError(_inner) =>
  133    201   
            /* ServerOperationErrorGenerator.kt:103 */
  134    202   
            {
  135    203   
                Some(_inner)
  136    204   
            }
  137    205   
            /* ServerOperationErrorGenerator.kt:139 */
  138    206   
        }
  139    207   
        /* ServerOperationErrorGenerator.kt:101 */
  140    208   
    }
  141    209   
    /* ServerOperationErrorGenerator.kt:100 */
  142    210   
}
  143    211   
/* ServerOperationErrorGenerator.kt:110 */
  144         -
impl ::std::convert::From<crate::error::ResourceNotFoundException>
  145         -
    for crate::error::GetStorageError
         212  +
impl ::std::convert::From<crate::error::UnsupportedRegionError>
         213  +
    for crate::error::CapturePokemonError
  146    214   
{
  147    215   
    /* ServerOperationErrorGenerator.kt:111 */
  148         -
    fn from(variant: crate::error::ResourceNotFoundException) -> crate::error::GetStorageError {
         216  +
    fn from(variant: crate::error::UnsupportedRegionError) -> crate::error::CapturePokemonError {
  149    217   
        /* ServerOperationErrorGenerator.kt:112 */
  150         -
        Self::ResourceNotFoundException(variant)
         218  +
        Self::UnsupportedRegionError(variant)
  151    219   
        /* ServerOperationErrorGenerator.kt:111 */
  152    220   
    }
  153    221   
    /* ServerOperationErrorGenerator.kt:110 */
  154    222   
}
  155    223   
/* ServerOperationErrorGenerator.kt:110 */
  156         -
impl ::std::convert::From<crate::error::StorageAccessNotAuthorized>
  157         -
    for crate::error::GetStorageError
  158         -
{
         224  +
impl ::std::convert::From<crate::error::ThrottlingError> for crate::error::CapturePokemonError {
  159    225   
    /* ServerOperationErrorGenerator.kt:111 */
  160         -
    fn from(variant: crate::error::StorageAccessNotAuthorized) -> crate::error::GetStorageError {
         226  +
    fn from(variant: crate::error::ThrottlingError) -> crate::error::CapturePokemonError {
  161    227   
        /* ServerOperationErrorGenerator.kt:112 */
  162         -
        Self::StorageAccessNotAuthorized(variant)
         228  +
        Self::ThrottlingError(variant)
  163    229   
        /* ServerOperationErrorGenerator.kt:111 */
  164    230   
    }
  165    231   
    /* ServerOperationErrorGenerator.kt:110 */
  166    232   
}
  167    233   
/* ServerOperationErrorGenerator.kt:110 */
  168         -
impl ::std::convert::From<crate::error::ValidationException> for crate::error::GetStorageError {
         234  +
impl ::std::convert::From<crate::error::ValidationException> for crate::error::CapturePokemonError {
  169    235   
    /* ServerOperationErrorGenerator.kt:111 */
  170         -
    fn from(variant: crate::error::ValidationException) -> crate::error::GetStorageError {
         236  +
    fn from(variant: crate::error::ValidationException) -> crate::error::CapturePokemonError {
  171    237   
        /* ServerOperationErrorGenerator.kt:112 */
  172    238   
        Self::ValidationException(variant)
  173    239   
        /* ServerOperationErrorGenerator.kt:111 */
  174    240   
    }
  175    241   
    /* ServerOperationErrorGenerator.kt:110 */
  176    242   
}
         243  +
/* ServerOperationErrorGenerator.kt:110 */
         244  +
impl ::std::convert::From<crate::error::MasterBallUnsuccessful>
         245  +
    for crate::error::CapturePokemonError
         246  +
{
         247  +
    /* ServerOperationErrorGenerator.kt:111 */
         248  +
    fn from(variant: crate::error::MasterBallUnsuccessful) -> crate::error::CapturePokemonError {
         249  +
        /* ServerOperationErrorGenerator.kt:112 */
         250  +
        Self::MasterBallUnsuccessful(variant)
         251  +
        /* ServerOperationErrorGenerator.kt:111 */
         252  +
    }
         253  +
    /* ServerOperationErrorGenerator.kt:110 */
         254  +
}
         255  +
/* ServerOperationErrorGenerator.kt:110 */
         256  +
impl ::std::convert::From<crate::error::InvalidPokeballError>
         257  +
    for crate::error::CapturePokemonError
         258  +
{
         259  +
    /* ServerOperationErrorGenerator.kt:111 */
         260  +
    fn from(variant: crate::error::InvalidPokeballError) -> crate::error::CapturePokemonError {
         261  +
        /* ServerOperationErrorGenerator.kt:112 */
         262  +
        Self::InvalidPokeballError(variant)
         263  +
        /* ServerOperationErrorGenerator.kt:111 */
         264  +
    }
         265  +
    /* ServerOperationErrorGenerator.kt:110 */
         266  +
}
  177    267   
  178         -
/// /* 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.
         268  +
/* StructureGenerator.kt:197 */
         269  +
#[allow(missing_docs)] // documentation missing in model
  179    270   
/* RustType.kt:534 */
  180    271   
#[derive(
  181    272   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  182    273   
)]
  183         -
pub /* StructureGenerator.kt:201 */ struct ValidationException {
  184         -
    /// /* StructureGenerator.kt:231 */A summary of the validation failure.
  185         -
    pub message: ::std::string::String,
  186         -
    /// /* 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.
  187         -
    pub field_list: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
         274  +
pub /* StructureGenerator.kt:201 */ struct UnsupportedRegionError {
         275  +
    /* StructureGenerator.kt:231 */
         276  +
    #[allow(missing_docs)] // documentation missing in model
         277  +
    pub region: ::std::string::String,
  188    278   
    /* StructureGenerator.kt:201 */
  189    279   
}
  190    280   
/* StructureGenerator.kt:135 */
  191         -
impl ValidationException {
  192         -
    /// /* 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.
         281  +
impl UnsupportedRegionError {
         282  +
    /* StructureGenerator.kt:231 */
         283  +
    #[allow(missing_docs)] // documentation missing in model
  193    284   
                           /* StructureGenerator.kt:166 */
  194         -
    pub fn field_list(&self) -> ::std::option::Option<&[crate::model::ValidationExceptionField]> {
  195         -
        /* StructureGenerator.kt:169 */
  196         -
        self.field_list.as_deref()
         285  +
    pub fn region(&self) -> &str {
         286  +
        /* StructureGenerator.kt:171 */
         287  +
        use std::ops::Deref;
         288  +
        self.region.deref()
  197    289   
        /* StructureGenerator.kt:166 */
  198    290   
    }
  199    291   
    /* StructureGenerator.kt:135 */
  200    292   
}
  201    293   
/* ErrorImplGenerator.kt:99 */
  202         -
impl ValidationException {
  203         -
    /* ErrorImplGenerator.kt:128 */
  204         -
    /// Returns the error message.
  205         -
    pub fn message(&self) -> &str {
  206         -
        &self.message
  207         -
    }
         294  +
impl UnsupportedRegionError {
  208    295   
    /* ErrorImplGenerator.kt:141 */
  209    296   
    #[doc(hidden)]
  210    297   
    /// Returns the error name.
  211    298   
    pub fn name(&self) -> &'static str {
  212         -
        "ValidationException"
         299  +
        "UnsupportedRegionError"
  213    300   
    }
  214    301   
    /* ErrorImplGenerator.kt:99 */
  215    302   
}
  216    303   
/* ErrorImplGenerator.kt:153 */
  217         -
impl ::std::fmt::Display for ValidationException {
         304  +
impl ::std::fmt::Display for UnsupportedRegionError {
  218    305   
    /* ErrorImplGenerator.kt:154 */
  219    306   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  220    307   
        /* ErrorImplGenerator.kt:161 */
  221         -
        ::std::write!(f, "ValidationException")?;
  222         -
        /* ErrorImplGenerator.kt:166 */
  223         -
        {
  224         -
            /* ErrorImplGenerator.kt:169 */
  225         -
            ::std::write!(f, ": {}", &self.message)?;
  226         -
            /* ErrorImplGenerator.kt:166 */
  227         -
        }
         308  +
        ::std::write!(f, "UnsupportedRegionError")?;
  228    309   
        /* ErrorImplGenerator.kt:176 */
  229    310   
        Ok(())
  230    311   
        /* ErrorImplGenerator.kt:154 */
  231    312   
    }
  232    313   
    /* ErrorImplGenerator.kt:153 */
  233    314   
}
  234    315   
/* ErrorImplGenerator.kt:180 */
  235         -
impl ::std::error::Error for ValidationException {}
         316  +
impl ::std::error::Error for UnsupportedRegionError {}
  236    317   
/* ServerCodegenVisitor.kt:356 */
  237         -
impl ValidationException {
  238         -
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException).
         318  +
impl UnsupportedRegionError {
         319  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`UnsupportedRegionError`](crate::error::UnsupportedRegionError).
  239    320   
    /* ServerBuilderGenerator.kt:295 */
  240         -
    pub fn builder() -> crate::error::validation_exception::Builder {
         321  +
    pub fn builder() -> crate::error::unsupported_region_error::Builder {
  241    322   
        /* ServerBuilderGenerator.kt:296 */
  242         -
        crate::error::validation_exception::Builder::default()
         323  +
        crate::error::unsupported_region_error::Builder::default()
  243    324   
        /* ServerBuilderGenerator.kt:295 */
  244    325   
    }
  245    326   
    /* ServerCodegenVisitor.kt:356 */
  246    327   
}
  247    328   
  248         -
/// /* StructureGenerator.kt:197 */Not authorized to access Pokémon storage.
         329  +
/* StructureGenerator.kt:197 */
         330  +
#[allow(missing_docs)] // documentation missing in model
  249    331   
/* RustType.kt:534 */
  250    332   
#[derive(
  251    333   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  252    334   
)]
  253         -
pub /* StructureGenerator.kt:201 */ struct StorageAccessNotAuthorized {/* StructureGenerator.kt:201 */}
         335  +
pub /* StructureGenerator.kt:201 */ struct ThrottlingError {/* StructureGenerator.kt:201 */}
  254    336   
/* ErrorImplGenerator.kt:99 */
  255         -
impl StorageAccessNotAuthorized {
         337  +
impl ThrottlingError {
  256    338   
    /* ErrorImplGenerator.kt:141 */
  257    339   
    #[doc(hidden)]
  258    340   
    /// Returns the error name.
  259    341   
    pub fn name(&self) -> &'static str {
  260         -
        "StorageAccessNotAuthorized"
         342  +
        "ThrottlingError"
  261    343   
    }
  262    344   
    /* ErrorImplGenerator.kt:99 */
  263    345   
}
  264    346   
/* ErrorImplGenerator.kt:153 */
  265         -
impl ::std::fmt::Display for StorageAccessNotAuthorized {
         347  +
impl ::std::fmt::Display for ThrottlingError {
  266    348   
    /* ErrorImplGenerator.kt:154 */
  267    349   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  268    350   
        /* ErrorImplGenerator.kt:161 */
  269         -
        ::std::write!(f, "StorageAccessNotAuthorized")?;
         351  +
        ::std::write!(f, "ThrottlingError")?;
  270    352   
        /* ErrorImplGenerator.kt:176 */
  271    353   
        Ok(())
  272    354   
        /* ErrorImplGenerator.kt:154 */
  273    355   
    }
  274    356   
    /* ErrorImplGenerator.kt:153 */
  275    357   
}
  276    358   
/* ErrorImplGenerator.kt:180 */
  277         -
impl ::std::error::Error for StorageAccessNotAuthorized {}
         359  +
impl ::std::error::Error for ThrottlingError {}
  278    360   
/* ServerCodegenVisitor.kt:356 */
  279         -
impl StorageAccessNotAuthorized {
  280         -
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`StorageAccessNotAuthorized`](crate::error::StorageAccessNotAuthorized).
         361  +
impl ThrottlingError {
         362  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ThrottlingError`](crate::error::ThrottlingError).
  281    363   
    /* ServerBuilderGenerator.kt:295 */
  282         -
    pub fn builder() -> crate::error::storage_access_not_authorized::Builder {
         364  +
    pub fn builder() -> crate::error::throttling_error::Builder {
  283    365   
        /* ServerBuilderGenerator.kt:296 */
  284         -
        crate::error::storage_access_not_authorized::Builder::default()
         366  +
        crate::error::throttling_error::Builder::default()
  285    367   
        /* ServerBuilderGenerator.kt:295 */
  286    368   
    }
  287    369   
    /* ServerCodegenVisitor.kt:356 */
  288    370   
}
  289    371   
  290         -
/* StructureGenerator.kt:197 */
  291         -
#[allow(missing_docs)] // documentation missing in model
         372  +
/// /* 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.
  292    373   
/* RustType.kt:534 */
  293    374   
#[derive(
  294    375   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  295    376   
)]
  296         -
pub /* StructureGenerator.kt:201 */ struct ResourceNotFoundException {
  297         -
    /* StructureGenerator.kt:231 */
  298         -
    #[allow(missing_docs)] // documentation missing in model
         377  +
pub /* StructureGenerator.kt:201 */ struct ValidationException {
         378  +
    /// /* StructureGenerator.kt:231 */A summary of the validation failure.
  299    379   
    pub message: ::std::string::String,
         380  +
    /// /* 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.
         381  +
    pub field_list: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
  300    382   
    /* StructureGenerator.kt:201 */
  301    383   
}
  302         -
/* ErrorImplGenerator.kt:99 */
  303         -
impl ResourceNotFoundException {
  304         -
    /* ErrorImplGenerator.kt:128 */
  305         -
    /// Returns the error message.
  306         -
    pub fn message(&self) -> &str {
  307         -
        &self.message
         384  +
/* StructureGenerator.kt:135 */
         385  +
impl ValidationException {
         386  +
    /// /* 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.
         387  +
    /* StructureGenerator.kt:166 */
         388  +
    pub fn field_list(&self) -> ::std::option::Option<&[crate::model::ValidationExceptionField]> {
         389  +
        /* StructureGenerator.kt:169 */
         390  +
        self.field_list.as_deref()
         391  +
        /* StructureGenerator.kt:166 */
         392  +
    }
         393  +
    /* StructureGenerator.kt:135 */
         394  +
}
         395  +
/* ErrorImplGenerator.kt:99 */
         396  +
impl ValidationException {
         397  +
    /* ErrorImplGenerator.kt:128 */
         398  +
    /// Returns the error message.
         399  +
    pub fn message(&self) -> &str {
         400  +
        &self.message
  308    401   
    }
  309    402   
    /* ErrorImplGenerator.kt:141 */
  310    403   
    #[doc(hidden)]
  311    404   
    /// Returns the error name.
  312    405   
    pub fn name(&self) -> &'static str {
  313         -
        "ResourceNotFoundException"
         406  +
        "ValidationException"
  314    407   
    }
  315    408   
    /* ErrorImplGenerator.kt:99 */
  316    409   
}
  317    410   
/* ErrorImplGenerator.kt:153 */
  318         -
impl ::std::fmt::Display for ResourceNotFoundException {
         411  +
impl ::std::fmt::Display for ValidationException {
  319    412   
    /* ErrorImplGenerator.kt:154 */
  320    413   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  321    414   
        /* ErrorImplGenerator.kt:161 */
  322         -
        ::std::write!(f, "ResourceNotFoundException")?;
         415  +
        ::std::write!(f, "ValidationException")?;
  323    416   
        /* ErrorImplGenerator.kt:166 */
  324    417   
        {
  325    418   
            /* ErrorImplGenerator.kt:169 */
  326    419   
            ::std::write!(f, ": {}", &self.message)?;
  327    420   
            /* ErrorImplGenerator.kt:166 */
  328    421   
        }
  329    422   
        /* ErrorImplGenerator.kt:176 */
  330    423   
        Ok(())
  331    424   
        /* ErrorImplGenerator.kt:154 */
  332    425   
    }
  333    426   
    /* ErrorImplGenerator.kt:153 */
  334    427   
}
  335    428   
/* ErrorImplGenerator.kt:180 */
  336         -
impl ::std::error::Error for ResourceNotFoundException {}
         429  +
impl ::std::error::Error for ValidationException {}
  337    430   
/* ServerCodegenVisitor.kt:356 */
  338         -
impl ResourceNotFoundException {
  339         -
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
         431  +
impl ValidationException {
         432  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException).
  340    433   
    /* ServerBuilderGenerator.kt:295 */
  341         -
    pub fn builder() -> crate::error::resource_not_found_exception::Builder {
         434  +
    pub fn builder() -> crate::error::validation_exception::Builder {
  342    435   
        /* ServerBuilderGenerator.kt:296 */
  343         -
        crate::error::resource_not_found_exception::Builder::default()
         436  +
        crate::error::validation_exception::Builder::default()
         437  +
        /* ServerBuilderGenerator.kt:295 */
         438  +
    }
         439  +
    /* ServerCodegenVisitor.kt:356 */
         440  +
}
         441  +
         442  +
/* StructureGenerator.kt:197 */
         443  +
#[allow(missing_docs)] // documentation missing in model
         444  +
/* RustType.kt:534 */
         445  +
#[derive(
         446  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
         447  +
)]
         448  +
pub /* StructureGenerator.kt:201 */ struct MasterBallUnsuccessful {
         449  +
    /* StructureGenerator.kt:231 */
         450  +
    #[allow(missing_docs)] // documentation missing in model
         451  +
    pub message: ::std::option::Option<::std::string::String>,
         452  +
    /* StructureGenerator.kt:201 */
         453  +
}
         454  +
/* ErrorImplGenerator.kt:99 */
         455  +
impl MasterBallUnsuccessful {
         456  +
    /* ErrorImplGenerator.kt:128 */
         457  +
    /// Returns the error message.
         458  +
    pub fn message(&self) -> ::std::option::Option<&str> {
         459  +
        self.message.as_deref()
         460  +
    }
         461  +
    /* ErrorImplGenerator.kt:141 */
         462  +
    #[doc(hidden)]
         463  +
    /// Returns the error name.
         464  +
    pub fn name(&self) -> &'static str {
         465  +
        "MasterBallUnsuccessful"
         466  +
    }
         467  +
    /* ErrorImplGenerator.kt:99 */
         468  +
}
         469  +
/* ErrorImplGenerator.kt:153 */
         470  +
impl ::std::fmt::Display for MasterBallUnsuccessful {
         471  +
    /* ErrorImplGenerator.kt:154 */
         472  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         473  +
        /* ErrorImplGenerator.kt:161 */
         474  +
        ::std::write!(f, "MasterBallUnsuccessful")?;
         475  +
        /* ErrorImplGenerator.kt:166 */
         476  +
        if let ::std::option::Option::Some(inner_1) = &self.message {
         477  +
            /* ErrorImplGenerator.kt:166 */
         478  +
            {
         479  +
                /* ErrorImplGenerator.kt:171 */
         480  +
                ::std::write!(f, ": {inner_1}")?;
         481  +
                /* ErrorImplGenerator.kt:166 */
         482  +
            }
         483  +
            /* ErrorImplGenerator.kt:166 */
         484  +
        }
         485  +
        /* ErrorImplGenerator.kt:176 */
         486  +
        Ok(())
         487  +
        /* ErrorImplGenerator.kt:154 */
         488  +
    }
         489  +
    /* ErrorImplGenerator.kt:153 */
         490  +
}
         491  +
/* ErrorImplGenerator.kt:180 */
         492  +
impl ::std::error::Error for MasterBallUnsuccessful {}
         493  +
/* ServerCodegenVisitor.kt:356 */
         494  +
impl MasterBallUnsuccessful {
         495  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MasterBallUnsuccessful`](crate::error::MasterBallUnsuccessful).
         496  +
    /* ServerBuilderGenerator.kt:295 */
         497  +
    pub fn builder() -> crate::error::master_ball_unsuccessful::Builder {
         498  +
        /* ServerBuilderGenerator.kt:296 */
         499  +
        crate::error::master_ball_unsuccessful::Builder::default()
         500  +
        /* ServerBuilderGenerator.kt:295 */
         501  +
    }
         502  +
    /* ServerCodegenVisitor.kt:356 */
         503  +
}
         504  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
         505  +
impl crate::constrained::Constrained for crate::error::MasterBallUnsuccessful {
         506  +
    type Unconstrained = crate::error::master_ball_unsuccessful::Builder;
         507  +
}
         508  +
         509  +
/* StructureGenerator.kt:197 */
         510  +
#[allow(missing_docs)] // documentation missing in model
         511  +
/* RustType.kt:534 */
         512  +
#[derive(
         513  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
         514  +
)]
         515  +
pub /* StructureGenerator.kt:201 */ struct InvalidPokeballError {
         516  +
    /* StructureGenerator.kt:231 */
         517  +
    #[allow(missing_docs)] // documentation missing in model
         518  +
    pub pokeball: ::std::string::String,
         519  +
    /* StructureGenerator.kt:201 */
         520  +
}
         521  +
/* StructureGenerator.kt:135 */
         522  +
impl InvalidPokeballError {
         523  +
    /* StructureGenerator.kt:231 */
         524  +
    #[allow(missing_docs)] // documentation missing in model
         525  +
                           /* StructureGenerator.kt:166 */
         526  +
    pub fn pokeball(&self) -> &str {
         527  +
        /* StructureGenerator.kt:171 */
         528  +
        use std::ops::Deref;
         529  +
        self.pokeball.deref()
         530  +
        /* StructureGenerator.kt:166 */
         531  +
    }
         532  +
    /* StructureGenerator.kt:135 */
         533  +
}
         534  +
/* ErrorImplGenerator.kt:99 */
         535  +
impl InvalidPokeballError {
         536  +
    /* ErrorImplGenerator.kt:141 */
         537  +
    #[doc(hidden)]
         538  +
    /// Returns the error name.
         539  +
    pub fn name(&self) -> &'static str {
         540  +
        "InvalidPokeballError"
         541  +
    }
         542  +
    /* ErrorImplGenerator.kt:99 */
         543  +
}
         544  +
/* ErrorImplGenerator.kt:153 */
         545  +
impl ::std::fmt::Display for InvalidPokeballError {
         546  +
    /* ErrorImplGenerator.kt:154 */
         547  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         548  +
        /* ErrorImplGenerator.kt:161 */
         549  +
        ::std::write!(f, "InvalidPokeballError")?;
         550  +
        /* ErrorImplGenerator.kt:176 */
         551  +
        Ok(())
         552  +
        /* ErrorImplGenerator.kt:154 */
         553  +
    }
         554  +
    /* ErrorImplGenerator.kt:153 */
         555  +
}
         556  +
/* ErrorImplGenerator.kt:180 */
         557  +
impl ::std::error::Error for InvalidPokeballError {}
         558  +
/* ServerCodegenVisitor.kt:356 */
         559  +
impl InvalidPokeballError {
         560  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`InvalidPokeballError`](crate::error::InvalidPokeballError).
         561  +
    /* ServerBuilderGenerator.kt:295 */
         562  +
    pub fn builder() -> crate::error::invalid_pokeball_error::Builder {
         563  +
        /* ServerBuilderGenerator.kt:296 */
         564  +
        crate::error::invalid_pokeball_error::Builder::default()
  344    565   
        /* ServerBuilderGenerator.kt:295 */
  345    566   
    }
  346    567   
    /* ServerCodegenVisitor.kt:356 */
  347    568   
}
  348    569   
  349    570   
/* ServerOperationErrorGenerator.kt:63 */
  350    571   
/// Error type for the `GetPokemonSpecies` operation.
  351    572   
/* ServerOperationErrorGenerator.kt:64 */
  352    573   
/// Each variant represents an error that can occur for the `GetPokemonSpecies` operation.
  353    574   
/* RustType.kt:534 */
@@ -456,677 +1009,1105 @@
  476    697   
    /* ServerOperationErrorGenerator.kt:111 */
  477    698   
    fn from(variant: crate::error::ValidationException) -> crate::error::GetPokemonSpeciesError {
  478    699   
        /* ServerOperationErrorGenerator.kt:112 */
  479    700   
        Self::ValidationException(variant)
  480    701   
        /* ServerOperationErrorGenerator.kt:111 */
  481    702   
    }
  482    703   
    /* ServerOperationErrorGenerator.kt:110 */
  483    704   
}
  484    705   
  485    706   
/* ServerOperationErrorGenerator.kt:63 */
  486         -
/// Error type for the `CapturePokemon` operation.
         707  +
/// Error type for the `GetStorage` operation.
  487    708   
/* ServerOperationErrorGenerator.kt:64 */
  488         -
/// Each variant represents an error that can occur for the `CapturePokemon` operation.
         709  +
/// Each variant represents an error that can occur for the `GetStorage` operation.
  489    710   
/* RustType.kt:534 */
  490    711   
#[derive(::std::fmt::Debug)]
  491         -
pub /* ServerOperationErrorGenerator.kt:66 */ enum CapturePokemonError {
         712  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum GetStorageError {
  492    713   
    /* ServerOperationErrorGenerator.kt:68 */
  493    714   
    #[allow(missing_docs)] // documentation missing in model
  494    715   
    /* ServerOperationErrorGenerator.kt:71 */
  495         -
    UnsupportedRegionError(crate::error::UnsupportedRegionError),
  496         -
    /* ServerOperationErrorGenerator.kt:68 */
  497         -
    #[allow(missing_docs)] // documentation missing in model
         716  +
    ResourceNotFoundException(crate::error::ResourceNotFoundException),
         717  +
    /// /* ServerOperationErrorGenerator.kt:68 */Not authorized to access Pokémon storage.
  498    718   
    /* ServerOperationErrorGenerator.kt:71 */
  499         -
    ThrottlingError(crate::error::ThrottlingError),
         719  +
    StorageAccessNotAuthorized(crate::error::StorageAccessNotAuthorized),
  500    720   
    /// /* 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.
  501    721   
    /* ServerOperationErrorGenerator.kt:71 */
  502    722   
    ValidationException(crate::error::ValidationException),
  503         -
    /* ServerOperationErrorGenerator.kt:68 */
  504         -
    #[allow(missing_docs)] // documentation missing in model
  505         -
    /* ServerOperationErrorGenerator.kt:71 */
  506         -
    MasterBallUnsuccessful(crate::error::MasterBallUnsuccessful),
  507         -
    /* ServerOperationErrorGenerator.kt:68 */
  508         -
    #[allow(missing_docs)] // documentation missing in model
  509         -
    /* ServerOperationErrorGenerator.kt:71 */
  510         -
    InvalidPokeballError(crate::error::InvalidPokeballError),
  511    723   
    /* ServerOperationErrorGenerator.kt:66 */
  512    724   
}
  513    725   
/* ServerOperationErrorGenerator.kt:75 */
  514         -
impl ::std::fmt::Display for CapturePokemonError {
         726  +
impl ::std::fmt::Display for GetStorageError {
  515    727   
    /* ServerOperationErrorGenerator.kt:76 */
  516    728   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  517    729   
        /* ServerOperationErrorGenerator.kt:139 */
  518    730   
        match &self {
  519    731   
            /* ServerOperationErrorGenerator.kt:142 */
  520         -
            CapturePokemonError::UnsupportedRegionError(_inner) =>
  521         -
            /* ServerOperationErrorGenerator.kt:78 */
  522         -
            {
  523         -
                _inner.fmt(f)
  524         -
            }
  525         -
            ,
  526         -
            /* ServerOperationErrorGenerator.kt:142 */
  527         -
            CapturePokemonError::ThrottlingError(_inner) =>
  528         -
            /* ServerOperationErrorGenerator.kt:78 */
  529         -
            {
  530         -
                _inner.fmt(f)
  531         -
            }
  532         -
            ,
  533         -
            /* ServerOperationErrorGenerator.kt:142 */
  534         -
            CapturePokemonError::ValidationException(_inner) =>
         732  +
            GetStorageError::ResourceNotFoundException(_inner) =>
  535    733   
            /* ServerOperationErrorGenerator.kt:78 */
  536    734   
            {
  537    735   
                _inner.fmt(f)
  538    736   
            }
  539    737   
            ,
  540    738   
            /* ServerOperationErrorGenerator.kt:142 */
  541         -
            CapturePokemonError::MasterBallUnsuccessful(_inner) =>
         739  +
            GetStorageError::StorageAccessNotAuthorized(_inner) =>
  542    740   
            /* ServerOperationErrorGenerator.kt:78 */
  543    741   
            {
  544    742   
                _inner.fmt(f)
  545    743   
            }
  546    744   
            ,
  547    745   
            /* ServerOperationErrorGenerator.kt:142 */
  548         -
            CapturePokemonError::InvalidPokeballError(_inner) =>
         746  +
            GetStorageError::ValidationException(_inner) =>
  549    747   
            /* ServerOperationErrorGenerator.kt:78 */
  550    748   
            {
  551    749   
                _inner.fmt(f)
  552    750   
            }
  553    751   
            /* ServerOperationErrorGenerator.kt:139 */
  554    752   
        }
  555    753   
        /* ServerOperationErrorGenerator.kt:76 */
  556    754   
    }
  557    755   
    /* ServerOperationErrorGenerator.kt:75 */
  558    756   
}
  559    757   
/* ServerOperationErrorGenerator.kt:83 */
  560         -
impl CapturePokemonError {
         758  +
impl GetStorageError {
  561    759   
    /* ServerOperationErrorGenerator.kt:87 */
  562         -
    /// Returns `true` if the error kind is `CapturePokemonError::UnsupportedRegionError`.
         760  +
    /// Returns `true` if the error kind is `GetStorageError::ResourceNotFoundException`.
  563    761   
    /* ServerOperationErrorGenerator.kt:88 */
  564         -
    pub fn is_unsupported_region_error(&self) -> bool {
         762  +
    pub fn is_resource_not_found_exception(&self) -> bool {
  565    763   
        /* ServerOperationErrorGenerator.kt:89 */
  566         -
        matches!(&self, CapturePokemonError::UnsupportedRegionError(_))
         764  +
        matches!(&self, GetStorageError::ResourceNotFoundException(_))
  567    765   
        /* ServerOperationErrorGenerator.kt:88 */
  568    766   
    }
  569    767   
    /* ServerOperationErrorGenerator.kt:87 */
  570         -
    /// Returns `true` if the error kind is `CapturePokemonError::ThrottlingError`.
         768  +
    /// Returns `true` if the error kind is `GetStorageError::StorageAccessNotAuthorized`.
  571    769   
    /* ServerOperationErrorGenerator.kt:88 */
  572         -
    pub fn is_throttling_error(&self) -> bool {
         770  +
    pub fn is_storage_access_not_authorized(&self) -> bool {
  573    771   
        /* ServerOperationErrorGenerator.kt:89 */
  574         -
        matches!(&self, CapturePokemonError::ThrottlingError(_))
         772  +
        matches!(&self, GetStorageError::StorageAccessNotAuthorized(_))
  575    773   
        /* ServerOperationErrorGenerator.kt:88 */
  576    774   
    }
  577    775   
    /* ServerOperationErrorGenerator.kt:87 */
  578         -
    /// Returns `true` if the error kind is `CapturePokemonError::ValidationException`.
         776  +
    /// Returns `true` if the error kind is `GetStorageError::ValidationException`.
  579    777   
    /* ServerOperationErrorGenerator.kt:88 */
  580    778   
    pub fn is_validation_exception(&self) -> bool {
  581    779   
        /* ServerOperationErrorGenerator.kt:89 */
  582         -
        matches!(&self, CapturePokemonError::ValidationException(_))
  583         -
        /* ServerOperationErrorGenerator.kt:88 */
  584         -
    }
  585         -
    /* ServerOperationErrorGenerator.kt:87 */
  586         -
    /// Returns `true` if the error kind is `CapturePokemonError::MasterBallUnsuccessful`.
  587         -
    /* ServerOperationErrorGenerator.kt:88 */
  588         -
    pub fn is_master_ball_unsuccessful(&self) -> bool {
  589         -
        /* ServerOperationErrorGenerator.kt:89 */
  590         -
        matches!(&self, CapturePokemonError::MasterBallUnsuccessful(_))
  591         -
        /* ServerOperationErrorGenerator.kt:88 */
  592         -
    }
  593         -
    /* ServerOperationErrorGenerator.kt:87 */
  594         -
    /// Returns `true` if the error kind is `CapturePokemonError::InvalidPokeballError`.
  595         -
    /* ServerOperationErrorGenerator.kt:88 */
  596         -
    pub fn is_invalid_pokeball_error(&self) -> bool {
  597         -
        /* ServerOperationErrorGenerator.kt:89 */
  598         -
        matches!(&self, CapturePokemonError::InvalidPokeballError(_))
         780  +
        matches!(&self, GetStorageError::ValidationException(_))
  599    781   
        /* ServerOperationErrorGenerator.kt:88 */
  600    782   
    }
  601    783   
    /* ServerOperationErrorGenerator.kt:92 */
  602    784   
    /// Returns the error name string by matching the correct variant.
  603    785   
    /* ServerOperationErrorGenerator.kt:93 */
  604    786   
    pub fn name(&self) -> &'static str {
  605    787   
        /* ServerOperationErrorGenerator.kt:139 */
  606    788   
        match &self {
  607    789   
            /* ServerOperationErrorGenerator.kt:142 */
  608         -
            CapturePokemonError::UnsupportedRegionError(_inner) =>
         790  +
            GetStorageError::ResourceNotFoundException(_inner) =>
  609    791   
            /* ServerOperationErrorGenerator.kt:95 */
  610    792   
            {
  611    793   
                _inner.name()
  612    794   
            }
  613    795   
            ,
  614    796   
            /* ServerOperationErrorGenerator.kt:142 */
  615         -
            CapturePokemonError::ThrottlingError(_inner) =>
         797  +
            GetStorageError::StorageAccessNotAuthorized(_inner) =>
  616    798   
            /* ServerOperationErrorGenerator.kt:95 */
  617    799   
            {
  618    800   
                _inner.name()
  619    801   
            }
  620    802   
            ,
  621    803   
            /* ServerOperationErrorGenerator.kt:142 */
  622         -
            CapturePokemonError::ValidationException(_inner) =>
         804  +
            GetStorageError::ValidationException(_inner) =>
  623    805   
            /* ServerOperationErrorGenerator.kt:95 */
  624    806   
            {
  625    807   
                _inner.name()
  626    808   
            }
  627         -
            ,
  628         -
            /* ServerOperationErrorGenerator.kt:142 */
  629         -
            CapturePokemonError::MasterBallUnsuccessful(_inner) =>
  630         -
            /* ServerOperationErrorGenerator.kt:95 */
  631         -
            {
  632         -
                _inner.name()
  633         -
            }
  634         -
            ,
  635         -
            /* ServerOperationErrorGenerator.kt:142 */
  636         -
            CapturePokemonError::InvalidPokeballError(_inner) =>
  637         -
            /* ServerOperationErrorGenerator.kt:95 */
  638         -
            {
  639         -
                _inner.name()
  640         -
            }
  641         -
            /* ServerOperationErrorGenerator.kt:139 */
         809  +
            /* ServerOperationErrorGenerator.kt:139 */
  642    810   
        }
  643    811   
        /* ServerOperationErrorGenerator.kt:93 */
  644    812   
    }
  645    813   
    /* ServerOperationErrorGenerator.kt:83 */
  646    814   
}
  647    815   
/* ServerOperationErrorGenerator.kt:100 */
  648         -
impl ::std::error::Error for CapturePokemonError {
         816  +
impl ::std::error::Error for GetStorageError {
  649    817   
    /* ServerOperationErrorGenerator.kt:101 */
  650    818   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
  651    819   
        /* ServerOperationErrorGenerator.kt:139 */
  652    820   
        match &self {
  653    821   
            /* ServerOperationErrorGenerator.kt:142 */
  654         -
            CapturePokemonError::UnsupportedRegionError(_inner) =>
  655         -
            /* ServerOperationErrorGenerator.kt:103 */
  656         -
            {
  657         -
                Some(_inner)
  658         -
            }
  659         -
            ,
  660         -
            /* ServerOperationErrorGenerator.kt:142 */
  661         -
            CapturePokemonError::ThrottlingError(_inner) =>
  662         -
            /* ServerOperationErrorGenerator.kt:103 */
  663         -
            {
  664         -
                Some(_inner)
  665         -
            }
  666         -
            ,
  667         -
            /* ServerOperationErrorGenerator.kt:142 */
  668         -
            CapturePokemonError::ValidationException(_inner) =>
         822  +
            GetStorageError::ResourceNotFoundException(_inner) =>
  669    823   
            /* ServerOperationErrorGenerator.kt:103 */
  670    824   
            {
  671    825   
                Some(_inner)
  672    826   
            }
  673    827   
            ,
  674    828   
            /* ServerOperationErrorGenerator.kt:142 */
  675         -
            CapturePokemonError::MasterBallUnsuccessful(_inner) =>
         829  +
            GetStorageError::StorageAccessNotAuthorized(_inner) =>
  676    830   
            /* ServerOperationErrorGenerator.kt:103 */
  677    831   
            {
  678    832   
                Some(_inner)
  679    833   
            }
  680    834   
            ,
  681    835   
            /* ServerOperationErrorGenerator.kt:142 */
  682         -
            CapturePokemonError::InvalidPokeballError(_inner) =>
         836  +
            GetStorageError::ValidationException(_inner) =>
  683    837   
            /* ServerOperationErrorGenerator.kt:103 */
  684    838   
            {
  685    839   
                Some(_inner)
  686    840   
            }
  687    841   
            /* ServerOperationErrorGenerator.kt:139 */
  688    842   
        }
  689    843   
        /* ServerOperationErrorGenerator.kt:101 */
  690    844   
    }
  691    845   
    /* ServerOperationErrorGenerator.kt:100 */
  692    846   
}
  693    847   
/* ServerOperationErrorGenerator.kt:110 */
  694         -
impl ::std::convert::From<crate::error::UnsupportedRegionError>
  695         -
    for crate::error::CapturePokemonError
         848  +
impl ::std::convert::From<crate::error::ResourceNotFoundException>
         849  +
    for crate::error::GetStorageError
  696    850   
{
  697    851   
    /* ServerOperationErrorGenerator.kt:111 */
  698         -
    fn from(variant: crate::error::UnsupportedRegionError) -> crate::error::CapturePokemonError {
  699         -
        /* ServerOperationErrorGenerator.kt:112 */
  700         -
        Self::UnsupportedRegionError(variant)
  701         -
        /* ServerOperationErrorGenerator.kt:111 */
  702         -
    }
  703         -
    /* ServerOperationErrorGenerator.kt:110 */
  704         -
}
  705         -
/* ServerOperationErrorGenerator.kt:110 */
  706         -
impl ::std::convert::From<crate::error::ThrottlingError> for crate::error::CapturePokemonError {
  707         -
    /* ServerOperationErrorGenerator.kt:111 */
  708         -
    fn from(variant: crate::error::ThrottlingError) -> crate::error::CapturePokemonError {
  709         -
        /* ServerOperationErrorGenerator.kt:112 */
  710         -
        Self::ThrottlingError(variant)
  711         -
        /* ServerOperationErrorGenerator.kt:111 */
  712         -
    }
  713         -
    /* ServerOperationErrorGenerator.kt:110 */
  714         -
}
  715         -
/* ServerOperationErrorGenerator.kt:110 */
  716         -
impl ::std::convert::From<crate::error::ValidationException> for crate::error::CapturePokemonError {
  717         -
    /* ServerOperationErrorGenerator.kt:111 */
  718         -
    fn from(variant: crate::error::ValidationException) -> crate::error::CapturePokemonError {
         852  +
    fn from(variant: crate::error::ResourceNotFoundException) -> crate::error::GetStorageError {
  719    853   
        /* ServerOperationErrorGenerator.kt:112 */
  720         -
        Self::ValidationException(variant)
         854  +
        Self::ResourceNotFoundException(variant)
  721    855   
        /* ServerOperationErrorGenerator.kt:111 */
  722    856   
    }
  723    857   
    /* ServerOperationErrorGenerator.kt:110 */
  724    858   
}
  725    859   
/* ServerOperationErrorGenerator.kt:110 */
  726         -
impl ::std::convert::From<crate::error::MasterBallUnsuccessful>
  727         -
    for crate::error::CapturePokemonError
         860  +
impl ::std::convert::From<crate::error::StorageAccessNotAuthorized>
         861  +
    for crate::error::GetStorageError
  728    862   
{
  729    863   
    /* ServerOperationErrorGenerator.kt:111 */
  730         -
    fn from(variant: crate::error::MasterBallUnsuccessful) -> crate::error::CapturePokemonError {
         864  +
    fn from(variant: crate::error::StorageAccessNotAuthorized) -> crate::error::GetStorageError {
  731    865   
        /* ServerOperationErrorGenerator.kt:112 */
  732         -
        Self::MasterBallUnsuccessful(variant)
         866  +
        Self::StorageAccessNotAuthorized(variant)
  733    867   
        /* ServerOperationErrorGenerator.kt:111 */
  734    868   
    }
  735    869   
    /* ServerOperationErrorGenerator.kt:110 */
  736    870   
}
  737    871   
/* ServerOperationErrorGenerator.kt:110 */
  738         -
impl ::std::convert::From<crate::error::InvalidPokeballError>
  739         -
    for crate::error::CapturePokemonError
  740         -
{
         872  +
impl ::std::convert::From<crate::error::ValidationException> for crate::error::GetStorageError {
  741    873   
    /* ServerOperationErrorGenerator.kt:111 */
  742         -
    fn from(variant: crate::error::InvalidPokeballError) -> crate::error::CapturePokemonError {
         874  +
    fn from(variant: crate::error::ValidationException) -> crate::error::GetStorageError {
  743    875   
        /* ServerOperationErrorGenerator.kt:112 */
  744         -
        Self::InvalidPokeballError(variant)
         876  +
        Self::ValidationException(variant)
  745    877   
        /* ServerOperationErrorGenerator.kt:111 */
  746    878   
    }
  747    879   
    /* ServerOperationErrorGenerator.kt:110 */
  748    880   
}
  749    881   
  750    882   
/* StructureGenerator.kt:197 */
  751    883   
#[allow(missing_docs)] // documentation missing in model
  752    884   
/* RustType.kt:534 */
  753    885   
#[derive(
  754    886   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  755    887   
)]
  756         -
pub /* StructureGenerator.kt:201 */ struct InvalidPokeballError {
  757         -
    /* StructureGenerator.kt:231 */
  758         -
    #[allow(missing_docs)] // documentation missing in model
  759         -
    pub pokeball: ::std::string::String,
  760         -
    /* StructureGenerator.kt:201 */
  761         -
}
  762         -
/* StructureGenerator.kt:135 */
  763         -
impl InvalidPokeballError {
  764         -
    /* StructureGenerator.kt:231 */
  765         -
    #[allow(missing_docs)] // documentation missing in model
  766         -
                           /* StructureGenerator.kt:166 */
  767         -
    pub fn pokeball(&self) -> &str {
  768         -
        /* StructureGenerator.kt:171 */
  769         -
        use std::ops::Deref;
  770         -
        self.pokeball.deref()
  771         -
        /* StructureGenerator.kt:166 */
  772         -
    }
  773         -
    /* StructureGenerator.kt:135 */
  774         -
}
  775         -
/* ErrorImplGenerator.kt:99 */
  776         -
impl InvalidPokeballError {
  777         -
    /* ErrorImplGenerator.kt:141 */
  778         -
    #[doc(hidden)]
  779         -
    /// Returns the error name.
  780         -
    pub fn name(&self) -> &'static str {
  781         -
        "InvalidPokeballError"
  782         -
    }
  783         -
    /* ErrorImplGenerator.kt:99 */
  784         -
}
  785         -
/* ErrorImplGenerator.kt:153 */
  786         -
impl ::std::fmt::Display for InvalidPokeballError {
  787         -
    /* ErrorImplGenerator.kt:154 */
  788         -
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  789         -
        /* ErrorImplGenerator.kt:161 */
  790         -
        ::std::write!(f, "InvalidPokeballError")?;
  791         -
        /* ErrorImplGenerator.kt:176 */
  792         -
        Ok(())
  793         -
        /* ErrorImplGenerator.kt:154 */
  794         -
    }
  795         -
    /* ErrorImplGenerator.kt:153 */
  796         -
}
  797         -
/* ErrorImplGenerator.kt:180 */
  798         -
impl ::std::error::Error for InvalidPokeballError {}
  799         -
/* ServerCodegenVisitor.kt:356 */
  800         -
impl InvalidPokeballError {
  801         -
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`InvalidPokeballError`](crate::error::InvalidPokeballError).
  802         -
    /* ServerBuilderGenerator.kt:295 */
  803         -
    pub fn builder() -> crate::error::invalid_pokeball_error::Builder {
  804         -
        /* ServerBuilderGenerator.kt:296 */
  805         -
        crate::error::invalid_pokeball_error::Builder::default()
  806         -
        /* ServerBuilderGenerator.kt:295 */
  807         -
    }
  808         -
    /* ServerCodegenVisitor.kt:356 */
  809         -
}
  810         -
  811         -
/* StructureGenerator.kt:197 */
  812         -
#[allow(missing_docs)] // documentation missing in model
  813         -
/* RustType.kt:534 */
  814         -
#[derive(
  815         -
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  816         -
)]
  817         -
pub /* StructureGenerator.kt:201 */ struct MasterBallUnsuccessful {
         888  +
pub /* StructureGenerator.kt:201 */ struct ResourceNotFoundException {
  818    889   
    /* StructureGenerator.kt:231 */
  819    890   
    #[allow(missing_docs)] // documentation missing in model
  820         -
    pub message: ::std::option::Option<::std::string::String>,
         891  +
    pub message: ::std::string::String,
  821    892   
    /* StructureGenerator.kt:201 */
  822    893   
}
  823    894   
/* ErrorImplGenerator.kt:99 */
  824         -
impl MasterBallUnsuccessful {
         895  +
impl ResourceNotFoundException {
  825    896   
    /* ErrorImplGenerator.kt:128 */
  826    897   
    /// Returns the error message.
  827         -
    pub fn message(&self) -> ::std::option::Option<&str> {
  828         -
        self.message.as_deref()
         898  +
    pub fn message(&self) -> &str {
         899  +
        &self.message
  829    900   
    }
  830    901   
    /* ErrorImplGenerator.kt:141 */
  831    902   
    #[doc(hidden)]
  832    903   
    /// Returns the error name.
  833    904   
    pub fn name(&self) -> &'static str {
  834         -
        "MasterBallUnsuccessful"
         905  +
        "ResourceNotFoundException"
  835    906   
    }
  836    907   
    /* ErrorImplGenerator.kt:99 */
  837    908   
}
  838    909   
/* ErrorImplGenerator.kt:153 */
  839         -
impl ::std::fmt::Display for MasterBallUnsuccessful {
         910  +
impl ::std::fmt::Display for ResourceNotFoundException {
  840    911   
    /* ErrorImplGenerator.kt:154 */
  841    912   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  842    913   
        /* ErrorImplGenerator.kt:161 */
  843         -
        ::std::write!(f, "MasterBallUnsuccessful")?;
  844         -
        /* ErrorImplGenerator.kt:166 */
  845         -
        if let ::std::option::Option::Some(inner_1) = &self.message {
         914  +
        ::std::write!(f, "ResourceNotFoundException")?;
  846    915   
        /* ErrorImplGenerator.kt:166 */
  847    916   
        {
  848         -
                /* ErrorImplGenerator.kt:171 */
  849         -
                ::std::write!(f, ": {inner_1}")?;
  850         -
                /* ErrorImplGenerator.kt:166 */
  851         -
            }
         917  +
            /* ErrorImplGenerator.kt:169 */
         918  +
            ::std::write!(f, ": {}", &self.message)?;
  852    919   
            /* ErrorImplGenerator.kt:166 */
  853    920   
        }
  854    921   
        /* ErrorImplGenerator.kt:176 */
  855    922   
        Ok(())
  856    923   
        /* ErrorImplGenerator.kt:154 */
  857    924   
    }
  858    925   
    /* ErrorImplGenerator.kt:153 */
  859    926   
}
  860    927   
/* ErrorImplGenerator.kt:180 */
  861         -
impl ::std::error::Error for MasterBallUnsuccessful {}
         928  +
impl ::std::error::Error for ResourceNotFoundException {}
  862    929   
/* ServerCodegenVisitor.kt:356 */
  863         -
impl MasterBallUnsuccessful {
  864         -
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MasterBallUnsuccessful`](crate::error::MasterBallUnsuccessful).
         930  +
impl ResourceNotFoundException {
         931  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
  865    932   
    /* ServerBuilderGenerator.kt:295 */
  866         -
    pub fn builder() -> crate::error::master_ball_unsuccessful::Builder {
         933  +
    pub fn builder() -> crate::error::resource_not_found_exception::Builder {
  867    934   
        /* ServerBuilderGenerator.kt:296 */
  868         -
        crate::error::master_ball_unsuccessful::Builder::default()
         935  +
        crate::error::resource_not_found_exception::Builder::default()
  869    936   
        /* ServerBuilderGenerator.kt:295 */
  870    937   
    }
  871    938   
    /* ServerCodegenVisitor.kt:356 */
  872    939   
}
  873         -
/* ServerStructureConstrainedTraitImpl.kt:21 */
  874         -
impl crate::constrained::Constrained for crate::error::MasterBallUnsuccessful {
  875         -
    type Unconstrained = crate::error::master_ball_unsuccessful::Builder;
  876         -
}
  877    940   
  878         -
/* StructureGenerator.kt:197 */
  879         -
#[allow(missing_docs)] // documentation missing in model
         941  +
/// /* StructureGenerator.kt:197 */Not authorized to access Pokémon storage.
  880    942   
/* RustType.kt:534 */
  881    943   
#[derive(
  882    944   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  883    945   
)]
  884         -
pub /* StructureGenerator.kt:201 */ struct ThrottlingError {/* StructureGenerator.kt:201 */}
         946  +
pub /* StructureGenerator.kt:201 */ struct StorageAccessNotAuthorized {/* StructureGenerator.kt:201 */}
  885    947   
/* ErrorImplGenerator.kt:99 */
  886         -
impl ThrottlingError {
         948  +
impl StorageAccessNotAuthorized {
  887    949   
    /* ErrorImplGenerator.kt:141 */
  888    950   
    #[doc(hidden)]
  889    951   
    /// Returns the error name.
  890    952   
    pub fn name(&self) -> &'static str {
  891         -
        "ThrottlingError"
         953  +
        "StorageAccessNotAuthorized"
  892    954   
    }
  893    955   
    /* ErrorImplGenerator.kt:99 */
  894    956   
}
  895    957   
/* ErrorImplGenerator.kt:153 */
  896         -
impl ::std::fmt::Display for ThrottlingError {
         958  +
impl ::std::fmt::Display for StorageAccessNotAuthorized {
  897    959   
    /* ErrorImplGenerator.kt:154 */
  898    960   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  899    961   
        /* ErrorImplGenerator.kt:161 */
  900         -
        ::std::write!(f, "ThrottlingError")?;
         962  +
        ::std::write!(f, "StorageAccessNotAuthorized")?;
  901    963   
        /* ErrorImplGenerator.kt:176 */
  902    964   
        Ok(())
  903    965   
        /* ErrorImplGenerator.kt:154 */
  904    966   
    }
  905    967   
    /* ErrorImplGenerator.kt:153 */
  906    968   
}
  907    969   
/* ErrorImplGenerator.kt:180 */
  908         -
impl ::std::error::Error for ThrottlingError {}
         970  +
impl ::std::error::Error for StorageAccessNotAuthorized {}
  909    971   
/* ServerCodegenVisitor.kt:356 */
  910         -
impl ThrottlingError {
  911         -
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ThrottlingError`](crate::error::ThrottlingError).
         972  +
impl StorageAccessNotAuthorized {
         973  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`StorageAccessNotAuthorized`](crate::error::StorageAccessNotAuthorized).
  912    974   
    /* ServerBuilderGenerator.kt:295 */
  913         -
    pub fn builder() -> crate::error::throttling_error::Builder {
         975  +
    pub fn builder() -> crate::error::storage_access_not_authorized::Builder {
  914    976   
        /* ServerBuilderGenerator.kt:296 */
  915         -
        crate::error::throttling_error::Builder::default()
         977  +
        crate::error::storage_access_not_authorized::Builder::default()
  916    978   
        /* ServerBuilderGenerator.kt:295 */
  917    979   
    }
  918    980   
    /* ServerCodegenVisitor.kt:356 */
  919    981   
}
  920    982   
  921         -
/* StructureGenerator.kt:197 */
  922         -
#[allow(missing_docs)] // documentation missing in model
         983  +
/* ServerOperationErrorGenerator.kt:63 */
         984  +
/// Error type for the `AttemptCapturingPokemonEvent` operation.
         985  +
/* ServerOperationErrorGenerator.kt:64 */
         986  +
/// Each variant represents an error that can occur for the `AttemptCapturingPokemonEvent` operation.
  923    987   
/* RustType.kt:534 */
  924         -
#[derive(
  925         -
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  926         -
)]
  927         -
pub /* StructureGenerator.kt:201 */ struct UnsupportedRegionError {
  928         -
    /* StructureGenerator.kt:231 */
         988  +
#[derive(::std::fmt::Debug)]
         989  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum AttemptCapturingPokemonEventError {
         990  +
    /* ServerOperationErrorGenerator.kt:68 */
  929    991   
    #[allow(missing_docs)] // documentation missing in model
  930         -
    pub region: ::std::string::String,
  931         -
    /* StructureGenerator.kt:201 */
         992  +
    /* ServerOperationErrorGenerator.kt:71 */
         993  +
    MasterBallUnsuccessful(crate::error::MasterBallUnsuccessful),
         994  +
    /* ServerOperationErrorGenerator.kt:66 */
  932    995   
}
  933         -
/* StructureGenerator.kt:135 */
  934         -
impl UnsupportedRegionError {
  935         -
    /* StructureGenerator.kt:231 */
  936         -
    #[allow(missing_docs)] // documentation missing in model
  937         -
                           /* StructureGenerator.kt:166 */
  938         -
    pub fn region(&self) -> &str {
  939         -
        /* StructureGenerator.kt:171 */
  940         -
        use std::ops::Deref;
  941         -
        self.region.deref()
  942         -
        /* StructureGenerator.kt:166 */
         996  +
/* ServerOperationErrorGenerator.kt:75 */
         997  +
impl ::std::fmt::Display for AttemptCapturingPokemonEventError {
         998  +
    /* ServerOperationErrorGenerator.kt:76 */
         999  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1000  +
        /* ServerOperationErrorGenerator.kt:139 */
        1001  +
        match &self {
        1002  +
            /* ServerOperationErrorGenerator.kt:142 */
        1003  +
            AttemptCapturingPokemonEventError::MasterBallUnsuccessful(_inner) =>
        1004  +
            /* ServerOperationErrorGenerator.kt:78 */
        1005  +
            {
        1006  +
                _inner.fmt(f)
  943   1007   
            }
  944         -
    /* StructureGenerator.kt:135 */
  945         -
}
  946         -
/* ErrorImplGenerator.kt:99 */
  947         -
impl UnsupportedRegionError {
  948         -
    /* ErrorImplGenerator.kt:141 */
  949         -
    #[doc(hidden)]
  950         -
    /// Returns the error name.
  951         -
    pub fn name(&self) -> &'static str {
  952         -
        "UnsupportedRegionError"
        1008  +
            /* ServerOperationErrorGenerator.kt:139 */
  953   1009   
        }
  954         -
    /* ErrorImplGenerator.kt:99 */
  955         -
}
  956         -
/* ErrorImplGenerator.kt:153 */
  957         -
impl ::std::fmt::Display for UnsupportedRegionError {
  958         -
    /* ErrorImplGenerator.kt:154 */
  959         -
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  960         -
        /* ErrorImplGenerator.kt:161 */
  961         -
        ::std::write!(f, "UnsupportedRegionError")?;
  962         -
        /* ErrorImplGenerator.kt:176 */
  963         -
        Ok(())
  964         -
        /* ErrorImplGenerator.kt:154 */
        1010  +
        /* ServerOperationErrorGenerator.kt:76 */
  965   1011   
    }
  966         -
    /* ErrorImplGenerator.kt:153 */
        1012  +
    /* ServerOperationErrorGenerator.kt:75 */
  967   1013   
}
  968         -
/* ErrorImplGenerator.kt:180 */
  969         -
impl ::std::error::Error for UnsupportedRegionError {}
  970         -
/* ServerCodegenVisitor.kt:356 */
  971         -
impl UnsupportedRegionError {
  972         -
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`UnsupportedRegionError`](crate::error::UnsupportedRegionError).
  973         -
    /* ServerBuilderGenerator.kt:295 */
  974         -
    pub fn builder() -> crate::error::unsupported_region_error::Builder {
  975         -
        /* ServerBuilderGenerator.kt:296 */
  976         -
        crate::error::unsupported_region_error::Builder::default()
  977         -
        /* ServerBuilderGenerator.kt:295 */
        1014  +
/* ServerOperationErrorGenerator.kt:83 */
        1015  +
impl AttemptCapturingPokemonEventError {
        1016  +
    /* ServerOperationErrorGenerator.kt:87 */
        1017  +
    /// Returns `true` if the error kind is `AttemptCapturingPokemonEventError::MasterBallUnsuccessful`.
        1018  +
    /* ServerOperationErrorGenerator.kt:88 */
        1019  +
    pub fn is_master_ball_unsuccessful(&self) -> bool {
        1020  +
        /* ServerOperationErrorGenerator.kt:89 */
        1021  +
        matches!(
        1022  +
            &self,
        1023  +
            AttemptCapturingPokemonEventError::MasterBallUnsuccessful(_)
        1024  +
        )
        1025  +
        /* ServerOperationErrorGenerator.kt:88 */
  978   1026   
    }
  979         -
    /* ServerCodegenVisitor.kt:356 */
        1027  +
    /* ServerOperationErrorGenerator.kt:92 */
        1028  +
    /// Returns the error name string by matching the correct variant.
        1029  +
    /* ServerOperationErrorGenerator.kt:93 */
        1030  +
    pub fn name(&self) -> &'static str {
        1031  +
        /* ServerOperationErrorGenerator.kt:139 */
        1032  +
        match &self {
        1033  +
            /* ServerOperationErrorGenerator.kt:142 */
        1034  +
            AttemptCapturingPokemonEventError::MasterBallUnsuccessful(_inner) =>
        1035  +
            /* ServerOperationErrorGenerator.kt:95 */
        1036  +
            {
        1037  +
                _inner.name()
        1038  +
            }
        1039  +
            /* ServerOperationErrorGenerator.kt:139 */
        1040  +
        }
        1041  +
        /* ServerOperationErrorGenerator.kt:93 */
        1042  +
    }
        1043  +
    /* ServerOperationErrorGenerator.kt:83 */
        1044  +
}
        1045  +
/* ServerOperationErrorGenerator.kt:100 */
        1046  +
impl ::std::error::Error for AttemptCapturingPokemonEventError {
        1047  +
    /* ServerOperationErrorGenerator.kt:101 */
        1048  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        1049  +
        /* ServerOperationErrorGenerator.kt:139 */
        1050  +
        match &self {
        1051  +
            /* ServerOperationErrorGenerator.kt:142 */
        1052  +
            AttemptCapturingPokemonEventError::MasterBallUnsuccessful(_inner) =>
        1053  +
            /* ServerOperationErrorGenerator.kt:103 */
        1054  +
            {
        1055  +
                Some(_inner)
        1056  +
            }
        1057  +
            /* ServerOperationErrorGenerator.kt:139 */
        1058  +
        }
        1059  +
        /* ServerOperationErrorGenerator.kt:101 */
        1060  +
    }
        1061  +
    /* ServerOperationErrorGenerator.kt:100 */
        1062  +
}
        1063  +
/* ServerOperationErrorGenerator.kt:110 */
        1064  +
impl ::std::convert::From<crate::error::MasterBallUnsuccessful>
        1065  +
    for crate::error::AttemptCapturingPokemonEventError
        1066  +
{
        1067  +
    /* ServerOperationErrorGenerator.kt:111 */
        1068  +
    fn from(
        1069  +
        variant: crate::error::MasterBallUnsuccessful,
        1070  +
    ) -> crate::error::AttemptCapturingPokemonEventError {
        1071  +
        /* ServerOperationErrorGenerator.kt:112 */
        1072  +
        Self::MasterBallUnsuccessful(variant)
        1073  +
        /* ServerOperationErrorGenerator.kt:111 */
        1074  +
    }
        1075  +
    /* ServerOperationErrorGenerator.kt:110 */
  980   1076   
}
  981   1077   
  982   1078   
/* ServerOperationErrorGenerator.kt:63 */
  983   1079   
/// Error type for the `CapturePokemonEvents` operation.
  984   1080   
/* ServerOperationErrorGenerator.kt:64 */
  985   1081   
/// Each variant represents an error that can occur for the `CapturePokemonEvents` operation.
  986   1082   
/* RustType.kt:534 */
  987   1083   
#[derive(::std::fmt::Debug)]
  988   1084   
pub /* ServerOperationErrorGenerator.kt:66 */ enum CapturePokemonEventsError {
  989   1085   
    /* ServerOperationErrorGenerator.kt:68 */
@@ -1088,1184 +1562,1469 @@
 1108   1204   
    for crate::error::CapturePokemonEventsError
 1109   1205   
{
 1110   1206   
    /* ServerOperationErrorGenerator.kt:111 */
 1111   1207   
    fn from(variant: crate::error::ThrottlingError) -> crate::error::CapturePokemonEventsError {
 1112   1208   
        /* ServerOperationErrorGenerator.kt:112 */
 1113   1209   
        Self::ThrottlingError(variant)
 1114   1210   
        /* ServerOperationErrorGenerator.kt:111 */
 1115   1211   
    }
 1116   1212   
    /* ServerOperationErrorGenerator.kt:110 */
 1117   1213   
}
 1118         -
 1119         -
/* ServerOperationErrorGenerator.kt:63 */
 1120         -
/// Error type for the `AttemptCapturingPokemonEvent` operation.
 1121         -
/* ServerOperationErrorGenerator.kt:64 */
 1122         -
/// Each variant represents an error that can occur for the `AttemptCapturingPokemonEvent` operation.
 1123         -
/* RustType.kt:534 */
 1124         -
#[derive(::std::fmt::Debug)]
 1125         -
pub /* ServerOperationErrorGenerator.kt:66 */ enum AttemptCapturingPokemonEventError {
 1126         -
    /* ServerOperationErrorGenerator.kt:68 */
 1127         -
    #[allow(missing_docs)] // documentation missing in model
 1128         -
    /* ServerOperationErrorGenerator.kt:71 */
 1129         -
    MasterBallUnsuccessful(crate::error::MasterBallUnsuccessful),
 1130         -
    /* ServerOperationErrorGenerator.kt:66 */
 1131         -
}
 1132         -
/* ServerOperationErrorGenerator.kt:75 */
 1133         -
impl ::std::fmt::Display for AttemptCapturingPokemonEventError {
 1134         -
    /* ServerOperationErrorGenerator.kt:76 */
 1135         -
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
 1136         -
        /* ServerOperationErrorGenerator.kt:139 */
 1137         -
        match &self {
 1138         -
            /* ServerOperationErrorGenerator.kt:142 */
 1139         -
            AttemptCapturingPokemonEventError::MasterBallUnsuccessful(_inner) =>
 1140         -
            /* ServerOperationErrorGenerator.kt:78 */
 1141         -
            {
 1142         -
                _inner.fmt(f)
 1143         -
            }
 1144         -
            /* ServerOperationErrorGenerator.kt:139 */
 1145         -
        }
 1146         -
        /* ServerOperationErrorGenerator.kt:76 */
 1147         -
    }
 1148         -
    /* ServerOperationErrorGenerator.kt:75 */
 1149         -
}
 1150         -
/* ServerOperationErrorGenerator.kt:83 */
 1151         -
impl AttemptCapturingPokemonEventError {
 1152         -
    /* ServerOperationErrorGenerator.kt:87 */
 1153         -
    /// Returns `true` if the error kind is `AttemptCapturingPokemonEventError::MasterBallUnsuccessful`.
 1154         -
    /* ServerOperationErrorGenerator.kt:88 */
 1155         -
    pub fn is_master_ball_unsuccessful(&self) -> bool {
 1156         -
        /* ServerOperationErrorGenerator.kt:89 */
 1157         -
        matches!(
 1158         -
            &self,
 1159         -
            AttemptCapturingPokemonEventError::MasterBallUnsuccessful(_)
 1160         -
        )
 1161         -
        /* ServerOperationErrorGenerator.kt:88 */
 1162         -
    }
 1163         -
    /* ServerOperationErrorGenerator.kt:92 */
 1164         -
    /// Returns the error name string by matching the correct variant.
 1165         -
    /* ServerOperationErrorGenerator.kt:93 */
 1166         -
    pub fn name(&self) -> &'static str {
 1167         -
        /* ServerOperationErrorGenerator.kt:139 */
 1168         -
        match &self {
 1169         -
            /* ServerOperationErrorGenerator.kt:142 */
 1170         -
            AttemptCapturingPokemonEventError::MasterBallUnsuccessful(_inner) =>
 1171         -
            /* ServerOperationErrorGenerator.kt:95 */
 1172         -
            {
 1173         -
                _inner.name()
 1174         -
            }
 1175         -
            /* ServerOperationErrorGenerator.kt:139 */
 1176         -
        }
 1177         -
        /* ServerOperationErrorGenerator.kt:93 */
 1178         -
    }
 1179         -
    /* ServerOperationErrorGenerator.kt:83 */
 1180         -
}
 1181         -
/* ServerOperationErrorGenerator.kt:100 */
 1182         -
impl ::std::error::Error for AttemptCapturingPokemonEventError {
 1183         -
    /* ServerOperationErrorGenerator.kt:101 */
 1184         -
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
 1185         -
        /* ServerOperationErrorGenerator.kt:139 */
 1186         -
        match &self {
 1187         -
            /* ServerOperationErrorGenerator.kt:142 */
 1188         -
            AttemptCapturingPokemonEventError::MasterBallUnsuccessful(_inner) =>
 1189         -
            /* ServerOperationErrorGenerator.kt:103 */
 1190         -
            {
 1191         -
                Some(_inner)
 1192         -
            }
 1193         -
            /* ServerOperationErrorGenerator.kt:139 */
 1194         -
        }
 1195         -
        /* ServerOperationErrorGenerator.kt:101 */
 1196         -
    }
 1197         -
    /* ServerOperationErrorGenerator.kt:100 */
 1198         -
}
 1199         -
/* ServerOperationErrorGenerator.kt:110 */
 1200         -
impl ::std::convert::From<crate::error::MasterBallUnsuccessful>
 1201         -
    for crate::error::AttemptCapturingPokemonEventError
 1202         -
{
 1203         -
    /* ServerOperationErrorGenerator.kt:111 */
 1204         -
    fn from(
 1205         -
        variant: crate::error::MasterBallUnsuccessful,
 1206         -
    ) -> crate::error::AttemptCapturingPokemonEventError {
 1207         -
        /* ServerOperationErrorGenerator.kt:112 */
 1208         -
        Self::MasterBallUnsuccessful(variant)
 1209         -
        /* ServerOperationErrorGenerator.kt:111 */
 1210         -
    }
 1211         -
    /* ServerOperationErrorGenerator.kt:110 */
 1212         -
}
 1213         -
 1214         -
/// /* ServerBuilderGenerator.kt:171 */See [`ValidationException`](crate::error::ValidationException).
 1215         -
pub mod validation_exception {
 1216         -
 1217         -
    /* RustType.kt:534 */
 1218         -
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
 1219         -
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
 1220         -
    /* RustType.kt:534 */
 1221         -
    #[non_exhaustive]
 1222         -
    /* ServerBuilderConstraintViolations.kt:75 */
 1223         -
    #[allow(clippy::enum_variant_names)]
 1224         -
    pub enum ConstraintViolation {
 1225         -
        /// /* ServerBuilderConstraintViolations.kt:137 */`message` was not provided but it is required when building `ValidationException`.
 1226         -
        /* ServerBuilderConstraintViolations.kt:144 */
 1227         -
        MissingMessage,
 1228         -
        /* ServerBuilderConstraintViolations.kt:75 */
 1229         -
    }
 1230         -
    /* ServerBuilderConstraintViolations.kt:116 */
 1231         -
    impl ::std::fmt::Display for ConstraintViolation {
 1232         -
        /* ServerBuilderConstraintViolations.kt:117 */
 1233         -
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
 1234         -
            /* ServerBuilderConstraintViolations.kt:118 */
 1235         -
            match self {
 1236         -
                /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationException`"),
 1237         -
            /* ServerBuilderConstraintViolations.kt:118 */}
 1238         -
            /* ServerBuilderConstraintViolations.kt:117 */
 1239         -
        }
 1240         -
        /* ServerBuilderConstraintViolations.kt:116 */
 1241         -
    }
 1242         -
    /* ServerBuilderConstraintViolations.kt:83 */
 1243         -
    impl ::std::error::Error for ConstraintViolation {}
 1244         -
    /* ServerBuilderGenerator.kt:446 */
 1245         -
    impl ::std::convert::TryFrom<Builder> for crate::error::ValidationException {
 1246         -
        type Error = ConstraintViolation;
 1247         -
 1248         -
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
 1249         -
            builder.build()
 1250         -
        }
 1251         -
    }
 1252         -
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`ValidationException`](crate::error::ValidationException).
 1253         -
    /* RustType.kt:534 */
 1254         -
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
 1255         -
    /* ServerBuilderGenerator.kt:211 */
 1256         -
    pub struct Builder {
 1257         -
        /* ServerBuilderGenerator.kt:308 */
 1258         -
        pub(crate) message: ::std::option::Option<::std::string::String>,
 1259         -
        /* ServerBuilderGenerator.kt:308 */
 1260         -
        pub(crate) field_list:
 1261         -
            ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
 1262         -
        /* ServerBuilderGenerator.kt:211 */
 1263         -
    }
 1264         -
    /* ServerBuilderGenerator.kt:215 */
 1265         -
    impl Builder {
 1266         -
        /// /* ServerBuilderGenerator.kt:331 */A summary of the validation failure.
 1267         -
        /* ServerBuilderGenerator.kt:343 */
 1268         -
        pub fn message(mut self, input: ::std::string::String) -> Self {
 1269         -
            /* ServerBuilderGenerator.kt:344 */
 1270         -
            self.message =
 1271         -
                /* ServerBuilderGenerator.kt:345 */Some(
 1272         -
                    /* ServerBuilderGenerator.kt:376 */input
 1273         -
                /* ServerBuilderGenerator.kt:345 */)
 1274         -
            /* ServerBuilderGenerator.kt:344 */;
 1275         -
            self
 1276         -
            /* ServerBuilderGenerator.kt:343 */
 1277         -
        }
 1278         -
        /// /* ServerBuilderGenerator.kt:331 */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.
 1279         -
        /* ServerBuilderGenerator.kt:343 */
 1280         -
        pub fn field_list(
 1281         -
            mut self,
 1282         -
            input: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
 1283         -
        ) -> Self {
 1284         -
            /* ServerBuilderGenerator.kt:344 */
 1285         -
            self.field_list =
 1286         -
                /* ServerBuilderGenerator.kt:376 */input
 1287         -
            /* ServerBuilderGenerator.kt:344 */;
 1288         -
            self
 1289         -
            /* ServerBuilderGenerator.kt:343 */
 1290         -
        }
 1291         -
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ValidationException`](crate::error::ValidationException).
 1292         -
        /// /* ServerBuilderGenerator.kt:260 */
 1293         -
        /// The builder fails to construct a [`ValidationException`](crate::error::ValidationException) if a [`ConstraintViolation`] occurs.
 1294         -
        ///
 1295         -
        /* ServerBuilderGenerator.kt:271 */
 1296         -
        pub fn build(self) -> Result<crate::error::ValidationException, ConstraintViolation> {
 1297         -
            self.build_enforcing_all_constraints()
 1298         -
        }
 1299         -
        /* ServerBuilderGenerator.kt:283 */
 1300         -
        fn build_enforcing_all_constraints(
 1301         -
            self,
 1302         -
        ) -> Result<crate::error::ValidationException, ConstraintViolation> {
 1303         -
            /* ServerBuilderGenerator.kt:287 */
 1304         -
            Ok(
 1305         -
                /* ServerBuilderGenerator.kt:542 */
 1306         -
                crate::error::ValidationException {
 1307         -
                    /* ServerBuilderGenerator.kt:546 */
 1308         -
                    message: self
 1309         -
                        .message
 1310         -
                        /* ServerBuilderGenerator.kt:569 */
 1311         -
                        .ok_or(ConstraintViolation::MissingMessage)?,
 1312         -
                    /* ServerBuilderGenerator.kt:546 */
 1313         -
                    field_list: self.field_list,
 1314         -
                    /* ServerBuilderGenerator.kt:542 */
 1315         -
                }, /* ServerBuilderGenerator.kt:287 */
 1316         -
            )
 1317         -
            /* ServerBuilderGenerator.kt:283 */
 1318         -
        }
 1319         -
        /* ServerBuilderGenerator.kt:215 */
 1320         -
    }
 1321         -
 1322         -
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1323         -
}
 1324         -
/// /* ServerBuilderGenerator.kt:171 */See [`StorageAccessNotAuthorized`](crate::error::StorageAccessNotAuthorized).
 1325         -
pub mod storage_access_not_authorized {
 1326         -
 1327         -
    /* ServerBuilderGenerator.kt:461 */
 1328         -
    impl ::std::convert::From<Builder> for crate::error::StorageAccessNotAuthorized {
 1329         -
        fn from(builder: Builder) -> Self {
 1330         -
            builder.build()
 1331         -
        }
 1332         -
    }
 1333         -
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`StorageAccessNotAuthorized`](crate::error::StorageAccessNotAuthorized).
 1334         -
    /* RustType.kt:534 */
 1335         -
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
 1336         -
    /* ServerBuilderGenerator.kt:211 */
 1337         -
    pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
 1338         -
    /* ServerBuilderGenerator.kt:215 */
 1339         -
    impl Builder {
 1340         -
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`StorageAccessNotAuthorized`](crate::error::StorageAccessNotAuthorized).
 1341         -
        /* ServerBuilderGenerator.kt:271 */
 1342         -
        pub fn build(self) -> crate::error::StorageAccessNotAuthorized {
 1343         -
            self.build_enforcing_all_constraints()
 1344         -
        }
 1345         -
        /* ServerBuilderGenerator.kt:283 */
 1346         -
        fn build_enforcing_all_constraints(self) -> crate::error::StorageAccessNotAuthorized {
 1347         -
            /* ServerBuilderGenerator.kt:542 */
 1348         -
            crate::error::StorageAccessNotAuthorized {
 1349         -
            /* ServerBuilderGenerator.kt:542 */}
 1350         -
            /* ServerBuilderGenerator.kt:283 */
 1351         -
        }
 1352         -
        /* ServerBuilderGenerator.kt:215 */
 1353         -
    }
 1354         -
 1355         -
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1356         -
}
 1357         -
/// /* ServerBuilderGenerator.kt:171 */See [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
 1358         -
pub mod resource_not_found_exception {
        1214  +
/// /* ServerBuilderGenerator.kt:171 */See [`UnsupportedRegionError`](crate::error::UnsupportedRegionError).
        1215  +
pub mod unsupported_region_error {
 1359   1216   
 1360   1217   
    /* RustType.kt:534 */
 1361   1218   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
 1362   1219   
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
 1363   1220   
    /* RustType.kt:534 */
 1364   1221   
    #[non_exhaustive]
 1365   1222   
    /* ServerBuilderConstraintViolations.kt:75 */
 1366   1223   
    #[allow(clippy::enum_variant_names)]
 1367   1224   
    pub enum ConstraintViolation {
 1368         -
        /// /* ServerBuilderConstraintViolations.kt:137 */`message` was not provided but it is required when building `ResourceNotFoundException`.
        1225  +
        /// /* ServerBuilderConstraintViolations.kt:137 */`region` was not provided but it is required when building `UnsupportedRegionError`.
 1369   1226   
        /* ServerBuilderConstraintViolations.kt:144 */
 1370         -
        MissingMessage,
        1227  +
        MissingRegion,
 1371   1228   
        /* ServerBuilderConstraintViolations.kt:75 */
 1372   1229   
    }
 1373   1230   
    /* ServerBuilderConstraintViolations.kt:116 */
 1374   1231   
    impl ::std::fmt::Display for ConstraintViolation {
 1375   1232   
        /* ServerBuilderConstraintViolations.kt:117 */
 1376   1233   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
 1377   1234   
            /* ServerBuilderConstraintViolations.kt:118 */
 1378   1235   
            match self {
 1379         -
                /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ResourceNotFoundException`"),
        1236  +
                /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingRegion => write!(f, "`region` was not provided but it is required when building `UnsupportedRegionError`"),
 1380   1237   
            /* ServerBuilderConstraintViolations.kt:118 */}
 1381   1238   
            /* ServerBuilderConstraintViolations.kt:117 */
 1382   1239   
        }
 1383   1240   
        /* ServerBuilderConstraintViolations.kt:116 */
 1384   1241   
    }
 1385   1242   
    /* ServerBuilderConstraintViolations.kt:83 */
 1386   1243   
    impl ::std::error::Error for ConstraintViolation {}
 1387   1244   
    /* ServerBuilderGenerator.kt:446 */
 1388         -
    impl ::std::convert::TryFrom<Builder> for crate::error::ResourceNotFoundException {
        1245  +
    impl ::std::convert::TryFrom<Builder> for crate::error::UnsupportedRegionError {
 1389   1246   
        type Error = ConstraintViolation;
 1390   1247   
 1391   1248   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
 1392   1249   
            builder.build()
 1393   1250   
        }
 1394   1251   
    }
 1395         -
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
        1252  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`UnsupportedRegionError`](crate::error::UnsupportedRegionError).
 1396   1253   
    /* RustType.kt:534 */
 1397   1254   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
 1398   1255   
    /* ServerBuilderGenerator.kt:211 */
 1399   1256   
    pub struct Builder {
 1400   1257   
        /* ServerBuilderGenerator.kt:308 */
 1401         -
        pub(crate) message: ::std::option::Option<::std::string::String>,
        1258  +
        pub(crate) region: ::std::option::Option<::std::string::String>,
 1402   1259   
        /* ServerBuilderGenerator.kt:211 */
 1403   1260   
    }
 1404   1261   
    /* ServerBuilderGenerator.kt:215 */
 1405   1262   
    impl Builder {
 1406   1263   
        /* ServerBuilderGenerator.kt:331 */
 1407   1264   
        #[allow(missing_docs)] // documentation missing in model
 1408   1265   
                               /* ServerBuilderGenerator.kt:343 */
 1409         -
        pub fn message(mut self, input: ::std::string::String) -> Self {
        1266  +
        pub fn region(mut self, input: ::std::string::String) -> Self {
 1410   1267   
            /* ServerBuilderGenerator.kt:344 */
 1411         -
            self.message =
        1268  +
            self.region =
 1412   1269   
                /* ServerBuilderGenerator.kt:345 */Some(
 1413   1270   
                    /* ServerBuilderGenerator.kt:376 */input
 1414   1271   
                /* ServerBuilderGenerator.kt:345 */)
 1415   1272   
            /* ServerBuilderGenerator.kt:344 */;
 1416   1273   
            self
 1417   1274   
            /* ServerBuilderGenerator.kt:343 */
 1418   1275   
        }
 1419         -
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
        1276  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`UnsupportedRegionError`](crate::error::UnsupportedRegionError).
 1420   1277   
        /// /* ServerBuilderGenerator.kt:260 */
 1421         -
        /// The builder fails to construct a [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) if a [`ConstraintViolation`] occurs.
        1278  +
        /// The builder fails to construct a [`UnsupportedRegionError`](crate::error::UnsupportedRegionError) if a [`ConstraintViolation`] occurs.
 1422   1279   
        ///
 1423   1280   
        /* ServerBuilderGenerator.kt:271 */
 1424         -
        pub fn build(self) -> Result<crate::error::ResourceNotFoundException, ConstraintViolation> {
        1281  +
        pub fn build(self) -> Result<crate::error::UnsupportedRegionError, ConstraintViolation> {
 1425   1282   
            self.build_enforcing_all_constraints()
 1426   1283   
        }
 1427   1284   
        /* ServerBuilderGenerator.kt:283 */
 1428   1285   
        fn build_enforcing_all_constraints(
 1429   1286   
            self,
 1430         -
        ) -> Result<crate::error::ResourceNotFoundException, ConstraintViolation> {
        1287  +
        ) -> Result<crate::error::UnsupportedRegionError, ConstraintViolation> {
 1431   1288   
            /* ServerBuilderGenerator.kt:287 */
 1432   1289   
            Ok(
 1433   1290   
                /* ServerBuilderGenerator.kt:542 */
 1434         -
                crate::error::ResourceNotFoundException {
        1291  +
                crate::error::UnsupportedRegionError {
 1435   1292   
                    /* ServerBuilderGenerator.kt:546 */
 1436         -
                    message: self
 1437         -
                        .message
        1293  +
                    region: self
        1294  +
                        .region
 1438   1295   
                        /* ServerBuilderGenerator.kt:569 */
 1439         -
                        .ok_or(ConstraintViolation::MissingMessage)?,
        1296  +
                        .ok_or(ConstraintViolation::MissingRegion)?,
 1440   1297   
                    /* ServerBuilderGenerator.kt:542 */
 1441   1298   
                }, /* ServerBuilderGenerator.kt:287 */
 1442   1299   
            )
 1443   1300   
            /* ServerBuilderGenerator.kt:283 */
 1444   1301   
        }
 1445   1302   
        /* ServerBuilderGenerator.kt:215 */
 1446   1303   
    }
 1447   1304   
 1448   1305   
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1449   1306   
}
 1450         -
/// /* ServerBuilderGenerator.kt:171 */See [`InvalidPokeballError`](crate::error::InvalidPokeballError).
 1451         -
pub mod invalid_pokeball_error {
        1307  +
/// /* ServerBuilderGenerator.kt:171 */See [`ThrottlingError`](crate::error::ThrottlingError).
        1308  +
pub mod throttling_error {
        1309  +
        1310  +
    /* ServerBuilderGenerator.kt:461 */
        1311  +
    impl ::std::convert::From<Builder> for crate::error::ThrottlingError {
        1312  +
        fn from(builder: Builder) -> Self {
        1313  +
            builder.build()
        1314  +
        }
        1315  +
    }
        1316  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`ThrottlingError`](crate::error::ThrottlingError).
        1317  +
    /* RustType.kt:534 */
        1318  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        1319  +
    /* ServerBuilderGenerator.kt:211 */
        1320  +
    pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
        1321  +
    /* ServerBuilderGenerator.kt:215 */
        1322  +
    impl Builder {
        1323  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ThrottlingError`](crate::error::ThrottlingError).
        1324  +
        /* ServerBuilderGenerator.kt:271 */
        1325  +
        pub fn build(self) -> crate::error::ThrottlingError {
        1326  +
            self.build_enforcing_all_constraints()
        1327  +
        }
        1328  +
        /* ServerBuilderGenerator.kt:283 */
        1329  +
        fn build_enforcing_all_constraints(self) -> crate::error::ThrottlingError {
        1330  +
            /* ServerBuilderGenerator.kt:542 */
        1331  +
            crate::error::ThrottlingError {
        1332  +
            /* ServerBuilderGenerator.kt:542 */}
        1333  +
            /* ServerBuilderGenerator.kt:283 */
        1334  +
        }
        1335  +
        /* ServerBuilderGenerator.kt:215 */
        1336  +
    }
        1337  +
        1338  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
        1339  +
}
        1340  +
/// /* ServerBuilderGenerator.kt:171 */See [`ValidationException`](crate::error::ValidationException).
        1341  +
pub mod validation_exception {
 1452   1342   
 1453   1343   
    /* RustType.kt:534 */
 1454   1344   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
 1455   1345   
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
 1456   1346   
    /* RustType.kt:534 */
 1457   1347   
    #[non_exhaustive]
 1458   1348   
    /* ServerBuilderConstraintViolations.kt:75 */
 1459   1349   
    #[allow(clippy::enum_variant_names)]
 1460   1350   
    pub enum ConstraintViolation {
 1461         -
        /// /* ServerBuilderConstraintViolations.kt:137 */`pokeball` was not provided but it is required when building `InvalidPokeballError`.
        1351  +
        /// /* ServerBuilderConstraintViolations.kt:137 */`message` was not provided but it is required when building `ValidationException`.
 1462   1352   
        /* ServerBuilderConstraintViolations.kt:144 */
 1463         -
        MissingPokeball,
        1353  +
        MissingMessage,
 1464   1354   
        /* ServerBuilderConstraintViolations.kt:75 */
 1465   1355   
    }
 1466   1356   
    /* ServerBuilderConstraintViolations.kt:116 */
 1467   1357   
    impl ::std::fmt::Display for ConstraintViolation {
 1468   1358   
        /* ServerBuilderConstraintViolations.kt:117 */
 1469   1359   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
 1470   1360   
            /* ServerBuilderConstraintViolations.kt:118 */
 1471   1361   
            match self {
 1472         -
                /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingPokeball => write!(f, "`pokeball` was not provided but it is required when building `InvalidPokeballError`"),
        1362  +
                /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationException`"),
 1473   1363   
            /* ServerBuilderConstraintViolations.kt:118 */}
 1474   1364   
            /* ServerBuilderConstraintViolations.kt:117 */
 1475   1365   
        }
 1476   1366   
        /* ServerBuilderConstraintViolations.kt:116 */
 1477   1367   
    }
 1478   1368   
    /* ServerBuilderConstraintViolations.kt:83 */
 1479   1369   
    impl ::std::error::Error for ConstraintViolation {}
 1480   1370   
    /* ServerBuilderGenerator.kt:446 */
 1481         -
    impl ::std::convert::TryFrom<Builder> for crate::error::InvalidPokeballError {
        1371  +
    impl ::std::convert::TryFrom<Builder> for crate::error::ValidationException {
 1482   1372   
        type Error = ConstraintViolation;
 1483   1373   
 1484   1374   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
 1485   1375   
            builder.build()
 1486   1376   
        }
 1487   1377   
    }
 1488         -
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`InvalidPokeballError`](crate::error::InvalidPokeballError).
        1378  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`ValidationException`](crate::error::ValidationException).
 1489   1379   
    /* RustType.kt:534 */
 1490   1380   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
 1491   1381   
    /* ServerBuilderGenerator.kt:211 */
 1492   1382   
    pub struct Builder {
 1493   1383   
        /* ServerBuilderGenerator.kt:308 */
 1494         -
        pub(crate) pokeball: ::std::option::Option<::std::string::String>,
        1384  +
        pub(crate) message: ::std::option::Option<::std::string::String>,
        1385  +
        /* ServerBuilderGenerator.kt:308 */
        1386  +
        pub(crate) field_list:
        1387  +
            ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
 1495   1388   
        /* ServerBuilderGenerator.kt:211 */
 1496   1389   
    }
 1497   1390   
    /* ServerBuilderGenerator.kt:215 */
 1498   1391   
    impl Builder {
 1499         -
        /* ServerBuilderGenerator.kt:331 */
 1500         -
        #[allow(missing_docs)] // documentation missing in model
        1392  +
        /// /* ServerBuilderGenerator.kt:331 */A summary of the validation failure.
 1501   1393   
        /* ServerBuilderGenerator.kt:343 */
 1502         -
        pub fn pokeball(mut self, input: ::std::string::String) -> Self {
        1394  +
        pub fn message(mut self, input: ::std::string::String) -> Self {
 1503   1395   
            /* ServerBuilderGenerator.kt:344 */
 1504         -
            self.pokeball =
        1396  +
            self.message =
 1505   1397   
                /* ServerBuilderGenerator.kt:345 */Some(
 1506   1398   
                    /* ServerBuilderGenerator.kt:376 */input
 1507   1399   
                /* ServerBuilderGenerator.kt:345 */)
 1508   1400   
            /* ServerBuilderGenerator.kt:344 */;
 1509   1401   
            self
 1510   1402   
            /* ServerBuilderGenerator.kt:343 */
 1511   1403   
        }
 1512         -
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`InvalidPokeballError`](crate::error::InvalidPokeballError).
        1404  +
        /// /* ServerBuilderGenerator.kt:331 */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.
        1405  +
        /* ServerBuilderGenerator.kt:343 */
        1406  +
        pub fn field_list(
        1407  +
            mut self,
        1408  +
            input: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
        1409  +
        ) -> Self {
        1410  +
            /* ServerBuilderGenerator.kt:344 */
        1411  +
            self.field_list =
        1412  +
                /* ServerBuilderGenerator.kt:376 */input
        1413  +
            /* ServerBuilderGenerator.kt:344 */;
        1414  +
            self
        1415  +
            /* ServerBuilderGenerator.kt:343 */
        1416  +
        }
        1417  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ValidationException`](crate::error::ValidationException).
 1513   1418   
        /// /* ServerBuilderGenerator.kt:260 */
 1514         -
        /// The builder fails to construct a [`InvalidPokeballError`](crate::error::InvalidPokeballError) if a [`ConstraintViolation`] occurs.
        1419  +
        /// The builder fails to construct a [`ValidationException`](crate::error::ValidationException) if a [`ConstraintViolation`] occurs.
 1515   1420   
        ///
 1516   1421   
        /* ServerBuilderGenerator.kt:271 */
 1517         -
        pub fn build(self) -> Result<crate::error::InvalidPokeballError, ConstraintViolation> {
        1422  +
        pub fn build(self) -> Result<crate::error::ValidationException, ConstraintViolation> {
 1518   1423   
            self.build_enforcing_all_constraints()
 1519   1424   
        }
 1520   1425   
        /* ServerBuilderGenerator.kt:283 */
 1521   1426   
        fn build_enforcing_all_constraints(
 1522   1427   
            self,
 1523         -
        ) -> Result<crate::error::InvalidPokeballError, ConstraintViolation> {
        1428  +
        ) -> Result<crate::error::ValidationException, ConstraintViolation> {
 1524   1429   
            /* ServerBuilderGenerator.kt:287 */
 1525   1430   
            Ok(
 1526   1431   
                /* ServerBuilderGenerator.kt:542 */
 1527         -
                crate::error::InvalidPokeballError {
        1432  +
                crate::error::ValidationException {
 1528   1433   
                    /* ServerBuilderGenerator.kt:546 */
 1529         -
                    pokeball: self
 1530         -
                        .pokeball
        1434  +
                    message: self
        1435  +
                        .message
 1531   1436   
                        /* ServerBuilderGenerator.kt:569 */
 1532         -
                        .ok_or(ConstraintViolation::MissingPokeball)?,
        1437  +
                        .ok_or(ConstraintViolation::MissingMessage)?,
        1438  +
                    /* ServerBuilderGenerator.kt:546 */
        1439  +
                    field_list: self.field_list,
 1533   1440   
                    /* ServerBuilderGenerator.kt:542 */
 1534   1441   
                }, /* ServerBuilderGenerator.kt:287 */
 1535   1442   
            )
 1536   1443   
            /* ServerBuilderGenerator.kt:283 */
 1537   1444   
        }
 1538   1445   
        /* ServerBuilderGenerator.kt:215 */
 1539   1446   
    }
 1540   1447   
 1541   1448   
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1542   1449   
}
@@ -1576,1483 +0,1731 @@
 1596   1503   
                message: self.message,
 1597   1504   
                /* ServerBuilderGenerator.kt:542 */
 1598   1505   
            }
 1599   1506   
            /* ServerBuilderGenerator.kt:283 */
 1600   1507   
        }
 1601   1508   
        /* ServerBuilderGenerator.kt:215 */
 1602   1509   
    }
 1603   1510   
 1604   1511   
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1605   1512   
}
 1606         -
/// /* ServerBuilderGenerator.kt:171 */See [`ThrottlingError`](crate::error::ThrottlingError).
 1607         -
pub mod throttling_error {
        1513  +
/// /* ServerBuilderGenerator.kt:171 */See [`InvalidPokeballError`](crate::error::InvalidPokeballError).
        1514  +
pub mod invalid_pokeball_error {
 1608   1515   
 1609         -
    /* ServerBuilderGenerator.kt:461 */
 1610         -
    impl ::std::convert::From<Builder> for crate::error::ThrottlingError {
 1611         -
        fn from(builder: Builder) -> Self {
        1516  +
    /* RustType.kt:534 */
        1517  +
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
        1518  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
        1519  +
    /* RustType.kt:534 */
        1520  +
    #[non_exhaustive]
        1521  +
    /* ServerBuilderConstraintViolations.kt:75 */
        1522  +
    #[allow(clippy::enum_variant_names)]
        1523  +
    pub enum ConstraintViolation {
        1524  +
        /// /* ServerBuilderConstraintViolations.kt:137 */`pokeball` was not provided but it is required when building `InvalidPokeballError`.
        1525  +
        /* ServerBuilderConstraintViolations.kt:144 */
        1526  +
        MissingPokeball,
        1527  +
        /* ServerBuilderConstraintViolations.kt:75 */
        1528  +
    }
        1529  +
    /* ServerBuilderConstraintViolations.kt:116 */
        1530  +
    impl ::std::fmt::Display for ConstraintViolation {
        1531  +
        /* ServerBuilderConstraintViolations.kt:117 */
        1532  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1533  +
            /* ServerBuilderConstraintViolations.kt:118 */
        1534  +
            match self {
        1535  +
                /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingPokeball => write!(f, "`pokeball` was not provided but it is required when building `InvalidPokeballError`"),
        1536  +
            /* ServerBuilderConstraintViolations.kt:118 */}
        1537  +
            /* ServerBuilderConstraintViolations.kt:117 */
        1538  +
        }
        1539  +
        /* ServerBuilderConstraintViolations.kt:116 */
        1540  +
    }
        1541  +
    /* ServerBuilderConstraintViolations.kt:83 */
        1542  +
    impl ::std::error::Error for ConstraintViolation {}
        1543  +
    /* ServerBuilderGenerator.kt:446 */
        1544  +
    impl ::std::convert::TryFrom<Builder> for crate::error::InvalidPokeballError {
        1545  +
        type Error = ConstraintViolation;
        1546  +
        1547  +
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
 1612   1548   
            builder.build()
 1613   1549   
        }
 1614   1550   
    }
 1615         -
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`ThrottlingError`](crate::error::ThrottlingError).
        1551  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`InvalidPokeballError`](crate::error::InvalidPokeballError).
 1616   1552   
    /* RustType.kt:534 */
 1617   1553   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
 1618   1554   
    /* ServerBuilderGenerator.kt:211 */
 1619         -
    pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
        1555  +
    pub struct Builder {
        1556  +
        /* ServerBuilderGenerator.kt:308 */
        1557  +
        pub(crate) pokeball: ::std::option::Option<::std::string::String>,
        1558  +
        /* ServerBuilderGenerator.kt:211 */
        1559  +
    }
 1620   1560   
    /* ServerBuilderGenerator.kt:215 */
 1621   1561   
    impl Builder {
 1622         -
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ThrottlingError`](crate::error::ThrottlingError).
        1562  +
        /* ServerBuilderGenerator.kt:331 */
        1563  +
        #[allow(missing_docs)] // documentation missing in model
        1564  +
                               /* ServerBuilderGenerator.kt:343 */
        1565  +
        pub fn pokeball(mut self, input: ::std::string::String) -> Self {
        1566  +
            /* ServerBuilderGenerator.kt:344 */
        1567  +
            self.pokeball =
        1568  +
                /* ServerBuilderGenerator.kt:345 */Some(
        1569  +
                    /* ServerBuilderGenerator.kt:376 */input
        1570  +
                /* ServerBuilderGenerator.kt:345 */)
        1571  +
            /* ServerBuilderGenerator.kt:344 */;
        1572  +
            self
        1573  +
            /* ServerBuilderGenerator.kt:343 */
        1574  +
        }
        1575  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`InvalidPokeballError`](crate::error::InvalidPokeballError).
        1576  +
        /// /* ServerBuilderGenerator.kt:260 */
        1577  +
        /// The builder fails to construct a [`InvalidPokeballError`](crate::error::InvalidPokeballError) if a [`ConstraintViolation`] occurs.
        1578  +
        ///
 1623   1579   
        /* ServerBuilderGenerator.kt:271 */
 1624         -
        pub fn build(self) -> crate::error::ThrottlingError {
        1580  +
        pub fn build(self) -> Result<crate::error::InvalidPokeballError, ConstraintViolation> {
 1625   1581   
            self.build_enforcing_all_constraints()
 1626   1582   
        }
 1627   1583   
        /* ServerBuilderGenerator.kt:283 */
 1628         -
        fn build_enforcing_all_constraints(self) -> crate::error::ThrottlingError {
        1584  +
        fn build_enforcing_all_constraints(
        1585  +
            self,
        1586  +
        ) -> Result<crate::error::InvalidPokeballError, ConstraintViolation> {
        1587  +
            /* ServerBuilderGenerator.kt:287 */
        1588  +
            Ok(
 1629   1589   
                /* ServerBuilderGenerator.kt:542 */
 1630         -
            crate::error::ThrottlingError {
 1631         -
            /* ServerBuilderGenerator.kt:542 */}
        1590  +
                crate::error::InvalidPokeballError {
        1591  +
                    /* ServerBuilderGenerator.kt:546 */
        1592  +
                    pokeball: self
        1593  +
                        .pokeball
        1594  +
                        /* ServerBuilderGenerator.kt:569 */
        1595  +
                        .ok_or(ConstraintViolation::MissingPokeball)?,
        1596  +
                    /* ServerBuilderGenerator.kt:542 */
        1597  +
                }, /* ServerBuilderGenerator.kt:287 */
        1598  +
            )
 1632   1599   
            /* ServerBuilderGenerator.kt:283 */
 1633   1600   
        }
 1634   1601   
        /* ServerBuilderGenerator.kt:215 */
 1635   1602   
    }
 1636   1603   
 1637   1604   
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1638   1605   
}
 1639         -
/// /* ServerBuilderGenerator.kt:171 */See [`UnsupportedRegionError`](crate::error::UnsupportedRegionError).
 1640         -
pub mod unsupported_region_error {
        1606  +
/// /* ServerBuilderGenerator.kt:171 */See [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
        1607  +
pub mod resource_not_found_exception {
 1641   1608   
 1642   1609   
    /* RustType.kt:534 */
 1643   1610   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
 1644   1611   
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
 1645   1612   
    /* RustType.kt:534 */
 1646   1613   
    #[non_exhaustive]
 1647   1614   
    /* ServerBuilderConstraintViolations.kt:75 */
 1648   1615   
    #[allow(clippy::enum_variant_names)]
 1649   1616   
    pub enum ConstraintViolation {
 1650         -
        /// /* ServerBuilderConstraintViolations.kt:137 */`region` was not provided but it is required when building `UnsupportedRegionError`.
        1617  +
        /// /* ServerBuilderConstraintViolations.kt:137 */`message` was not provided but it is required when building `ResourceNotFoundException`.
 1651   1618   
        /* ServerBuilderConstraintViolations.kt:144 */
 1652         -
        MissingRegion,
        1619  +
        MissingMessage,
 1653   1620   
        /* ServerBuilderConstraintViolations.kt:75 */
 1654   1621   
    }
 1655   1622   
    /* ServerBuilderConstraintViolations.kt:116 */
 1656   1623   
    impl ::std::fmt::Display for ConstraintViolation {
 1657   1624   
        /* ServerBuilderConstraintViolations.kt:117 */
 1658   1625   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
 1659   1626   
            /* ServerBuilderConstraintViolations.kt:118 */
 1660   1627   
            match self {
 1661         -
                /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingRegion => write!(f, "`region` was not provided but it is required when building `UnsupportedRegionError`"),
        1628  +
                /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ResourceNotFoundException`"),
 1662   1629   
            /* ServerBuilderConstraintViolations.kt:118 */}
 1663   1630   
            /* ServerBuilderConstraintViolations.kt:117 */
 1664   1631   
        }
 1665   1632   
        /* ServerBuilderConstraintViolations.kt:116 */
 1666   1633   
    }
 1667   1634   
    /* ServerBuilderConstraintViolations.kt:83 */
 1668   1635   
    impl ::std::error::Error for ConstraintViolation {}
 1669   1636   
    /* ServerBuilderGenerator.kt:446 */
 1670         -
    impl ::std::convert::TryFrom<Builder> for crate::error::UnsupportedRegionError {
        1637  +
    impl ::std::convert::TryFrom<Builder> for crate::error::ResourceNotFoundException {
 1671   1638   
        type Error = ConstraintViolation;
 1672   1639   
 1673   1640   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
 1674   1641   
            builder.build()
 1675   1642   
        }
 1676   1643   
    }
 1677         -
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`UnsupportedRegionError`](crate::error::UnsupportedRegionError).
        1644  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
 1678   1645   
    /* RustType.kt:534 */
 1679   1646   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
 1680   1647   
    /* ServerBuilderGenerator.kt:211 */
 1681   1648   
    pub struct Builder {
 1682   1649   
        /* ServerBuilderGenerator.kt:308 */
 1683         -
        pub(crate) region: ::std::option::Option<::std::string::String>,
        1650  +
        pub(crate) message: ::std::option::Option<::std::string::String>,
 1684   1651   
        /* ServerBuilderGenerator.kt:211 */
 1685   1652   
    }
 1686   1653   
    /* ServerBuilderGenerator.kt:215 */
 1687   1654   
    impl Builder {
 1688   1655   
        /* ServerBuilderGenerator.kt:331 */
 1689   1656   
        #[allow(missing_docs)] // documentation missing in model
 1690   1657   
                               /* ServerBuilderGenerator.kt:343 */
 1691         -
        pub fn region(mut self, input: ::std::string::String) -> Self {
        1658  +
        pub fn message(mut self, input: ::std::string::String) -> Self {
 1692   1659   
            /* ServerBuilderGenerator.kt:344 */
 1693         -
            self.region =
        1660  +
            self.message =
 1694   1661   
                /* ServerBuilderGenerator.kt:345 */Some(
 1695   1662   
                    /* ServerBuilderGenerator.kt:376 */input
 1696   1663   
                /* ServerBuilderGenerator.kt:345 */)
 1697   1664   
            /* ServerBuilderGenerator.kt:344 */;
 1698   1665   
            self
 1699   1666   
            /* ServerBuilderGenerator.kt:343 */
 1700   1667   
        }
 1701         -
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`UnsupportedRegionError`](crate::error::UnsupportedRegionError).
        1668  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
 1702   1669   
        /// /* ServerBuilderGenerator.kt:260 */
 1703         -
        /// The builder fails to construct a [`UnsupportedRegionError`](crate::error::UnsupportedRegionError) if a [`ConstraintViolation`] occurs.
        1670  +
        /// The builder fails to construct a [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) if a [`ConstraintViolation`] occurs.
 1704   1671   
        ///
 1705   1672   
        /* ServerBuilderGenerator.kt:271 */
 1706         -
        pub fn build(self) -> Result<crate::error::UnsupportedRegionError, ConstraintViolation> {
        1673  +
        pub fn build(self) -> Result<crate::error::ResourceNotFoundException, ConstraintViolation> {
 1707   1674   
            self.build_enforcing_all_constraints()
 1708   1675   
        }
 1709   1676   
        /* ServerBuilderGenerator.kt:283 */
 1710   1677   
        fn build_enforcing_all_constraints(
 1711   1678   
            self,
 1712         -
        ) -> Result<crate::error::UnsupportedRegionError, ConstraintViolation> {
        1679  +
        ) -> Result<crate::error::ResourceNotFoundException, ConstraintViolation> {
 1713   1680   
            /* ServerBuilderGenerator.kt:287 */
 1714   1681   
            Ok(
 1715   1682   
                /* ServerBuilderGenerator.kt:542 */
 1716         -
                crate::error::UnsupportedRegionError {
        1683  +
                crate::error::ResourceNotFoundException {
 1717   1684   
                    /* ServerBuilderGenerator.kt:546 */
 1718         -
                    region: self
 1719         -
                        .region
        1685  +
                    message: self
        1686  +
                        .message
 1720   1687   
                        /* ServerBuilderGenerator.kt:569 */
 1721         -
                        .ok_or(ConstraintViolation::MissingRegion)?,
        1688  +
                        .ok_or(ConstraintViolation::MissingMessage)?,
 1722   1689   
                    /* ServerBuilderGenerator.kt:542 */
 1723   1690   
                }, /* ServerBuilderGenerator.kt:287 */
 1724   1691   
            )
 1725   1692   
            /* ServerBuilderGenerator.kt:283 */
 1726   1693   
        }
 1727   1694   
        /* ServerBuilderGenerator.kt:215 */
 1728   1695   
    }
 1729   1696   
 1730   1697   
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1731   1698   
}
        1699  +
/// /* ServerBuilderGenerator.kt:171 */See [`StorageAccessNotAuthorized`](crate::error::StorageAccessNotAuthorized).
        1700  +
pub mod storage_access_not_authorized {
        1701  +
        1702  +
    /* ServerBuilderGenerator.kt:461 */
        1703  +
    impl ::std::convert::From<Builder> for crate::error::StorageAccessNotAuthorized {
        1704  +
        fn from(builder: Builder) -> Self {
        1705  +
            builder.build()
        1706  +
        }
        1707  +
    }
        1708  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`StorageAccessNotAuthorized`](crate::error::StorageAccessNotAuthorized).
        1709  +
    /* RustType.kt:534 */
        1710  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        1711  +
    /* ServerBuilderGenerator.kt:211 */
        1712  +
    pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
        1713  +
    /* ServerBuilderGenerator.kt:215 */
        1714  +
    impl Builder {
        1715  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`StorageAccessNotAuthorized`](crate::error::StorageAccessNotAuthorized).
        1716  +
        /* ServerBuilderGenerator.kt:271 */
        1717  +
        pub fn build(self) -> crate::error::StorageAccessNotAuthorized {
        1718  +
            self.build_enforcing_all_constraints()
        1719  +
        }
        1720  +
        /* ServerBuilderGenerator.kt:283 */
        1721  +
        fn build_enforcing_all_constraints(self) -> crate::error::StorageAccessNotAuthorized {
        1722  +
            /* ServerBuilderGenerator.kt:542 */
        1723  +
            crate::error::StorageAccessNotAuthorized {
        1724  +
            /* ServerBuilderGenerator.kt:542 */}
        1725  +
            /* ServerBuilderGenerator.kt:283 */
        1726  +
        }
        1727  +
        /* ServerBuilderGenerator.kt:215 */
        1728  +
    }
        1729  +
        1730  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
        1731  +
}