#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct GetIceServerConfig {
_private: (),
}
impl GetIceServerConfig {
pub fn builder() -> crate::input::get_ice_server_config_input::Builder {
crate::input::get_ice_server_config_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetIceServerConfig {
type Output = std::result::Result<
crate::output::GetIceServerConfigOutput,
crate::error::GetIceServerConfigError,
>;
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_ice_server_config_error(response)
} else {
crate::operation_deser::parse_get_ice_server_config_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct SendAlexaOfferToMaster {
_private: (),
}
impl SendAlexaOfferToMaster {
pub fn builder() -> crate::input::send_alexa_offer_to_master_input::Builder {
crate::input::send_alexa_offer_to_master_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for SendAlexaOfferToMaster {
type Output = std::result::Result<
crate::output::SendAlexaOfferToMasterOutput,
crate::error::SendAlexaOfferToMasterError,
>;
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_alexa_offer_to_master_error(response)
} else {
crate::operation_deser::parse_send_alexa_offer_to_master_response(response)
}
}
}