#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteSessionError {
pub kind: DeleteSessionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteSessionErrorKind {
BadRequestException(crate::error::BadRequestException),
ConflictException(crate::error::ConflictException),
InternalFailureException(crate::error::InternalFailureException),
LimitExceededException(crate::error::LimitExceededException),
NotFoundException(crate::error::NotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for DeleteSessionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteSessionErrorKind::BadRequestException(_inner) => _inner.fmt(f),
DeleteSessionErrorKind::ConflictException(_inner) => _inner.fmt(f),
DeleteSessionErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
DeleteSessionErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
DeleteSessionErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DeleteSessionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteSessionError {
fn code(&self) -> Option<&str> {
DeleteSessionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteSessionError {
pub fn new(kind: DeleteSessionErrorKind, 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: DeleteSessionErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteSessionErrorKind::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, DeleteSessionErrorKind::BadRequestException(_))
}
pub fn is_conflict_exception(&self) -> bool {
matches!(&self.kind, DeleteSessionErrorKind::ConflictException(_))
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(
&self.kind,
DeleteSessionErrorKind::InternalFailureException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
DeleteSessionErrorKind::LimitExceededException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, DeleteSessionErrorKind::NotFoundException(_))
}
}
impl std::error::Error for DeleteSessionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteSessionErrorKind::BadRequestException(_inner) => Some(_inner),
DeleteSessionErrorKind::ConflictException(_inner) => Some(_inner),
DeleteSessionErrorKind::InternalFailureException(_inner) => Some(_inner),
DeleteSessionErrorKind::LimitExceededException(_inner) => Some(_inner),
DeleteSessionErrorKind::NotFoundException(_inner) => Some(_inner),
DeleteSessionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetSessionError {
pub kind: GetSessionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetSessionErrorKind {
BadRequestException(crate::error::BadRequestException),
InternalFailureException(crate::error::InternalFailureException),
LimitExceededException(crate::error::LimitExceededException),
NotFoundException(crate::error::NotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for GetSessionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetSessionErrorKind::BadRequestException(_inner) => _inner.fmt(f),
GetSessionErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
GetSessionErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
GetSessionErrorKind::NotFoundException(_inner) => _inner.fmt(f),
GetSessionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetSessionError {
fn code(&self) -> Option<&str> {
GetSessionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetSessionError {
pub fn new(kind: GetSessionErrorKind, 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: GetSessionErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetSessionErrorKind::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, GetSessionErrorKind::BadRequestException(_))
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(&self.kind, GetSessionErrorKind::InternalFailureException(_))
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(&self.kind, GetSessionErrorKind::LimitExceededException(_))
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, GetSessionErrorKind::NotFoundException(_))
}
}
impl std::error::Error for GetSessionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetSessionErrorKind::BadRequestException(_inner) => Some(_inner),
GetSessionErrorKind::InternalFailureException(_inner) => Some(_inner),
GetSessionErrorKind::LimitExceededException(_inner) => Some(_inner),
GetSessionErrorKind::NotFoundException(_inner) => Some(_inner),
GetSessionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct PostContentError {
pub kind: PostContentErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum PostContentErrorKind {
BadGatewayException(crate::error::BadGatewayException),
BadRequestException(crate::error::BadRequestException),
ConflictException(crate::error::ConflictException),
DependencyFailedException(crate::error::DependencyFailedException),
InternalFailureException(crate::error::InternalFailureException),
LimitExceededException(crate::error::LimitExceededException),
LoopDetectedException(crate::error::LoopDetectedException),
NotAcceptableException(crate::error::NotAcceptableException),
NotFoundException(crate::error::NotFoundException),
RequestTimeoutException(crate::error::RequestTimeoutException),
UnsupportedMediaTypeException(crate::error::UnsupportedMediaTypeException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for PostContentError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
PostContentErrorKind::BadGatewayException(_inner) => _inner.fmt(f),
PostContentErrorKind::BadRequestException(_inner) => _inner.fmt(f),
PostContentErrorKind::ConflictException(_inner) => _inner.fmt(f),
PostContentErrorKind::DependencyFailedException(_inner) => _inner.fmt(f),
PostContentErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
PostContentErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
PostContentErrorKind::LoopDetectedException(_inner) => _inner.fmt(f),
PostContentErrorKind::NotAcceptableException(_inner) => _inner.fmt(f),
PostContentErrorKind::NotFoundException(_inner) => _inner.fmt(f),
PostContentErrorKind::RequestTimeoutException(_inner) => _inner.fmt(f),
PostContentErrorKind::UnsupportedMediaTypeException(_inner) => _inner.fmt(f),
PostContentErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for PostContentError {
fn code(&self) -> Option<&str> {
PostContentError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl PostContentError {
pub fn new(kind: PostContentErrorKind, 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: PostContentErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: PostContentErrorKind::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_gateway_exception(&self) -> bool {
matches!(&self.kind, PostContentErrorKind::BadGatewayException(_))
}
pub fn is_bad_request_exception(&self) -> bool {
matches!(&self.kind, PostContentErrorKind::BadRequestException(_))
}
pub fn is_conflict_exception(&self) -> bool {
matches!(&self.kind, PostContentErrorKind::ConflictException(_))
}
pub fn is_dependency_failed_exception(&self) -> bool {
matches!(
&self.kind,
PostContentErrorKind::DependencyFailedException(_)
)
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(
&self.kind,
PostContentErrorKind::InternalFailureException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(&self.kind, PostContentErrorKind::LimitExceededException(_))
}
pub fn is_loop_detected_exception(&self) -> bool {
matches!(&self.kind, PostContentErrorKind::LoopDetectedException(_))
}
pub fn is_not_acceptable_exception(&self) -> bool {
matches!(&self.kind, PostContentErrorKind::NotAcceptableException(_))
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, PostContentErrorKind::NotFoundException(_))
}
pub fn is_request_timeout_exception(&self) -> bool {
matches!(&self.kind, PostContentErrorKind::RequestTimeoutException(_))
}
pub fn is_unsupported_media_type_exception(&self) -> bool {
matches!(
&self.kind,
PostContentErrorKind::UnsupportedMediaTypeException(_)
)
}
}
impl std::error::Error for PostContentError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
PostContentErrorKind::BadGatewayException(_inner) => Some(_inner),
PostContentErrorKind::BadRequestException(_inner) => Some(_inner),
PostContentErrorKind::ConflictException(_inner) => Some(_inner),
PostContentErrorKind::DependencyFailedException(_inner) => Some(_inner),
PostContentErrorKind::InternalFailureException(_inner) => Some(_inner),
PostContentErrorKind::LimitExceededException(_inner) => Some(_inner),
PostContentErrorKind::LoopDetectedException(_inner) => Some(_inner),
PostContentErrorKind::NotAcceptableException(_inner) => Some(_inner),
PostContentErrorKind::NotFoundException(_inner) => Some(_inner),
PostContentErrorKind::RequestTimeoutException(_inner) => Some(_inner),
PostContentErrorKind::UnsupportedMediaTypeException(_inner) => Some(_inner),
PostContentErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct PostTextError {
pub kind: PostTextErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum PostTextErrorKind {
BadGatewayException(crate::error::BadGatewayException),
BadRequestException(crate::error::BadRequestException),
ConflictException(crate::error::ConflictException),
DependencyFailedException(crate::error::DependencyFailedException),
InternalFailureException(crate::error::InternalFailureException),
LimitExceededException(crate::error::LimitExceededException),
LoopDetectedException(crate::error::LoopDetectedException),
NotFoundException(crate::error::NotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for PostTextError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
PostTextErrorKind::BadGatewayException(_inner) => _inner.fmt(f),
PostTextErrorKind::BadRequestException(_inner) => _inner.fmt(f),
PostTextErrorKind::ConflictException(_inner) => _inner.fmt(f),
PostTextErrorKind::DependencyFailedException(_inner) => _inner.fmt(f),
PostTextErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
PostTextErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
PostTextErrorKind::LoopDetectedException(_inner) => _inner.fmt(f),
PostTextErrorKind::NotFoundException(_inner) => _inner.fmt(f),
PostTextErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for PostTextError {
fn code(&self) -> Option<&str> {
PostTextError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl PostTextError {
pub fn new(kind: PostTextErrorKind, 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: PostTextErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: PostTextErrorKind::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_gateway_exception(&self) -> bool {
matches!(&self.kind, PostTextErrorKind::BadGatewayException(_))
}
pub fn is_bad_request_exception(&self) -> bool {
matches!(&self.kind, PostTextErrorKind::BadRequestException(_))
}
pub fn is_conflict_exception(&self) -> bool {
matches!(&self.kind, PostTextErrorKind::ConflictException(_))
}
pub fn is_dependency_failed_exception(&self) -> bool {
matches!(&self.kind, PostTextErrorKind::DependencyFailedException(_))
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(&self.kind, PostTextErrorKind::InternalFailureException(_))
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(&self.kind, PostTextErrorKind::LimitExceededException(_))
}
pub fn is_loop_detected_exception(&self) -> bool {
matches!(&self.kind, PostTextErrorKind::LoopDetectedException(_))
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, PostTextErrorKind::NotFoundException(_))
}
}
impl std::error::Error for PostTextError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
PostTextErrorKind::BadGatewayException(_inner) => Some(_inner),
PostTextErrorKind::BadRequestException(_inner) => Some(_inner),
PostTextErrorKind::ConflictException(_inner) => Some(_inner),
PostTextErrorKind::DependencyFailedException(_inner) => Some(_inner),
PostTextErrorKind::InternalFailureException(_inner) => Some(_inner),
PostTextErrorKind::LimitExceededException(_inner) => Some(_inner),
PostTextErrorKind::LoopDetectedException(_inner) => Some(_inner),
PostTextErrorKind::NotFoundException(_inner) => Some(_inner),
PostTextErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct PutSessionError {
pub kind: PutSessionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum PutSessionErrorKind {
BadGatewayException(crate::error::BadGatewayException),
BadRequestException(crate::error::BadRequestException),
ConflictException(crate::error::ConflictException),
DependencyFailedException(crate::error::DependencyFailedException),
InternalFailureException(crate::error::InternalFailureException),
LimitExceededException(crate::error::LimitExceededException),
NotAcceptableException(crate::error::NotAcceptableException),
NotFoundException(crate::error::NotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for PutSessionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
PutSessionErrorKind::BadGatewayException(_inner) => _inner.fmt(f),
PutSessionErrorKind::BadRequestException(_inner) => _inner.fmt(f),
PutSessionErrorKind::ConflictException(_inner) => _inner.fmt(f),
PutSessionErrorKind::DependencyFailedException(_inner) => _inner.fmt(f),
PutSessionErrorKind::InternalFailureException(_inner) => _inner.fmt(f),
PutSessionErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
PutSessionErrorKind::NotAcceptableException(_inner) => _inner.fmt(f),
PutSessionErrorKind::NotFoundException(_inner) => _inner.fmt(f),
PutSessionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for PutSessionError {
fn code(&self) -> Option<&str> {
PutSessionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl PutSessionError {
pub fn new(kind: PutSessionErrorKind, 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: PutSessionErrorKind::Unhandled(err.into()),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: PutSessionErrorKind::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_gateway_exception(&self) -> bool {
matches!(&self.kind, PutSessionErrorKind::BadGatewayException(_))
}
pub fn is_bad_request_exception(&self) -> bool {
matches!(&self.kind, PutSessionErrorKind::BadRequestException(_))
}
pub fn is_conflict_exception(&self) -> bool {
matches!(&self.kind, PutSessionErrorKind::ConflictException(_))
}
pub fn is_dependency_failed_exception(&self) -> bool {
matches!(
&self.kind,
PutSessionErrorKind::DependencyFailedException(_)
)
}
pub fn is_internal_failure_exception(&self) -> bool {
matches!(&self.kind, PutSessionErrorKind::InternalFailureException(_))
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(&self.kind, PutSessionErrorKind::LimitExceededException(_))
}
pub fn is_not_acceptable_exception(&self) -> bool {
matches!(&self.kind, PutSessionErrorKind::NotAcceptableException(_))
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, PutSessionErrorKind::NotFoundException(_))
}
}
impl std::error::Error for PutSessionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
PutSessionErrorKind::BadGatewayException(_inner) => Some(_inner),
PutSessionErrorKind::BadRequestException(_inner) => Some(_inner),
PutSessionErrorKind::ConflictException(_inner) => Some(_inner),
PutSessionErrorKind::DependencyFailedException(_inner) => Some(_inner),
PutSessionErrorKind::InternalFailureException(_inner) => Some(_inner),
PutSessionErrorKind::LimitExceededException(_inner) => Some(_inner),
PutSessionErrorKind::NotAcceptableException(_inner) => Some(_inner),
PutSessionErrorKind::NotFoundException(_inner) => Some(_inner),
PutSessionErrorKind::Unhandled(_inner) => Some(_inner.as_ref()),
}
}
}
#[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_1) = &self.message {
write!(f, ": {}", inner_1)?;
}
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 NotAcceptableException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for NotAcceptableException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("NotAcceptableException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl NotAcceptableException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for NotAcceptableException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "NotAcceptableException")?;
if let Some(inner_2) = &self.message {
write!(f, ": {}", inner_2)?;
}
Ok(())
}
}
impl std::error::Error for NotAcceptableException {}
pub mod not_acceptable_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::NotAcceptableException {
crate::error::NotAcceptableException {
message: self.message,
}
}
}
}
impl NotAcceptableException {
pub fn builder() -> crate::error::not_acceptable_exception::Builder {
crate::error::not_acceptable_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct LimitExceededException {
#[allow(missing_docs)] pub retry_after_seconds: std::option::Option<std::string::String>,
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl LimitExceededException {
#[allow(missing_docs)] pub fn retry_after_seconds(&self) -> std::option::Option<&str> {
self.retry_after_seconds.as_deref()
}
}
impl std::fmt::Debug for LimitExceededException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("LimitExceededException");
formatter.field("retry_after_seconds", &self.retry_after_seconds);
formatter.field("message", &self.message);
formatter.finish()
}
}
impl LimitExceededException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for LimitExceededException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "LimitExceededException")?;
if let Some(inner_3) = &self.message {
write!(f, ": {}", inner_3)?;
}
Ok(())
}
}
impl std::error::Error for LimitExceededException {}
pub mod limit_exceeded_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) retry_after_seconds: std::option::Option<std::string::String>,
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn retry_after_seconds(mut self, input: impl Into<std::string::String>) -> Self {
self.retry_after_seconds = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_retry_after_seconds(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.retry_after_seconds = 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::LimitExceededException {
crate::error::LimitExceededException {
retry_after_seconds: self.retry_after_seconds,
message: self.message,
}
}
}
}
impl LimitExceededException {
pub fn builder() -> crate::error::limit_exceeded_exception::Builder {
crate::error::limit_exceeded_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InternalFailureException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InternalFailureException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InternalFailureException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl InternalFailureException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InternalFailureException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InternalFailureException")?;
if let Some(inner_4) = &self.message {
write!(f, ": {}", inner_4)?;
}
Ok(())
}
}
impl std::error::Error for InternalFailureException {}
pub mod internal_failure_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::InternalFailureException {
crate::error::InternalFailureException {
message: self.message,
}
}
}
}
impl InternalFailureException {
pub fn builder() -> crate::error::internal_failure_exception::Builder {
crate::error::internal_failure_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DependencyFailedException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for DependencyFailedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DependencyFailedException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl DependencyFailedException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DependencyFailedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DependencyFailedException")?;
if let Some(inner_5) = &self.message {
write!(f, ": {}", inner_5)?;
}
Ok(())
}
}
impl std::error::Error for DependencyFailedException {}
pub mod dependency_failed_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::DependencyFailedException {
crate::error::DependencyFailedException {
message: self.message,
}
}
}
}
impl DependencyFailedException {
pub fn builder() -> crate::error::dependency_failed_exception::Builder {
crate::error::dependency_failed_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ConflictException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for ConflictException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ConflictException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl ConflictException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ConflictException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ConflictException")?;
if let Some(inner_6) = &self.message {
write!(f, ": {}", inner_6)?;
}
Ok(())
}
}
impl std::error::Error for ConflictException {}
pub mod conflict_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::ConflictException {
crate::error::ConflictException {
message: self.message,
}
}
}
}
impl ConflictException {
pub fn builder() -> crate::error::conflict_exception::Builder {
crate::error::conflict_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_7) = &self.message {
write!(f, ": {}", inner_7)?;
}
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 BadGatewayException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for BadGatewayException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("BadGatewayException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl BadGatewayException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for BadGatewayException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "BadGatewayException")?;
if let Some(inner_8) = &self.message {
write!(f, ": {}", inner_8)?;
}
Ok(())
}
}
impl std::error::Error for BadGatewayException {}
pub mod bad_gateway_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::BadGatewayException {
crate::error::BadGatewayException {
message: self.message,
}
}
}
}
impl BadGatewayException {
pub fn builder() -> crate::error::bad_gateway_exception::Builder {
crate::error::bad_gateway_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct LoopDetectedException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for LoopDetectedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("LoopDetectedException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl LoopDetectedException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for LoopDetectedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "LoopDetectedException")?;
if let Some(inner_9) = &self.message {
write!(f, ": {}", inner_9)?;
}
Ok(())
}
}
impl std::error::Error for LoopDetectedException {}
pub mod loop_detected_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::LoopDetectedException {
crate::error::LoopDetectedException {
message: self.message,
}
}
}
}
impl LoopDetectedException {
pub fn builder() -> crate::error::loop_detected_exception::Builder {
crate::error::loop_detected_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct UnsupportedMediaTypeException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for UnsupportedMediaTypeException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("UnsupportedMediaTypeException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl UnsupportedMediaTypeException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for UnsupportedMediaTypeException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "UnsupportedMediaTypeException")?;
if let Some(inner_10) = &self.message {
write!(f, ": {}", inner_10)?;
}
Ok(())
}
}
impl std::error::Error for UnsupportedMediaTypeException {}
pub mod unsupported_media_type_exception {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::UnsupportedMediaTypeException {
crate::error::UnsupportedMediaTypeException {
message: self.message,
}
}
}
}
impl UnsupportedMediaTypeException {
pub fn builder() -> crate::error::unsupported_media_type_exception::Builder {
crate::error::unsupported_media_type_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct RequestTimeoutException {
#[allow(missing_docs)] pub message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for RequestTimeoutException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("RequestTimeoutException");
formatter.field("message", &self.message);
formatter.finish()
}
}
impl RequestTimeoutException {
pub fn message(&self) -> Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for RequestTimeoutException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "RequestTimeoutException")?;
if let Some(inner_11) = &self.message {
write!(f, ": {}", inner_11)?;
}
Ok(())
}
}
impl std::error::Error for RequestTimeoutException {}
pub mod request_timeout_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::RequestTimeoutException {
crate::error::RequestTimeoutException {
message: self.message,
}
}
}
}
impl RequestTimeoutException {
pub fn builder() -> crate::error::request_timeout_exception::Builder {
crate::error::request_timeout_exception::Builder::default()
}
}