AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
UpdateCloudWatchAlarmTemplateResult.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{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace MediaLive
30{
31namespace Model
32{
40 {
41 public:
42 AWS_MEDIALIVE_API UpdateCloudWatchAlarmTemplateResult() = default;
45
46
48
51 inline const Aws::String& GetArn() const { return m_arn; }
52 template<typename ArnT = Aws::String>
53 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
54 template<typename ArnT = Aws::String>
55 UpdateCloudWatchAlarmTemplateResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
57
59
60 inline CloudWatchAlarmTemplateComparisonOperator GetComparisonOperator() const { return m_comparisonOperator; }
61 inline void SetComparisonOperator(CloudWatchAlarmTemplateComparisonOperator value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
64
66
67 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
68 template<typename CreatedAtT = Aws::Utils::DateTime>
69 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
70 template<typename CreatedAtT = Aws::Utils::DateTime>
71 UpdateCloudWatchAlarmTemplateResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
73
75
79 inline int GetDatapointsToAlarm() const { return m_datapointsToAlarm; }
80 inline void SetDatapointsToAlarm(int value) { m_datapointsToAlarmHasBeenSet = true; m_datapointsToAlarm = value; }
83
85
88 inline const Aws::String& GetDescription() const { return m_description; }
89 template<typename DescriptionT = Aws::String>
90 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
91 template<typename DescriptionT = Aws::String>
92 UpdateCloudWatchAlarmTemplateResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
94
96
99 inline int GetEvaluationPeriods() const { return m_evaluationPeriods; }
100 inline void SetEvaluationPeriods(int value) { m_evaluationPeriodsHasBeenSet = true; m_evaluationPeriods = value; }
103
105
109 inline const Aws::String& GetGroupId() const { return m_groupId; }
110 template<typename GroupIdT = Aws::String>
111 void SetGroupId(GroupIdT&& value) { m_groupIdHasBeenSet = true; m_groupId = std::forward<GroupIdT>(value); }
112 template<typename GroupIdT = Aws::String>
113 UpdateCloudWatchAlarmTemplateResult& WithGroupId(GroupIdT&& value) { SetGroupId(std::forward<GroupIdT>(value)); return *this;}
115
117
121 inline const Aws::String& GetId() const { return m_id; }
122 template<typename IdT = Aws::String>
123 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
124 template<typename IdT = Aws::String>
125 UpdateCloudWatchAlarmTemplateResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
127
129
133 inline const Aws::String& GetMetricName() const { return m_metricName; }
134 template<typename MetricNameT = Aws::String>
135 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
136 template<typename MetricNameT = Aws::String>
137 UpdateCloudWatchAlarmTemplateResult& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
139
141
142 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
143 template<typename ModifiedAtT = Aws::Utils::DateTime>
144 void SetModifiedAt(ModifiedAtT&& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = std::forward<ModifiedAtT>(value); }
145 template<typename ModifiedAtT = Aws::Utils::DateTime>
146 UpdateCloudWatchAlarmTemplateResult& WithModifiedAt(ModifiedAtT&& value) { SetModifiedAt(std::forward<ModifiedAtT>(value)); return *this;}
148
150
154 inline const Aws::String& GetName() const { return m_name; }
155 template<typename NameT = Aws::String>
156 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
157 template<typename NameT = Aws::String>
158 UpdateCloudWatchAlarmTemplateResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
160
162
165 inline int GetPeriod() const { return m_period; }
166 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
167 inline UpdateCloudWatchAlarmTemplateResult& WithPeriod(int value) { SetPeriod(value); return *this;}
169
171
172 inline CloudWatchAlarmTemplateStatistic GetStatistic() const { return m_statistic; }
173 inline void SetStatistic(CloudWatchAlarmTemplateStatistic value) { m_statisticHasBeenSet = true; m_statistic = value; }
176
178
179 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
180 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
181 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
182 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
183 UpdateCloudWatchAlarmTemplateResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
184 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
185 UpdateCloudWatchAlarmTemplateResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
186 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
187 }
189
191
192 inline CloudWatchAlarmTemplateTargetResourceType GetTargetResourceType() const { return m_targetResourceType; }
193 inline void SetTargetResourceType(CloudWatchAlarmTemplateTargetResourceType value) { m_targetResourceTypeHasBeenSet = true; m_targetResourceType = value; }
196
198
201 inline double GetThreshold() const { return m_threshold; }
202 inline void SetThreshold(double value) { m_thresholdHasBeenSet = true; m_threshold = value; }
203 inline UpdateCloudWatchAlarmTemplateResult& WithThreshold(double value) { SetThreshold(value); return *this;}
205
207
208 inline CloudWatchAlarmTemplateTreatMissingData GetTreatMissingData() const { return m_treatMissingData; }
209 inline void SetTreatMissingData(CloudWatchAlarmTemplateTreatMissingData value) { m_treatMissingDataHasBeenSet = true; m_treatMissingData = value; }
212
214
215 inline const Aws::String& GetRequestId() const { return m_requestId; }
216 template<typename RequestIdT = Aws::String>
217 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
218 template<typename RequestIdT = Aws::String>
219 UpdateCloudWatchAlarmTemplateResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
221 private:
222
223 Aws::String m_arn;
224 bool m_arnHasBeenSet = false;
225
227 bool m_comparisonOperatorHasBeenSet = false;
228
229 Aws::Utils::DateTime m_createdAt{};
230 bool m_createdAtHasBeenSet = false;
231
232 int m_datapointsToAlarm{0};
233 bool m_datapointsToAlarmHasBeenSet = false;
234
235 Aws::String m_description;
236 bool m_descriptionHasBeenSet = false;
237
238 int m_evaluationPeriods{0};
239 bool m_evaluationPeriodsHasBeenSet = false;
240
241 Aws::String m_groupId;
242 bool m_groupIdHasBeenSet = false;
243
244 Aws::String m_id;
245 bool m_idHasBeenSet = false;
246
247 Aws::String m_metricName;
248 bool m_metricNameHasBeenSet = false;
249
250 Aws::Utils::DateTime m_modifiedAt{};
251 bool m_modifiedAtHasBeenSet = false;
252
253 Aws::String m_name;
254 bool m_nameHasBeenSet = false;
255
256 int m_period{0};
257 bool m_periodHasBeenSet = false;
258
260 bool m_statisticHasBeenSet = false;
261
263 bool m_tagsHasBeenSet = false;
264
266 bool m_targetResourceTypeHasBeenSet = false;
267
268 double m_threshold{0.0};
269 bool m_thresholdHasBeenSet = false;
270
272 bool m_treatMissingDataHasBeenSet = false;
273
274 Aws::String m_requestId;
275 bool m_requestIdHasBeenSet = false;
276 };
277
278} // namespace Model
279} // namespace MediaLive
280} // namespace Aws
CloudWatchAlarmTemplateComparisonOperator GetComparisonOperator() const
UpdateCloudWatchAlarmTemplateResult & WithTargetResourceType(CloudWatchAlarmTemplateTargetResourceType value)
AWS_MEDIALIVE_API UpdateCloudWatchAlarmTemplateResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateCloudWatchAlarmTemplateResult & WithCreatedAt(CreatedAtT &&value)
void SetTargetResourceType(CloudWatchAlarmTemplateTargetResourceType value)
AWS_MEDIALIVE_API UpdateCloudWatchAlarmTemplateResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CloudWatchAlarmTemplateTargetResourceType GetTargetResourceType() const
UpdateCloudWatchAlarmTemplateResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
UpdateCloudWatchAlarmTemplateResult & WithDatapointsToAlarm(int value)
UpdateCloudWatchAlarmTemplateResult & WithTreatMissingData(CloudWatchAlarmTemplateTreatMissingData value)
UpdateCloudWatchAlarmTemplateResult & WithMetricName(MetricNameT &&value)
UpdateCloudWatchAlarmTemplateResult & WithStatistic(CloudWatchAlarmTemplateStatistic value)
void SetComparisonOperator(CloudWatchAlarmTemplateComparisonOperator value)
UpdateCloudWatchAlarmTemplateResult & WithComparisonOperator(CloudWatchAlarmTemplateComparisonOperator value)
UpdateCloudWatchAlarmTemplateResult & WithModifiedAt(ModifiedAtT &&value)
UpdateCloudWatchAlarmTemplateResult & WithGroupId(GroupIdT &&value)
UpdateCloudWatchAlarmTemplateResult & WithDescription(DescriptionT &&value)
UpdateCloudWatchAlarmTemplateResult & WithRequestId(RequestIdT &&value)
void SetTreatMissingData(CloudWatchAlarmTemplateTreatMissingData value)
UpdateCloudWatchAlarmTemplateResult & WithThreshold(double 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