#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct AddNotificationChannel {
_private: (),
}
impl AddNotificationChannel {
pub fn builder() -> crate::input::add_notification_channel_input::Builder {
crate::input::add_notification_channel_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for AddNotificationChannel {
type Output = std::result::Result<
crate::output::AddNotificationChannelOutput,
crate::error::AddNotificationChannelError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_add_notification_channel_error(response)
} else {
crate::operation_deser::parse_add_notification_channel_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct DescribeAccountHealth {
_private: (),
}
impl DescribeAccountHealth {
pub fn builder() -> crate::input::describe_account_health_input::Builder {
crate::input::describe_account_health_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeAccountHealth {
type Output = std::result::Result<
crate::output::DescribeAccountHealthOutput,
crate::error::DescribeAccountHealthError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_account_health_error(response)
} else {
crate::operation_deser::parse_describe_account_health_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct DescribeAccountOverview {
_private: (),
}
impl DescribeAccountOverview {
pub fn builder() -> crate::input::describe_account_overview_input::Builder {
crate::input::describe_account_overview_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeAccountOverview {
type Output = std::result::Result<
crate::output::DescribeAccountOverviewOutput,
crate::error::DescribeAccountOverviewError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_account_overview_error(response)
} else {
crate::operation_deser::parse_describe_account_overview_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct DescribeAnomaly {
_private: (),
}
impl DescribeAnomaly {
pub fn builder() -> crate::input::describe_anomaly_input::Builder {
crate::input::describe_anomaly_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeAnomaly {
type Output = std::result::Result<
crate::output::DescribeAnomalyOutput,
crate::error::DescribeAnomalyError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_anomaly_error(response)
} else {
crate::operation_deser::parse_describe_anomaly_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct DescribeFeedback {
_private: (),
}
impl DescribeFeedback {
pub fn builder() -> crate::input::describe_feedback_input::Builder {
crate::input::describe_feedback_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeFeedback {
type Output = std::result::Result<
crate::output::DescribeFeedbackOutput,
crate::error::DescribeFeedbackError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_feedback_error(response)
} else {
crate::operation_deser::parse_describe_feedback_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct DescribeInsight {
_private: (),
}
impl DescribeInsight {
pub fn builder() -> crate::input::describe_insight_input::Builder {
crate::input::describe_insight_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeInsight {
type Output = std::result::Result<
crate::output::DescribeInsightOutput,
crate::error::DescribeInsightError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_insight_error(response)
} else {
crate::operation_deser::parse_describe_insight_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct DescribeResourceCollectionHealth {
_private: (),
}
impl DescribeResourceCollectionHealth {
pub fn builder() -> crate::input::describe_resource_collection_health_input::Builder {
crate::input::describe_resource_collection_health_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeResourceCollectionHealth {
type Output = std::result::Result<
crate::output::DescribeResourceCollectionHealthOutput,
crate::error::DescribeResourceCollectionHealthError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_resource_collection_health_error(response)
} else {
crate::operation_deser::parse_describe_resource_collection_health_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct DescribeServiceIntegration {
_private: (),
}
impl DescribeServiceIntegration {
pub fn builder() -> crate::input::describe_service_integration_input::Builder {
crate::input::describe_service_integration_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeServiceIntegration {
type Output = std::result::Result<
crate::output::DescribeServiceIntegrationOutput,
crate::error::DescribeServiceIntegrationError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_service_integration_error(response)
} else {
crate::operation_deser::parse_describe_service_integration_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct GetCostEstimation {
_private: (),
}
impl GetCostEstimation {
pub fn builder() -> crate::input::get_cost_estimation_input::Builder {
crate::input::get_cost_estimation_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetCostEstimation {
type Output = std::result::Result<
crate::output::GetCostEstimationOutput,
crate::error::GetCostEstimationError,
>;
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_cost_estimation_error(response)
} else {
crate::operation_deser::parse_get_cost_estimation_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct GetResourceCollection {
_private: (),
}
impl GetResourceCollection {
pub fn builder() -> crate::input::get_resource_collection_input::Builder {
crate::input::get_resource_collection_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetResourceCollection {
type Output = std::result::Result<
crate::output::GetResourceCollectionOutput,
crate::error::GetResourceCollectionError,
>;
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_resource_collection_error(response)
} else {
crate::operation_deser::parse_get_resource_collection_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct ListAnomaliesForInsight {
_private: (),
}
impl ListAnomaliesForInsight {
pub fn builder() -> crate::input::list_anomalies_for_insight_input::Builder {
crate::input::list_anomalies_for_insight_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListAnomaliesForInsight {
type Output = std::result::Result<
crate::output::ListAnomaliesForInsightOutput,
crate::error::ListAnomaliesForInsightError,
>;
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_anomalies_for_insight_error(response)
} else {
crate::operation_deser::parse_list_anomalies_for_insight_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct ListEvents {
_private: (),
}
impl ListEvents {
pub fn builder() -> crate::input::list_events_input::Builder {
crate::input::list_events_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListEvents {
type Output =
std::result::Result<crate::output::ListEventsOutput, crate::error::ListEventsError>;
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_events_error(response)
} else {
crate::operation_deser::parse_list_events_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct ListInsights {
_private: (),
}
impl ListInsights {
pub fn builder() -> crate::input::list_insights_input::Builder {
crate::input::list_insights_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListInsights {
type Output =
std::result::Result<crate::output::ListInsightsOutput, crate::error::ListInsightsError>;
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_insights_error(response)
} else {
crate::operation_deser::parse_list_insights_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct ListNotificationChannels {
_private: (),
}
impl ListNotificationChannels {
pub fn builder() -> crate::input::list_notification_channels_input::Builder {
crate::input::list_notification_channels_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListNotificationChannels {
type Output = std::result::Result<
crate::output::ListNotificationChannelsOutput,
crate::error::ListNotificationChannelsError,
>;
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_notification_channels_error(response)
} else {
crate::operation_deser::parse_list_notification_channels_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct ListRecommendations {
_private: (),
}
impl ListRecommendations {
pub fn builder() -> crate::input::list_recommendations_input::Builder {
crate::input::list_recommendations_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListRecommendations {
type Output = std::result::Result<
crate::output::ListRecommendationsOutput,
crate::error::ListRecommendationsError,
>;
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_recommendations_error(response)
} else {
crate::operation_deser::parse_list_recommendations_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct PutFeedback {
_private: (),
}
impl PutFeedback {
pub fn builder() -> crate::input::put_feedback_input::Builder {
crate::input::put_feedback_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for PutFeedback {
type Output =
std::result::Result<crate::output::PutFeedbackOutput, crate::error::PutFeedbackError>;
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_feedback_error(response)
} else {
crate::operation_deser::parse_put_feedback_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct RemoveNotificationChannel {
_private: (),
}
impl RemoveNotificationChannel {
pub fn builder() -> crate::input::remove_notification_channel_input::Builder {
crate::input::remove_notification_channel_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for RemoveNotificationChannel {
type Output = std::result::Result<
crate::output::RemoveNotificationChannelOutput,
crate::error::RemoveNotificationChannelError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_remove_notification_channel_error(response)
} else {
crate::operation_deser::parse_remove_notification_channel_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct SearchInsights {
_private: (),
}
impl SearchInsights {
pub fn builder() -> crate::input::search_insights_input::Builder {
crate::input::search_insights_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for SearchInsights {
type Output =
std::result::Result<crate::output::SearchInsightsOutput, crate::error::SearchInsightsError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_search_insights_error(response)
} else {
crate::operation_deser::parse_search_insights_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct StartCostEstimation {
_private: (),
}
impl StartCostEstimation {
pub fn builder() -> crate::input::start_cost_estimation_input::Builder {
crate::input::start_cost_estimation_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for StartCostEstimation {
type Output = std::result::Result<
crate::output::StartCostEstimationOutput,
crate::error::StartCostEstimationError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_start_cost_estimation_error(response)
} else {
crate::operation_deser::parse_start_cost_estimation_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct UpdateResourceCollection {
_private: (),
}
impl UpdateResourceCollection {
pub fn builder() -> crate::input::update_resource_collection_input::Builder {
crate::input::update_resource_collection_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdateResourceCollection {
type Output = std::result::Result<
crate::output::UpdateResourceCollectionOutput,
crate::error::UpdateResourceCollectionError,
>;
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_resource_collection_error(response)
} else {
crate::operation_deser::parse_update_resource_collection_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct UpdateServiceIntegration {
_private: (),
}
impl UpdateServiceIntegration {
pub fn builder() -> crate::input::update_service_integration_input::Builder {
crate::input::update_service_integration_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdateServiceIntegration {
type Output = std::result::Result<
crate::output::UpdateServiceIntegrationOutput,
crate::error::UpdateServiceIntegrationError,
>;
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_service_integration_error(response)
} else {
crate::operation_deser::parse_update_service_integration_response(response)
}
}
}