#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateGroupError {
pub kind: CreateGroupErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateGroupErrorKind {
BadRequestException(crate::error::BadRequestException),
ForbiddenException(crate::error::ForbiddenException),
InternalServerErrorException(crate::error::InternalServerErrorException),
MethodNotAllowedException(crate::error::MethodNotAllowedException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for CreateGroupError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateGroupErrorKind::BadRequestException(_inner) => _inner.fmt(f),
CreateGroupErrorKind::ForbiddenException(_inner) => _inner.fmt(f),
CreateGroupErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f),
CreateGroupErrorKind::MethodNotAllowedException(_inner) => _inner.fmt(f),
CreateGroupErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
CreateGroupErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateGroupError {
fn code(&self) -> Option<&str> {
CreateGroupError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateGroupError {
pub fn new(kind: CreateGroupErrorKind, 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: CreateGroupErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateGroupErrorKind::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_exception(&self) -> bool {
matches!(&self.kind, CreateGroupErrorKind::BadRequestException(_))
}
pub fn is_forbidden_exception(&self) -> bool {
matches!(&self.kind, CreateGroupErrorKind::ForbiddenException(_))
}
pub fn is_internal_server_error_exception(&self) -> bool {
matches!(
&self.kind,
CreateGroupErrorKind::InternalServerErrorException(_)
)
}
pub fn is_method_not_allowed_exception(&self) -> bool {
matches!(
&self.kind,
CreateGroupErrorKind::MethodNotAllowedException(_)
)
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(
&self.kind,
CreateGroupErrorKind::TooManyRequestsException(_)
)
}
}
impl std::error::Error for CreateGroupError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateGroupErrorKind::BadRequestException(_inner) => Some(_inner),
CreateGroupErrorKind::ForbiddenException(_inner) => Some(_inner),
CreateGroupErrorKind::InternalServerErrorException(_inner) => Some(_inner),
CreateGroupErrorKind::MethodNotAllowedException(_inner) => Some(_inner),
CreateGroupErrorKind::TooManyRequestsException(_inner) => Some(_inner),
CreateGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteGroupError {
pub kind: DeleteGroupErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteGroupErrorKind {
BadRequestException(crate::error::BadRequestException),
ForbiddenException(crate::error::ForbiddenException),
InternalServerErrorException(crate::error::InternalServerErrorException),
MethodNotAllowedException(crate::error::MethodNotAllowedException),
NotFoundException(crate::error::NotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteGroupError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteGroupErrorKind::BadRequestException(_inner) => _inner.fmt(f),
DeleteGroupErrorKind::ForbiddenException(_inner) => _inner.fmt(f),
DeleteGroupErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f),
DeleteGroupErrorKind::MethodNotAllowedException(_inner) => _inner.fmt(f),
DeleteGroupErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DeleteGroupErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
DeleteGroupErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteGroupError {
fn code(&self) -> Option<&str> {
DeleteGroupError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteGroupError {
pub fn new(kind: DeleteGroupErrorKind, 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: DeleteGroupErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteGroupErrorKind::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_exception(&self) -> bool {
matches!(&self.kind, DeleteGroupErrorKind::BadRequestException(_))
}
pub fn is_forbidden_exception(&self) -> bool {
matches!(&self.kind, DeleteGroupErrorKind::ForbiddenException(_))
}
pub fn is_internal_server_error_exception(&self) -> bool {
matches!(
&self.kind,
DeleteGroupErrorKind::InternalServerErrorException(_)
)
}
pub fn is_method_not_allowed_exception(&self) -> bool {
matches!(
&self.kind,
DeleteGroupErrorKind::MethodNotAllowedException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, DeleteGroupErrorKind::NotFoundException(_))
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(
&self.kind,
DeleteGroupErrorKind::TooManyRequestsException(_)
)
}
}
impl std::error::Error for DeleteGroupError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteGroupErrorKind::BadRequestException(_inner) => Some(_inner),
DeleteGroupErrorKind::ForbiddenException(_inner) => Some(_inner),
DeleteGroupErrorKind::InternalServerErrorException(_inner) => Some(_inner),
DeleteGroupErrorKind::MethodNotAllowedException(_inner) => Some(_inner),
DeleteGroupErrorKind::NotFoundException(_inner) => Some(_inner),
DeleteGroupErrorKind::TooManyRequestsException(_inner) => Some(_inner),
DeleteGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetGroupError {
pub kind: GetGroupErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetGroupErrorKind {
BadRequestException(crate::error::BadRequestException),
ForbiddenException(crate::error::ForbiddenException),
InternalServerErrorException(crate::error::InternalServerErrorException),
MethodNotAllowedException(crate::error::MethodNotAllowedException),
NotFoundException(crate::error::NotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetGroupError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetGroupErrorKind::BadRequestException(_inner) => _inner.fmt(f),
GetGroupErrorKind::ForbiddenException(_inner) => _inner.fmt(f),
GetGroupErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f),
GetGroupErrorKind::MethodNotAllowedException(_inner) => _inner.fmt(f),
GetGroupErrorKind::NotFoundException(_inner) => _inner.fmt(f),
GetGroupErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
GetGroupErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetGroupError {
fn code(&self) -> Option<&str> {
GetGroupError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetGroupError {
pub fn new(kind: GetGroupErrorKind, 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: GetGroupErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetGroupErrorKind::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_exception(&self) -> bool {
matches!(&self.kind, GetGroupErrorKind::BadRequestException(_))
}
pub fn is_forbidden_exception(&self) -> bool {
matches!(&self.kind, GetGroupErrorKind::ForbiddenException(_))
}
pub fn is_internal_server_error_exception(&self) -> bool {
matches!(
&self.kind,
GetGroupErrorKind::InternalServerErrorException(_)
)
}
pub fn is_method_not_allowed_exception(&self) -> bool {
matches!(&self.kind, GetGroupErrorKind::MethodNotAllowedException(_))
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, GetGroupErrorKind::NotFoundException(_))
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(&self.kind, GetGroupErrorKind::TooManyRequestsException(_))
}
}
impl std::error::Error for GetGroupError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetGroupErrorKind::BadRequestException(_inner) => Some(_inner),
GetGroupErrorKind::ForbiddenException(_inner) => Some(_inner),
GetGroupErrorKind::InternalServerErrorException(_inner) => Some(_inner),
GetGroupErrorKind::MethodNotAllowedException(_inner) => Some(_inner),
GetGroupErrorKind::NotFoundException(_inner) => Some(_inner),
GetGroupErrorKind::TooManyRequestsException(_inner) => Some(_inner),
GetGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetGroupConfigurationError {
pub kind: GetGroupConfigurationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetGroupConfigurationErrorKind {
BadRequestException(crate::error::BadRequestException),
ForbiddenException(crate::error::ForbiddenException),
InternalServerErrorException(crate::error::InternalServerErrorException),
MethodNotAllowedException(crate::error::MethodNotAllowedException),
NotFoundException(crate::error::NotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetGroupConfigurationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetGroupConfigurationErrorKind::BadRequestException(_inner) => _inner.fmt(f),
GetGroupConfigurationErrorKind::ForbiddenException(_inner) => _inner.fmt(f),
GetGroupConfigurationErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f),
GetGroupConfigurationErrorKind::MethodNotAllowedException(_inner) => _inner.fmt(f),
GetGroupConfigurationErrorKind::NotFoundException(_inner) => _inner.fmt(f),
GetGroupConfigurationErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
GetGroupConfigurationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetGroupConfigurationError {
fn code(&self) -> Option<&str> {
GetGroupConfigurationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetGroupConfigurationError {
pub fn new(kind: GetGroupConfigurationErrorKind, 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: GetGroupConfigurationErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetGroupConfigurationErrorKind::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_exception(&self) -> bool {
matches!(
&self.kind,
GetGroupConfigurationErrorKind::BadRequestException(_)
)
}
pub fn is_forbidden_exception(&self) -> bool {
matches!(
&self.kind,
GetGroupConfigurationErrorKind::ForbiddenException(_)
)
}
pub fn is_internal_server_error_exception(&self) -> bool {
matches!(
&self.kind,
GetGroupConfigurationErrorKind::InternalServerErrorException(_)
)
}
pub fn is_method_not_allowed_exception(&self) -> bool {
matches!(
&self.kind,
GetGroupConfigurationErrorKind::MethodNotAllowedException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetGroupConfigurationErrorKind::NotFoundException(_)
)
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(
&self.kind,
GetGroupConfigurationErrorKind::TooManyRequestsException(_)
)
}
}
impl std::error::Error for GetGroupConfigurationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetGroupConfigurationErrorKind::BadRequestException(_inner) => Some(_inner),
GetGroupConfigurationErrorKind::ForbiddenException(_inner) => Some(_inner),
GetGroupConfigurationErrorKind::InternalServerErrorException(_inner) => Some(_inner),
GetGroupConfigurationErrorKind::MethodNotAllowedException(_inner) => Some(_inner),
GetGroupConfigurationErrorKind::NotFoundException(_inner) => Some(_inner),
GetGroupConfigurationErrorKind::TooManyRequestsException(_inner) => Some(_inner),
GetGroupConfigurationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetGroupQueryError {
pub kind: GetGroupQueryErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetGroupQueryErrorKind {
BadRequestException(crate::error::BadRequestException),
ForbiddenException(crate::error::ForbiddenException),
InternalServerErrorException(crate::error::InternalServerErrorException),
MethodNotAllowedException(crate::error::MethodNotAllowedException),
NotFoundException(crate::error::NotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetGroupQueryError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetGroupQueryErrorKind::BadRequestException(_inner) => _inner.fmt(f),
GetGroupQueryErrorKind::ForbiddenException(_inner) => _inner.fmt(f),
GetGroupQueryErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f),
GetGroupQueryErrorKind::MethodNotAllowedException(_inner) => _inner.fmt(f),
GetGroupQueryErrorKind::NotFoundException(_inner) => _inner.fmt(f),
GetGroupQueryErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
GetGroupQueryErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetGroupQueryError {
fn code(&self) -> Option<&str> {
GetGroupQueryError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetGroupQueryError {
pub fn new(kind: GetGroupQueryErrorKind, 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: GetGroupQueryErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetGroupQueryErrorKind::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_exception(&self) -> bool {
matches!(&self.kind, GetGroupQueryErrorKind::BadRequestException(_))
}
pub fn is_forbidden_exception(&self) -> bool {
matches!(&self.kind, GetGroupQueryErrorKind::ForbiddenException(_))
}
pub fn is_internal_server_error_exception(&self) -> bool {
matches!(
&self.kind,
GetGroupQueryErrorKind::InternalServerErrorException(_)
)
}
pub fn is_method_not_allowed_exception(&self) -> bool {
matches!(
&self.kind,
GetGroupQueryErrorKind::MethodNotAllowedException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, GetGroupQueryErrorKind::NotFoundException(_))
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(
&self.kind,
GetGroupQueryErrorKind::TooManyRequestsException(_)
)
}
}
impl std::error::Error for GetGroupQueryError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetGroupQueryErrorKind::BadRequestException(_inner) => Some(_inner),
GetGroupQueryErrorKind::ForbiddenException(_inner) => Some(_inner),
GetGroupQueryErrorKind::InternalServerErrorException(_inner) => Some(_inner),
GetGroupQueryErrorKind::MethodNotAllowedException(_inner) => Some(_inner),
GetGroupQueryErrorKind::NotFoundException(_inner) => Some(_inner),
GetGroupQueryErrorKind::TooManyRequestsException(_inner) => Some(_inner),
GetGroupQueryErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetTagsError {
pub kind: GetTagsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetTagsErrorKind {
BadRequestException(crate::error::BadRequestException),
ForbiddenException(crate::error::ForbiddenException),
InternalServerErrorException(crate::error::InternalServerErrorException),
MethodNotAllowedException(crate::error::MethodNotAllowedException),
NotFoundException(crate::error::NotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetTagsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetTagsErrorKind::BadRequestException(_inner) => _inner.fmt(f),
GetTagsErrorKind::ForbiddenException(_inner) => _inner.fmt(f),
GetTagsErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f),
GetTagsErrorKind::MethodNotAllowedException(_inner) => _inner.fmt(f),
GetTagsErrorKind::NotFoundException(_inner) => _inner.fmt(f),
GetTagsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
GetTagsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetTagsError {
fn code(&self) -> Option<&str> {
GetTagsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetTagsError {
pub fn new(kind: GetTagsErrorKind, 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: GetTagsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetTagsErrorKind::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_exception(&self) -> bool {
matches!(&self.kind, GetTagsErrorKind::BadRequestException(_))
}
pub fn is_forbidden_exception(&self) -> bool {
matches!(&self.kind, GetTagsErrorKind::ForbiddenException(_))
}
pub fn is_internal_server_error_exception(&self) -> bool {
matches!(
&self.kind,
GetTagsErrorKind::InternalServerErrorException(_)
)
}
pub fn is_method_not_allowed_exception(&self) -> bool {
matches!(&self.kind, GetTagsErrorKind::MethodNotAllowedException(_))
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, GetTagsErrorKind::NotFoundException(_))
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(&self.kind, GetTagsErrorKind::TooManyRequestsException(_))
}
}
impl std::error::Error for GetTagsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetTagsErrorKind::BadRequestException(_inner) => Some(_inner),
GetTagsErrorKind::ForbiddenException(_inner) => Some(_inner),
GetTagsErrorKind::InternalServerErrorException(_inner) => Some(_inner),
GetTagsErrorKind::MethodNotAllowedException(_inner) => Some(_inner),
GetTagsErrorKind::NotFoundException(_inner) => Some(_inner),
GetTagsErrorKind::TooManyRequestsException(_inner) => Some(_inner),
GetTagsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GroupResourcesError {
pub kind: GroupResourcesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GroupResourcesErrorKind {
BadRequestException(crate::error::BadRequestException),
ForbiddenException(crate::error::ForbiddenException),
InternalServerErrorException(crate::error::InternalServerErrorException),
MethodNotAllowedException(crate::error::MethodNotAllowedException),
NotFoundException(crate::error::NotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GroupResourcesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GroupResourcesErrorKind::BadRequestException(_inner) => _inner.fmt(f),
GroupResourcesErrorKind::ForbiddenException(_inner) => _inner.fmt(f),
GroupResourcesErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f),
GroupResourcesErrorKind::MethodNotAllowedException(_inner) => _inner.fmt(f),
GroupResourcesErrorKind::NotFoundException(_inner) => _inner.fmt(f),
GroupResourcesErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
GroupResourcesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GroupResourcesError {
fn code(&self) -> Option<&str> {
GroupResourcesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GroupResourcesError {
pub fn new(kind: GroupResourcesErrorKind, 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: GroupResourcesErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GroupResourcesErrorKind::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_exception(&self) -> bool {
matches!(&self.kind, GroupResourcesErrorKind::BadRequestException(_))
}
pub fn is_forbidden_exception(&self) -> bool {
matches!(&self.kind, GroupResourcesErrorKind::ForbiddenException(_))
}
pub fn is_internal_server_error_exception(&self) -> bool {
matches!(
&self.kind,
GroupResourcesErrorKind::InternalServerErrorException(_)
)
}
pub fn is_method_not_allowed_exception(&self) -> bool {
matches!(
&self.kind,
GroupResourcesErrorKind::MethodNotAllowedException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, GroupResourcesErrorKind::NotFoundException(_))
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(
&self.kind,
GroupResourcesErrorKind::TooManyRequestsException(_)
)
}
}
impl std::error::Error for GroupResourcesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GroupResourcesErrorKind::BadRequestException(_inner) => Some(_inner),
GroupResourcesErrorKind::ForbiddenException(_inner) => Some(_inner),
GroupResourcesErrorKind::InternalServerErrorException(_inner) => Some(_inner),
GroupResourcesErrorKind::MethodNotAllowedException(_inner) => Some(_inner),
GroupResourcesErrorKind::NotFoundException(_inner) => Some(_inner),
GroupResourcesErrorKind::TooManyRequestsException(_inner) => Some(_inner),
GroupResourcesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListGroupResourcesError {
pub kind: ListGroupResourcesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListGroupResourcesErrorKind {
BadRequestException(crate::error::BadRequestException),
ForbiddenException(crate::error::ForbiddenException),
InternalServerErrorException(crate::error::InternalServerErrorException),
MethodNotAllowedException(crate::error::MethodNotAllowedException),
NotFoundException(crate::error::NotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListGroupResourcesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListGroupResourcesErrorKind::BadRequestException(_inner) => _inner.fmt(f),
ListGroupResourcesErrorKind::ForbiddenException(_inner) => _inner.fmt(f),
ListGroupResourcesErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f),
ListGroupResourcesErrorKind::MethodNotAllowedException(_inner) => _inner.fmt(f),
ListGroupResourcesErrorKind::NotFoundException(_inner) => _inner.fmt(f),
ListGroupResourcesErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
ListGroupResourcesErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
ListGroupResourcesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListGroupResourcesError {
fn code(&self) -> Option<&str> {
ListGroupResourcesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListGroupResourcesError {
pub fn new(kind: ListGroupResourcesErrorKind, 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: ListGroupResourcesErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListGroupResourcesErrorKind::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_exception(&self) -> bool {
matches!(
&self.kind,
ListGroupResourcesErrorKind::BadRequestException(_)
)
}
pub fn is_forbidden_exception(&self) -> bool {
matches!(
&self.kind,
ListGroupResourcesErrorKind::ForbiddenException(_)
)
}
pub fn is_internal_server_error_exception(&self) -> bool {
matches!(
&self.kind,
ListGroupResourcesErrorKind::InternalServerErrorException(_)
)
}
pub fn is_method_not_allowed_exception(&self) -> bool {
matches!(
&self.kind,
ListGroupResourcesErrorKind::MethodNotAllowedException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ListGroupResourcesErrorKind::NotFoundException(_)
)
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(
&self.kind,
ListGroupResourcesErrorKind::TooManyRequestsException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
ListGroupResourcesErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for ListGroupResourcesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListGroupResourcesErrorKind::BadRequestException(_inner) => Some(_inner),
ListGroupResourcesErrorKind::ForbiddenException(_inner) => Some(_inner),
ListGroupResourcesErrorKind::InternalServerErrorException(_inner) => Some(_inner),
ListGroupResourcesErrorKind::MethodNotAllowedException(_inner) => Some(_inner),
ListGroupResourcesErrorKind::NotFoundException(_inner) => Some(_inner),
ListGroupResourcesErrorKind::TooManyRequestsException(_inner) => Some(_inner),
ListGroupResourcesErrorKind::UnauthorizedException(_inner) => Some(_inner),
ListGroupResourcesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListGroupsError {
pub kind: ListGroupsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListGroupsErrorKind {
BadRequestException(crate::error::BadRequestException),
ForbiddenException(crate::error::ForbiddenException),
InternalServerErrorException(crate::error::InternalServerErrorException),
MethodNotAllowedException(crate::error::MethodNotAllowedException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for ListGroupsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListGroupsErrorKind::BadRequestException(_inner) => _inner.fmt(f),
ListGroupsErrorKind::ForbiddenException(_inner) => _inner.fmt(f),
ListGroupsErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f),
ListGroupsErrorKind::MethodNotAllowedException(_inner) => _inner.fmt(f),
ListGroupsErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
ListGroupsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListGroupsError {
fn code(&self) -> Option<&str> {
ListGroupsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListGroupsError {
pub fn new(kind: ListGroupsErrorKind, 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: ListGroupsErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListGroupsErrorKind::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_exception(&self) -> bool {
matches!(&self.kind, ListGroupsErrorKind::BadRequestException(_))
}
pub fn is_forbidden_exception(&self) -> bool {
matches!(&self.kind, ListGroupsErrorKind::ForbiddenException(_))
}
pub fn is_internal_server_error_exception(&self) -> bool {
matches!(
&self.kind,
ListGroupsErrorKind::InternalServerErrorException(_)
)
}
pub fn is_method_not_allowed_exception(&self) -> bool {
matches!(
&self.kind,
ListGroupsErrorKind::MethodNotAllowedException(_)
)
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(&self.kind, ListGroupsErrorKind::TooManyRequestsException(_))
}
}
impl std::error::Error for ListGroupsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListGroupsErrorKind::BadRequestException(_inner) => Some(_inner),
ListGroupsErrorKind::ForbiddenException(_inner) => Some(_inner),
ListGroupsErrorKind::InternalServerErrorException(_inner) => Some(_inner),
ListGroupsErrorKind::MethodNotAllowedException(_inner) => Some(_inner),
ListGroupsErrorKind::TooManyRequestsException(_inner) => Some(_inner),
ListGroupsErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct PutGroupConfigurationError {
pub kind: PutGroupConfigurationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum PutGroupConfigurationErrorKind {
BadRequestException(crate::error::BadRequestException),
ForbiddenException(crate::error::ForbiddenException),
InternalServerErrorException(crate::error::InternalServerErrorException),
MethodNotAllowedException(crate::error::MethodNotAllowedException),
NotFoundException(crate::error::NotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for PutGroupConfigurationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
PutGroupConfigurationErrorKind::BadRequestException(_inner) => _inner.fmt(f),
PutGroupConfigurationErrorKind::ForbiddenException(_inner) => _inner.fmt(f),
PutGroupConfigurationErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f),
PutGroupConfigurationErrorKind::MethodNotAllowedException(_inner) => _inner.fmt(f),
PutGroupConfigurationErrorKind::NotFoundException(_inner) => _inner.fmt(f),
PutGroupConfigurationErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
PutGroupConfigurationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for PutGroupConfigurationError {
fn code(&self) -> Option<&str> {
PutGroupConfigurationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl PutGroupConfigurationError {
pub fn new(kind: PutGroupConfigurationErrorKind, 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: PutGroupConfigurationErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: PutGroupConfigurationErrorKind::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_exception(&self) -> bool {
matches!(
&self.kind,
PutGroupConfigurationErrorKind::BadRequestException(_)
)
}
pub fn is_forbidden_exception(&self) -> bool {
matches!(
&self.kind,
PutGroupConfigurationErrorKind::ForbiddenException(_)
)
}
pub fn is_internal_server_error_exception(&self) -> bool {
matches!(
&self.kind,
PutGroupConfigurationErrorKind::InternalServerErrorException(_)
)
}
pub fn is_method_not_allowed_exception(&self) -> bool {
matches!(
&self.kind,
PutGroupConfigurationErrorKind::MethodNotAllowedException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
PutGroupConfigurationErrorKind::NotFoundException(_)
)
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(
&self.kind,
PutGroupConfigurationErrorKind::TooManyRequestsException(_)
)
}
}
impl std::error::Error for PutGroupConfigurationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
PutGroupConfigurationErrorKind::BadRequestException(_inner) => Some(_inner),
PutGroupConfigurationErrorKind::ForbiddenException(_inner) => Some(_inner),
PutGroupConfigurationErrorKind::InternalServerErrorException(_inner) => Some(_inner),
PutGroupConfigurationErrorKind::MethodNotAllowedException(_inner) => Some(_inner),
PutGroupConfigurationErrorKind::NotFoundException(_inner) => Some(_inner),
PutGroupConfigurationErrorKind::TooManyRequestsException(_inner) => Some(_inner),
PutGroupConfigurationErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct SearchResourcesError {
pub kind: SearchResourcesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum SearchResourcesErrorKind {
BadRequestException(crate::error::BadRequestException),
ForbiddenException(crate::error::ForbiddenException),
InternalServerErrorException(crate::error::InternalServerErrorException),
MethodNotAllowedException(crate::error::MethodNotAllowedException),
TooManyRequestsException(crate::error::TooManyRequestsException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for SearchResourcesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
SearchResourcesErrorKind::BadRequestException(_inner) => _inner.fmt(f),
SearchResourcesErrorKind::ForbiddenException(_inner) => _inner.fmt(f),
SearchResourcesErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f),
SearchResourcesErrorKind::MethodNotAllowedException(_inner) => _inner.fmt(f),
SearchResourcesErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
SearchResourcesErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
SearchResourcesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for SearchResourcesError {
fn code(&self) -> Option<&str> {
SearchResourcesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl SearchResourcesError {
pub fn new(kind: SearchResourcesErrorKind, 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: SearchResourcesErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: SearchResourcesErrorKind::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_exception(&self) -> bool {
matches!(&self.kind, SearchResourcesErrorKind::BadRequestException(_))
}
pub fn is_forbidden_exception(&self) -> bool {
matches!(&self.kind, SearchResourcesErrorKind::ForbiddenException(_))
}
pub fn is_internal_server_error_exception(&self) -> bool {
matches!(
&self.kind,
SearchResourcesErrorKind::InternalServerErrorException(_)
)
}
pub fn is_method_not_allowed_exception(&self) -> bool {
matches!(
&self.kind,
SearchResourcesErrorKind::MethodNotAllowedException(_)
)
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(
&self.kind,
SearchResourcesErrorKind::TooManyRequestsException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
SearchResourcesErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for SearchResourcesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
SearchResourcesErrorKind::BadRequestException(_inner) => Some(_inner),
SearchResourcesErrorKind::ForbiddenException(_inner) => Some(_inner),
SearchResourcesErrorKind::InternalServerErrorException(_inner) => Some(_inner),
SearchResourcesErrorKind::MethodNotAllowedException(_inner) => Some(_inner),
SearchResourcesErrorKind::TooManyRequestsException(_inner) => Some(_inner),
SearchResourcesErrorKind::UnauthorizedException(_inner) => Some(_inner),
SearchResourcesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct TagError {
pub kind: TagErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum TagErrorKind {
BadRequestException(crate::error::BadRequestException),
ForbiddenException(crate::error::ForbiddenException),
InternalServerErrorException(crate::error::InternalServerErrorException),
MethodNotAllowedException(crate::error::MethodNotAllowedException),
NotFoundException(crate::error::NotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for TagError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
TagErrorKind::BadRequestException(_inner) => _inner.fmt(f),
TagErrorKind::ForbiddenException(_inner) => _inner.fmt(f),
TagErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f),
TagErrorKind::MethodNotAllowedException(_inner) => _inner.fmt(f),
TagErrorKind::NotFoundException(_inner) => _inner.fmt(f),
TagErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
TagErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for TagError {
fn code(&self) -> Option<&str> {
TagError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl TagError {
pub fn new(kind: TagErrorKind, 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: TagErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: TagErrorKind::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_exception(&self) -> bool {
matches!(&self.kind, TagErrorKind::BadRequestException(_))
}
pub fn is_forbidden_exception(&self) -> bool {
matches!(&self.kind, TagErrorKind::ForbiddenException(_))
}
pub fn is_internal_server_error_exception(&self) -> bool {
matches!(&self.kind, TagErrorKind::InternalServerErrorException(_))
}
pub fn is_method_not_allowed_exception(&self) -> bool {
matches!(&self.kind, TagErrorKind::MethodNotAllowedException(_))
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, TagErrorKind::NotFoundException(_))
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(&self.kind, TagErrorKind::TooManyRequestsException(_))
}
}
impl std::error::Error for TagError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
TagErrorKind::BadRequestException(_inner) => Some(_inner),
TagErrorKind::ForbiddenException(_inner) => Some(_inner),
TagErrorKind::InternalServerErrorException(_inner) => Some(_inner),
TagErrorKind::MethodNotAllowedException(_inner) => Some(_inner),
TagErrorKind::NotFoundException(_inner) => Some(_inner),
TagErrorKind::TooManyRequestsException(_inner) => Some(_inner),
TagErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UngroupResourcesError {
pub kind: UngroupResourcesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UngroupResourcesErrorKind {
BadRequestException(crate::error::BadRequestException),
ForbiddenException(crate::error::ForbiddenException),
InternalServerErrorException(crate::error::InternalServerErrorException),
MethodNotAllowedException(crate::error::MethodNotAllowedException),
NotFoundException(crate::error::NotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for UngroupResourcesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UngroupResourcesErrorKind::BadRequestException(_inner) => _inner.fmt(f),
UngroupResourcesErrorKind::ForbiddenException(_inner) => _inner.fmt(f),
UngroupResourcesErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f),
UngroupResourcesErrorKind::MethodNotAllowedException(_inner) => _inner.fmt(f),
UngroupResourcesErrorKind::NotFoundException(_inner) => _inner.fmt(f),
UngroupResourcesErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
UngroupResourcesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UngroupResourcesError {
fn code(&self) -> Option<&str> {
UngroupResourcesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UngroupResourcesError {
pub fn new(kind: UngroupResourcesErrorKind, 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: UngroupResourcesErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UngroupResourcesErrorKind::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_exception(&self) -> bool {
matches!(
&self.kind,
UngroupResourcesErrorKind::BadRequestException(_)
)
}
pub fn is_forbidden_exception(&self) -> bool {
matches!(&self.kind, UngroupResourcesErrorKind::ForbiddenException(_))
}
pub fn is_internal_server_error_exception(&self) -> bool {
matches!(
&self.kind,
UngroupResourcesErrorKind::InternalServerErrorException(_)
)
}
pub fn is_method_not_allowed_exception(&self) -> bool {
matches!(
&self.kind,
UngroupResourcesErrorKind::MethodNotAllowedException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, UngroupResourcesErrorKind::NotFoundException(_))
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(
&self.kind,
UngroupResourcesErrorKind::TooManyRequestsException(_)
)
}
}
impl std::error::Error for UngroupResourcesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UngroupResourcesErrorKind::BadRequestException(_inner) => Some(_inner),
UngroupResourcesErrorKind::ForbiddenException(_inner) => Some(_inner),
UngroupResourcesErrorKind::InternalServerErrorException(_inner) => Some(_inner),
UngroupResourcesErrorKind::MethodNotAllowedException(_inner) => Some(_inner),
UngroupResourcesErrorKind::NotFoundException(_inner) => Some(_inner),
UngroupResourcesErrorKind::TooManyRequestsException(_inner) => Some(_inner),
UngroupResourcesErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UntagError {
pub kind: UntagErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UntagErrorKind {
BadRequestException(crate::error::BadRequestException),
ForbiddenException(crate::error::ForbiddenException),
InternalServerErrorException(crate::error::InternalServerErrorException),
MethodNotAllowedException(crate::error::MethodNotAllowedException),
NotFoundException(crate::error::NotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for UntagError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UntagErrorKind::BadRequestException(_inner) => _inner.fmt(f),
UntagErrorKind::ForbiddenException(_inner) => _inner.fmt(f),
UntagErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f),
UntagErrorKind::MethodNotAllowedException(_inner) => _inner.fmt(f),
UntagErrorKind::NotFoundException(_inner) => _inner.fmt(f),
UntagErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
UntagErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UntagError {
fn code(&self) -> Option<&str> {
UntagError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UntagError {
pub fn new(kind: UntagErrorKind, 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: UntagErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UntagErrorKind::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_exception(&self) -> bool {
matches!(&self.kind, UntagErrorKind::BadRequestException(_))
}
pub fn is_forbidden_exception(&self) -> bool {
matches!(&self.kind, UntagErrorKind::ForbiddenException(_))
}
pub fn is_internal_server_error_exception(&self) -> bool {
matches!(&self.kind, UntagErrorKind::InternalServerErrorException(_))
}
pub fn is_method_not_allowed_exception(&self) -> bool {
matches!(&self.kind, UntagErrorKind::MethodNotAllowedException(_))
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, UntagErrorKind::NotFoundException(_))
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(&self.kind, UntagErrorKind::TooManyRequestsException(_))
}
}
impl std::error::Error for UntagError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UntagErrorKind::BadRequestException(_inner) => Some(_inner),
UntagErrorKind::ForbiddenException(_inner) => Some(_inner),
UntagErrorKind::InternalServerErrorException(_inner) => Some(_inner),
UntagErrorKind::MethodNotAllowedException(_inner) => Some(_inner),
UntagErrorKind::NotFoundException(_inner) => Some(_inner),
UntagErrorKind::TooManyRequestsException(_inner) => Some(_inner),
UntagErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateGroupError {
pub kind: UpdateGroupErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateGroupErrorKind {
BadRequestException(crate::error::BadRequestException),
ForbiddenException(crate::error::ForbiddenException),
InternalServerErrorException(crate::error::InternalServerErrorException),
MethodNotAllowedException(crate::error::MethodNotAllowedException),
NotFoundException(crate::error::NotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for UpdateGroupError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateGroupErrorKind::BadRequestException(_inner) => _inner.fmt(f),
UpdateGroupErrorKind::ForbiddenException(_inner) => _inner.fmt(f),
UpdateGroupErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f),
UpdateGroupErrorKind::MethodNotAllowedException(_inner) => _inner.fmt(f),
UpdateGroupErrorKind::NotFoundException(_inner) => _inner.fmt(f),
UpdateGroupErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
UpdateGroupErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateGroupError {
fn code(&self) -> Option<&str> {
UpdateGroupError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateGroupError {
pub fn new(kind: UpdateGroupErrorKind, 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: UpdateGroupErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateGroupErrorKind::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_exception(&self) -> bool {
matches!(&self.kind, UpdateGroupErrorKind::BadRequestException(_))
}
pub fn is_forbidden_exception(&self) -> bool {
matches!(&self.kind, UpdateGroupErrorKind::ForbiddenException(_))
}
pub fn is_internal_server_error_exception(&self) -> bool {
matches!(
&self.kind,
UpdateGroupErrorKind::InternalServerErrorException(_)
)
}
pub fn is_method_not_allowed_exception(&self) -> bool {
matches!(
&self.kind,
UpdateGroupErrorKind::MethodNotAllowedException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, UpdateGroupErrorKind::NotFoundException(_))
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(
&self.kind,
UpdateGroupErrorKind::TooManyRequestsException(_)
)
}
}
impl std::error::Error for UpdateGroupError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateGroupErrorKind::BadRequestException(_inner) => Some(_inner),
UpdateGroupErrorKind::ForbiddenException(_inner) => Some(_inner),
UpdateGroupErrorKind::InternalServerErrorException(_inner) => Some(_inner),
UpdateGroupErrorKind::MethodNotAllowedException(_inner) => Some(_inner),
UpdateGroupErrorKind::NotFoundException(_inner) => Some(_inner),
UpdateGroupErrorKind::TooManyRequestsException(_inner) => Some(_inner),
UpdateGroupErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateGroupQueryError {
pub kind: UpdateGroupQueryErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateGroupQueryErrorKind {
BadRequestException(crate::error::BadRequestException),
ForbiddenException(crate::error::ForbiddenException),
InternalServerErrorException(crate::error::InternalServerErrorException),
MethodNotAllowedException(crate::error::MethodNotAllowedException),
NotFoundException(crate::error::NotFoundException),
TooManyRequestsException(crate::error::TooManyRequestsException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for UpdateGroupQueryError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateGroupQueryErrorKind::BadRequestException(_inner) => _inner.fmt(f),
UpdateGroupQueryErrorKind::ForbiddenException(_inner) => _inner.fmt(f),
UpdateGroupQueryErrorKind::InternalServerErrorException(_inner) => _inner.fmt(f),
UpdateGroupQueryErrorKind::MethodNotAllowedException(_inner) => _inner.fmt(f),
UpdateGroupQueryErrorKind::NotFoundException(_inner) => _inner.fmt(f),
UpdateGroupQueryErrorKind::TooManyRequestsException(_inner) => _inner.fmt(f),
UpdateGroupQueryErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateGroupQueryError {
fn code(&self) -> Option<&str> {
UpdateGroupQueryError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateGroupQueryError {
pub fn new(kind: UpdateGroupQueryErrorKind, 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: UpdateGroupQueryErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateGroupQueryErrorKind::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_exception(&self) -> bool {
matches!(
&self.kind,
UpdateGroupQueryErrorKind::BadRequestException(_)
)
}
pub fn is_forbidden_exception(&self) -> bool {
matches!(&self.kind, UpdateGroupQueryErrorKind::ForbiddenException(_))
}
pub fn is_internal_server_error_exception(&self) -> bool {
matches!(
&self.kind,
UpdateGroupQueryErrorKind::InternalServerErrorException(_)
)
}
pub fn is_method_not_allowed_exception(&self) -> bool {
matches!(
&self.kind,
UpdateGroupQueryErrorKind::MethodNotAllowedException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, UpdateGroupQueryErrorKind::NotFoundException(_))
}
pub fn is_too_many_requests_exception(&self) -> bool {
matches!(
&self.kind,
UpdateGroupQueryErrorKind::TooManyRequestsException(_)
)
}
}
impl std::error::Error for UpdateGroupQueryError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateGroupQueryErrorKind::BadRequestException(_inner) => Some(_inner),
UpdateGroupQueryErrorKind::ForbiddenException(_inner) => Some(_inner),
UpdateGroupQueryErrorKind::InternalServerErrorException(_inner) => Some(_inner),
UpdateGroupQueryErrorKind::MethodNotAllowedException(_inner) => Some(_inner),
UpdateGroupQueryErrorKind::NotFoundException(_inner) => Some(_inner),
UpdateGroupQueryErrorKind::TooManyRequestsException(_inner) => Some(_inner),
UpdateGroupQueryErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TooManyRequestsException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TooManyRequestsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TooManyRequestsException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl TooManyRequestsException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyRequestsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyRequestsException")?;
if let Some(inner_1) = &self.message {
write!(f, ": {}", inner_1)?;
}
Ok(())
}
}
impl std::error::Error for TooManyRequestsException {}
pub mod too_many_requests_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::TooManyRequestsException {
crate::error::TooManyRequestsException {
message: self.message,
}
}
}
}
impl TooManyRequestsException {
pub fn builder() -> crate::error::too_many_requests_exception::Builder {
crate::error::too_many_requests_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct NotFoundException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for NotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("NotFoundException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl NotFoundException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for NotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "NotFoundException")?;
if let Some(inner_2) = &self.message {
write!(f, ": {}", inner_2)?;
}
Ok(())
}
}
impl std::error::Error for NotFoundException {}
pub mod not_found_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::NotFoundException {
crate::error::NotFoundException {
message: self.message,
}
}
}
}
impl NotFoundException {
pub fn builder() -> crate::error::not_found_exception::Builder {
crate::error::not_found_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct MethodNotAllowedException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for MethodNotAllowedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("MethodNotAllowedException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl MethodNotAllowedException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for MethodNotAllowedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "MethodNotAllowedException")?;
if let Some(inner_3) = &self.message {
write!(f, ": {}", inner_3)?;
}
Ok(())
}
}
impl std::error::Error for MethodNotAllowedException {}
pub mod method_not_allowed_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::MethodNotAllowedException {
crate::error::MethodNotAllowedException {
message: self.message,
}
}
}
}
impl MethodNotAllowedException {
pub fn builder() -> crate::error::method_not_allowed_exception::Builder {
crate::error::method_not_allowed_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InternalServerErrorException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InternalServerErrorException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InternalServerErrorException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InternalServerErrorException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InternalServerErrorException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InternalServerErrorException")?;
if let Some(inner_4) = &self.message {
write!(f, ": {}", inner_4)?;
}
Ok(())
}
}
impl std::error::Error for InternalServerErrorException {}
pub mod internal_server_error_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InternalServerErrorException {
crate::error::InternalServerErrorException {
message: self.message,
}
}
}
}
impl InternalServerErrorException {
pub fn builder() -> crate::error::internal_server_error_exception::Builder {
crate::error::internal_server_error_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ForbiddenException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for ForbiddenException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ForbiddenException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl ForbiddenException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ForbiddenException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ForbiddenException")?;
if let Some(inner_5) = &self.message {
write!(f, ": {}", inner_5)?;
}
Ok(())
}
}
impl std::error::Error for ForbiddenException {}
pub mod forbidden_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ForbiddenException {
crate::error::ForbiddenException {
message: self.message,
}
}
}
}
impl ForbiddenException {
pub fn builder() -> crate::error::forbidden_exception::Builder {
crate::error::forbidden_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct BadRequestException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for BadRequestException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("BadRequestException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl BadRequestException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for BadRequestException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "BadRequestException")?;
if let Some(inner_6) = &self.message {
write!(f, ": {}", inner_6)?;
}
Ok(())
}
}
impl std::error::Error for BadRequestException {}
pub mod bad_request_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::BadRequestException {
crate::error::BadRequestException {
message: self.message,
}
}
}
}
impl BadRequestException {
pub fn builder() -> crate::error::bad_request_exception::Builder {
crate::error::bad_request_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct UnauthorizedException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for UnauthorizedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("UnauthorizedException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl UnauthorizedException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for UnauthorizedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "UnauthorizedException")?;
if let Some(inner_7) = &self.message {
write!(f, ": {}", inner_7)?;
}
Ok(())
}
}
impl std::error::Error for UnauthorizedException {}
pub mod unauthorized_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::UnauthorizedException {
crate::error::UnauthorizedException {
message: self.message,
}
}
}
}
impl UnauthorizedException {
pub fn builder() -> crate::error::unauthorized_exception::Builder {
crate::error::unauthorized_exception::Builder::default()
}
}