AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Anomaly.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ce/model/AnomalyScore.h>
11#include <aws/ce/model/Impact.h>
12#include <aws/ce/model/AnomalyFeedbackType.h>
13#include <aws/ce/model/RootCause.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace CostExplorer
27{
28namespace Model
29{
30
37 class Anomaly
38 {
39 public:
40 AWS_COSTEXPLORER_API Anomaly() = default;
41 AWS_COSTEXPLORER_API Anomaly(Aws::Utils::Json::JsonView jsonValue);
42 AWS_COSTEXPLORER_API Anomaly& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetAnomalyId() const { return m_anomalyId; }
51 inline bool AnomalyIdHasBeenSet() const { return m_anomalyIdHasBeenSet; }
52 template<typename AnomalyIdT = Aws::String>
53 void SetAnomalyId(AnomalyIdT&& value) { m_anomalyIdHasBeenSet = true; m_anomalyId = std::forward<AnomalyIdT>(value); }
54 template<typename AnomalyIdT = Aws::String>
55 Anomaly& WithAnomalyId(AnomalyIdT&& value) { SetAnomalyId(std::forward<AnomalyIdT>(value)); return *this;}
57
59
62 inline const Aws::String& GetAnomalyStartDate() const { return m_anomalyStartDate; }
63 inline bool AnomalyStartDateHasBeenSet() const { return m_anomalyStartDateHasBeenSet; }
64 template<typename AnomalyStartDateT = Aws::String>
65 void SetAnomalyStartDate(AnomalyStartDateT&& value) { m_anomalyStartDateHasBeenSet = true; m_anomalyStartDate = std::forward<AnomalyStartDateT>(value); }
66 template<typename AnomalyStartDateT = Aws::String>
67 Anomaly& WithAnomalyStartDate(AnomalyStartDateT&& value) { SetAnomalyStartDate(std::forward<AnomalyStartDateT>(value)); return *this;}
69
71
74 inline const Aws::String& GetAnomalyEndDate() const { return m_anomalyEndDate; }
75 inline bool AnomalyEndDateHasBeenSet() const { return m_anomalyEndDateHasBeenSet; }
76 template<typename AnomalyEndDateT = Aws::String>
77 void SetAnomalyEndDate(AnomalyEndDateT&& value) { m_anomalyEndDateHasBeenSet = true; m_anomalyEndDate = std::forward<AnomalyEndDateT>(value); }
78 template<typename AnomalyEndDateT = Aws::String>
79 Anomaly& WithAnomalyEndDate(AnomalyEndDateT&& value) { SetAnomalyEndDate(std::forward<AnomalyEndDateT>(value)); return *this;}
81
83
87 inline const Aws::String& GetDimensionValue() const { return m_dimensionValue; }
88 inline bool DimensionValueHasBeenSet() const { return m_dimensionValueHasBeenSet; }
89 template<typename DimensionValueT = Aws::String>
90 void SetDimensionValue(DimensionValueT&& value) { m_dimensionValueHasBeenSet = true; m_dimensionValue = std::forward<DimensionValueT>(value); }
91 template<typename DimensionValueT = Aws::String>
92 Anomaly& WithDimensionValue(DimensionValueT&& value) { SetDimensionValue(std::forward<DimensionValueT>(value)); return *this;}
94
96
99 inline const Aws::Vector<RootCause>& GetRootCauses() const { return m_rootCauses; }
100 inline bool RootCausesHasBeenSet() const { return m_rootCausesHasBeenSet; }
101 template<typename RootCausesT = Aws::Vector<RootCause>>
102 void SetRootCauses(RootCausesT&& value) { m_rootCausesHasBeenSet = true; m_rootCauses = std::forward<RootCausesT>(value); }
103 template<typename RootCausesT = Aws::Vector<RootCause>>
104 Anomaly& WithRootCauses(RootCausesT&& value) { SetRootCauses(std::forward<RootCausesT>(value)); return *this;}
105 template<typename RootCausesT = RootCause>
106 Anomaly& AddRootCauses(RootCausesT&& value) { m_rootCausesHasBeenSet = true; m_rootCauses.emplace_back(std::forward<RootCausesT>(value)); return *this; }
108
110
113 inline const AnomalyScore& GetAnomalyScore() const { return m_anomalyScore; }
114 inline bool AnomalyScoreHasBeenSet() const { return m_anomalyScoreHasBeenSet; }
115 template<typename AnomalyScoreT = AnomalyScore>
116 void SetAnomalyScore(AnomalyScoreT&& value) { m_anomalyScoreHasBeenSet = true; m_anomalyScore = std::forward<AnomalyScoreT>(value); }
117 template<typename AnomalyScoreT = AnomalyScore>
118 Anomaly& WithAnomalyScore(AnomalyScoreT&& value) { SetAnomalyScore(std::forward<AnomalyScoreT>(value)); return *this;}
120
122
125 inline const Impact& GetImpact() const { return m_impact; }
126 inline bool ImpactHasBeenSet() const { return m_impactHasBeenSet; }
127 template<typename ImpactT = Impact>
128 void SetImpact(ImpactT&& value) { m_impactHasBeenSet = true; m_impact = std::forward<ImpactT>(value); }
129 template<typename ImpactT = Impact>
130 Anomaly& WithImpact(ImpactT&& value) { SetImpact(std::forward<ImpactT>(value)); return *this;}
132
134
138 inline const Aws::String& GetMonitorArn() const { return m_monitorArn; }
139 inline bool MonitorArnHasBeenSet() const { return m_monitorArnHasBeenSet; }
140 template<typename MonitorArnT = Aws::String>
141 void SetMonitorArn(MonitorArnT&& value) { m_monitorArnHasBeenSet = true; m_monitorArn = std::forward<MonitorArnT>(value); }
142 template<typename MonitorArnT = Aws::String>
143 Anomaly& WithMonitorArn(MonitorArnT&& value) { SetMonitorArn(std::forward<MonitorArnT>(value)); return *this;}
145
147
150 inline AnomalyFeedbackType GetFeedback() const { return m_feedback; }
151 inline bool FeedbackHasBeenSet() const { return m_feedbackHasBeenSet; }
152 inline void SetFeedback(AnomalyFeedbackType value) { m_feedbackHasBeenSet = true; m_feedback = value; }
153 inline Anomaly& WithFeedback(AnomalyFeedbackType value) { SetFeedback(value); return *this;}
155 private:
156
157 Aws::String m_anomalyId;
158 bool m_anomalyIdHasBeenSet = false;
159
160 Aws::String m_anomalyStartDate;
161 bool m_anomalyStartDateHasBeenSet = false;
162
163 Aws::String m_anomalyEndDate;
164 bool m_anomalyEndDateHasBeenSet = false;
165
166 Aws::String m_dimensionValue;
167 bool m_dimensionValueHasBeenSet = false;
168
169 Aws::Vector<RootCause> m_rootCauses;
170 bool m_rootCausesHasBeenSet = false;
171
172 AnomalyScore m_anomalyScore;
173 bool m_anomalyScoreHasBeenSet = false;
174
175 Impact m_impact;
176 bool m_impactHasBeenSet = false;
177
178 Aws::String m_monitorArn;
179 bool m_monitorArnHasBeenSet = false;
180
182 bool m_feedbackHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace CostExplorer
187} // namespace Aws
void SetAnomalyStartDate(AnomalyStartDateT &&value)
Definition Anomaly.h:65
const Aws::String & GetAnomalyEndDate() const
Definition Anomaly.h:74
Anomaly & WithAnomalyId(AnomalyIdT &&value)
Definition Anomaly.h:55
Anomaly & WithAnomalyScore(AnomalyScoreT &&value)
Definition Anomaly.h:118
const AnomalyScore & GetAnomalyScore() const
Definition Anomaly.h:113
void SetAnomalyScore(AnomalyScoreT &&value)
Definition Anomaly.h:116
void SetAnomalyId(AnomalyIdT &&value)
Definition Anomaly.h:53
Anomaly & AddRootCauses(RootCausesT &&value)
Definition Anomaly.h:106
const Aws::String & GetAnomalyId() const
Definition Anomaly.h:50
void SetFeedback(AnomalyFeedbackType value)
Definition Anomaly.h:152
Anomaly & WithRootCauses(RootCausesT &&value)
Definition Anomaly.h:104
AnomalyFeedbackType GetFeedback() const
Definition Anomaly.h:150
Anomaly & WithAnomalyStartDate(AnomalyStartDateT &&value)
Definition Anomaly.h:67
Anomaly & WithMonitorArn(MonitorArnT &&value)
Definition Anomaly.h:143
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< RootCause > & GetRootCauses() const
Definition Anomaly.h:99
bool AnomalyStartDateHasBeenSet() const
Definition Anomaly.h:63
Anomaly & WithFeedback(AnomalyFeedbackType value)
Definition Anomaly.h:153
AWS_COSTEXPLORER_API Anomaly & operator=(Aws::Utils::Json::JsonView jsonValue)
Anomaly & WithDimensionValue(DimensionValueT &&value)
Definition Anomaly.h:92
AWS_COSTEXPLORER_API Anomaly()=default
bool DimensionValueHasBeenSet() const
Definition Anomaly.h:88
const Impact & GetImpact() const
Definition Anomaly.h:125
void SetRootCauses(RootCausesT &&value)
Definition Anomaly.h:102
Anomaly & WithAnomalyEndDate(AnomalyEndDateT &&value)
Definition Anomaly.h:79
const Aws::String & GetMonitorArn() const
Definition Anomaly.h:138
AWS_COSTEXPLORER_API Anomaly(Aws::Utils::Json::JsonView jsonValue)
void SetImpact(ImpactT &&value)
Definition Anomaly.h:128
const Aws::String & GetDimensionValue() const
Definition Anomaly.h:87
void SetAnomalyEndDate(AnomalyEndDateT &&value)
Definition Anomaly.h:77
const Aws::String & GetAnomalyStartDate() const
Definition Anomaly.h:62
void SetMonitorArn(MonitorArnT &&value)
Definition Anomaly.h:141
bool AnomalyEndDateHasBeenSet() const
Definition Anomaly.h:75
void SetDimensionValue(DimensionValueT &&value)
Definition Anomaly.h:90
Anomaly & WithImpact(ImpactT &&value)
Definition Anomaly.h:130
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue