#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateAccessPointError {
pub kind: CreateAccessPointErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateAccessPointErrorKind {
AccessPointAlreadyExists(crate::error::AccessPointAlreadyExists),
AccessPointLimitExceeded(crate::error::AccessPointLimitExceeded),
BadRequest(crate::error::BadRequest),
FileSystemNotFound(crate::error::FileSystemNotFound),
IncorrectFileSystemLifeCycleState(crate::error::IncorrectFileSystemLifeCycleState),
InternalServerError(crate::error::InternalServerError),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateAccessPointError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateAccessPointErrorKind::AccessPointAlreadyExists(_inner) => _inner.fmt(f),
CreateAccessPointErrorKind::AccessPointLimitExceeded(_inner) => _inner.fmt(f),
CreateAccessPointErrorKind::BadRequest(_inner) => _inner.fmt(f),
CreateAccessPointErrorKind::FileSystemNotFound(_inner) => _inner.fmt(f),
CreateAccessPointErrorKind::IncorrectFileSystemLifeCycleState(_inner) => _inner.fmt(f),
CreateAccessPointErrorKind::InternalServerError(_inner) => _inner.fmt(f),
CreateAccessPointErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateAccessPointError {
fn code(&self) -> Option<&str> {
CreateAccessPointError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateAccessPointError {
pub fn new(kind: CreateAccessPointErrorKind, 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: CreateAccessPointErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateAccessPointErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_access_point_already_exists(&self) -> bool {
matches!(
&self.kind,
CreateAccessPointErrorKind::AccessPointAlreadyExists(_)
)
}
pub fn is_access_point_limit_exceeded(&self) -> bool {
matches!(
&self.kind,
CreateAccessPointErrorKind::AccessPointLimitExceeded(_)
)
}
pub fn is_bad_request(&self) -> bool {
matches!(&self.kind, CreateAccessPointErrorKind::BadRequest(_))
}
pub fn is_file_system_not_found(&self) -> bool {
matches!(
&self.kind,
CreateAccessPointErrorKind::FileSystemNotFound(_)
)
}
pub fn is_incorrect_file_system_life_cycle_state(&self) -> bool {
matches!(
&self.kind,
CreateAccessPointErrorKind::IncorrectFileSystemLifeCycleState(_)
)
}
pub fn is_internal_server_error(&self) -> bool {
matches!(
&self.kind,
CreateAccessPointErrorKind::InternalServerError(_)
)
}
}
impl std::error::Error for CreateAccessPointError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateAccessPointErrorKind::AccessPointAlreadyExists(_inner) => Some(_inner),
CreateAccessPointErrorKind::AccessPointLimitExceeded(_inner) => Some(_inner),
CreateAccessPointErrorKind::BadRequest(_inner) => Some(_inner),
CreateAccessPointErrorKind::FileSystemNotFound(_inner) => Some(_inner),
CreateAccessPointErrorKind::IncorrectFileSystemLifeCycleState(_inner) => Some(_inner),
CreateAccessPointErrorKind::InternalServerError(_inner) => Some(_inner),
CreateAccessPointErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateFileSystemError {
pub kind: CreateFileSystemErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateFileSystemErrorKind {
BadRequest(crate::error::BadRequest),
FileSystemAlreadyExists(crate::error::FileSystemAlreadyExists),
FileSystemLimitExceeded(crate::error::FileSystemLimitExceeded),
InsufficientThroughputCapacity(crate::error::InsufficientThroughputCapacity),
InternalServerError(crate::error::InternalServerError),
ThroughputLimitExceeded(crate::error::ThroughputLimitExceeded),
UnsupportedAvailabilityZone(crate::error::UnsupportedAvailabilityZone),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateFileSystemError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateFileSystemErrorKind::BadRequest(_inner) => _inner.fmt(f),
CreateFileSystemErrorKind::FileSystemAlreadyExists(_inner) => _inner.fmt(f),
CreateFileSystemErrorKind::FileSystemLimitExceeded(_inner) => _inner.fmt(f),
CreateFileSystemErrorKind::InsufficientThroughputCapacity(_inner) => _inner.fmt(f),
CreateFileSystemErrorKind::InternalServerError(_inner) => _inner.fmt(f),
CreateFileSystemErrorKind::ThroughputLimitExceeded(_inner) => _inner.fmt(f),
CreateFileSystemErrorKind::UnsupportedAvailabilityZone(_inner) => _inner.fmt(f),
CreateFileSystemErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateFileSystemError {
fn code(&self) -> Option<&str> {
CreateFileSystemError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateFileSystemError {
pub fn new(kind: CreateFileSystemErrorKind, 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: CreateFileSystemErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateFileSystemErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_bad_request(&self) -> bool {
matches!(&self.kind, CreateFileSystemErrorKind::BadRequest(_))
}
pub fn is_file_system_already_exists(&self) -> bool {
matches!(
&self.kind,
CreateFileSystemErrorKind::FileSystemAlreadyExists(_)
)
}
pub fn is_file_system_limit_exceeded(&self) -> bool {
matches!(
&self.kind,
CreateFileSystemErrorKind::FileSystemLimitExceeded(_)
)
}
pub fn is_insufficient_throughput_capacity(&self) -> bool {
matches!(
&self.kind,
CreateFileSystemErrorKind::InsufficientThroughputCapacity(_)
)
}
pub fn is_internal_server_error(&self) -> bool {
matches!(
&self.kind,
CreateFileSystemErrorKind::InternalServerError(_)
)
}
pub fn is_throughput_limit_exceeded(&self) -> bool {
matches!(
&self.kind,
CreateFileSystemErrorKind::ThroughputLimitExceeded(_)
)
}
pub fn is_unsupported_availability_zone(&self) -> bool {
matches!(
&self.kind,
CreateFileSystemErrorKind::UnsupportedAvailabilityZone(_)
)
}
}
impl std::error::Error for CreateFileSystemError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateFileSystemErrorKind::BadRequest(_inner) => Some(_inner),
CreateFileSystemErrorKind::FileSystemAlreadyExists(_inner) => Some(_inner),
CreateFileSystemErrorKind::FileSystemLimitExceeded(_inner) => Some(_inner),
CreateFileSystemErrorKind::InsufficientThroughputCapacity(_inner) => Some(_inner),
CreateFileSystemErrorKind::InternalServerError(_inner) => Some(_inner),
CreateFileSystemErrorKind::ThroughputLimitExceeded(_inner) => Some(_inner),
CreateFileSystemErrorKind::UnsupportedAvailabilityZone(_inner) => Some(_inner),
CreateFileSystemErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateMountTargetError {
pub kind: CreateMountTargetErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateMountTargetErrorKind {
AvailabilityZonesMismatch(crate::error::AvailabilityZonesMismatch),
BadRequest(crate::error::BadRequest),
FileSystemNotFound(crate::error::FileSystemNotFound),
IncorrectFileSystemLifeCycleState(crate::error::IncorrectFileSystemLifeCycleState),
InternalServerError(crate::error::InternalServerError),
IpAddressInUse(crate::error::IpAddressInUse),
MountTargetConflict(crate::error::MountTargetConflict),
NetworkInterfaceLimitExceeded(crate::error::NetworkInterfaceLimitExceeded),
NoFreeAddressesInSubnet(crate::error::NoFreeAddressesInSubnet),
SecurityGroupLimitExceeded(crate::error::SecurityGroupLimitExceeded),
SecurityGroupNotFound(crate::error::SecurityGroupNotFound),
SubnetNotFound(crate::error::SubnetNotFound),
UnsupportedAvailabilityZone(crate::error::UnsupportedAvailabilityZone),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateMountTargetError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateMountTargetErrorKind::AvailabilityZonesMismatch(_inner) => _inner.fmt(f),
CreateMountTargetErrorKind::BadRequest(_inner) => _inner.fmt(f),
CreateMountTargetErrorKind::FileSystemNotFound(_inner) => _inner.fmt(f),
CreateMountTargetErrorKind::IncorrectFileSystemLifeCycleState(_inner) => _inner.fmt(f),
CreateMountTargetErrorKind::InternalServerError(_inner) => _inner.fmt(f),
CreateMountTargetErrorKind::IpAddressInUse(_inner) => _inner.fmt(f),
CreateMountTargetErrorKind::MountTargetConflict(_inner) => _inner.fmt(f),
CreateMountTargetErrorKind::NetworkInterfaceLimitExceeded(_inner) => _inner.fmt(f),
CreateMountTargetErrorKind::NoFreeAddressesInSubnet(_inner) => _inner.fmt(f),
CreateMountTargetErrorKind::SecurityGroupLimitExceeded(_inner) => _inner.fmt(f),
CreateMountTargetErrorKind::SecurityGroupNotFound(_inner) => _inner.fmt(f),
CreateMountTargetErrorKind::SubnetNotFound(_inner) => _inner.fmt(f),
CreateMountTargetErrorKind::UnsupportedAvailabilityZone(_inner) => _inner.fmt(f),
CreateMountTargetErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateMountTargetError {
fn code(&self) -> Option<&str> {
CreateMountTargetError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateMountTargetError {
pub fn new(kind: CreateMountTargetErrorKind, 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: CreateMountTargetErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateMountTargetErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_availability_zones_mismatch(&self) -> bool {
matches!(
&self.kind,
CreateMountTargetErrorKind::AvailabilityZonesMismatch(_)
)
}
pub fn is_bad_request(&self) -> bool {
matches!(&self.kind, CreateMountTargetErrorKind::BadRequest(_))
}
pub fn is_file_system_not_found(&self) -> bool {
matches!(
&self.kind,
CreateMountTargetErrorKind::FileSystemNotFound(_)
)
}
pub fn is_incorrect_file_system_life_cycle_state(&self) -> bool {
matches!(
&self.kind,
CreateMountTargetErrorKind::IncorrectFileSystemLifeCycleState(_)
)
}
pub fn is_internal_server_error(&self) -> bool {
matches!(
&self.kind,
CreateMountTargetErrorKind::InternalServerError(_)
)
}
pub fn is_ip_address_in_use(&self) -> bool {
matches!(&self.kind, CreateMountTargetErrorKind::IpAddressInUse(_))
}
pub fn is_mount_target_conflict(&self) -> bool {
matches!(
&self.kind,
CreateMountTargetErrorKind::MountTargetConflict(_)
)
}
pub fn is_network_interface_limit_exceeded(&self) -> bool {
matches!(
&self.kind,
CreateMountTargetErrorKind::NetworkInterfaceLimitExceeded(_)
)
}
pub fn is_no_free_addresses_in_subnet(&self) -> bool {
matches!(
&self.kind,
CreateMountTargetErrorKind::NoFreeAddressesInSubnet(_)
)
}
pub fn is_security_group_limit_exceeded(&self) -> bool {
matches!(
&self.kind,
CreateMountTargetErrorKind::SecurityGroupLimitExceeded(_)
)
}
pub fn is_security_group_not_found(&self) -> bool {
matches!(
&self.kind,
CreateMountTargetErrorKind::SecurityGroupNotFound(_)
)
}
pub fn is_subnet_not_found(&self) -> bool {
matches!(&self.kind, CreateMountTargetErrorKind::SubnetNotFound(_))
}
pub fn is_unsupported_availability_zone(&self) -> bool {
matches!(
&self.kind,
CreateMountTargetErrorKind::UnsupportedAvailabilityZone(_)
)
}
}
impl std::error::Error for CreateMountTargetError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateMountTargetErrorKind::AvailabilityZonesMismatch(_inner) => Some(_inner),
CreateMountTargetErrorKind::BadRequest(_inner) => Some(_inner),
CreateMountTargetErrorKind::FileSystemNotFound(_inner) => Some(_inner),
CreateMountTargetErrorKind::IncorrectFileSystemLifeCycleState(_inner) => Some(_inner),
CreateMountTargetErrorKind::InternalServerError(_inner) => Some(_inner),
CreateMountTargetErrorKind::IpAddressInUse(_inner) => Some(_inner),
CreateMountTargetErrorKind::MountTargetConflict(_inner) => Some(_inner),
CreateMountTargetErrorKind::NetworkInterfaceLimitExceeded(_inner) => Some(_inner),
CreateMountTargetErrorKind::NoFreeAddressesInSubnet(_inner) => Some(_inner),
CreateMountTargetErrorKind::SecurityGroupLimitExceeded(_inner) => Some(_inner),
CreateMountTargetErrorKind::SecurityGroupNotFound(_inner) => Some(_inner),
CreateMountTargetErrorKind::SubnetNotFound(_inner) => Some(_inner),
CreateMountTargetErrorKind::UnsupportedAvailabilityZone(_inner) => Some(_inner),
CreateMountTargetErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateTagsError {
pub kind: CreateTagsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateTagsErrorKind {
BadRequest(crate::error::BadRequest),
FileSystemNotFound(crate::error::FileSystemNotFound),
InternalServerError(crate::error::InternalServerError),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateTagsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateTagsErrorKind::BadRequest(_inner) => _inner.fmt(f),
CreateTagsErrorKind::FileSystemNotFound(_inner) => _inner.fmt(f),
CreateTagsErrorKind::InternalServerError(_inner) => _inner.fmt(f),
CreateTagsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateTagsError {
fn code(&self) -> Option<&str> {
CreateTagsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateTagsError {
pub fn new(kind: CreateTagsErrorKind, 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: CreateTagsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateTagsErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_bad_request(&self) -> bool {
matches!(&self.kind, CreateTagsErrorKind::BadRequest(_))
}
pub fn is_file_system_not_found(&self) -> bool {
matches!(&self.kind, CreateTagsErrorKind::FileSystemNotFound(_))
}
pub fn is_internal_server_error(&self) -> bool {
matches!(&self.kind, CreateTagsErrorKind::InternalServerError(_))
}
}
impl std::error::Error for CreateTagsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateTagsErrorKind::BadRequest(_inner) => Some(_inner),
CreateTagsErrorKind::FileSystemNotFound(_inner) => Some(_inner),
CreateTagsErrorKind::InternalServerError(_inner) => Some(_inner),
CreateTagsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteAccessPointError {
pub kind: DeleteAccessPointErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteAccessPointErrorKind {
AccessPointNotFound(crate::error::AccessPointNotFound),
BadRequest(crate::error::BadRequest),
InternalServerError(crate::error::InternalServerError),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteAccessPointError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteAccessPointErrorKind::AccessPointNotFound(_inner) => _inner.fmt(f),
DeleteAccessPointErrorKind::BadRequest(_inner) => _inner.fmt(f),
DeleteAccessPointErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DeleteAccessPointErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteAccessPointError {
fn code(&self) -> Option<&str> {
DeleteAccessPointError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteAccessPointError {
pub fn new(kind: DeleteAccessPointErrorKind, 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: DeleteAccessPointErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteAccessPointErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_access_point_not_found(&self) -> bool {
matches!(
&self.kind,
DeleteAccessPointErrorKind::AccessPointNotFound(_)
)
}
pub fn is_bad_request(&self) -> bool {
matches!(&self.kind, DeleteAccessPointErrorKind::BadRequest(_))
}
pub fn is_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DeleteAccessPointErrorKind::InternalServerError(_)
)
}
}
impl std::error::Error for DeleteAccessPointError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteAccessPointErrorKind::AccessPointNotFound(_inner) => Some(_inner),
DeleteAccessPointErrorKind::BadRequest(_inner) => Some(_inner),
DeleteAccessPointErrorKind::InternalServerError(_inner) => Some(_inner),
DeleteAccessPointErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteFileSystemError {
pub kind: DeleteFileSystemErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteFileSystemErrorKind {
BadRequest(crate::error::BadRequest),
FileSystemInUse(crate::error::FileSystemInUse),
FileSystemNotFound(crate::error::FileSystemNotFound),
InternalServerError(crate::error::InternalServerError),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteFileSystemError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteFileSystemErrorKind::BadRequest(_inner) => _inner.fmt(f),
DeleteFileSystemErrorKind::FileSystemInUse(_inner) => _inner.fmt(f),
DeleteFileSystemErrorKind::FileSystemNotFound(_inner) => _inner.fmt(f),
DeleteFileSystemErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DeleteFileSystemErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteFileSystemError {
fn code(&self) -> Option<&str> {
DeleteFileSystemError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteFileSystemError {
pub fn new(kind: DeleteFileSystemErrorKind, 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: DeleteFileSystemErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteFileSystemErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_bad_request(&self) -> bool {
matches!(&self.kind, DeleteFileSystemErrorKind::BadRequest(_))
}
pub fn is_file_system_in_use(&self) -> bool {
matches!(&self.kind, DeleteFileSystemErrorKind::FileSystemInUse(_))
}
pub fn is_file_system_not_found(&self) -> bool {
matches!(&self.kind, DeleteFileSystemErrorKind::FileSystemNotFound(_))
}
pub fn is_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DeleteFileSystemErrorKind::InternalServerError(_)
)
}
}
impl std::error::Error for DeleteFileSystemError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteFileSystemErrorKind::BadRequest(_inner) => Some(_inner),
DeleteFileSystemErrorKind::FileSystemInUse(_inner) => Some(_inner),
DeleteFileSystemErrorKind::FileSystemNotFound(_inner) => Some(_inner),
DeleteFileSystemErrorKind::InternalServerError(_inner) => Some(_inner),
DeleteFileSystemErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteFileSystemPolicyError {
pub kind: DeleteFileSystemPolicyErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteFileSystemPolicyErrorKind {
FileSystemNotFound(crate::error::FileSystemNotFound),
IncorrectFileSystemLifeCycleState(crate::error::IncorrectFileSystemLifeCycleState),
InternalServerError(crate::error::InternalServerError),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteFileSystemPolicyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteFileSystemPolicyErrorKind::FileSystemNotFound(_inner) => _inner.fmt(f),
DeleteFileSystemPolicyErrorKind::IncorrectFileSystemLifeCycleState(_inner) => {
_inner.fmt(f)
}
DeleteFileSystemPolicyErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DeleteFileSystemPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteFileSystemPolicyError {
fn code(&self) -> Option<&str> {
DeleteFileSystemPolicyError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteFileSystemPolicyError {
pub fn new(kind: DeleteFileSystemPolicyErrorKind, 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: DeleteFileSystemPolicyErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteFileSystemPolicyErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_file_system_not_found(&self) -> bool {
matches!(
&self.kind,
DeleteFileSystemPolicyErrorKind::FileSystemNotFound(_)
)
}
pub fn is_incorrect_file_system_life_cycle_state(&self) -> bool {
matches!(
&self.kind,
DeleteFileSystemPolicyErrorKind::IncorrectFileSystemLifeCycleState(_)
)
}
pub fn is_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DeleteFileSystemPolicyErrorKind::InternalServerError(_)
)
}
}
impl std::error::Error for DeleteFileSystemPolicyError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteFileSystemPolicyErrorKind::FileSystemNotFound(_inner) => Some(_inner),
DeleteFileSystemPolicyErrorKind::IncorrectFileSystemLifeCycleState(_inner) => {
Some(_inner)
}
DeleteFileSystemPolicyErrorKind::InternalServerError(_inner) => Some(_inner),
DeleteFileSystemPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteMountTargetError {
pub kind: DeleteMountTargetErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteMountTargetErrorKind {
BadRequest(crate::error::BadRequest),
DependencyTimeout(crate::error::DependencyTimeout),
InternalServerError(crate::error::InternalServerError),
MountTargetNotFound(crate::error::MountTargetNotFound),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteMountTargetError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteMountTargetErrorKind::BadRequest(_inner) => _inner.fmt(f),
DeleteMountTargetErrorKind::DependencyTimeout(_inner) => _inner.fmt(f),
DeleteMountTargetErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DeleteMountTargetErrorKind::MountTargetNotFound(_inner) => _inner.fmt(f),
DeleteMountTargetErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteMountTargetError {
fn code(&self) -> Option<&str> {
DeleteMountTargetError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteMountTargetError {
pub fn new(kind: DeleteMountTargetErrorKind, 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: DeleteMountTargetErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteMountTargetErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_bad_request(&self) -> bool {
matches!(&self.kind, DeleteMountTargetErrorKind::BadRequest(_))
}
pub fn is_dependency_timeout(&self) -> bool {
matches!(&self.kind, DeleteMountTargetErrorKind::DependencyTimeout(_))
}
pub fn is_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DeleteMountTargetErrorKind::InternalServerError(_)
)
}
pub fn is_mount_target_not_found(&self) -> bool {
matches!(
&self.kind,
DeleteMountTargetErrorKind::MountTargetNotFound(_)
)
}
}
impl std::error::Error for DeleteMountTargetError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteMountTargetErrorKind::BadRequest(_inner) => Some(_inner),
DeleteMountTargetErrorKind::DependencyTimeout(_inner) => Some(_inner),
DeleteMountTargetErrorKind::InternalServerError(_inner) => Some(_inner),
DeleteMountTargetErrorKind::MountTargetNotFound(_inner) => Some(_inner),
DeleteMountTargetErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteTagsError {
pub kind: DeleteTagsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteTagsErrorKind {
BadRequest(crate::error::BadRequest),
FileSystemNotFound(crate::error::FileSystemNotFound),
InternalServerError(crate::error::InternalServerError),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteTagsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteTagsErrorKind::BadRequest(_inner) => _inner.fmt(f),
DeleteTagsErrorKind::FileSystemNotFound(_inner) => _inner.fmt(f),
DeleteTagsErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DeleteTagsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteTagsError {
fn code(&self) -> Option<&str> {
DeleteTagsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteTagsError {
pub fn new(kind: DeleteTagsErrorKind, 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: DeleteTagsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteTagsErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_bad_request(&self) -> bool {
matches!(&self.kind, DeleteTagsErrorKind::BadRequest(_))
}
pub fn is_file_system_not_found(&self) -> bool {
matches!(&self.kind, DeleteTagsErrorKind::FileSystemNotFound(_))
}
pub fn is_internal_server_error(&self) -> bool {
matches!(&self.kind, DeleteTagsErrorKind::InternalServerError(_))
}
}
impl std::error::Error for DeleteTagsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteTagsErrorKind::BadRequest(_inner) => Some(_inner),
DeleteTagsErrorKind::FileSystemNotFound(_inner) => Some(_inner),
DeleteTagsErrorKind::InternalServerError(_inner) => Some(_inner),
DeleteTagsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeAccessPointsError {
pub kind: DescribeAccessPointsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeAccessPointsErrorKind {
AccessPointNotFound(crate::error::AccessPointNotFound),
BadRequest(crate::error::BadRequest),
FileSystemNotFound(crate::error::FileSystemNotFound),
InternalServerError(crate::error::InternalServerError),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DescribeAccessPointsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeAccessPointsErrorKind::AccessPointNotFound(_inner) => _inner.fmt(f),
DescribeAccessPointsErrorKind::BadRequest(_inner) => _inner.fmt(f),
DescribeAccessPointsErrorKind::FileSystemNotFound(_inner) => _inner.fmt(f),
DescribeAccessPointsErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DescribeAccessPointsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeAccessPointsError {
fn code(&self) -> Option<&str> {
DescribeAccessPointsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeAccessPointsError {
pub fn new(kind: DescribeAccessPointsErrorKind, 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: DescribeAccessPointsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeAccessPointsErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_access_point_not_found(&self) -> bool {
matches!(
&self.kind,
DescribeAccessPointsErrorKind::AccessPointNotFound(_)
)
}
pub fn is_bad_request(&self) -> bool {
matches!(&self.kind, DescribeAccessPointsErrorKind::BadRequest(_))
}
pub fn is_file_system_not_found(&self) -> bool {
matches!(
&self.kind,
DescribeAccessPointsErrorKind::FileSystemNotFound(_)
)
}
pub fn is_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DescribeAccessPointsErrorKind::InternalServerError(_)
)
}
}
impl std::error::Error for DescribeAccessPointsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeAccessPointsErrorKind::AccessPointNotFound(_inner) => Some(_inner),
DescribeAccessPointsErrorKind::BadRequest(_inner) => Some(_inner),
DescribeAccessPointsErrorKind::FileSystemNotFound(_inner) => Some(_inner),
DescribeAccessPointsErrorKind::InternalServerError(_inner) => Some(_inner),
DescribeAccessPointsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeAccountPreferencesError {
pub kind: DescribeAccountPreferencesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeAccountPreferencesErrorKind {
InternalServerError(crate::error::InternalServerError),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DescribeAccountPreferencesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeAccountPreferencesErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DescribeAccountPreferencesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeAccountPreferencesError {
fn code(&self) -> Option<&str> {
DescribeAccountPreferencesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeAccountPreferencesError {
pub fn new(kind: DescribeAccountPreferencesErrorKind, 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: DescribeAccountPreferencesErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeAccountPreferencesErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DescribeAccountPreferencesErrorKind::InternalServerError(_)
)
}
}
impl std::error::Error for DescribeAccountPreferencesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeAccountPreferencesErrorKind::InternalServerError(_inner) => Some(_inner),
DescribeAccountPreferencesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeBackupPolicyError {
pub kind: DescribeBackupPolicyErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeBackupPolicyErrorKind {
BadRequest(crate::error::BadRequest),
FileSystemNotFound(crate::error::FileSystemNotFound),
InternalServerError(crate::error::InternalServerError),
PolicyNotFound(crate::error::PolicyNotFound),
ValidationException(crate::error::ValidationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DescribeBackupPolicyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeBackupPolicyErrorKind::BadRequest(_inner) => _inner.fmt(f),
DescribeBackupPolicyErrorKind::FileSystemNotFound(_inner) => _inner.fmt(f),
DescribeBackupPolicyErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DescribeBackupPolicyErrorKind::PolicyNotFound(_inner) => _inner.fmt(f),
DescribeBackupPolicyErrorKind::ValidationException(_inner) => _inner.fmt(f),
DescribeBackupPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeBackupPolicyError {
fn code(&self) -> Option<&str> {
DescribeBackupPolicyError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeBackupPolicyError {
pub fn new(kind: DescribeBackupPolicyErrorKind, 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: DescribeBackupPolicyErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeBackupPolicyErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_bad_request(&self) -> bool {
matches!(&self.kind, DescribeBackupPolicyErrorKind::BadRequest(_))
}
pub fn is_file_system_not_found(&self) -> bool {
matches!(
&self.kind,
DescribeBackupPolicyErrorKind::FileSystemNotFound(_)
)
}
pub fn is_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DescribeBackupPolicyErrorKind::InternalServerError(_)
)
}
pub fn is_policy_not_found(&self) -> bool {
matches!(&self.kind, DescribeBackupPolicyErrorKind::PolicyNotFound(_))
}
pub fn is_validation_exception(&self) -> bool {
matches!(
&self.kind,
DescribeBackupPolicyErrorKind::ValidationException(_)
)
}
}
impl std::error::Error for DescribeBackupPolicyError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeBackupPolicyErrorKind::BadRequest(_inner) => Some(_inner),
DescribeBackupPolicyErrorKind::FileSystemNotFound(_inner) => Some(_inner),
DescribeBackupPolicyErrorKind::InternalServerError(_inner) => Some(_inner),
DescribeBackupPolicyErrorKind::PolicyNotFound(_inner) => Some(_inner),
DescribeBackupPolicyErrorKind::ValidationException(_inner) => Some(_inner),
DescribeBackupPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeFileSystemPolicyError {
pub kind: DescribeFileSystemPolicyErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeFileSystemPolicyErrorKind {
FileSystemNotFound(crate::error::FileSystemNotFound),
InternalServerError(crate::error::InternalServerError),
PolicyNotFound(crate::error::PolicyNotFound),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DescribeFileSystemPolicyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeFileSystemPolicyErrorKind::FileSystemNotFound(_inner) => _inner.fmt(f),
DescribeFileSystemPolicyErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DescribeFileSystemPolicyErrorKind::PolicyNotFound(_inner) => _inner.fmt(f),
DescribeFileSystemPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeFileSystemPolicyError {
fn code(&self) -> Option<&str> {
DescribeFileSystemPolicyError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeFileSystemPolicyError {
pub fn new(kind: DescribeFileSystemPolicyErrorKind, 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: DescribeFileSystemPolicyErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeFileSystemPolicyErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_file_system_not_found(&self) -> bool {
matches!(
&self.kind,
DescribeFileSystemPolicyErrorKind::FileSystemNotFound(_)
)
}
pub fn is_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DescribeFileSystemPolicyErrorKind::InternalServerError(_)
)
}
pub fn is_policy_not_found(&self) -> bool {
matches!(
&self.kind,
DescribeFileSystemPolicyErrorKind::PolicyNotFound(_)
)
}
}
impl std::error::Error for DescribeFileSystemPolicyError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeFileSystemPolicyErrorKind::FileSystemNotFound(_inner) => Some(_inner),
DescribeFileSystemPolicyErrorKind::InternalServerError(_inner) => Some(_inner),
DescribeFileSystemPolicyErrorKind::PolicyNotFound(_inner) => Some(_inner),
DescribeFileSystemPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeFileSystemsError {
pub kind: DescribeFileSystemsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeFileSystemsErrorKind {
BadRequest(crate::error::BadRequest),
FileSystemNotFound(crate::error::FileSystemNotFound),
InternalServerError(crate::error::InternalServerError),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DescribeFileSystemsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeFileSystemsErrorKind::BadRequest(_inner) => _inner.fmt(f),
DescribeFileSystemsErrorKind::FileSystemNotFound(_inner) => _inner.fmt(f),
DescribeFileSystemsErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DescribeFileSystemsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeFileSystemsError {
fn code(&self) -> Option<&str> {
DescribeFileSystemsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeFileSystemsError {
pub fn new(kind: DescribeFileSystemsErrorKind, 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: DescribeFileSystemsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeFileSystemsErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_bad_request(&self) -> bool {
matches!(&self.kind, DescribeFileSystemsErrorKind::BadRequest(_))
}
pub fn is_file_system_not_found(&self) -> bool {
matches!(
&self.kind,
DescribeFileSystemsErrorKind::FileSystemNotFound(_)
)
}
pub fn is_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DescribeFileSystemsErrorKind::InternalServerError(_)
)
}
}
impl std::error::Error for DescribeFileSystemsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeFileSystemsErrorKind::BadRequest(_inner) => Some(_inner),
DescribeFileSystemsErrorKind::FileSystemNotFound(_inner) => Some(_inner),
DescribeFileSystemsErrorKind::InternalServerError(_inner) => Some(_inner),
DescribeFileSystemsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeLifecycleConfigurationError {
pub kind: DescribeLifecycleConfigurationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeLifecycleConfigurationErrorKind {
BadRequest(crate::error::BadRequest),
FileSystemNotFound(crate::error::FileSystemNotFound),
InternalServerError(crate::error::InternalServerError),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DescribeLifecycleConfigurationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeLifecycleConfigurationErrorKind::BadRequest(_inner) => _inner.fmt(f),
DescribeLifecycleConfigurationErrorKind::FileSystemNotFound(_inner) => _inner.fmt(f),
DescribeLifecycleConfigurationErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DescribeLifecycleConfigurationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeLifecycleConfigurationError {
fn code(&self) -> Option<&str> {
DescribeLifecycleConfigurationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeLifecycleConfigurationError {
pub fn new(
kind: DescribeLifecycleConfigurationErrorKind,
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: DescribeLifecycleConfigurationErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeLifecycleConfigurationErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_bad_request(&self) -> bool {
matches!(
&self.kind,
DescribeLifecycleConfigurationErrorKind::BadRequest(_)
)
}
pub fn is_file_system_not_found(&self) -> bool {
matches!(
&self.kind,
DescribeLifecycleConfigurationErrorKind::FileSystemNotFound(_)
)
}
pub fn is_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DescribeLifecycleConfigurationErrorKind::InternalServerError(_)
)
}
}
impl std::error::Error for DescribeLifecycleConfigurationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeLifecycleConfigurationErrorKind::BadRequest(_inner) => Some(_inner),
DescribeLifecycleConfigurationErrorKind::FileSystemNotFound(_inner) => Some(_inner),
DescribeLifecycleConfigurationErrorKind::InternalServerError(_inner) => Some(_inner),
DescribeLifecycleConfigurationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeMountTargetsError {
pub kind: DescribeMountTargetsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeMountTargetsErrorKind {
AccessPointNotFound(crate::error::AccessPointNotFound),
BadRequest(crate::error::BadRequest),
FileSystemNotFound(crate::error::FileSystemNotFound),
InternalServerError(crate::error::InternalServerError),
MountTargetNotFound(crate::error::MountTargetNotFound),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DescribeMountTargetsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeMountTargetsErrorKind::AccessPointNotFound(_inner) => _inner.fmt(f),
DescribeMountTargetsErrorKind::BadRequest(_inner) => _inner.fmt(f),
DescribeMountTargetsErrorKind::FileSystemNotFound(_inner) => _inner.fmt(f),
DescribeMountTargetsErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DescribeMountTargetsErrorKind::MountTargetNotFound(_inner) => _inner.fmt(f),
DescribeMountTargetsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeMountTargetsError {
fn code(&self) -> Option<&str> {
DescribeMountTargetsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeMountTargetsError {
pub fn new(kind: DescribeMountTargetsErrorKind, 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: DescribeMountTargetsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeMountTargetsErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_access_point_not_found(&self) -> bool {
matches!(
&self.kind,
DescribeMountTargetsErrorKind::AccessPointNotFound(_)
)
}
pub fn is_bad_request(&self) -> bool {
matches!(&self.kind, DescribeMountTargetsErrorKind::BadRequest(_))
}
pub fn is_file_system_not_found(&self) -> bool {
matches!(
&self.kind,
DescribeMountTargetsErrorKind::FileSystemNotFound(_)
)
}
pub fn is_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DescribeMountTargetsErrorKind::InternalServerError(_)
)
}
pub fn is_mount_target_not_found(&self) -> bool {
matches!(
&self.kind,
DescribeMountTargetsErrorKind::MountTargetNotFound(_)
)
}
}
impl std::error::Error for DescribeMountTargetsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeMountTargetsErrorKind::AccessPointNotFound(_inner) => Some(_inner),
DescribeMountTargetsErrorKind::BadRequest(_inner) => Some(_inner),
DescribeMountTargetsErrorKind::FileSystemNotFound(_inner) => Some(_inner),
DescribeMountTargetsErrorKind::InternalServerError(_inner) => Some(_inner),
DescribeMountTargetsErrorKind::MountTargetNotFound(_inner) => Some(_inner),
DescribeMountTargetsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeMountTargetSecurityGroupsError {
pub kind: DescribeMountTargetSecurityGroupsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeMountTargetSecurityGroupsErrorKind {
BadRequest(crate::error::BadRequest),
IncorrectMountTargetState(crate::error::IncorrectMountTargetState),
InternalServerError(crate::error::InternalServerError),
MountTargetNotFound(crate::error::MountTargetNotFound),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DescribeMountTargetSecurityGroupsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeMountTargetSecurityGroupsErrorKind::BadRequest(_inner) => _inner.fmt(f),
DescribeMountTargetSecurityGroupsErrorKind::IncorrectMountTargetState(_inner) => {
_inner.fmt(f)
}
DescribeMountTargetSecurityGroupsErrorKind::InternalServerError(_inner) => {
_inner.fmt(f)
}
DescribeMountTargetSecurityGroupsErrorKind::MountTargetNotFound(_inner) => {
_inner.fmt(f)
}
DescribeMountTargetSecurityGroupsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeMountTargetSecurityGroupsError {
fn code(&self) -> Option<&str> {
DescribeMountTargetSecurityGroupsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeMountTargetSecurityGroupsError {
pub fn new(
kind: DescribeMountTargetSecurityGroupsErrorKind,
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: DescribeMountTargetSecurityGroupsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeMountTargetSecurityGroupsErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_bad_request(&self) -> bool {
matches!(
&self.kind,
DescribeMountTargetSecurityGroupsErrorKind::BadRequest(_)
)
}
pub fn is_incorrect_mount_target_state(&self) -> bool {
matches!(
&self.kind,
DescribeMountTargetSecurityGroupsErrorKind::IncorrectMountTargetState(_)
)
}
pub fn is_internal_server_error(&self) -> bool {
matches!(
&self.kind,
DescribeMountTargetSecurityGroupsErrorKind::InternalServerError(_)
)
}
pub fn is_mount_target_not_found(&self) -> bool {
matches!(
&self.kind,
DescribeMountTargetSecurityGroupsErrorKind::MountTargetNotFound(_)
)
}
}
impl std::error::Error for DescribeMountTargetSecurityGroupsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeMountTargetSecurityGroupsErrorKind::BadRequest(_inner) => Some(_inner),
DescribeMountTargetSecurityGroupsErrorKind::IncorrectMountTargetState(_inner) => {
Some(_inner)
}
DescribeMountTargetSecurityGroupsErrorKind::InternalServerError(_inner) => Some(_inner),
DescribeMountTargetSecurityGroupsErrorKind::MountTargetNotFound(_inner) => Some(_inner),
DescribeMountTargetSecurityGroupsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeTagsError {
pub kind: DescribeTagsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeTagsErrorKind {
BadRequest(crate::error::BadRequest),
FileSystemNotFound(crate::error::FileSystemNotFound),
InternalServerError(crate::error::InternalServerError),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DescribeTagsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeTagsErrorKind::BadRequest(_inner) => _inner.fmt(f),
DescribeTagsErrorKind::FileSystemNotFound(_inner) => _inner.fmt(f),
DescribeTagsErrorKind::InternalServerError(_inner) => _inner.fmt(f),
DescribeTagsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeTagsError {
fn code(&self) -> Option<&str> {
DescribeTagsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeTagsError {
pub fn new(kind: DescribeTagsErrorKind, 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: DescribeTagsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeTagsErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_bad_request(&self) -> bool {
matches!(&self.kind, DescribeTagsErrorKind::BadRequest(_))
}
pub fn is_file_system_not_found(&self) -> bool {
matches!(&self.kind, DescribeTagsErrorKind::FileSystemNotFound(_))
}
pub fn is_internal_server_error(&self) -> bool {
matches!(&self.kind, DescribeTagsErrorKind::InternalServerError(_))
}
}
impl std::error::Error for DescribeTagsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeTagsErrorKind::BadRequest(_inner) => Some(_inner),
DescribeTagsErrorKind::FileSystemNotFound(_inner) => Some(_inner),
DescribeTagsErrorKind::InternalServerError(_inner) => Some(_inner),
DescribeTagsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListTagsForResourceError {
pub kind: ListTagsForResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListTagsForResourceErrorKind {
AccessPointNotFound(crate::error::AccessPointNotFound),
BadRequest(crate::error::BadRequest),
FileSystemNotFound(crate::error::FileSystemNotFound),
InternalServerError(crate::error::InternalServerError),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListTagsForResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListTagsForResourceErrorKind::AccessPointNotFound(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::BadRequest(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::FileSystemNotFound(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::InternalServerError(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListTagsForResourceError {
fn code(&self) -> Option<&str> {
ListTagsForResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListTagsForResourceError {
pub fn new(kind: ListTagsForResourceErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: ListTagsForResourceErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListTagsForResourceErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_access_point_not_found(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::AccessPointNotFound(_)
)
}
pub fn is_bad_request(&self) -> bool {
matches!(&self.kind, ListTagsForResourceErrorKind::BadRequest(_))
}
pub fn is_file_system_not_found(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::FileSystemNotFound(_)
)
}
pub fn is_internal_server_error(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::InternalServerError(_)
)
}
}
impl std::error::Error for ListTagsForResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListTagsForResourceErrorKind::AccessPointNotFound(_inner) => Some(_inner),
ListTagsForResourceErrorKind::BadRequest(_inner) => Some(_inner),
ListTagsForResourceErrorKind::FileSystemNotFound(_inner) => Some(_inner),
ListTagsForResourceErrorKind::InternalServerError(_inner) => Some(_inner),
ListTagsForResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ModifyMountTargetSecurityGroupsError {
pub kind: ModifyMountTargetSecurityGroupsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ModifyMountTargetSecurityGroupsErrorKind {
BadRequest(crate::error::BadRequest),
IncorrectMountTargetState(crate::error::IncorrectMountTargetState),
InternalServerError(crate::error::InternalServerError),
MountTargetNotFound(crate::error::MountTargetNotFound),
SecurityGroupLimitExceeded(crate::error::SecurityGroupLimitExceeded),
SecurityGroupNotFound(crate::error::SecurityGroupNotFound),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ModifyMountTargetSecurityGroupsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ModifyMountTargetSecurityGroupsErrorKind::BadRequest(_inner) => _inner.fmt(f),
ModifyMountTargetSecurityGroupsErrorKind::IncorrectMountTargetState(_inner) => {
_inner.fmt(f)
}
ModifyMountTargetSecurityGroupsErrorKind::InternalServerError(_inner) => _inner.fmt(f),
ModifyMountTargetSecurityGroupsErrorKind::MountTargetNotFound(_inner) => _inner.fmt(f),
ModifyMountTargetSecurityGroupsErrorKind::SecurityGroupLimitExceeded(_inner) => {
_inner.fmt(f)
}
ModifyMountTargetSecurityGroupsErrorKind::SecurityGroupNotFound(_inner) => {
_inner.fmt(f)
}
ModifyMountTargetSecurityGroupsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ModifyMountTargetSecurityGroupsError {
fn code(&self) -> Option<&str> {
ModifyMountTargetSecurityGroupsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ModifyMountTargetSecurityGroupsError {
pub fn new(
kind: ModifyMountTargetSecurityGroupsErrorKind,
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: ModifyMountTargetSecurityGroupsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ModifyMountTargetSecurityGroupsErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_bad_request(&self) -> bool {
matches!(
&self.kind,
ModifyMountTargetSecurityGroupsErrorKind::BadRequest(_)
)
}
pub fn is_incorrect_mount_target_state(&self) -> bool {
matches!(
&self.kind,
ModifyMountTargetSecurityGroupsErrorKind::IncorrectMountTargetState(_)
)
}
pub fn is_internal_server_error(&self) -> bool {
matches!(
&self.kind,
ModifyMountTargetSecurityGroupsErrorKind::InternalServerError(_)
)
}
pub fn is_mount_target_not_found(&self) -> bool {
matches!(
&self.kind,
ModifyMountTargetSecurityGroupsErrorKind::MountTargetNotFound(_)
)
}
pub fn is_security_group_limit_exceeded(&self) -> bool {
matches!(
&self.kind,
ModifyMountTargetSecurityGroupsErrorKind::SecurityGroupLimitExceeded(_)
)
}
pub fn is_security_group_not_found(&self) -> bool {
matches!(
&self.kind,
ModifyMountTargetSecurityGroupsErrorKind::SecurityGroupNotFound(_)
)
}
}
impl std::error::Error for ModifyMountTargetSecurityGroupsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ModifyMountTargetSecurityGroupsErrorKind::BadRequest(_inner) => Some(_inner),
ModifyMountTargetSecurityGroupsErrorKind::IncorrectMountTargetState(_inner) => {
Some(_inner)
}
ModifyMountTargetSecurityGroupsErrorKind::InternalServerError(_inner) => Some(_inner),
ModifyMountTargetSecurityGroupsErrorKind::MountTargetNotFound(_inner) => Some(_inner),
ModifyMountTargetSecurityGroupsErrorKind::SecurityGroupLimitExceeded(_inner) => {
Some(_inner)
}
ModifyMountTargetSecurityGroupsErrorKind::SecurityGroupNotFound(_inner) => Some(_inner),
ModifyMountTargetSecurityGroupsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct PutAccountPreferencesError {
pub kind: PutAccountPreferencesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum PutAccountPreferencesErrorKind {
BadRequest(crate::error::BadRequest),
InternalServerError(crate::error::InternalServerError),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for PutAccountPreferencesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
PutAccountPreferencesErrorKind::BadRequest(_inner) => _inner.fmt(f),
PutAccountPreferencesErrorKind::InternalServerError(_inner) => _inner.fmt(f),
PutAccountPreferencesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for PutAccountPreferencesError {
fn code(&self) -> Option<&str> {
PutAccountPreferencesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl PutAccountPreferencesError {
pub fn new(kind: PutAccountPreferencesErrorKind, 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: PutAccountPreferencesErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: PutAccountPreferencesErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_bad_request(&self) -> bool {
matches!(&self.kind, PutAccountPreferencesErrorKind::BadRequest(_))
}
pub fn is_internal_server_error(&self) -> bool {
matches!(
&self.kind,
PutAccountPreferencesErrorKind::InternalServerError(_)
)
}
}
impl std::error::Error for PutAccountPreferencesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
PutAccountPreferencesErrorKind::BadRequest(_inner) => Some(_inner),
PutAccountPreferencesErrorKind::InternalServerError(_inner) => Some(_inner),
PutAccountPreferencesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct PutBackupPolicyError {
pub kind: PutBackupPolicyErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum PutBackupPolicyErrorKind {
BadRequest(crate::error::BadRequest),
FileSystemNotFound(crate::error::FileSystemNotFound),
IncorrectFileSystemLifeCycleState(crate::error::IncorrectFileSystemLifeCycleState),
InternalServerError(crate::error::InternalServerError),
ValidationException(crate::error::ValidationException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for PutBackupPolicyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
PutBackupPolicyErrorKind::BadRequest(_inner) => _inner.fmt(f),
PutBackupPolicyErrorKind::FileSystemNotFound(_inner) => _inner.fmt(f),
PutBackupPolicyErrorKind::IncorrectFileSystemLifeCycleState(_inner) => _inner.fmt(f),
PutBackupPolicyErrorKind::InternalServerError(_inner) => _inner.fmt(f),
PutBackupPolicyErrorKind::ValidationException(_inner) => _inner.fmt(f),
PutBackupPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for PutBackupPolicyError {
fn code(&self) -> Option<&str> {
PutBackupPolicyError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl PutBackupPolicyError {
pub fn new(kind: PutBackupPolicyErrorKind, 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: PutBackupPolicyErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: PutBackupPolicyErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_bad_request(&self) -> bool {
matches!(&self.kind, PutBackupPolicyErrorKind::BadRequest(_))
}
pub fn is_file_system_not_found(&self) -> bool {
matches!(&self.kind, PutBackupPolicyErrorKind::FileSystemNotFound(_))
}
pub fn is_incorrect_file_system_life_cycle_state(&self) -> bool {
matches!(
&self.kind,
PutBackupPolicyErrorKind::IncorrectFileSystemLifeCycleState(_)
)
}
pub fn is_internal_server_error(&self) -> bool {
matches!(&self.kind, PutBackupPolicyErrorKind::InternalServerError(_))
}
pub fn is_validation_exception(&self) -> bool {
matches!(&self.kind, PutBackupPolicyErrorKind::ValidationException(_))
}
}
impl std::error::Error for PutBackupPolicyError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
PutBackupPolicyErrorKind::BadRequest(_inner) => Some(_inner),
PutBackupPolicyErrorKind::FileSystemNotFound(_inner) => Some(_inner),
PutBackupPolicyErrorKind::IncorrectFileSystemLifeCycleState(_inner) => Some(_inner),
PutBackupPolicyErrorKind::InternalServerError(_inner) => Some(_inner),
PutBackupPolicyErrorKind::ValidationException(_inner) => Some(_inner),
PutBackupPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct PutFileSystemPolicyError {
pub kind: PutFileSystemPolicyErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum PutFileSystemPolicyErrorKind {
FileSystemNotFound(crate::error::FileSystemNotFound),
IncorrectFileSystemLifeCycleState(crate::error::IncorrectFileSystemLifeCycleState),
InternalServerError(crate::error::InternalServerError),
InvalidPolicyException(crate::error::InvalidPolicyException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for PutFileSystemPolicyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
PutFileSystemPolicyErrorKind::FileSystemNotFound(_inner) => _inner.fmt(f),
PutFileSystemPolicyErrorKind::IncorrectFileSystemLifeCycleState(_inner) => {
_inner.fmt(f)
}
PutFileSystemPolicyErrorKind::InternalServerError(_inner) => _inner.fmt(f),
PutFileSystemPolicyErrorKind::InvalidPolicyException(_inner) => _inner.fmt(f),
PutFileSystemPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for PutFileSystemPolicyError {
fn code(&self) -> Option<&str> {
PutFileSystemPolicyError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl PutFileSystemPolicyError {
pub fn new(kind: PutFileSystemPolicyErrorKind, 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: PutFileSystemPolicyErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: PutFileSystemPolicyErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_file_system_not_found(&self) -> bool {
matches!(
&self.kind,
PutFileSystemPolicyErrorKind::FileSystemNotFound(_)
)
}
pub fn is_incorrect_file_system_life_cycle_state(&self) -> bool {
matches!(
&self.kind,
PutFileSystemPolicyErrorKind::IncorrectFileSystemLifeCycleState(_)
)
}
pub fn is_internal_server_error(&self) -> bool {
matches!(
&self.kind,
PutFileSystemPolicyErrorKind::InternalServerError(_)
)
}
pub fn is_invalid_policy_exception(&self) -> bool {
matches!(
&self.kind,
PutFileSystemPolicyErrorKind::InvalidPolicyException(_)
)
}
}
impl std::error::Error for PutFileSystemPolicyError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
PutFileSystemPolicyErrorKind::FileSystemNotFound(_inner) => Some(_inner),
PutFileSystemPolicyErrorKind::IncorrectFileSystemLifeCycleState(_inner) => Some(_inner),
PutFileSystemPolicyErrorKind::InternalServerError(_inner) => Some(_inner),
PutFileSystemPolicyErrorKind::InvalidPolicyException(_inner) => Some(_inner),
PutFileSystemPolicyErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct PutLifecycleConfigurationError {
pub kind: PutLifecycleConfigurationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum PutLifecycleConfigurationErrorKind {
BadRequest(crate::error::BadRequest),
FileSystemNotFound(crate::error::FileSystemNotFound),
IncorrectFileSystemLifeCycleState(crate::error::IncorrectFileSystemLifeCycleState),
InternalServerError(crate::error::InternalServerError),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for PutLifecycleConfigurationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
PutLifecycleConfigurationErrorKind::BadRequest(_inner) => _inner.fmt(f),
PutLifecycleConfigurationErrorKind::FileSystemNotFound(_inner) => _inner.fmt(f),
PutLifecycleConfigurationErrorKind::IncorrectFileSystemLifeCycleState(_inner) => {
_inner.fmt(f)
}
PutLifecycleConfigurationErrorKind::InternalServerError(_inner) => _inner.fmt(f),
PutLifecycleConfigurationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for PutLifecycleConfigurationError {
fn code(&self) -> Option<&str> {
PutLifecycleConfigurationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl PutLifecycleConfigurationError {
pub fn new(kind: PutLifecycleConfigurationErrorKind, 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: PutLifecycleConfigurationErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: PutLifecycleConfigurationErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_bad_request(&self) -> bool {
matches!(
&self.kind,
PutLifecycleConfigurationErrorKind::BadRequest(_)
)
}
pub fn is_file_system_not_found(&self) -> bool {
matches!(
&self.kind,
PutLifecycleConfigurationErrorKind::FileSystemNotFound(_)
)
}
pub fn is_incorrect_file_system_life_cycle_state(&self) -> bool {
matches!(
&self.kind,
PutLifecycleConfigurationErrorKind::IncorrectFileSystemLifeCycleState(_)
)
}
pub fn is_internal_server_error(&self) -> bool {
matches!(
&self.kind,
PutLifecycleConfigurationErrorKind::InternalServerError(_)
)
}
}
impl std::error::Error for PutLifecycleConfigurationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
PutLifecycleConfigurationErrorKind::BadRequest(_inner) => Some(_inner),
PutLifecycleConfigurationErrorKind::FileSystemNotFound(_inner) => Some(_inner),
PutLifecycleConfigurationErrorKind::IncorrectFileSystemLifeCycleState(_inner) => {
Some(_inner)
}
PutLifecycleConfigurationErrorKind::InternalServerError(_inner) => Some(_inner),
PutLifecycleConfigurationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct TagResourceError {
pub kind: TagResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum TagResourceErrorKind {
AccessPointNotFound(crate::error::AccessPointNotFound),
BadRequest(crate::error::BadRequest),
FileSystemNotFound(crate::error::FileSystemNotFound),
InternalServerError(crate::error::InternalServerError),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for TagResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
TagResourceErrorKind::AccessPointNotFound(_inner) => _inner.fmt(f),
TagResourceErrorKind::BadRequest(_inner) => _inner.fmt(f),
TagResourceErrorKind::FileSystemNotFound(_inner) => _inner.fmt(f),
TagResourceErrorKind::InternalServerError(_inner) => _inner.fmt(f),
TagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for TagResourceError {
fn code(&self) -> Option<&str> {
TagResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl TagResourceError {
pub fn new(kind: TagResourceErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: TagResourceErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: TagResourceErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_access_point_not_found(&self) -> bool {
matches!(&self.kind, TagResourceErrorKind::AccessPointNotFound(_))
}
pub fn is_bad_request(&self) -> bool {
matches!(&self.kind, TagResourceErrorKind::BadRequest(_))
}
pub fn is_file_system_not_found(&self) -> bool {
matches!(&self.kind, TagResourceErrorKind::FileSystemNotFound(_))
}
pub fn is_internal_server_error(&self) -> bool {
matches!(&self.kind, TagResourceErrorKind::InternalServerError(_))
}
}
impl std::error::Error for TagResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
TagResourceErrorKind::AccessPointNotFound(_inner) => Some(_inner),
TagResourceErrorKind::BadRequest(_inner) => Some(_inner),
TagResourceErrorKind::FileSystemNotFound(_inner) => Some(_inner),
TagResourceErrorKind::InternalServerError(_inner) => Some(_inner),
TagResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UntagResourceError {
pub kind: UntagResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UntagResourceErrorKind {
AccessPointNotFound(crate::error::AccessPointNotFound),
BadRequest(crate::error::BadRequest),
FileSystemNotFound(crate::error::FileSystemNotFound),
InternalServerError(crate::error::InternalServerError),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for UntagResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UntagResourceErrorKind::AccessPointNotFound(_inner) => _inner.fmt(f),
UntagResourceErrorKind::BadRequest(_inner) => _inner.fmt(f),
UntagResourceErrorKind::FileSystemNotFound(_inner) => _inner.fmt(f),
UntagResourceErrorKind::InternalServerError(_inner) => _inner.fmt(f),
UntagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UntagResourceError {
fn code(&self) -> Option<&str> {
UntagResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UntagResourceError {
pub fn new(kind: UntagResourceErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: UntagResourceErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UntagResourceErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_access_point_not_found(&self) -> bool {
matches!(&self.kind, UntagResourceErrorKind::AccessPointNotFound(_))
}
pub fn is_bad_request(&self) -> bool {
matches!(&self.kind, UntagResourceErrorKind::BadRequest(_))
}
pub fn is_file_system_not_found(&self) -> bool {
matches!(&self.kind, UntagResourceErrorKind::FileSystemNotFound(_))
}
pub fn is_internal_server_error(&self) -> bool {
matches!(&self.kind, UntagResourceErrorKind::InternalServerError(_))
}
}
impl std::error::Error for UntagResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UntagResourceErrorKind::AccessPointNotFound(_inner) => Some(_inner),
UntagResourceErrorKind::BadRequest(_inner) => Some(_inner),
UntagResourceErrorKind::FileSystemNotFound(_inner) => Some(_inner),
UntagResourceErrorKind::InternalServerError(_inner) => Some(_inner),
UntagResourceErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateFileSystemError {
pub kind: UpdateFileSystemErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateFileSystemErrorKind {
BadRequest(crate::error::BadRequest),
FileSystemNotFound(crate::error::FileSystemNotFound),
IncorrectFileSystemLifeCycleState(crate::error::IncorrectFileSystemLifeCycleState),
InsufficientThroughputCapacity(crate::error::InsufficientThroughputCapacity),
InternalServerError(crate::error::InternalServerError),
ThroughputLimitExceeded(crate::error::ThroughputLimitExceeded),
TooManyRequests(crate::error::TooManyRequests),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for UpdateFileSystemError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateFileSystemErrorKind::BadRequest(_inner) => _inner.fmt(f),
UpdateFileSystemErrorKind::FileSystemNotFound(_inner) => _inner.fmt(f),
UpdateFileSystemErrorKind::IncorrectFileSystemLifeCycleState(_inner) => _inner.fmt(f),
UpdateFileSystemErrorKind::InsufficientThroughputCapacity(_inner) => _inner.fmt(f),
UpdateFileSystemErrorKind::InternalServerError(_inner) => _inner.fmt(f),
UpdateFileSystemErrorKind::ThroughputLimitExceeded(_inner) => _inner.fmt(f),
UpdateFileSystemErrorKind::TooManyRequests(_inner) => _inner.fmt(f),
UpdateFileSystemErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateFileSystemError {
fn code(&self) -> Option<&str> {
UpdateFileSystemError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateFileSystemError {
pub fn new(kind: UpdateFileSystemErrorKind, 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: UpdateFileSystemErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateFileSystemErrorKind::Unhandled(err.into()),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_bad_request(&self) -> bool {
matches!(&self.kind, UpdateFileSystemErrorKind::BadRequest(_))
}
pub fn is_file_system_not_found(&self) -> bool {
matches!(&self.kind, UpdateFileSystemErrorKind::FileSystemNotFound(_))
}
pub fn is_incorrect_file_system_life_cycle_state(&self) -> bool {
matches!(
&self.kind,
UpdateFileSystemErrorKind::IncorrectFileSystemLifeCycleState(_)
)
}
pub fn is_insufficient_throughput_capacity(&self) -> bool {
matches!(
&self.kind,
UpdateFileSystemErrorKind::InsufficientThroughputCapacity(_)
)
}
pub fn is_internal_server_error(&self) -> bool {
matches!(
&self.kind,
UpdateFileSystemErrorKind::InternalServerError(_)
)
}
pub fn is_throughput_limit_exceeded(&self) -> bool {
matches!(
&self.kind,
UpdateFileSystemErrorKind::ThroughputLimitExceeded(_)
)
}
pub fn is_too_many_requests(&self) -> bool {
matches!(&self.kind, UpdateFileSystemErrorKind::TooManyRequests(_))
}
}
impl std::error::Error for UpdateFileSystemError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateFileSystemErrorKind::BadRequest(_inner) => Some(_inner),
UpdateFileSystemErrorKind::FileSystemNotFound(_inner) => Some(_inner),
UpdateFileSystemErrorKind::IncorrectFileSystemLifeCycleState(_inner) => Some(_inner),
UpdateFileSystemErrorKind::InsufficientThroughputCapacity(_inner) => Some(_inner),
UpdateFileSystemErrorKind::InternalServerError(_inner) => Some(_inner),
UpdateFileSystemErrorKind::ThroughputLimitExceeded(_inner) => Some(_inner),
UpdateFileSystemErrorKind::TooManyRequests(_inner) => Some(_inner),
UpdateFileSystemErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyRequests {
#[allow(missing_docs)] pub error_code: std::option::Option<std::string::String>,
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl TooManyRequests {
#[allow(missing_docs)] pub fn error_code(&self) -> std::option::Option<&str> {
self.error_code.as_deref()
}
}
impl std::fmt::Debug for TooManyRequests {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyRequests");
formatter.field("error_code", &self.error_code);
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyRequests {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyRequests {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyRequests")?;
if let Some(inner_1) = &self.message {
write!(f, ": {}", inner_1)?;
}
Ok(())
}
}
impl std::error::Error for TooManyRequests {}
pub mod too_many_requests {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) error_code: std::option::Option<std::string::String>,
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn error_code(mut self, input: impl Into<std::string::String>) -> Self {
self.error_code = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_error_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error_code = input;
self
}
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::TooManyRequests {
crate::error::TooManyRequests {
error_code: self.error_code,
message: self.message,
}
}
}
}
impl TooManyRequests {
pub fn builder() -> crate::error::too_many_requests::Builder {
crate::error::too_many_requests::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ThroughputLimitExceeded {
#[allow(missing_docs)] pub error_code: std::option::Option<std::string::String>,
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl ThroughputLimitExceeded {
#[allow(missing_docs)] pub fn error_code(&self) -> std::option::Option<&str> {
self.error_code.as_deref()
}
}
impl std::fmt::Debug for ThroughputLimitExceeded {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ThroughputLimitExceeded");
formatter.field("error_code", &self.error_code);
formatter.field("message", &self.message);
formatter.finish()
}
}
impl ThroughputLimitExceeded {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ThroughputLimitExceeded {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ThroughputLimitExceeded")?;
if let Some(inner_2) = &self.message {
write!(f, ": {}", inner_2)?;
}
Ok(())
}
}
impl std::error::Error for ThroughputLimitExceeded {}
pub mod throughput_limit_exceeded {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) error_code: std::option::Option<std::string::String>,
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn error_code(mut self, input: impl Into<std::string::String>) -> Self {
self.error_code = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_error_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error_code = input;
self
}
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ThroughputLimitExceeded {
crate::error::ThroughputLimitExceeded {
error_code: self.error_code,
message: self.message,
}
}
}
}
impl ThroughputLimitExceeded {
pub fn builder() -> crate::error::throughput_limit_exceeded::Builder {
crate::error::throughput_limit_exceeded::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InternalServerError {
#[allow(missing_docs)] pub error_code: std::option::Option<std::string::String>,
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl InternalServerError {
#[allow(missing_docs)] pub fn error_code(&self) -> std::option::Option<&str> {
self.error_code.as_deref()
}
}
impl std::fmt::Debug for InternalServerError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InternalServerError");
formatter.field("error_code", &self.error_code);
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InternalServerError {
pub fn message(&self) -> 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_3) = &self.message {
write!(f, ": {}", inner_3)?;
}
Ok(())
}
}
impl std::error::Error for InternalServerError {}
pub mod internal_server_error {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) error_code: std::option::Option<std::string::String>,
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn error_code(mut self, input: impl Into<std::string::String>) -> Self {
self.error_code = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_error_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error_code = input;
self
}
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InternalServerError {
crate::error::InternalServerError {
error_code: self.error_code,
message: self.message,
}
}
}
}
impl InternalServerError {
pub fn builder() -> crate::error::internal_server_error::Builder {
crate::error::internal_server_error::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InsufficientThroughputCapacity {
#[allow(missing_docs)] pub error_code: std::option::Option<std::string::String>,
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl InsufficientThroughputCapacity {
#[allow(missing_docs)] pub fn error_code(&self) -> std::option::Option<&str> {
self.error_code.as_deref()
}
}
impl std::fmt::Debug for InsufficientThroughputCapacity {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InsufficientThroughputCapacity");
formatter.field("error_code", &self.error_code);
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InsufficientThroughputCapacity {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InsufficientThroughputCapacity {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InsufficientThroughputCapacity")?;
if let Some(inner_4) = &self.message {
write!(f, ": {}", inner_4)?;
}
Ok(())
}
}
impl std::error::Error for InsufficientThroughputCapacity {}
pub mod insufficient_throughput_capacity {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) error_code: std::option::Option<std::string::String>,
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn error_code(mut self, input: impl Into<std::string::String>) -> Self {
self.error_code = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_error_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error_code = input;
self
}
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InsufficientThroughputCapacity {
crate::error::InsufficientThroughputCapacity {
error_code: self.error_code,
message: self.message,
}
}
}
}
impl InsufficientThroughputCapacity {
pub fn builder() -> crate::error::insufficient_throughput_capacity::Builder {
crate::error::insufficient_throughput_capacity::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct IncorrectFileSystemLifeCycleState {
#[allow(missing_docs)] pub error_code: std::option::Option<std::string::String>,
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl IncorrectFileSystemLifeCycleState {
#[allow(missing_docs)] pub fn error_code(&self) -> std::option::Option<&str> {
self.error_code.as_deref()
}
}
impl std::fmt::Debug for IncorrectFileSystemLifeCycleState {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("IncorrectFileSystemLifeCycleState");
formatter.field("error_code", &self.error_code);
formatter.field("message", &self.message);
formatter.finish()
}
}
impl IncorrectFileSystemLifeCycleState {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for IncorrectFileSystemLifeCycleState {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "IncorrectFileSystemLifeCycleState")?;
if let Some(inner_5) = &self.message {
write!(f, ": {}", inner_5)?;
}
Ok(())
}
}
impl std::error::Error for IncorrectFileSystemLifeCycleState {}
pub mod incorrect_file_system_life_cycle_state {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) error_code: std::option::Option<std::string::String>,
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn error_code(mut self, input: impl Into<std::string::String>) -> Self {
self.error_code = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_error_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error_code = input;
self
}
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::IncorrectFileSystemLifeCycleState {
crate::error::IncorrectFileSystemLifeCycleState {
error_code: self.error_code,
message: self.message,
}
}
}
}
impl IncorrectFileSystemLifeCycleState {
pub fn builder() -> crate::error::incorrect_file_system_life_cycle_state::Builder {
crate::error::incorrect_file_system_life_cycle_state::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct FileSystemNotFound {
#[allow(missing_docs)] pub error_code: std::option::Option<std::string::String>,
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl FileSystemNotFound {
#[allow(missing_docs)] pub fn error_code(&self) -> std::option::Option<&str> {
self.error_code.as_deref()
}
}
impl std::fmt::Debug for FileSystemNotFound {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("FileSystemNotFound");
formatter.field("error_code", &self.error_code);
formatter.field("message", &self.message);
formatter.finish()
}
}
impl FileSystemNotFound {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for FileSystemNotFound {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "FileSystemNotFound")?;
if let Some(inner_6) = &self.message {
write!(f, ": {}", inner_6)?;
}
Ok(())
}
}
impl std::error::Error for FileSystemNotFound {}
pub mod file_system_not_found {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) error_code: std::option::Option<std::string::String>,
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn error_code(mut self, input: impl Into<std::string::String>) -> Self {
self.error_code = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_error_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error_code = input;
self
}
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::FileSystemNotFound {
crate::error::FileSystemNotFound {
error_code: self.error_code,
message: self.message,
}
}
}
}
impl FileSystemNotFound {
pub fn builder() -> crate::error::file_system_not_found::Builder {
crate::error::file_system_not_found::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct BadRequest {
#[allow(missing_docs)] pub error_code: std::option::Option<std::string::String>,
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl BadRequest {
#[allow(missing_docs)] pub fn error_code(&self) -> std::option::Option<&str> {
self.error_code.as_deref()
}
}
impl std::fmt::Debug for BadRequest {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("BadRequest");
formatter.field("error_code", &self.error_code);
formatter.field("message", &self.message);
formatter.finish()
}
}
impl BadRequest {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for BadRequest {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "BadRequest")?;
if let Some(inner_7) = &self.message {
write!(f, ": {}", inner_7)?;
}
Ok(())
}
}
impl std::error::Error for BadRequest {}
pub mod bad_request {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) error_code: std::option::Option<std::string::String>,
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn error_code(mut self, input: impl Into<std::string::String>) -> Self {
self.error_code = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_error_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error_code = input;
self
}
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::BadRequest {
crate::error::BadRequest {
error_code: self.error_code,
message: self.message,
}
}
}
}
impl BadRequest {
pub fn builder() -> crate::error::bad_request::Builder {
crate::error::bad_request::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct AccessPointNotFound {
#[allow(missing_docs)] pub error_code: std::option::Option<std::string::String>,
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl AccessPointNotFound {
#[allow(missing_docs)] pub fn error_code(&self) -> std::option::Option<&str> {
self.error_code.as_deref()
}
}
impl std::fmt::Debug for AccessPointNotFound {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("AccessPointNotFound");
formatter.field("error_code", &self.error_code);
formatter.field("message", &self.message);
formatter.finish()
}
}
impl AccessPointNotFound {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for AccessPointNotFound {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "AccessPointNotFound")?;
if let Some(inner_8) = &self.message {
write!(f, ": {}", inner_8)?;
}
Ok(())
}
}
impl std::error::Error for AccessPointNotFound {}
pub mod access_point_not_found {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) error_code: std::option::Option<std::string::String>,
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn error_code(mut self, input: impl Into<std::string::String>) -> Self {
self.error_code = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_error_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error_code = input;
self
}
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::AccessPointNotFound {
crate::error::AccessPointNotFound {
error_code: self.error_code,
message: self.message,
}
}
}
}
impl AccessPointNotFound {
pub fn builder() -> crate::error::access_point_not_found::Builder {
crate::error::access_point_not_found::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InvalidPolicyException {
#[allow(missing_docs)] pub error_code: std::option::Option<std::string::String>,
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl InvalidPolicyException {
#[allow(missing_docs)] pub fn error_code(&self) -> std::option::Option<&str> {
self.error_code.as_deref()
}
}
impl std::fmt::Debug for InvalidPolicyException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InvalidPolicyException");
formatter.field("error_code", &self.error_code);
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InvalidPolicyException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidPolicyException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidPolicyException")?;
if let Some(inner_9) = &self.message {
write!(f, ": {}", inner_9)?;
}
Ok(())
}
}
impl std::error::Error for InvalidPolicyException {}
pub mod invalid_policy_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) error_code: std::option::Option<std::string::String>,
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn error_code(mut self, input: impl Into<std::string::String>) -> Self {
self.error_code = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_error_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error_code = input;
self
}
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidPolicyException {
crate::error::InvalidPolicyException {
error_code: self.error_code,
message: self.message,
}
}
}
}
impl InvalidPolicyException {
pub fn builder() -> crate::error::invalid_policy_exception::Builder {
crate::error::invalid_policy_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ValidationException {
#[allow(missing_docs)] pub error_code: std::option::Option<std::string::String>,
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl ValidationException {
#[allow(missing_docs)] pub fn error_code(&self) -> std::option::Option<&str> {
self.error_code.as_deref()
}
}
impl std::fmt::Debug for ValidationException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ValidationException");
formatter.field("error_code", &self.error_code);
formatter.field("message", &self.message);
formatter.finish()
}
}
impl ValidationException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ValidationException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ValidationException")?;
if let Some(inner_10) = &self.message {
write!(f, ": {}", inner_10)?;
}
Ok(())
}
}
impl std::error::Error for ValidationException {}
pub mod validation_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) error_code: std::option::Option<std::string::String>,
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn error_code(mut self, input: impl Into<std::string::String>) -> Self {
self.error_code = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_error_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error_code = input;
self
}
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ValidationException {
crate::error::ValidationException {
error_code: self.error_code,
message: self.message,
}
}
}
}
impl ValidationException {
pub fn builder() -> crate::error::validation_exception::Builder {
crate::error::validation_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SecurityGroupNotFound {
#[allow(missing_docs)] pub error_code: std::option::Option<std::string::String>,
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl SecurityGroupNotFound {
#[allow(missing_docs)] pub fn error_code(&self) -> std::option::Option<&str> {
self.error_code.as_deref()
}
}
impl std::fmt::Debug for SecurityGroupNotFound {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SecurityGroupNotFound");
formatter.field("error_code", &self.error_code);
formatter.field("message", &self.message);
formatter.finish()
}
}
impl SecurityGroupNotFound {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for SecurityGroupNotFound {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "SecurityGroupNotFound")?;
if let Some(inner_11) = &self.message {
write!(f, ": {}", inner_11)?;
}
Ok(())
}
}
impl std::error::Error for SecurityGroupNotFound {}
pub mod security_group_not_found {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) error_code: std::option::Option<std::string::String>,
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn error_code(mut self, input: impl Into<std::string::String>) -> Self {
self.error_code = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_error_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error_code = input;
self
}
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::SecurityGroupNotFound {
crate::error::SecurityGroupNotFound {
error_code: self.error_code,
message: self.message,
}
}
}
}
impl SecurityGroupNotFound {
pub fn builder() -> crate::error::security_group_not_found::Builder {
crate::error::security_group_not_found::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SecurityGroupLimitExceeded {
#[allow(missing_docs)] pub error_code: std::option::Option<std::string::String>,
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl SecurityGroupLimitExceeded {
#[allow(missing_docs)] pub fn error_code(&self) -> std::option::Option<&str> {
self.error_code.as_deref()
}
}
impl std::fmt::Debug for SecurityGroupLimitExceeded {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SecurityGroupLimitExceeded");
formatter.field("error_code", &self.error_code);
formatter.field("message", &self.message);
formatter.finish()
}
}
impl SecurityGroupLimitExceeded {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for SecurityGroupLimitExceeded {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "SecurityGroupLimitExceeded")?;
if let Some(inner_12) = &self.message {
write!(f, ": {}", inner_12)?;
}
Ok(())
}
}
impl std::error::Error for SecurityGroupLimitExceeded {}
pub mod security_group_limit_exceeded {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) error_code: std::option::Option<std::string::String>,
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn error_code(mut self, input: impl Into<std::string::String>) -> Self {
self.error_code = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_error_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error_code = input;
self
}
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::SecurityGroupLimitExceeded {
crate::error::SecurityGroupLimitExceeded {
error_code: self.error_code,
message: self.message,
}
}
}
}
impl SecurityGroupLimitExceeded {
pub fn builder() -> crate::error::security_group_limit_exceeded::Builder {
crate::error::security_group_limit_exceeded::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct MountTargetNotFound {
#[allow(missing_docs)] pub error_code: std::option::Option<std::string::String>,
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl MountTargetNotFound {
#[allow(missing_docs)] pub fn error_code(&self) -> std::option::Option<&str> {
self.error_code.as_deref()
}
}
impl std::fmt::Debug for MountTargetNotFound {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("MountTargetNotFound");
formatter.field("error_code", &self.error_code);
formatter.field("message", &self.message);
formatter.finish()
}
}
impl MountTargetNotFound {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for MountTargetNotFound {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "MountTargetNotFound")?;
if let Some(inner_13) = &self.message {
write!(f, ": {}", inner_13)?;
}
Ok(())
}
}
impl std::error::Error for MountTargetNotFound {}
pub mod mount_target_not_found {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) error_code: std::option::Option<std::string::String>,
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn error_code(mut self, input: impl Into<std::string::String>) -> Self {
self.error_code = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_error_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error_code = input;
self
}
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::MountTargetNotFound {
crate::error::MountTargetNotFound {
error_code: self.error_code,
message: self.message,
}
}
}
}
impl MountTargetNotFound {
pub fn builder() -> crate::error::mount_target_not_found::Builder {
crate::error::mount_target_not_found::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct IncorrectMountTargetState {
#[allow(missing_docs)] pub error_code: std::option::Option<std::string::String>,
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl IncorrectMountTargetState {
#[allow(missing_docs)] pub fn error_code(&self) -> std::option::Option<&str> {
self.error_code.as_deref()
}
}
impl std::fmt::Debug for IncorrectMountTargetState {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("IncorrectMountTargetState");
formatter.field("error_code", &self.error_code);
formatter.field("message", &self.message);
formatter.finish()
}
}
impl IncorrectMountTargetState {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for IncorrectMountTargetState {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "IncorrectMountTargetState")?;
if let Some(inner_14) = &self.message {
write!(f, ": {}", inner_14)?;
}
Ok(())
}
}
impl std::error::Error for IncorrectMountTargetState {}
pub mod incorrect_mount_target_state {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) error_code: std::option::Option<std::string::String>,
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn error_code(mut self, input: impl Into<std::string::String>) -> Self {
self.error_code = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_error_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error_code = input;
self
}
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::IncorrectMountTargetState {
crate::error::IncorrectMountTargetState {
error_code: self.error_code,
message: self.message,
}
}
}
}
impl IncorrectMountTargetState {
pub fn builder() -> crate::error::incorrect_mount_target_state::Builder {
crate::error::incorrect_mount_target_state::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct PolicyNotFound {
#[allow(missing_docs)] pub error_code: std::option::Option<std::string::String>,
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl PolicyNotFound {
#[allow(missing_docs)] pub fn error_code(&self) -> std::option::Option<&str> {
self.error_code.as_deref()
}
}
impl std::fmt::Debug for PolicyNotFound {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("PolicyNotFound");
formatter.field("error_code", &self.error_code);
formatter.field("message", &self.message);
formatter.finish()
}
}
impl PolicyNotFound {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for PolicyNotFound {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "PolicyNotFound")?;
if let Some(inner_15) = &self.message {
write!(f, ": {}", inner_15)?;
}
Ok(())
}
}
impl std::error::Error for PolicyNotFound {}
pub mod policy_not_found {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) error_code: std::option::Option<std::string::String>,
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn error_code(mut self, input: impl Into<std::string::String>) -> Self {
self.error_code = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_error_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error_code = input;
self
}
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::PolicyNotFound {
crate::error::PolicyNotFound {
error_code: self.error_code,
message: self.message,
}
}
}
}
impl PolicyNotFound {
pub fn builder() -> crate::error::policy_not_found::Builder {
crate::error::policy_not_found::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DependencyTimeout {
#[allow(missing_docs)] pub error_code: std::option::Option<std::string::String>,
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl DependencyTimeout {
#[allow(missing_docs)] pub fn error_code(&self) -> std::option::Option<&str> {
self.error_code.as_deref()
}
}
impl std::fmt::Debug for DependencyTimeout {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DependencyTimeout");
formatter.field("error_code", &self.error_code);
formatter.field("message", &self.message);
formatter.finish()
}
}
impl DependencyTimeout {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DependencyTimeout {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DependencyTimeout")?;
if let Some(inner_16) = &self.message {
write!(f, ": {}", inner_16)?;
}
Ok(())
}
}
impl std::error::Error for DependencyTimeout {}
pub mod dependency_timeout {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) error_code: std::option::Option<std::string::String>,
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn error_code(mut self, input: impl Into<std::string::String>) -> Self {
self.error_code = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_error_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error_code = input;
self
}
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::DependencyTimeout {
crate::error::DependencyTimeout {
error_code: self.error_code,
message: self.message,
}
}
}
}
impl DependencyTimeout {
pub fn builder() -> crate::error::dependency_timeout::Builder {
crate::error::dependency_timeout::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct FileSystemInUse {
#[allow(missing_docs)] pub error_code: std::option::Option<std::string::String>,
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl FileSystemInUse {
#[allow(missing_docs)] pub fn error_code(&self) -> std::option::Option<&str> {
self.error_code.as_deref()
}
}
impl std::fmt::Debug for FileSystemInUse {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("FileSystemInUse");
formatter.field("error_code", &self.error_code);
formatter.field("message", &self.message);
formatter.finish()
}
}
impl FileSystemInUse {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for FileSystemInUse {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "FileSystemInUse")?;
if let Some(inner_17) = &self.message {
write!(f, ": {}", inner_17)?;
}
Ok(())
}
}
impl std::error::Error for FileSystemInUse {}
pub mod file_system_in_use {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) error_code: std::option::Option<std::string::String>,
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn error_code(mut self, input: impl Into<std::string::String>) -> Self {
self.error_code = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_error_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error_code = input;
self
}
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::FileSystemInUse {
crate::error::FileSystemInUse {
error_code: self.error_code,
message: self.message,
}
}
}
}
impl FileSystemInUse {
pub fn builder() -> crate::error::file_system_in_use::Builder {
crate::error::file_system_in_use::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct UnsupportedAvailabilityZone {
#[allow(missing_docs)] pub error_code: std::option::Option<std::string::String>,
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl UnsupportedAvailabilityZone {
#[allow(missing_docs)] pub fn error_code(&self) -> std::option::Option<&str> {
self.error_code.as_deref()
}
}
impl std::fmt::Debug for UnsupportedAvailabilityZone {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("UnsupportedAvailabilityZone");
formatter.field("error_code", &self.error_code);
formatter.field("message", &self.message);
formatter.finish()
}
}
impl UnsupportedAvailabilityZone {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for UnsupportedAvailabilityZone {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "UnsupportedAvailabilityZone")?;
if let Some(inner_18) = &self.message {
write!(f, ": {}", inner_18)?;
}
Ok(())
}
}
impl std::error::Error for UnsupportedAvailabilityZone {}
pub mod unsupported_availability_zone {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) error_code: std::option::Option<std::string::String>,
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn error_code(mut self, input: impl Into<std::string::String>) -> Self {
self.error_code = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_error_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error_code = input;
self
}
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::UnsupportedAvailabilityZone {
crate::error::UnsupportedAvailabilityZone {
error_code: self.error_code,
message: self.message,
}
}
}
}
impl UnsupportedAvailabilityZone {
pub fn builder() -> crate::error::unsupported_availability_zone::Builder {
crate::error::unsupported_availability_zone::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SubnetNotFound {
#[allow(missing_docs)] pub error_code: std::option::Option<std::string::String>,
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl SubnetNotFound {
#[allow(missing_docs)] pub fn error_code(&self) -> std::option::Option<&str> {
self.error_code.as_deref()
}
}
impl std::fmt::Debug for SubnetNotFound {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SubnetNotFound");
formatter.field("error_code", &self.error_code);
formatter.field("message", &self.message);
formatter.finish()
}
}
impl SubnetNotFound {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for SubnetNotFound {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "SubnetNotFound")?;
if let Some(inner_19) = &self.message {
write!(f, ": {}", inner_19)?;
}
Ok(())
}
}
impl std::error::Error for SubnetNotFound {}
pub mod subnet_not_found {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) error_code: std::option::Option<std::string::String>,
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn error_code(mut self, input: impl Into<std::string::String>) -> Self {
self.error_code = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_error_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error_code = input;
self
}
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::SubnetNotFound {
crate::error::SubnetNotFound {
error_code: self.error_code,
message: self.message,
}
}
}
}
impl SubnetNotFound {
pub fn builder() -> crate::error::subnet_not_found::Builder {
crate::error::subnet_not_found::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct NoFreeAddressesInSubnet {
#[allow(missing_docs)] pub error_code: std::option::Option<std::string::String>,
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl NoFreeAddressesInSubnet {
#[allow(missing_docs)] pub fn error_code(&self) -> std::option::Option<&str> {
self.error_code.as_deref()
}
}
impl std::fmt::Debug for NoFreeAddressesInSubnet {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("NoFreeAddressesInSubnet");
formatter.field("error_code", &self.error_code);
formatter.field("message", &self.message);
formatter.finish()
}
}
impl NoFreeAddressesInSubnet {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for NoFreeAddressesInSubnet {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "NoFreeAddressesInSubnet")?;
if let Some(inner_20) = &self.message {
write!(f, ": {}", inner_20)?;
}
Ok(())
}
}
impl std::error::Error for NoFreeAddressesInSubnet {}
pub mod no_free_addresses_in_subnet {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) error_code: std::option::Option<std::string::String>,
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn error_code(mut self, input: impl Into<std::string::String>) -> Self {
self.error_code = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_error_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error_code = input;
self
}
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::NoFreeAddressesInSubnet {
crate::error::NoFreeAddressesInSubnet {
error_code: self.error_code,
message: self.message,
}
}
}
}
impl NoFreeAddressesInSubnet {
pub fn builder() -> crate::error::no_free_addresses_in_subnet::Builder {
crate::error::no_free_addresses_in_subnet::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct NetworkInterfaceLimitExceeded {
#[allow(missing_docs)] pub error_code: std::option::Option<std::string::String>,
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl NetworkInterfaceLimitExceeded {
#[allow(missing_docs)] pub fn error_code(&self) -> std::option::Option<&str> {
self.error_code.as_deref()
}
}
impl std::fmt::Debug for NetworkInterfaceLimitExceeded {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("NetworkInterfaceLimitExceeded");
formatter.field("error_code", &self.error_code);
formatter.field("message", &self.message);
formatter.finish()
}
}
impl NetworkInterfaceLimitExceeded {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for NetworkInterfaceLimitExceeded {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "NetworkInterfaceLimitExceeded")?;
if let Some(inner_21) = &self.message {
write!(f, ": {}", inner_21)?;
}
Ok(())
}
}
impl std::error::Error for NetworkInterfaceLimitExceeded {}
pub mod network_interface_limit_exceeded {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) error_code: std::option::Option<std::string::String>,
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn error_code(mut self, input: impl Into<std::string::String>) -> Self {
self.error_code = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_error_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error_code = input;
self
}
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::NetworkInterfaceLimitExceeded {
crate::error::NetworkInterfaceLimitExceeded {
error_code: self.error_code,
message: self.message,
}
}
}
}
impl NetworkInterfaceLimitExceeded {
pub fn builder() -> crate::error::network_interface_limit_exceeded::Builder {
crate::error::network_interface_limit_exceeded::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct MountTargetConflict {
#[allow(missing_docs)] pub error_code: std::option::Option<std::string::String>,
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl MountTargetConflict {
#[allow(missing_docs)] pub fn error_code(&self) -> std::option::Option<&str> {
self.error_code.as_deref()
}
}
impl std::fmt::Debug for MountTargetConflict {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("MountTargetConflict");
formatter.field("error_code", &self.error_code);
formatter.field("message", &self.message);
formatter.finish()
}
}
impl MountTargetConflict {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for MountTargetConflict {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "MountTargetConflict")?;
if let Some(inner_22) = &self.message {
write!(f, ": {}", inner_22)?;
}
Ok(())
}
}
impl std::error::Error for MountTargetConflict {}
pub mod mount_target_conflict {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) error_code: std::option::Option<std::string::String>,
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn error_code(mut self, input: impl Into<std::string::String>) -> Self {
self.error_code = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_error_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error_code = input;
self
}
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::MountTargetConflict {
crate::error::MountTargetConflict {
error_code: self.error_code,
message: self.message,
}
}
}
}
impl MountTargetConflict {
pub fn builder() -> crate::error::mount_target_conflict::Builder {
crate::error::mount_target_conflict::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct IpAddressInUse {
#[allow(missing_docs)] pub error_code: std::option::Option<std::string::String>,
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl IpAddressInUse {
#[allow(missing_docs)] pub fn error_code(&self) -> std::option::Option<&str> {
self.error_code.as_deref()
}
}
impl std::fmt::Debug for IpAddressInUse {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("IpAddressInUse");
formatter.field("error_code", &self.error_code);
formatter.field("message", &self.message);
formatter.finish()
}
}
impl IpAddressInUse {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for IpAddressInUse {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "IpAddressInUse")?;
if let Some(inner_23) = &self.message {
write!(f, ": {}", inner_23)?;
}
Ok(())
}
}
impl std::error::Error for IpAddressInUse {}
pub mod ip_address_in_use {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) error_code: std::option::Option<std::string::String>,
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn error_code(mut self, input: impl Into<std::string::String>) -> Self {
self.error_code = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_error_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error_code = input;
self
}
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::IpAddressInUse {
crate::error::IpAddressInUse {
error_code: self.error_code,
message: self.message,
}
}
}
}
impl IpAddressInUse {
pub fn builder() -> crate::error::ip_address_in_use::Builder {
crate::error::ip_address_in_use::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct AvailabilityZonesMismatch {
#[allow(missing_docs)] pub error_code: std::option::Option<std::string::String>,
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl AvailabilityZonesMismatch {
#[allow(missing_docs)] pub fn error_code(&self) -> std::option::Option<&str> {
self.error_code.as_deref()
}
}
impl std::fmt::Debug for AvailabilityZonesMismatch {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("AvailabilityZonesMismatch");
formatter.field("error_code", &self.error_code);
formatter.field("message", &self.message);
formatter.finish()
}
}
impl AvailabilityZonesMismatch {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for AvailabilityZonesMismatch {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "AvailabilityZonesMismatch")?;
if let Some(inner_24) = &self.message {
write!(f, ": {}", inner_24)?;
}
Ok(())
}
}
impl std::error::Error for AvailabilityZonesMismatch {}
pub mod availability_zones_mismatch {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) error_code: std::option::Option<std::string::String>,
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn error_code(mut self, input: impl Into<std::string::String>) -> Self {
self.error_code = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_error_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error_code = input;
self
}
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::AvailabilityZonesMismatch {
crate::error::AvailabilityZonesMismatch {
error_code: self.error_code,
message: self.message,
}
}
}
}
impl AvailabilityZonesMismatch {
pub fn builder() -> crate::error::availability_zones_mismatch::Builder {
crate::error::availability_zones_mismatch::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct FileSystemLimitExceeded {
#[allow(missing_docs)] pub error_code: std::option::Option<std::string::String>,
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl FileSystemLimitExceeded {
#[allow(missing_docs)] pub fn error_code(&self) -> std::option::Option<&str> {
self.error_code.as_deref()
}
}
impl std::fmt::Debug for FileSystemLimitExceeded {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("FileSystemLimitExceeded");
formatter.field("error_code", &self.error_code);
formatter.field("message", &self.message);
formatter.finish()
}
}
impl FileSystemLimitExceeded {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for FileSystemLimitExceeded {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "FileSystemLimitExceeded")?;
if let Some(inner_25) = &self.message {
write!(f, ": {}", inner_25)?;
}
Ok(())
}
}
impl std::error::Error for FileSystemLimitExceeded {}
pub mod file_system_limit_exceeded {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) error_code: std::option::Option<std::string::String>,
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn error_code(mut self, input: impl Into<std::string::String>) -> Self {
self.error_code = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_error_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error_code = input;
self
}
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::FileSystemLimitExceeded {
crate::error::FileSystemLimitExceeded {
error_code: self.error_code,
message: self.message,
}
}
}
}
impl FileSystemLimitExceeded {
pub fn builder() -> crate::error::file_system_limit_exceeded::Builder {
crate::error::file_system_limit_exceeded::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct FileSystemAlreadyExists {
#[allow(missing_docs)] pub error_code: std::option::Option<std::string::String>,
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
#[allow(missing_docs)] pub file_system_id: std::option::Option<std::string::String>,
}
impl FileSystemAlreadyExists {
#[allow(missing_docs)] pub fn error_code(&self) -> std::option::Option<&str> {
self.error_code.as_deref()
}
#[allow(missing_docs)] pub fn file_system_id(&self) -> std::option::Option<&str> {
self.file_system_id.as_deref()
}
}
impl std::fmt::Debug for FileSystemAlreadyExists {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("FileSystemAlreadyExists");
formatter.field("error_code", &self.error_code);
formatter.field("message", &self.message);
formatter.field("file_system_id", &self.file_system_id);
formatter.finish()
}
}
impl FileSystemAlreadyExists {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for FileSystemAlreadyExists {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "FileSystemAlreadyExists")?;
if let Some(inner_26) = &self.message {
write!(f, ": {}", inner_26)?;
}
Ok(())
}
}
impl std::error::Error for FileSystemAlreadyExists {}
pub mod file_system_already_exists {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) error_code: std::option::Option<std::string::String>,
pub(crate) message: std::option::Option<std::string::String>,
pub(crate) file_system_id: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn error_code(mut self, input: impl Into<std::string::String>) -> Self {
self.error_code = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_error_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error_code = input;
self
}
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
#[allow(missing_docs)] pub fn file_system_id(mut self, input: impl Into<std::string::String>) -> Self {
self.file_system_id = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_file_system_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.file_system_id = input;
self
}
pub fn build(self) -> crate::error::FileSystemAlreadyExists {
crate::error::FileSystemAlreadyExists {
error_code: self.error_code,
message: self.message,
file_system_id: self.file_system_id,
}
}
}
}
impl FileSystemAlreadyExists {
pub fn builder() -> crate::error::file_system_already_exists::Builder {
crate::error::file_system_already_exists::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct AccessPointLimitExceeded {
#[allow(missing_docs)] pub error_code: std::option::Option<std::string::String>,
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl AccessPointLimitExceeded {
#[allow(missing_docs)] pub fn error_code(&self) -> std::option::Option<&str> {
self.error_code.as_deref()
}
}
impl std::fmt::Debug for AccessPointLimitExceeded {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("AccessPointLimitExceeded");
formatter.field("error_code", &self.error_code);
formatter.field("message", &self.message);
formatter.finish()
}
}
impl AccessPointLimitExceeded {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for AccessPointLimitExceeded {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "AccessPointLimitExceeded")?;
if let Some(inner_27) = &self.message {
write!(f, ": {}", inner_27)?;
}
Ok(())
}
}
impl std::error::Error for AccessPointLimitExceeded {}
pub mod access_point_limit_exceeded {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) error_code: std::option::Option<std::string::String>,
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn error_code(mut self, input: impl Into<std::string::String>) -> Self {
self.error_code = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_error_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error_code = input;
self
}
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::AccessPointLimitExceeded {
crate::error::AccessPointLimitExceeded {
error_code: self.error_code,
message: self.message,
}
}
}
}
impl AccessPointLimitExceeded {
pub fn builder() -> crate::error::access_point_limit_exceeded::Builder {
crate::error::access_point_limit_exceeded::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct AccessPointAlreadyExists {
#[allow(missing_docs)] pub error_code: std::option::Option<std::string::String>,
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
#[allow(missing_docs)] pub access_point_id: std::option::Option<std::string::String>,
}
impl AccessPointAlreadyExists {
#[allow(missing_docs)] pub fn error_code(&self) -> std::option::Option<&str> {
self.error_code.as_deref()
}
#[allow(missing_docs)] pub fn access_point_id(&self) -> std::option::Option<&str> {
self.access_point_id.as_deref()
}
}
impl std::fmt::Debug for AccessPointAlreadyExists {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("AccessPointAlreadyExists");
formatter.field("error_code", &self.error_code);
formatter.field("message", &self.message);
formatter.field("access_point_id", &self.access_point_id);
formatter.finish()
}
}
impl AccessPointAlreadyExists {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for AccessPointAlreadyExists {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "AccessPointAlreadyExists")?;
if let Some(inner_28) = &self.message {
write!(f, ": {}", inner_28)?;
}
Ok(())
}
}
impl std::error::Error for AccessPointAlreadyExists {}
pub mod access_point_already_exists {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) error_code: std::option::Option<std::string::String>,
pub(crate) message: std::option::Option<std::string::String>,
pub(crate) access_point_id: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn error_code(mut self, input: impl Into<std::string::String>) -> Self {
self.error_code = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_error_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error_code = input;
self
}
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
#[allow(missing_docs)] pub fn access_point_id(mut self, input: impl Into<std::string::String>) -> Self {
self.access_point_id = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_access_point_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.access_point_id = input;
self
}
pub fn build(self) -> crate::error::AccessPointAlreadyExists {
crate::error::AccessPointAlreadyExists {
error_code: self.error_code,
message: self.message,
access_point_id: self.access_point_id,
}
}
}
}
impl AccessPointAlreadyExists {
pub fn builder() -> crate::error::access_point_already_exists::Builder {
crate::error::access_point_already_exists::Builder::default()
}
}