AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetCloudWatchAlarmTemplateResult.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:
45
46
48
51 inline const Aws::String& GetArn() const{ return m_arn; }
52 inline void SetArn(const Aws::String& value) { m_arn = value; }
53 inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
54 inline void SetArn(const char* value) { m_arn.assign(value); }
55 inline GetCloudWatchAlarmTemplateResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
56 inline GetCloudWatchAlarmTemplateResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
57 inline GetCloudWatchAlarmTemplateResult& WithArn(const char* value) { SetArn(value); return *this;}
59
61
62 inline const CloudWatchAlarmTemplateComparisonOperator& GetComparisonOperator() const{ return m_comparisonOperator; }
63 inline void SetComparisonOperator(const CloudWatchAlarmTemplateComparisonOperator& value) { m_comparisonOperator = value; }
64 inline void SetComparisonOperator(CloudWatchAlarmTemplateComparisonOperator&& value) { m_comparisonOperator = std::move(value); }
68
70
71 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
72 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; }
73 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); }
75 inline GetCloudWatchAlarmTemplateResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
77
79
83 inline int GetDatapointsToAlarm() const{ return m_datapointsToAlarm; }
84 inline void SetDatapointsToAlarm(int value) { m_datapointsToAlarm = value; }
87
89
92 inline const Aws::String& GetDescription() const{ return m_description; }
93 inline void SetDescription(const Aws::String& value) { m_description = value; }
94 inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
95 inline void SetDescription(const char* value) { m_description.assign(value); }
96 inline GetCloudWatchAlarmTemplateResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
97 inline GetCloudWatchAlarmTemplateResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
98 inline GetCloudWatchAlarmTemplateResult& WithDescription(const char* value) { SetDescription(value); return *this;}
100
102
105 inline int GetEvaluationPeriods() const{ return m_evaluationPeriods; }
106 inline void SetEvaluationPeriods(int value) { m_evaluationPeriods = value; }
109
111
115 inline const Aws::String& GetGroupId() const{ return m_groupId; }
116 inline void SetGroupId(const Aws::String& value) { m_groupId = value; }
117 inline void SetGroupId(Aws::String&& value) { m_groupId = std::move(value); }
118 inline void SetGroupId(const char* value) { m_groupId.assign(value); }
119 inline GetCloudWatchAlarmTemplateResult& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
120 inline GetCloudWatchAlarmTemplateResult& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
121 inline GetCloudWatchAlarmTemplateResult& WithGroupId(const char* value) { SetGroupId(value); return *this;}
123
125
129 inline const Aws::String& GetId() const{ return m_id; }
130 inline void SetId(const Aws::String& value) { m_id = value; }
131 inline void SetId(Aws::String&& value) { m_id = std::move(value); }
132 inline void SetId(const char* value) { m_id.assign(value); }
133 inline GetCloudWatchAlarmTemplateResult& WithId(const Aws::String& value) { SetId(value); return *this;}
134 inline GetCloudWatchAlarmTemplateResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
135 inline GetCloudWatchAlarmTemplateResult& WithId(const char* value) { SetId(value); return *this;}
137
139
143 inline const Aws::String& GetMetricName() const{ return m_metricName; }
144 inline void SetMetricName(const Aws::String& value) { m_metricName = value; }
145 inline void SetMetricName(Aws::String&& value) { m_metricName = std::move(value); }
146 inline void SetMetricName(const char* value) { m_metricName.assign(value); }
147 inline GetCloudWatchAlarmTemplateResult& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
148 inline GetCloudWatchAlarmTemplateResult& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
149 inline GetCloudWatchAlarmTemplateResult& WithMetricName(const char* value) { SetMetricName(value); return *this;}
151
153
154 inline const Aws::Utils::DateTime& GetModifiedAt() const{ return m_modifiedAt; }
155 inline void SetModifiedAt(const Aws::Utils::DateTime& value) { m_modifiedAt = value; }
156 inline void SetModifiedAt(Aws::Utils::DateTime&& value) { m_modifiedAt = std::move(value); }
158 inline GetCloudWatchAlarmTemplateResult& WithModifiedAt(Aws::Utils::DateTime&& value) { SetModifiedAt(std::move(value)); return *this;}
160
162
166 inline const Aws::String& GetName() const{ return m_name; }
167 inline void SetName(const Aws::String& value) { m_name = value; }
168 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
169 inline void SetName(const char* value) { m_name.assign(value); }
170 inline GetCloudWatchAlarmTemplateResult& WithName(const Aws::String& value) { SetName(value); return *this;}
171 inline GetCloudWatchAlarmTemplateResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
172 inline GetCloudWatchAlarmTemplateResult& WithName(const char* value) { SetName(value); return *this;}
174
176
179 inline int GetPeriod() const{ return m_period; }
180 inline void SetPeriod(int value) { m_period = value; }
181 inline GetCloudWatchAlarmTemplateResult& WithPeriod(int value) { SetPeriod(value); return *this;}
183
185
186 inline const CloudWatchAlarmTemplateStatistic& GetStatistic() const{ return m_statistic; }
187 inline void SetStatistic(const CloudWatchAlarmTemplateStatistic& value) { m_statistic = value; }
188 inline void SetStatistic(CloudWatchAlarmTemplateStatistic&& value) { m_statistic = std::move(value); }
192
194
195 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
196 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
197 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
199 inline GetCloudWatchAlarmTemplateResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
200 inline GetCloudWatchAlarmTemplateResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
201 inline GetCloudWatchAlarmTemplateResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
202 inline GetCloudWatchAlarmTemplateResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
203 inline GetCloudWatchAlarmTemplateResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
204 inline GetCloudWatchAlarmTemplateResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
205 inline GetCloudWatchAlarmTemplateResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
206 inline GetCloudWatchAlarmTemplateResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
208
210
211 inline const CloudWatchAlarmTemplateTargetResourceType& GetTargetResourceType() const{ return m_targetResourceType; }
212 inline void SetTargetResourceType(const CloudWatchAlarmTemplateTargetResourceType& value) { m_targetResourceType = value; }
213 inline void SetTargetResourceType(CloudWatchAlarmTemplateTargetResourceType&& value) { m_targetResourceType = std::move(value); }
217
219
222 inline double GetThreshold() const{ return m_threshold; }
223 inline void SetThreshold(double value) { m_threshold = value; }
224 inline GetCloudWatchAlarmTemplateResult& WithThreshold(double value) { SetThreshold(value); return *this;}
226
228
229 inline const CloudWatchAlarmTemplateTreatMissingData& GetTreatMissingData() const{ return m_treatMissingData; }
230 inline void SetTreatMissingData(const CloudWatchAlarmTemplateTreatMissingData& value) { m_treatMissingData = value; }
231 inline void SetTreatMissingData(CloudWatchAlarmTemplateTreatMissingData&& value) { m_treatMissingData = std::move(value); }
235
237
238 inline const Aws::String& GetRequestId() const{ return m_requestId; }
239 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
240 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
241 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
242 inline GetCloudWatchAlarmTemplateResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
243 inline GetCloudWatchAlarmTemplateResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
244 inline GetCloudWatchAlarmTemplateResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
246 private:
247
248 Aws::String m_arn;
249
251
252 Aws::Utils::DateTime m_createdAt;
253
254 int m_datapointsToAlarm;
255
256 Aws::String m_description;
257
258 int m_evaluationPeriods;
259
260 Aws::String m_groupId;
261
262 Aws::String m_id;
263
264 Aws::String m_metricName;
265
266 Aws::Utils::DateTime m_modifiedAt;
267
268 Aws::String m_name;
269
270 int m_period;
271
273
275
277
278 double m_threshold;
279
281
282 Aws::String m_requestId;
283 };
284
285} // namespace Model
286} // namespace MediaLive
287} // namespace Aws
GetCloudWatchAlarmTemplateResult & WithDatapointsToAlarm(int value)
GetCloudWatchAlarmTemplateResult & WithArn(const char *value)
void SetComparisonOperator(CloudWatchAlarmTemplateComparisonOperator &&value)
GetCloudWatchAlarmTemplateResult & WithId(const Aws::String &value)
GetCloudWatchAlarmTemplateResult & WithTargetResourceType(CloudWatchAlarmTemplateTargetResourceType &&value)
GetCloudWatchAlarmTemplateResult & WithComparisonOperator(const CloudWatchAlarmTemplateComparisonOperator &value)
void SetComparisonOperator(const CloudWatchAlarmTemplateComparisonOperator &value)
GetCloudWatchAlarmTemplateResult & WithRequestId(const char *value)
GetCloudWatchAlarmTemplateResult & WithName(const Aws::String &value)
const CloudWatchAlarmTemplateTargetResourceType & GetTargetResourceType() const
GetCloudWatchAlarmTemplateResult & WithRequestId(Aws::String &&value)
GetCloudWatchAlarmTemplateResult & WithId(Aws::String &&value)
GetCloudWatchAlarmTemplateResult & WithStatistic(CloudWatchAlarmTemplateStatistic &&value)
GetCloudWatchAlarmTemplateResult & WithMetricName(Aws::String &&value)
GetCloudWatchAlarmTemplateResult & AddTags(Aws::String &&key, const char *value)
GetCloudWatchAlarmTemplateResult & WithMetricName(const Aws::String &value)
void SetTargetResourceType(const CloudWatchAlarmTemplateTargetResourceType &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTargetResourceType(CloudWatchAlarmTemplateTargetResourceType &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetStatistic(const CloudWatchAlarmTemplateStatistic &value)
void SetTreatMissingData(const CloudWatchAlarmTemplateTreatMissingData &value)
GetCloudWatchAlarmTemplateResult & WithName(const char *value)
GetCloudWatchAlarmTemplateResult & WithModifiedAt(Aws::Utils::DateTime &&value)
GetCloudWatchAlarmTemplateResult & AddTags(Aws::String &&key, Aws::String &&value)
GetCloudWatchAlarmTemplateResult & WithEvaluationPeriods(int value)
const CloudWatchAlarmTemplateStatistic & GetStatistic() const
GetCloudWatchAlarmTemplateResult & WithRequestId(const Aws::String &value)
void SetTreatMissingData(CloudWatchAlarmTemplateTreatMissingData &&value)
GetCloudWatchAlarmTemplateResult & WithGroupId(const char *value)
GetCloudWatchAlarmTemplateResult & AddTags(const char *key, const char *value)
GetCloudWatchAlarmTemplateResult & WithName(Aws::String &&value)
GetCloudWatchAlarmTemplateResult & WithComparisonOperator(CloudWatchAlarmTemplateComparisonOperator &&value)
GetCloudWatchAlarmTemplateResult & AddTags(const char *key, Aws::String &&value)
GetCloudWatchAlarmTemplateResult & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
const CloudWatchAlarmTemplateComparisonOperator & GetComparisonOperator() const
GetCloudWatchAlarmTemplateResult & WithCreatedAt(Aws::Utils::DateTime &&value)
GetCloudWatchAlarmTemplateResult & AddTags(const Aws::String &key, const Aws::String &value)
const CloudWatchAlarmTemplateTreatMissingData & GetTreatMissingData() const
GetCloudWatchAlarmTemplateResult & WithTreatMissingData(CloudWatchAlarmTemplateTreatMissingData &&value)
GetCloudWatchAlarmTemplateResult & WithTreatMissingData(const CloudWatchAlarmTemplateTreatMissingData &value)
GetCloudWatchAlarmTemplateResult & WithDescription(Aws::String &&value)
GetCloudWatchAlarmTemplateResult & WithMetricName(const char *value)
GetCloudWatchAlarmTemplateResult & WithGroupId(const Aws::String &value)
GetCloudWatchAlarmTemplateResult & WithArn(const Aws::String &value)
GetCloudWatchAlarmTemplateResult & WithStatistic(const CloudWatchAlarmTemplateStatistic &value)
GetCloudWatchAlarmTemplateResult & WithId(const char *value)
GetCloudWatchAlarmTemplateResult & WithDescription(const char *value)
GetCloudWatchAlarmTemplateResult & WithCreatedAt(const Aws::Utils::DateTime &value)
GetCloudWatchAlarmTemplateResult & AddTags(Aws::String &&key, const Aws::String &value)
GetCloudWatchAlarmTemplateResult & WithDescription(const Aws::String &value)
GetCloudWatchAlarmTemplateResult & AddTags(const Aws::String &key, Aws::String &&value)
GetCloudWatchAlarmTemplateResult & WithTargetResourceType(const CloudWatchAlarmTemplateTargetResourceType &value)
GetCloudWatchAlarmTemplateResult & WithModifiedAt(const Aws::Utils::DateTime &value)
GetCloudWatchAlarmTemplateResult & WithArn(Aws::String &&value)
AWS_MEDIALIVE_API GetCloudWatchAlarmTemplateResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetCloudWatchAlarmTemplateResult & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_MEDIALIVE_API GetCloudWatchAlarmTemplateResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
GetCloudWatchAlarmTemplateResult & WithThreshold(double value)
GetCloudWatchAlarmTemplateResult & WithGroupId(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