/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CostExplorer { namespace Model { /** *

An unusual cost pattern. This consists of the detailed metadata and the * current status of the anomaly object.

See Also:

AWS API * Reference

*/ class Anomaly { public: AWS_COSTEXPLORER_API Anomaly(); AWS_COSTEXPLORER_API Anomaly(Aws::Utils::Json::JsonView jsonValue); AWS_COSTEXPLORER_API Anomaly& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The unique identifier for the anomaly.

*/ inline const Aws::String& GetAnomalyId() const{ return m_anomalyId; } /** *

The unique identifier for the anomaly.

*/ inline bool AnomalyIdHasBeenSet() const { return m_anomalyIdHasBeenSet; } /** *

The unique identifier for the anomaly.

*/ inline void SetAnomalyId(const Aws::String& value) { m_anomalyIdHasBeenSet = true; m_anomalyId = value; } /** *

The unique identifier for the anomaly.

*/ inline void SetAnomalyId(Aws::String&& value) { m_anomalyIdHasBeenSet = true; m_anomalyId = std::move(value); } /** *

The unique identifier for the anomaly.

*/ inline void SetAnomalyId(const char* value) { m_anomalyIdHasBeenSet = true; m_anomalyId.assign(value); } /** *

The unique identifier for the anomaly.

*/ inline Anomaly& WithAnomalyId(const Aws::String& value) { SetAnomalyId(value); return *this;} /** *

The unique identifier for the anomaly.

*/ inline Anomaly& WithAnomalyId(Aws::String&& value) { SetAnomalyId(std::move(value)); return *this;} /** *

The unique identifier for the anomaly.

*/ inline Anomaly& WithAnomalyId(const char* value) { SetAnomalyId(value); return *this;} /** *

The first day the anomaly is detected.

*/ inline const Aws::String& GetAnomalyStartDate() const{ return m_anomalyStartDate; } /** *

The first day the anomaly is detected.

*/ inline bool AnomalyStartDateHasBeenSet() const { return m_anomalyStartDateHasBeenSet; } /** *

The first day the anomaly is detected.

*/ inline void SetAnomalyStartDate(const Aws::String& value) { m_anomalyStartDateHasBeenSet = true; m_anomalyStartDate = value; } /** *

The first day the anomaly is detected.

*/ inline void SetAnomalyStartDate(Aws::String&& value) { m_anomalyStartDateHasBeenSet = true; m_anomalyStartDate = std::move(value); } /** *

The first day the anomaly is detected.

*/ inline void SetAnomalyStartDate(const char* value) { m_anomalyStartDateHasBeenSet = true; m_anomalyStartDate.assign(value); } /** *

The first day the anomaly is detected.

*/ inline Anomaly& WithAnomalyStartDate(const Aws::String& value) { SetAnomalyStartDate(value); return *this;} /** *

The first day the anomaly is detected.

*/ inline Anomaly& WithAnomalyStartDate(Aws::String&& value) { SetAnomalyStartDate(std::move(value)); return *this;} /** *

The first day the anomaly is detected.

*/ inline Anomaly& WithAnomalyStartDate(const char* value) { SetAnomalyStartDate(value); return *this;} /** *

The last day the anomaly is detected.

*/ inline const Aws::String& GetAnomalyEndDate() const{ return m_anomalyEndDate; } /** *

The last day the anomaly is detected.

*/ inline bool AnomalyEndDateHasBeenSet() const { return m_anomalyEndDateHasBeenSet; } /** *

The last day the anomaly is detected.

*/ inline void SetAnomalyEndDate(const Aws::String& value) { m_anomalyEndDateHasBeenSet = true; m_anomalyEndDate = value; } /** *

The last day the anomaly is detected.

*/ inline void SetAnomalyEndDate(Aws::String&& value) { m_anomalyEndDateHasBeenSet = true; m_anomalyEndDate = std::move(value); } /** *

The last day the anomaly is detected.

*/ inline void SetAnomalyEndDate(const char* value) { m_anomalyEndDateHasBeenSet = true; m_anomalyEndDate.assign(value); } /** *

The last day the anomaly is detected.

*/ inline Anomaly& WithAnomalyEndDate(const Aws::String& value) { SetAnomalyEndDate(value); return *this;} /** *

The last day the anomaly is detected.

*/ inline Anomaly& WithAnomalyEndDate(Aws::String&& value) { SetAnomalyEndDate(std::move(value)); return *this;} /** *

The last day the anomaly is detected.

*/ inline Anomaly& WithAnomalyEndDate(const char* value) { SetAnomalyEndDate(value); return *this;} /** *

The dimension for the anomaly (for example, an Amazon Web Service in a * service monitor).

*/ inline const Aws::String& GetDimensionValue() const{ return m_dimensionValue; } /** *

The dimension for the anomaly (for example, an Amazon Web Service in a * service monitor).

*/ inline bool DimensionValueHasBeenSet() const { return m_dimensionValueHasBeenSet; } /** *

The dimension for the anomaly (for example, an Amazon Web Service in a * service monitor).

*/ inline void SetDimensionValue(const Aws::String& value) { m_dimensionValueHasBeenSet = true; m_dimensionValue = value; } /** *

The dimension for the anomaly (for example, an Amazon Web Service in a * service monitor).

*/ inline void SetDimensionValue(Aws::String&& value) { m_dimensionValueHasBeenSet = true; m_dimensionValue = std::move(value); } /** *

The dimension for the anomaly (for example, an Amazon Web Service in a * service monitor).

*/ inline void SetDimensionValue(const char* value) { m_dimensionValueHasBeenSet = true; m_dimensionValue.assign(value); } /** *

The dimension for the anomaly (for example, an Amazon Web Service in a * service monitor).

*/ inline Anomaly& WithDimensionValue(const Aws::String& value) { SetDimensionValue(value); return *this;} /** *

The dimension for the anomaly (for example, an Amazon Web Service in a * service monitor).

*/ inline Anomaly& WithDimensionValue(Aws::String&& value) { SetDimensionValue(std::move(value)); return *this;} /** *

The dimension for the anomaly (for example, an Amazon Web Service in a * service monitor).

*/ inline Anomaly& WithDimensionValue(const char* value) { SetDimensionValue(value); return *this;} /** *

The list of identified root causes for the anomaly.

*/ inline const Aws::Vector& GetRootCauses() const{ return m_rootCauses; } /** *

The list of identified root causes for the anomaly.

*/ inline bool RootCausesHasBeenSet() const { return m_rootCausesHasBeenSet; } /** *

The list of identified root causes for the anomaly.

*/ inline void SetRootCauses(const Aws::Vector& value) { m_rootCausesHasBeenSet = true; m_rootCauses = value; } /** *

The list of identified root causes for the anomaly.

*/ inline void SetRootCauses(Aws::Vector&& value) { m_rootCausesHasBeenSet = true; m_rootCauses = std::move(value); } /** *

The list of identified root causes for the anomaly.

*/ inline Anomaly& WithRootCauses(const Aws::Vector& value) { SetRootCauses(value); return *this;} /** *

The list of identified root causes for the anomaly.

*/ inline Anomaly& WithRootCauses(Aws::Vector&& value) { SetRootCauses(std::move(value)); return *this;} /** *

The list of identified root causes for the anomaly.

*/ inline Anomaly& AddRootCauses(const RootCause& value) { m_rootCausesHasBeenSet = true; m_rootCauses.push_back(value); return *this; } /** *

The list of identified root causes for the anomaly.

*/ inline Anomaly& AddRootCauses(RootCause&& value) { m_rootCausesHasBeenSet = true; m_rootCauses.push_back(std::move(value)); return *this; } /** *

The latest and maximum score for the anomaly.

*/ inline const AnomalyScore& GetAnomalyScore() const{ return m_anomalyScore; } /** *

The latest and maximum score for the anomaly.

*/ inline bool AnomalyScoreHasBeenSet() const { return m_anomalyScoreHasBeenSet; } /** *

The latest and maximum score for the anomaly.

*/ inline void SetAnomalyScore(const AnomalyScore& value) { m_anomalyScoreHasBeenSet = true; m_anomalyScore = value; } /** *

The latest and maximum score for the anomaly.

*/ inline void SetAnomalyScore(AnomalyScore&& value) { m_anomalyScoreHasBeenSet = true; m_anomalyScore = std::move(value); } /** *

The latest and maximum score for the anomaly.

*/ inline Anomaly& WithAnomalyScore(const AnomalyScore& value) { SetAnomalyScore(value); return *this;} /** *

The latest and maximum score for the anomaly.

*/ inline Anomaly& WithAnomalyScore(AnomalyScore&& value) { SetAnomalyScore(std::move(value)); return *this;} /** *

The dollar impact for the anomaly.

*/ inline const Impact& GetImpact() const{ return m_impact; } /** *

The dollar impact for the anomaly.

*/ inline bool ImpactHasBeenSet() const { return m_impactHasBeenSet; } /** *

The dollar impact for the anomaly.

*/ inline void SetImpact(const Impact& value) { m_impactHasBeenSet = true; m_impact = value; } /** *

The dollar impact for the anomaly.

*/ inline void SetImpact(Impact&& value) { m_impactHasBeenSet = true; m_impact = std::move(value); } /** *

The dollar impact for the anomaly.

*/ inline Anomaly& WithImpact(const Impact& value) { SetImpact(value); return *this;} /** *

The dollar impact for the anomaly.

*/ inline Anomaly& WithImpact(Impact&& value) { SetImpact(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) for the cost monitor that generated this * anomaly.

*/ inline const Aws::String& GetMonitorArn() const{ return m_monitorArn; } /** *

The Amazon Resource Name (ARN) for the cost monitor that generated this * anomaly.

*/ inline bool MonitorArnHasBeenSet() const { return m_monitorArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) for the cost monitor that generated this * anomaly.

*/ inline void SetMonitorArn(const Aws::String& value) { m_monitorArnHasBeenSet = true; m_monitorArn = value; } /** *

The Amazon Resource Name (ARN) for the cost monitor that generated this * anomaly.

*/ inline void SetMonitorArn(Aws::String&& value) { m_monitorArnHasBeenSet = true; m_monitorArn = std::move(value); } /** *

The Amazon Resource Name (ARN) for the cost monitor that generated this * anomaly.

*/ inline void SetMonitorArn(const char* value) { m_monitorArnHasBeenSet = true; m_monitorArn.assign(value); } /** *

The Amazon Resource Name (ARN) for the cost monitor that generated this * anomaly.

*/ inline Anomaly& WithMonitorArn(const Aws::String& value) { SetMonitorArn(value); return *this;} /** *

The Amazon Resource Name (ARN) for the cost monitor that generated this * anomaly.

*/ inline Anomaly& WithMonitorArn(Aws::String&& value) { SetMonitorArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) for the cost monitor that generated this * anomaly.

*/ inline Anomaly& WithMonitorArn(const char* value) { SetMonitorArn(value); return *this;} /** *

The feedback value.

*/ inline const AnomalyFeedbackType& GetFeedback() const{ return m_feedback; } /** *

The feedback value.

*/ inline bool FeedbackHasBeenSet() const { return m_feedbackHasBeenSet; } /** *

The feedback value.

*/ inline void SetFeedback(const AnomalyFeedbackType& value) { m_feedbackHasBeenSet = true; m_feedback = value; } /** *

The feedback value.

*/ inline void SetFeedback(AnomalyFeedbackType&& value) { m_feedbackHasBeenSet = true; m_feedback = std::move(value); } /** *

The feedback value.

*/ inline Anomaly& WithFeedback(const AnomalyFeedbackType& value) { SetFeedback(value); return *this;} /** *

The feedback value.

*/ inline Anomaly& WithFeedback(AnomalyFeedbackType&& value) { SetFeedback(std::move(value)); return *this;} private: Aws::String m_anomalyId; bool m_anomalyIdHasBeenSet = false; Aws::String m_anomalyStartDate; bool m_anomalyStartDateHasBeenSet = false; Aws::String m_anomalyEndDate; bool m_anomalyEndDateHasBeenSet = false; Aws::String m_dimensionValue; bool m_dimensionValueHasBeenSet = false; Aws::Vector m_rootCauses; bool m_rootCausesHasBeenSet = false; AnomalyScore m_anomalyScore; bool m_anomalyScoreHasBeenSet = false; Impact m_impact; bool m_impactHasBeenSet = false; Aws::String m_monitorArn; bool m_monitorArnHasBeenSet = false; AnomalyFeedbackType m_feedback; bool m_feedbackHasBeenSet = false; }; } // namespace Model } // namespace CostExplorer } // namespace Aws