#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateVTLDeviceTypeError {
pub kind: UpdateVTLDeviceTypeErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateVTLDeviceTypeError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateVTLDeviceTypeErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateVTLDeviceTypeErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateVTLDeviceTypeError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateVTLDeviceTypeErrorKind::InternalServerError(_inner) => _inner.fmt(f),
UpdateVTLDeviceTypeErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
UpdateVTLDeviceTypeErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateVTLDeviceTypeError {
fn code(&self) -> Option<&str> {
UpdateVTLDeviceTypeError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateVTLDeviceTypeError {
pub fn new(kind: UpdateVTLDeviceTypeErrorKind, 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: UpdateVTLDeviceTypeErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateVTLDeviceTypeErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
UpdateVTLDeviceTypeErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
UpdateVTLDeviceTypeErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for UpdateVTLDeviceTypeError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateVTLDeviceTypeErrorKind::InternalServerError(_inner) => Some(_inner),
UpdateVTLDeviceTypeErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
UpdateVTLDeviceTypeErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidGatewayRequestException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
#[doc(hidden)]
pub error: std::option::Option<crate::model::StorageGatewayError>,
}
impl InvalidGatewayRequestException {
pub fn error(&self) -> std::option::Option<&crate::model::StorageGatewayError> {
self.error.as_ref()
}
}
impl InvalidGatewayRequestException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidGatewayRequestException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidGatewayRequestException")?;
if let Some(inner_1) = &self.message {
{
write!(f, ": {}", inner_1)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidGatewayRequestException {}
pub mod invalid_gateway_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>,
pub(crate) error: std::option::Option<crate::model::StorageGatewayError>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn error(mut self, input: crate::model::StorageGatewayError) -> Self {
self.error = Some(input);
self
}
pub fn set_error(
mut self,
input: std::option::Option<crate::model::StorageGatewayError>,
) -> Self {
self.error = input;
self
}
pub fn build(self) -> crate::error::InvalidGatewayRequestException {
crate::error::InvalidGatewayRequestException {
message: self.message,
error: self.error,
}
}
}
}
impl InvalidGatewayRequestException {
pub fn builder() -> crate::error::invalid_gateway_request_exception::Builder {
crate::error::invalid_gateway_request_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InternalServerError {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
#[doc(hidden)]
pub error: std::option::Option<crate::model::StorageGatewayError>,
}
impl InternalServerError {
pub fn error(&self) -> std::option::Option<&crate::model::StorageGatewayError> {
self.error.as_ref()
}
}
impl InternalServerError {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InternalServerError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InternalServerError")?;
if let Some(inner_2) = &self.message {
{
write!(f, ": {}", inner_2)?;
}
}
Ok(())
}
}
impl std::error::Error for InternalServerError {}
pub mod internal_server_error {
#[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>,
pub(crate) error: std::option::Option<crate::model::StorageGatewayError>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn error(mut self, input: crate::model::StorageGatewayError) -> Self {
self.error = Some(input);
self
}
pub fn set_error(
mut self,
input: std::option::Option<crate::model::StorageGatewayError>,
) -> Self {
self.error = input;
self
}
pub fn build(self) -> crate::error::InternalServerError {
crate::error::InternalServerError {
message: self.message,
error: self.error,
}
}
}
}
impl InternalServerError {
pub fn builder() -> crate::error::internal_server_error::Builder {
crate::error::internal_server_error::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateSnapshotScheduleError {
pub kind: UpdateSnapshotScheduleErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateSnapshotScheduleError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateSnapshotScheduleErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateSnapshotScheduleErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateSnapshotScheduleError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateSnapshotScheduleErrorKind::InternalServerError(_inner) => _inner.fmt(f),
UpdateSnapshotScheduleErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
UpdateSnapshotScheduleErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateSnapshotScheduleError {
fn code(&self) -> Option<&str> {
UpdateSnapshotScheduleError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateSnapshotScheduleError {
pub fn new(kind: UpdateSnapshotScheduleErrorKind, 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: UpdateSnapshotScheduleErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateSnapshotScheduleErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
UpdateSnapshotScheduleErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
UpdateSnapshotScheduleErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for UpdateSnapshotScheduleError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateSnapshotScheduleErrorKind::InternalServerError(_inner) => Some(_inner),
UpdateSnapshotScheduleErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
UpdateSnapshotScheduleErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateSMBSecurityStrategyError {
pub kind: UpdateSMBSecurityStrategyErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateSMBSecurityStrategyError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateSMBSecurityStrategyErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateSMBSecurityStrategyErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateSMBSecurityStrategyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateSMBSecurityStrategyErrorKind::InternalServerError(_inner) => _inner.fmt(f),
UpdateSMBSecurityStrategyErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
UpdateSMBSecurityStrategyErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateSMBSecurityStrategyError {
fn code(&self) -> Option<&str> {
UpdateSMBSecurityStrategyError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateSMBSecurityStrategyError {
pub fn new(kind: UpdateSMBSecurityStrategyErrorKind, 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: UpdateSMBSecurityStrategyErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateSMBSecurityStrategyErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
UpdateSMBSecurityStrategyErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
UpdateSMBSecurityStrategyErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for UpdateSMBSecurityStrategyError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateSMBSecurityStrategyErrorKind::InternalServerError(_inner) => Some(_inner),
UpdateSMBSecurityStrategyErrorKind::InvalidGatewayRequestException(_inner) => {
Some(_inner)
}
UpdateSMBSecurityStrategyErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateSMBLocalGroupsError {
pub kind: UpdateSMBLocalGroupsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateSMBLocalGroupsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateSMBLocalGroupsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateSMBLocalGroupsErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateSMBLocalGroupsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateSMBLocalGroupsErrorKind::InternalServerError(_inner) => _inner.fmt(f),
UpdateSMBLocalGroupsErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
UpdateSMBLocalGroupsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateSMBLocalGroupsError {
fn code(&self) -> Option<&str> {
UpdateSMBLocalGroupsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateSMBLocalGroupsError {
pub fn new(kind: UpdateSMBLocalGroupsErrorKind, 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: UpdateSMBLocalGroupsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateSMBLocalGroupsErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
UpdateSMBLocalGroupsErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
UpdateSMBLocalGroupsErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for UpdateSMBLocalGroupsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateSMBLocalGroupsErrorKind::InternalServerError(_inner) => Some(_inner),
UpdateSMBLocalGroupsErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
UpdateSMBLocalGroupsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateSMBFileShareVisibilityError {
pub kind: UpdateSMBFileShareVisibilityErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateSMBFileShareVisibilityError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateSMBFileShareVisibilityErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateSMBFileShareVisibilityErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateSMBFileShareVisibilityError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateSMBFileShareVisibilityErrorKind::InternalServerError(_inner) => _inner.fmt(f),
UpdateSMBFileShareVisibilityErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
UpdateSMBFileShareVisibilityErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateSMBFileShareVisibilityError {
fn code(&self) -> Option<&str> {
UpdateSMBFileShareVisibilityError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateSMBFileShareVisibilityError {
pub fn new(kind: UpdateSMBFileShareVisibilityErrorKind, 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: UpdateSMBFileShareVisibilityErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateSMBFileShareVisibilityErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
UpdateSMBFileShareVisibilityErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
UpdateSMBFileShareVisibilityErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for UpdateSMBFileShareVisibilityError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateSMBFileShareVisibilityErrorKind::InternalServerError(_inner) => Some(_inner),
UpdateSMBFileShareVisibilityErrorKind::InvalidGatewayRequestException(_inner) => {
Some(_inner)
}
UpdateSMBFileShareVisibilityErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateSMBFileShareError {
pub kind: UpdateSMBFileShareErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateSMBFileShareError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateSMBFileShareErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateSMBFileShareErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateSMBFileShareError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateSMBFileShareErrorKind::InternalServerError(_inner) => _inner.fmt(f),
UpdateSMBFileShareErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
UpdateSMBFileShareErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateSMBFileShareError {
fn code(&self) -> Option<&str> {
UpdateSMBFileShareError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateSMBFileShareError {
pub fn new(kind: UpdateSMBFileShareErrorKind, 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: UpdateSMBFileShareErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateSMBFileShareErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
UpdateSMBFileShareErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
UpdateSMBFileShareErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for UpdateSMBFileShareError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateSMBFileShareErrorKind::InternalServerError(_inner) => Some(_inner),
UpdateSMBFileShareErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
UpdateSMBFileShareErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateNFSFileShareError {
pub kind: UpdateNFSFileShareErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateNFSFileShareError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateNFSFileShareErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateNFSFileShareErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateNFSFileShareError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateNFSFileShareErrorKind::InternalServerError(_inner) => _inner.fmt(f),
UpdateNFSFileShareErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
UpdateNFSFileShareErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateNFSFileShareError {
fn code(&self) -> Option<&str> {
UpdateNFSFileShareError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateNFSFileShareError {
pub fn new(kind: UpdateNFSFileShareErrorKind, 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: UpdateNFSFileShareErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateNFSFileShareErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
UpdateNFSFileShareErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
UpdateNFSFileShareErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for UpdateNFSFileShareError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateNFSFileShareErrorKind::InternalServerError(_inner) => Some(_inner),
UpdateNFSFileShareErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
UpdateNFSFileShareErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateMaintenanceStartTimeError {
pub kind: UpdateMaintenanceStartTimeErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateMaintenanceStartTimeError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateMaintenanceStartTimeErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateMaintenanceStartTimeErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateMaintenanceStartTimeError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateMaintenanceStartTimeErrorKind::InternalServerError(_inner) => _inner.fmt(f),
UpdateMaintenanceStartTimeErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
UpdateMaintenanceStartTimeErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateMaintenanceStartTimeError {
fn code(&self) -> Option<&str> {
UpdateMaintenanceStartTimeError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateMaintenanceStartTimeError {
pub fn new(kind: UpdateMaintenanceStartTimeErrorKind, 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: UpdateMaintenanceStartTimeErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateMaintenanceStartTimeErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
UpdateMaintenanceStartTimeErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
UpdateMaintenanceStartTimeErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for UpdateMaintenanceStartTimeError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateMaintenanceStartTimeErrorKind::InternalServerError(_inner) => Some(_inner),
UpdateMaintenanceStartTimeErrorKind::InvalidGatewayRequestException(_inner) => {
Some(_inner)
}
UpdateMaintenanceStartTimeErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateGatewaySoftwareNowError {
pub kind: UpdateGatewaySoftwareNowErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateGatewaySoftwareNowError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateGatewaySoftwareNowErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateGatewaySoftwareNowErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateGatewaySoftwareNowError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateGatewaySoftwareNowErrorKind::InternalServerError(_inner) => _inner.fmt(f),
UpdateGatewaySoftwareNowErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
UpdateGatewaySoftwareNowErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateGatewaySoftwareNowError {
fn code(&self) -> Option<&str> {
UpdateGatewaySoftwareNowError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateGatewaySoftwareNowError {
pub fn new(kind: UpdateGatewaySoftwareNowErrorKind, 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: UpdateGatewaySoftwareNowErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateGatewaySoftwareNowErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
UpdateGatewaySoftwareNowErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
UpdateGatewaySoftwareNowErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for UpdateGatewaySoftwareNowError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateGatewaySoftwareNowErrorKind::InternalServerError(_inner) => Some(_inner),
UpdateGatewaySoftwareNowErrorKind::InvalidGatewayRequestException(_inner) => {
Some(_inner)
}
UpdateGatewaySoftwareNowErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateGatewayInformationError {
pub kind: UpdateGatewayInformationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateGatewayInformationError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateGatewayInformationErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateGatewayInformationErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateGatewayInformationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateGatewayInformationErrorKind::InternalServerError(_inner) => _inner.fmt(f),
UpdateGatewayInformationErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
UpdateGatewayInformationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateGatewayInformationError {
fn code(&self) -> Option<&str> {
UpdateGatewayInformationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateGatewayInformationError {
pub fn new(kind: UpdateGatewayInformationErrorKind, 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: UpdateGatewayInformationErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateGatewayInformationErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
UpdateGatewayInformationErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
UpdateGatewayInformationErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for UpdateGatewayInformationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateGatewayInformationErrorKind::InternalServerError(_inner) => Some(_inner),
UpdateGatewayInformationErrorKind::InvalidGatewayRequestException(_inner) => {
Some(_inner)
}
UpdateGatewayInformationErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateFileSystemAssociationError {
pub kind: UpdateFileSystemAssociationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateFileSystemAssociationError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateFileSystemAssociationErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateFileSystemAssociationErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateFileSystemAssociationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateFileSystemAssociationErrorKind::InternalServerError(_inner) => _inner.fmt(f),
UpdateFileSystemAssociationErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
UpdateFileSystemAssociationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateFileSystemAssociationError {
fn code(&self) -> Option<&str> {
UpdateFileSystemAssociationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateFileSystemAssociationError {
pub fn new(kind: UpdateFileSystemAssociationErrorKind, 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: UpdateFileSystemAssociationErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateFileSystemAssociationErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
UpdateFileSystemAssociationErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
UpdateFileSystemAssociationErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for UpdateFileSystemAssociationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateFileSystemAssociationErrorKind::InternalServerError(_inner) => Some(_inner),
UpdateFileSystemAssociationErrorKind::InvalidGatewayRequestException(_inner) => {
Some(_inner)
}
UpdateFileSystemAssociationErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateChapCredentialsError {
pub kind: UpdateChapCredentialsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateChapCredentialsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateChapCredentialsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateChapCredentialsErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateChapCredentialsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateChapCredentialsErrorKind::InternalServerError(_inner) => _inner.fmt(f),
UpdateChapCredentialsErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
UpdateChapCredentialsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateChapCredentialsError {
fn code(&self) -> Option<&str> {
UpdateChapCredentialsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateChapCredentialsError {
pub fn new(kind: UpdateChapCredentialsErrorKind, 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: UpdateChapCredentialsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateChapCredentialsErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
UpdateChapCredentialsErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
UpdateChapCredentialsErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for UpdateChapCredentialsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateChapCredentialsErrorKind::InternalServerError(_inner) => Some(_inner),
UpdateChapCredentialsErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
UpdateChapCredentialsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateBandwidthRateLimitScheduleError {
pub kind: UpdateBandwidthRateLimitScheduleErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateBandwidthRateLimitScheduleError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateBandwidthRateLimitScheduleErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateBandwidthRateLimitScheduleErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateBandwidthRateLimitScheduleError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateBandwidthRateLimitScheduleErrorKind::InternalServerError(_inner) => _inner.fmt(f),
UpdateBandwidthRateLimitScheduleErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
UpdateBandwidthRateLimitScheduleErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateBandwidthRateLimitScheduleError {
fn code(&self) -> Option<&str> {
UpdateBandwidthRateLimitScheduleError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateBandwidthRateLimitScheduleError {
pub fn new(
kind: UpdateBandwidthRateLimitScheduleErrorKind,
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: UpdateBandwidthRateLimitScheduleErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateBandwidthRateLimitScheduleErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
UpdateBandwidthRateLimitScheduleErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
UpdateBandwidthRateLimitScheduleErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for UpdateBandwidthRateLimitScheduleError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateBandwidthRateLimitScheduleErrorKind::InternalServerError(_inner) => Some(_inner),
UpdateBandwidthRateLimitScheduleErrorKind::InvalidGatewayRequestException(_inner) => {
Some(_inner)
}
UpdateBandwidthRateLimitScheduleErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateBandwidthRateLimitError {
pub kind: UpdateBandwidthRateLimitErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateBandwidthRateLimitError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateBandwidthRateLimitErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateBandwidthRateLimitErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateBandwidthRateLimitError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateBandwidthRateLimitErrorKind::InternalServerError(_inner) => _inner.fmt(f),
UpdateBandwidthRateLimitErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
UpdateBandwidthRateLimitErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateBandwidthRateLimitError {
fn code(&self) -> Option<&str> {
UpdateBandwidthRateLimitError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateBandwidthRateLimitError {
pub fn new(kind: UpdateBandwidthRateLimitErrorKind, 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: UpdateBandwidthRateLimitErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateBandwidthRateLimitErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
UpdateBandwidthRateLimitErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
UpdateBandwidthRateLimitErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for UpdateBandwidthRateLimitError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateBandwidthRateLimitErrorKind::InternalServerError(_inner) => Some(_inner),
UpdateBandwidthRateLimitErrorKind::InvalidGatewayRequestException(_inner) => {
Some(_inner)
}
UpdateBandwidthRateLimitErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateAutomaticTapeCreationPolicyError {
pub kind: UpdateAutomaticTapeCreationPolicyErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateAutomaticTapeCreationPolicyError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateAutomaticTapeCreationPolicyErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateAutomaticTapeCreationPolicyErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateAutomaticTapeCreationPolicyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateAutomaticTapeCreationPolicyErrorKind::InternalServerError(_inner) => {
_inner.fmt(f)
}
UpdateAutomaticTapeCreationPolicyErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
UpdateAutomaticTapeCreationPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateAutomaticTapeCreationPolicyError {
fn code(&self) -> Option<&str> {
UpdateAutomaticTapeCreationPolicyError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateAutomaticTapeCreationPolicyError {
pub fn new(
kind: UpdateAutomaticTapeCreationPolicyErrorKind,
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: UpdateAutomaticTapeCreationPolicyErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateAutomaticTapeCreationPolicyErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
UpdateAutomaticTapeCreationPolicyErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
UpdateAutomaticTapeCreationPolicyErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for UpdateAutomaticTapeCreationPolicyError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateAutomaticTapeCreationPolicyErrorKind::InternalServerError(_inner) => Some(_inner),
UpdateAutomaticTapeCreationPolicyErrorKind::InvalidGatewayRequestException(_inner) => {
Some(_inner)
}
UpdateAutomaticTapeCreationPolicyErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StartGatewayError {
pub kind: StartGatewayErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for StartGatewayError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: StartGatewayErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum StartGatewayErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for StartGatewayError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
StartGatewayErrorKind::InternalServerError(_inner) => _inner.fmt(f),
StartGatewayErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
StartGatewayErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for StartGatewayError {
fn code(&self) -> Option<&str> {
StartGatewayError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl StartGatewayError {
pub fn new(kind: StartGatewayErrorKind, 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: StartGatewayErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: StartGatewayErrorKind::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_internal_server_error(&self) -> bool {
matches!(&self.kind, StartGatewayErrorKind::InternalServerError(_))
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
StartGatewayErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for StartGatewayError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
StartGatewayErrorKind::InternalServerError(_inner) => Some(_inner),
StartGatewayErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
StartGatewayErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StartAvailabilityMonitorTestError {
pub kind: StartAvailabilityMonitorTestErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for StartAvailabilityMonitorTestError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: StartAvailabilityMonitorTestErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum StartAvailabilityMonitorTestErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for StartAvailabilityMonitorTestError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
StartAvailabilityMonitorTestErrorKind::InternalServerError(_inner) => _inner.fmt(f),
StartAvailabilityMonitorTestErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
StartAvailabilityMonitorTestErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for StartAvailabilityMonitorTestError {
fn code(&self) -> Option<&str> {
StartAvailabilityMonitorTestError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl StartAvailabilityMonitorTestError {
pub fn new(kind: StartAvailabilityMonitorTestErrorKind, 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: StartAvailabilityMonitorTestErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: StartAvailabilityMonitorTestErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
StartAvailabilityMonitorTestErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
StartAvailabilityMonitorTestErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for StartAvailabilityMonitorTestError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
StartAvailabilityMonitorTestErrorKind::InternalServerError(_inner) => Some(_inner),
StartAvailabilityMonitorTestErrorKind::InvalidGatewayRequestException(_inner) => {
Some(_inner)
}
StartAvailabilityMonitorTestErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ShutdownGatewayError {
pub kind: ShutdownGatewayErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ShutdownGatewayError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ShutdownGatewayErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ShutdownGatewayErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ShutdownGatewayError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ShutdownGatewayErrorKind::InternalServerError(_inner) => _inner.fmt(f),
ShutdownGatewayErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
ShutdownGatewayErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ShutdownGatewayError {
fn code(&self) -> Option<&str> {
ShutdownGatewayError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ShutdownGatewayError {
pub fn new(kind: ShutdownGatewayErrorKind, 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: ShutdownGatewayErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ShutdownGatewayErrorKind::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_internal_server_error(&self) -> bool {
matches!(&self.kind, ShutdownGatewayErrorKind::InternalServerError(_))
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
ShutdownGatewayErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for ShutdownGatewayError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ShutdownGatewayErrorKind::InternalServerError(_inner) => Some(_inner),
ShutdownGatewayErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
ShutdownGatewayErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct SetSMBGuestPasswordError {
pub kind: SetSMBGuestPasswordErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for SetSMBGuestPasswordError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: SetSMBGuestPasswordErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum SetSMBGuestPasswordErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for SetSMBGuestPasswordError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
SetSMBGuestPasswordErrorKind::InternalServerError(_inner) => _inner.fmt(f),
SetSMBGuestPasswordErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
SetSMBGuestPasswordErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for SetSMBGuestPasswordError {
fn code(&self) -> Option<&str> {
SetSMBGuestPasswordError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl SetSMBGuestPasswordError {
pub fn new(kind: SetSMBGuestPasswordErrorKind, 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: SetSMBGuestPasswordErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: SetSMBGuestPasswordErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
SetSMBGuestPasswordErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
SetSMBGuestPasswordErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for SetSMBGuestPasswordError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
SetSMBGuestPasswordErrorKind::InternalServerError(_inner) => Some(_inner),
SetSMBGuestPasswordErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
SetSMBGuestPasswordErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct SetLocalConsolePasswordError {
pub kind: SetLocalConsolePasswordErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for SetLocalConsolePasswordError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: SetLocalConsolePasswordErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum SetLocalConsolePasswordErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for SetLocalConsolePasswordError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
SetLocalConsolePasswordErrorKind::InternalServerError(_inner) => _inner.fmt(f),
SetLocalConsolePasswordErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
SetLocalConsolePasswordErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for SetLocalConsolePasswordError {
fn code(&self) -> Option<&str> {
SetLocalConsolePasswordError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl SetLocalConsolePasswordError {
pub fn new(kind: SetLocalConsolePasswordErrorKind, 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: SetLocalConsolePasswordErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: SetLocalConsolePasswordErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
SetLocalConsolePasswordErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
SetLocalConsolePasswordErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for SetLocalConsolePasswordError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
SetLocalConsolePasswordErrorKind::InternalServerError(_inner) => Some(_inner),
SetLocalConsolePasswordErrorKind::InvalidGatewayRequestException(_inner) => {
Some(_inner)
}
SetLocalConsolePasswordErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RetrieveTapeRecoveryPointError {
pub kind: RetrieveTapeRecoveryPointErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for RetrieveTapeRecoveryPointError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: RetrieveTapeRecoveryPointErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RetrieveTapeRecoveryPointErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for RetrieveTapeRecoveryPointError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RetrieveTapeRecoveryPointErrorKind::InternalServerError(_inner) => _inner.fmt(f),
RetrieveTapeRecoveryPointErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
RetrieveTapeRecoveryPointErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RetrieveTapeRecoveryPointError {
fn code(&self) -> Option<&str> {
RetrieveTapeRecoveryPointError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RetrieveTapeRecoveryPointError {
pub fn new(kind: RetrieveTapeRecoveryPointErrorKind, 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: RetrieveTapeRecoveryPointErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RetrieveTapeRecoveryPointErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
RetrieveTapeRecoveryPointErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
RetrieveTapeRecoveryPointErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for RetrieveTapeRecoveryPointError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RetrieveTapeRecoveryPointErrorKind::InternalServerError(_inner) => Some(_inner),
RetrieveTapeRecoveryPointErrorKind::InvalidGatewayRequestException(_inner) => {
Some(_inner)
}
RetrieveTapeRecoveryPointErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RetrieveTapeArchiveError {
pub kind: RetrieveTapeArchiveErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for RetrieveTapeArchiveError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: RetrieveTapeArchiveErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RetrieveTapeArchiveErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for RetrieveTapeArchiveError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RetrieveTapeArchiveErrorKind::InternalServerError(_inner) => _inner.fmt(f),
RetrieveTapeArchiveErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
RetrieveTapeArchiveErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RetrieveTapeArchiveError {
fn code(&self) -> Option<&str> {
RetrieveTapeArchiveError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RetrieveTapeArchiveError {
pub fn new(kind: RetrieveTapeArchiveErrorKind, 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: RetrieveTapeArchiveErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RetrieveTapeArchiveErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
RetrieveTapeArchiveErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
RetrieveTapeArchiveErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for RetrieveTapeArchiveError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RetrieveTapeArchiveErrorKind::InternalServerError(_inner) => Some(_inner),
RetrieveTapeArchiveErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
RetrieveTapeArchiveErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ResetCacheError {
pub kind: ResetCacheErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ResetCacheError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ResetCacheErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ResetCacheErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ResetCacheError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ResetCacheErrorKind::InternalServerError(_inner) => _inner.fmt(f),
ResetCacheErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
ResetCacheErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ResetCacheError {
fn code(&self) -> Option<&str> {
ResetCacheError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ResetCacheError {
pub fn new(kind: ResetCacheErrorKind, 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: ResetCacheErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ResetCacheErrorKind::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_internal_server_error(&self) -> bool {
matches!(&self.kind, ResetCacheErrorKind::InternalServerError(_))
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
ResetCacheErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for ResetCacheError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ResetCacheErrorKind::InternalServerError(_inner) => Some(_inner),
ResetCacheErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
ResetCacheErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RemoveTagsFromResourceError {
pub kind: RemoveTagsFromResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for RemoveTagsFromResourceError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: RemoveTagsFromResourceErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RemoveTagsFromResourceErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for RemoveTagsFromResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RemoveTagsFromResourceErrorKind::InternalServerError(_inner) => _inner.fmt(f),
RemoveTagsFromResourceErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
RemoveTagsFromResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RemoveTagsFromResourceError {
fn code(&self) -> Option<&str> {
RemoveTagsFromResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RemoveTagsFromResourceError {
pub fn new(kind: RemoveTagsFromResourceErrorKind, 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: RemoveTagsFromResourceErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RemoveTagsFromResourceErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
RemoveTagsFromResourceErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
RemoveTagsFromResourceErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for RemoveTagsFromResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RemoveTagsFromResourceErrorKind::InternalServerError(_inner) => Some(_inner),
RemoveTagsFromResourceErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
RemoveTagsFromResourceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RefreshCacheError {
pub kind: RefreshCacheErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for RefreshCacheError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: RefreshCacheErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RefreshCacheErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for RefreshCacheError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RefreshCacheErrorKind::InternalServerError(_inner) => _inner.fmt(f),
RefreshCacheErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
RefreshCacheErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RefreshCacheError {
fn code(&self) -> Option<&str> {
RefreshCacheError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RefreshCacheError {
pub fn new(kind: RefreshCacheErrorKind, 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: RefreshCacheErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RefreshCacheErrorKind::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_internal_server_error(&self) -> bool {
matches!(&self.kind, RefreshCacheErrorKind::InternalServerError(_))
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
RefreshCacheErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for RefreshCacheError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RefreshCacheErrorKind::InternalServerError(_inner) => Some(_inner),
RefreshCacheErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
RefreshCacheErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct NotifyWhenUploadedError {
pub kind: NotifyWhenUploadedErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for NotifyWhenUploadedError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: NotifyWhenUploadedErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum NotifyWhenUploadedErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for NotifyWhenUploadedError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
NotifyWhenUploadedErrorKind::InternalServerError(_inner) => _inner.fmt(f),
NotifyWhenUploadedErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
NotifyWhenUploadedErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for NotifyWhenUploadedError {
fn code(&self) -> Option<&str> {
NotifyWhenUploadedError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl NotifyWhenUploadedError {
pub fn new(kind: NotifyWhenUploadedErrorKind, 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: NotifyWhenUploadedErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: NotifyWhenUploadedErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
NotifyWhenUploadedErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
NotifyWhenUploadedErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for NotifyWhenUploadedError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
NotifyWhenUploadedErrorKind::InternalServerError(_inner) => Some(_inner),
NotifyWhenUploadedErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
NotifyWhenUploadedErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListVolumesError {
pub kind: ListVolumesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListVolumesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListVolumesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListVolumesErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListVolumesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListVolumesErrorKind::InternalServerError(_inner) => _inner.fmt(f),
ListVolumesErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
ListVolumesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListVolumesError {
fn code(&self) -> Option<&str> {
ListVolumesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListVolumesError {
pub fn new(kind: ListVolumesErrorKind, 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: ListVolumesErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListVolumesErrorKind::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_internal_server_error(&self) -> bool {
matches!(&self.kind, ListVolumesErrorKind::InternalServerError(_))
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
ListVolumesErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for ListVolumesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListVolumesErrorKind::InternalServerError(_inner) => Some(_inner),
ListVolumesErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
ListVolumesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListVolumeRecoveryPointsError {
pub kind: ListVolumeRecoveryPointsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListVolumeRecoveryPointsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListVolumeRecoveryPointsErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListVolumeRecoveryPointsErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListVolumeRecoveryPointsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListVolumeRecoveryPointsErrorKind::InternalServerError(_inner) => _inner.fmt(f),
ListVolumeRecoveryPointsErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
ListVolumeRecoveryPointsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListVolumeRecoveryPointsError {
fn code(&self) -> Option<&str> {
ListVolumeRecoveryPointsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListVolumeRecoveryPointsError {
pub fn new(kind: ListVolumeRecoveryPointsErrorKind, 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: ListVolumeRecoveryPointsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListVolumeRecoveryPointsErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
ListVolumeRecoveryPointsErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
ListVolumeRecoveryPointsErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for ListVolumeRecoveryPointsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListVolumeRecoveryPointsErrorKind::InternalServerError(_inner) => Some(_inner),
ListVolumeRecoveryPointsErrorKind::InvalidGatewayRequestException(_inner) => {
Some(_inner)
}
ListVolumeRecoveryPointsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListVolumeInitiatorsError {
pub kind: ListVolumeInitiatorsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListVolumeInitiatorsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListVolumeInitiatorsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListVolumeInitiatorsErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListVolumeInitiatorsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListVolumeInitiatorsErrorKind::InternalServerError(_inner) => _inner.fmt(f),
ListVolumeInitiatorsErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
ListVolumeInitiatorsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListVolumeInitiatorsError {
fn code(&self) -> Option<&str> {
ListVolumeInitiatorsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListVolumeInitiatorsError {
pub fn new(kind: ListVolumeInitiatorsErrorKind, 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: ListVolumeInitiatorsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListVolumeInitiatorsErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
ListVolumeInitiatorsErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
ListVolumeInitiatorsErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for ListVolumeInitiatorsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListVolumeInitiatorsErrorKind::InternalServerError(_inner) => Some(_inner),
ListVolumeInitiatorsErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
ListVolumeInitiatorsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListTapesError {
pub kind: ListTapesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListTapesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListTapesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListTapesErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListTapesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListTapesErrorKind::InternalServerError(_inner) => _inner.fmt(f),
ListTapesErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
ListTapesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListTapesError {
fn code(&self) -> Option<&str> {
ListTapesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListTapesError {
pub fn new(kind: ListTapesErrorKind, 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: ListTapesErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListTapesErrorKind::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_internal_server_error(&self) -> bool {
matches!(&self.kind, ListTapesErrorKind::InternalServerError(_))
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
ListTapesErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for ListTapesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListTapesErrorKind::InternalServerError(_inner) => Some(_inner),
ListTapesErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
ListTapesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListTapePoolsError {
pub kind: ListTapePoolsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListTapePoolsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListTapePoolsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListTapePoolsErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListTapePoolsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListTapePoolsErrorKind::InternalServerError(_inner) => _inner.fmt(f),
ListTapePoolsErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
ListTapePoolsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListTapePoolsError {
fn code(&self) -> Option<&str> {
ListTapePoolsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListTapePoolsError {
pub fn new(kind: ListTapePoolsErrorKind, 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: ListTapePoolsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListTapePoolsErrorKind::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_internal_server_error(&self) -> bool {
matches!(&self.kind, ListTapePoolsErrorKind::InternalServerError(_))
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
ListTapePoolsErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for ListTapePoolsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListTapePoolsErrorKind::InternalServerError(_inner) => Some(_inner),
ListTapePoolsErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
ListTapePoolsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListTagsForResourceError {
pub kind: ListTagsForResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListTagsForResourceError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListTagsForResourceErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListTagsForResourceErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListTagsForResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListTagsForResourceErrorKind::InternalServerError(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::InvalidGatewayRequestException(_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(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListTagsForResourceErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for ListTagsForResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListTagsForResourceErrorKind::InternalServerError(_inner) => Some(_inner),
ListTagsForResourceErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
ListTagsForResourceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListLocalDisksError {
pub kind: ListLocalDisksErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListLocalDisksError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListLocalDisksErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListLocalDisksErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListLocalDisksError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListLocalDisksErrorKind::InternalServerError(_inner) => _inner.fmt(f),
ListLocalDisksErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
ListLocalDisksErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListLocalDisksError {
fn code(&self) -> Option<&str> {
ListLocalDisksError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListLocalDisksError {
pub fn new(kind: ListLocalDisksErrorKind, 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: ListLocalDisksErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListLocalDisksErrorKind::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_internal_server_error(&self) -> bool {
matches!(&self.kind, ListLocalDisksErrorKind::InternalServerError(_))
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
ListLocalDisksErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for ListLocalDisksError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListLocalDisksErrorKind::InternalServerError(_inner) => Some(_inner),
ListLocalDisksErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
ListLocalDisksErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListGatewaysError {
pub kind: ListGatewaysErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListGatewaysError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListGatewaysErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListGatewaysErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListGatewaysError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListGatewaysErrorKind::InternalServerError(_inner) => _inner.fmt(f),
ListGatewaysErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
ListGatewaysErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListGatewaysError {
fn code(&self) -> Option<&str> {
ListGatewaysError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListGatewaysError {
pub fn new(kind: ListGatewaysErrorKind, 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: ListGatewaysErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListGatewaysErrorKind::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_internal_server_error(&self) -> bool {
matches!(&self.kind, ListGatewaysErrorKind::InternalServerError(_))
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
ListGatewaysErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for ListGatewaysError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListGatewaysErrorKind::InternalServerError(_inner) => Some(_inner),
ListGatewaysErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
ListGatewaysErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListFileSystemAssociationsError {
pub kind: ListFileSystemAssociationsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListFileSystemAssociationsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListFileSystemAssociationsErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListFileSystemAssociationsErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListFileSystemAssociationsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListFileSystemAssociationsErrorKind::InternalServerError(_inner) => _inner.fmt(f),
ListFileSystemAssociationsErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
ListFileSystemAssociationsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListFileSystemAssociationsError {
fn code(&self) -> Option<&str> {
ListFileSystemAssociationsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListFileSystemAssociationsError {
pub fn new(kind: ListFileSystemAssociationsErrorKind, 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: ListFileSystemAssociationsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListFileSystemAssociationsErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
ListFileSystemAssociationsErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
ListFileSystemAssociationsErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for ListFileSystemAssociationsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListFileSystemAssociationsErrorKind::InternalServerError(_inner) => Some(_inner),
ListFileSystemAssociationsErrorKind::InvalidGatewayRequestException(_inner) => {
Some(_inner)
}
ListFileSystemAssociationsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListFileSharesError {
pub kind: ListFileSharesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListFileSharesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListFileSharesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListFileSharesErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListFileSharesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListFileSharesErrorKind::InternalServerError(_inner) => _inner.fmt(f),
ListFileSharesErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
ListFileSharesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListFileSharesError {
fn code(&self) -> Option<&str> {
ListFileSharesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListFileSharesError {
pub fn new(kind: ListFileSharesErrorKind, 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: ListFileSharesErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListFileSharesErrorKind::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_internal_server_error(&self) -> bool {
matches!(&self.kind, ListFileSharesErrorKind::InternalServerError(_))
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
ListFileSharesErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for ListFileSharesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListFileSharesErrorKind::InternalServerError(_inner) => Some(_inner),
ListFileSharesErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
ListFileSharesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListAutomaticTapeCreationPoliciesError {
pub kind: ListAutomaticTapeCreationPoliciesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListAutomaticTapeCreationPoliciesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListAutomaticTapeCreationPoliciesErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListAutomaticTapeCreationPoliciesErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListAutomaticTapeCreationPoliciesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListAutomaticTapeCreationPoliciesErrorKind::InternalServerError(_inner) => {
_inner.fmt(f)
}
ListAutomaticTapeCreationPoliciesErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
ListAutomaticTapeCreationPoliciesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListAutomaticTapeCreationPoliciesError {
fn code(&self) -> Option<&str> {
ListAutomaticTapeCreationPoliciesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListAutomaticTapeCreationPoliciesError {
pub fn new(
kind: ListAutomaticTapeCreationPoliciesErrorKind,
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: ListAutomaticTapeCreationPoliciesErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListAutomaticTapeCreationPoliciesErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
ListAutomaticTapeCreationPoliciesErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
ListAutomaticTapeCreationPoliciesErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for ListAutomaticTapeCreationPoliciesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListAutomaticTapeCreationPoliciesErrorKind::InternalServerError(_inner) => Some(_inner),
ListAutomaticTapeCreationPoliciesErrorKind::InvalidGatewayRequestException(_inner) => {
Some(_inner)
}
ListAutomaticTapeCreationPoliciesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct JoinDomainError {
pub kind: JoinDomainErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for JoinDomainError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: JoinDomainErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum JoinDomainErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for JoinDomainError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
JoinDomainErrorKind::InternalServerError(_inner) => _inner.fmt(f),
JoinDomainErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
JoinDomainErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for JoinDomainError {
fn code(&self) -> Option<&str> {
JoinDomainError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl JoinDomainError {
pub fn new(kind: JoinDomainErrorKind, 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: JoinDomainErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: JoinDomainErrorKind::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_internal_server_error(&self) -> bool {
matches!(&self.kind, JoinDomainErrorKind::InternalServerError(_))
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
JoinDomainErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for JoinDomainError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
JoinDomainErrorKind::InternalServerError(_inner) => Some(_inner),
JoinDomainErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
JoinDomainErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DisassociateFileSystemError {
pub kind: DisassociateFileSystemErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DisassociateFileSystemError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DisassociateFileSystemErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DisassociateFileSystemErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DisassociateFileSystemError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DisassociateFileSystemErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DisassociateFileSystemErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
DisassociateFileSystemErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DisassociateFileSystemError {
fn code(&self) -> Option<&str> {
DisassociateFileSystemError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DisassociateFileSystemError {
pub fn new(kind: DisassociateFileSystemErrorKind, 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: DisassociateFileSystemErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DisassociateFileSystemErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DisassociateFileSystemErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
DisassociateFileSystemErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for DisassociateFileSystemError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DisassociateFileSystemErrorKind::InternalServerError(_inner) => Some(_inner),
DisassociateFileSystemErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
DisassociateFileSystemErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DisableGatewayError {
pub kind: DisableGatewayErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DisableGatewayError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DisableGatewayErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DisableGatewayErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DisableGatewayError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DisableGatewayErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DisableGatewayErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
DisableGatewayErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DisableGatewayError {
fn code(&self) -> Option<&str> {
DisableGatewayError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DisableGatewayError {
pub fn new(kind: DisableGatewayErrorKind, 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: DisableGatewayErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DisableGatewayErrorKind::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_internal_server_error(&self) -> bool {
matches!(&self.kind, DisableGatewayErrorKind::InternalServerError(_))
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
DisableGatewayErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for DisableGatewayError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DisableGatewayErrorKind::InternalServerError(_inner) => Some(_inner),
DisableGatewayErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
DisableGatewayErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DetachVolumeError {
pub kind: DetachVolumeErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DetachVolumeError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DetachVolumeErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DetachVolumeErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DetachVolumeError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DetachVolumeErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DetachVolumeErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
DetachVolumeErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DetachVolumeError {
fn code(&self) -> Option<&str> {
DetachVolumeError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DetachVolumeError {
pub fn new(kind: DetachVolumeErrorKind, 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: DetachVolumeErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DetachVolumeErrorKind::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_internal_server_error(&self) -> bool {
matches!(&self.kind, DetachVolumeErrorKind::InternalServerError(_))
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
DetachVolumeErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for DetachVolumeError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DetachVolumeErrorKind::InternalServerError(_inner) => Some(_inner),
DetachVolumeErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
DetachVolumeErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeWorkingStorageError {
pub kind: DescribeWorkingStorageErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeWorkingStorageError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeWorkingStorageErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeWorkingStorageErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeWorkingStorageError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeWorkingStorageErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DescribeWorkingStorageErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
DescribeWorkingStorageErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeWorkingStorageError {
fn code(&self) -> Option<&str> {
DescribeWorkingStorageError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeWorkingStorageError {
pub fn new(kind: DescribeWorkingStorageErrorKind, 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: DescribeWorkingStorageErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeWorkingStorageErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DescribeWorkingStorageErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeWorkingStorageErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for DescribeWorkingStorageError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeWorkingStorageErrorKind::InternalServerError(_inner) => Some(_inner),
DescribeWorkingStorageErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
DescribeWorkingStorageErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeVTLDevicesError {
pub kind: DescribeVTLDevicesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeVTLDevicesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeVTLDevicesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeVTLDevicesErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeVTLDevicesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeVTLDevicesErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DescribeVTLDevicesErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
DescribeVTLDevicesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeVTLDevicesError {
fn code(&self) -> Option<&str> {
DescribeVTLDevicesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeVTLDevicesError {
pub fn new(kind: DescribeVTLDevicesErrorKind, 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: DescribeVTLDevicesErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeVTLDevicesErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DescribeVTLDevicesErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeVTLDevicesErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for DescribeVTLDevicesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeVTLDevicesErrorKind::InternalServerError(_inner) => Some(_inner),
DescribeVTLDevicesErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
DescribeVTLDevicesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeUploadBufferError {
pub kind: DescribeUploadBufferErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeUploadBufferError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeUploadBufferErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeUploadBufferErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeUploadBufferError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeUploadBufferErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DescribeUploadBufferErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
DescribeUploadBufferErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeUploadBufferError {
fn code(&self) -> Option<&str> {
DescribeUploadBufferError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeUploadBufferError {
pub fn new(kind: DescribeUploadBufferErrorKind, 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: DescribeUploadBufferErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeUploadBufferErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DescribeUploadBufferErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeUploadBufferErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for DescribeUploadBufferError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeUploadBufferErrorKind::InternalServerError(_inner) => Some(_inner),
DescribeUploadBufferErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
DescribeUploadBufferErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeTapesError {
pub kind: DescribeTapesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeTapesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeTapesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeTapesErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeTapesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeTapesErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DescribeTapesErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
DescribeTapesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeTapesError {
fn code(&self) -> Option<&str> {
DescribeTapesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeTapesError {
pub fn new(kind: DescribeTapesErrorKind, 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: DescribeTapesErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeTapesErrorKind::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_internal_server_error(&self) -> bool {
matches!(&self.kind, DescribeTapesErrorKind::InternalServerError(_))
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeTapesErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for DescribeTapesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeTapesErrorKind::InternalServerError(_inner) => Some(_inner),
DescribeTapesErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
DescribeTapesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeTapeRecoveryPointsError {
pub kind: DescribeTapeRecoveryPointsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeTapeRecoveryPointsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeTapeRecoveryPointsErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeTapeRecoveryPointsErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeTapeRecoveryPointsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeTapeRecoveryPointsErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DescribeTapeRecoveryPointsErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
DescribeTapeRecoveryPointsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeTapeRecoveryPointsError {
fn code(&self) -> Option<&str> {
DescribeTapeRecoveryPointsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeTapeRecoveryPointsError {
pub fn new(kind: DescribeTapeRecoveryPointsErrorKind, 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: DescribeTapeRecoveryPointsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeTapeRecoveryPointsErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DescribeTapeRecoveryPointsErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeTapeRecoveryPointsErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for DescribeTapeRecoveryPointsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeTapeRecoveryPointsErrorKind::InternalServerError(_inner) => Some(_inner),
DescribeTapeRecoveryPointsErrorKind::InvalidGatewayRequestException(_inner) => {
Some(_inner)
}
DescribeTapeRecoveryPointsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeTapeArchivesError {
pub kind: DescribeTapeArchivesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeTapeArchivesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeTapeArchivesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeTapeArchivesErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeTapeArchivesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeTapeArchivesErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DescribeTapeArchivesErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
DescribeTapeArchivesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeTapeArchivesError {
fn code(&self) -> Option<&str> {
DescribeTapeArchivesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeTapeArchivesError {
pub fn new(kind: DescribeTapeArchivesErrorKind, 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: DescribeTapeArchivesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeTapeArchivesErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DescribeTapeArchivesErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeTapeArchivesErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for DescribeTapeArchivesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeTapeArchivesErrorKind::InternalServerError(_inner) => Some(_inner),
DescribeTapeArchivesErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
DescribeTapeArchivesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeStorediSCSIVolumesError {
pub kind: DescribeStorediSCSIVolumesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeStorediSCSIVolumesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeStorediSCSIVolumesErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeStorediSCSIVolumesErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeStorediSCSIVolumesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeStorediSCSIVolumesErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DescribeStorediSCSIVolumesErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
DescribeStorediSCSIVolumesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeStorediSCSIVolumesError {
fn code(&self) -> Option<&str> {
DescribeStorediSCSIVolumesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeStorediSCSIVolumesError {
pub fn new(kind: DescribeStorediSCSIVolumesErrorKind, 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: DescribeStorediSCSIVolumesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeStorediSCSIVolumesErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DescribeStorediSCSIVolumesErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeStorediSCSIVolumesErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for DescribeStorediSCSIVolumesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeStorediSCSIVolumesErrorKind::InternalServerError(_inner) => Some(_inner),
DescribeStorediSCSIVolumesErrorKind::InvalidGatewayRequestException(_inner) => {
Some(_inner)
}
DescribeStorediSCSIVolumesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeSnapshotScheduleError {
pub kind: DescribeSnapshotScheduleErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeSnapshotScheduleError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeSnapshotScheduleErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeSnapshotScheduleErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeSnapshotScheduleError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeSnapshotScheduleErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DescribeSnapshotScheduleErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
DescribeSnapshotScheduleErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeSnapshotScheduleError {
fn code(&self) -> Option<&str> {
DescribeSnapshotScheduleError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeSnapshotScheduleError {
pub fn new(kind: DescribeSnapshotScheduleErrorKind, 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: DescribeSnapshotScheduleErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeSnapshotScheduleErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DescribeSnapshotScheduleErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeSnapshotScheduleErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for DescribeSnapshotScheduleError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeSnapshotScheduleErrorKind::InternalServerError(_inner) => Some(_inner),
DescribeSnapshotScheduleErrorKind::InvalidGatewayRequestException(_inner) => {
Some(_inner)
}
DescribeSnapshotScheduleErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeSMBSettingsError {
pub kind: DescribeSMBSettingsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeSMBSettingsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeSMBSettingsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeSMBSettingsErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeSMBSettingsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeSMBSettingsErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DescribeSMBSettingsErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
DescribeSMBSettingsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeSMBSettingsError {
fn code(&self) -> Option<&str> {
DescribeSMBSettingsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeSMBSettingsError {
pub fn new(kind: DescribeSMBSettingsErrorKind, 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: DescribeSMBSettingsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeSMBSettingsErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DescribeSMBSettingsErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeSMBSettingsErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for DescribeSMBSettingsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeSMBSettingsErrorKind::InternalServerError(_inner) => Some(_inner),
DescribeSMBSettingsErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
DescribeSMBSettingsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeSMBFileSharesError {
pub kind: DescribeSMBFileSharesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeSMBFileSharesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeSMBFileSharesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeSMBFileSharesErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeSMBFileSharesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeSMBFileSharesErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DescribeSMBFileSharesErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
DescribeSMBFileSharesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeSMBFileSharesError {
fn code(&self) -> Option<&str> {
DescribeSMBFileSharesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeSMBFileSharesError {
pub fn new(kind: DescribeSMBFileSharesErrorKind, 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: DescribeSMBFileSharesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeSMBFileSharesErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DescribeSMBFileSharesErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeSMBFileSharesErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for DescribeSMBFileSharesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeSMBFileSharesErrorKind::InternalServerError(_inner) => Some(_inner),
DescribeSMBFileSharesErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
DescribeSMBFileSharesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeNFSFileSharesError {
pub kind: DescribeNFSFileSharesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeNFSFileSharesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeNFSFileSharesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeNFSFileSharesErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeNFSFileSharesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeNFSFileSharesErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DescribeNFSFileSharesErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
DescribeNFSFileSharesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeNFSFileSharesError {
fn code(&self) -> Option<&str> {
DescribeNFSFileSharesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeNFSFileSharesError {
pub fn new(kind: DescribeNFSFileSharesErrorKind, 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: DescribeNFSFileSharesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeNFSFileSharesErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DescribeNFSFileSharesErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeNFSFileSharesErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for DescribeNFSFileSharesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeNFSFileSharesErrorKind::InternalServerError(_inner) => Some(_inner),
DescribeNFSFileSharesErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
DescribeNFSFileSharesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeMaintenanceStartTimeError {
pub kind: DescribeMaintenanceStartTimeErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeMaintenanceStartTimeError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeMaintenanceStartTimeErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeMaintenanceStartTimeErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeMaintenanceStartTimeError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeMaintenanceStartTimeErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DescribeMaintenanceStartTimeErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
DescribeMaintenanceStartTimeErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeMaintenanceStartTimeError {
fn code(&self) -> Option<&str> {
DescribeMaintenanceStartTimeError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeMaintenanceStartTimeError {
pub fn new(kind: DescribeMaintenanceStartTimeErrorKind, 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: DescribeMaintenanceStartTimeErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeMaintenanceStartTimeErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DescribeMaintenanceStartTimeErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeMaintenanceStartTimeErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for DescribeMaintenanceStartTimeError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeMaintenanceStartTimeErrorKind::InternalServerError(_inner) => Some(_inner),
DescribeMaintenanceStartTimeErrorKind::InvalidGatewayRequestException(_inner) => {
Some(_inner)
}
DescribeMaintenanceStartTimeErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeGatewayInformationError {
pub kind: DescribeGatewayInformationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeGatewayInformationError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeGatewayInformationErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeGatewayInformationErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeGatewayInformationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeGatewayInformationErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DescribeGatewayInformationErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
DescribeGatewayInformationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeGatewayInformationError {
fn code(&self) -> Option<&str> {
DescribeGatewayInformationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeGatewayInformationError {
pub fn new(kind: DescribeGatewayInformationErrorKind, 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: DescribeGatewayInformationErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeGatewayInformationErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DescribeGatewayInformationErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGatewayInformationErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for DescribeGatewayInformationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeGatewayInformationErrorKind::InternalServerError(_inner) => Some(_inner),
DescribeGatewayInformationErrorKind::InvalidGatewayRequestException(_inner) => {
Some(_inner)
}
DescribeGatewayInformationErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeFileSystemAssociationsError {
pub kind: DescribeFileSystemAssociationsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeFileSystemAssociationsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeFileSystemAssociationsErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeFileSystemAssociationsErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeFileSystemAssociationsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeFileSystemAssociationsErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DescribeFileSystemAssociationsErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
DescribeFileSystemAssociationsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeFileSystemAssociationsError {
fn code(&self) -> Option<&str> {
DescribeFileSystemAssociationsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeFileSystemAssociationsError {
pub fn new(
kind: DescribeFileSystemAssociationsErrorKind,
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: DescribeFileSystemAssociationsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeFileSystemAssociationsErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DescribeFileSystemAssociationsErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFileSystemAssociationsErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for DescribeFileSystemAssociationsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeFileSystemAssociationsErrorKind::InternalServerError(_inner) => Some(_inner),
DescribeFileSystemAssociationsErrorKind::InvalidGatewayRequestException(_inner) => {
Some(_inner)
}
DescribeFileSystemAssociationsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeChapCredentialsError {
pub kind: DescribeChapCredentialsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeChapCredentialsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeChapCredentialsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeChapCredentialsErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeChapCredentialsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeChapCredentialsErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DescribeChapCredentialsErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
DescribeChapCredentialsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeChapCredentialsError {
fn code(&self) -> Option<&str> {
DescribeChapCredentialsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeChapCredentialsError {
pub fn new(kind: DescribeChapCredentialsErrorKind, 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: DescribeChapCredentialsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeChapCredentialsErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DescribeChapCredentialsErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeChapCredentialsErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for DescribeChapCredentialsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeChapCredentialsErrorKind::InternalServerError(_inner) => Some(_inner),
DescribeChapCredentialsErrorKind::InvalidGatewayRequestException(_inner) => {
Some(_inner)
}
DescribeChapCredentialsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeCachediSCSIVolumesError {
pub kind: DescribeCachediSCSIVolumesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeCachediSCSIVolumesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeCachediSCSIVolumesErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeCachediSCSIVolumesErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeCachediSCSIVolumesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeCachediSCSIVolumesErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DescribeCachediSCSIVolumesErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
DescribeCachediSCSIVolumesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeCachediSCSIVolumesError {
fn code(&self) -> Option<&str> {
DescribeCachediSCSIVolumesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeCachediSCSIVolumesError {
pub fn new(kind: DescribeCachediSCSIVolumesErrorKind, 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: DescribeCachediSCSIVolumesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeCachediSCSIVolumesErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DescribeCachediSCSIVolumesErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeCachediSCSIVolumesErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for DescribeCachediSCSIVolumesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeCachediSCSIVolumesErrorKind::InternalServerError(_inner) => Some(_inner),
DescribeCachediSCSIVolumesErrorKind::InvalidGatewayRequestException(_inner) => {
Some(_inner)
}
DescribeCachediSCSIVolumesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeCacheError {
pub kind: DescribeCacheErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeCacheError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeCacheErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeCacheErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeCacheError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeCacheErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DescribeCacheErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
DescribeCacheErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeCacheError {
fn code(&self) -> Option<&str> {
DescribeCacheError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeCacheError {
pub fn new(kind: DescribeCacheErrorKind, 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: DescribeCacheErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeCacheErrorKind::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_internal_server_error(&self) -> bool {
matches!(&self.kind, DescribeCacheErrorKind::InternalServerError(_))
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeCacheErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for DescribeCacheError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeCacheErrorKind::InternalServerError(_inner) => Some(_inner),
DescribeCacheErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
DescribeCacheErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeBandwidthRateLimitScheduleError {
pub kind: DescribeBandwidthRateLimitScheduleErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeBandwidthRateLimitScheduleError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeBandwidthRateLimitScheduleErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeBandwidthRateLimitScheduleErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeBandwidthRateLimitScheduleError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeBandwidthRateLimitScheduleErrorKind::InternalServerError(_inner) => {
_inner.fmt(f)
}
DescribeBandwidthRateLimitScheduleErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
DescribeBandwidthRateLimitScheduleErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeBandwidthRateLimitScheduleError {
fn code(&self) -> Option<&str> {
DescribeBandwidthRateLimitScheduleError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeBandwidthRateLimitScheduleError {
pub fn new(
kind: DescribeBandwidthRateLimitScheduleErrorKind,
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: DescribeBandwidthRateLimitScheduleErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeBandwidthRateLimitScheduleErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DescribeBandwidthRateLimitScheduleErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeBandwidthRateLimitScheduleErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for DescribeBandwidthRateLimitScheduleError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeBandwidthRateLimitScheduleErrorKind::InternalServerError(_inner) => {
Some(_inner)
}
DescribeBandwidthRateLimitScheduleErrorKind::InvalidGatewayRequestException(_inner) => {
Some(_inner)
}
DescribeBandwidthRateLimitScheduleErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeBandwidthRateLimitError {
pub kind: DescribeBandwidthRateLimitErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeBandwidthRateLimitError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeBandwidthRateLimitErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeBandwidthRateLimitErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeBandwidthRateLimitError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeBandwidthRateLimitErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DescribeBandwidthRateLimitErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
DescribeBandwidthRateLimitErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeBandwidthRateLimitError {
fn code(&self) -> Option<&str> {
DescribeBandwidthRateLimitError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeBandwidthRateLimitError {
pub fn new(kind: DescribeBandwidthRateLimitErrorKind, 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: DescribeBandwidthRateLimitErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeBandwidthRateLimitErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DescribeBandwidthRateLimitErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeBandwidthRateLimitErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for DescribeBandwidthRateLimitError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeBandwidthRateLimitErrorKind::InternalServerError(_inner) => Some(_inner),
DescribeBandwidthRateLimitErrorKind::InvalidGatewayRequestException(_inner) => {
Some(_inner)
}
DescribeBandwidthRateLimitErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeAvailabilityMonitorTestError {
pub kind: DescribeAvailabilityMonitorTestErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeAvailabilityMonitorTestError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeAvailabilityMonitorTestErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeAvailabilityMonitorTestErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeAvailabilityMonitorTestError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeAvailabilityMonitorTestErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DescribeAvailabilityMonitorTestErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
DescribeAvailabilityMonitorTestErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeAvailabilityMonitorTestError {
fn code(&self) -> Option<&str> {
DescribeAvailabilityMonitorTestError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeAvailabilityMonitorTestError {
pub fn new(
kind: DescribeAvailabilityMonitorTestErrorKind,
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: DescribeAvailabilityMonitorTestErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeAvailabilityMonitorTestErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DescribeAvailabilityMonitorTestErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeAvailabilityMonitorTestErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for DescribeAvailabilityMonitorTestError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeAvailabilityMonitorTestErrorKind::InternalServerError(_inner) => Some(_inner),
DescribeAvailabilityMonitorTestErrorKind::InvalidGatewayRequestException(_inner) => {
Some(_inner)
}
DescribeAvailabilityMonitorTestErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteVolumeError {
pub kind: DeleteVolumeErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteVolumeError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteVolumeErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteVolumeErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteVolumeError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteVolumeErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DeleteVolumeErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
DeleteVolumeErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteVolumeError {
fn code(&self) -> Option<&str> {
DeleteVolumeError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteVolumeError {
pub fn new(kind: DeleteVolumeErrorKind, 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: DeleteVolumeErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteVolumeErrorKind::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_internal_server_error(&self) -> bool {
matches!(&self.kind, DeleteVolumeErrorKind::InternalServerError(_))
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
DeleteVolumeErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for DeleteVolumeError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteVolumeErrorKind::InternalServerError(_inner) => Some(_inner),
DeleteVolumeErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
DeleteVolumeErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteTapePoolError {
pub kind: DeleteTapePoolErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteTapePoolError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteTapePoolErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteTapePoolErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteTapePoolError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteTapePoolErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DeleteTapePoolErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
DeleteTapePoolErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteTapePoolError {
fn code(&self) -> Option<&str> {
DeleteTapePoolError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteTapePoolError {
pub fn new(kind: DeleteTapePoolErrorKind, 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: DeleteTapePoolErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteTapePoolErrorKind::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_internal_server_error(&self) -> bool {
matches!(&self.kind, DeleteTapePoolErrorKind::InternalServerError(_))
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
DeleteTapePoolErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for DeleteTapePoolError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteTapePoolErrorKind::InternalServerError(_inner) => Some(_inner),
DeleteTapePoolErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
DeleteTapePoolErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteTapeArchiveError {
pub kind: DeleteTapeArchiveErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteTapeArchiveError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteTapeArchiveErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteTapeArchiveErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteTapeArchiveError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteTapeArchiveErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DeleteTapeArchiveErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
DeleteTapeArchiveErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteTapeArchiveError {
fn code(&self) -> Option<&str> {
DeleteTapeArchiveError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteTapeArchiveError {
pub fn new(kind: DeleteTapeArchiveErrorKind, 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: DeleteTapeArchiveErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteTapeArchiveErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DeleteTapeArchiveErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
DeleteTapeArchiveErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for DeleteTapeArchiveError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteTapeArchiveErrorKind::InternalServerError(_inner) => Some(_inner),
DeleteTapeArchiveErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
DeleteTapeArchiveErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteTapeError {
pub kind: DeleteTapeErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteTapeError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteTapeErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteTapeErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteTapeError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteTapeErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DeleteTapeErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
DeleteTapeErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteTapeError {
fn code(&self) -> Option<&str> {
DeleteTapeError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteTapeError {
pub fn new(kind: DeleteTapeErrorKind, 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: DeleteTapeErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteTapeErrorKind::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_internal_server_error(&self) -> bool {
matches!(&self.kind, DeleteTapeErrorKind::InternalServerError(_))
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
DeleteTapeErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for DeleteTapeError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteTapeErrorKind::InternalServerError(_inner) => Some(_inner),
DeleteTapeErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
DeleteTapeErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteSnapshotScheduleError {
pub kind: DeleteSnapshotScheduleErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteSnapshotScheduleError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteSnapshotScheduleErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteSnapshotScheduleErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteSnapshotScheduleError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteSnapshotScheduleErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DeleteSnapshotScheduleErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
DeleteSnapshotScheduleErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteSnapshotScheduleError {
fn code(&self) -> Option<&str> {
DeleteSnapshotScheduleError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteSnapshotScheduleError {
pub fn new(kind: DeleteSnapshotScheduleErrorKind, 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: DeleteSnapshotScheduleErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteSnapshotScheduleErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DeleteSnapshotScheduleErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
DeleteSnapshotScheduleErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for DeleteSnapshotScheduleError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteSnapshotScheduleErrorKind::InternalServerError(_inner) => Some(_inner),
DeleteSnapshotScheduleErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
DeleteSnapshotScheduleErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteGatewayError {
pub kind: DeleteGatewayErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteGatewayError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteGatewayErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteGatewayErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteGatewayError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteGatewayErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DeleteGatewayErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
DeleteGatewayErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteGatewayError {
fn code(&self) -> Option<&str> {
DeleteGatewayError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteGatewayError {
pub fn new(kind: DeleteGatewayErrorKind, 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: DeleteGatewayErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteGatewayErrorKind::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_internal_server_error(&self) -> bool {
matches!(&self.kind, DeleteGatewayErrorKind::InternalServerError(_))
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
DeleteGatewayErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for DeleteGatewayError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteGatewayErrorKind::InternalServerError(_inner) => Some(_inner),
DeleteGatewayErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
DeleteGatewayErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteFileShareError {
pub kind: DeleteFileShareErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteFileShareError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteFileShareErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteFileShareErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteFileShareError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteFileShareErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DeleteFileShareErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
DeleteFileShareErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteFileShareError {
fn code(&self) -> Option<&str> {
DeleteFileShareError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteFileShareError {
pub fn new(kind: DeleteFileShareErrorKind, 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: DeleteFileShareErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteFileShareErrorKind::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_internal_server_error(&self) -> bool {
matches!(&self.kind, DeleteFileShareErrorKind::InternalServerError(_))
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
DeleteFileShareErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for DeleteFileShareError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteFileShareErrorKind::InternalServerError(_inner) => Some(_inner),
DeleteFileShareErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
DeleteFileShareErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteChapCredentialsError {
pub kind: DeleteChapCredentialsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteChapCredentialsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteChapCredentialsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteChapCredentialsErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteChapCredentialsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteChapCredentialsErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DeleteChapCredentialsErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
DeleteChapCredentialsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteChapCredentialsError {
fn code(&self) -> Option<&str> {
DeleteChapCredentialsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteChapCredentialsError {
pub fn new(kind: DeleteChapCredentialsErrorKind, 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: DeleteChapCredentialsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteChapCredentialsErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DeleteChapCredentialsErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
DeleteChapCredentialsErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for DeleteChapCredentialsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteChapCredentialsErrorKind::InternalServerError(_inner) => Some(_inner),
DeleteChapCredentialsErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
DeleteChapCredentialsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteBandwidthRateLimitError {
pub kind: DeleteBandwidthRateLimitErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteBandwidthRateLimitError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteBandwidthRateLimitErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteBandwidthRateLimitErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteBandwidthRateLimitError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteBandwidthRateLimitErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DeleteBandwidthRateLimitErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
DeleteBandwidthRateLimitErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteBandwidthRateLimitError {
fn code(&self) -> Option<&str> {
DeleteBandwidthRateLimitError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteBandwidthRateLimitError {
pub fn new(kind: DeleteBandwidthRateLimitErrorKind, 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: DeleteBandwidthRateLimitErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteBandwidthRateLimitErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DeleteBandwidthRateLimitErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
DeleteBandwidthRateLimitErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for DeleteBandwidthRateLimitError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteBandwidthRateLimitErrorKind::InternalServerError(_inner) => Some(_inner),
DeleteBandwidthRateLimitErrorKind::InvalidGatewayRequestException(_inner) => {
Some(_inner)
}
DeleteBandwidthRateLimitErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteAutomaticTapeCreationPolicyError {
pub kind: DeleteAutomaticTapeCreationPolicyErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteAutomaticTapeCreationPolicyError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteAutomaticTapeCreationPolicyErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteAutomaticTapeCreationPolicyErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteAutomaticTapeCreationPolicyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteAutomaticTapeCreationPolicyErrorKind::InternalServerError(_inner) => {
_inner.fmt(f)
}
DeleteAutomaticTapeCreationPolicyErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
DeleteAutomaticTapeCreationPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteAutomaticTapeCreationPolicyError {
fn code(&self) -> Option<&str> {
DeleteAutomaticTapeCreationPolicyError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteAutomaticTapeCreationPolicyError {
pub fn new(
kind: DeleteAutomaticTapeCreationPolicyErrorKind,
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: DeleteAutomaticTapeCreationPolicyErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteAutomaticTapeCreationPolicyErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DeleteAutomaticTapeCreationPolicyErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
DeleteAutomaticTapeCreationPolicyErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for DeleteAutomaticTapeCreationPolicyError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteAutomaticTapeCreationPolicyErrorKind::InternalServerError(_inner) => Some(_inner),
DeleteAutomaticTapeCreationPolicyErrorKind::InvalidGatewayRequestException(_inner) => {
Some(_inner)
}
DeleteAutomaticTapeCreationPolicyErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateTapeWithBarcodeError {
pub kind: CreateTapeWithBarcodeErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateTapeWithBarcodeError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateTapeWithBarcodeErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateTapeWithBarcodeErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateTapeWithBarcodeError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateTapeWithBarcodeErrorKind::InternalServerError(_inner) => _inner.fmt(f),
CreateTapeWithBarcodeErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
CreateTapeWithBarcodeErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateTapeWithBarcodeError {
fn code(&self) -> Option<&str> {
CreateTapeWithBarcodeError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateTapeWithBarcodeError {
pub fn new(kind: CreateTapeWithBarcodeErrorKind, 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: CreateTapeWithBarcodeErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateTapeWithBarcodeErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
CreateTapeWithBarcodeErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
CreateTapeWithBarcodeErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for CreateTapeWithBarcodeError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateTapeWithBarcodeErrorKind::InternalServerError(_inner) => Some(_inner),
CreateTapeWithBarcodeErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
CreateTapeWithBarcodeErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateTapesError {
pub kind: CreateTapesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateTapesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateTapesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateTapesErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateTapesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateTapesErrorKind::InternalServerError(_inner) => _inner.fmt(f),
CreateTapesErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
CreateTapesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateTapesError {
fn code(&self) -> Option<&str> {
CreateTapesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateTapesError {
pub fn new(kind: CreateTapesErrorKind, 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: CreateTapesErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateTapesErrorKind::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_internal_server_error(&self) -> bool {
matches!(&self.kind, CreateTapesErrorKind::InternalServerError(_))
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
CreateTapesErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for CreateTapesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateTapesErrorKind::InternalServerError(_inner) => Some(_inner),
CreateTapesErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
CreateTapesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateTapePoolError {
pub kind: CreateTapePoolErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateTapePoolError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateTapePoolErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateTapePoolErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateTapePoolError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateTapePoolErrorKind::InternalServerError(_inner) => _inner.fmt(f),
CreateTapePoolErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
CreateTapePoolErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateTapePoolError {
fn code(&self) -> Option<&str> {
CreateTapePoolError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateTapePoolError {
pub fn new(kind: CreateTapePoolErrorKind, 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: CreateTapePoolErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateTapePoolErrorKind::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_internal_server_error(&self) -> bool {
matches!(&self.kind, CreateTapePoolErrorKind::InternalServerError(_))
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
CreateTapePoolErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for CreateTapePoolError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateTapePoolErrorKind::InternalServerError(_inner) => Some(_inner),
CreateTapePoolErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
CreateTapePoolErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateStorediSCSIVolumeError {
pub kind: CreateStorediSCSIVolumeErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateStorediSCSIVolumeError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateStorediSCSIVolumeErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateStorediSCSIVolumeErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateStorediSCSIVolumeError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateStorediSCSIVolumeErrorKind::InternalServerError(_inner) => _inner.fmt(f),
CreateStorediSCSIVolumeErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
CreateStorediSCSIVolumeErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateStorediSCSIVolumeError {
fn code(&self) -> Option<&str> {
CreateStorediSCSIVolumeError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateStorediSCSIVolumeError {
pub fn new(kind: CreateStorediSCSIVolumeErrorKind, 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: CreateStorediSCSIVolumeErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateStorediSCSIVolumeErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
CreateStorediSCSIVolumeErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
CreateStorediSCSIVolumeErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for CreateStorediSCSIVolumeError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateStorediSCSIVolumeErrorKind::InternalServerError(_inner) => Some(_inner),
CreateStorediSCSIVolumeErrorKind::InvalidGatewayRequestException(_inner) => {
Some(_inner)
}
CreateStorediSCSIVolumeErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateSnapshotFromVolumeRecoveryPointError {
pub kind: CreateSnapshotFromVolumeRecoveryPointErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateSnapshotFromVolumeRecoveryPointError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateSnapshotFromVolumeRecoveryPointErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateSnapshotFromVolumeRecoveryPointErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
ServiceUnavailableError(crate::error::ServiceUnavailableError),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateSnapshotFromVolumeRecoveryPointError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateSnapshotFromVolumeRecoveryPointErrorKind::InternalServerError(_inner) => {
_inner.fmt(f)
}
CreateSnapshotFromVolumeRecoveryPointErrorKind::InvalidGatewayRequestException(
_inner,
) => _inner.fmt(f),
CreateSnapshotFromVolumeRecoveryPointErrorKind::ServiceUnavailableError(_inner) => {
_inner.fmt(f)
}
CreateSnapshotFromVolumeRecoveryPointErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateSnapshotFromVolumeRecoveryPointError {
fn code(&self) -> Option<&str> {
CreateSnapshotFromVolumeRecoveryPointError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateSnapshotFromVolumeRecoveryPointError {
pub fn new(
kind: CreateSnapshotFromVolumeRecoveryPointErrorKind,
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: CreateSnapshotFromVolumeRecoveryPointErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateSnapshotFromVolumeRecoveryPointErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
CreateSnapshotFromVolumeRecoveryPointErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
CreateSnapshotFromVolumeRecoveryPointErrorKind::InvalidGatewayRequestException(_)
)
}
pub fn is_service_unavailable_error(&self) -> bool {
matches!(
&self.kind,
CreateSnapshotFromVolumeRecoveryPointErrorKind::ServiceUnavailableError(_)
)
}
}
impl std::error::Error for CreateSnapshotFromVolumeRecoveryPointError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateSnapshotFromVolumeRecoveryPointErrorKind::InternalServerError(_inner) => {
Some(_inner)
}
CreateSnapshotFromVolumeRecoveryPointErrorKind::InvalidGatewayRequestException(
_inner,
) => Some(_inner),
CreateSnapshotFromVolumeRecoveryPointErrorKind::ServiceUnavailableError(_inner) => {
Some(_inner)
}
CreateSnapshotFromVolumeRecoveryPointErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ServiceUnavailableError {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
#[doc(hidden)]
pub error: std::option::Option<crate::model::StorageGatewayError>,
}
impl ServiceUnavailableError {
pub fn error(&self) -> std::option::Option<&crate::model::StorageGatewayError> {
self.error.as_ref()
}
}
impl ServiceUnavailableError {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ServiceUnavailableError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ServiceUnavailableError")?;
if let Some(inner_3) = &self.message {
{
write!(f, ": {}", inner_3)?;
}
}
Ok(())
}
}
impl std::error::Error for ServiceUnavailableError {}
pub mod service_unavailable_error {
#[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>,
pub(crate) error: std::option::Option<crate::model::StorageGatewayError>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn error(mut self, input: crate::model::StorageGatewayError) -> Self {
self.error = Some(input);
self
}
pub fn set_error(
mut self,
input: std::option::Option<crate::model::StorageGatewayError>,
) -> Self {
self.error = input;
self
}
pub fn build(self) -> crate::error::ServiceUnavailableError {
crate::error::ServiceUnavailableError {
message: self.message,
error: self.error,
}
}
}
}
impl ServiceUnavailableError {
pub fn builder() -> crate::error::service_unavailable_error::Builder {
crate::error::service_unavailable_error::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateSnapshotError {
pub kind: CreateSnapshotErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateSnapshotError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateSnapshotErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateSnapshotErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
ServiceUnavailableError(crate::error::ServiceUnavailableError),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateSnapshotError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateSnapshotErrorKind::InternalServerError(_inner) => _inner.fmt(f),
CreateSnapshotErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
CreateSnapshotErrorKind::ServiceUnavailableError(_inner) => _inner.fmt(f),
CreateSnapshotErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateSnapshotError {
fn code(&self) -> Option<&str> {
CreateSnapshotError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateSnapshotError {
pub fn new(kind: CreateSnapshotErrorKind, 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: CreateSnapshotErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateSnapshotErrorKind::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_internal_server_error(&self) -> bool {
matches!(&self.kind, CreateSnapshotErrorKind::InternalServerError(_))
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
CreateSnapshotErrorKind::InvalidGatewayRequestException(_)
)
}
pub fn is_service_unavailable_error(&self) -> bool {
matches!(
&self.kind,
CreateSnapshotErrorKind::ServiceUnavailableError(_)
)
}
}
impl std::error::Error for CreateSnapshotError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateSnapshotErrorKind::InternalServerError(_inner) => Some(_inner),
CreateSnapshotErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
CreateSnapshotErrorKind::ServiceUnavailableError(_inner) => Some(_inner),
CreateSnapshotErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateSMBFileShareError {
pub kind: CreateSMBFileShareErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateSMBFileShareError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateSMBFileShareErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateSMBFileShareErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateSMBFileShareError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateSMBFileShareErrorKind::InternalServerError(_inner) => _inner.fmt(f),
CreateSMBFileShareErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
CreateSMBFileShareErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateSMBFileShareError {
fn code(&self) -> Option<&str> {
CreateSMBFileShareError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateSMBFileShareError {
pub fn new(kind: CreateSMBFileShareErrorKind, 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: CreateSMBFileShareErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateSMBFileShareErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
CreateSMBFileShareErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
CreateSMBFileShareErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for CreateSMBFileShareError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateSMBFileShareErrorKind::InternalServerError(_inner) => Some(_inner),
CreateSMBFileShareErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
CreateSMBFileShareErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateNFSFileShareError {
pub kind: CreateNFSFileShareErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateNFSFileShareError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateNFSFileShareErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateNFSFileShareErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateNFSFileShareError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateNFSFileShareErrorKind::InternalServerError(_inner) => _inner.fmt(f),
CreateNFSFileShareErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
CreateNFSFileShareErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateNFSFileShareError {
fn code(&self) -> Option<&str> {
CreateNFSFileShareError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateNFSFileShareError {
pub fn new(kind: CreateNFSFileShareErrorKind, 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: CreateNFSFileShareErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateNFSFileShareErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
CreateNFSFileShareErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
CreateNFSFileShareErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for CreateNFSFileShareError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateNFSFileShareErrorKind::InternalServerError(_inner) => Some(_inner),
CreateNFSFileShareErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
CreateNFSFileShareErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateCachediSCSIVolumeError {
pub kind: CreateCachediSCSIVolumeErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateCachediSCSIVolumeError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateCachediSCSIVolumeErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateCachediSCSIVolumeErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateCachediSCSIVolumeError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateCachediSCSIVolumeErrorKind::InternalServerError(_inner) => _inner.fmt(f),
CreateCachediSCSIVolumeErrorKind::InvalidGatewayRequestException(_inner) => {
_inner.fmt(f)
}
CreateCachediSCSIVolumeErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateCachediSCSIVolumeError {
fn code(&self) -> Option<&str> {
CreateCachediSCSIVolumeError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateCachediSCSIVolumeError {
pub fn new(kind: CreateCachediSCSIVolumeErrorKind, 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: CreateCachediSCSIVolumeErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateCachediSCSIVolumeErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
CreateCachediSCSIVolumeErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
CreateCachediSCSIVolumeErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for CreateCachediSCSIVolumeError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateCachediSCSIVolumeErrorKind::InternalServerError(_inner) => Some(_inner),
CreateCachediSCSIVolumeErrorKind::InvalidGatewayRequestException(_inner) => {
Some(_inner)
}
CreateCachediSCSIVolumeErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CancelRetrievalError {
pub kind: CancelRetrievalErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CancelRetrievalError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CancelRetrievalErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CancelRetrievalErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CancelRetrievalError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CancelRetrievalErrorKind::InternalServerError(_inner) => _inner.fmt(f),
CancelRetrievalErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
CancelRetrievalErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CancelRetrievalError {
fn code(&self) -> Option<&str> {
CancelRetrievalError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CancelRetrievalError {
pub fn new(kind: CancelRetrievalErrorKind, 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: CancelRetrievalErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CancelRetrievalErrorKind::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_internal_server_error(&self) -> bool {
matches!(&self.kind, CancelRetrievalErrorKind::InternalServerError(_))
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
CancelRetrievalErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for CancelRetrievalError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CancelRetrievalErrorKind::InternalServerError(_inner) => Some(_inner),
CancelRetrievalErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
CancelRetrievalErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CancelArchivalError {
pub kind: CancelArchivalErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CancelArchivalError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CancelArchivalErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CancelArchivalErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CancelArchivalError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CancelArchivalErrorKind::InternalServerError(_inner) => _inner.fmt(f),
CancelArchivalErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
CancelArchivalErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CancelArchivalError {
fn code(&self) -> Option<&str> {
CancelArchivalError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CancelArchivalError {
pub fn new(kind: CancelArchivalErrorKind, 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: CancelArchivalErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CancelArchivalErrorKind::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_internal_server_error(&self) -> bool {
matches!(&self.kind, CancelArchivalErrorKind::InternalServerError(_))
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
CancelArchivalErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for CancelArchivalError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CancelArchivalErrorKind::InternalServerError(_inner) => Some(_inner),
CancelArchivalErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
CancelArchivalErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct AttachVolumeError {
pub kind: AttachVolumeErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for AttachVolumeError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: AttachVolumeErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum AttachVolumeErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for AttachVolumeError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
AttachVolumeErrorKind::InternalServerError(_inner) => _inner.fmt(f),
AttachVolumeErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
AttachVolumeErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for AttachVolumeError {
fn code(&self) -> Option<&str> {
AttachVolumeError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl AttachVolumeError {
pub fn new(kind: AttachVolumeErrorKind, 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: AttachVolumeErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: AttachVolumeErrorKind::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_internal_server_error(&self) -> bool {
matches!(&self.kind, AttachVolumeErrorKind::InternalServerError(_))
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
AttachVolumeErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for AttachVolumeError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
AttachVolumeErrorKind::InternalServerError(_inner) => Some(_inner),
AttachVolumeErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
AttachVolumeErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct AssociateFileSystemError {
pub kind: AssociateFileSystemErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for AssociateFileSystemError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: AssociateFileSystemErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum AssociateFileSystemErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for AssociateFileSystemError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
AssociateFileSystemErrorKind::InternalServerError(_inner) => _inner.fmt(f),
AssociateFileSystemErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
AssociateFileSystemErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for AssociateFileSystemError {
fn code(&self) -> Option<&str> {
AssociateFileSystemError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl AssociateFileSystemError {
pub fn new(kind: AssociateFileSystemErrorKind, 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: AssociateFileSystemErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: AssociateFileSystemErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
AssociateFileSystemErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
AssociateFileSystemErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for AssociateFileSystemError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
AssociateFileSystemErrorKind::InternalServerError(_inner) => Some(_inner),
AssociateFileSystemErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
AssociateFileSystemErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct AssignTapePoolError {
pub kind: AssignTapePoolErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for AssignTapePoolError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: AssignTapePoolErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum AssignTapePoolErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for AssignTapePoolError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
AssignTapePoolErrorKind::InternalServerError(_inner) => _inner.fmt(f),
AssignTapePoolErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
AssignTapePoolErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for AssignTapePoolError {
fn code(&self) -> Option<&str> {
AssignTapePoolError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl AssignTapePoolError {
pub fn new(kind: AssignTapePoolErrorKind, 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: AssignTapePoolErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: AssignTapePoolErrorKind::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_internal_server_error(&self) -> bool {
matches!(&self.kind, AssignTapePoolErrorKind::InternalServerError(_))
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
AssignTapePoolErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for AssignTapePoolError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
AssignTapePoolErrorKind::InternalServerError(_inner) => Some(_inner),
AssignTapePoolErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
AssignTapePoolErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct AddWorkingStorageError {
pub kind: AddWorkingStorageErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for AddWorkingStorageError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: AddWorkingStorageErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum AddWorkingStorageErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for AddWorkingStorageError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
AddWorkingStorageErrorKind::InternalServerError(_inner) => _inner.fmt(f),
AddWorkingStorageErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
AddWorkingStorageErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for AddWorkingStorageError {
fn code(&self) -> Option<&str> {
AddWorkingStorageError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl AddWorkingStorageError {
pub fn new(kind: AddWorkingStorageErrorKind, 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: AddWorkingStorageErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: AddWorkingStorageErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
AddWorkingStorageErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
AddWorkingStorageErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for AddWorkingStorageError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
AddWorkingStorageErrorKind::InternalServerError(_inner) => Some(_inner),
AddWorkingStorageErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
AddWorkingStorageErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct AddUploadBufferError {
pub kind: AddUploadBufferErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for AddUploadBufferError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: AddUploadBufferErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum AddUploadBufferErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for AddUploadBufferError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
AddUploadBufferErrorKind::InternalServerError(_inner) => _inner.fmt(f),
AddUploadBufferErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
AddUploadBufferErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for AddUploadBufferError {
fn code(&self) -> Option<&str> {
AddUploadBufferError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl AddUploadBufferError {
pub fn new(kind: AddUploadBufferErrorKind, 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: AddUploadBufferErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: AddUploadBufferErrorKind::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_internal_server_error(&self) -> bool {
matches!(&self.kind, AddUploadBufferErrorKind::InternalServerError(_))
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
AddUploadBufferErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for AddUploadBufferError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
AddUploadBufferErrorKind::InternalServerError(_inner) => Some(_inner),
AddUploadBufferErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
AddUploadBufferErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct AddTagsToResourceError {
pub kind: AddTagsToResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for AddTagsToResourceError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: AddTagsToResourceErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum AddTagsToResourceErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for AddTagsToResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
AddTagsToResourceErrorKind::InternalServerError(_inner) => _inner.fmt(f),
AddTagsToResourceErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
AddTagsToResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for AddTagsToResourceError {
fn code(&self) -> Option<&str> {
AddTagsToResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl AddTagsToResourceError {
pub fn new(kind: AddTagsToResourceErrorKind, 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: AddTagsToResourceErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: AddTagsToResourceErrorKind::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_internal_server_error(&self) -> bool {
matches!(
&self.kind,
AddTagsToResourceErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
AddTagsToResourceErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for AddTagsToResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
AddTagsToResourceErrorKind::InternalServerError(_inner) => Some(_inner),
AddTagsToResourceErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
AddTagsToResourceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct AddCacheError {
pub kind: AddCacheErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for AddCacheError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: AddCacheErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum AddCacheErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for AddCacheError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
AddCacheErrorKind::InternalServerError(_inner) => _inner.fmt(f),
AddCacheErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
AddCacheErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for AddCacheError {
fn code(&self) -> Option<&str> {
AddCacheError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl AddCacheError {
pub fn new(kind: AddCacheErrorKind, 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: AddCacheErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: AddCacheErrorKind::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_internal_server_error(&self) -> bool {
matches!(&self.kind, AddCacheErrorKind::InternalServerError(_))
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
AddCacheErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for AddCacheError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
AddCacheErrorKind::InternalServerError(_inner) => Some(_inner),
AddCacheErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
AddCacheErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ActivateGatewayError {
pub kind: ActivateGatewayErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ActivateGatewayError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ActivateGatewayErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ActivateGatewayErrorKind {
InternalServerError(crate::error::InternalServerError),
InvalidGatewayRequestException(crate::error::InvalidGatewayRequestException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ActivateGatewayError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ActivateGatewayErrorKind::InternalServerError(_inner) => _inner.fmt(f),
ActivateGatewayErrorKind::InvalidGatewayRequestException(_inner) => _inner.fmt(f),
ActivateGatewayErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ActivateGatewayError {
fn code(&self) -> Option<&str> {
ActivateGatewayError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ActivateGatewayError {
pub fn new(kind: ActivateGatewayErrorKind, 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: ActivateGatewayErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ActivateGatewayErrorKind::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_internal_server_error(&self) -> bool {
matches!(&self.kind, ActivateGatewayErrorKind::InternalServerError(_))
}
pub fn is_invalid_gateway_request_exception(&self) -> bool {
matches!(
&self.kind,
ActivateGatewayErrorKind::InvalidGatewayRequestException(_)
)
}
}
impl std::error::Error for ActivateGatewayError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ActivateGatewayErrorKind::InternalServerError(_inner) => Some(_inner),
ActivateGatewayErrorKind::InvalidGatewayRequestException(_inner) => Some(_inner),
ActivateGatewayErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[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 _)
}
}