#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ResolveCustomerError {
pub kind: ResolveCustomerErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ResolveCustomerError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ResolveCustomerErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ResolveCustomerErrorKind {
DisabledApiException(crate::error::DisabledApiException),
ExpiredTokenException(crate::error::ExpiredTokenException),
InternalServiceErrorException(crate::error::InternalServiceErrorException),
InvalidTokenException(crate::error::InvalidTokenException),
ThrottlingException(crate::error::ThrottlingException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ResolveCustomerError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ResolveCustomerErrorKind::DisabledApiException(_inner) => _inner.fmt(f),
ResolveCustomerErrorKind::ExpiredTokenException(_inner) => _inner.fmt(f),
ResolveCustomerErrorKind::InternalServiceErrorException(_inner) => _inner.fmt(f),
ResolveCustomerErrorKind::InvalidTokenException(_inner) => _inner.fmt(f),
ResolveCustomerErrorKind::ThrottlingException(_inner) => _inner.fmt(f),
ResolveCustomerErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ResolveCustomerError {
fn code(&self) -> Option<&str> {
ResolveCustomerError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ResolveCustomerError {
pub fn new(kind: ResolveCustomerErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: ResolveCustomerErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ResolveCustomerErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_disabled_api_exception(&self) -> bool {
matches!(
&self.kind,
ResolveCustomerErrorKind::DisabledApiException(_)
)
}
pub fn is_expired_token_exception(&self) -> bool {
matches!(
&self.kind,
ResolveCustomerErrorKind::ExpiredTokenException(_)
)
}
pub fn is_internal_service_error_exception(&self) -> bool {
matches!(
&self.kind,
ResolveCustomerErrorKind::InternalServiceErrorException(_)
)
}
pub fn is_invalid_token_exception(&self) -> bool {
matches!(
&self.kind,
ResolveCustomerErrorKind::InvalidTokenException(_)
)
}
pub fn is_throttling_exception(&self) -> bool {
matches!(&self.kind, ResolveCustomerErrorKind::ThrottlingException(_))
}
}
impl std::error::Error for ResolveCustomerError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ResolveCustomerErrorKind::DisabledApiException(_inner) => Some(_inner),
ResolveCustomerErrorKind::ExpiredTokenException(_inner) => Some(_inner),
ResolveCustomerErrorKind::InternalServiceErrorException(_inner) => Some(_inner),
ResolveCustomerErrorKind::InvalidTokenException(_inner) => Some(_inner),
ResolveCustomerErrorKind::ThrottlingException(_inner) => Some(_inner),
ResolveCustomerErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ThrottlingException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ThrottlingException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ThrottlingException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ThrottlingException")?;
if let Some(inner_1) = &self.message {
{
write!(f, ": {}", inner_1)?;
}
}
Ok(())
}
}
impl std::error::Error for ThrottlingException {}
pub mod throttling_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ThrottlingException {
crate::error::ThrottlingException {
message: self.message,
}
}
}
}
impl ThrottlingException {
pub fn builder() -> crate::error::throttling_exception::Builder {
crate::error::throttling_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidTokenException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidTokenException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidTokenException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidTokenException")?;
if let Some(inner_2) = &self.message {
{
write!(f, ": {}", inner_2)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidTokenException {}
pub mod invalid_token_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidTokenException {
crate::error::InvalidTokenException {
message: self.message,
}
}
}
}
impl InvalidTokenException {
pub fn builder() -> crate::error::invalid_token_exception::Builder {
crate::error::invalid_token_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InternalServiceErrorException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InternalServiceErrorException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InternalServiceErrorException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InternalServiceErrorException")?;
if let Some(inner_3) = &self.message {
{
write!(f, ": {}", inner_3)?;
}
}
Ok(())
}
}
impl std::error::Error for InternalServiceErrorException {}
pub mod internal_service_error_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InternalServiceErrorException {
crate::error::InternalServiceErrorException {
message: self.message,
}
}
}
}
impl InternalServiceErrorException {
pub fn builder() -> crate::error::internal_service_error_exception::Builder {
crate::error::internal_service_error_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ExpiredTokenException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ExpiredTokenException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ExpiredTokenException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ExpiredTokenException")?;
if let Some(inner_4) = &self.message {
{
write!(f, ": {}", inner_4)?;
}
}
Ok(())
}
}
impl std::error::Error for ExpiredTokenException {}
pub mod expired_token_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ExpiredTokenException {
crate::error::ExpiredTokenException {
message: self.message,
}
}
}
}
impl ExpiredTokenException {
pub fn builder() -> crate::error::expired_token_exception::Builder {
crate::error::expired_token_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DisabledApiException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl DisabledApiException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DisabledApiException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DisabledApiException")?;
if let Some(inner_5) = &self.message {
{
write!(f, ": {}", inner_5)?;
}
}
Ok(())
}
}
impl std::error::Error for DisabledApiException {}
pub mod disabled_api_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::DisabledApiException {
crate::error::DisabledApiException {
message: self.message,
}
}
}
}
impl DisabledApiException {
pub fn builder() -> crate::error::disabled_api_exception::Builder {
crate::error::disabled_api_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RegisterUsageError {
pub kind: RegisterUsageErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for RegisterUsageError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: RegisterUsageErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RegisterUsageErrorKind {
CustomerNotEntitledException(crate::error::CustomerNotEntitledException),
DisabledApiException(crate::error::DisabledApiException),
InternalServiceErrorException(crate::error::InternalServiceErrorException),
InvalidProductCodeException(crate::error::InvalidProductCodeException),
InvalidPublicKeyVersionException(crate::error::InvalidPublicKeyVersionException),
InvalidRegionException(crate::error::InvalidRegionException),
PlatformNotSupportedException(crate::error::PlatformNotSupportedException),
ThrottlingException(crate::error::ThrottlingException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for RegisterUsageError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RegisterUsageErrorKind::CustomerNotEntitledException(_inner) => _inner.fmt(f),
RegisterUsageErrorKind::DisabledApiException(_inner) => _inner.fmt(f),
RegisterUsageErrorKind::InternalServiceErrorException(_inner) => _inner.fmt(f),
RegisterUsageErrorKind::InvalidProductCodeException(_inner) => _inner.fmt(f),
RegisterUsageErrorKind::InvalidPublicKeyVersionException(_inner) => _inner.fmt(f),
RegisterUsageErrorKind::InvalidRegionException(_inner) => _inner.fmt(f),
RegisterUsageErrorKind::PlatformNotSupportedException(_inner) => _inner.fmt(f),
RegisterUsageErrorKind::ThrottlingException(_inner) => _inner.fmt(f),
RegisterUsageErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RegisterUsageError {
fn code(&self) -> Option<&str> {
RegisterUsageError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RegisterUsageError {
pub fn new(kind: RegisterUsageErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: RegisterUsageErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RegisterUsageErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_customer_not_entitled_exception(&self) -> bool {
matches!(
&self.kind,
RegisterUsageErrorKind::CustomerNotEntitledException(_)
)
}
pub fn is_disabled_api_exception(&self) -> bool {
matches!(&self.kind, RegisterUsageErrorKind::DisabledApiException(_))
}
pub fn is_internal_service_error_exception(&self) -> bool {
matches!(
&self.kind,
RegisterUsageErrorKind::InternalServiceErrorException(_)
)
}
pub fn is_invalid_product_code_exception(&self) -> bool {
matches!(
&self.kind,
RegisterUsageErrorKind::InvalidProductCodeException(_)
)
}
pub fn is_invalid_public_key_version_exception(&self) -> bool {
matches!(
&self.kind,
RegisterUsageErrorKind::InvalidPublicKeyVersionException(_)
)
}
pub fn is_invalid_region_exception(&self) -> bool {
matches!(
&self.kind,
RegisterUsageErrorKind::InvalidRegionException(_)
)
}
pub fn is_platform_not_supported_exception(&self) -> bool {
matches!(
&self.kind,
RegisterUsageErrorKind::PlatformNotSupportedException(_)
)
}
pub fn is_throttling_exception(&self) -> bool {
matches!(&self.kind, RegisterUsageErrorKind::ThrottlingException(_))
}
}
impl std::error::Error for RegisterUsageError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RegisterUsageErrorKind::CustomerNotEntitledException(_inner) => Some(_inner),
RegisterUsageErrorKind::DisabledApiException(_inner) => Some(_inner),
RegisterUsageErrorKind::InternalServiceErrorException(_inner) => Some(_inner),
RegisterUsageErrorKind::InvalidProductCodeException(_inner) => Some(_inner),
RegisterUsageErrorKind::InvalidPublicKeyVersionException(_inner) => Some(_inner),
RegisterUsageErrorKind::InvalidRegionException(_inner) => Some(_inner),
RegisterUsageErrorKind::PlatformNotSupportedException(_inner) => Some(_inner),
RegisterUsageErrorKind::ThrottlingException(_inner) => Some(_inner),
RegisterUsageErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct PlatformNotSupportedException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl PlatformNotSupportedException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for PlatformNotSupportedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "PlatformNotSupportedException")?;
if let Some(inner_6) = &self.message {
{
write!(f, ": {}", inner_6)?;
}
}
Ok(())
}
}
impl std::error::Error for PlatformNotSupportedException {}
pub mod platform_not_supported_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::PlatformNotSupportedException {
crate::error::PlatformNotSupportedException {
message: self.message,
}
}
}
}
impl PlatformNotSupportedException {
pub fn builder() -> crate::error::platform_not_supported_exception::Builder {
crate::error::platform_not_supported_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidRegionException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidRegionException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidRegionException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidRegionException")?;
if let Some(inner_7) = &self.message {
{
write!(f, ": {}", inner_7)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidRegionException {}
pub mod invalid_region_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidRegionException {
crate::error::InvalidRegionException {
message: self.message,
}
}
}
}
impl InvalidRegionException {
pub fn builder() -> crate::error::invalid_region_exception::Builder {
crate::error::invalid_region_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidPublicKeyVersionException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidPublicKeyVersionException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidPublicKeyVersionException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidPublicKeyVersionException")?;
if let Some(inner_8) = &self.message {
{
write!(f, ": {}", inner_8)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidPublicKeyVersionException {}
pub mod invalid_public_key_version_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidPublicKeyVersionException {
crate::error::InvalidPublicKeyVersionException {
message: self.message,
}
}
}
}
impl InvalidPublicKeyVersionException {
pub fn builder() -> crate::error::invalid_public_key_version_exception::Builder {
crate::error::invalid_public_key_version_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidProductCodeException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidProductCodeException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidProductCodeException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidProductCodeException")?;
if let Some(inner_9) = &self.message {
{
write!(f, ": {}", inner_9)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidProductCodeException {}
pub mod invalid_product_code_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidProductCodeException {
crate::error::InvalidProductCodeException {
message: self.message,
}
}
}
}
impl InvalidProductCodeException {
pub fn builder() -> crate::error::invalid_product_code_exception::Builder {
crate::error::invalid_product_code_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CustomerNotEntitledException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl CustomerNotEntitledException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for CustomerNotEntitledException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "CustomerNotEntitledException")?;
if let Some(inner_10) = &self.message {
{
write!(f, ": {}", inner_10)?;
}
}
Ok(())
}
}
impl std::error::Error for CustomerNotEntitledException {}
pub mod customer_not_entitled_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::CustomerNotEntitledException {
crate::error::CustomerNotEntitledException {
message: self.message,
}
}
}
}
impl CustomerNotEntitledException {
pub fn builder() -> crate::error::customer_not_entitled_exception::Builder {
crate::error::customer_not_entitled_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct MeterUsageError {
pub kind: MeterUsageErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for MeterUsageError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: MeterUsageErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum MeterUsageErrorKind {
CustomerNotEntitledException(crate::error::CustomerNotEntitledException),
DuplicateRequestException(crate::error::DuplicateRequestException),
InternalServiceErrorException(crate::error::InternalServiceErrorException),
InvalidEndpointRegionException(crate::error::InvalidEndpointRegionException),
InvalidProductCodeException(crate::error::InvalidProductCodeException),
InvalidTagException(crate::error::InvalidTagException),
InvalidUsageAllocationsException(crate::error::InvalidUsageAllocationsException),
InvalidUsageDimensionException(crate::error::InvalidUsageDimensionException),
ThrottlingException(crate::error::ThrottlingException),
TimestampOutOfBoundsException(crate::error::TimestampOutOfBoundsException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for MeterUsageError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
MeterUsageErrorKind::CustomerNotEntitledException(_inner) => _inner.fmt(f),
MeterUsageErrorKind::DuplicateRequestException(_inner) => _inner.fmt(f),
MeterUsageErrorKind::InternalServiceErrorException(_inner) => _inner.fmt(f),
MeterUsageErrorKind::InvalidEndpointRegionException(_inner) => _inner.fmt(f),
MeterUsageErrorKind::InvalidProductCodeException(_inner) => _inner.fmt(f),
MeterUsageErrorKind::InvalidTagException(_inner) => _inner.fmt(f),
MeterUsageErrorKind::InvalidUsageAllocationsException(_inner) => _inner.fmt(f),
MeterUsageErrorKind::InvalidUsageDimensionException(_inner) => _inner.fmt(f),
MeterUsageErrorKind::ThrottlingException(_inner) => _inner.fmt(f),
MeterUsageErrorKind::TimestampOutOfBoundsException(_inner) => _inner.fmt(f),
MeterUsageErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for MeterUsageError {
fn code(&self) -> Option<&str> {
MeterUsageError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl MeterUsageError {
pub fn new(kind: MeterUsageErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: MeterUsageErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: MeterUsageErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_customer_not_entitled_exception(&self) -> bool {
matches!(
&self.kind,
MeterUsageErrorKind::CustomerNotEntitledException(_)
)
}
pub fn is_duplicate_request_exception(&self) -> bool {
matches!(
&self.kind,
MeterUsageErrorKind::DuplicateRequestException(_)
)
}
pub fn is_internal_service_error_exception(&self) -> bool {
matches!(
&self.kind,
MeterUsageErrorKind::InternalServiceErrorException(_)
)
}
pub fn is_invalid_endpoint_region_exception(&self) -> bool {
matches!(
&self.kind,
MeterUsageErrorKind::InvalidEndpointRegionException(_)
)
}
pub fn is_invalid_product_code_exception(&self) -> bool {
matches!(
&self.kind,
MeterUsageErrorKind::InvalidProductCodeException(_)
)
}
pub fn is_invalid_tag_exception(&self) -> bool {
matches!(&self.kind, MeterUsageErrorKind::InvalidTagException(_))
}
pub fn is_invalid_usage_allocations_exception(&self) -> bool {
matches!(
&self.kind,
MeterUsageErrorKind::InvalidUsageAllocationsException(_)
)
}
pub fn is_invalid_usage_dimension_exception(&self) -> bool {
matches!(
&self.kind,
MeterUsageErrorKind::InvalidUsageDimensionException(_)
)
}
pub fn is_throttling_exception(&self) -> bool {
matches!(&self.kind, MeterUsageErrorKind::ThrottlingException(_))
}
pub fn is_timestamp_out_of_bounds_exception(&self) -> bool {
matches!(
&self.kind,
MeterUsageErrorKind::TimestampOutOfBoundsException(_)
)
}
}
impl std::error::Error for MeterUsageError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
MeterUsageErrorKind::CustomerNotEntitledException(_inner) => Some(_inner),
MeterUsageErrorKind::DuplicateRequestException(_inner) => Some(_inner),
MeterUsageErrorKind::InternalServiceErrorException(_inner) => Some(_inner),
MeterUsageErrorKind::InvalidEndpointRegionException(_inner) => Some(_inner),
MeterUsageErrorKind::InvalidProductCodeException(_inner) => Some(_inner),
MeterUsageErrorKind::InvalidTagException(_inner) => Some(_inner),
MeterUsageErrorKind::InvalidUsageAllocationsException(_inner) => Some(_inner),
MeterUsageErrorKind::InvalidUsageDimensionException(_inner) => Some(_inner),
MeterUsageErrorKind::ThrottlingException(_inner) => Some(_inner),
MeterUsageErrorKind::TimestampOutOfBoundsException(_inner) => Some(_inner),
MeterUsageErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TimestampOutOfBoundsException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl TimestampOutOfBoundsException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TimestampOutOfBoundsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TimestampOutOfBoundsException")?;
if let Some(inner_11) = &self.message {
{
write!(f, ": {}", inner_11)?;
}
}
Ok(())
}
}
impl std::error::Error for TimestampOutOfBoundsException {}
pub mod timestamp_out_of_bounds_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::TimestampOutOfBoundsException {
crate::error::TimestampOutOfBoundsException {
message: self.message,
}
}
}
}
impl TimestampOutOfBoundsException {
pub fn builder() -> crate::error::timestamp_out_of_bounds_exception::Builder {
crate::error::timestamp_out_of_bounds_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidUsageDimensionException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidUsageDimensionException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidUsageDimensionException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidUsageDimensionException")?;
if let Some(inner_12) = &self.message {
{
write!(f, ": {}", inner_12)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidUsageDimensionException {}
pub mod invalid_usage_dimension_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidUsageDimensionException {
crate::error::InvalidUsageDimensionException {
message: self.message,
}
}
}
}
impl InvalidUsageDimensionException {
pub fn builder() -> crate::error::invalid_usage_dimension_exception::Builder {
crate::error::invalid_usage_dimension_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidUsageAllocationsException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidUsageAllocationsException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidUsageAllocationsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidUsageAllocationsException")?;
if let Some(inner_13) = &self.message {
{
write!(f, ": {}", inner_13)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidUsageAllocationsException {}
pub mod invalid_usage_allocations_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidUsageAllocationsException {
crate::error::InvalidUsageAllocationsException {
message: self.message,
}
}
}
}
impl InvalidUsageAllocationsException {
pub fn builder() -> crate::error::invalid_usage_allocations_exception::Builder {
crate::error::invalid_usage_allocations_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidTagException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidTagException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidTagException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidTagException")?;
if let Some(inner_14) = &self.message {
{
write!(f, ": {}", inner_14)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidTagException {}
pub mod invalid_tag_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidTagException {
crate::error::InvalidTagException {
message: self.message,
}
}
}
}
impl InvalidTagException {
pub fn builder() -> crate::error::invalid_tag_exception::Builder {
crate::error::invalid_tag_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidEndpointRegionException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidEndpointRegionException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidEndpointRegionException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidEndpointRegionException")?;
if let Some(inner_15) = &self.message {
{
write!(f, ": {}", inner_15)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidEndpointRegionException {}
pub mod invalid_endpoint_region_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidEndpointRegionException {
crate::error::InvalidEndpointRegionException {
message: self.message,
}
}
}
}
impl InvalidEndpointRegionException {
pub fn builder() -> crate::error::invalid_endpoint_region_exception::Builder {
crate::error::invalid_endpoint_region_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DuplicateRequestException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl DuplicateRequestException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DuplicateRequestException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DuplicateRequestException")?;
if let Some(inner_16) = &self.message {
{
write!(f, ": {}", inner_16)?;
}
}
Ok(())
}
}
impl std::error::Error for DuplicateRequestException {}
pub mod duplicate_request_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::DuplicateRequestException {
crate::error::DuplicateRequestException {
message: self.message,
}
}
}
}
impl DuplicateRequestException {
pub fn builder() -> crate::error::duplicate_request_exception::Builder {
crate::error::duplicate_request_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct BatchMeterUsageError {
pub kind: BatchMeterUsageErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for BatchMeterUsageError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: BatchMeterUsageErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum BatchMeterUsageErrorKind {
DisabledApiException(crate::error::DisabledApiException),
InternalServiceErrorException(crate::error::InternalServiceErrorException),
InvalidCustomerIdentifierException(crate::error::InvalidCustomerIdentifierException),
InvalidProductCodeException(crate::error::InvalidProductCodeException),
InvalidTagException(crate::error::InvalidTagException),
InvalidUsageAllocationsException(crate::error::InvalidUsageAllocationsException),
InvalidUsageDimensionException(crate::error::InvalidUsageDimensionException),
ThrottlingException(crate::error::ThrottlingException),
TimestampOutOfBoundsException(crate::error::TimestampOutOfBoundsException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for BatchMeterUsageError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
BatchMeterUsageErrorKind::DisabledApiException(_inner) => _inner.fmt(f),
BatchMeterUsageErrorKind::InternalServiceErrorException(_inner) => _inner.fmt(f),
BatchMeterUsageErrorKind::InvalidCustomerIdentifierException(_inner) => _inner.fmt(f),
BatchMeterUsageErrorKind::InvalidProductCodeException(_inner) => _inner.fmt(f),
BatchMeterUsageErrorKind::InvalidTagException(_inner) => _inner.fmt(f),
BatchMeterUsageErrorKind::InvalidUsageAllocationsException(_inner) => _inner.fmt(f),
BatchMeterUsageErrorKind::InvalidUsageDimensionException(_inner) => _inner.fmt(f),
BatchMeterUsageErrorKind::ThrottlingException(_inner) => _inner.fmt(f),
BatchMeterUsageErrorKind::TimestampOutOfBoundsException(_inner) => _inner.fmt(f),
BatchMeterUsageErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for BatchMeterUsageError {
fn code(&self) -> Option<&str> {
BatchMeterUsageError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl BatchMeterUsageError {
pub fn new(kind: BatchMeterUsageErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: BatchMeterUsageErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: BatchMeterUsageErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_disabled_api_exception(&self) -> bool {
matches!(
&self.kind,
BatchMeterUsageErrorKind::DisabledApiException(_)
)
}
pub fn is_internal_service_error_exception(&self) -> bool {
matches!(
&self.kind,
BatchMeterUsageErrorKind::InternalServiceErrorException(_)
)
}
pub fn is_invalid_customer_identifier_exception(&self) -> bool {
matches!(
&self.kind,
BatchMeterUsageErrorKind::InvalidCustomerIdentifierException(_)
)
}
pub fn is_invalid_product_code_exception(&self) -> bool {
matches!(
&self.kind,
BatchMeterUsageErrorKind::InvalidProductCodeException(_)
)
}
pub fn is_invalid_tag_exception(&self) -> bool {
matches!(&self.kind, BatchMeterUsageErrorKind::InvalidTagException(_))
}
pub fn is_invalid_usage_allocations_exception(&self) -> bool {
matches!(
&self.kind,
BatchMeterUsageErrorKind::InvalidUsageAllocationsException(_)
)
}
pub fn is_invalid_usage_dimension_exception(&self) -> bool {
matches!(
&self.kind,
BatchMeterUsageErrorKind::InvalidUsageDimensionException(_)
)
}
pub fn is_throttling_exception(&self) -> bool {
matches!(&self.kind, BatchMeterUsageErrorKind::ThrottlingException(_))
}
pub fn is_timestamp_out_of_bounds_exception(&self) -> bool {
matches!(
&self.kind,
BatchMeterUsageErrorKind::TimestampOutOfBoundsException(_)
)
}
}
impl std::error::Error for BatchMeterUsageError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
BatchMeterUsageErrorKind::DisabledApiException(_inner) => Some(_inner),
BatchMeterUsageErrorKind::InternalServiceErrorException(_inner) => Some(_inner),
BatchMeterUsageErrorKind::InvalidCustomerIdentifierException(_inner) => Some(_inner),
BatchMeterUsageErrorKind::InvalidProductCodeException(_inner) => Some(_inner),
BatchMeterUsageErrorKind::InvalidTagException(_inner) => Some(_inner),
BatchMeterUsageErrorKind::InvalidUsageAllocationsException(_inner) => Some(_inner),
BatchMeterUsageErrorKind::InvalidUsageDimensionException(_inner) => Some(_inner),
BatchMeterUsageErrorKind::ThrottlingException(_inner) => Some(_inner),
BatchMeterUsageErrorKind::TimestampOutOfBoundsException(_inner) => Some(_inner),
BatchMeterUsageErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidCustomerIdentifierException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidCustomerIdentifierException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidCustomerIdentifierException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidCustomerIdentifierException")?;
if let Some(inner_17) = &self.message {
{
write!(f, ": {}", inner_17)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidCustomerIdentifierException {}
pub mod invalid_customer_identifier_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidCustomerIdentifierException {
crate::error::InvalidCustomerIdentifierException {
message: self.message,
}
}
}
}
impl InvalidCustomerIdentifierException {
pub fn builder() -> crate::error::invalid_customer_identifier_exception::Builder {
crate::error::invalid_customer_identifier_exception::Builder::default()
}
}
#[derive(Debug)]
pub struct Unhandled {
source: Box<dyn std::error::Error + Send + Sync + 'static>,
}
impl Unhandled {
#[allow(unused)]
pub(crate) fn new(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self { source }
}
}
impl std::fmt::Display for Unhandled {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
write!(f, "unhandled error")
}
}
impl std::error::Error for Unhandled {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
Some(self.source.as_ref() as _)
}
}