AWS SDK for C++

AWS SDK for C++ Version 1.11.609

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() = default;
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 template<typename ArnT = Aws::String>
54 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
55 template<typename ArnT = Aws::String>
56 CloudWatchAlarmTemplateSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
58
60
61 inline CloudWatchAlarmTemplateComparisonOperator GetComparisonOperator() const { return m_comparisonOperator; }
62 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
63 inline void SetComparisonOperator(CloudWatchAlarmTemplateComparisonOperator value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
66
68
69 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
70 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
71 template<typename CreatedAtT = Aws::Utils::DateTime>
72 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
73 template<typename CreatedAtT = Aws::Utils::DateTime>
74 CloudWatchAlarmTemplateSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
76
78
82 inline int GetDatapointsToAlarm() const { return m_datapointsToAlarm; }
83 inline bool DatapointsToAlarmHasBeenSet() const { return m_datapointsToAlarmHasBeenSet; }
84 inline void SetDatapointsToAlarm(int value) { m_datapointsToAlarmHasBeenSet = true; m_datapointsToAlarm = value; }
87
89
92 inline const Aws::String& GetDescription() const { return m_description; }
93 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
94 template<typename DescriptionT = Aws::String>
95 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
96 template<typename DescriptionT = Aws::String>
97 CloudWatchAlarmTemplateSummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
99
101
104 inline int GetEvaluationPeriods() const { return m_evaluationPeriods; }
105 inline bool EvaluationPeriodsHasBeenSet() const { return m_evaluationPeriodsHasBeenSet; }
106 inline void SetEvaluationPeriods(int value) { m_evaluationPeriodsHasBeenSet = true; m_evaluationPeriods = value; }
109
111
115 inline const Aws::String& GetGroupId() const { return m_groupId; }
116 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
117 template<typename GroupIdT = Aws::String>
118 void SetGroupId(GroupIdT&& value) { m_groupIdHasBeenSet = true; m_groupId = std::forward<GroupIdT>(value); }
119 template<typename GroupIdT = Aws::String>
120 CloudWatchAlarmTemplateSummary& WithGroupId(GroupIdT&& value) { SetGroupId(std::forward<GroupIdT>(value)); return *this;}
122
124
128 inline const Aws::String& GetId() const { return m_id; }
129 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
130 template<typename IdT = Aws::String>
131 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
132 template<typename IdT = Aws::String>
133 CloudWatchAlarmTemplateSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
135
137
141 inline const Aws::String& GetMetricName() const { return m_metricName; }
142 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
143 template<typename MetricNameT = Aws::String>
144 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
145 template<typename MetricNameT = Aws::String>
146 CloudWatchAlarmTemplateSummary& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
148
150
151 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
152 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
153 template<typename ModifiedAtT = Aws::Utils::DateTime>
154 void SetModifiedAt(ModifiedAtT&& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = std::forward<ModifiedAtT>(value); }
155 template<typename ModifiedAtT = Aws::Utils::DateTime>
156 CloudWatchAlarmTemplateSummary& WithModifiedAt(ModifiedAtT&& value) { SetModifiedAt(std::forward<ModifiedAtT>(value)); return *this;}
158
160
164 inline const Aws::String& GetName() const { return m_name; }
165 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
166 template<typename NameT = Aws::String>
167 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
168 template<typename NameT = Aws::String>
169 CloudWatchAlarmTemplateSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
171
173
176 inline int GetPeriod() const { return m_period; }
177 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
178 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
179 inline CloudWatchAlarmTemplateSummary& WithPeriod(int value) { SetPeriod(value); return *this;}
181
183
184 inline CloudWatchAlarmTemplateStatistic GetStatistic() const { return m_statistic; }
185 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
186 inline void SetStatistic(CloudWatchAlarmTemplateStatistic value) { m_statisticHasBeenSet = true; m_statistic = value; }
189
191
192 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
193 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
194 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
195 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
196 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
197 CloudWatchAlarmTemplateSummary& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
198 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
199 CloudWatchAlarmTemplateSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
200 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
201 }
203
205
206 inline CloudWatchAlarmTemplateTargetResourceType GetTargetResourceType() const { return m_targetResourceType; }
207 inline bool TargetResourceTypeHasBeenSet() const { return m_targetResourceTypeHasBeenSet; }
208 inline void SetTargetResourceType(CloudWatchAlarmTemplateTargetResourceType value) { m_targetResourceTypeHasBeenSet = true; m_targetResourceType = value; }
211
213
216 inline double GetThreshold() const { return m_threshold; }
217 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
218 inline void SetThreshold(double value) { m_thresholdHasBeenSet = true; m_threshold = value; }
219 inline CloudWatchAlarmTemplateSummary& WithThreshold(double value) { SetThreshold(value); return *this;}
221
223
224 inline CloudWatchAlarmTemplateTreatMissingData GetTreatMissingData() const { return m_treatMissingData; }
225 inline bool TreatMissingDataHasBeenSet() const { return m_treatMissingDataHasBeenSet; }
226 inline void SetTreatMissingData(CloudWatchAlarmTemplateTreatMissingData value) { m_treatMissingDataHasBeenSet = true; m_treatMissingData = value; }
229 private:
230
231 Aws::String m_arn;
232 bool m_arnHasBeenSet = false;
233
235 bool m_comparisonOperatorHasBeenSet = false;
236
237 Aws::Utils::DateTime m_createdAt{};
238 bool m_createdAtHasBeenSet = false;
239
240 int m_datapointsToAlarm{0};
241 bool m_datapointsToAlarmHasBeenSet = false;
242
243 Aws::String m_description;
244 bool m_descriptionHasBeenSet = false;
245
246 int m_evaluationPeriods{0};
247 bool m_evaluationPeriodsHasBeenSet = false;
248
249 Aws::String m_groupId;
250 bool m_groupIdHasBeenSet = false;
251
252 Aws::String m_id;
253 bool m_idHasBeenSet = false;
254
255 Aws::String m_metricName;
256 bool m_metricNameHasBeenSet = false;
257
258 Aws::Utils::DateTime m_modifiedAt{};
259 bool m_modifiedAtHasBeenSet = false;
260
261 Aws::String m_name;
262 bool m_nameHasBeenSet = false;
263
264 int m_period{0};
265 bool m_periodHasBeenSet = false;
266
268 bool m_statisticHasBeenSet = false;
269
271 bool m_tagsHasBeenSet = false;
272
274 bool m_targetResourceTypeHasBeenSet = false;
275
276 double m_threshold{0.0};
277 bool m_thresholdHasBeenSet = false;
278
280 bool m_treatMissingDataHasBeenSet = false;
281 };
282
283} // namespace Model
284} // namespace MediaLive
285} // 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