#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ViewBillingError {
pub kind: ViewBillingErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ViewBillingError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ViewBillingErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ViewBillingErrorKind {
InvalidInput(crate::error::InvalidInput),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ViewBillingError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ViewBillingErrorKind::InvalidInput(_inner) => _inner.fmt(f),
ViewBillingErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ViewBillingError {
fn code(&self) -> Option<&str> {
ViewBillingError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ViewBillingError {
pub fn new(kind: ViewBillingErrorKind, 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: ViewBillingErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ViewBillingErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_input(&self) -> bool {
matches!(&self.kind, ViewBillingErrorKind::InvalidInput(_))
}
}
impl std::error::Error for ViewBillingError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ViewBillingErrorKind::InvalidInput(_inner) => Some(_inner),
ViewBillingErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidInput {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidInput {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidInput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidInput")?;
if let Some(inner_1) = &self.message {
{
write!(f, ": {}", inner_1)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidInput {}
pub mod invalid_input {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidInput {
crate::error::InvalidInput {
message: self.message,
}
}
}
}
impl InvalidInput {
pub fn builder() -> crate::error::invalid_input::Builder {
crate::error::invalid_input::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateTagsForDomainError {
pub kind: UpdateTagsForDomainErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateTagsForDomainError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateTagsForDomainErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateTagsForDomainErrorKind {
InvalidInput(crate::error::InvalidInput),
OperationLimitExceeded(crate::error::OperationLimitExceeded),
UnsupportedTld(crate::error::UnsupportedTld),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateTagsForDomainError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateTagsForDomainErrorKind::InvalidInput(_inner) => _inner.fmt(f),
UpdateTagsForDomainErrorKind::OperationLimitExceeded(_inner) => _inner.fmt(f),
UpdateTagsForDomainErrorKind::UnsupportedTld(_inner) => _inner.fmt(f),
UpdateTagsForDomainErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateTagsForDomainError {
fn code(&self) -> Option<&str> {
UpdateTagsForDomainError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateTagsForDomainError {
pub fn new(kind: UpdateTagsForDomainErrorKind, 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: UpdateTagsForDomainErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateTagsForDomainErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_input(&self) -> bool {
matches!(&self.kind, UpdateTagsForDomainErrorKind::InvalidInput(_))
}
pub fn is_operation_limit_exceeded(&self) -> bool {
matches!(
&self.kind,
UpdateTagsForDomainErrorKind::OperationLimitExceeded(_)
)
}
pub fn is_unsupported_tld(&self) -> bool {
matches!(&self.kind, UpdateTagsForDomainErrorKind::UnsupportedTld(_))
}
}
impl std::error::Error for UpdateTagsForDomainError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateTagsForDomainErrorKind::InvalidInput(_inner) => Some(_inner),
UpdateTagsForDomainErrorKind::OperationLimitExceeded(_inner) => Some(_inner),
UpdateTagsForDomainErrorKind::UnsupportedTld(_inner) => Some(_inner),
UpdateTagsForDomainErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UnsupportedTld {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl UnsupportedTld {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for UnsupportedTld {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "UnsupportedTld [UnsupportedTLD]")?;
if let Some(inner_2) = &self.message {
{
write!(f, ": {}", inner_2)?;
}
}
Ok(())
}
}
impl std::error::Error for UnsupportedTld {}
pub mod unsupported_tld {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::UnsupportedTld {
crate::error::UnsupportedTld {
message: self.message,
}
}
}
}
impl UnsupportedTld {
pub fn builder() -> crate::error::unsupported_tld::Builder {
crate::error::unsupported_tld::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct OperationLimitExceeded {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl OperationLimitExceeded {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for OperationLimitExceeded {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "OperationLimitExceeded")?;
if let Some(inner_3) = &self.message {
{
write!(f, ": {}", inner_3)?;
}
}
Ok(())
}
}
impl std::error::Error for OperationLimitExceeded {}
pub mod operation_limit_exceeded {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::OperationLimitExceeded {
crate::error::OperationLimitExceeded {
message: self.message,
}
}
}
}
impl OperationLimitExceeded {
pub fn builder() -> crate::error::operation_limit_exceeded::Builder {
crate::error::operation_limit_exceeded::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateDomainNameserversError {
pub kind: UpdateDomainNameserversErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateDomainNameserversError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateDomainNameserversErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateDomainNameserversErrorKind {
DuplicateRequest(crate::error::DuplicateRequest),
InvalidInput(crate::error::InvalidInput),
OperationLimitExceeded(crate::error::OperationLimitExceeded),
TldRulesViolation(crate::error::TldRulesViolation),
UnsupportedTld(crate::error::UnsupportedTld),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateDomainNameserversError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateDomainNameserversErrorKind::DuplicateRequest(_inner) => _inner.fmt(f),
UpdateDomainNameserversErrorKind::InvalidInput(_inner) => _inner.fmt(f),
UpdateDomainNameserversErrorKind::OperationLimitExceeded(_inner) => _inner.fmt(f),
UpdateDomainNameserversErrorKind::TldRulesViolation(_inner) => _inner.fmt(f),
UpdateDomainNameserversErrorKind::UnsupportedTld(_inner) => _inner.fmt(f),
UpdateDomainNameserversErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateDomainNameserversError {
fn code(&self) -> Option<&str> {
UpdateDomainNameserversError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateDomainNameserversError {
pub fn new(kind: UpdateDomainNameserversErrorKind, 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: UpdateDomainNameserversErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateDomainNameserversErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_duplicate_request(&self) -> bool {
matches!(
&self.kind,
UpdateDomainNameserversErrorKind::DuplicateRequest(_)
)
}
pub fn is_invalid_input(&self) -> bool {
matches!(
&self.kind,
UpdateDomainNameserversErrorKind::InvalidInput(_)
)
}
pub fn is_operation_limit_exceeded(&self) -> bool {
matches!(
&self.kind,
UpdateDomainNameserversErrorKind::OperationLimitExceeded(_)
)
}
pub fn is_tld_rules_violation(&self) -> bool {
matches!(
&self.kind,
UpdateDomainNameserversErrorKind::TldRulesViolation(_)
)
}
pub fn is_unsupported_tld(&self) -> bool {
matches!(
&self.kind,
UpdateDomainNameserversErrorKind::UnsupportedTld(_)
)
}
}
impl std::error::Error for UpdateDomainNameserversError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateDomainNameserversErrorKind::DuplicateRequest(_inner) => Some(_inner),
UpdateDomainNameserversErrorKind::InvalidInput(_inner) => Some(_inner),
UpdateDomainNameserversErrorKind::OperationLimitExceeded(_inner) => Some(_inner),
UpdateDomainNameserversErrorKind::TldRulesViolation(_inner) => Some(_inner),
UpdateDomainNameserversErrorKind::UnsupportedTld(_inner) => Some(_inner),
UpdateDomainNameserversErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TldRulesViolation {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl TldRulesViolation {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TldRulesViolation {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TldRulesViolation [TLDRulesViolation]")?;
if let Some(inner_4) = &self.message {
{
write!(f, ": {}", inner_4)?;
}
}
Ok(())
}
}
impl std::error::Error for TldRulesViolation {}
pub mod tld_rules_violation {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::TldRulesViolation {
crate::error::TldRulesViolation {
message: self.message,
}
}
}
}
impl TldRulesViolation {
pub fn builder() -> crate::error::tld_rules_violation::Builder {
crate::error::tld_rules_violation::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DuplicateRequest {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl DuplicateRequest {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DuplicateRequest {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DuplicateRequest")?;
if let Some(inner_5) = &self.message {
{
write!(f, ": {}", inner_5)?;
}
}
Ok(())
}
}
impl std::error::Error for DuplicateRequest {}
pub mod duplicate_request {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::DuplicateRequest {
crate::error::DuplicateRequest {
message: self.message,
}
}
}
}
impl DuplicateRequest {
pub fn builder() -> crate::error::duplicate_request::Builder {
crate::error::duplicate_request::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateDomainContactPrivacyError {
pub kind: UpdateDomainContactPrivacyErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateDomainContactPrivacyError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateDomainContactPrivacyErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateDomainContactPrivacyErrorKind {
DuplicateRequest(crate::error::DuplicateRequest),
InvalidInput(crate::error::InvalidInput),
OperationLimitExceeded(crate::error::OperationLimitExceeded),
TldRulesViolation(crate::error::TldRulesViolation),
UnsupportedTld(crate::error::UnsupportedTld),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateDomainContactPrivacyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateDomainContactPrivacyErrorKind::DuplicateRequest(_inner) => _inner.fmt(f),
UpdateDomainContactPrivacyErrorKind::InvalidInput(_inner) => _inner.fmt(f),
UpdateDomainContactPrivacyErrorKind::OperationLimitExceeded(_inner) => _inner.fmt(f),
UpdateDomainContactPrivacyErrorKind::TldRulesViolation(_inner) => _inner.fmt(f),
UpdateDomainContactPrivacyErrorKind::UnsupportedTld(_inner) => _inner.fmt(f),
UpdateDomainContactPrivacyErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateDomainContactPrivacyError {
fn code(&self) -> Option<&str> {
UpdateDomainContactPrivacyError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateDomainContactPrivacyError {
pub fn new(kind: UpdateDomainContactPrivacyErrorKind, 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: UpdateDomainContactPrivacyErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateDomainContactPrivacyErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_duplicate_request(&self) -> bool {
matches!(
&self.kind,
UpdateDomainContactPrivacyErrorKind::DuplicateRequest(_)
)
}
pub fn is_invalid_input(&self) -> bool {
matches!(
&self.kind,
UpdateDomainContactPrivacyErrorKind::InvalidInput(_)
)
}
pub fn is_operation_limit_exceeded(&self) -> bool {
matches!(
&self.kind,
UpdateDomainContactPrivacyErrorKind::OperationLimitExceeded(_)
)
}
pub fn is_tld_rules_violation(&self) -> bool {
matches!(
&self.kind,
UpdateDomainContactPrivacyErrorKind::TldRulesViolation(_)
)
}
pub fn is_unsupported_tld(&self) -> bool {
matches!(
&self.kind,
UpdateDomainContactPrivacyErrorKind::UnsupportedTld(_)
)
}
}
impl std::error::Error for UpdateDomainContactPrivacyError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateDomainContactPrivacyErrorKind::DuplicateRequest(_inner) => Some(_inner),
UpdateDomainContactPrivacyErrorKind::InvalidInput(_inner) => Some(_inner),
UpdateDomainContactPrivacyErrorKind::OperationLimitExceeded(_inner) => Some(_inner),
UpdateDomainContactPrivacyErrorKind::TldRulesViolation(_inner) => Some(_inner),
UpdateDomainContactPrivacyErrorKind::UnsupportedTld(_inner) => Some(_inner),
UpdateDomainContactPrivacyErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateDomainContactError {
pub kind: UpdateDomainContactErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateDomainContactError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateDomainContactErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateDomainContactErrorKind {
DuplicateRequest(crate::error::DuplicateRequest),
InvalidInput(crate::error::InvalidInput),
OperationLimitExceeded(crate::error::OperationLimitExceeded),
TldRulesViolation(crate::error::TldRulesViolation),
UnsupportedTld(crate::error::UnsupportedTld),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateDomainContactError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateDomainContactErrorKind::DuplicateRequest(_inner) => _inner.fmt(f),
UpdateDomainContactErrorKind::InvalidInput(_inner) => _inner.fmt(f),
UpdateDomainContactErrorKind::OperationLimitExceeded(_inner) => _inner.fmt(f),
UpdateDomainContactErrorKind::TldRulesViolation(_inner) => _inner.fmt(f),
UpdateDomainContactErrorKind::UnsupportedTld(_inner) => _inner.fmt(f),
UpdateDomainContactErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateDomainContactError {
fn code(&self) -> Option<&str> {
UpdateDomainContactError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateDomainContactError {
pub fn new(kind: UpdateDomainContactErrorKind, 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: UpdateDomainContactErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateDomainContactErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_duplicate_request(&self) -> bool {
matches!(
&self.kind,
UpdateDomainContactErrorKind::DuplicateRequest(_)
)
}
pub fn is_invalid_input(&self) -> bool {
matches!(&self.kind, UpdateDomainContactErrorKind::InvalidInput(_))
}
pub fn is_operation_limit_exceeded(&self) -> bool {
matches!(
&self.kind,
UpdateDomainContactErrorKind::OperationLimitExceeded(_)
)
}
pub fn is_tld_rules_violation(&self) -> bool {
matches!(
&self.kind,
UpdateDomainContactErrorKind::TldRulesViolation(_)
)
}
pub fn is_unsupported_tld(&self) -> bool {
matches!(&self.kind, UpdateDomainContactErrorKind::UnsupportedTld(_))
}
}
impl std::error::Error for UpdateDomainContactError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateDomainContactErrorKind::DuplicateRequest(_inner) => Some(_inner),
UpdateDomainContactErrorKind::InvalidInput(_inner) => Some(_inner),
UpdateDomainContactErrorKind::OperationLimitExceeded(_inner) => Some(_inner),
UpdateDomainContactErrorKind::TldRulesViolation(_inner) => Some(_inner),
UpdateDomainContactErrorKind::UnsupportedTld(_inner) => Some(_inner),
UpdateDomainContactErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct TransferDomainToAnotherAwsAccountError {
pub kind: TransferDomainToAnotherAwsAccountErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for TransferDomainToAnotherAwsAccountError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: TransferDomainToAnotherAwsAccountErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum TransferDomainToAnotherAwsAccountErrorKind {
DuplicateRequest(crate::error::DuplicateRequest),
InvalidInput(crate::error::InvalidInput),
OperationLimitExceeded(crate::error::OperationLimitExceeded),
UnsupportedTld(crate::error::UnsupportedTld),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for TransferDomainToAnotherAwsAccountError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
TransferDomainToAnotherAwsAccountErrorKind::DuplicateRequest(_inner) => _inner.fmt(f),
TransferDomainToAnotherAwsAccountErrorKind::InvalidInput(_inner) => _inner.fmt(f),
TransferDomainToAnotherAwsAccountErrorKind::OperationLimitExceeded(_inner) => {
_inner.fmt(f)
}
TransferDomainToAnotherAwsAccountErrorKind::UnsupportedTld(_inner) => _inner.fmt(f),
TransferDomainToAnotherAwsAccountErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for TransferDomainToAnotherAwsAccountError {
fn code(&self) -> Option<&str> {
TransferDomainToAnotherAwsAccountError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl TransferDomainToAnotherAwsAccountError {
pub fn new(
kind: TransferDomainToAnotherAwsAccountErrorKind,
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: TransferDomainToAnotherAwsAccountErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: TransferDomainToAnotherAwsAccountErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_duplicate_request(&self) -> bool {
matches!(
&self.kind,
TransferDomainToAnotherAwsAccountErrorKind::DuplicateRequest(_)
)
}
pub fn is_invalid_input(&self) -> bool {
matches!(
&self.kind,
TransferDomainToAnotherAwsAccountErrorKind::InvalidInput(_)
)
}
pub fn is_operation_limit_exceeded(&self) -> bool {
matches!(
&self.kind,
TransferDomainToAnotherAwsAccountErrorKind::OperationLimitExceeded(_)
)
}
pub fn is_unsupported_tld(&self) -> bool {
matches!(
&self.kind,
TransferDomainToAnotherAwsAccountErrorKind::UnsupportedTld(_)
)
}
}
impl std::error::Error for TransferDomainToAnotherAwsAccountError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
TransferDomainToAnotherAwsAccountErrorKind::DuplicateRequest(_inner) => Some(_inner),
TransferDomainToAnotherAwsAccountErrorKind::InvalidInput(_inner) => Some(_inner),
TransferDomainToAnotherAwsAccountErrorKind::OperationLimitExceeded(_inner) => {
Some(_inner)
}
TransferDomainToAnotherAwsAccountErrorKind::UnsupportedTld(_inner) => Some(_inner),
TransferDomainToAnotherAwsAccountErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct TransferDomainError {
pub kind: TransferDomainErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for TransferDomainError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: TransferDomainErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum TransferDomainErrorKind {
DomainLimitExceeded(crate::error::DomainLimitExceeded),
DuplicateRequest(crate::error::DuplicateRequest),
InvalidInput(crate::error::InvalidInput),
OperationLimitExceeded(crate::error::OperationLimitExceeded),
TldRulesViolation(crate::error::TldRulesViolation),
UnsupportedTld(crate::error::UnsupportedTld),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for TransferDomainError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
TransferDomainErrorKind::DomainLimitExceeded(_inner) => _inner.fmt(f),
TransferDomainErrorKind::DuplicateRequest(_inner) => _inner.fmt(f),
TransferDomainErrorKind::InvalidInput(_inner) => _inner.fmt(f),
TransferDomainErrorKind::OperationLimitExceeded(_inner) => _inner.fmt(f),
TransferDomainErrorKind::TldRulesViolation(_inner) => _inner.fmt(f),
TransferDomainErrorKind::UnsupportedTld(_inner) => _inner.fmt(f),
TransferDomainErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for TransferDomainError {
fn code(&self) -> Option<&str> {
TransferDomainError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl TransferDomainError {
pub fn new(kind: TransferDomainErrorKind, 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: TransferDomainErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: TransferDomainErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_domain_limit_exceeded(&self) -> bool {
matches!(&self.kind, TransferDomainErrorKind::DomainLimitExceeded(_))
}
pub fn is_duplicate_request(&self) -> bool {
matches!(&self.kind, TransferDomainErrorKind::DuplicateRequest(_))
}
pub fn is_invalid_input(&self) -> bool {
matches!(&self.kind, TransferDomainErrorKind::InvalidInput(_))
}
pub fn is_operation_limit_exceeded(&self) -> bool {
matches!(
&self.kind,
TransferDomainErrorKind::OperationLimitExceeded(_)
)
}
pub fn is_tld_rules_violation(&self) -> bool {
matches!(&self.kind, TransferDomainErrorKind::TldRulesViolation(_))
}
pub fn is_unsupported_tld(&self) -> bool {
matches!(&self.kind, TransferDomainErrorKind::UnsupportedTld(_))
}
}
impl std::error::Error for TransferDomainError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
TransferDomainErrorKind::DomainLimitExceeded(_inner) => Some(_inner),
TransferDomainErrorKind::DuplicateRequest(_inner) => Some(_inner),
TransferDomainErrorKind::InvalidInput(_inner) => Some(_inner),
TransferDomainErrorKind::OperationLimitExceeded(_inner) => Some(_inner),
TransferDomainErrorKind::TldRulesViolation(_inner) => Some(_inner),
TransferDomainErrorKind::UnsupportedTld(_inner) => Some(_inner),
TransferDomainErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DomainLimitExceeded {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl DomainLimitExceeded {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DomainLimitExceeded {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DomainLimitExceeded")?;
if let Some(inner_6) = &self.message {
{
write!(f, ": {}", inner_6)?;
}
}
Ok(())
}
}
impl std::error::Error for DomainLimitExceeded {}
pub mod domain_limit_exceeded {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::DomainLimitExceeded {
crate::error::DomainLimitExceeded {
message: self.message,
}
}
}
}
impl DomainLimitExceeded {
pub fn builder() -> crate::error::domain_limit_exceeded::Builder {
crate::error::domain_limit_exceeded::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RetrieveDomainAuthCodeError {
pub kind: RetrieveDomainAuthCodeErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for RetrieveDomainAuthCodeError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: RetrieveDomainAuthCodeErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RetrieveDomainAuthCodeErrorKind {
InvalidInput(crate::error::InvalidInput),
UnsupportedTld(crate::error::UnsupportedTld),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for RetrieveDomainAuthCodeError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RetrieveDomainAuthCodeErrorKind::InvalidInput(_inner) => _inner.fmt(f),
RetrieveDomainAuthCodeErrorKind::UnsupportedTld(_inner) => _inner.fmt(f),
RetrieveDomainAuthCodeErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RetrieveDomainAuthCodeError {
fn code(&self) -> Option<&str> {
RetrieveDomainAuthCodeError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RetrieveDomainAuthCodeError {
pub fn new(kind: RetrieveDomainAuthCodeErrorKind, 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: RetrieveDomainAuthCodeErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RetrieveDomainAuthCodeErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_input(&self) -> bool {
matches!(&self.kind, RetrieveDomainAuthCodeErrorKind::InvalidInput(_))
}
pub fn is_unsupported_tld(&self) -> bool {
matches!(
&self.kind,
RetrieveDomainAuthCodeErrorKind::UnsupportedTld(_)
)
}
}
impl std::error::Error for RetrieveDomainAuthCodeError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RetrieveDomainAuthCodeErrorKind::InvalidInput(_inner) => Some(_inner),
RetrieveDomainAuthCodeErrorKind::UnsupportedTld(_inner) => Some(_inner),
RetrieveDomainAuthCodeErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ResendOperationAuthorizationError {
pub kind: ResendOperationAuthorizationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ResendOperationAuthorizationError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ResendOperationAuthorizationErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ResendOperationAuthorizationErrorKind {
InvalidInput(crate::error::InvalidInput),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ResendOperationAuthorizationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ResendOperationAuthorizationErrorKind::InvalidInput(_inner) => _inner.fmt(f),
ResendOperationAuthorizationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ResendOperationAuthorizationError {
fn code(&self) -> Option<&str> {
ResendOperationAuthorizationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ResendOperationAuthorizationError {
pub fn new(kind: ResendOperationAuthorizationErrorKind, 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: ResendOperationAuthorizationErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ResendOperationAuthorizationErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_input(&self) -> bool {
matches!(
&self.kind,
ResendOperationAuthorizationErrorKind::InvalidInput(_)
)
}
}
impl std::error::Error for ResendOperationAuthorizationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ResendOperationAuthorizationErrorKind::InvalidInput(_inner) => Some(_inner),
ResendOperationAuthorizationErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ResendContactReachabilityEmailError {
pub kind: ResendContactReachabilityEmailErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ResendContactReachabilityEmailError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ResendContactReachabilityEmailErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ResendContactReachabilityEmailErrorKind {
InvalidInput(crate::error::InvalidInput),
OperationLimitExceeded(crate::error::OperationLimitExceeded),
UnsupportedTld(crate::error::UnsupportedTld),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ResendContactReachabilityEmailError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ResendContactReachabilityEmailErrorKind::InvalidInput(_inner) => _inner.fmt(f),
ResendContactReachabilityEmailErrorKind::OperationLimitExceeded(_inner) => {
_inner.fmt(f)
}
ResendContactReachabilityEmailErrorKind::UnsupportedTld(_inner) => _inner.fmt(f),
ResendContactReachabilityEmailErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ResendContactReachabilityEmailError {
fn code(&self) -> Option<&str> {
ResendContactReachabilityEmailError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ResendContactReachabilityEmailError {
pub fn new(
kind: ResendContactReachabilityEmailErrorKind,
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: ResendContactReachabilityEmailErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ResendContactReachabilityEmailErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_input(&self) -> bool {
matches!(
&self.kind,
ResendContactReachabilityEmailErrorKind::InvalidInput(_)
)
}
pub fn is_operation_limit_exceeded(&self) -> bool {
matches!(
&self.kind,
ResendContactReachabilityEmailErrorKind::OperationLimitExceeded(_)
)
}
pub fn is_unsupported_tld(&self) -> bool {
matches!(
&self.kind,
ResendContactReachabilityEmailErrorKind::UnsupportedTld(_)
)
}
}
impl std::error::Error for ResendContactReachabilityEmailError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ResendContactReachabilityEmailErrorKind::InvalidInput(_inner) => Some(_inner),
ResendContactReachabilityEmailErrorKind::OperationLimitExceeded(_inner) => Some(_inner),
ResendContactReachabilityEmailErrorKind::UnsupportedTld(_inner) => Some(_inner),
ResendContactReachabilityEmailErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RenewDomainError {
pub kind: RenewDomainErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for RenewDomainError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: RenewDomainErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RenewDomainErrorKind {
DuplicateRequest(crate::error::DuplicateRequest),
InvalidInput(crate::error::InvalidInput),
OperationLimitExceeded(crate::error::OperationLimitExceeded),
TldRulesViolation(crate::error::TldRulesViolation),
UnsupportedTld(crate::error::UnsupportedTld),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for RenewDomainError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RenewDomainErrorKind::DuplicateRequest(_inner) => _inner.fmt(f),
RenewDomainErrorKind::InvalidInput(_inner) => _inner.fmt(f),
RenewDomainErrorKind::OperationLimitExceeded(_inner) => _inner.fmt(f),
RenewDomainErrorKind::TldRulesViolation(_inner) => _inner.fmt(f),
RenewDomainErrorKind::UnsupportedTld(_inner) => _inner.fmt(f),
RenewDomainErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RenewDomainError {
fn code(&self) -> Option<&str> {
RenewDomainError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RenewDomainError {
pub fn new(kind: RenewDomainErrorKind, 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: RenewDomainErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RenewDomainErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_duplicate_request(&self) -> bool {
matches!(&self.kind, RenewDomainErrorKind::DuplicateRequest(_))
}
pub fn is_invalid_input(&self) -> bool {
matches!(&self.kind, RenewDomainErrorKind::InvalidInput(_))
}
pub fn is_operation_limit_exceeded(&self) -> bool {
matches!(&self.kind, RenewDomainErrorKind::OperationLimitExceeded(_))
}
pub fn is_tld_rules_violation(&self) -> bool {
matches!(&self.kind, RenewDomainErrorKind::TldRulesViolation(_))
}
pub fn is_unsupported_tld(&self) -> bool {
matches!(&self.kind, RenewDomainErrorKind::UnsupportedTld(_))
}
}
impl std::error::Error for RenewDomainError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RenewDomainErrorKind::DuplicateRequest(_inner) => Some(_inner),
RenewDomainErrorKind::InvalidInput(_inner) => Some(_inner),
RenewDomainErrorKind::OperationLimitExceeded(_inner) => Some(_inner),
RenewDomainErrorKind::TldRulesViolation(_inner) => Some(_inner),
RenewDomainErrorKind::UnsupportedTld(_inner) => Some(_inner),
RenewDomainErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RejectDomainTransferFromAnotherAwsAccountError {
pub kind: RejectDomainTransferFromAnotherAwsAccountErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError
for RejectDomainTransferFromAnotherAwsAccountError
{
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: RejectDomainTransferFromAnotherAwsAccountErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RejectDomainTransferFromAnotherAwsAccountErrorKind {
InvalidInput(crate::error::InvalidInput),
OperationLimitExceeded(crate::error::OperationLimitExceeded),
UnsupportedTld(crate::error::UnsupportedTld),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for RejectDomainTransferFromAnotherAwsAccountError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RejectDomainTransferFromAnotherAwsAccountErrorKind::InvalidInput(_inner) => {
_inner.fmt(f)
}
RejectDomainTransferFromAnotherAwsAccountErrorKind::OperationLimitExceeded(_inner) => {
_inner.fmt(f)
}
RejectDomainTransferFromAnotherAwsAccountErrorKind::UnsupportedTld(_inner) => {
_inner.fmt(f)
}
RejectDomainTransferFromAnotherAwsAccountErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RejectDomainTransferFromAnotherAwsAccountError {
fn code(&self) -> Option<&str> {
RejectDomainTransferFromAnotherAwsAccountError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RejectDomainTransferFromAnotherAwsAccountError {
pub fn new(
kind: RejectDomainTransferFromAnotherAwsAccountErrorKind,
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: RejectDomainTransferFromAnotherAwsAccountErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RejectDomainTransferFromAnotherAwsAccountErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_input(&self) -> bool {
matches!(
&self.kind,
RejectDomainTransferFromAnotherAwsAccountErrorKind::InvalidInput(_)
)
}
pub fn is_operation_limit_exceeded(&self) -> bool {
matches!(
&self.kind,
RejectDomainTransferFromAnotherAwsAccountErrorKind::OperationLimitExceeded(_)
)
}
pub fn is_unsupported_tld(&self) -> bool {
matches!(
&self.kind,
RejectDomainTransferFromAnotherAwsAccountErrorKind::UnsupportedTld(_)
)
}
}
impl std::error::Error for RejectDomainTransferFromAnotherAwsAccountError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RejectDomainTransferFromAnotherAwsAccountErrorKind::InvalidInput(_inner) => {
Some(_inner)
}
RejectDomainTransferFromAnotherAwsAccountErrorKind::OperationLimitExceeded(_inner) => {
Some(_inner)
}
RejectDomainTransferFromAnotherAwsAccountErrorKind::UnsupportedTld(_inner) => {
Some(_inner)
}
RejectDomainTransferFromAnotherAwsAccountErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RegisterDomainError {
pub kind: RegisterDomainErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for RegisterDomainError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: RegisterDomainErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RegisterDomainErrorKind {
DomainLimitExceeded(crate::error::DomainLimitExceeded),
DuplicateRequest(crate::error::DuplicateRequest),
InvalidInput(crate::error::InvalidInput),
OperationLimitExceeded(crate::error::OperationLimitExceeded),
TldRulesViolation(crate::error::TldRulesViolation),
UnsupportedTld(crate::error::UnsupportedTld),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for RegisterDomainError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RegisterDomainErrorKind::DomainLimitExceeded(_inner) => _inner.fmt(f),
RegisterDomainErrorKind::DuplicateRequest(_inner) => _inner.fmt(f),
RegisterDomainErrorKind::InvalidInput(_inner) => _inner.fmt(f),
RegisterDomainErrorKind::OperationLimitExceeded(_inner) => _inner.fmt(f),
RegisterDomainErrorKind::TldRulesViolation(_inner) => _inner.fmt(f),
RegisterDomainErrorKind::UnsupportedTld(_inner) => _inner.fmt(f),
RegisterDomainErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RegisterDomainError {
fn code(&self) -> Option<&str> {
RegisterDomainError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RegisterDomainError {
pub fn new(kind: RegisterDomainErrorKind, 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: RegisterDomainErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RegisterDomainErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_domain_limit_exceeded(&self) -> bool {
matches!(&self.kind, RegisterDomainErrorKind::DomainLimitExceeded(_))
}
pub fn is_duplicate_request(&self) -> bool {
matches!(&self.kind, RegisterDomainErrorKind::DuplicateRequest(_))
}
pub fn is_invalid_input(&self) -> bool {
matches!(&self.kind, RegisterDomainErrorKind::InvalidInput(_))
}
pub fn is_operation_limit_exceeded(&self) -> bool {
matches!(
&self.kind,
RegisterDomainErrorKind::OperationLimitExceeded(_)
)
}
pub fn is_tld_rules_violation(&self) -> bool {
matches!(&self.kind, RegisterDomainErrorKind::TldRulesViolation(_))
}
pub fn is_unsupported_tld(&self) -> bool {
matches!(&self.kind, RegisterDomainErrorKind::UnsupportedTld(_))
}
}
impl std::error::Error for RegisterDomainError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RegisterDomainErrorKind::DomainLimitExceeded(_inner) => Some(_inner),
RegisterDomainErrorKind::DuplicateRequest(_inner) => Some(_inner),
RegisterDomainErrorKind::InvalidInput(_inner) => Some(_inner),
RegisterDomainErrorKind::OperationLimitExceeded(_inner) => Some(_inner),
RegisterDomainErrorKind::TldRulesViolation(_inner) => Some(_inner),
RegisterDomainErrorKind::UnsupportedTld(_inner) => Some(_inner),
RegisterDomainErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct PushDomainError {
pub kind: PushDomainErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for PushDomainError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: PushDomainErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum PushDomainErrorKind {
InvalidInput(crate::error::InvalidInput),
OperationLimitExceeded(crate::error::OperationLimitExceeded),
UnsupportedTld(crate::error::UnsupportedTld),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for PushDomainError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
PushDomainErrorKind::InvalidInput(_inner) => _inner.fmt(f),
PushDomainErrorKind::OperationLimitExceeded(_inner) => _inner.fmt(f),
PushDomainErrorKind::UnsupportedTld(_inner) => _inner.fmt(f),
PushDomainErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for PushDomainError {
fn code(&self) -> Option<&str> {
PushDomainError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl PushDomainError {
pub fn new(kind: PushDomainErrorKind, 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: PushDomainErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: PushDomainErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_input(&self) -> bool {
matches!(&self.kind, PushDomainErrorKind::InvalidInput(_))
}
pub fn is_operation_limit_exceeded(&self) -> bool {
matches!(&self.kind, PushDomainErrorKind::OperationLimitExceeded(_))
}
pub fn is_unsupported_tld(&self) -> bool {
matches!(&self.kind, PushDomainErrorKind::UnsupportedTld(_))
}
}
impl std::error::Error for PushDomainError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
PushDomainErrorKind::InvalidInput(_inner) => Some(_inner),
PushDomainErrorKind::OperationLimitExceeded(_inner) => Some(_inner),
PushDomainErrorKind::UnsupportedTld(_inner) => Some(_inner),
PushDomainErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListTagsForDomainError {
pub kind: ListTagsForDomainErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListTagsForDomainError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListTagsForDomainErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListTagsForDomainErrorKind {
InvalidInput(crate::error::InvalidInput),
OperationLimitExceeded(crate::error::OperationLimitExceeded),
UnsupportedTld(crate::error::UnsupportedTld),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListTagsForDomainError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListTagsForDomainErrorKind::InvalidInput(_inner) => _inner.fmt(f),
ListTagsForDomainErrorKind::OperationLimitExceeded(_inner) => _inner.fmt(f),
ListTagsForDomainErrorKind::UnsupportedTld(_inner) => _inner.fmt(f),
ListTagsForDomainErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListTagsForDomainError {
fn code(&self) -> Option<&str> {
ListTagsForDomainError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListTagsForDomainError {
pub fn new(kind: ListTagsForDomainErrorKind, 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: ListTagsForDomainErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListTagsForDomainErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_input(&self) -> bool {
matches!(&self.kind, ListTagsForDomainErrorKind::InvalidInput(_))
}
pub fn is_operation_limit_exceeded(&self) -> bool {
matches!(
&self.kind,
ListTagsForDomainErrorKind::OperationLimitExceeded(_)
)
}
pub fn is_unsupported_tld(&self) -> bool {
matches!(&self.kind, ListTagsForDomainErrorKind::UnsupportedTld(_))
}
}
impl std::error::Error for ListTagsForDomainError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListTagsForDomainErrorKind::InvalidInput(_inner) => Some(_inner),
ListTagsForDomainErrorKind::OperationLimitExceeded(_inner) => Some(_inner),
ListTagsForDomainErrorKind::UnsupportedTld(_inner) => Some(_inner),
ListTagsForDomainErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListPricesError {
pub kind: ListPricesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListPricesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListPricesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListPricesErrorKind {
InvalidInput(crate::error::InvalidInput),
UnsupportedTld(crate::error::UnsupportedTld),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListPricesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListPricesErrorKind::InvalidInput(_inner) => _inner.fmt(f),
ListPricesErrorKind::UnsupportedTld(_inner) => _inner.fmt(f),
ListPricesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListPricesError {
fn code(&self) -> Option<&str> {
ListPricesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListPricesError {
pub fn new(kind: ListPricesErrorKind, 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: ListPricesErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListPricesErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_input(&self) -> bool {
matches!(&self.kind, ListPricesErrorKind::InvalidInput(_))
}
pub fn is_unsupported_tld(&self) -> bool {
matches!(&self.kind, ListPricesErrorKind::UnsupportedTld(_))
}
}
impl std::error::Error for ListPricesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListPricesErrorKind::InvalidInput(_inner) => Some(_inner),
ListPricesErrorKind::UnsupportedTld(_inner) => Some(_inner),
ListPricesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListOperationsError {
pub kind: ListOperationsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListOperationsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListOperationsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListOperationsErrorKind {
InvalidInput(crate::error::InvalidInput),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListOperationsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListOperationsErrorKind::InvalidInput(_inner) => _inner.fmt(f),
ListOperationsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListOperationsError {
fn code(&self) -> Option<&str> {
ListOperationsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListOperationsError {
pub fn new(kind: ListOperationsErrorKind, 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: ListOperationsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListOperationsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_input(&self) -> bool {
matches!(&self.kind, ListOperationsErrorKind::InvalidInput(_))
}
}
impl std::error::Error for ListOperationsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListOperationsErrorKind::InvalidInput(_inner) => Some(_inner),
ListOperationsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListDomainsError {
pub kind: ListDomainsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListDomainsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListDomainsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListDomainsErrorKind {
InvalidInput(crate::error::InvalidInput),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListDomainsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListDomainsErrorKind::InvalidInput(_inner) => _inner.fmt(f),
ListDomainsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListDomainsError {
fn code(&self) -> Option<&str> {
ListDomainsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListDomainsError {
pub fn new(kind: ListDomainsErrorKind, 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: ListDomainsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListDomainsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_input(&self) -> bool {
matches!(&self.kind, ListDomainsErrorKind::InvalidInput(_))
}
}
impl std::error::Error for ListDomainsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListDomainsErrorKind::InvalidInput(_inner) => Some(_inner),
ListDomainsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetOperationDetailError {
pub kind: GetOperationDetailErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetOperationDetailError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetOperationDetailErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetOperationDetailErrorKind {
InvalidInput(crate::error::InvalidInput),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetOperationDetailError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetOperationDetailErrorKind::InvalidInput(_inner) => _inner.fmt(f),
GetOperationDetailErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetOperationDetailError {
fn code(&self) -> Option<&str> {
GetOperationDetailError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetOperationDetailError {
pub fn new(kind: GetOperationDetailErrorKind, 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: GetOperationDetailErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetOperationDetailErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_input(&self) -> bool {
matches!(&self.kind, GetOperationDetailErrorKind::InvalidInput(_))
}
}
impl std::error::Error for GetOperationDetailError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetOperationDetailErrorKind::InvalidInput(_inner) => Some(_inner),
GetOperationDetailErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetDomainSuggestionsError {
pub kind: GetDomainSuggestionsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetDomainSuggestionsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetDomainSuggestionsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetDomainSuggestionsErrorKind {
InvalidInput(crate::error::InvalidInput),
UnsupportedTld(crate::error::UnsupportedTld),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetDomainSuggestionsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetDomainSuggestionsErrorKind::InvalidInput(_inner) => _inner.fmt(f),
GetDomainSuggestionsErrorKind::UnsupportedTld(_inner) => _inner.fmt(f),
GetDomainSuggestionsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetDomainSuggestionsError {
fn code(&self) -> Option<&str> {
GetDomainSuggestionsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetDomainSuggestionsError {
pub fn new(kind: GetDomainSuggestionsErrorKind, 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: GetDomainSuggestionsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetDomainSuggestionsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_input(&self) -> bool {
matches!(&self.kind, GetDomainSuggestionsErrorKind::InvalidInput(_))
}
pub fn is_unsupported_tld(&self) -> bool {
matches!(&self.kind, GetDomainSuggestionsErrorKind::UnsupportedTld(_))
}
}
impl std::error::Error for GetDomainSuggestionsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetDomainSuggestionsErrorKind::InvalidInput(_inner) => Some(_inner),
GetDomainSuggestionsErrorKind::UnsupportedTld(_inner) => Some(_inner),
GetDomainSuggestionsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetDomainDetailError {
pub kind: GetDomainDetailErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetDomainDetailError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetDomainDetailErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetDomainDetailErrorKind {
InvalidInput(crate::error::InvalidInput),
UnsupportedTld(crate::error::UnsupportedTld),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetDomainDetailError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetDomainDetailErrorKind::InvalidInput(_inner) => _inner.fmt(f),
GetDomainDetailErrorKind::UnsupportedTld(_inner) => _inner.fmt(f),
GetDomainDetailErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetDomainDetailError {
fn code(&self) -> Option<&str> {
GetDomainDetailError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetDomainDetailError {
pub fn new(kind: GetDomainDetailErrorKind, 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: GetDomainDetailErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetDomainDetailErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_input(&self) -> bool {
matches!(&self.kind, GetDomainDetailErrorKind::InvalidInput(_))
}
pub fn is_unsupported_tld(&self) -> bool {
matches!(&self.kind, GetDomainDetailErrorKind::UnsupportedTld(_))
}
}
impl std::error::Error for GetDomainDetailError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetDomainDetailErrorKind::InvalidInput(_inner) => Some(_inner),
GetDomainDetailErrorKind::UnsupportedTld(_inner) => Some(_inner),
GetDomainDetailErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetContactReachabilityStatusError {
pub kind: GetContactReachabilityStatusErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetContactReachabilityStatusError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetContactReachabilityStatusErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetContactReachabilityStatusErrorKind {
InvalidInput(crate::error::InvalidInput),
OperationLimitExceeded(crate::error::OperationLimitExceeded),
UnsupportedTld(crate::error::UnsupportedTld),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetContactReachabilityStatusError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetContactReachabilityStatusErrorKind::InvalidInput(_inner) => _inner.fmt(f),
GetContactReachabilityStatusErrorKind::OperationLimitExceeded(_inner) => _inner.fmt(f),
GetContactReachabilityStatusErrorKind::UnsupportedTld(_inner) => _inner.fmt(f),
GetContactReachabilityStatusErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetContactReachabilityStatusError {
fn code(&self) -> Option<&str> {
GetContactReachabilityStatusError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetContactReachabilityStatusError {
pub fn new(kind: GetContactReachabilityStatusErrorKind, 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: GetContactReachabilityStatusErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetContactReachabilityStatusErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_input(&self) -> bool {
matches!(
&self.kind,
GetContactReachabilityStatusErrorKind::InvalidInput(_)
)
}
pub fn is_operation_limit_exceeded(&self) -> bool {
matches!(
&self.kind,
GetContactReachabilityStatusErrorKind::OperationLimitExceeded(_)
)
}
pub fn is_unsupported_tld(&self) -> bool {
matches!(
&self.kind,
GetContactReachabilityStatusErrorKind::UnsupportedTld(_)
)
}
}
impl std::error::Error for GetContactReachabilityStatusError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetContactReachabilityStatusErrorKind::InvalidInput(_inner) => Some(_inner),
GetContactReachabilityStatusErrorKind::OperationLimitExceeded(_inner) => Some(_inner),
GetContactReachabilityStatusErrorKind::UnsupportedTld(_inner) => Some(_inner),
GetContactReachabilityStatusErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct EnableDomainTransferLockError {
pub kind: EnableDomainTransferLockErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for EnableDomainTransferLockError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: EnableDomainTransferLockErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum EnableDomainTransferLockErrorKind {
DuplicateRequest(crate::error::DuplicateRequest),
InvalidInput(crate::error::InvalidInput),
OperationLimitExceeded(crate::error::OperationLimitExceeded),
TldRulesViolation(crate::error::TldRulesViolation),
UnsupportedTld(crate::error::UnsupportedTld),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for EnableDomainTransferLockError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
EnableDomainTransferLockErrorKind::DuplicateRequest(_inner) => _inner.fmt(f),
EnableDomainTransferLockErrorKind::InvalidInput(_inner) => _inner.fmt(f),
EnableDomainTransferLockErrorKind::OperationLimitExceeded(_inner) => _inner.fmt(f),
EnableDomainTransferLockErrorKind::TldRulesViolation(_inner) => _inner.fmt(f),
EnableDomainTransferLockErrorKind::UnsupportedTld(_inner) => _inner.fmt(f),
EnableDomainTransferLockErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for EnableDomainTransferLockError {
fn code(&self) -> Option<&str> {
EnableDomainTransferLockError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl EnableDomainTransferLockError {
pub fn new(kind: EnableDomainTransferLockErrorKind, 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: EnableDomainTransferLockErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: EnableDomainTransferLockErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_duplicate_request(&self) -> bool {
matches!(
&self.kind,
EnableDomainTransferLockErrorKind::DuplicateRequest(_)
)
}
pub fn is_invalid_input(&self) -> bool {
matches!(
&self.kind,
EnableDomainTransferLockErrorKind::InvalidInput(_)
)
}
pub fn is_operation_limit_exceeded(&self) -> bool {
matches!(
&self.kind,
EnableDomainTransferLockErrorKind::OperationLimitExceeded(_)
)
}
pub fn is_tld_rules_violation(&self) -> bool {
matches!(
&self.kind,
EnableDomainTransferLockErrorKind::TldRulesViolation(_)
)
}
pub fn is_unsupported_tld(&self) -> bool {
matches!(
&self.kind,
EnableDomainTransferLockErrorKind::UnsupportedTld(_)
)
}
}
impl std::error::Error for EnableDomainTransferLockError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
EnableDomainTransferLockErrorKind::DuplicateRequest(_inner) => Some(_inner),
EnableDomainTransferLockErrorKind::InvalidInput(_inner) => Some(_inner),
EnableDomainTransferLockErrorKind::OperationLimitExceeded(_inner) => Some(_inner),
EnableDomainTransferLockErrorKind::TldRulesViolation(_inner) => Some(_inner),
EnableDomainTransferLockErrorKind::UnsupportedTld(_inner) => Some(_inner),
EnableDomainTransferLockErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct EnableDomainAutoRenewError {
pub kind: EnableDomainAutoRenewErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for EnableDomainAutoRenewError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: EnableDomainAutoRenewErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum EnableDomainAutoRenewErrorKind {
InvalidInput(crate::error::InvalidInput),
TldRulesViolation(crate::error::TldRulesViolation),
UnsupportedTld(crate::error::UnsupportedTld),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for EnableDomainAutoRenewError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
EnableDomainAutoRenewErrorKind::InvalidInput(_inner) => _inner.fmt(f),
EnableDomainAutoRenewErrorKind::TldRulesViolation(_inner) => _inner.fmt(f),
EnableDomainAutoRenewErrorKind::UnsupportedTld(_inner) => _inner.fmt(f),
EnableDomainAutoRenewErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for EnableDomainAutoRenewError {
fn code(&self) -> Option<&str> {
EnableDomainAutoRenewError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl EnableDomainAutoRenewError {
pub fn new(kind: EnableDomainAutoRenewErrorKind, 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: EnableDomainAutoRenewErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: EnableDomainAutoRenewErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_input(&self) -> bool {
matches!(&self.kind, EnableDomainAutoRenewErrorKind::InvalidInput(_))
}
pub fn is_tld_rules_violation(&self) -> bool {
matches!(
&self.kind,
EnableDomainAutoRenewErrorKind::TldRulesViolation(_)
)
}
pub fn is_unsupported_tld(&self) -> bool {
matches!(
&self.kind,
EnableDomainAutoRenewErrorKind::UnsupportedTld(_)
)
}
}
impl std::error::Error for EnableDomainAutoRenewError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
EnableDomainAutoRenewErrorKind::InvalidInput(_inner) => Some(_inner),
EnableDomainAutoRenewErrorKind::TldRulesViolation(_inner) => Some(_inner),
EnableDomainAutoRenewErrorKind::UnsupportedTld(_inner) => Some(_inner),
EnableDomainAutoRenewErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DisassociateDelegationSignerFromDomainError {
pub kind: DisassociateDelegationSignerFromDomainErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DisassociateDelegationSignerFromDomainError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DisassociateDelegationSignerFromDomainErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DisassociateDelegationSignerFromDomainErrorKind {
DuplicateRequest(crate::error::DuplicateRequest),
InvalidInput(crate::error::InvalidInput),
OperationLimitExceeded(crate::error::OperationLimitExceeded),
TldRulesViolation(crate::error::TldRulesViolation),
UnsupportedTld(crate::error::UnsupportedTld),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DisassociateDelegationSignerFromDomainError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DisassociateDelegationSignerFromDomainErrorKind::DuplicateRequest(_inner) => {
_inner.fmt(f)
}
DisassociateDelegationSignerFromDomainErrorKind::InvalidInput(_inner) => _inner.fmt(f),
DisassociateDelegationSignerFromDomainErrorKind::OperationLimitExceeded(_inner) => {
_inner.fmt(f)
}
DisassociateDelegationSignerFromDomainErrorKind::TldRulesViolation(_inner) => {
_inner.fmt(f)
}
DisassociateDelegationSignerFromDomainErrorKind::UnsupportedTld(_inner) => {
_inner.fmt(f)
}
DisassociateDelegationSignerFromDomainErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DisassociateDelegationSignerFromDomainError {
fn code(&self) -> Option<&str> {
DisassociateDelegationSignerFromDomainError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DisassociateDelegationSignerFromDomainError {
pub fn new(
kind: DisassociateDelegationSignerFromDomainErrorKind,
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: DisassociateDelegationSignerFromDomainErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DisassociateDelegationSignerFromDomainErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_duplicate_request(&self) -> bool {
matches!(
&self.kind,
DisassociateDelegationSignerFromDomainErrorKind::DuplicateRequest(_)
)
}
pub fn is_invalid_input(&self) -> bool {
matches!(
&self.kind,
DisassociateDelegationSignerFromDomainErrorKind::InvalidInput(_)
)
}
pub fn is_operation_limit_exceeded(&self) -> bool {
matches!(
&self.kind,
DisassociateDelegationSignerFromDomainErrorKind::OperationLimitExceeded(_)
)
}
pub fn is_tld_rules_violation(&self) -> bool {
matches!(
&self.kind,
DisassociateDelegationSignerFromDomainErrorKind::TldRulesViolation(_)
)
}
pub fn is_unsupported_tld(&self) -> bool {
matches!(
&self.kind,
DisassociateDelegationSignerFromDomainErrorKind::UnsupportedTld(_)
)
}
}
impl std::error::Error for DisassociateDelegationSignerFromDomainError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DisassociateDelegationSignerFromDomainErrorKind::DuplicateRequest(_inner) => {
Some(_inner)
}
DisassociateDelegationSignerFromDomainErrorKind::InvalidInput(_inner) => Some(_inner),
DisassociateDelegationSignerFromDomainErrorKind::OperationLimitExceeded(_inner) => {
Some(_inner)
}
DisassociateDelegationSignerFromDomainErrorKind::TldRulesViolation(_inner) => {
Some(_inner)
}
DisassociateDelegationSignerFromDomainErrorKind::UnsupportedTld(_inner) => Some(_inner),
DisassociateDelegationSignerFromDomainErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DisableDomainTransferLockError {
pub kind: DisableDomainTransferLockErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DisableDomainTransferLockError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DisableDomainTransferLockErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DisableDomainTransferLockErrorKind {
DuplicateRequest(crate::error::DuplicateRequest),
InvalidInput(crate::error::InvalidInput),
OperationLimitExceeded(crate::error::OperationLimitExceeded),
TldRulesViolation(crate::error::TldRulesViolation),
UnsupportedTld(crate::error::UnsupportedTld),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DisableDomainTransferLockError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DisableDomainTransferLockErrorKind::DuplicateRequest(_inner) => _inner.fmt(f),
DisableDomainTransferLockErrorKind::InvalidInput(_inner) => _inner.fmt(f),
DisableDomainTransferLockErrorKind::OperationLimitExceeded(_inner) => _inner.fmt(f),
DisableDomainTransferLockErrorKind::TldRulesViolation(_inner) => _inner.fmt(f),
DisableDomainTransferLockErrorKind::UnsupportedTld(_inner) => _inner.fmt(f),
DisableDomainTransferLockErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DisableDomainTransferLockError {
fn code(&self) -> Option<&str> {
DisableDomainTransferLockError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DisableDomainTransferLockError {
pub fn new(kind: DisableDomainTransferLockErrorKind, 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: DisableDomainTransferLockErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DisableDomainTransferLockErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_duplicate_request(&self) -> bool {
matches!(
&self.kind,
DisableDomainTransferLockErrorKind::DuplicateRequest(_)
)
}
pub fn is_invalid_input(&self) -> bool {
matches!(
&self.kind,
DisableDomainTransferLockErrorKind::InvalidInput(_)
)
}
pub fn is_operation_limit_exceeded(&self) -> bool {
matches!(
&self.kind,
DisableDomainTransferLockErrorKind::OperationLimitExceeded(_)
)
}
pub fn is_tld_rules_violation(&self) -> bool {
matches!(
&self.kind,
DisableDomainTransferLockErrorKind::TldRulesViolation(_)
)
}
pub fn is_unsupported_tld(&self) -> bool {
matches!(
&self.kind,
DisableDomainTransferLockErrorKind::UnsupportedTld(_)
)
}
}
impl std::error::Error for DisableDomainTransferLockError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DisableDomainTransferLockErrorKind::DuplicateRequest(_inner) => Some(_inner),
DisableDomainTransferLockErrorKind::InvalidInput(_inner) => Some(_inner),
DisableDomainTransferLockErrorKind::OperationLimitExceeded(_inner) => Some(_inner),
DisableDomainTransferLockErrorKind::TldRulesViolation(_inner) => Some(_inner),
DisableDomainTransferLockErrorKind::UnsupportedTld(_inner) => Some(_inner),
DisableDomainTransferLockErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DisableDomainAutoRenewError {
pub kind: DisableDomainAutoRenewErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DisableDomainAutoRenewError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DisableDomainAutoRenewErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DisableDomainAutoRenewErrorKind {
InvalidInput(crate::error::InvalidInput),
UnsupportedTld(crate::error::UnsupportedTld),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DisableDomainAutoRenewError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DisableDomainAutoRenewErrorKind::InvalidInput(_inner) => _inner.fmt(f),
DisableDomainAutoRenewErrorKind::UnsupportedTld(_inner) => _inner.fmt(f),
DisableDomainAutoRenewErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DisableDomainAutoRenewError {
fn code(&self) -> Option<&str> {
DisableDomainAutoRenewError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DisableDomainAutoRenewError {
pub fn new(kind: DisableDomainAutoRenewErrorKind, 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: DisableDomainAutoRenewErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DisableDomainAutoRenewErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_input(&self) -> bool {
matches!(&self.kind, DisableDomainAutoRenewErrorKind::InvalidInput(_))
}
pub fn is_unsupported_tld(&self) -> bool {
matches!(
&self.kind,
DisableDomainAutoRenewErrorKind::UnsupportedTld(_)
)
}
}
impl std::error::Error for DisableDomainAutoRenewError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DisableDomainAutoRenewErrorKind::InvalidInput(_inner) => Some(_inner),
DisableDomainAutoRenewErrorKind::UnsupportedTld(_inner) => Some(_inner),
DisableDomainAutoRenewErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteTagsForDomainError {
pub kind: DeleteTagsForDomainErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteTagsForDomainError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteTagsForDomainErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteTagsForDomainErrorKind {
InvalidInput(crate::error::InvalidInput),
OperationLimitExceeded(crate::error::OperationLimitExceeded),
UnsupportedTld(crate::error::UnsupportedTld),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteTagsForDomainError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteTagsForDomainErrorKind::InvalidInput(_inner) => _inner.fmt(f),
DeleteTagsForDomainErrorKind::OperationLimitExceeded(_inner) => _inner.fmt(f),
DeleteTagsForDomainErrorKind::UnsupportedTld(_inner) => _inner.fmt(f),
DeleteTagsForDomainErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteTagsForDomainError {
fn code(&self) -> Option<&str> {
DeleteTagsForDomainError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteTagsForDomainError {
pub fn new(kind: DeleteTagsForDomainErrorKind, 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: DeleteTagsForDomainErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteTagsForDomainErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_input(&self) -> bool {
matches!(&self.kind, DeleteTagsForDomainErrorKind::InvalidInput(_))
}
pub fn is_operation_limit_exceeded(&self) -> bool {
matches!(
&self.kind,
DeleteTagsForDomainErrorKind::OperationLimitExceeded(_)
)
}
pub fn is_unsupported_tld(&self) -> bool {
matches!(&self.kind, DeleteTagsForDomainErrorKind::UnsupportedTld(_))
}
}
impl std::error::Error for DeleteTagsForDomainError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteTagsForDomainErrorKind::InvalidInput(_inner) => Some(_inner),
DeleteTagsForDomainErrorKind::OperationLimitExceeded(_inner) => Some(_inner),
DeleteTagsForDomainErrorKind::UnsupportedTld(_inner) => Some(_inner),
DeleteTagsForDomainErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteDomainError {
pub kind: DeleteDomainErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteDomainError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteDomainErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteDomainErrorKind {
DuplicateRequest(crate::error::DuplicateRequest),
InvalidInput(crate::error::InvalidInput),
TldRulesViolation(crate::error::TldRulesViolation),
UnsupportedTld(crate::error::UnsupportedTld),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteDomainError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteDomainErrorKind::DuplicateRequest(_inner) => _inner.fmt(f),
DeleteDomainErrorKind::InvalidInput(_inner) => _inner.fmt(f),
DeleteDomainErrorKind::TldRulesViolation(_inner) => _inner.fmt(f),
DeleteDomainErrorKind::UnsupportedTld(_inner) => _inner.fmt(f),
DeleteDomainErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteDomainError {
fn code(&self) -> Option<&str> {
DeleteDomainError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteDomainError {
pub fn new(kind: DeleteDomainErrorKind, 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: DeleteDomainErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteDomainErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_duplicate_request(&self) -> bool {
matches!(&self.kind, DeleteDomainErrorKind::DuplicateRequest(_))
}
pub fn is_invalid_input(&self) -> bool {
matches!(&self.kind, DeleteDomainErrorKind::InvalidInput(_))
}
pub fn is_tld_rules_violation(&self) -> bool {
matches!(&self.kind, DeleteDomainErrorKind::TldRulesViolation(_))
}
pub fn is_unsupported_tld(&self) -> bool {
matches!(&self.kind, DeleteDomainErrorKind::UnsupportedTld(_))
}
}
impl std::error::Error for DeleteDomainError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteDomainErrorKind::DuplicateRequest(_inner) => Some(_inner),
DeleteDomainErrorKind::InvalidInput(_inner) => Some(_inner),
DeleteDomainErrorKind::TldRulesViolation(_inner) => Some(_inner),
DeleteDomainErrorKind::UnsupportedTld(_inner) => Some(_inner),
DeleteDomainErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CheckDomainTransferabilityError {
pub kind: CheckDomainTransferabilityErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CheckDomainTransferabilityError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CheckDomainTransferabilityErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CheckDomainTransferabilityErrorKind {
InvalidInput(crate::error::InvalidInput),
UnsupportedTld(crate::error::UnsupportedTld),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CheckDomainTransferabilityError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CheckDomainTransferabilityErrorKind::InvalidInput(_inner) => _inner.fmt(f),
CheckDomainTransferabilityErrorKind::UnsupportedTld(_inner) => _inner.fmt(f),
CheckDomainTransferabilityErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CheckDomainTransferabilityError {
fn code(&self) -> Option<&str> {
CheckDomainTransferabilityError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CheckDomainTransferabilityError {
pub fn new(kind: CheckDomainTransferabilityErrorKind, 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: CheckDomainTransferabilityErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CheckDomainTransferabilityErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_input(&self) -> bool {
matches!(
&self.kind,
CheckDomainTransferabilityErrorKind::InvalidInput(_)
)
}
pub fn is_unsupported_tld(&self) -> bool {
matches!(
&self.kind,
CheckDomainTransferabilityErrorKind::UnsupportedTld(_)
)
}
}
impl std::error::Error for CheckDomainTransferabilityError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CheckDomainTransferabilityErrorKind::InvalidInput(_inner) => Some(_inner),
CheckDomainTransferabilityErrorKind::UnsupportedTld(_inner) => Some(_inner),
CheckDomainTransferabilityErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CheckDomainAvailabilityError {
pub kind: CheckDomainAvailabilityErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CheckDomainAvailabilityError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CheckDomainAvailabilityErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CheckDomainAvailabilityErrorKind {
InvalidInput(crate::error::InvalidInput),
UnsupportedTld(crate::error::UnsupportedTld),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CheckDomainAvailabilityError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CheckDomainAvailabilityErrorKind::InvalidInput(_inner) => _inner.fmt(f),
CheckDomainAvailabilityErrorKind::UnsupportedTld(_inner) => _inner.fmt(f),
CheckDomainAvailabilityErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CheckDomainAvailabilityError {
fn code(&self) -> Option<&str> {
CheckDomainAvailabilityError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CheckDomainAvailabilityError {
pub fn new(kind: CheckDomainAvailabilityErrorKind, 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: CheckDomainAvailabilityErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CheckDomainAvailabilityErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_input(&self) -> bool {
matches!(
&self.kind,
CheckDomainAvailabilityErrorKind::InvalidInput(_)
)
}
pub fn is_unsupported_tld(&self) -> bool {
matches!(
&self.kind,
CheckDomainAvailabilityErrorKind::UnsupportedTld(_)
)
}
}
impl std::error::Error for CheckDomainAvailabilityError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CheckDomainAvailabilityErrorKind::InvalidInput(_inner) => Some(_inner),
CheckDomainAvailabilityErrorKind::UnsupportedTld(_inner) => Some(_inner),
CheckDomainAvailabilityErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CancelDomainTransferToAnotherAwsAccountError {
pub kind: CancelDomainTransferToAnotherAwsAccountErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError
for CancelDomainTransferToAnotherAwsAccountError
{
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CancelDomainTransferToAnotherAwsAccountErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CancelDomainTransferToAnotherAwsAccountErrorKind {
InvalidInput(crate::error::InvalidInput),
OperationLimitExceeded(crate::error::OperationLimitExceeded),
UnsupportedTld(crate::error::UnsupportedTld),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CancelDomainTransferToAnotherAwsAccountError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CancelDomainTransferToAnotherAwsAccountErrorKind::InvalidInput(_inner) => _inner.fmt(f),
CancelDomainTransferToAnotherAwsAccountErrorKind::OperationLimitExceeded(_inner) => {
_inner.fmt(f)
}
CancelDomainTransferToAnotherAwsAccountErrorKind::UnsupportedTld(_inner) => {
_inner.fmt(f)
}
CancelDomainTransferToAnotherAwsAccountErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CancelDomainTransferToAnotherAwsAccountError {
fn code(&self) -> Option<&str> {
CancelDomainTransferToAnotherAwsAccountError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CancelDomainTransferToAnotherAwsAccountError {
pub fn new(
kind: CancelDomainTransferToAnotherAwsAccountErrorKind,
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: CancelDomainTransferToAnotherAwsAccountErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CancelDomainTransferToAnotherAwsAccountErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_input(&self) -> bool {
matches!(
&self.kind,
CancelDomainTransferToAnotherAwsAccountErrorKind::InvalidInput(_)
)
}
pub fn is_operation_limit_exceeded(&self) -> bool {
matches!(
&self.kind,
CancelDomainTransferToAnotherAwsAccountErrorKind::OperationLimitExceeded(_)
)
}
pub fn is_unsupported_tld(&self) -> bool {
matches!(
&self.kind,
CancelDomainTransferToAnotherAwsAccountErrorKind::UnsupportedTld(_)
)
}
}
impl std::error::Error for CancelDomainTransferToAnotherAwsAccountError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CancelDomainTransferToAnotherAwsAccountErrorKind::InvalidInput(_inner) => Some(_inner),
CancelDomainTransferToAnotherAwsAccountErrorKind::OperationLimitExceeded(_inner) => {
Some(_inner)
}
CancelDomainTransferToAnotherAwsAccountErrorKind::UnsupportedTld(_inner) => {
Some(_inner)
}
CancelDomainTransferToAnotherAwsAccountErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct AssociateDelegationSignerToDomainError {
pub kind: AssociateDelegationSignerToDomainErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for AssociateDelegationSignerToDomainError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: AssociateDelegationSignerToDomainErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum AssociateDelegationSignerToDomainErrorKind {
DnssecLimitExceeded(crate::error::DnssecLimitExceeded),
DuplicateRequest(crate::error::DuplicateRequest),
InvalidInput(crate::error::InvalidInput),
OperationLimitExceeded(crate::error::OperationLimitExceeded),
TldRulesViolation(crate::error::TldRulesViolation),
UnsupportedTld(crate::error::UnsupportedTld),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for AssociateDelegationSignerToDomainError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
AssociateDelegationSignerToDomainErrorKind::DnssecLimitExceeded(_inner) => {
_inner.fmt(f)
}
AssociateDelegationSignerToDomainErrorKind::DuplicateRequest(_inner) => _inner.fmt(f),
AssociateDelegationSignerToDomainErrorKind::InvalidInput(_inner) => _inner.fmt(f),
AssociateDelegationSignerToDomainErrorKind::OperationLimitExceeded(_inner) => {
_inner.fmt(f)
}
AssociateDelegationSignerToDomainErrorKind::TldRulesViolation(_inner) => _inner.fmt(f),
AssociateDelegationSignerToDomainErrorKind::UnsupportedTld(_inner) => _inner.fmt(f),
AssociateDelegationSignerToDomainErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for AssociateDelegationSignerToDomainError {
fn code(&self) -> Option<&str> {
AssociateDelegationSignerToDomainError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl AssociateDelegationSignerToDomainError {
pub fn new(
kind: AssociateDelegationSignerToDomainErrorKind,
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: AssociateDelegationSignerToDomainErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: AssociateDelegationSignerToDomainErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_dnssec_limit_exceeded(&self) -> bool {
matches!(
&self.kind,
AssociateDelegationSignerToDomainErrorKind::DnssecLimitExceeded(_)
)
}
pub fn is_duplicate_request(&self) -> bool {
matches!(
&self.kind,
AssociateDelegationSignerToDomainErrorKind::DuplicateRequest(_)
)
}
pub fn is_invalid_input(&self) -> bool {
matches!(
&self.kind,
AssociateDelegationSignerToDomainErrorKind::InvalidInput(_)
)
}
pub fn is_operation_limit_exceeded(&self) -> bool {
matches!(
&self.kind,
AssociateDelegationSignerToDomainErrorKind::OperationLimitExceeded(_)
)
}
pub fn is_tld_rules_violation(&self) -> bool {
matches!(
&self.kind,
AssociateDelegationSignerToDomainErrorKind::TldRulesViolation(_)
)
}
pub fn is_unsupported_tld(&self) -> bool {
matches!(
&self.kind,
AssociateDelegationSignerToDomainErrorKind::UnsupportedTld(_)
)
}
}
impl std::error::Error for AssociateDelegationSignerToDomainError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
AssociateDelegationSignerToDomainErrorKind::DnssecLimitExceeded(_inner) => Some(_inner),
AssociateDelegationSignerToDomainErrorKind::DuplicateRequest(_inner) => Some(_inner),
AssociateDelegationSignerToDomainErrorKind::InvalidInput(_inner) => Some(_inner),
AssociateDelegationSignerToDomainErrorKind::OperationLimitExceeded(_inner) => {
Some(_inner)
}
AssociateDelegationSignerToDomainErrorKind::TldRulesViolation(_inner) => Some(_inner),
AssociateDelegationSignerToDomainErrorKind::UnsupportedTld(_inner) => Some(_inner),
AssociateDelegationSignerToDomainErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DnssecLimitExceeded {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl DnssecLimitExceeded {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DnssecLimitExceeded {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DnssecLimitExceeded")?;
if let Some(inner_7) = &self.message {
{
write!(f, ": {}", inner_7)?;
}
}
Ok(())
}
}
impl std::error::Error for DnssecLimitExceeded {}
pub mod dnssec_limit_exceeded {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
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::DnssecLimitExceeded {
crate::error::DnssecLimitExceeded {
message: self.message,
}
}
}
}
impl DnssecLimitExceeded {
pub fn builder() -> crate::error::dnssec_limit_exceeded::Builder {
crate::error::dnssec_limit_exceeded::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct AcceptDomainTransferFromAnotherAwsAccountError {
pub kind: AcceptDomainTransferFromAnotherAwsAccountErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError
for AcceptDomainTransferFromAnotherAwsAccountError
{
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: AcceptDomainTransferFromAnotherAwsAccountErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum AcceptDomainTransferFromAnotherAwsAccountErrorKind {
DomainLimitExceeded(crate::error::DomainLimitExceeded),
InvalidInput(crate::error::InvalidInput),
OperationLimitExceeded(crate::error::OperationLimitExceeded),
UnsupportedTld(crate::error::UnsupportedTld),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for AcceptDomainTransferFromAnotherAwsAccountError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
AcceptDomainTransferFromAnotherAwsAccountErrorKind::DomainLimitExceeded(_inner) => {
_inner.fmt(f)
}
AcceptDomainTransferFromAnotherAwsAccountErrorKind::InvalidInput(_inner) => {
_inner.fmt(f)
}
AcceptDomainTransferFromAnotherAwsAccountErrorKind::OperationLimitExceeded(_inner) => {
_inner.fmt(f)
}
AcceptDomainTransferFromAnotherAwsAccountErrorKind::UnsupportedTld(_inner) => {
_inner.fmt(f)
}
AcceptDomainTransferFromAnotherAwsAccountErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for AcceptDomainTransferFromAnotherAwsAccountError {
fn code(&self) -> Option<&str> {
AcceptDomainTransferFromAnotherAwsAccountError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl AcceptDomainTransferFromAnotherAwsAccountError {
pub fn new(
kind: AcceptDomainTransferFromAnotherAwsAccountErrorKind,
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: AcceptDomainTransferFromAnotherAwsAccountErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: AcceptDomainTransferFromAnotherAwsAccountErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_domain_limit_exceeded(&self) -> bool {
matches!(
&self.kind,
AcceptDomainTransferFromAnotherAwsAccountErrorKind::DomainLimitExceeded(_)
)
}
pub fn is_invalid_input(&self) -> bool {
matches!(
&self.kind,
AcceptDomainTransferFromAnotherAwsAccountErrorKind::InvalidInput(_)
)
}
pub fn is_operation_limit_exceeded(&self) -> bool {
matches!(
&self.kind,
AcceptDomainTransferFromAnotherAwsAccountErrorKind::OperationLimitExceeded(_)
)
}
pub fn is_unsupported_tld(&self) -> bool {
matches!(
&self.kind,
AcceptDomainTransferFromAnotherAwsAccountErrorKind::UnsupportedTld(_)
)
}
}
impl std::error::Error for AcceptDomainTransferFromAnotherAwsAccountError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
AcceptDomainTransferFromAnotherAwsAccountErrorKind::DomainLimitExceeded(_inner) => {
Some(_inner)
}
AcceptDomainTransferFromAnotherAwsAccountErrorKind::InvalidInput(_inner) => {
Some(_inner)
}
AcceptDomainTransferFromAnotherAwsAccountErrorKind::OperationLimitExceeded(_inner) => {
Some(_inner)
}
AcceptDomainTransferFromAnotherAwsAccountErrorKind::UnsupportedTld(_inner) => {
Some(_inner)
}
AcceptDomainTransferFromAnotherAwsAccountErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[derive(Debug)]
pub struct Unhandled {
source: Box<dyn std::error::Error + Send + Sync + 'static>,
}
impl Unhandled {
#[allow(unused)]
pub(crate) fn new(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self { source }
}
}
impl std::fmt::Display for Unhandled {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
write!(f, "unhandled error")
}
}
impl std::error::Error for Unhandled {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
Some(self.source.as_ref() as _)
}
}