AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AnomalyScore.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace CostExplorer {
17namespace Model {
18
26 public:
27 AWS_COSTEXPLORER_API AnomalyScore() = default;
28 AWS_COSTEXPLORER_API AnomalyScore(Aws::Utils::Json::JsonView jsonValue);
29 AWS_COSTEXPLORER_API AnomalyScore& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
37 inline double GetMaxScore() const { return m_maxScore; }
38 inline bool MaxScoreHasBeenSet() const { return m_maxScoreHasBeenSet; }
39 inline void SetMaxScore(double value) {
40 m_maxScoreHasBeenSet = true;
41 m_maxScore = value;
42 }
43 inline AnomalyScore& WithMaxScore(double value) {
44 SetMaxScore(value);
45 return *this;
46 }
48
50
53 inline double GetCurrentScore() const { return m_currentScore; }
54 inline bool CurrentScoreHasBeenSet() const { return m_currentScoreHasBeenSet; }
55 inline void SetCurrentScore(double value) {
56 m_currentScoreHasBeenSet = true;
57 m_currentScore = value;
58 }
59 inline AnomalyScore& WithCurrentScore(double value) {
60 SetCurrentScore(value);
61 return *this;
62 }
64 private:
65 double m_maxScore{0.0};
66
67 double m_currentScore{0.0};
68 bool m_maxScoreHasBeenSet = false;
69 bool m_currentScoreHasBeenSet = false;
70};
71
72} // namespace Model
73} // namespace CostExplorer
74} // namespace Aws
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COSTEXPLORER_API AnomalyScore & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTEXPLORER_API AnomalyScore()=default
AnomalyScore & WithMaxScore(double value)
AnomalyScore & WithCurrentScore(double value)
AWS_COSTEXPLORER_API AnomalyScore(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue