AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
AnomalyDetectorDescription.h
1
6#pragma once
7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/amp/model/AnomalyDetectorConfiguration.h>
9#include <aws/amp/model/AnomalyDetectorMissingDataAction.h>
10#include <aws/amp/model/AnomalyDetectorStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace PrometheusService {
25namespace Model {
26
33 public:
34 AWS_PROMETHEUSSERVICE_API AnomalyDetectorDescription() = default;
35 AWS_PROMETHEUSSERVICE_API AnomalyDetectorDescription(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetArn() const { return m_arn; }
44 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
45 template <typename ArnT = Aws::String>
46 void SetArn(ArnT&& value) {
47 m_arnHasBeenSet = true;
48 m_arn = std::forward<ArnT>(value);
49 }
50 template <typename ArnT = Aws::String>
52 SetArn(std::forward<ArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetAnomalyDetectorId() const { return m_anomalyDetectorId; }
62 inline bool AnomalyDetectorIdHasBeenSet() const { return m_anomalyDetectorIdHasBeenSet; }
63 template <typename AnomalyDetectorIdT = Aws::String>
64 void SetAnomalyDetectorId(AnomalyDetectorIdT&& value) {
65 m_anomalyDetectorIdHasBeenSet = true;
66 m_anomalyDetectorId = std::forward<AnomalyDetectorIdT>(value);
67 }
68 template <typename AnomalyDetectorIdT = Aws::String>
70 SetAnomalyDetectorId(std::forward<AnomalyDetectorIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetAlias() const { return m_alias; }
80 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
81 template <typename AliasT = Aws::String>
82 void SetAlias(AliasT&& value) {
83 m_aliasHasBeenSet = true;
84 m_alias = std::forward<AliasT>(value);
85 }
86 template <typename AliasT = Aws::String>
88 SetAlias(std::forward<AliasT>(value));
89 return *this;
90 }
92
94
98 inline int GetEvaluationIntervalInSeconds() const { return m_evaluationIntervalInSeconds; }
99 inline bool EvaluationIntervalInSecondsHasBeenSet() const { return m_evaluationIntervalInSecondsHasBeenSet; }
100 inline void SetEvaluationIntervalInSeconds(int value) {
101 m_evaluationIntervalInSecondsHasBeenSet = true;
102 m_evaluationIntervalInSeconds = value;
103 }
106 return *this;
107 }
109
111
114 inline const AnomalyDetectorMissingDataAction& GetMissingDataAction() const { return m_missingDataAction; }
115 inline bool MissingDataActionHasBeenSet() const { return m_missingDataActionHasBeenSet; }
116 template <typename MissingDataActionT = AnomalyDetectorMissingDataAction>
117 void SetMissingDataAction(MissingDataActionT&& value) {
118 m_missingDataActionHasBeenSet = true;
119 m_missingDataAction = std::forward<MissingDataActionT>(value);
120 }
121 template <typename MissingDataActionT = AnomalyDetectorMissingDataAction>
123 SetMissingDataAction(std::forward<MissingDataActionT>(value));
124 return *this;
125 }
127
129
132 inline const AnomalyDetectorConfiguration& GetConfiguration() const { return m_configuration; }
133 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
134 template <typename ConfigurationT = AnomalyDetectorConfiguration>
135 void SetConfiguration(ConfigurationT&& value) {
136 m_configurationHasBeenSet = true;
137 m_configuration = std::forward<ConfigurationT>(value);
138 }
139 template <typename ConfigurationT = AnomalyDetectorConfiguration>
141 SetConfiguration(std::forward<ConfigurationT>(value));
142 return *this;
143 }
145
147
151 inline const Aws::Map<Aws::String, Aws::String>& GetLabels() const { return m_labels; }
152 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
153 template <typename LabelsT = Aws::Map<Aws::String, Aws::String>>
154 void SetLabels(LabelsT&& value) {
155 m_labelsHasBeenSet = true;
156 m_labels = std::forward<LabelsT>(value);
157 }
158 template <typename LabelsT = Aws::Map<Aws::String, Aws::String>>
160 SetLabels(std::forward<LabelsT>(value));
161 return *this;
162 }
163 template <typename LabelsKeyT = Aws::String, typename LabelsValueT = Aws::String>
164 AnomalyDetectorDescription& AddLabels(LabelsKeyT&& key, LabelsValueT&& value) {
165 m_labelsHasBeenSet = true;
166 m_labels.emplace(std::forward<LabelsKeyT>(key), std::forward<LabelsValueT>(value));
167 return *this;
168 }
170
172
175 inline const AnomalyDetectorStatus& GetStatus() const { return m_status; }
176 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
177 template <typename StatusT = AnomalyDetectorStatus>
178 void SetStatus(StatusT&& value) {
179 m_statusHasBeenSet = true;
180 m_status = std::forward<StatusT>(value);
181 }
182 template <typename StatusT = AnomalyDetectorStatus>
184 SetStatus(std::forward<StatusT>(value));
185 return *this;
186 }
188
190
193 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
194 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
195 template <typename CreatedAtT = Aws::Utils::DateTime>
196 void SetCreatedAt(CreatedAtT&& value) {
197 m_createdAtHasBeenSet = true;
198 m_createdAt = std::forward<CreatedAtT>(value);
199 }
200 template <typename CreatedAtT = Aws::Utils::DateTime>
202 SetCreatedAt(std::forward<CreatedAtT>(value));
203 return *this;
204 }
206
208
211 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
212 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
213 template <typename ModifiedAtT = Aws::Utils::DateTime>
214 void SetModifiedAt(ModifiedAtT&& value) {
215 m_modifiedAtHasBeenSet = true;
216 m_modifiedAt = std::forward<ModifiedAtT>(value);
217 }
218 template <typename ModifiedAtT = Aws::Utils::DateTime>
220 SetModifiedAt(std::forward<ModifiedAtT>(value));
221 return *this;
222 }
224
226
229 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
230 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
231 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
232 void SetTags(TagsT&& value) {
233 m_tagsHasBeenSet = true;
234 m_tags = std::forward<TagsT>(value);
235 }
236 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
238 SetTags(std::forward<TagsT>(value));
239 return *this;
240 }
241 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
242 AnomalyDetectorDescription& AddTags(TagsKeyT&& key, TagsValueT&& value) {
243 m_tagsHasBeenSet = true;
244 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
245 return *this;
246 }
248 private:
249 Aws::String m_arn;
250
251 Aws::String m_anomalyDetectorId;
252
253 Aws::String m_alias;
254
255 int m_evaluationIntervalInSeconds{0};
256
257 AnomalyDetectorMissingDataAction m_missingDataAction;
258
259 AnomalyDetectorConfiguration m_configuration;
260
262
263 AnomalyDetectorStatus m_status;
264
265 Aws::Utils::DateTime m_createdAt{};
266
267 Aws::Utils::DateTime m_modifiedAt{};
268
270 bool m_arnHasBeenSet = false;
271 bool m_anomalyDetectorIdHasBeenSet = false;
272 bool m_aliasHasBeenSet = false;
273 bool m_evaluationIntervalInSecondsHasBeenSet = false;
274 bool m_missingDataActionHasBeenSet = false;
275 bool m_configurationHasBeenSet = false;
276 bool m_labelsHasBeenSet = false;
277 bool m_statusHasBeenSet = false;
278 bool m_createdAtHasBeenSet = false;
279 bool m_modifiedAtHasBeenSet = false;
280 bool m_tagsHasBeenSet = false;
281};
282
283} // namespace Model
284} // namespace PrometheusService
285} // namespace Aws
AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::String > & GetLabels() const
AnomalyDetectorDescription & WithMissingDataAction(MissingDataActionT &&value)
AWS_PROMETHEUSSERVICE_API AnomalyDetectorDescription(Aws::Utils::Json::JsonView jsonValue)
AnomalyDetectorDescription & WithModifiedAt(ModifiedAtT &&value)
AnomalyDetectorDescription & WithCreatedAt(CreatedAtT &&value)
AWS_PROMETHEUSSERVICE_API AnomalyDetectorDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
AnomalyDetectorDescription & WithConfiguration(ConfigurationT &&value)
AnomalyDetectorDescription & AddLabels(LabelsKeyT &&key, LabelsValueT &&value)
AWS_PROMETHEUSSERVICE_API AnomalyDetectorDescription()=default
AnomalyDetectorDescription & AddTags(TagsKeyT &&key, TagsValueT &&value)
const AnomalyDetectorMissingDataAction & GetMissingDataAction() const
const AnomalyDetectorConfiguration & GetConfiguration() const
AnomalyDetectorDescription & WithEvaluationIntervalInSeconds(int value)
AnomalyDetectorDescription & WithAnomalyDetectorId(AnomalyDetectorIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue