AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
CloudWatchAlarmTemplateSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/medialive/MediaLive_EXPORTS.h>
11#include <aws/medialive/model/CloudWatchAlarmTemplateComparisonOperator.h>
12#include <aws/medialive/model/CloudWatchAlarmTemplateStatistic.h>
13#include <aws/medialive/model/CloudWatchAlarmTemplateTargetResourceType.h>
14#include <aws/medialive/model/CloudWatchAlarmTemplateTreatMissingData.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace MediaLive {
26namespace Model {
27
35 public:
36 AWS_MEDIALIVE_API CloudWatchAlarmTemplateSummary() = default;
39 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetArn() const { return m_arn; }
46 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
47 template <typename ArnT = Aws::String>
48 void SetArn(ArnT&& value) {
49 m_arnHasBeenSet = true;
50 m_arn = std::forward<ArnT>(value);
51 }
52 template <typename ArnT = Aws::String>
54 SetArn(std::forward<ArnT>(value));
55 return *this;
56 }
58
60
61 inline CloudWatchAlarmTemplateComparisonOperator GetComparisonOperator() const { return m_comparisonOperator; }
62 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
64 m_comparisonOperatorHasBeenSet = true;
65 m_comparisonOperator = value;
66 }
69 return *this;
70 }
72
74
75 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
76 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
77 template <typename CreatedAtT = Aws::Utils::DateTime>
78 void SetCreatedAt(CreatedAtT&& value) {
79 m_createdAtHasBeenSet = true;
80 m_createdAt = std::forward<CreatedAtT>(value);
81 }
82 template <typename CreatedAtT = Aws::Utils::DateTime>
84 SetCreatedAt(std::forward<CreatedAtT>(value));
85 return *this;
86 }
88
90
94 inline int GetDatapointsToAlarm() const { return m_datapointsToAlarm; }
95 inline bool DatapointsToAlarmHasBeenSet() const { return m_datapointsToAlarmHasBeenSet; }
96 inline void SetDatapointsToAlarm(int value) {
97 m_datapointsToAlarmHasBeenSet = true;
98 m_datapointsToAlarm = value;
99 }
102 return *this;
103 }
105
107
110 inline const Aws::String& GetDescription() const { return m_description; }
111 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
112 template <typename DescriptionT = Aws::String>
113 void SetDescription(DescriptionT&& value) {
114 m_descriptionHasBeenSet = true;
115 m_description = std::forward<DescriptionT>(value);
116 }
117 template <typename DescriptionT = Aws::String>
119 SetDescription(std::forward<DescriptionT>(value));
120 return *this;
121 }
123
125
128 inline int GetEvaluationPeriods() const { return m_evaluationPeriods; }
129 inline bool EvaluationPeriodsHasBeenSet() const { return m_evaluationPeriodsHasBeenSet; }
130 inline void SetEvaluationPeriods(int value) {
131 m_evaluationPeriodsHasBeenSet = true;
132 m_evaluationPeriods = value;
133 }
136 return *this;
137 }
139
141
145 inline const Aws::String& GetGroupId() const { return m_groupId; }
146 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
147 template <typename GroupIdT = Aws::String>
148 void SetGroupId(GroupIdT&& value) {
149 m_groupIdHasBeenSet = true;
150 m_groupId = std::forward<GroupIdT>(value);
151 }
152 template <typename GroupIdT = Aws::String>
154 SetGroupId(std::forward<GroupIdT>(value));
155 return *this;
156 }
158
160
164 inline const Aws::String& GetId() const { return m_id; }
165 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
166 template <typename IdT = Aws::String>
167 void SetId(IdT&& value) {
168 m_idHasBeenSet = true;
169 m_id = std::forward<IdT>(value);
170 }
171 template <typename IdT = Aws::String>
173 SetId(std::forward<IdT>(value));
174 return *this;
175 }
177
179
183 inline const Aws::String& GetMetricName() const { return m_metricName; }
184 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
185 template <typename MetricNameT = Aws::String>
186 void SetMetricName(MetricNameT&& value) {
187 m_metricNameHasBeenSet = true;
188 m_metricName = std::forward<MetricNameT>(value);
189 }
190 template <typename MetricNameT = Aws::String>
192 SetMetricName(std::forward<MetricNameT>(value));
193 return *this;
194 }
196
198
199 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
200 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
201 template <typename ModifiedAtT = Aws::Utils::DateTime>
202 void SetModifiedAt(ModifiedAtT&& value) {
203 m_modifiedAtHasBeenSet = true;
204 m_modifiedAt = std::forward<ModifiedAtT>(value);
205 }
206 template <typename ModifiedAtT = Aws::Utils::DateTime>
208 SetModifiedAt(std::forward<ModifiedAtT>(value));
209 return *this;
210 }
212
214
218 inline const Aws::String& GetName() const { return m_name; }
219 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
220 template <typename NameT = Aws::String>
221 void SetName(NameT&& value) {
222 m_nameHasBeenSet = true;
223 m_name = std::forward<NameT>(value);
224 }
225 template <typename NameT = Aws::String>
227 SetName(std::forward<NameT>(value));
228 return *this;
229 }
231
233
236 inline int GetPeriod() const { return m_period; }
237 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
238 inline void SetPeriod(int value) {
239 m_periodHasBeenSet = true;
240 m_period = value;
241 }
243 SetPeriod(value);
244 return *this;
245 }
247
249
250 inline CloudWatchAlarmTemplateStatistic GetStatistic() const { return m_statistic; }
251 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
253 m_statisticHasBeenSet = true;
254 m_statistic = value;
255 }
257 SetStatistic(value);
258 return *this;
259 }
261
263
264 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
265 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
266 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
267 void SetTags(TagsT&& value) {
268 m_tagsHasBeenSet = true;
269 m_tags = std::forward<TagsT>(value);
270 }
271 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
273 SetTags(std::forward<TagsT>(value));
274 return *this;
275 }
276 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
277 CloudWatchAlarmTemplateSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
278 m_tagsHasBeenSet = true;
279 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
280 return *this;
281 }
283
285
286 inline CloudWatchAlarmTemplateTargetResourceType GetTargetResourceType() const { return m_targetResourceType; }
287 inline bool TargetResourceTypeHasBeenSet() const { return m_targetResourceTypeHasBeenSet; }
289 m_targetResourceTypeHasBeenSet = true;
290 m_targetResourceType = value;
291 }
294 return *this;
295 }
297
299
302 inline double GetThreshold() const { return m_threshold; }
303 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
304 inline void SetThreshold(double value) {
305 m_thresholdHasBeenSet = true;
306 m_threshold = value;
307 }
309 SetThreshold(value);
310 return *this;
311 }
313
315
316 inline CloudWatchAlarmTemplateTreatMissingData GetTreatMissingData() const { return m_treatMissingData; }
317 inline bool TreatMissingDataHasBeenSet() const { return m_treatMissingDataHasBeenSet; }
319 m_treatMissingDataHasBeenSet = true;
320 m_treatMissingData = value;
321 }
323 SetTreatMissingData(value);
324 return *this;
325 }
327 private:
328 Aws::String m_arn;
329
331
332 Aws::Utils::DateTime m_createdAt{};
333
334 int m_datapointsToAlarm{0};
335
336 Aws::String m_description;
337
338 int m_evaluationPeriods{0};
339
340 Aws::String m_groupId;
341
342 Aws::String m_id;
343
344 Aws::String m_metricName;
345
346 Aws::Utils::DateTime m_modifiedAt{};
347
348 Aws::String m_name;
349
350 int m_period{0};
351
353
355
357
358 double m_threshold{0.0};
359
361 bool m_arnHasBeenSet = false;
362 bool m_comparisonOperatorHasBeenSet = false;
363 bool m_createdAtHasBeenSet = false;
364 bool m_datapointsToAlarmHasBeenSet = false;
365 bool m_descriptionHasBeenSet = false;
366 bool m_evaluationPeriodsHasBeenSet = false;
367 bool m_groupIdHasBeenSet = false;
368 bool m_idHasBeenSet = false;
369 bool m_metricNameHasBeenSet = false;
370 bool m_modifiedAtHasBeenSet = false;
371 bool m_nameHasBeenSet = false;
372 bool m_periodHasBeenSet = false;
373 bool m_statisticHasBeenSet = false;
374 bool m_tagsHasBeenSet = false;
375 bool m_targetResourceTypeHasBeenSet = false;
376 bool m_thresholdHasBeenSet = false;
377 bool m_treatMissingDataHasBeenSet = false;
378};
379
380} // namespace Model
381} // namespace MediaLive
382} // namespace Aws
AWS_MEDIALIVE_API CloudWatchAlarmTemplateSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
CloudWatchAlarmTemplateSummary & WithModifiedAt(ModifiedAtT &&value)
CloudWatchAlarmTemplateSummary & WithGroupId(GroupIdT &&value)
CloudWatchAlarmTemplateTargetResourceType GetTargetResourceType() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CloudWatchAlarmTemplateSummary & WithDescription(DescriptionT &&value)
CloudWatchAlarmTemplateSummary & WithTargetResourceType(CloudWatchAlarmTemplateTargetResourceType value)
CloudWatchAlarmTemplateSummary & WithMetricName(MetricNameT &&value)
CloudWatchAlarmTemplateSummary & WithStatistic(CloudWatchAlarmTemplateStatistic value)
CloudWatchAlarmTemplateSummary & WithDatapointsToAlarm(int value)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
CloudWatchAlarmTemplateSummary & WithName(NameT &&value)
CloudWatchAlarmTemplateSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_MEDIALIVE_API CloudWatchAlarmTemplateSummary(Aws::Utils::Json::JsonView jsonValue)
void SetTreatMissingData(CloudWatchAlarmTemplateTreatMissingData value)
CloudWatchAlarmTemplateSummary & WithEvaluationPeriods(int value)
CloudWatchAlarmTemplateSummary & WithCreatedAt(CreatedAtT &&value)
AWS_MEDIALIVE_API CloudWatchAlarmTemplateSummary()=default
CloudWatchAlarmTemplateComparisonOperator GetComparisonOperator() const
CloudWatchAlarmTemplateSummary & WithComparisonOperator(CloudWatchAlarmTemplateComparisonOperator value)
void SetComparisonOperator(CloudWatchAlarmTemplateComparisonOperator value)
CloudWatchAlarmTemplateSummary & WithArn(ArnT &&value)
CloudWatchAlarmTemplateSummary & WithThreshold(double value)
CloudWatchAlarmTemplateSummary & WithTreatMissingData(CloudWatchAlarmTemplateTreatMissingData value)
void SetTargetResourceType(CloudWatchAlarmTemplateTargetResourceType value)
CloudWatchAlarmTemplateSummary & WithTags(TagsT &&value)
CloudWatchAlarmTemplateTreatMissingData GetTreatMissingData() 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