AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AnomalyMonitor.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/model/Expression.h>
9#include <aws/ce/model/MonitorDimension.h>
10#include <aws/ce/model/MonitorType.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CostExplorer {
23namespace Model {
24
34 public:
35 AWS_COSTEXPLORER_API AnomalyMonitor() = default;
36 AWS_COSTEXPLORER_API AnomalyMonitor(Aws::Utils::Json::JsonView jsonValue);
37 AWS_COSTEXPLORER_API AnomalyMonitor& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetMonitorArn() const { return m_monitorArn; }
45 inline bool MonitorArnHasBeenSet() const { return m_monitorArnHasBeenSet; }
46 template <typename MonitorArnT = Aws::String>
47 void SetMonitorArn(MonitorArnT&& value) {
48 m_monitorArnHasBeenSet = true;
49 m_monitorArn = std::forward<MonitorArnT>(value);
50 }
51 template <typename MonitorArnT = Aws::String>
52 AnomalyMonitor& WithMonitorArn(MonitorArnT&& value) {
53 SetMonitorArn(std::forward<MonitorArnT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetMonitorName() const { return m_monitorName; }
63 inline bool MonitorNameHasBeenSet() const { return m_monitorNameHasBeenSet; }
64 template <typename MonitorNameT = Aws::String>
65 void SetMonitorName(MonitorNameT&& value) {
66 m_monitorNameHasBeenSet = true;
67 m_monitorName = std::forward<MonitorNameT>(value);
68 }
69 template <typename MonitorNameT = Aws::String>
70 AnomalyMonitor& WithMonitorName(MonitorNameT&& value) {
71 SetMonitorName(std::forward<MonitorNameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
81 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
82 template <typename CreationDateT = Aws::String>
83 void SetCreationDate(CreationDateT&& value) {
84 m_creationDateHasBeenSet = true;
85 m_creationDate = std::forward<CreationDateT>(value);
86 }
87 template <typename CreationDateT = Aws::String>
88 AnomalyMonitor& WithCreationDate(CreationDateT&& value) {
89 SetCreationDate(std::forward<CreationDateT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
99 inline bool LastUpdatedDateHasBeenSet() const { return m_lastUpdatedDateHasBeenSet; }
100 template <typename LastUpdatedDateT = Aws::String>
101 void SetLastUpdatedDate(LastUpdatedDateT&& value) {
102 m_lastUpdatedDateHasBeenSet = true;
103 m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value);
104 }
105 template <typename LastUpdatedDateT = Aws::String>
106 AnomalyMonitor& WithLastUpdatedDate(LastUpdatedDateT&& value) {
107 SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetLastEvaluatedDate() const { return m_lastEvaluatedDate; }
117 inline bool LastEvaluatedDateHasBeenSet() const { return m_lastEvaluatedDateHasBeenSet; }
118 template <typename LastEvaluatedDateT = Aws::String>
119 void SetLastEvaluatedDate(LastEvaluatedDateT&& value) {
120 m_lastEvaluatedDateHasBeenSet = true;
121 m_lastEvaluatedDate = std::forward<LastEvaluatedDateT>(value);
122 }
123 template <typename LastEvaluatedDateT = Aws::String>
124 AnomalyMonitor& WithLastEvaluatedDate(LastEvaluatedDateT&& value) {
125 SetLastEvaluatedDate(std::forward<LastEvaluatedDateT>(value));
126 return *this;
127 }
129
131
144 inline MonitorType GetMonitorType() const { return m_monitorType; }
145 inline bool MonitorTypeHasBeenSet() const { return m_monitorTypeHasBeenSet; }
146 inline void SetMonitorType(MonitorType value) {
147 m_monitorTypeHasBeenSet = true;
148 m_monitorType = value;
149 }
151 SetMonitorType(value);
152 return *this;
153 }
155
157
165 inline MonitorDimension GetMonitorDimension() const { return m_monitorDimension; }
166 inline bool MonitorDimensionHasBeenSet() const { return m_monitorDimensionHasBeenSet; }
168 m_monitorDimensionHasBeenSet = true;
169 m_monitorDimension = value;
170 }
172 SetMonitorDimension(value);
173 return *this;
174 }
176
178
197 inline const Expression& GetMonitorSpecification() const { return m_monitorSpecification; }
198 inline bool MonitorSpecificationHasBeenSet() const { return m_monitorSpecificationHasBeenSet; }
199 template <typename MonitorSpecificationT = Expression>
200 void SetMonitorSpecification(MonitorSpecificationT&& value) {
201 m_monitorSpecificationHasBeenSet = true;
202 m_monitorSpecification = std::forward<MonitorSpecificationT>(value);
203 }
204 template <typename MonitorSpecificationT = Expression>
205 AnomalyMonitor& WithMonitorSpecification(MonitorSpecificationT&& value) {
206 SetMonitorSpecification(std::forward<MonitorSpecificationT>(value));
207 return *this;
208 }
210
212
215 inline int GetDimensionalValueCount() const { return m_dimensionalValueCount; }
216 inline bool DimensionalValueCountHasBeenSet() const { return m_dimensionalValueCountHasBeenSet; }
217 inline void SetDimensionalValueCount(int value) {
218 m_dimensionalValueCountHasBeenSet = true;
219 m_dimensionalValueCount = value;
220 }
223 return *this;
224 }
226 private:
227 Aws::String m_monitorArn;
228
229 Aws::String m_monitorName;
230
231 Aws::String m_creationDate;
232
233 Aws::String m_lastUpdatedDate;
234
235 Aws::String m_lastEvaluatedDate;
236
237 MonitorType m_monitorType{MonitorType::NOT_SET};
238
240
241 Expression m_monitorSpecification;
242
243 int m_dimensionalValueCount{0};
244 bool m_monitorArnHasBeenSet = false;
245 bool m_monitorNameHasBeenSet = false;
246 bool m_creationDateHasBeenSet = false;
247 bool m_lastUpdatedDateHasBeenSet = false;
248 bool m_lastEvaluatedDateHasBeenSet = false;
249 bool m_monitorTypeHasBeenSet = false;
250 bool m_monitorDimensionHasBeenSet = false;
251 bool m_monitorSpecificationHasBeenSet = false;
252 bool m_dimensionalValueCountHasBeenSet = false;
253};
254
255} // namespace Model
256} // namespace CostExplorer
257} // namespace Aws
void SetMonitorName(MonitorNameT &&value)
AnomalyMonitor & WithMonitorSpecification(MonitorSpecificationT &&value)
void SetLastUpdatedDate(LastUpdatedDateT &&value)
MonitorDimension GetMonitorDimension() const
void SetCreationDate(CreationDateT &&value)
void SetMonitorArn(MonitorArnT &&value)
AWS_COSTEXPLORER_API AnomalyMonitor & operator=(Aws::Utils::Json::JsonView jsonValue)
AnomalyMonitor & WithMonitorArn(MonitorArnT &&value)
AnomalyMonitor & WithMonitorType(MonitorType value)
const Aws::String & GetLastUpdatedDate() const
void SetMonitorDimension(MonitorDimension value)
AnomalyMonitor & WithMonitorName(MonitorNameT &&value)
const Aws::String & GetCreationDate() const
const Aws::String & GetMonitorName() const
const Aws::String & GetMonitorArn() const
AnomalyMonitor & WithMonitorDimension(MonitorDimension value)
AnomalyMonitor & WithLastEvaluatedDate(LastEvaluatedDateT &&value)
AnomalyMonitor & WithCreationDate(CreationDateT &&value)
void SetLastEvaluatedDate(LastEvaluatedDateT &&value)
AWS_COSTEXPLORER_API AnomalyMonitor()=default
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetLastEvaluatedDate() const
void SetMonitorSpecification(MonitorSpecificationT &&value)
const Expression & GetMonitorSpecification() const
AnomalyMonitor & WithLastUpdatedDate(LastUpdatedDateT &&value)
AnomalyMonitor & WithDimensionalValueCount(int value)
AWS_COSTEXPLORER_API AnomalyMonitor(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue