/** * 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 { /** *

Quantifies the anomaly. The higher score means that it's more anomalous. *

See Also:

AWS API * Reference

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

The maximum score that's observed during the * AnomalyDateInterval.

*/ inline double GetMaxScore() const{ return m_maxScore; } /** *

The maximum score that's observed during the * AnomalyDateInterval.

*/ inline bool MaxScoreHasBeenSet() const { return m_maxScoreHasBeenSet; } /** *

The maximum score that's observed during the * AnomalyDateInterval.

*/ inline void SetMaxScore(double value) { m_maxScoreHasBeenSet = true; m_maxScore = value; } /** *

The maximum score that's observed during the * AnomalyDateInterval.

*/ inline AnomalyScore& WithMaxScore(double value) { SetMaxScore(value); return *this;} /** *

The last observed score.

*/ inline double GetCurrentScore() const{ return m_currentScore; } /** *

The last observed score.

*/ inline bool CurrentScoreHasBeenSet() const { return m_currentScoreHasBeenSet; } /** *

The last observed score.

*/ inline void SetCurrentScore(double value) { m_currentScoreHasBeenSet = true; m_currentScore = value; } /** *

The last observed score.

*/ inline AnomalyScore& WithCurrentScore(double value) { SetCurrentScore(value); return *this;} private: double m_maxScore; bool m_maxScoreHasBeenSet = false; double m_currentScore; bool m_currentScoreHasBeenSet = false; }; } // namespace Model } // namespace CostExplorer } // namespace Aws