AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAnomalyId(const Aws::String& value) { m_anomalyIdHasBeenSet = true; m_anomalyId = value; }
53 inline void SetAnomalyId(Aws::String&& value) { m_anomalyIdHasBeenSet = true; m_anomalyId = std::move(value); }
54 inline void SetAnomalyId(const char* value) { m_anomalyIdHasBeenSet = true; m_anomalyId.assign(value); }
55 inline Anomaly& WithAnomalyId(const Aws::String& value) { SetAnomalyId(value); return *this;}
56 inline Anomaly& WithAnomalyId(Aws::String&& value) { SetAnomalyId(std::move(value)); return *this;}
57 inline Anomaly& WithAnomalyId(const char* value) { SetAnomalyId(value); return *this;}
59
61
64 inline const Aws::String& GetAnomalyStartDate() const{ return m_anomalyStartDate; }
65 inline bool AnomalyStartDateHasBeenSet() const { return m_anomalyStartDateHasBeenSet; }
66 inline void SetAnomalyStartDate(const Aws::String& value) { m_anomalyStartDateHasBeenSet = true; m_anomalyStartDate = value; }
67 inline void SetAnomalyStartDate(Aws::String&& value) { m_anomalyStartDateHasBeenSet = true; m_anomalyStartDate = std::move(value); }
68 inline void SetAnomalyStartDate(const char* value) { m_anomalyStartDateHasBeenSet = true; m_anomalyStartDate.assign(value); }
69 inline Anomaly& WithAnomalyStartDate(const Aws::String& value) { SetAnomalyStartDate(value); return *this;}
70 inline Anomaly& WithAnomalyStartDate(Aws::String&& value) { SetAnomalyStartDate(std::move(value)); return *this;}
71 inline Anomaly& WithAnomalyStartDate(const char* value) { SetAnomalyStartDate(value); return *this;}
73
75
78 inline const Aws::String& GetAnomalyEndDate() const{ return m_anomalyEndDate; }
79 inline bool AnomalyEndDateHasBeenSet() const { return m_anomalyEndDateHasBeenSet; }
80 inline void SetAnomalyEndDate(const Aws::String& value) { m_anomalyEndDateHasBeenSet = true; m_anomalyEndDate = value; }
81 inline void SetAnomalyEndDate(Aws::String&& value) { m_anomalyEndDateHasBeenSet = true; m_anomalyEndDate = std::move(value); }
82 inline void SetAnomalyEndDate(const char* value) { m_anomalyEndDateHasBeenSet = true; m_anomalyEndDate.assign(value); }
83 inline Anomaly& WithAnomalyEndDate(const Aws::String& value) { SetAnomalyEndDate(value); return *this;}
84 inline Anomaly& WithAnomalyEndDate(Aws::String&& value) { SetAnomalyEndDate(std::move(value)); return *this;}
85 inline Anomaly& WithAnomalyEndDate(const char* value) { SetAnomalyEndDate(value); return *this;}
87
89
93 inline const Aws::String& GetDimensionValue() const{ return m_dimensionValue; }
94 inline bool DimensionValueHasBeenSet() const { return m_dimensionValueHasBeenSet; }
95 inline void SetDimensionValue(const Aws::String& value) { m_dimensionValueHasBeenSet = true; m_dimensionValue = value; }
96 inline void SetDimensionValue(Aws::String&& value) { m_dimensionValueHasBeenSet = true; m_dimensionValue = std::move(value); }
97 inline void SetDimensionValue(const char* value) { m_dimensionValueHasBeenSet = true; m_dimensionValue.assign(value); }
98 inline Anomaly& WithDimensionValue(const Aws::String& value) { SetDimensionValue(value); return *this;}
99 inline Anomaly& WithDimensionValue(Aws::String&& value) { SetDimensionValue(std::move(value)); return *this;}
100 inline Anomaly& WithDimensionValue(const char* value) { SetDimensionValue(value); return *this;}
102
104
107 inline const Aws::Vector<RootCause>& GetRootCauses() const{ return m_rootCauses; }
108 inline bool RootCausesHasBeenSet() const { return m_rootCausesHasBeenSet; }
109 inline void SetRootCauses(const Aws::Vector<RootCause>& value) { m_rootCausesHasBeenSet = true; m_rootCauses = value; }
110 inline void SetRootCauses(Aws::Vector<RootCause>&& value) { m_rootCausesHasBeenSet = true; m_rootCauses = std::move(value); }
111 inline Anomaly& WithRootCauses(const Aws::Vector<RootCause>& value) { SetRootCauses(value); return *this;}
112 inline Anomaly& WithRootCauses(Aws::Vector<RootCause>&& value) { SetRootCauses(std::move(value)); return *this;}
113 inline Anomaly& AddRootCauses(const RootCause& value) { m_rootCausesHasBeenSet = true; m_rootCauses.push_back(value); return *this; }
114 inline Anomaly& AddRootCauses(RootCause&& value) { m_rootCausesHasBeenSet = true; m_rootCauses.push_back(std::move(value)); return *this; }
116
118
121 inline const AnomalyScore& GetAnomalyScore() const{ return m_anomalyScore; }
122 inline bool AnomalyScoreHasBeenSet() const { return m_anomalyScoreHasBeenSet; }
123 inline void SetAnomalyScore(const AnomalyScore& value) { m_anomalyScoreHasBeenSet = true; m_anomalyScore = value; }
124 inline void SetAnomalyScore(AnomalyScore&& value) { m_anomalyScoreHasBeenSet = true; m_anomalyScore = std::move(value); }
125 inline Anomaly& WithAnomalyScore(const AnomalyScore& value) { SetAnomalyScore(value); return *this;}
126 inline Anomaly& WithAnomalyScore(AnomalyScore&& value) { SetAnomalyScore(std::move(value)); return *this;}
128
130
133 inline const Impact& GetImpact() const{ return m_impact; }
134 inline bool ImpactHasBeenSet() const { return m_impactHasBeenSet; }
135 inline void SetImpact(const Impact& value) { m_impactHasBeenSet = true; m_impact = value; }
136 inline void SetImpact(Impact&& value) { m_impactHasBeenSet = true; m_impact = std::move(value); }
137 inline Anomaly& WithImpact(const Impact& value) { SetImpact(value); return *this;}
138 inline Anomaly& WithImpact(Impact&& value) { SetImpact(std::move(value)); return *this;}
140
142
146 inline const Aws::String& GetMonitorArn() const{ return m_monitorArn; }
147 inline bool MonitorArnHasBeenSet() const { return m_monitorArnHasBeenSet; }
148 inline void SetMonitorArn(const Aws::String& value) { m_monitorArnHasBeenSet = true; m_monitorArn = value; }
149 inline void SetMonitorArn(Aws::String&& value) { m_monitorArnHasBeenSet = true; m_monitorArn = std::move(value); }
150 inline void SetMonitorArn(const char* value) { m_monitorArnHasBeenSet = true; m_monitorArn.assign(value); }
151 inline Anomaly& WithMonitorArn(const Aws::String& value) { SetMonitorArn(value); return *this;}
152 inline Anomaly& WithMonitorArn(Aws::String&& value) { SetMonitorArn(std::move(value)); return *this;}
153 inline Anomaly& WithMonitorArn(const char* value) { SetMonitorArn(value); return *this;}
155
157
160 inline const AnomalyFeedbackType& GetFeedback() const{ return m_feedback; }
161 inline bool FeedbackHasBeenSet() const { return m_feedbackHasBeenSet; }
162 inline void SetFeedback(const AnomalyFeedbackType& value) { m_feedbackHasBeenSet = true; m_feedback = value; }
163 inline void SetFeedback(AnomalyFeedbackType&& value) { m_feedbackHasBeenSet = true; m_feedback = std::move(value); }
164 inline Anomaly& WithFeedback(const AnomalyFeedbackType& value) { SetFeedback(value); return *this;}
165 inline Anomaly& WithFeedback(AnomalyFeedbackType&& value) { SetFeedback(std::move(value)); return *this;}
167 private:
168
169 Aws::String m_anomalyId;
170 bool m_anomalyIdHasBeenSet = false;
171
172 Aws::String m_anomalyStartDate;
173 bool m_anomalyStartDateHasBeenSet = false;
174
175 Aws::String m_anomalyEndDate;
176 bool m_anomalyEndDateHasBeenSet = false;
177
178 Aws::String m_dimensionValue;
179 bool m_dimensionValueHasBeenSet = false;
180
181 Aws::Vector<RootCause> m_rootCauses;
182 bool m_rootCausesHasBeenSet = false;
183
184 AnomalyScore m_anomalyScore;
185 bool m_anomalyScoreHasBeenSet = false;
186
187 Impact m_impact;
188 bool m_impactHasBeenSet = false;
189
190 Aws::String m_monitorArn;
191 bool m_monitorArnHasBeenSet = false;
192
193 AnomalyFeedbackType m_feedback;
194 bool m_feedbackHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace CostExplorer
199} // namespace Aws
Anomaly & WithImpact(const Impact &value)
Definition Anomaly.h:137
Anomaly & WithRootCauses(const Aws::Vector< RootCause > &value)
Definition Anomaly.h:111
void SetAnomalyId(Aws::String &&value)
Definition Anomaly.h:53
Anomaly & WithAnomalyId(Aws::String &&value)
Definition Anomaly.h:56
void SetRootCauses(const Aws::Vector< RootCause > &value)
Definition Anomaly.h:109
const Aws::String & GetAnomalyEndDate() const
Definition Anomaly.h:78
void SetFeedback(AnomalyFeedbackType &&value)
Definition Anomaly.h:163
void SetMonitorArn(const char *value)
Definition Anomaly.h:150
void SetAnomalyEndDate(const char *value)
Definition Anomaly.h:82
const AnomalyScore & GetAnomalyScore() const
Definition Anomaly.h:121
void SetAnomalyEndDate(Aws::String &&value)
Definition Anomaly.h:81
const AnomalyFeedbackType & GetFeedback() const
Definition Anomaly.h:160
Anomaly & WithImpact(Impact &&value)
Definition Anomaly.h:138
Anomaly & WithAnomalyEndDate(const Aws::String &value)
Definition Anomaly.h:83
const Aws::String & GetAnomalyId() const
Definition Anomaly.h:50
Anomaly & WithAnomalyId(const char *value)
Definition Anomaly.h:57
Anomaly & WithMonitorArn(Aws::String &&value)
Definition Anomaly.h:152
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
Anomaly & WithAnomalyEndDate(Aws::String &&value)
Definition Anomaly.h:84
const Aws::Vector< RootCause > & GetRootCauses() const
Definition Anomaly.h:107
Anomaly & WithAnomalyStartDate(const char *value)
Definition Anomaly.h:71
void SetMonitorArn(const Aws::String &value)
Definition Anomaly.h:148
Anomaly & WithAnomalyStartDate(const Aws::String &value)
Definition Anomaly.h:69
void SetAnomalyId(const char *value)
Definition Anomaly.h:54
void SetFeedback(const AnomalyFeedbackType &value)
Definition Anomaly.h:162
Anomaly & WithAnomalyScore(const AnomalyScore &value)
Definition Anomaly.h:125
Anomaly & WithRootCauses(Aws::Vector< RootCause > &&value)
Definition Anomaly.h:112
void SetImpact(Impact &&value)
Definition Anomaly.h:136
bool AnomalyStartDateHasBeenSet() const
Definition Anomaly.h:65
Anomaly & WithAnomalyScore(AnomalyScore &&value)
Definition Anomaly.h:126
Anomaly & WithDimensionValue(const char *value)
Definition Anomaly.h:100
Anomaly & WithFeedback(AnomalyFeedbackType &&value)
Definition Anomaly.h:165
void SetAnomalyStartDate(Aws::String &&value)
Definition Anomaly.h:67
Anomaly & WithMonitorArn(const char *value)
Definition Anomaly.h:153
Anomaly & WithAnomalyEndDate(const char *value)
Definition Anomaly.h:85
AWS_COSTEXPLORER_API Anomaly & operator=(Aws::Utils::Json::JsonView jsonValue)
Anomaly & WithMonitorArn(const Aws::String &value)
Definition Anomaly.h:151
bool DimensionValueHasBeenSet() const
Definition Anomaly.h:94
Anomaly & AddRootCauses(const RootCause &value)
Definition Anomaly.h:113
const Impact & GetImpact() const
Definition Anomaly.h:133
Anomaly & WithFeedback(const AnomalyFeedbackType &value)
Definition Anomaly.h:164
const Aws::String & GetMonitorArn() const
Definition Anomaly.h:146
AWS_COSTEXPLORER_API Anomaly(Aws::Utils::Json::JsonView jsonValue)
void SetRootCauses(Aws::Vector< RootCause > &&value)
Definition Anomaly.h:110
void SetDimensionValue(Aws::String &&value)
Definition Anomaly.h:96
AWS_COSTEXPLORER_API Anomaly()
void SetAnomalyStartDate(const char *value)
Definition Anomaly.h:68
Anomaly & AddRootCauses(RootCause &&value)
Definition Anomaly.h:114
void SetMonitorArn(Aws::String &&value)
Definition Anomaly.h:149
void SetDimensionValue(const char *value)
Definition Anomaly.h:97
void SetAnomalyId(const Aws::String &value)
Definition Anomaly.h:52
Anomaly & WithAnomalyStartDate(Aws::String &&value)
Definition Anomaly.h:70
void SetImpact(const Impact &value)
Definition Anomaly.h:135
void SetDimensionValue(const Aws::String &value)
Definition Anomaly.h:95
void SetAnomalyScore(const AnomalyScore &value)
Definition Anomaly.h:123
const Aws::String & GetDimensionValue() const
Definition Anomaly.h:93
void SetAnomalyScore(AnomalyScore &&value)
Definition Anomaly.h:124
Anomaly & WithDimensionValue(const Aws::String &value)
Definition Anomaly.h:98
Anomaly & WithAnomalyId(const Aws::String &value)
Definition Anomaly.h:55
const Aws::String & GetAnomalyStartDate() const
Definition Anomaly.h:64
Anomaly & WithDimensionValue(Aws::String &&value)
Definition Anomaly.h:99
void SetAnomalyEndDate(const Aws::String &value)
Definition Anomaly.h:80
void SetAnomalyStartDate(const Aws::String &value)
Definition Anomaly.h:66
bool AnomalyEndDateHasBeenSet() const
Definition Anomaly.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue