#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct AssociateAdminAccountError {
pub kind: AssociateAdminAccountErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum AssociateAdminAccountErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
InvalidOperationException(crate::error::InvalidOperationException),
LimitExceededException(crate::error::LimitExceededException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for AssociateAdminAccountError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
AssociateAdminAccountErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
AssociateAdminAccountErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
AssociateAdminAccountErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
AssociateAdminAccountErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
AssociateAdminAccountErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
AssociateAdminAccountErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for AssociateAdminAccountError {
fn code(&self) -> Option<&str> {
AssociateAdminAccountError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl AssociateAdminAccountError {
pub fn new(kind: AssociateAdminAccountErrorKind, 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: AssociateAdminAccountErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: AssociateAdminAccountErrorKind::Unhandled(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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
AssociateAdminAccountErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(
&self.kind,
AssociateAdminAccountErrorKind::InvalidInputException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
AssociateAdminAccountErrorKind::InvalidOperationException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
AssociateAdminAccountErrorKind::LimitExceededException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
AssociateAdminAccountErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for AssociateAdminAccountError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
AssociateAdminAccountErrorKind::InternalErrorException(_inner) => Some(_inner),
AssociateAdminAccountErrorKind::InvalidInputException(_inner) => Some(_inner),
AssociateAdminAccountErrorKind::InvalidOperationException(_inner) => Some(_inner),
AssociateAdminAccountErrorKind::LimitExceededException(_inner) => Some(_inner),
AssociateAdminAccountErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
AssociateAdminAccountErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteAppsListError {
pub kind: DeleteAppsListErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteAppsListErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidOperationException(crate::error::InvalidOperationException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteAppsListError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteAppsListErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
DeleteAppsListErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
DeleteAppsListErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
DeleteAppsListErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteAppsListError {
fn code(&self) -> Option<&str> {
DeleteAppsListError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteAppsListError {
pub fn new(kind: DeleteAppsListErrorKind, 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: DeleteAppsListErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteAppsListErrorKind::Unhandled(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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
DeleteAppsListErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
DeleteAppsListErrorKind::InvalidOperationException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DeleteAppsListErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for DeleteAppsListError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteAppsListErrorKind::InternalErrorException(_inner) => Some(_inner),
DeleteAppsListErrorKind::InvalidOperationException(_inner) => Some(_inner),
DeleteAppsListErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
DeleteAppsListErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteNotificationChannelError {
pub kind: DeleteNotificationChannelErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteNotificationChannelErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidOperationException(crate::error::InvalidOperationException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteNotificationChannelError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteNotificationChannelErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
DeleteNotificationChannelErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
DeleteNotificationChannelErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
DeleteNotificationChannelErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteNotificationChannelError {
fn code(&self) -> Option<&str> {
DeleteNotificationChannelError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteNotificationChannelError {
pub fn new(kind: DeleteNotificationChannelErrorKind, 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: DeleteNotificationChannelErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteNotificationChannelErrorKind::Unhandled(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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
DeleteNotificationChannelErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
DeleteNotificationChannelErrorKind::InvalidOperationException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DeleteNotificationChannelErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for DeleteNotificationChannelError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteNotificationChannelErrorKind::InternalErrorException(_inner) => Some(_inner),
DeleteNotificationChannelErrorKind::InvalidOperationException(_inner) => Some(_inner),
DeleteNotificationChannelErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
DeleteNotificationChannelErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeletePolicyError {
pub kind: DeletePolicyErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeletePolicyErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
InvalidOperationException(crate::error::InvalidOperationException),
LimitExceededException(crate::error::LimitExceededException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeletePolicyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeletePolicyErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
DeletePolicyErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
DeletePolicyErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
DeletePolicyErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
DeletePolicyErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
DeletePolicyErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeletePolicyError {
fn code(&self) -> Option<&str> {
DeletePolicyError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeletePolicyError {
pub fn new(kind: DeletePolicyErrorKind, 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: DeletePolicyErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeletePolicyErrorKind::Unhandled(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_internal_error_exception(&self) -> bool {
matches!(&self.kind, DeletePolicyErrorKind::InternalErrorException(_))
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(&self.kind, DeletePolicyErrorKind::InvalidInputException(_))
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
DeletePolicyErrorKind::InvalidOperationException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(&self.kind, DeletePolicyErrorKind::LimitExceededException(_))
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DeletePolicyErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for DeletePolicyError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeletePolicyErrorKind::InternalErrorException(_inner) => Some(_inner),
DeletePolicyErrorKind::InvalidInputException(_inner) => Some(_inner),
DeletePolicyErrorKind::InvalidOperationException(_inner) => Some(_inner),
DeletePolicyErrorKind::LimitExceededException(_inner) => Some(_inner),
DeletePolicyErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
DeletePolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteProtocolsListError {
pub kind: DeleteProtocolsListErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteProtocolsListErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidOperationException(crate::error::InvalidOperationException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteProtocolsListError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteProtocolsListErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
DeleteProtocolsListErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
DeleteProtocolsListErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
DeleteProtocolsListErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteProtocolsListError {
fn code(&self) -> Option<&str> {
DeleteProtocolsListError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteProtocolsListError {
pub fn new(kind: DeleteProtocolsListErrorKind, 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: DeleteProtocolsListErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteProtocolsListErrorKind::Unhandled(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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
DeleteProtocolsListErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
DeleteProtocolsListErrorKind::InvalidOperationException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DeleteProtocolsListErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for DeleteProtocolsListError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteProtocolsListErrorKind::InternalErrorException(_inner) => Some(_inner),
DeleteProtocolsListErrorKind::InvalidOperationException(_inner) => Some(_inner),
DeleteProtocolsListErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
DeleteProtocolsListErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DisassociateAdminAccountError {
pub kind: DisassociateAdminAccountErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DisassociateAdminAccountErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidOperationException(crate::error::InvalidOperationException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DisassociateAdminAccountError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DisassociateAdminAccountErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
DisassociateAdminAccountErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
DisassociateAdminAccountErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
DisassociateAdminAccountErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DisassociateAdminAccountError {
fn code(&self) -> Option<&str> {
DisassociateAdminAccountError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DisassociateAdminAccountError {
pub fn new(kind: DisassociateAdminAccountErrorKind, 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: DisassociateAdminAccountErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DisassociateAdminAccountErrorKind::Unhandled(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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
DisassociateAdminAccountErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
DisassociateAdminAccountErrorKind::InvalidOperationException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DisassociateAdminAccountErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for DisassociateAdminAccountError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DisassociateAdminAccountErrorKind::InternalErrorException(_inner) => Some(_inner),
DisassociateAdminAccountErrorKind::InvalidOperationException(_inner) => Some(_inner),
DisassociateAdminAccountErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
DisassociateAdminAccountErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetAdminAccountError {
pub kind: GetAdminAccountErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetAdminAccountErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidOperationException(crate::error::InvalidOperationException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetAdminAccountError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetAdminAccountErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
GetAdminAccountErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
GetAdminAccountErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
GetAdminAccountErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetAdminAccountError {
fn code(&self) -> Option<&str> {
GetAdminAccountError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetAdminAccountError {
pub fn new(kind: GetAdminAccountErrorKind, 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: GetAdminAccountErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetAdminAccountErrorKind::Unhandled(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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
GetAdminAccountErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
GetAdminAccountErrorKind::InvalidOperationException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetAdminAccountErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for GetAdminAccountError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetAdminAccountErrorKind::InternalErrorException(_inner) => Some(_inner),
GetAdminAccountErrorKind::InvalidOperationException(_inner) => Some(_inner),
GetAdminAccountErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
GetAdminAccountErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetAppsListError {
pub kind: GetAppsListErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetAppsListErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidOperationException(crate::error::InvalidOperationException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetAppsListError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetAppsListErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
GetAppsListErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
GetAppsListErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
GetAppsListErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetAppsListError {
fn code(&self) -> Option<&str> {
GetAppsListError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetAppsListError {
pub fn new(kind: GetAppsListErrorKind, 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: GetAppsListErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetAppsListErrorKind::Unhandled(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_internal_error_exception(&self) -> bool {
matches!(&self.kind, GetAppsListErrorKind::InternalErrorException(_))
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
GetAppsListErrorKind::InvalidOperationException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetAppsListErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for GetAppsListError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetAppsListErrorKind::InternalErrorException(_inner) => Some(_inner),
GetAppsListErrorKind::InvalidOperationException(_inner) => Some(_inner),
GetAppsListErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
GetAppsListErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetComplianceDetailError {
pub kind: GetComplianceDetailErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetComplianceDetailErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
InvalidOperationException(crate::error::InvalidOperationException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetComplianceDetailError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetComplianceDetailErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
GetComplianceDetailErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
GetComplianceDetailErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
GetComplianceDetailErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
GetComplianceDetailErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetComplianceDetailError {
fn code(&self) -> Option<&str> {
GetComplianceDetailError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetComplianceDetailError {
pub fn new(kind: GetComplianceDetailErrorKind, 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: GetComplianceDetailErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetComplianceDetailErrorKind::Unhandled(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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
GetComplianceDetailErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(
&self.kind,
GetComplianceDetailErrorKind::InvalidInputException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
GetComplianceDetailErrorKind::InvalidOperationException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetComplianceDetailErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for GetComplianceDetailError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetComplianceDetailErrorKind::InternalErrorException(_inner) => Some(_inner),
GetComplianceDetailErrorKind::InvalidInputException(_inner) => Some(_inner),
GetComplianceDetailErrorKind::InvalidOperationException(_inner) => Some(_inner),
GetComplianceDetailErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
GetComplianceDetailErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetNotificationChannelError {
pub kind: GetNotificationChannelErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetNotificationChannelErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidOperationException(crate::error::InvalidOperationException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetNotificationChannelError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetNotificationChannelErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
GetNotificationChannelErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
GetNotificationChannelErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
GetNotificationChannelErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetNotificationChannelError {
fn code(&self) -> Option<&str> {
GetNotificationChannelError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetNotificationChannelError {
pub fn new(kind: GetNotificationChannelErrorKind, 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: GetNotificationChannelErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetNotificationChannelErrorKind::Unhandled(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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
GetNotificationChannelErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
GetNotificationChannelErrorKind::InvalidOperationException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetNotificationChannelErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for GetNotificationChannelError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetNotificationChannelErrorKind::InternalErrorException(_inner) => Some(_inner),
GetNotificationChannelErrorKind::InvalidOperationException(_inner) => Some(_inner),
GetNotificationChannelErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
GetNotificationChannelErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetPolicyError {
pub kind: GetPolicyErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetPolicyErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidOperationException(crate::error::InvalidOperationException),
InvalidTypeException(crate::error::InvalidTypeException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetPolicyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetPolicyErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
GetPolicyErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
GetPolicyErrorKind::InvalidTypeException(_inner) => _inner.fmt(f),
GetPolicyErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
GetPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetPolicyError {
fn code(&self) -> Option<&str> {
GetPolicyError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetPolicyError {
pub fn new(kind: GetPolicyErrorKind, 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: GetPolicyErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetPolicyErrorKind::Unhandled(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_internal_error_exception(&self) -> bool {
matches!(&self.kind, GetPolicyErrorKind::InternalErrorException(_))
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(&self.kind, GetPolicyErrorKind::InvalidOperationException(_))
}
pub fn is_invalid_type_exception(&self) -> bool {
matches!(&self.kind, GetPolicyErrorKind::InvalidTypeException(_))
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(&self.kind, GetPolicyErrorKind::ResourceNotFoundException(_))
}
}
impl std::error::Error for GetPolicyError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetPolicyErrorKind::InternalErrorException(_inner) => Some(_inner),
GetPolicyErrorKind::InvalidOperationException(_inner) => Some(_inner),
GetPolicyErrorKind::InvalidTypeException(_inner) => Some(_inner),
GetPolicyErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
GetPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetProtectionStatusError {
pub kind: GetProtectionStatusErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetProtectionStatusErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetProtectionStatusError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetProtectionStatusErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
GetProtectionStatusErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
GetProtectionStatusErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
GetProtectionStatusErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetProtectionStatusError {
fn code(&self) -> Option<&str> {
GetProtectionStatusError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetProtectionStatusError {
pub fn new(kind: GetProtectionStatusErrorKind, 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: GetProtectionStatusErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetProtectionStatusErrorKind::Unhandled(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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
GetProtectionStatusErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(
&self.kind,
GetProtectionStatusErrorKind::InvalidInputException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetProtectionStatusErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for GetProtectionStatusError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetProtectionStatusErrorKind::InternalErrorException(_inner) => Some(_inner),
GetProtectionStatusErrorKind::InvalidInputException(_inner) => Some(_inner),
GetProtectionStatusErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
GetProtectionStatusErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetProtocolsListError {
pub kind: GetProtocolsListErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetProtocolsListErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidOperationException(crate::error::InvalidOperationException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetProtocolsListError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetProtocolsListErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
GetProtocolsListErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
GetProtocolsListErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
GetProtocolsListErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetProtocolsListError {
fn code(&self) -> Option<&str> {
GetProtocolsListError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetProtocolsListError {
pub fn new(kind: GetProtocolsListErrorKind, 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: GetProtocolsListErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetProtocolsListErrorKind::Unhandled(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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
GetProtocolsListErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
GetProtocolsListErrorKind::InvalidOperationException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetProtocolsListErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for GetProtocolsListError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetProtocolsListErrorKind::InternalErrorException(_inner) => Some(_inner),
GetProtocolsListErrorKind::InvalidOperationException(_inner) => Some(_inner),
GetProtocolsListErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
GetProtocolsListErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetViolationDetailsError {
pub kind: GetViolationDetailsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetViolationDetailsErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetViolationDetailsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetViolationDetailsErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
GetViolationDetailsErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
GetViolationDetailsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
GetViolationDetailsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetViolationDetailsError {
fn code(&self) -> Option<&str> {
GetViolationDetailsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetViolationDetailsError {
pub fn new(kind: GetViolationDetailsErrorKind, 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: GetViolationDetailsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetViolationDetailsErrorKind::Unhandled(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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
GetViolationDetailsErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(
&self.kind,
GetViolationDetailsErrorKind::InvalidInputException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetViolationDetailsErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for GetViolationDetailsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetViolationDetailsErrorKind::InternalErrorException(_inner) => Some(_inner),
GetViolationDetailsErrorKind::InvalidInputException(_inner) => Some(_inner),
GetViolationDetailsErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
GetViolationDetailsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListAppsListsError {
pub kind: ListAppsListsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListAppsListsErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidOperationException(crate::error::InvalidOperationException),
LimitExceededException(crate::error::LimitExceededException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListAppsListsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListAppsListsErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
ListAppsListsErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
ListAppsListsErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
ListAppsListsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
ListAppsListsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListAppsListsError {
fn code(&self) -> Option<&str> {
ListAppsListsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListAppsListsError {
pub fn new(kind: ListAppsListsErrorKind, 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: ListAppsListsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListAppsListsErrorKind::Unhandled(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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
ListAppsListsErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
ListAppsListsErrorKind::InvalidOperationException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
ListAppsListsErrorKind::LimitExceededException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ListAppsListsErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for ListAppsListsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListAppsListsErrorKind::InternalErrorException(_inner) => Some(_inner),
ListAppsListsErrorKind::InvalidOperationException(_inner) => Some(_inner),
ListAppsListsErrorKind::LimitExceededException(_inner) => Some(_inner),
ListAppsListsErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
ListAppsListsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListComplianceStatusError {
pub kind: ListComplianceStatusErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListComplianceStatusErrorKind {
InternalErrorException(crate::error::InternalErrorException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListComplianceStatusError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListComplianceStatusErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
ListComplianceStatusErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
ListComplianceStatusErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListComplianceStatusError {
fn code(&self) -> Option<&str> {
ListComplianceStatusError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListComplianceStatusError {
pub fn new(kind: ListComplianceStatusErrorKind, 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: ListComplianceStatusErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListComplianceStatusErrorKind::Unhandled(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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
ListComplianceStatusErrorKind::InternalErrorException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ListComplianceStatusErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for ListComplianceStatusError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListComplianceStatusErrorKind::InternalErrorException(_inner) => Some(_inner),
ListComplianceStatusErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
ListComplianceStatusErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListMemberAccountsError {
pub kind: ListMemberAccountsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListMemberAccountsErrorKind {
InternalErrorException(crate::error::InternalErrorException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListMemberAccountsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListMemberAccountsErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
ListMemberAccountsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
ListMemberAccountsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListMemberAccountsError {
fn code(&self) -> Option<&str> {
ListMemberAccountsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListMemberAccountsError {
pub fn new(kind: ListMemberAccountsErrorKind, 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: ListMemberAccountsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListMemberAccountsErrorKind::Unhandled(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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
ListMemberAccountsErrorKind::InternalErrorException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ListMemberAccountsErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for ListMemberAccountsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListMemberAccountsErrorKind::InternalErrorException(_inner) => Some(_inner),
ListMemberAccountsErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
ListMemberAccountsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListPoliciesError {
pub kind: ListPoliciesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListPoliciesErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidOperationException(crate::error::InvalidOperationException),
LimitExceededException(crate::error::LimitExceededException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListPoliciesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListPoliciesErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
ListPoliciesErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
ListPoliciesErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
ListPoliciesErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
ListPoliciesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListPoliciesError {
fn code(&self) -> Option<&str> {
ListPoliciesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListPoliciesError {
pub fn new(kind: ListPoliciesErrorKind, 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: ListPoliciesErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListPoliciesErrorKind::Unhandled(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_internal_error_exception(&self) -> bool {
matches!(&self.kind, ListPoliciesErrorKind::InternalErrorException(_))
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
ListPoliciesErrorKind::InvalidOperationException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(&self.kind, ListPoliciesErrorKind::LimitExceededException(_))
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ListPoliciesErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for ListPoliciesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListPoliciesErrorKind::InternalErrorException(_inner) => Some(_inner),
ListPoliciesErrorKind::InvalidOperationException(_inner) => Some(_inner),
ListPoliciesErrorKind::LimitExceededException(_inner) => Some(_inner),
ListPoliciesErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
ListPoliciesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListProtocolsListsError {
pub kind: ListProtocolsListsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListProtocolsListsErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidOperationException(crate::error::InvalidOperationException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListProtocolsListsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListProtocolsListsErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
ListProtocolsListsErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
ListProtocolsListsErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
ListProtocolsListsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListProtocolsListsError {
fn code(&self) -> Option<&str> {
ListProtocolsListsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListProtocolsListsError {
pub fn new(kind: ListProtocolsListsErrorKind, 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: ListProtocolsListsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListProtocolsListsErrorKind::Unhandled(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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
ListProtocolsListsErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
ListProtocolsListsErrorKind::InvalidOperationException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ListProtocolsListsErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for ListProtocolsListsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListProtocolsListsErrorKind::InternalErrorException(_inner) => Some(_inner),
ListProtocolsListsErrorKind::InvalidOperationException(_inner) => Some(_inner),
ListProtocolsListsErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
ListProtocolsListsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListTagsForResourceError {
pub kind: ListTagsForResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListTagsForResourceErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
InvalidOperationException(crate::error::InvalidOperationException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListTagsForResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListTagsForResourceErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListTagsForResourceError {
fn code(&self) -> Option<&str> {
ListTagsForResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListTagsForResourceError {
pub fn new(kind: ListTagsForResourceErrorKind, 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: ListTagsForResourceErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListTagsForResourceErrorKind::Unhandled(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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::InvalidInputException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::InvalidOperationException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for ListTagsForResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListTagsForResourceErrorKind::InternalErrorException(_inner) => Some(_inner),
ListTagsForResourceErrorKind::InvalidInputException(_inner) => Some(_inner),
ListTagsForResourceErrorKind::InvalidOperationException(_inner) => Some(_inner),
ListTagsForResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
ListTagsForResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct PutAppsListError {
pub kind: PutAppsListErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum PutAppsListErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
InvalidOperationException(crate::error::InvalidOperationException),
LimitExceededException(crate::error::LimitExceededException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for PutAppsListError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
PutAppsListErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
PutAppsListErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
PutAppsListErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
PutAppsListErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
PutAppsListErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
PutAppsListErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for PutAppsListError {
fn code(&self) -> Option<&str> {
PutAppsListError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl PutAppsListError {
pub fn new(kind: PutAppsListErrorKind, 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: PutAppsListErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: PutAppsListErrorKind::Unhandled(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_internal_error_exception(&self) -> bool {
matches!(&self.kind, PutAppsListErrorKind::InternalErrorException(_))
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(&self.kind, PutAppsListErrorKind::InvalidInputException(_))
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
PutAppsListErrorKind::InvalidOperationException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(&self.kind, PutAppsListErrorKind::LimitExceededException(_))
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
PutAppsListErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for PutAppsListError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
PutAppsListErrorKind::InternalErrorException(_inner) => Some(_inner),
PutAppsListErrorKind::InvalidInputException(_inner) => Some(_inner),
PutAppsListErrorKind::InvalidOperationException(_inner) => Some(_inner),
PutAppsListErrorKind::LimitExceededException(_inner) => Some(_inner),
PutAppsListErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
PutAppsListErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct PutNotificationChannelError {
pub kind: PutNotificationChannelErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum PutNotificationChannelErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidOperationException(crate::error::InvalidOperationException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for PutNotificationChannelError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
PutNotificationChannelErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
PutNotificationChannelErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
PutNotificationChannelErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
PutNotificationChannelErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for PutNotificationChannelError {
fn code(&self) -> Option<&str> {
PutNotificationChannelError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl PutNotificationChannelError {
pub fn new(kind: PutNotificationChannelErrorKind, 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: PutNotificationChannelErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: PutNotificationChannelErrorKind::Unhandled(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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
PutNotificationChannelErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
PutNotificationChannelErrorKind::InvalidOperationException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
PutNotificationChannelErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for PutNotificationChannelError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
PutNotificationChannelErrorKind::InternalErrorException(_inner) => Some(_inner),
PutNotificationChannelErrorKind::InvalidOperationException(_inner) => Some(_inner),
PutNotificationChannelErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
PutNotificationChannelErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct PutPolicyError {
pub kind: PutPolicyErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum PutPolicyErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
InvalidOperationException(crate::error::InvalidOperationException),
InvalidTypeException(crate::error::InvalidTypeException),
LimitExceededException(crate::error::LimitExceededException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for PutPolicyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
PutPolicyErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
PutPolicyErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
PutPolicyErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
PutPolicyErrorKind::InvalidTypeException(_inner) => _inner.fmt(f),
PutPolicyErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
PutPolicyErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
PutPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for PutPolicyError {
fn code(&self) -> Option<&str> {
PutPolicyError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl PutPolicyError {
pub fn new(kind: PutPolicyErrorKind, 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: PutPolicyErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: PutPolicyErrorKind::Unhandled(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_internal_error_exception(&self) -> bool {
matches!(&self.kind, PutPolicyErrorKind::InternalErrorException(_))
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(&self.kind, PutPolicyErrorKind::InvalidInputException(_))
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(&self.kind, PutPolicyErrorKind::InvalidOperationException(_))
}
pub fn is_invalid_type_exception(&self) -> bool {
matches!(&self.kind, PutPolicyErrorKind::InvalidTypeException(_))
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(&self.kind, PutPolicyErrorKind::LimitExceededException(_))
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(&self.kind, PutPolicyErrorKind::ResourceNotFoundException(_))
}
}
impl std::error::Error for PutPolicyError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
PutPolicyErrorKind::InternalErrorException(_inner) => Some(_inner),
PutPolicyErrorKind::InvalidInputException(_inner) => Some(_inner),
PutPolicyErrorKind::InvalidOperationException(_inner) => Some(_inner),
PutPolicyErrorKind::InvalidTypeException(_inner) => Some(_inner),
PutPolicyErrorKind::LimitExceededException(_inner) => Some(_inner),
PutPolicyErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
PutPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct PutProtocolsListError {
pub kind: PutProtocolsListErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum PutProtocolsListErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
InvalidOperationException(crate::error::InvalidOperationException),
LimitExceededException(crate::error::LimitExceededException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for PutProtocolsListError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
PutProtocolsListErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
PutProtocolsListErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
PutProtocolsListErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
PutProtocolsListErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
PutProtocolsListErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
PutProtocolsListErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for PutProtocolsListError {
fn code(&self) -> Option<&str> {
PutProtocolsListError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl PutProtocolsListError {
pub fn new(kind: PutProtocolsListErrorKind, 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: PutProtocolsListErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: PutProtocolsListErrorKind::Unhandled(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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
PutProtocolsListErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(
&self.kind,
PutProtocolsListErrorKind::InvalidInputException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
PutProtocolsListErrorKind::InvalidOperationException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
PutProtocolsListErrorKind::LimitExceededException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
PutProtocolsListErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for PutProtocolsListError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
PutProtocolsListErrorKind::InternalErrorException(_inner) => Some(_inner),
PutProtocolsListErrorKind::InvalidInputException(_inner) => Some(_inner),
PutProtocolsListErrorKind::InvalidOperationException(_inner) => Some(_inner),
PutProtocolsListErrorKind::LimitExceededException(_inner) => Some(_inner),
PutProtocolsListErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
PutProtocolsListErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct TagResourceError {
pub kind: TagResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum TagResourceErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
InvalidOperationException(crate::error::InvalidOperationException),
LimitExceededException(crate::error::LimitExceededException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for TagResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
TagResourceErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
TagResourceErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
TagResourceErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
TagResourceErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
TagResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
TagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for TagResourceError {
fn code(&self) -> Option<&str> {
TagResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl TagResourceError {
pub fn new(kind: TagResourceErrorKind, 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: TagResourceErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: TagResourceErrorKind::Unhandled(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_internal_error_exception(&self) -> bool {
matches!(&self.kind, TagResourceErrorKind::InternalErrorException(_))
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(&self.kind, TagResourceErrorKind::InvalidInputException(_))
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
TagResourceErrorKind::InvalidOperationException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(&self.kind, TagResourceErrorKind::LimitExceededException(_))
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
TagResourceErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for TagResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
TagResourceErrorKind::InternalErrorException(_inner) => Some(_inner),
TagResourceErrorKind::InvalidInputException(_inner) => Some(_inner),
TagResourceErrorKind::InvalidOperationException(_inner) => Some(_inner),
TagResourceErrorKind::LimitExceededException(_inner) => Some(_inner),
TagResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
TagResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UntagResourceError {
pub kind: UntagResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UntagResourceErrorKind {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
InvalidOperationException(crate::error::InvalidOperationException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for UntagResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UntagResourceErrorKind::InternalErrorException(_inner) => _inner.fmt(f),
UntagResourceErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
UntagResourceErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
UntagResourceErrorKind::ResourceNotFoundException(_inner) => _inner.fmt(f),
UntagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UntagResourceError {
fn code(&self) -> Option<&str> {
UntagResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UntagResourceError {
pub fn new(kind: UntagResourceErrorKind, 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: UntagResourceErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UntagResourceErrorKind::Unhandled(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_internal_error_exception(&self) -> bool {
matches!(
&self.kind,
UntagResourceErrorKind::InternalErrorException(_)
)
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(&self.kind, UntagResourceErrorKind::InvalidInputException(_))
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
UntagResourceErrorKind::InvalidOperationException(_)
)
}
pub fn is_resource_not_found_exception(&self) -> bool {
matches!(
&self.kind,
UntagResourceErrorKind::ResourceNotFoundException(_)
)
}
}
impl std::error::Error for UntagResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UntagResourceErrorKind::InternalErrorException(_inner) => Some(_inner),
UntagResourceErrorKind::InvalidInputException(_inner) => Some(_inner),
UntagResourceErrorKind::InvalidOperationException(_inner) => Some(_inner),
UntagResourceErrorKind::ResourceNotFoundException(_inner) => Some(_inner),
UntagResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ResourceNotFoundException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for ResourceNotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ResourceNotFoundException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl ResourceNotFoundException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ResourceNotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ResourceNotFoundException")?;
if let Some(inner_1) = &self.message {
write!(f, ": {}", inner_1)?;
}
Ok(())
}
}
impl std::error::Error for ResourceNotFoundException {}
pub mod resource_not_found_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::ResourceNotFoundException {
crate::error::ResourceNotFoundException {
message: self.message,
}
}
}
}
impl ResourceNotFoundException {
pub fn builder() -> crate::error::resource_not_found_exception::Builder {
crate::error::resource_not_found_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidOperationException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidOperationException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidOperationException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidOperationException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidOperationException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidOperationException")?;
if let Some(inner_2) = &self.message {
write!(f, ": {}", inner_2)?;
}
Ok(())
}
}
impl std::error::Error for InvalidOperationException {}
pub mod invalid_operation_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::InvalidOperationException {
crate::error::InvalidOperationException {
message: self.message,
}
}
}
}
impl InvalidOperationException {
pub fn builder() -> crate::error::invalid_operation_exception::Builder {
crate::error::invalid_operation_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidInputException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidInputException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidInputException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidInputException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidInputException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidInputException")?;
if let Some(inner_3) = &self.message {
write!(f, ": {}", inner_3)?;
}
Ok(())
}
}
impl std::error::Error for InvalidInputException {}
pub mod invalid_input_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::InvalidInputException {
crate::error::InvalidInputException {
message: self.message,
}
}
}
}
impl InvalidInputException {
pub fn builder() -> crate::error::invalid_input_exception::Builder {
crate::error::invalid_input_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InternalErrorException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InternalErrorException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InternalErrorException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InternalErrorException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InternalErrorException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InternalErrorException")?;
if let Some(inner_4) = &self.message {
write!(f, ": {}", inner_4)?;
}
Ok(())
}
}
impl std::error::Error for InternalErrorException {}
pub mod internal_error_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::InternalErrorException {
crate::error::InternalErrorException {
message: self.message,
}
}
}
}
impl InternalErrorException {
pub fn builder() -> crate::error::internal_error_exception::Builder {
crate::error::internal_error_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct LimitExceededException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for LimitExceededException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("LimitExceededException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl LimitExceededException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for LimitExceededException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "LimitExceededException")?;
if let Some(inner_5) = &self.message {
write!(f, ": {}", inner_5)?;
}
Ok(())
}
}
impl std::error::Error for LimitExceededException {}
pub mod limit_exceeded_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::LimitExceededException {
crate::error::LimitExceededException {
message: self.message,
}
}
}
}
impl LimitExceededException {
pub fn builder() -> crate::error::limit_exceeded_exception::Builder {
crate::error::limit_exceeded_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidTypeException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InvalidTypeException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidTypeException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidTypeException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidTypeException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidTypeException")?;
if let Some(inner_6) = &self.message {
write!(f, ": {}", inner_6)?;
}
Ok(())
}
}
impl std::error::Error for InvalidTypeException {}
pub mod invalid_type_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, 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::InvalidTypeException {
crate::error::InvalidTypeException {
message: self.message,
}
}
}
}
impl InvalidTypeException {
pub fn builder() -> crate::error::invalid_type_exception::Builder {
crate::error::invalid_type_exception::Builder::default()
}
}