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

The dollar value of the anomaly.

See Also:

AWS API * Reference

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

The maximum dollar value that's observed for an anomaly.

*/ inline double GetMaxImpact() const{ return m_maxImpact; } /** *

The maximum dollar value that's observed for an anomaly.

*/ inline bool MaxImpactHasBeenSet() const { return m_maxImpactHasBeenSet; } /** *

The maximum dollar value that's observed for an anomaly.

*/ inline void SetMaxImpact(double value) { m_maxImpactHasBeenSet = true; m_maxImpact = value; } /** *

The maximum dollar value that's observed for an anomaly.

*/ inline Impact& WithMaxImpact(double value) { SetMaxImpact(value); return *this;} /** *

The cumulative dollar difference between the total actual spend and total * expected spend. It is calculated as TotalActualSpend - * TotalExpectedSpend.

*/ inline double GetTotalImpact() const{ return m_totalImpact; } /** *

The cumulative dollar difference between the total actual spend and total * expected spend. It is calculated as TotalActualSpend - * TotalExpectedSpend.

*/ inline bool TotalImpactHasBeenSet() const { return m_totalImpactHasBeenSet; } /** *

The cumulative dollar difference between the total actual spend and total * expected spend. It is calculated as TotalActualSpend - * TotalExpectedSpend.

*/ inline void SetTotalImpact(double value) { m_totalImpactHasBeenSet = true; m_totalImpact = value; } /** *

The cumulative dollar difference between the total actual spend and total * expected spend. It is calculated as TotalActualSpend - * TotalExpectedSpend.

*/ inline Impact& WithTotalImpact(double value) { SetTotalImpact(value); return *this;} /** *

The cumulative dollar amount that was actually spent during the anomaly.

*/ inline double GetTotalActualSpend() const{ return m_totalActualSpend; } /** *

The cumulative dollar amount that was actually spent during the anomaly.

*/ inline bool TotalActualSpendHasBeenSet() const { return m_totalActualSpendHasBeenSet; } /** *

The cumulative dollar amount that was actually spent during the anomaly.

*/ inline void SetTotalActualSpend(double value) { m_totalActualSpendHasBeenSet = true; m_totalActualSpend = value; } /** *

The cumulative dollar amount that was actually spent during the anomaly.

*/ inline Impact& WithTotalActualSpend(double value) { SetTotalActualSpend(value); return *this;} /** *

The cumulative dollar amount that was expected to be spent during the * anomaly. It is calculated using advanced machine learning models to determine * the typical spending pattern based on historical data for a customer.

*/ inline double GetTotalExpectedSpend() const{ return m_totalExpectedSpend; } /** *

The cumulative dollar amount that was expected to be spent during the * anomaly. It is calculated using advanced machine learning models to determine * the typical spending pattern based on historical data for a customer.

*/ inline bool TotalExpectedSpendHasBeenSet() const { return m_totalExpectedSpendHasBeenSet; } /** *

The cumulative dollar amount that was expected to be spent during the * anomaly. It is calculated using advanced machine learning models to determine * the typical spending pattern based on historical data for a customer.

*/ inline void SetTotalExpectedSpend(double value) { m_totalExpectedSpendHasBeenSet = true; m_totalExpectedSpend = value; } /** *

The cumulative dollar amount that was expected to be spent during the * anomaly. It is calculated using advanced machine learning models to determine * the typical spending pattern based on historical data for a customer.

*/ inline Impact& WithTotalExpectedSpend(double value) { SetTotalExpectedSpend(value); return *this;} /** *

The cumulative percentage difference between the total actual spend and total * expected spend. It is calculated as (TotalImpact / TotalExpectedSpend) * * 100. When TotalExpectedSpend is zero, this field is omitted. * Expected spend can be zero in situations such as when you start to use a service * for the first time.

*/ inline double GetTotalImpactPercentage() const{ return m_totalImpactPercentage; } /** *

The cumulative percentage difference between the total actual spend and total * expected spend. It is calculated as (TotalImpact / TotalExpectedSpend) * * 100. When TotalExpectedSpend is zero, this field is omitted. * Expected spend can be zero in situations such as when you start to use a service * for the first time.

*/ inline bool TotalImpactPercentageHasBeenSet() const { return m_totalImpactPercentageHasBeenSet; } /** *

The cumulative percentage difference between the total actual spend and total * expected spend. It is calculated as (TotalImpact / TotalExpectedSpend) * * 100. When TotalExpectedSpend is zero, this field is omitted. * Expected spend can be zero in situations such as when you start to use a service * for the first time.

*/ inline void SetTotalImpactPercentage(double value) { m_totalImpactPercentageHasBeenSet = true; m_totalImpactPercentage = value; } /** *

The cumulative percentage difference between the total actual spend and total * expected spend. It is calculated as (TotalImpact / TotalExpectedSpend) * * 100. When TotalExpectedSpend is zero, this field is omitted. * Expected spend can be zero in situations such as when you start to use a service * for the first time.

*/ inline Impact& WithTotalImpactPercentage(double value) { SetTotalImpactPercentage(value); return *this;} private: double m_maxImpact; bool m_maxImpactHasBeenSet = false; double m_totalImpact; bool m_totalImpactHasBeenSet = false; double m_totalActualSpend; bool m_totalActualSpendHasBeenSet = false; double m_totalExpectedSpend; bool m_totalExpectedSpendHasBeenSet = false; double m_totalImpactPercentage; bool m_totalImpactPercentageHasBeenSet = false; }; } // namespace Model } // namespace CostExplorer } // namespace Aws