#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeleteThingShadow {
_private: (),
}
impl DeleteThingShadow {
pub fn builder() -> crate::input::delete_thing_shadow_input::Builder {
crate::input::delete_thing_shadow_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteThingShadow {
type Output = std::result::Result<
crate::output::DeleteThingShadowOutput,
crate::error::DeleteThingShadowError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_delete_thing_shadow_error(response)
} else {
crate::operation_deser::parse_delete_thing_shadow_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct GetRetainedMessage {
_private: (),
}
impl GetRetainedMessage {
pub fn builder() -> crate::input::get_retained_message_input::Builder {
crate::input::get_retained_message_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetRetainedMessage {
type Output = std::result::Result<
crate::output::GetRetainedMessageOutput,
crate::error::GetRetainedMessageError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_get_retained_message_error(response)
} else {
crate::operation_deser::parse_get_retained_message_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct GetThingShadow {
_private: (),
}
impl GetThingShadow {
pub fn builder() -> crate::input::get_thing_shadow_input::Builder {
crate::input::get_thing_shadow_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetThingShadow {
type Output =
std::result::Result<crate::output::GetThingShadowOutput, crate::error::GetThingShadowError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_get_thing_shadow_error(response)
} else {
crate::operation_deser::parse_get_thing_shadow_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListNamedShadowsForThing {
_private: (),
}
impl ListNamedShadowsForThing {
pub fn builder() -> crate::input::list_named_shadows_for_thing_input::Builder {
crate::input::list_named_shadows_for_thing_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListNamedShadowsForThing {
type Output = std::result::Result<
crate::output::ListNamedShadowsForThingOutput,
crate::error::ListNamedShadowsForThingError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_named_shadows_for_thing_error(response)
} else {
crate::operation_deser::parse_list_named_shadows_for_thing_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListRetainedMessages {
_private: (),
}
impl ListRetainedMessages {
pub fn builder() -> crate::input::list_retained_messages_input::Builder {
crate::input::list_retained_messages_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListRetainedMessages {
type Output = std::result::Result<
crate::output::ListRetainedMessagesOutput,
crate::error::ListRetainedMessagesError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_retained_messages_error(response)
} else {
crate::operation_deser::parse_list_retained_messages_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct Publish {
_private: (),
}
impl Publish {
pub fn builder() -> crate::input::publish_input::Builder {
crate::input::publish_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for Publish {
type Output = std::result::Result<crate::output::PublishOutput, crate::error::PublishError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_publish_error(response)
} else {
crate::operation_deser::parse_publish_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct UpdateThingShadow {
_private: (),
}
impl UpdateThingShadow {
pub fn builder() -> crate::input::update_thing_shadow_input::Builder {
crate::input::update_thing_shadow_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdateThingShadow {
type Output = std::result::Result<
crate::output::UpdateThingShadowOutput,
crate::error::UpdateThingShadowError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_update_thing_shadow_error(response)
} else {
crate::operation_deser::parse_update_thing_shadow_response(response)
}
}
}
pub mod customize;