AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateCloudWatchAlarmTemplateRequest.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/medialive/MediaLiveRequest.h>
9#include <aws/medialive/model/CloudWatchAlarmTemplateComparisonOperator.h>
10#include <aws/core/utils/memory/stl/AWSString.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 MediaLive
20{
21namespace Model
22{
23
31 {
32 public:
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "CreateCloudWatchAlarmTemplate"; }
40
41 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
42
43
45
46 inline const CloudWatchAlarmTemplateComparisonOperator& GetComparisonOperator() const{ return m_comparisonOperator; }
47 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
48 inline void SetComparisonOperator(const CloudWatchAlarmTemplateComparisonOperator& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
49 inline void SetComparisonOperator(CloudWatchAlarmTemplateComparisonOperator&& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = std::move(value); }
53
55
59 inline int GetDatapointsToAlarm() const{ return m_datapointsToAlarm; }
60 inline bool DatapointsToAlarmHasBeenSet() const { return m_datapointsToAlarmHasBeenSet; }
61 inline void SetDatapointsToAlarm(int value) { m_datapointsToAlarmHasBeenSet = true; m_datapointsToAlarm = value; }
64
66
69 inline const Aws::String& GetDescription() const{ return m_description; }
70 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
71 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
72 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
73 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
75 inline CreateCloudWatchAlarmTemplateRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
76 inline CreateCloudWatchAlarmTemplateRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
78
80
83 inline int GetEvaluationPeriods() const{ return m_evaluationPeriods; }
84 inline bool EvaluationPeriodsHasBeenSet() const { return m_evaluationPeriodsHasBeenSet; }
85 inline void SetEvaluationPeriods(int value) { m_evaluationPeriodsHasBeenSet = true; m_evaluationPeriods = value; }
88
90
94 inline const Aws::String& GetGroupIdentifier() const{ return m_groupIdentifier; }
95 inline bool GroupIdentifierHasBeenSet() const { return m_groupIdentifierHasBeenSet; }
96 inline void SetGroupIdentifier(const Aws::String& value) { m_groupIdentifierHasBeenSet = true; m_groupIdentifier = value; }
97 inline void SetGroupIdentifier(Aws::String&& value) { m_groupIdentifierHasBeenSet = true; m_groupIdentifier = std::move(value); }
98 inline void SetGroupIdentifier(const char* value) { m_groupIdentifierHasBeenSet = true; m_groupIdentifier.assign(value); }
101 inline CreateCloudWatchAlarmTemplateRequest& WithGroupIdentifier(const char* value) { SetGroupIdentifier(value); return *this;}
103
105
109 inline const Aws::String& GetMetricName() const{ return m_metricName; }
110 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
111 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
112 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
113 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
115 inline CreateCloudWatchAlarmTemplateRequest& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
116 inline CreateCloudWatchAlarmTemplateRequest& WithMetricName(const char* value) { SetMetricName(value); return *this;}
118
120
124 inline const Aws::String& GetName() const{ return m_name; }
125 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
126 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
127 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
128 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
129 inline CreateCloudWatchAlarmTemplateRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
130 inline CreateCloudWatchAlarmTemplateRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
131 inline CreateCloudWatchAlarmTemplateRequest& WithName(const char* value) { SetName(value); return *this;}
133
135
138 inline int GetPeriod() const{ return m_period; }
139 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
140 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
141 inline CreateCloudWatchAlarmTemplateRequest& WithPeriod(int value) { SetPeriod(value); return *this;}
143
145
146 inline const CloudWatchAlarmTemplateStatistic& GetStatistic() const{ return m_statistic; }
147 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
148 inline void SetStatistic(const CloudWatchAlarmTemplateStatistic& value) { m_statisticHasBeenSet = true; m_statistic = value; }
149 inline void SetStatistic(CloudWatchAlarmTemplateStatistic&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); }
153
155
156 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
157 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
158 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
159 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
162 inline CreateCloudWatchAlarmTemplateRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
163 inline CreateCloudWatchAlarmTemplateRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
164 inline CreateCloudWatchAlarmTemplateRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
165 inline CreateCloudWatchAlarmTemplateRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
166 inline CreateCloudWatchAlarmTemplateRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
167 inline CreateCloudWatchAlarmTemplateRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
168 inline CreateCloudWatchAlarmTemplateRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
170
172
173 inline const CloudWatchAlarmTemplateTargetResourceType& GetTargetResourceType() const{ return m_targetResourceType; }
174 inline bool TargetResourceTypeHasBeenSet() const { return m_targetResourceTypeHasBeenSet; }
175 inline void SetTargetResourceType(const CloudWatchAlarmTemplateTargetResourceType& value) { m_targetResourceTypeHasBeenSet = true; m_targetResourceType = value; }
176 inline void SetTargetResourceType(CloudWatchAlarmTemplateTargetResourceType&& value) { m_targetResourceTypeHasBeenSet = true; m_targetResourceType = std::move(value); }
180
182
185 inline double GetThreshold() const{ return m_threshold; }
186 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
187 inline void SetThreshold(double value) { m_thresholdHasBeenSet = true; m_threshold = value; }
188 inline CreateCloudWatchAlarmTemplateRequest& WithThreshold(double value) { SetThreshold(value); return *this;}
190
192
193 inline const CloudWatchAlarmTemplateTreatMissingData& GetTreatMissingData() const{ return m_treatMissingData; }
194 inline bool TreatMissingDataHasBeenSet() const { return m_treatMissingDataHasBeenSet; }
195 inline void SetTreatMissingData(const CloudWatchAlarmTemplateTreatMissingData& value) { m_treatMissingDataHasBeenSet = true; m_treatMissingData = value; }
196 inline void SetTreatMissingData(CloudWatchAlarmTemplateTreatMissingData&& value) { m_treatMissingDataHasBeenSet = true; m_treatMissingData = std::move(value); }
200 private:
201
203 bool m_comparisonOperatorHasBeenSet = false;
204
205 int m_datapointsToAlarm;
206 bool m_datapointsToAlarmHasBeenSet = false;
207
208 Aws::String m_description;
209 bool m_descriptionHasBeenSet = false;
210
211 int m_evaluationPeriods;
212 bool m_evaluationPeriodsHasBeenSet = false;
213
214 Aws::String m_groupIdentifier;
215 bool m_groupIdentifierHasBeenSet = false;
216
217 Aws::String m_metricName;
218 bool m_metricNameHasBeenSet = false;
219
220 Aws::String m_name;
221 bool m_nameHasBeenSet = false;
222
223 int m_period;
224 bool m_periodHasBeenSet = false;
225
227 bool m_statisticHasBeenSet = false;
228
230 bool m_tagsHasBeenSet = false;
231
233 bool m_targetResourceTypeHasBeenSet = false;
234
235 double m_threshold;
236 bool m_thresholdHasBeenSet = false;
237
239 bool m_treatMissingDataHasBeenSet = false;
240 };
241
242} // namespace Model
243} // namespace MediaLive
244} // namespace Aws
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
CreateCloudWatchAlarmTemplateRequest & WithDescription(const Aws::String &value)
CreateCloudWatchAlarmTemplateRequest & WithComparisonOperator(CloudWatchAlarmTemplateComparisonOperator &&value)
CreateCloudWatchAlarmTemplateRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetTreatMissingData(CloudWatchAlarmTemplateTreatMissingData &&value)
CreateCloudWatchAlarmTemplateRequest & AddTags(const Aws::String &key, const Aws::String &value)
const CloudWatchAlarmTemplateTreatMissingData & GetTreatMissingData() const
CreateCloudWatchAlarmTemplateRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateCloudWatchAlarmTemplateRequest & AddTags(const char *key, Aws::String &&value)
CreateCloudWatchAlarmTemplateRequest & WithMetricName(Aws::String &&value)
void SetTreatMissingData(const CloudWatchAlarmTemplateTreatMissingData &value)
void SetTargetResourceType(CloudWatchAlarmTemplateTargetResourceType &&value)
CreateCloudWatchAlarmTemplateRequest & WithGroupIdentifier(Aws::String &&value)
CreateCloudWatchAlarmTemplateRequest & WithName(const Aws::String &value)
CreateCloudWatchAlarmTemplateRequest & WithName(Aws::String &&value)
CreateCloudWatchAlarmTemplateRequest & WithEvaluationPeriods(int value)
CreateCloudWatchAlarmTemplateRequest & WithComparisonOperator(const CloudWatchAlarmTemplateComparisonOperator &value)
CreateCloudWatchAlarmTemplateRequest & WithGroupIdentifier(const Aws::String &value)
CreateCloudWatchAlarmTemplateRequest & WithMetricName(const Aws::String &value)
CreateCloudWatchAlarmTemplateRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateCloudWatchAlarmTemplateRequest & WithDatapointsToAlarm(int value)
CreateCloudWatchAlarmTemplateRequest & AddTags(Aws::String &&key, const char *value)
CreateCloudWatchAlarmTemplateRequest & AddTags(const char *key, const char *value)
CreateCloudWatchAlarmTemplateRequest & WithName(const char *value)
CreateCloudWatchAlarmTemplateRequest & WithStatistic(const CloudWatchAlarmTemplateStatistic &value)
CreateCloudWatchAlarmTemplateRequest & WithTreatMissingData(CloudWatchAlarmTemplateTreatMissingData &&value)
void SetTargetResourceType(const CloudWatchAlarmTemplateTargetResourceType &value)
CreateCloudWatchAlarmTemplateRequest & WithStatistic(CloudWatchAlarmTemplateStatistic &&value)
CreateCloudWatchAlarmTemplateRequest & WithDescription(Aws::String &&value)
const CloudWatchAlarmTemplateComparisonOperator & GetComparisonOperator() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateCloudWatchAlarmTemplateRequest & WithMetricName(const char *value)
CreateCloudWatchAlarmTemplateRequest & WithTreatMissingData(const CloudWatchAlarmTemplateTreatMissingData &value)
CreateCloudWatchAlarmTemplateRequest & WithGroupIdentifier(const char *value)
CreateCloudWatchAlarmTemplateRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateCloudWatchAlarmTemplateRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateCloudWatchAlarmTemplateRequest & WithTargetResourceType(const CloudWatchAlarmTemplateTargetResourceType &value)
void SetComparisonOperator(CloudWatchAlarmTemplateComparisonOperator &&value)
const CloudWatchAlarmTemplateTargetResourceType & GetTargetResourceType() const
CreateCloudWatchAlarmTemplateRequest & WithTargetResourceType(CloudWatchAlarmTemplateTargetResourceType &&value)
void SetComparisonOperator(const CloudWatchAlarmTemplateComparisonOperator &value)
CreateCloudWatchAlarmTemplateRequest & WithDescription(const char *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