AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CloudWatchAlarmTemplateSummary.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/medialive/model/CloudWatchAlarmTemplateComparisonOperator.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/medialive/model/CloudWatchAlarmTemplateStatistic.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/medialive/model/CloudWatchAlarmTemplateTargetResourceType.h>
14#include <aws/medialive/model/CloudWatchAlarmTemplateTreatMissingData.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace MediaLive
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_MEDIALIVE_API CloudWatchAlarmTemplateSummary();
44 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetArn() const{ return m_arn; }
52 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
53 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
54 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
55 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
56 inline CloudWatchAlarmTemplateSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
57 inline CloudWatchAlarmTemplateSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
58 inline CloudWatchAlarmTemplateSummary& WithArn(const char* value) { SetArn(value); return *this;}
60
62
63 inline const CloudWatchAlarmTemplateComparisonOperator& GetComparisonOperator() const{ return m_comparisonOperator; }
64 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
65 inline void SetComparisonOperator(const CloudWatchAlarmTemplateComparisonOperator& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
66 inline void SetComparisonOperator(CloudWatchAlarmTemplateComparisonOperator&& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = std::move(value); }
70
72
73 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
74 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
75 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
76 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
78 inline CloudWatchAlarmTemplateSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
80
82
86 inline int GetDatapointsToAlarm() const{ return m_datapointsToAlarm; }
87 inline bool DatapointsToAlarmHasBeenSet() const { return m_datapointsToAlarmHasBeenSet; }
88 inline void SetDatapointsToAlarm(int value) { m_datapointsToAlarmHasBeenSet = true; m_datapointsToAlarm = value; }
91
93
96 inline const Aws::String& GetDescription() const{ return m_description; }
97 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
98 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
99 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
100 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
101 inline CloudWatchAlarmTemplateSummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
102 inline CloudWatchAlarmTemplateSummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
103 inline CloudWatchAlarmTemplateSummary& WithDescription(const char* value) { SetDescription(value); return *this;}
105
107
110 inline int GetEvaluationPeriods() const{ return m_evaluationPeriods; }
111 inline bool EvaluationPeriodsHasBeenSet() const { return m_evaluationPeriodsHasBeenSet; }
112 inline void SetEvaluationPeriods(int value) { m_evaluationPeriodsHasBeenSet = true; m_evaluationPeriods = value; }
115
117
121 inline const Aws::String& GetGroupId() const{ return m_groupId; }
122 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
123 inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
124 inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
125 inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
126 inline CloudWatchAlarmTemplateSummary& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
127 inline CloudWatchAlarmTemplateSummary& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
128 inline CloudWatchAlarmTemplateSummary& WithGroupId(const char* value) { SetGroupId(value); return *this;}
130
132
136 inline const Aws::String& GetId() const{ return m_id; }
137 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
138 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
139 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
140 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
141 inline CloudWatchAlarmTemplateSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
142 inline CloudWatchAlarmTemplateSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
143 inline CloudWatchAlarmTemplateSummary& WithId(const char* value) { SetId(value); return *this;}
145
147
151 inline const Aws::String& GetMetricName() const{ return m_metricName; }
152 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
153 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
154 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
155 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
156 inline CloudWatchAlarmTemplateSummary& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
157 inline CloudWatchAlarmTemplateSummary& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
158 inline CloudWatchAlarmTemplateSummary& WithMetricName(const char* value) { SetMetricName(value); return *this;}
160
162
163 inline const Aws::Utils::DateTime& GetModifiedAt() const{ return m_modifiedAt; }
164 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
165 inline void SetModifiedAt(const Aws::Utils::DateTime& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = value; }
166 inline void SetModifiedAt(Aws::Utils::DateTime&& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = std::move(value); }
168 inline CloudWatchAlarmTemplateSummary& WithModifiedAt(Aws::Utils::DateTime&& value) { SetModifiedAt(std::move(value)); return *this;}
170
172
176 inline const Aws::String& GetName() const{ return m_name; }
177 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
178 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
179 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
180 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
181 inline CloudWatchAlarmTemplateSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
182 inline CloudWatchAlarmTemplateSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
183 inline CloudWatchAlarmTemplateSummary& WithName(const char* value) { SetName(value); return *this;}
185
187
190 inline int GetPeriod() const{ return m_period; }
191 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
192 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
193 inline CloudWatchAlarmTemplateSummary& WithPeriod(int value) { SetPeriod(value); return *this;}
195
197
198 inline const CloudWatchAlarmTemplateStatistic& GetStatistic() const{ return m_statistic; }
199 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
200 inline void SetStatistic(const CloudWatchAlarmTemplateStatistic& value) { m_statisticHasBeenSet = true; m_statistic = value; }
201 inline void SetStatistic(CloudWatchAlarmTemplateStatistic&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); }
205
207
208 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
209 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
210 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
211 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
213 inline CloudWatchAlarmTemplateSummary& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
214 inline CloudWatchAlarmTemplateSummary& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
215 inline CloudWatchAlarmTemplateSummary& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
216 inline CloudWatchAlarmTemplateSummary& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
217 inline CloudWatchAlarmTemplateSummary& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
218 inline CloudWatchAlarmTemplateSummary& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
219 inline CloudWatchAlarmTemplateSummary& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
220 inline CloudWatchAlarmTemplateSummary& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
222
224
225 inline const CloudWatchAlarmTemplateTargetResourceType& GetTargetResourceType() const{ return m_targetResourceType; }
226 inline bool TargetResourceTypeHasBeenSet() const { return m_targetResourceTypeHasBeenSet; }
227 inline void SetTargetResourceType(const CloudWatchAlarmTemplateTargetResourceType& value) { m_targetResourceTypeHasBeenSet = true; m_targetResourceType = value; }
228 inline void SetTargetResourceType(CloudWatchAlarmTemplateTargetResourceType&& value) { m_targetResourceTypeHasBeenSet = true; m_targetResourceType = std::move(value); }
232
234
237 inline double GetThreshold() const{ return m_threshold; }
238 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
239 inline void SetThreshold(double value) { m_thresholdHasBeenSet = true; m_threshold = value; }
240 inline CloudWatchAlarmTemplateSummary& WithThreshold(double value) { SetThreshold(value); return *this;}
242
244
245 inline const CloudWatchAlarmTemplateTreatMissingData& GetTreatMissingData() const{ return m_treatMissingData; }
246 inline bool TreatMissingDataHasBeenSet() const { return m_treatMissingDataHasBeenSet; }
247 inline void SetTreatMissingData(const CloudWatchAlarmTemplateTreatMissingData& value) { m_treatMissingDataHasBeenSet = true; m_treatMissingData = value; }
248 inline void SetTreatMissingData(CloudWatchAlarmTemplateTreatMissingData&& value) { m_treatMissingDataHasBeenSet = true; m_treatMissingData = std::move(value); }
252 private:
253
254 Aws::String m_arn;
255 bool m_arnHasBeenSet = false;
256
258 bool m_comparisonOperatorHasBeenSet = false;
259
260 Aws::Utils::DateTime m_createdAt;
261 bool m_createdAtHasBeenSet = false;
262
263 int m_datapointsToAlarm;
264 bool m_datapointsToAlarmHasBeenSet = false;
265
266 Aws::String m_description;
267 bool m_descriptionHasBeenSet = false;
268
269 int m_evaluationPeriods;
270 bool m_evaluationPeriodsHasBeenSet = false;
271
272 Aws::String m_groupId;
273 bool m_groupIdHasBeenSet = false;
274
275 Aws::String m_id;
276 bool m_idHasBeenSet = false;
277
278 Aws::String m_metricName;
279 bool m_metricNameHasBeenSet = false;
280
281 Aws::Utils::DateTime m_modifiedAt;
282 bool m_modifiedAtHasBeenSet = false;
283
284 Aws::String m_name;
285 bool m_nameHasBeenSet = false;
286
287 int m_period;
288 bool m_periodHasBeenSet = false;
289
291 bool m_statisticHasBeenSet = false;
292
294 bool m_tagsHasBeenSet = false;
295
297 bool m_targetResourceTypeHasBeenSet = false;
298
299 double m_threshold;
300 bool m_thresholdHasBeenSet = false;
301
303 bool m_treatMissingDataHasBeenSet = false;
304 };
305
306} // namespace Model
307} // namespace MediaLive
308} // namespace Aws
CloudWatchAlarmTemplateSummary & WithName(const char *value)
CloudWatchAlarmTemplateSummary & WithMetricName(const Aws::String &value)
CloudWatchAlarmTemplateSummary & WithCreatedAt(Aws::Utils::DateTime &&value)
CloudWatchAlarmTemplateSummary & WithName(const Aws::String &value)
CloudWatchAlarmTemplateSummary & AddTags(const char *key, Aws::String &&value)
CloudWatchAlarmTemplateSummary & WithName(Aws::String &&value)
AWS_MEDIALIVE_API CloudWatchAlarmTemplateSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatistic(CloudWatchAlarmTemplateStatistic &&value)
CloudWatchAlarmTemplateSummary & AddTags(Aws::String &&key, const Aws::String &value)
CloudWatchAlarmTemplateSummary & WithGroupId(const Aws::String &value)
const CloudWatchAlarmTemplateComparisonOperator & GetComparisonOperator() const
CloudWatchAlarmTemplateSummary & WithDescription(const Aws::String &value)
void SetComparisonOperator(const CloudWatchAlarmTemplateComparisonOperator &value)
const CloudWatchAlarmTemplateTreatMissingData & GetTreatMissingData() const
CloudWatchAlarmTemplateSummary & WithComparisonOperator(const CloudWatchAlarmTemplateComparisonOperator &value)
void SetComparisonOperator(CloudWatchAlarmTemplateComparisonOperator &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CloudWatchAlarmTemplateSummary & WithMetricName(Aws::String &&value)
CloudWatchAlarmTemplateSummary & AddTags(const Aws::String &key, const Aws::String &value)
CloudWatchAlarmTemplateSummary & WithCreatedAt(const Aws::Utils::DateTime &value)
CloudWatchAlarmTemplateSummary & AddTags(Aws::String &&key, Aws::String &&value)
CloudWatchAlarmTemplateSummary & WithTreatMissingData(CloudWatchAlarmTemplateTreatMissingData &&value)
CloudWatchAlarmTemplateSummary & WithId(const Aws::String &value)
void SetTargetResourceType(const CloudWatchAlarmTemplateTargetResourceType &value)
CloudWatchAlarmTemplateSummary & WithArn(const Aws::String &value)
CloudWatchAlarmTemplateSummary & WithDatapointsToAlarm(int value)
const CloudWatchAlarmTemplateTargetResourceType & GetTargetResourceType() const
CloudWatchAlarmTemplateSummary & WithTreatMissingData(const CloudWatchAlarmTemplateTreatMissingData &value)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
CloudWatchAlarmTemplateSummary & AddTags(const Aws::String &key, Aws::String &&value)
CloudWatchAlarmTemplateSummary & WithMetricName(const char *value)
CloudWatchAlarmTemplateSummary & AddTags(Aws::String &&key, const char *value)
CloudWatchAlarmTemplateSummary & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CloudWatchAlarmTemplateSummary & WithGroupId(Aws::String &&value)
CloudWatchAlarmTemplateSummary & WithDescription(Aws::String &&value)
CloudWatchAlarmTemplateSummary & WithModifiedAt(const Aws::Utils::DateTime &value)
void SetTreatMissingData(const CloudWatchAlarmTemplateTreatMissingData &value)
CloudWatchAlarmTemplateSummary & WithDescription(const char *value)
AWS_MEDIALIVE_API CloudWatchAlarmTemplateSummary(Aws::Utils::Json::JsonView jsonValue)
void SetTargetResourceType(CloudWatchAlarmTemplateTargetResourceType &&value)
CloudWatchAlarmTemplateSummary & WithStatistic(CloudWatchAlarmTemplateStatistic &&value)
CloudWatchAlarmTemplateSummary & WithEvaluationPeriods(int value)
CloudWatchAlarmTemplateSummary & WithComparisonOperator(CloudWatchAlarmTemplateComparisonOperator &&value)
void SetTreatMissingData(CloudWatchAlarmTemplateTreatMissingData &&value)
CloudWatchAlarmTemplateSummary & AddTags(const char *key, const char *value)
CloudWatchAlarmTemplateSummary & WithModifiedAt(Aws::Utils::DateTime &&value)
CloudWatchAlarmTemplateSummary & WithId(Aws::String &&value)
CloudWatchAlarmTemplateSummary & WithGroupId(const char *value)
const CloudWatchAlarmTemplateStatistic & GetStatistic() const
CloudWatchAlarmTemplateSummary & WithTargetResourceType(const CloudWatchAlarmTemplateTargetResourceType &value)
CloudWatchAlarmTemplateSummary & WithArn(const char *value)
CloudWatchAlarmTemplateSummary & WithId(const char *value)
CloudWatchAlarmTemplateSummary & WithTargetResourceType(CloudWatchAlarmTemplateTargetResourceType &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CloudWatchAlarmTemplateSummary & WithStatistic(const CloudWatchAlarmTemplateStatistic &value)
CloudWatchAlarmTemplateSummary & WithThreshold(double value)
void SetStatistic(const CloudWatchAlarmTemplateStatistic &value)
CloudWatchAlarmTemplateSummary & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CloudWatchAlarmTemplateSummary & WithArn(Aws::String &&value)
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