278 150 | crate::input::capture_pokemon_input::Builder::default()
|
279 151 | }
|
280 152 | }
|
281 153 |
|
282 154 | #[::pyo3::pyclass]
|
283 155 | /// :rtype None:
|
284 156 | #[allow(missing_docs)] // documentation missing in model
|
285 157 | #[derive(
|
286 158 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
287 159 | )]
|
288 - | pub struct DoNothingInput {}
|
160 + | pub struct CheckHealthInput {}
|
289 161 | #[allow(clippy::new_without_default)]
|
290 162 | #[allow(clippy::too_many_arguments)]
|
291 163 | #[::pyo3::pymethods]
|
292 - | impl DoNothingInput {
|
164 + | impl CheckHealthInput {
|
293 165 | #[new]
|
294 166 | pub fn new() -> Self {
|
295 167 | Self {}
|
296 168 | }
|
297 169 | fn __repr__(&self) -> String {
|
298 170 | format!("{self:?}")
|
299 171 | }
|
300 172 | fn __str__(&self) -> String {
|
301 173 | format!("{self:?}")
|
302 174 | }
|
303 175 | }
|
304 - | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<DoNothingInput> {
|
176 + | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<CheckHealthInput> {
|
305 177 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
306 - | ob.extract::<DoNothingInput>().map(Box::new)
|
178 + | ob.extract::<CheckHealthInput>().map(Box::new)
|
307 179 | }
|
308 180 | }
|
309 181 |
|
310 - | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<DoNothingInput> {
|
182 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<CheckHealthInput> {
|
311 183 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
312 184 | (*self).into_py(py)
|
313 185 | }
|
314 186 | }
|
315 - | impl crate::constrained::Constrained for crate::input::DoNothingInput {
|
316 - | type Unconstrained = crate::input::do_nothing_input_internal::Builder;
|
187 + | impl crate::constrained::Constrained for crate::input::CheckHealthInput {
|
188 + | type Unconstrained = crate::input::check_health_input_internal::Builder;
|
317 189 | }
|
318 - | impl DoNothingInput {
|
319 - | /// Creates a new builder-style object to manufacture [`DoNothingInput`](crate::input::DoNothingInput).
|
320 - | pub fn builder() -> crate::input::do_nothing_input::Builder {
|
321 - | crate::input::do_nothing_input::Builder::default()
|
190 + | impl CheckHealthInput {
|
191 + | /// Creates a new builder-style object to manufacture [`CheckHealthInput`](crate::input::CheckHealthInput).
|
192 + | pub fn builder() -> crate::input::check_health_input::Builder {
|
193 + | crate::input::check_health_input::Builder::default()
|
322 194 | }
|
323 195 | }
|
324 196 |
|
325 197 | #[::pyo3::pyclass]
|
326 198 | /// :rtype None:
|
327 199 | #[allow(missing_docs)] // documentation missing in model
|
328 200 | #[derive(
|
329 201 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
330 202 | )]
|
331 - | pub struct GetServerStatisticsInput {}
|
203 + | pub struct StreamPokemonRadioInput {}
|
332 204 | #[allow(clippy::new_without_default)]
|
333 205 | #[allow(clippy::too_many_arguments)]
|
334 206 | #[::pyo3::pymethods]
|
335 - | impl GetServerStatisticsInput {
|
207 + | impl StreamPokemonRadioInput {
|
336 208 | #[new]
|
337 209 | pub fn new() -> Self {
|
338 210 | Self {}
|
339 211 | }
|
340 212 | fn __repr__(&self) -> String {
|
341 213 | format!("{self:?}")
|
342 214 | }
|
343 215 | fn __str__(&self) -> String {
|
344 216 | format!("{self:?}")
|
345 217 | }
|
346 218 | }
|
347 - | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<GetServerStatisticsInput> {
|
219 + | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<StreamPokemonRadioInput> {
|
348 220 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
349 - | ob.extract::<GetServerStatisticsInput>().map(Box::new)
|
221 + | ob.extract::<StreamPokemonRadioInput>().map(Box::new)
|
350 222 | }
|
351 223 | }
|
352 224 |
|
353 - | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<GetServerStatisticsInput> {
|
225 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<StreamPokemonRadioInput> {
|
354 226 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
355 227 | (*self).into_py(py)
|
356 228 | }
|
357 229 | }
|
358 - | impl crate::constrained::Constrained for crate::input::GetServerStatisticsInput {
|
359 - | type Unconstrained = crate::input::get_server_statistics_input_internal::Builder;
|
230 + | impl crate::constrained::Constrained for crate::input::StreamPokemonRadioInput {
|
231 + | type Unconstrained = crate::input::stream_pokemon_radio_input_internal::Builder;
|
360 232 | }
|
361 - | impl GetServerStatisticsInput {
|
362 - | /// Creates a new builder-style object to manufacture [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
|
363 - | pub fn builder() -> crate::input::get_server_statistics_input::Builder {
|
364 - | crate::input::get_server_statistics_input::Builder::default()
|
233 + | impl StreamPokemonRadioInput {
|
234 + | /// Creates a new builder-style object to manufacture [`StreamPokemonRadioInput`](crate::input::StreamPokemonRadioInput).
|
235 + | pub fn builder() -> crate::input::stream_pokemon_radio_input::Builder {
|
236 + | crate::input::stream_pokemon_radio_input::Builder::default()
|
365 237 | }
|
366 238 | }
|
367 - | /// See [`GetStorageInput`](crate::input::GetStorageInput).
|
368 - | pub(crate) mod get_storage_input_internal {
|
369 239 |
|
370 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
371 - | /// Holds one variant for each of the ways the builder can fail.
|
372 - | #[non_exhaustive]
|
373 - | #[allow(clippy::enum_variant_names)]
|
374 - | pub(crate) enum ConstraintViolation {
|
375 - | /// `user` was not provided but it is required when building `GetStorageInput`.
|
376 - | MissingUser,
|
377 - | /// `passcode` was not provided but it is required when building `GetStorageInput`.
|
378 - | MissingPasscode,
|
379 - | }
|
380 - | impl ::std::fmt::Display for ConstraintViolation {
|
381 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
382 - | match self {
|
383 - | ConstraintViolation::MissingUser => write!(f, "`user` was not provided but it is required when building `GetStorageInput`"),
|
384 - | ConstraintViolation::MissingPasscode => write!(f, "`passcode` was not provided but it is required when building `GetStorageInput`"),
|
385 - | }
|
386 - | }
|
240 + | #[::pyo3::pyclass]
|
241 + | /// :param name str:
|
242 + | /// :rtype None:
|
243 + | #[allow(missing_docs)] // documentation missing in model
|
244 + | #[derive(
|
245 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
246 + | )]
|
247 + | pub struct GetPokemonSpeciesInput {
|
248 + | #[pyo3(get, set)]
|
249 + | /// :type str:
|
250 + | #[allow(missing_docs)] // documentation missing in model
|
251 + | pub name: ::std::string::String,
|
252 + | }
|
253 + | impl GetPokemonSpeciesInput {
|
254 + | #[allow(missing_docs)] // documentation missing in model
|
255 + | pub fn name(&self) -> &str {
|
256 + | use std::ops::Deref;
|
257 + | self.name.deref()
|
387 258 | }
|
388 - | impl ::std::error::Error for ConstraintViolation {}
|
389 - | impl ConstraintViolation {
|
390 - | pub(crate) fn as_validation_exception_field(
|
391 - | self,
|
392 - | path: ::std::string::String,
|
393 - | ) -> crate::model::ValidationExceptionField {
|
394 - | match self {
|
395 - | ConstraintViolation::MissingUser => crate::model::ValidationExceptionField {
|
396 - | message: format!("Value at '{}/user' failed to satisfy constraint: Member must not be null", path),
|
397 - | path: path + "/user",
|
398 - | },
|
399 - | ConstraintViolation::MissingPasscode => crate::model::ValidationExceptionField {
|
400 - | message: format!("Value at '{}/passcode' failed to satisfy constraint: Member must not be null", path),
|
401 - | path: path + "/passcode",
|
402 - | },
|
403 - | }
|
404 - | }
|
259 + | }
|
260 + | #[allow(clippy::new_without_default)]
|
261 + | #[allow(clippy::too_many_arguments)]
|
262 + | #[::pyo3::pymethods]
|
263 + | impl GetPokemonSpeciesInput {
|
264 + | #[new]
|
265 + | pub fn new(name: ::std::string::String) -> Self {
|
266 + | Self { name }
|
405 267 | }
|
406 - | impl ::std::convert::From<ConstraintViolation>
|
407 - | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
408 - | {
|
409 - | fn from(constraint_violation: ConstraintViolation) -> Self {
|
410 - | let first_validation_exception_field =
|
411 - | constraint_violation.as_validation_exception_field("".to_owned());
|
412 - | let validation_exception = crate::error::ValidationException {
|
413 - | message: format!(
|
414 - | "1 validation error detected. {}",
|
415 - | &first_validation_exception_field.message
|
416 - | ),
|
417 - | field_list: Some(vec![first_validation_exception_field]),
|
418 - | };
|
419 - | Self::ConstraintViolation(
|
420 - | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
421 - | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
422 - | )
|
423 - | }
|
268 + | fn __repr__(&self) -> String {
|
269 + | format!("{self:?}")
|
424 270 | }
|
425 - | impl ::std::convert::From<Builder>
|
426 - | for crate::constrained::MaybeConstrained<crate::input::GetStorageInput>
|
427 - | {
|
428 - | fn from(builder: Builder) -> Self {
|
429 - | Self::Unconstrained(builder)
|
430 - | }
|
271 + | fn __str__(&self) -> String {
|
272 + | format!("{self:?}")
|
431 273 | }
|
432 - | impl ::std::convert::TryFrom<Builder> for crate::input::GetStorageInput {
|
433 - | type Error = ConstraintViolation;
|
274 + | }
|
275 + | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<GetPokemonSpeciesInput> {
|
276 + | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
277 + | ob.extract::<GetPokemonSpeciesInput>().map(Box::new)
|
278 + | }
|
279 + | }
|
434 280 |
|
435 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
281 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<GetPokemonSpeciesInput> {
|
282 + | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
283 + | (*self).into_py(py)
|
284 + | }
|
285 + | }
|
286 + | impl crate::constrained::Constrained for crate::input::GetPokemonSpeciesInput {
|
287 + | type Unconstrained = crate::input::get_pokemon_species_input_internal::Builder;
|
288 + | }
|
289 + | impl GetPokemonSpeciesInput {
|
290 + | /// Creates a new builder-style object to manufacture [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput).
|
291 + | pub fn builder() -> crate::input::get_pokemon_species_input::Builder {
|
292 + | crate::input::get_pokemon_species_input::Builder::default()
|
293 + | }
|
294 + | }
|
295 + |
|
296 + | #[::pyo3::pyclass]
|
297 + | /// :param user str:
|
298 + | /// :param passcode str:
|
299 + | /// :rtype None:
|
300 + | /// A request to access Pokémon storage.
|
301 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::hash::Hash)]
|
302 + | pub struct GetStorageInput {
|
303 + | #[pyo3(get, set)]
|
304 + | /// :type str:
|
305 + | #[allow(missing_docs)] // documentation missing in model
|
306 + | pub user: ::std::string::String,
|
307 + | #[pyo3(get, set)]
|
308 + | /// :type str:
|
309 + | #[allow(missing_docs)] // documentation missing in model
|
310 + | pub passcode: ::std::string::String,
|
311 + | }
|
312 + | impl GetStorageInput {
|
313 + | #[allow(missing_docs)] // documentation missing in model
|
314 + | pub fn user(&self) -> &str {
|
315 + | use std::ops::Deref;
|
316 + | self.user.deref()
|
317 + | }
|
318 + | #[allow(missing_docs)] // documentation missing in model
|
319 + | pub fn passcode(&self) -> &str {
|
320 + | use std::ops::Deref;
|
321 + | self.passcode.deref()
|
322 + | }
|
323 + | }
|
324 + | impl ::std::fmt::Debug for GetStorageInput {
|
325 + | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
326 + | let mut formatter = f.debug_struct("GetStorageInput");
|
327 + | formatter.field("user", &"*** Sensitive Data Redacted ***");
|
328 + | formatter.field("passcode", &"*** Sensitive Data Redacted ***");
|
329 + | formatter.finish()
|
330 + | }
|
331 + | }
|
332 + | #[allow(clippy::new_without_default)]
|
333 + | #[allow(clippy::too_many_arguments)]
|
334 + | #[::pyo3::pymethods]
|
335 + | impl GetStorageInput {
|
336 + | #[new]
|
337 + | pub fn new(user: ::std::string::String, passcode: ::std::string::String) -> Self {
|
338 + | Self { user, passcode }
|
339 + | }
|
340 + | fn __repr__(&self) -> String {
|
341 + | format!("{self:?}")
|
342 + | }
|
343 + | fn __str__(&self) -> String {
|
344 + | format!("{self:?}")
|
345 + | }
|
346 + | }
|
347 + | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<GetStorageInput> {
|
348 + | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
349 + | ob.extract::<GetStorageInput>().map(Box::new)
|
350 + | }
|
351 + | }
|
352 + |
|
353 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<GetStorageInput> {
|
354 + | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
355 + | (*self).into_py(py)
|
356 + | }
|
357 + | }
|
358 + | impl crate::constrained::Constrained for crate::input::GetStorageInput {
|
359 + | type Unconstrained = crate::input::get_storage_input_internal::Builder;
|
360 + | }
|
361 + | impl GetStorageInput {
|
362 + | /// Creates a new builder-style object to manufacture [`GetStorageInput`](crate::input::GetStorageInput).
|
363 + | pub fn builder() -> crate::input::get_storage_input::Builder {
|
364 + | crate::input::get_storage_input::Builder::default()
|
365 + | }
|
366 + | }
|
367 + | /// See [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
|
368 + | pub(crate) mod get_server_statistics_input_internal {
|
369 + |
|
370 + | impl ::std::convert::From<Builder> for crate::input::GetServerStatisticsInput {
|
371 + | fn from(builder: Builder) -> Self {
|
436 372 | builder.build()
|
437 373 | }
|
438 374 | }
|
439 - | /// A builder for [`GetStorageInput`](crate::input::GetStorageInput).
|
440 - | #[derive(::std::clone::Clone, ::std::default::Default)]
|
441 - | pub(crate) struct Builder {
|
442 - | pub(crate) user: ::std::option::Option<::std::string::String>,
|
443 - | pub(crate) passcode: ::std::option::Option<::std::string::String>,
|
444 - | }
|
375 + | /// A builder for [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
|
376 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
377 + | pub(crate) struct Builder {}
|
445 378 | impl Builder {
|
446 - | #[allow(missing_docs)] // documentation missing in model
|
447 - | pub(crate) fn set_user(
|
448 - | mut self,
|
449 - | input: impl ::std::convert::Into<::std::string::String>,
|
450 - | ) -> Self {
|
451 - | self.user = Some(input.into());
|
452 - | self
|
453 - | }
|
454 - | #[allow(missing_docs)] // documentation missing in model
|
455 - | pub(crate) fn set_passcode(
|
456 - | mut self,
|
457 - | input: impl ::std::convert::Into<::std::string::String>,
|
458 - | ) -> Self {
|
459 - | self.passcode = Some(input.into());
|
460 - | self
|
461 - | }
|
462 - | /// Consumes the builder and constructs a [`GetStorageInput`](crate::input::GetStorageInput).
|
463 - | ///
|
464 - | /// The builder fails to construct a [`GetStorageInput`](crate::input::GetStorageInput) if a [`ConstraintViolation`] occurs.
|
465 - | ///
|
466 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
467 - | pub fn build(self) -> Result<crate::input::GetStorageInput, ConstraintViolation> {
|
379 + | /// Consumes the builder and constructs a [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
|
380 + | pub fn build(self) -> crate::input::GetServerStatisticsInput {
|
468 381 | self.build_enforcing_all_constraints()
|
469 382 | }
|
470 - | fn build_enforcing_all_constraints(
|
471 - | self,
|
472 - | ) -> Result<crate::input::GetStorageInput, ConstraintViolation> {
|
473 - | Ok(crate::input::GetStorageInput {
|
474 - | user: self.user.ok_or(ConstraintViolation::MissingUser)?,
|
475 - | passcode: self.passcode.ok_or(ConstraintViolation::MissingPasscode)?,
|
476 - | })
|
477 - | }
|
478 - | }
|
479 - | impl ::std::fmt::Debug for Builder {
|
480 - | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
481 - | let mut formatter = f.debug_struct("Builder");
|
482 - | formatter.field("user", &self.user);
|
483 - | formatter.field("passcode", &self.passcode);
|
484 - | formatter.finish()
|
383 + | fn build_enforcing_all_constraints(self) -> crate::input::GetServerStatisticsInput {
|
384 + | crate::input::GetServerStatisticsInput {}
|
485 385 | }
|
486 386 | }
|
487 387 | }
|
488 - | /// See [`GetStorageInput`](crate::input::GetStorageInput).
|
489 - | pub mod get_storage_input {
|
388 + | /// See [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
|
389 + | pub mod get_server_statistics_input {
|
490 390 |
|
491 - | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
492 - | /// Holds one variant for each of the ways the builder can fail.
|
493 - | #[allow(clippy::enum_variant_names)]
|
494 - | pub enum ConstraintViolation {
|
495 - | /// `user` was not provided but it is required when building `GetStorageInput`.
|
496 - | MissingUser,
|
497 - | /// `passcode` was not provided but it is required when building `GetStorageInput`.
|
498 - | MissingPasscode,
|
391 + | impl ::std::convert::From<Builder> for crate::input::GetServerStatisticsInput {
|
392 + | fn from(builder: Builder) -> Self {
|
393 + | builder.build()
|
394 + | }
|
499 395 | }
|
500 - | impl ::std::fmt::Display for ConstraintViolation {
|
501 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
502 - | match self {
|
503 - | ConstraintViolation::MissingUser => write!(f, "`user` was not provided but it is required when building `GetStorageInput`"),
|
504 - | ConstraintViolation::MissingPasscode => write!(f, "`passcode` was not provided but it is required when building `GetStorageInput`"),
|
505 - | }
|
396 + | /// A builder for [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
|
397 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
398 + | pub struct Builder {}
|
399 + | impl Builder {
|
400 + | /// Consumes the builder and constructs a [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
|
401 + | pub fn build(self) -> crate::input::GetServerStatisticsInput {
|
402 + | self.build_enforcing_required_and_enum_traits()
|
403 + | }
|
404 + | fn build_enforcing_required_and_enum_traits(
|
405 + | self,
|
406 + | ) -> crate::input::GetServerStatisticsInput {
|
407 + | crate::input::GetServerStatisticsInput {}
|
506 408 | }
|
507 409 | }
|
508 - | impl ::std::error::Error for ConstraintViolation {}
|
509 - | impl ::std::convert::TryFrom<Builder> for crate::input::GetStorageInput {
|
510 - | type Error = ConstraintViolation;
|
410 + | }
|
411 + | /// See [`DoNothingInput`](crate::input::DoNothingInput).
|
412 + | pub(crate) mod do_nothing_input_internal {
|
511 413 |
|
512 - | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
414 + | impl ::std::convert::From<Builder> for crate::input::DoNothingInput {
|
415 + | fn from(builder: Builder) -> Self {
|
513 416 | builder.build()
|
514 417 | }
|
515 418 | }
|
516 - | /// A builder for [`GetStorageInput`](crate::input::GetStorageInput).
|
517 - | #[derive(::std::clone::Clone, ::std::default::Default)]
|
518 - | pub struct Builder {
|
519 - | pub(crate) user: ::std::option::Option<::std::string::String>,
|
520 - | pub(crate) passcode: ::std::option::Option<::std::string::String>,
|
521 - | }
|
419 + | /// A builder for [`DoNothingInput`](crate::input::DoNothingInput).
|
420 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
421 + | pub(crate) struct Builder {}
|
522 422 | impl Builder {
|
523 - | #[allow(missing_docs)] // documentation missing in model
|
524 - | pub fn user(mut self, input: ::std::string::String) -> Self {
|
525 - | self.user = Some(input);
|
526 - | self
|
423 + | /// Consumes the builder and constructs a [`DoNothingInput`](crate::input::DoNothingInput).
|
424 + | pub fn build(self) -> crate::input::DoNothingInput {
|
425 + | self.build_enforcing_all_constraints()
|
527 426 | }
|
528 - | #[allow(missing_docs)] // documentation missing in model
|
529 - | pub fn passcode(mut self, input: ::std::string::String) -> Self {
|
530 - | self.passcode = Some(input);
|
531 - | self
|
427 + | fn build_enforcing_all_constraints(self) -> crate::input::DoNothingInput {
|
428 + | crate::input::DoNothingInput {}
|
532 429 | }
|
533 - | /// Consumes the builder and constructs a [`GetStorageInput`](crate::input::GetStorageInput).
|
534 - | ///
|
535 - | /// The builder fails to construct a [`GetStorageInput`](crate::input::GetStorageInput) if you do not provide a value for all non-`Option`al members.
|
536 - | ///
|
537 - | pub fn build(self) -> Result<crate::input::GetStorageInput, ConstraintViolation> {
|
430 + | }
|
431 + | }
|
432 + | /// See [`DoNothingInput`](crate::input::DoNothingInput).
|
433 + | pub mod do_nothing_input {
|
434 + |
|
435 + | impl ::std::convert::From<Builder> for crate::input::DoNothingInput {
|
436 + | fn from(builder: Builder) -> Self {
|
437 + | builder.build()
|
438 + | }
|
439 + | }
|
440 + | /// A builder for [`DoNothingInput`](crate::input::DoNothingInput).
|
441 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
442 + | pub struct Builder {}
|
443 + | impl Builder {
|
444 + | /// Consumes the builder and constructs a [`DoNothingInput`](crate::input::DoNothingInput).
|
445 + | pub fn build(self) -> crate::input::DoNothingInput {
|
538 446 | self.build_enforcing_required_and_enum_traits()
|
539 447 | }
|
540 - | fn build_enforcing_required_and_enum_traits(
|
541 - | self,
|
542 - | ) -> Result<crate::input::GetStorageInput, ConstraintViolation> {
|
543 - | Ok(crate::input::GetStorageInput {
|
544 - | user: self.user.ok_or(ConstraintViolation::MissingUser)?,
|
545 - | passcode: self.passcode.ok_or(ConstraintViolation::MissingPasscode)?,
|
546 - | })
|
448 + | fn build_enforcing_required_and_enum_traits(self) -> crate::input::DoNothingInput {
|
449 + | crate::input::DoNothingInput {}
|
547 450 | }
|
548 451 | }
|
549 452 | }
|
550 - | /// See [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput).
|
551 - | pub(crate) mod get_pokemon_species_input_internal {
|
453 + | /// See [`CapturePokemonInput`](crate::input::CapturePokemonInput).
|
454 + | pub(crate) mod capture_pokemon_input_internal {
|
552 455 |
|
553 456 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
554 457 | /// Holds one variant for each of the ways the builder can fail.
|
555 458 | #[non_exhaustive]
|
556 459 | #[allow(clippy::enum_variant_names)]
|
557 - | pub(crate) enum ConstraintViolation {
|
558 - | /// `name` was not provided but it is required when building `GetPokemonSpeciesInput`.
|
559 - | MissingName,
|
460 + | pub(crate) enum ConstraintViolation {
|
461 + | /// `events` was not provided but it is required when building `CapturePokemonInput`.
|
462 + | MissingEvents,
|
463 + | /// `region` was not provided but it is required when building `CapturePokemonInput`.
|
464 + | MissingRegion,
|
560 465 | }
|
561 466 | impl ::std::fmt::Display for ConstraintViolation {
|
562 467 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
563 468 | match self {
|
564 - | ConstraintViolation::MissingName => write!(f, "`name` was not provided but it is required when building `GetPokemonSpeciesInput`"),
|
469 + | ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `CapturePokemonInput`"),
|
470 + | ConstraintViolation::MissingRegion => write!(f, "`region` was not provided but it is required when building `CapturePokemonInput`"),
|
565 471 | }
|
566 472 | }
|
567 473 | }
|
568 474 | impl ::std::error::Error for ConstraintViolation {}
|
569 475 | impl ConstraintViolation {
|
570 476 | pub(crate) fn as_validation_exception_field(
|
571 477 | self,
|
572 478 | path: ::std::string::String,
|
573 479 | ) -> crate::model::ValidationExceptionField {
|
574 480 | match self {
|
575 - | ConstraintViolation::MissingName => crate::model::ValidationExceptionField {
|
576 - | message: format!(
|
577 - | "Value at '{}/name' failed to satisfy constraint: Member must not be null",
|
578 - | path
|
579 - | ),
|
580 - | path: path + "/name",
|
581 - | },
|
582 - | }
|
481 + | ConstraintViolation::MissingEvents => crate::model::ValidationExceptionField {
|
482 + | message: format!("Value at '{}/events' failed to satisfy constraint: Member must not be null", path),
|
483 + | path: path + "/events",
|
484 + | },
|
485 + | ConstraintViolation::MissingRegion => crate::model::ValidationExceptionField {
|
486 + | message: format!("Value at '{}/region' failed to satisfy constraint: Member must not be null", path),
|
487 + | path: path + "/region",
|
488 + | },
|
489 + | }
|
583 490 | }
|
584 491 | }
|
585 492 | impl ::std::convert::From<ConstraintViolation>
|
586 493 | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
587 494 | {
|
588 495 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
589 496 | let first_validation_exception_field =
|
590 497 | constraint_violation.as_validation_exception_field("".to_owned());
|
591 498 | let validation_exception = crate::error::ValidationException {
|
592 499 | message: format!(
|
593 500 | "1 validation error detected. {}",
|
594 501 | &first_validation_exception_field.message
|
595 502 | ),
|
596 503 | field_list: Some(vec![first_validation_exception_field]),
|
597 504 | };
|
598 505 | Self::ConstraintViolation(
|
599 506 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
600 507 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
601 508 | )
|
602 509 | }
|
603 510 | }
|
604 511 | impl ::std::convert::From<Builder>
|
605 - | for crate::constrained::MaybeConstrained<crate::input::GetPokemonSpeciesInput>
|
512 + | for crate::constrained::MaybeConstrained<crate::input::CapturePokemonInput>
|
606 513 | {
|
607 514 | fn from(builder: Builder) -> Self {
|
608 515 | Self::Unconstrained(builder)
|
609 516 | }
|
610 517 | }
|
611 - | impl ::std::convert::TryFrom<Builder> for crate::input::GetPokemonSpeciesInput {
|
518 + | impl ::std::convert::TryFrom<Builder> for crate::input::CapturePokemonInput {
|
612 519 | type Error = ConstraintViolation;
|
613 520 |
|
614 521 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
615 522 | builder.build()
|
616 523 | }
|
617 524 | }
|
618 - | /// A builder for [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput).
|
525 + | /// A builder for [`CapturePokemonInput`](crate::input::CapturePokemonInput).
|
619 526 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
620 527 | pub(crate) struct Builder {
|
621 - | pub(crate) name: ::std::option::Option<::std::string::String>,
|
528 + | pub(crate) events:
|
529 + | ::std::option::Option<crate::python_event_stream::CapturePokemonInputEventsReceiver>,
|
530 + | pub(crate) region: ::std::option::Option<::std::string::String>,
|
622 531 | }
|
623 532 | impl Builder {
|
624 533 | #[allow(missing_docs)] // documentation missing in model
|
625 - | pub(crate) fn set_name(
|
534 + | pub(crate) fn set_events(
|
535 + | mut self,
|
536 + | input: impl ::std::convert::Into<
|
537 + | crate::python_event_stream::CapturePokemonInputEventsReceiver,
|
538 + | >,
|
539 + | ) -> Self {
|
540 + | self.events = Some(input.into());
|
541 + | self
|
542 + | }
|
543 + | #[allow(missing_docs)] // documentation missing in model
|
544 + | pub(crate) fn set_region(
|
626 545 | mut self,
|
627 546 | input: impl ::std::convert::Into<::std::string::String>,
|
628 547 | ) -> Self {
|
629 - | self.name = Some(input.into());
|
548 + | self.region = Some(input.into());
|
630 549 | self
|
631 550 | }
|
632 - | /// Consumes the builder and constructs a [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput).
|
551 + | /// Consumes the builder and constructs a [`CapturePokemonInput`](crate::input::CapturePokemonInput).
|
633 552 | ///
|
634 - | /// The builder fails to construct a [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput) if a [`ConstraintViolation`] occurs.
|
553 + | /// The builder fails to construct a [`CapturePokemonInput`](crate::input::CapturePokemonInput) if a [`ConstraintViolation`] occurs.
|
635 554 | ///
|
636 - | pub fn build(self) -> Result<crate::input::GetPokemonSpeciesInput, ConstraintViolation> {
|
555 + | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
556 + | pub fn build(self) -> Result<crate::input::CapturePokemonInput, ConstraintViolation> {
|
637 557 | self.build_enforcing_all_constraints()
|
638 558 | }
|
639 559 | fn build_enforcing_all_constraints(
|
640 560 | self,
|
641 - | ) -> Result<crate::input::GetPokemonSpeciesInput, ConstraintViolation> {
|
642 - | Ok(crate::input::GetPokemonSpeciesInput {
|
643 - | name: self.name.ok_or(ConstraintViolation::MissingName)?,
|
561 + | ) -> Result<crate::input::CapturePokemonInput, ConstraintViolation> {
|
562 + | Ok(crate::input::CapturePokemonInput {
|
563 + | events: self.events.ok_or(ConstraintViolation::MissingEvents)?,
|
564 + | region: self.region.ok_or(ConstraintViolation::MissingRegion)?,
|
644 565 | })
|
645 566 | }
|
646 567 | }
|
647 568 | }
|
648 - | /// See [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput).
|
649 - | pub mod get_pokemon_species_input {
|
569 + | /// See [`CapturePokemonInput`](crate::input::CapturePokemonInput).
|
570 + | pub mod capture_pokemon_input {
|
650 571 |
|
651 572 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
652 573 | /// Holds one variant for each of the ways the builder can fail.
|
653 574 | #[allow(clippy::enum_variant_names)]
|
654 575 | pub enum ConstraintViolation {
|
655 - | /// `name` was not provided but it is required when building `GetPokemonSpeciesInput`.
|
656 - | MissingName,
|
576 + | /// `events` was not provided but it is required when building `CapturePokemonInput`.
|
577 + | MissingEvents,
|
578 + | /// `region` was not provided but it is required when building `CapturePokemonInput`.
|
579 + | MissingRegion,
|
657 580 | }
|
658 581 | impl ::std::fmt::Display for ConstraintViolation {
|
659 582 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
660 583 | match self {
|
661 - | ConstraintViolation::MissingName => write!(f, "`name` was not provided but it is required when building `GetPokemonSpeciesInput`"),
|
584 + | ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `CapturePokemonInput`"),
|
585 + | ConstraintViolation::MissingRegion => write!(f, "`region` was not provided but it is required when building `CapturePokemonInput`"),
|
662 586 | }
|
663 587 | }
|
664 588 | }
|
665 589 | impl ::std::error::Error for ConstraintViolation {}
|
666 - | impl ::std::convert::TryFrom<Builder> for crate::input::GetPokemonSpeciesInput {
|
590 + | impl ::std::convert::TryFrom<Builder> for crate::input::CapturePokemonInput {
|
667 591 | type Error = ConstraintViolation;
|
668 592 |
|
669 593 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
670 594 | builder.build()
|
671 595 | }
|
672 596 | }
|
673 - | /// A builder for [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput).
|
597 + | /// A builder for [`CapturePokemonInput`](crate::input::CapturePokemonInput).
|
674 598 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
675 599 | pub struct Builder {
|
676 - | pub(crate) name: ::std::option::Option<::std::string::String>,
|
600 + | pub(crate) events:
|
601 + | ::std::option::Option<crate::python_event_stream::CapturePokemonInputEventsReceiver>,
|
602 + | pub(crate) region: ::std::option::Option<::std::string::String>,
|
677 603 | }
|
678 604 | impl Builder {
|
679 605 | #[allow(missing_docs)] // documentation missing in model
|
680 - | pub fn name(mut self, input: ::std::string::String) -> Self {
|
681 - | self.name = Some(input);
|
606 + | pub fn events(
|
607 + | mut self,
|
608 + | input: crate::python_event_stream::CapturePokemonInputEventsReceiver,
|
609 + | ) -> Self {
|
610 + | self.events = Some(input);
|
682 611 | self
|
683 612 | }
|
684 - | /// Consumes the builder and constructs a [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput).
|
613 + | #[allow(missing_docs)] // documentation missing in model
|
614 + | pub fn region(mut self, input: ::std::string::String) -> Self {
|
615 + | self.region = Some(input);
|
616 + | self
|
617 + | }
|
618 + | /// Consumes the builder and constructs a [`CapturePokemonInput`](crate::input::CapturePokemonInput).
|
685 619 | ///
|
686 - | /// The builder fails to construct a [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput) if you do not provide a value for all non-`Option`al members.
|
620 + | /// The builder fails to construct a [`CapturePokemonInput`](crate::input::CapturePokemonInput) if you do not provide a value for all non-`Option`al members.
|
687 621 | ///
|
688 - | pub fn build(self) -> Result<crate::input::GetPokemonSpeciesInput, ConstraintViolation> {
|
622 + | pub fn build(self) -> Result<crate::input::CapturePokemonInput, ConstraintViolation> {
|
689 623 | self.build_enforcing_required_and_enum_traits()
|
690 624 | }
|
691 625 | fn build_enforcing_required_and_enum_traits(
|
692 626 | self,
|
693 - | ) -> Result<crate::input::GetPokemonSpeciesInput, ConstraintViolation> {
|
694 - | Ok(crate::input::GetPokemonSpeciesInput {
|
695 - | name: self.name.ok_or(ConstraintViolation::MissingName)?,
|
627 + | ) -> Result<crate::input::CapturePokemonInput, ConstraintViolation> {
|
628 + | Ok(crate::input::CapturePokemonInput {
|
629 + | events: self.events.ok_or(ConstraintViolation::MissingEvents)?,
|
630 + | region: self.region.ok_or(ConstraintViolation::MissingRegion)?,
|
696 631 | })
|
697 632 | }
|
698 633 | }
|
699 634 | }
|
635 + | /// See [`CheckHealthInput`](crate::input::CheckHealthInput).
|
636 + | pub(crate) mod check_health_input_internal {
|
637 + |
|
638 + | impl ::std::convert::From<Builder> for crate::input::CheckHealthInput {
|
639 + | fn from(builder: Builder) -> Self {
|
640 + | builder.build()
|
641 + | }
|
642 + | }
|
643 + | /// A builder for [`CheckHealthInput`](crate::input::CheckHealthInput).
|
644 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
645 + | pub(crate) struct Builder {}
|
646 + | impl Builder {
|
647 + | /// Consumes the builder and constructs a [`CheckHealthInput`](crate::input::CheckHealthInput).
|
648 + | pub fn build(self) -> crate::input::CheckHealthInput {
|
649 + | self.build_enforcing_all_constraints()
|
650 + | }
|
651 + | fn build_enforcing_all_constraints(self) -> crate::input::CheckHealthInput {
|
652 + | crate::input::CheckHealthInput {}
|
653 + | }
|
654 + | }
|
655 + | }
|
656 + | /// See [`CheckHealthInput`](crate::input::CheckHealthInput).
|
657 + | pub mod check_health_input {
|
658 + |
|
659 + | impl ::std::convert::From<Builder> for crate::input::CheckHealthInput {
|
660 + | fn from(builder: Builder) -> Self {
|
661 + | builder.build()
|
662 + | }
|
663 + | }
|
664 + | /// A builder for [`CheckHealthInput`](crate::input::CheckHealthInput).
|
665 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
666 + | pub struct Builder {}
|
667 + | impl Builder {
|
668 + | /// Consumes the builder and constructs a [`CheckHealthInput`](crate::input::CheckHealthInput).
|
669 + | pub fn build(self) -> crate::input::CheckHealthInput {
|
670 + | self.build_enforcing_required_and_enum_traits()
|
671 + | }
|
672 + | fn build_enforcing_required_and_enum_traits(self) -> crate::input::CheckHealthInput {
|
673 + | crate::input::CheckHealthInput {}
|
674 + | }
|
675 + | }
|
676 + | }
|
700 677 | /// See [`StreamPokemonRadioInput`](crate::input::StreamPokemonRadioInput).
|
701 678 | pub(crate) mod stream_pokemon_radio_input_internal {
|
702 679 |
|
703 680 | impl ::std::convert::From<Builder> for crate::input::StreamPokemonRadioInput {
|
704 681 | fn from(builder: Builder) -> Self {
|
705 682 | builder.build()
|
706 683 | }
|
707 684 | }
|
708 685 | /// A builder for [`StreamPokemonRadioInput`](crate::input::StreamPokemonRadioInput).
|
709 686 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
710 687 | pub(crate) struct Builder {}
|
711 688 | impl Builder {
|
712 689 | /// Consumes the builder and constructs a [`StreamPokemonRadioInput`](crate::input::StreamPokemonRadioInput).
|
713 690 | pub fn build(self) -> crate::input::StreamPokemonRadioInput {
|
714 691 | self.build_enforcing_all_constraints()
|
715 692 | }
|
716 693 | fn build_enforcing_all_constraints(self) -> crate::input::StreamPokemonRadioInput {
|
717 694 | crate::input::StreamPokemonRadioInput {}
|
718 695 | }
|
719 696 | }
|
720 697 | }
|
721 698 | /// See [`StreamPokemonRadioInput`](crate::input::StreamPokemonRadioInput).
|
722 699 | pub mod stream_pokemon_radio_input {
|
723 700 |
|
724 701 | impl ::std::convert::From<Builder> for crate::input::StreamPokemonRadioInput {
|
725 702 | fn from(builder: Builder) -> Self {
|
726 703 | builder.build()
|
727 704 | }
|
728 705 | }
|
729 706 | /// A builder for [`StreamPokemonRadioInput`](crate::input::StreamPokemonRadioInput).
|
730 707 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
731 708 | pub struct Builder {}
|
732 709 | impl Builder {
|
733 710 | /// Consumes the builder and constructs a [`StreamPokemonRadioInput`](crate::input::StreamPokemonRadioInput).
|
734 711 | pub fn build(self) -> crate::input::StreamPokemonRadioInput {
|
735 712 | self.build_enforcing_required_and_enum_traits()
|
736 713 | }
|
737 714 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::StreamPokemonRadioInput {
|
738 715 | crate::input::StreamPokemonRadioInput {}
|
739 716 | }
|
740 717 | }
|
741 718 | }
|
742 - | /// See [`CheckHealthInput`](crate::input::CheckHealthInput).
|
743 - | pub(crate) mod check_health_input_internal {
|
719 + | /// See [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput).
|
720 + | pub(crate) mod get_pokemon_species_input_internal {
|
744 721 |
|
745 - | impl ::std::convert::From<Builder> for crate::input::CheckHealthInput {
|
722 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
723 + | /// Holds one variant for each of the ways the builder can fail.
|
724 + | #[non_exhaustive]
|
725 + | #[allow(clippy::enum_variant_names)]
|
726 + | pub(crate) enum ConstraintViolation {
|
727 + | /// `name` was not provided but it is required when building `GetPokemonSpeciesInput`.
|
728 + | MissingName,
|
729 + | }
|
730 + | impl ::std::fmt::Display for ConstraintViolation {
|
731 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
732 + | match self {
|
733 + | ConstraintViolation::MissingName => write!(f, "`name` was not provided but it is required when building `GetPokemonSpeciesInput`"),
|
734 + | }
|
735 + | }
|
736 + | }
|
737 + | impl ::std::error::Error for ConstraintViolation {}
|
738 + | impl ConstraintViolation {
|
739 + | pub(crate) fn as_validation_exception_field(
|
740 + | self,
|
741 + | path: ::std::string::String,
|
742 + | ) -> crate::model::ValidationExceptionField {
|
743 + | match self {
|
744 + | ConstraintViolation::MissingName => crate::model::ValidationExceptionField {
|
745 + | message: format!(
|
746 + | "Value at '{}/name' failed to satisfy constraint: Member must not be null",
|
747 + | path
|
748 + | ),
|
749 + | path: path + "/name",
|
750 + | },
|
751 + | }
|
752 + | }
|
753 + | }
|
754 + | impl ::std::convert::From<ConstraintViolation>
|
755 + | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
756 + | {
|
757 + | fn from(constraint_violation: ConstraintViolation) -> Self {
|
758 + | let first_validation_exception_field =
|
759 + | constraint_violation.as_validation_exception_field("".to_owned());
|
760 + | let validation_exception = crate::error::ValidationException {
|
761 + | message: format!(
|
762 + | "1 validation error detected. {}",
|
763 + | &first_validation_exception_field.message
|
764 + | ),
|
765 + | field_list: Some(vec![first_validation_exception_field]),
|
766 + | };
|
767 + | Self::ConstraintViolation(
|
768 + | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
769 + | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
770 + | )
|
771 + | }
|
772 + | }
|
773 + | impl ::std::convert::From<Builder>
|
774 + | for crate::constrained::MaybeConstrained<crate::input::GetPokemonSpeciesInput>
|
775 + | {
|
746 776 | fn from(builder: Builder) -> Self {
|
777 + | Self::Unconstrained(builder)
|
778 + | }
|
779 + | }
|
780 + | impl ::std::convert::TryFrom<Builder> for crate::input::GetPokemonSpeciesInput {
|
781 + | type Error = ConstraintViolation;
|
782 + |
|
783 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
747 784 | builder.build()
|
748 785 | }
|
749 786 | }
|
750 - | /// A builder for [`CheckHealthInput`](crate::input::CheckHealthInput).
|
787 + | /// A builder for [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput).
|
751 788 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
752 - | pub(crate) struct Builder {}
|
789 + | pub(crate) struct Builder {
|
790 + | pub(crate) name: ::std::option::Option<::std::string::String>,
|
791 + | }
|
753 792 | impl Builder {
|
754 - | /// Consumes the builder and constructs a [`CheckHealthInput`](crate::input::CheckHealthInput).
|
755 - | pub fn build(self) -> crate::input::CheckHealthInput {
|
793 + | #[allow(missing_docs)] // documentation missing in model
|
794 + | pub(crate) fn set_name(
|
795 + | mut self,
|
796 + | input: impl ::std::convert::Into<::std::string::String>,
|
797 + | ) -> Self {
|
798 + | self.name = Some(input.into());
|
799 + | self
|
800 + | }
|
801 + | /// Consumes the builder and constructs a [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput).
|
802 + | ///
|
803 + | /// The builder fails to construct a [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput) if a [`ConstraintViolation`] occurs.
|
804 + | ///
|
805 + | pub fn build(self) -> Result<crate::input::GetPokemonSpeciesInput, ConstraintViolation> {
|
756 806 | self.build_enforcing_all_constraints()
|
757 807 | }
|
758 - | fn build_enforcing_all_constraints(self) -> crate::input::CheckHealthInput {
|
759 - | crate::input::CheckHealthInput {}
|
808 + | fn build_enforcing_all_constraints(
|
809 + | self,
|
810 + | ) -> Result<crate::input::GetPokemonSpeciesInput, ConstraintViolation> {
|
811 + | Ok(crate::input::GetPokemonSpeciesInput {
|
812 + | name: self.name.ok_or(ConstraintViolation::MissingName)?,
|
813 + | })
|
814 + | }
|
815 + | }
|
816 + | }
|
817 + | /// See [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput).
|
818 + | pub mod get_pokemon_species_input {
|
819 + |
|
820 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
821 + | /// Holds one variant for each of the ways the builder can fail.
|
822 + | #[allow(clippy::enum_variant_names)]
|
823 + | pub enum ConstraintViolation {
|
824 + | /// `name` was not provided but it is required when building `GetPokemonSpeciesInput`.
|
825 + | MissingName,
|
826 + | }
|
827 + | impl ::std::fmt::Display for ConstraintViolation {
|
828 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
829 + | match self {
|
830 + | ConstraintViolation::MissingName => write!(f, "`name` was not provided but it is required when building `GetPokemonSpeciesInput`"),
|
831 + | }
|
760 832 | }
|
761 833 | }
|
762 - | }
|
763 - | /// See [`CheckHealthInput`](crate::input::CheckHealthInput).
|
764 - | pub mod check_health_input {
|
834 + | impl ::std::error::Error for ConstraintViolation {}
|
835 + | impl ::std::convert::TryFrom<Builder> for crate::input::GetPokemonSpeciesInput {
|
836 + | type Error = ConstraintViolation;
|
765 837 |
|
766 - | impl ::std::convert::From<Builder> for crate::input::CheckHealthInput {
|
767 - | fn from(builder: Builder) -> Self {
|
838 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
768 839 | builder.build()
|
769 840 | }
|
770 841 | }
|
771 - | /// A builder for [`CheckHealthInput`](crate::input::CheckHealthInput).
|
842 + | /// A builder for [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput).
|
772 843 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
773 - | pub struct Builder {}
|
844 + | pub struct Builder {
|
845 + | pub(crate) name: ::std::option::Option<::std::string::String>,
|
846 + | }
|
774 847 | impl Builder {
|
775 - | /// Consumes the builder and constructs a [`CheckHealthInput`](crate::input::CheckHealthInput).
|
776 - | pub fn build(self) -> crate::input::CheckHealthInput {
|
848 + | #[allow(missing_docs)] // documentation missing in model
|
849 + | pub fn name(mut self, input: ::std::string::String) -> Self {
|
850 + | self.name = Some(input);
|
851 + | self
|
852 + | }
|
853 + | /// Consumes the builder and constructs a [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput).
|
854 + | ///
|
855 + | /// The builder fails to construct a [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput) if you do not provide a value for all non-`Option`al members.
|
856 + | ///
|
857 + | pub fn build(self) -> Result<crate::input::GetPokemonSpeciesInput, ConstraintViolation> {
|
777 858 | self.build_enforcing_required_and_enum_traits()
|
778 859 | }
|
779 - | fn build_enforcing_required_and_enum_traits(self) -> crate::input::CheckHealthInput {
|
780 - | crate::input::CheckHealthInput {}
|
860 + | fn build_enforcing_required_and_enum_traits(
|
861 + | self,
|
862 + | ) -> Result<crate::input::GetPokemonSpeciesInput, ConstraintViolation> {
|
863 + | Ok(crate::input::GetPokemonSpeciesInput {
|
864 + | name: self.name.ok_or(ConstraintViolation::MissingName)?,
|
865 + | })
|
781 866 | }
|
782 867 | }
|
783 868 | }
|
784 - | /// See [`CapturePokemonInput`](crate::input::CapturePokemonInput).
|
785 - | pub(crate) mod capture_pokemon_input_internal {
|
869 + | /// See [`GetStorageInput`](crate::input::GetStorageInput).
|
870 + | pub(crate) mod get_storage_input_internal {
|
786 871 |
|
787 872 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
788 873 | /// Holds one variant for each of the ways the builder can fail.
|
789 874 | #[non_exhaustive]
|
790 875 | #[allow(clippy::enum_variant_names)]
|
791 876 | pub(crate) enum ConstraintViolation {
|
792 - | /// `events` was not provided but it is required when building `CapturePokemonInput`.
|
793 - | MissingEvents,
|
794 - | /// `region` was not provided but it is required when building `CapturePokemonInput`.
|
795 - | MissingRegion,
|
877 + | /// `user` was not provided but it is required when building `GetStorageInput`.
|
878 + | MissingUser,
|
879 + | /// `passcode` was not provided but it is required when building `GetStorageInput`.
|
880 + | MissingPasscode,
|
796 881 | }
|
797 882 | impl ::std::fmt::Display for ConstraintViolation {
|
798 883 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
799 884 | match self {
|
800 - | ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `CapturePokemonInput`"),
|
801 - | ConstraintViolation::MissingRegion => write!(f, "`region` was not provided but it is required when building `CapturePokemonInput`"),
|
885 + | ConstraintViolation::MissingUser => write!(f, "`user` was not provided but it is required when building `GetStorageInput`"),
|
886 + | ConstraintViolation::MissingPasscode => write!(f, "`passcode` was not provided but it is required when building `GetStorageInput`"),
|
802 887 | }
|
803 888 | }
|
804 889 | }
|
805 890 | impl ::std::error::Error for ConstraintViolation {}
|
806 891 | impl ConstraintViolation {
|
807 892 | pub(crate) fn as_validation_exception_field(
|
808 893 | self,
|
809 894 | path: ::std::string::String,
|
810 895 | ) -> crate::model::ValidationExceptionField {
|
811 896 | match self {
|
812 - | ConstraintViolation::MissingEvents => crate::model::ValidationExceptionField {
|
813 - | message: format!("Value at '{}/events' failed to satisfy constraint: Member must not be null", path),
|
814 - | path: path + "/events",
|
897 + | ConstraintViolation::MissingUser => crate::model::ValidationExceptionField {
|
898 + | message: format!("Value at '{}/user' failed to satisfy constraint: Member must not be null", path),
|
899 + | path: path + "/user",
|
815 900 | },
|
816 - | ConstraintViolation::MissingRegion => crate::model::ValidationExceptionField {
|
817 - | message: format!("Value at '{}/region' failed to satisfy constraint: Member must not be null", path),
|
818 - | path: path + "/region",
|
901 + | ConstraintViolation::MissingPasscode => crate::model::ValidationExceptionField {
|
902 + | message: format!("Value at '{}/passcode' failed to satisfy constraint: Member must not be null", path),
|
903 + | path: path + "/passcode",
|
819 904 | },
|
820 905 | }
|
821 906 | }
|
822 907 | }
|
823 908 | impl ::std::convert::From<ConstraintViolation>
|
824 909 | for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
825 910 | {
|
826 911 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
827 912 | let first_validation_exception_field =
|
828 913 | constraint_violation.as_validation_exception_field("".to_owned());
|
829 914 | let validation_exception = crate::error::ValidationException {
|
830 915 | message: format!(
|
831 916 | "1 validation error detected. {}",
|
832 917 | &first_validation_exception_field.message
|
833 918 | ),
|
834 919 | field_list: Some(vec![first_validation_exception_field]),
|
835 920 | };
|
836 921 | Self::ConstraintViolation(
|
837 922 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
838 923 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
839 924 | )
|
840 925 | }
|
841 926 | }
|
842 927 | impl ::std::convert::From<Builder>
|
843 - | for crate::constrained::MaybeConstrained<crate::input::CapturePokemonInput>
|
928 + | for crate::constrained::MaybeConstrained<crate::input::GetStorageInput>
|
844 929 | {
|
845 930 | fn from(builder: Builder) -> Self {
|
846 931 | Self::Unconstrained(builder)
|
847 932 | }
|
848 933 | }
|
849 - | impl ::std::convert::TryFrom<Builder> for crate::input::CapturePokemonInput {
|
934 + | impl ::std::convert::TryFrom<Builder> for crate::input::GetStorageInput {
|
850 935 | type Error = ConstraintViolation;
|
851 936 |
|
852 937 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
853 938 | builder.build()
|
854 939 | }
|
855 940 | }
|
856 - | /// A builder for [`CapturePokemonInput`](crate::input::CapturePokemonInput).
|
857 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
941 + | /// A builder for [`GetStorageInput`](crate::input::GetStorageInput).
|
942 + | #[derive(::std::clone::Clone, ::std::default::Default)]
|
858 943 | pub(crate) struct Builder {
|
859 - | pub(crate) events:
|
860 - | ::std::option::Option<crate::python_event_stream::CapturePokemonInputEventsReceiver>,
|
861 - | pub(crate) region: ::std::option::Option<::std::string::String>,
|
944 + | pub(crate) user: ::std::option::Option<::std::string::String>,
|
945 + | pub(crate) passcode: ::std::option::Option<::std::string::String>,
|
862 946 | }
|
863 947 | impl Builder {
|
864 948 | #[allow(missing_docs)] // documentation missing in model
|
865 - | pub(crate) fn set_events(
|
949 + | pub(crate) fn set_user(
|
866 950 | mut self,
|
867 - | input: impl ::std::convert::Into<
|
868 - | crate::python_event_stream::CapturePokemonInputEventsReceiver,
|
869 - | >,
|
951 + | input: impl ::std::convert::Into<::std::string::String>,
|
870 952 | ) -> Self {
|
871 - | self.events = Some(input.into());
|
953 + | self.user = Some(input.into());
|
872 954 | self
|
873 955 | }
|
874 956 | #[allow(missing_docs)] // documentation missing in model
|
875 - | pub(crate) fn set_region(
|
957 + | pub(crate) fn set_passcode(
|
876 958 | mut self,
|
877 959 | input: impl ::std::convert::Into<::std::string::String>,
|
878 960 | ) -> Self {
|
879 - | self.region = Some(input.into());
|
961 + | self.passcode = Some(input.into());
|
880 962 | self
|
881 963 | }
|
882 - | /// Consumes the builder and constructs a [`CapturePokemonInput`](crate::input::CapturePokemonInput).
|
964 + | /// Consumes the builder and constructs a [`GetStorageInput`](crate::input::GetStorageInput).
|
883 965 | ///
|
884 - | /// The builder fails to construct a [`CapturePokemonInput`](crate::input::CapturePokemonInput) if a [`ConstraintViolation`] occurs.
|
966 + | /// The builder fails to construct a [`GetStorageInput`](crate::input::GetStorageInput) if a [`ConstraintViolation`] occurs.
|
885 967 | ///
|
886 968 | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
887 - | pub fn build(self) -> Result<crate::input::CapturePokemonInput, ConstraintViolation> {
|
969 + | pub fn build(self) -> Result<crate::input::GetStorageInput, ConstraintViolation> {
|
888 970 | self.build_enforcing_all_constraints()
|
889 971 | }
|
890 972 | fn build_enforcing_all_constraints(
|
891 973 | self,
|
892 - | ) -> Result<crate::input::CapturePokemonInput, ConstraintViolation> {
|
893 - | Ok(crate::input::CapturePokemonInput {
|
894 - | events: self.events.ok_or(ConstraintViolation::MissingEvents)?,
|
895 - | region: self.region.ok_or(ConstraintViolation::MissingRegion)?,
|
974 + | ) -> Result<crate::input::GetStorageInput, ConstraintViolation> {
|
975 + | Ok(crate::input::GetStorageInput {
|
976 + | user: self.user.ok_or(ConstraintViolation::MissingUser)?,
|
977 + | passcode: self.passcode.ok_or(ConstraintViolation::MissingPasscode)?,
|
896 978 | })
|
897 979 | }
|
898 980 | }
|
981 + | impl ::std::fmt::Debug for Builder {
|
982 + | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
983 + | let mut formatter = f.debug_struct("Builder");
|
984 + | formatter.field("user", &self.user);
|
985 + | formatter.field("passcode", &self.passcode);
|
986 + | formatter.finish()
|
987 + | }
|
988 + | }
|
899 989 | }
|
900 - | /// See [`CapturePokemonInput`](crate::input::CapturePokemonInput).
|
901 - | pub mod capture_pokemon_input {
|
990 + | /// See [`GetStorageInput`](crate::input::GetStorageInput).
|
991 + | pub mod get_storage_input {
|
902 992 |
|
903 993 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
904 994 | /// Holds one variant for each of the ways the builder can fail.
|
905 995 | #[allow(clippy::enum_variant_names)]
|
906 996 | pub enum ConstraintViolation {
|
907 - | /// `events` was not provided but it is required when building `CapturePokemonInput`.
|
908 - | MissingEvents,
|
909 - | /// `region` was not provided but it is required when building `CapturePokemonInput`.
|
910 - | MissingRegion,
|
997 + | /// `user` was not provided but it is required when building `GetStorageInput`.
|
998 + | MissingUser,
|
999 + | /// `passcode` was not provided but it is required when building `GetStorageInput`.
|
1000 + | MissingPasscode,
|
911 1001 | }
|
912 1002 | impl ::std::fmt::Display for ConstraintViolation {
|
913 1003 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
914 1004 | match self {
|
915 - | ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `CapturePokemonInput`"),
|
916 - | ConstraintViolation::MissingRegion => write!(f, "`region` was not provided but it is required when building `CapturePokemonInput`"),
|
1005 + | ConstraintViolation::MissingUser => write!(f, "`user` was not provided but it is required when building `GetStorageInput`"),
|
1006 + | ConstraintViolation::MissingPasscode => write!(f, "`passcode` was not provided but it is required when building `GetStorageInput`"),
|
917 1007 | }
|
918 1008 | }
|
919 1009 | }
|
920 1010 | impl ::std::error::Error for ConstraintViolation {}
|
921 - | impl ::std::convert::TryFrom<Builder> for crate::input::CapturePokemonInput {
|
1011 + | impl ::std::convert::TryFrom<Builder> for crate::input::GetStorageInput {
|
922 1012 | type Error = ConstraintViolation;
|
923 1013 |
|
924 1014 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
925 1015 | builder.build()
|
926 1016 | }
|
927 1017 | }
|
928 - | /// A builder for [`CapturePokemonInput`](crate::input::CapturePokemonInput).
|
929 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1018 + | /// A builder for [`GetStorageInput`](crate::input::GetStorageInput).
|
1019 + | #[derive(::std::clone::Clone, ::std::default::Default)]
|
930 1020 | pub struct Builder {
|
931 - | pub(crate) events:
|
932 - | ::std::option::Option<crate::python_event_stream::CapturePokemonInputEventsReceiver>,
|
933 - | pub(crate) region: ::std::option::Option<::std::string::String>,
|
1021 + | pub(crate) user: ::std::option::Option<::std::string::String>,
|
1022 + | pub(crate) passcode: ::std::option::Option<::std::string::String>,
|
934 1023 | }
|
935 1024 | impl Builder {
|
936 1025 | #[allow(missing_docs)] // documentation missing in model
|
937 - | pub fn events(
|
938 - | mut self,
|
939 - | input: crate::python_event_stream::CapturePokemonInputEventsReceiver,
|
940 - | ) -> Self {
|
941 - | self.events = Some(input);
|
1026 + | pub fn user(mut self, input: ::std::string::String) -> Self {
|
1027 + | self.user = Some(input);
|
942 1028 | self
|
943 1029 | }
|
944 1030 | #[allow(missing_docs)] // documentation missing in model
|
945 - | pub fn region(mut self, input: ::std::string::String) -> Self {
|
946 - | self.region = Some(input);
|
1031 + | pub fn passcode(mut self, input: ::std::string::String) -> Self {
|
1032 + | self.passcode = Some(input);
|
947 1033 | self
|
948 1034 | }
|
949 - | /// Consumes the builder and constructs a [`CapturePokemonInput`](crate::input::CapturePokemonInput).
|
1035 + | /// Consumes the builder and constructs a [`GetStorageInput`](crate::input::GetStorageInput).
|
950 1036 | ///
|
951 - | /// The builder fails to construct a [`CapturePokemonInput`](crate::input::CapturePokemonInput) if you do not provide a value for all non-`Option`al members.
|
1037 + | /// The builder fails to construct a [`GetStorageInput`](crate::input::GetStorageInput) if you do not provide a value for all non-`Option`al members.
|
952 1038 | ///
|
953 - | pub fn build(self) -> Result<crate::input::CapturePokemonInput, ConstraintViolation> {
|
1039 + | pub fn build(self) -> Result<crate::input::GetStorageInput, ConstraintViolation> {
|
954 1040 | self.build_enforcing_required_and_enum_traits()
|
955 1041 | }
|
956 1042 | fn build_enforcing_required_and_enum_traits(
|
957 1043 | self,
|
958 - | ) -> Result<crate::input::CapturePokemonInput, ConstraintViolation> {
|
959 - | Ok(crate::input::CapturePokemonInput {
|
960 - | events: self.events.ok_or(ConstraintViolation::MissingEvents)?,
|
961 - | region: self.region.ok_or(ConstraintViolation::MissingRegion)?,
|
1044 + | ) -> Result<crate::input::GetStorageInput, ConstraintViolation> {
|
1045 + | Ok(crate::input::GetStorageInput {
|
1046 + | user: self.user.ok_or(ConstraintViolation::MissingUser)?,
|
1047 + | passcode: self.passcode.ok_or(ConstraintViolation::MissingPasscode)?,
|
962 1048 | })
|
963 1049 | }
|
964 1050 | }
|
965 1051 | }
|
966 - | /// See [`DoNothingInput`](crate::input::DoNothingInput).
|
967 - | pub(crate) mod do_nothing_input_internal {
|
968 - |
|
969 - | impl ::std::convert::From<Builder> for crate::input::DoNothingInput {
|
970 - | fn from(builder: Builder) -> Self {
|
971 - | builder.build()
|
972 - | }
|
973 - | }
|
974 - | /// A builder for [`DoNothingInput`](crate::input::DoNothingInput).
|
975 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
976 - | pub(crate) struct Builder {}
|
977 - | impl Builder {
|
978 - | /// Consumes the builder and constructs a [`DoNothingInput`](crate::input::DoNothingInput).
|
979 - | pub fn build(self) -> crate::input::DoNothingInput {
|
980 - | self.build_enforcing_all_constraints()
|
981 - | }
|
982 - | fn build_enforcing_all_constraints(self) -> crate::input::DoNothingInput {
|
983 - | crate::input::DoNothingInput {}
|
984 - | }
|
985 - | }
|
986 - | }
|
987 - | /// See [`DoNothingInput`](crate::input::DoNothingInput).
|
988 - | pub mod do_nothing_input {
|
989 - |
|
990 - | impl ::std::convert::From<Builder> for crate::input::DoNothingInput {
|
991 - | fn from(builder: Builder) -> Self {
|
992 - | builder.build()
|
993 - | }
|
994 - | }
|
995 - | /// A builder for [`DoNothingInput`](crate::input::DoNothingInput).
|
996 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
997 - | pub struct Builder {}
|
998 - | impl Builder {
|
999 - | /// Consumes the builder and constructs a [`DoNothingInput`](crate::input::DoNothingInput).
|
1000 - | pub fn build(self) -> crate::input::DoNothingInput {
|
1001 - | self.build_enforcing_required_and_enum_traits()
|
1002 - | }
|
1003 - | fn build_enforcing_required_and_enum_traits(self) -> crate::input::DoNothingInput {
|
1004 - | crate::input::DoNothingInput {}
|
1005 - | }
|
1006 - | }
|
1007 - | }
|
1008 - | /// See [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
|
1009 - | pub(crate) mod get_server_statistics_input_internal {
|
1010 - |
|
1011 - | impl ::std::convert::From<Builder> for crate::input::GetServerStatisticsInput {
|
1012 - | fn from(builder: Builder) -> Self {
|
1013 - | builder.build()
|
1014 - | }
|
1015 - | }
|
1016 - | /// A builder for [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
|
1017 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1018 - | pub(crate) struct Builder {}
|
1019 - | impl Builder {
|
1020 - | /// Consumes the builder and constructs a [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
|
1021 - | pub fn build(self) -> crate::input::GetServerStatisticsInput {
|
1022 - | self.build_enforcing_all_constraints()
|
1023 - | }
|
1024 - | fn build_enforcing_all_constraints(self) -> crate::input::GetServerStatisticsInput {
|
1025 - | crate::input::GetServerStatisticsInput {}
|
1026 - | }
|
1027 - | }
|
1028 - | }
|
1029 - | /// See [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
|
1030 - | pub mod get_server_statistics_input {
|
1031 - |
|
1032 - | impl ::std::convert::From<Builder> for crate::input::GetServerStatisticsInput {
|
1033 - | fn from(builder: Builder) -> Self {
|
1034 - | builder.build()
|
1035 - | }
|
1036 - | }
|
1037 - | /// A builder for [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
|
1038 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1039 - | pub struct Builder {}
|
1040 - | impl Builder {
|
1041 - | /// Consumes the builder and constructs a [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
|
1042 - | pub fn build(self) -> crate::input::GetServerStatisticsInput {
|
1043 - | self.build_enforcing_required_and_enum_traits()
|
1044 - | }
|
1045 - | fn build_enforcing_required_and_enum_traits(
|
1046 - | self,
|
1047 - | ) -> crate::input::GetServerStatisticsInput {
|
1048 - | crate::input::GetServerStatisticsInput {}
|
1049 - | }
|
1050 - | }
|
1051 - | }
|