#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct GetPersonalizedRanking {
_private: (),
}
impl GetPersonalizedRanking {
pub fn builder() -> crate::input::get_personalized_ranking_input::Builder {
crate::input::get_personalized_ranking_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetPersonalizedRanking {
type Output = std::result::Result<
crate::output::GetPersonalizedRankingOutput,
crate::error::GetPersonalizedRankingError,
>;
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_personalized_ranking_error(response)
} else {
crate::operation_deser::parse_get_personalized_ranking_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct GetRecommendations {
_private: (),
}
impl GetRecommendations {
pub fn builder() -> crate::input::get_recommendations_input::Builder {
crate::input::get_recommendations_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetRecommendations {
type Output = std::result::Result<
crate::output::GetRecommendationsOutput,
crate::error::GetRecommendationsError,
>;
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_recommendations_error(response)
} else {
crate::operation_deser::parse_get_recommendations_response(response)
}
}
}