#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct Delete {
_private: (),
}
impl Delete {
pub fn builder() -> crate::input::delete_input::Builder {
crate::input::delete_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for Delete {
type Output = std::result::Result<crate::output::DeleteOutput, crate::error::DeleteError>;
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_error(response)
} else {
crate::operation_deser::parse_delete_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct DeleteBatch {
_private: (),
}
impl DeleteBatch {
pub fn builder() -> crate::input::delete_batch_input::Builder {
crate::input::delete_batch_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteBatch {
type Output =
std::result::Result<crate::output::DeleteBatchOutput, crate::error::DeleteBatchError>;
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_batch_error(response)
} else {
crate::operation_deser::parse_delete_batch_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct Get {
_private: (),
}
impl Get {
pub fn builder() -> crate::input::get_input::Builder {
crate::input::get_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for Get {
type Output = std::result::Result<crate::output::GetOutput, crate::error::GetError>;
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_error(response)
} else {
crate::operation_deser::parse_get_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct GetBatch {
_private: (),
}
impl GetBatch {
pub fn builder() -> crate::input::get_batch_input::Builder {
crate::input::get_batch_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetBatch {
type Output = std::result::Result<crate::output::GetBatchOutput, crate::error::GetBatchError>;
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_batch_error(response)
} else {
crate::operation_deser::parse_get_batch_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct Put {
_private: (),
}
impl Put {
pub fn builder() -> crate::input::put_input::Builder {
crate::input::put_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for Put {
type Output = std::result::Result<crate::output::PutOutput, crate::error::PutError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_put_error(response)
} else {
crate::operation_deser::parse_put_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct PutBatch {
_private: (),
}
impl PutBatch {
pub fn builder() -> crate::input::put_batch_input::Builder {
crate::input::put_batch_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for PutBatch {
type Output = std::result::Result<crate::output::PutBatchOutput, crate::error::PutBatchError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_put_batch_error(response)
} else {
crate::operation_deser::parse_put_batch_response(response)
}
}
}