#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct CreateConfigurationSet {
_private: (),
}
impl CreateConfigurationSet {
pub fn builder() -> crate::input::create_configuration_set_input::Builder {
crate::input::create_configuration_set_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreateConfigurationSet {
type Output = std::result::Result<
crate::output::CreateConfigurationSetOutput,
crate::error::CreateConfigurationSetError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_create_configuration_set_error(response)
} else {
crate::operation_deser::parse_create_configuration_set_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct CreateConfigurationSetEventDestination {
_private: (),
}
impl CreateConfigurationSetEventDestination {
pub fn builder() -> crate::input::create_configuration_set_event_destination_input::Builder {
crate::input::create_configuration_set_event_destination_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreateConfigurationSetEventDestination {
type Output = std::result::Result<
crate::output::CreateConfigurationSetEventDestinationOutput,
crate::error::CreateConfigurationSetEventDestinationError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_create_configuration_set_event_destination_error(response)
} else {
crate::operation_deser::parse_create_configuration_set_event_destination_response(
response,
)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeleteConfigurationSet {
_private: (),
}
impl DeleteConfigurationSet {
pub fn builder() -> crate::input::delete_configuration_set_input::Builder {
crate::input::delete_configuration_set_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteConfigurationSet {
type Output = std::result::Result<
crate::output::DeleteConfigurationSetOutput,
crate::error::DeleteConfigurationSetError,
>;
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_configuration_set_error(response)
} else {
crate::operation_deser::parse_delete_configuration_set_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeleteConfigurationSetEventDestination {
_private: (),
}
impl DeleteConfigurationSetEventDestination {
pub fn builder() -> crate::input::delete_configuration_set_event_destination_input::Builder {
crate::input::delete_configuration_set_event_destination_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteConfigurationSetEventDestination {
type Output = std::result::Result<
crate::output::DeleteConfigurationSetEventDestinationOutput,
crate::error::DeleteConfigurationSetEventDestinationError,
>;
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_configuration_set_event_destination_error(response)
} else {
crate::operation_deser::parse_delete_configuration_set_event_destination_response(
response,
)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct GetConfigurationSetEventDestinations {
_private: (),
}
impl GetConfigurationSetEventDestinations {
pub fn builder() -> crate::input::get_configuration_set_event_destinations_input::Builder {
crate::input::get_configuration_set_event_destinations_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetConfigurationSetEventDestinations {
type Output = std::result::Result<
crate::output::GetConfigurationSetEventDestinationsOutput,
crate::error::GetConfigurationSetEventDestinationsError,
>;
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_configuration_set_event_destinations_error(response)
} else {
crate::operation_deser::parse_get_configuration_set_event_destinations_response(
response,
)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListConfigurationSets {
_private: (),
}
impl ListConfigurationSets {
pub fn builder() -> crate::input::list_configuration_sets_input::Builder {
crate::input::list_configuration_sets_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListConfigurationSets {
type Output = std::result::Result<
crate::output::ListConfigurationSetsOutput,
crate::error::ListConfigurationSetsError,
>;
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_configuration_sets_error(response)
} else {
crate::operation_deser::parse_list_configuration_sets_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct SendVoiceMessage {
_private: (),
}
impl SendVoiceMessage {
pub fn builder() -> crate::input::send_voice_message_input::Builder {
crate::input::send_voice_message_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for SendVoiceMessage {
type Output = std::result::Result<
crate::output::SendVoiceMessageOutput,
crate::error::SendVoiceMessageError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_send_voice_message_error(response)
} else {
crate::operation_deser::parse_send_voice_message_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct UpdateConfigurationSetEventDestination {
_private: (),
}
impl UpdateConfigurationSetEventDestination {
pub fn builder() -> crate::input::update_configuration_set_event_destination_input::Builder {
crate::input::update_configuration_set_event_destination_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdateConfigurationSetEventDestination {
type Output = std::result::Result<
crate::output::UpdateConfigurationSetEventDestinationOutput,
crate::error::UpdateConfigurationSetEventDestinationError,
>;
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_configuration_set_event_destination_error(response)
} else {
crate::operation_deser::parse_update_configuration_set_event_destination_response(
response,
)
}
}
}
pub mod customize;