AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateCloudWatchAlarmTemplateRequest.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/medialive/model/CloudWatchAlarmTemplateTargetResourceType.h>
13#include <aws/medialive/model/CloudWatchAlarmTemplateTreatMissingData.h>
14#include <utility>
15
16namespace Aws
17{
18namespace MediaLive
19{
20namespace Model
21{
22
30 {
31 public:
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "UpdateCloudWatchAlarmTemplate"; }
39
40 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
41
42
44
45 inline const CloudWatchAlarmTemplateComparisonOperator& GetComparisonOperator() const{ return m_comparisonOperator; }
46 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
47 inline void SetComparisonOperator(const CloudWatchAlarmTemplateComparisonOperator& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
48 inline void SetComparisonOperator(CloudWatchAlarmTemplateComparisonOperator&& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = std::move(value); }
52
54
58 inline int GetDatapointsToAlarm() const{ return m_datapointsToAlarm; }
59 inline bool DatapointsToAlarmHasBeenSet() const { return m_datapointsToAlarmHasBeenSet; }
60 inline void SetDatapointsToAlarm(int value) { m_datapointsToAlarmHasBeenSet = true; m_datapointsToAlarm = value; }
63
65
68 inline const Aws::String& GetDescription() const{ return m_description; }
69 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
70 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
71 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
72 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
74 inline UpdateCloudWatchAlarmTemplateRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
75 inline UpdateCloudWatchAlarmTemplateRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
77
79
82 inline int GetEvaluationPeriods() const{ return m_evaluationPeriods; }
83 inline bool EvaluationPeriodsHasBeenSet() const { return m_evaluationPeriodsHasBeenSet; }
84 inline void SetEvaluationPeriods(int value) { m_evaluationPeriodsHasBeenSet = true; m_evaluationPeriods = value; }
87
89
93 inline const Aws::String& GetGroupIdentifier() const{ return m_groupIdentifier; }
94 inline bool GroupIdentifierHasBeenSet() const { return m_groupIdentifierHasBeenSet; }
95 inline void SetGroupIdentifier(const Aws::String& value) { m_groupIdentifierHasBeenSet = true; m_groupIdentifier = value; }
96 inline void SetGroupIdentifier(Aws::String&& value) { m_groupIdentifierHasBeenSet = true; m_groupIdentifier = std::move(value); }
97 inline void SetGroupIdentifier(const char* value) { m_groupIdentifierHasBeenSet = true; m_groupIdentifier.assign(value); }
100 inline UpdateCloudWatchAlarmTemplateRequest& WithGroupIdentifier(const char* value) { SetGroupIdentifier(value); return *this;}
102
104
108 inline const Aws::String& GetIdentifier() const{ return m_identifier; }
109 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
110 inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; }
111 inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); }
112 inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); }
114 inline UpdateCloudWatchAlarmTemplateRequest& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;}
115 inline UpdateCloudWatchAlarmTemplateRequest& WithIdentifier(const char* value) { SetIdentifier(value); return *this;}
117
119
123 inline const Aws::String& GetMetricName() const{ return m_metricName; }
124 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
125 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
126 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
127 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
129 inline UpdateCloudWatchAlarmTemplateRequest& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
130 inline UpdateCloudWatchAlarmTemplateRequest& WithMetricName(const char* value) { SetMetricName(value); return *this;}
132
134
138 inline const Aws::String& GetName() const{ return m_name; }
139 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
140 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
141 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
142 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
143 inline UpdateCloudWatchAlarmTemplateRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
144 inline UpdateCloudWatchAlarmTemplateRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
145 inline UpdateCloudWatchAlarmTemplateRequest& WithName(const char* value) { SetName(value); return *this;}
147
149
152 inline int GetPeriod() const{ return m_period; }
153 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
154 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
155 inline UpdateCloudWatchAlarmTemplateRequest& WithPeriod(int value) { SetPeriod(value); return *this;}
157
159
160 inline const CloudWatchAlarmTemplateStatistic& GetStatistic() const{ return m_statistic; }
161 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
162 inline void SetStatistic(const CloudWatchAlarmTemplateStatistic& value) { m_statisticHasBeenSet = true; m_statistic = value; }
163 inline void SetStatistic(CloudWatchAlarmTemplateStatistic&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); }
167
169
170 inline const CloudWatchAlarmTemplateTargetResourceType& GetTargetResourceType() const{ return m_targetResourceType; }
171 inline bool TargetResourceTypeHasBeenSet() const { return m_targetResourceTypeHasBeenSet; }
172 inline void SetTargetResourceType(const CloudWatchAlarmTemplateTargetResourceType& value) { m_targetResourceTypeHasBeenSet = true; m_targetResourceType = value; }
173 inline void SetTargetResourceType(CloudWatchAlarmTemplateTargetResourceType&& value) { m_targetResourceTypeHasBeenSet = true; m_targetResourceType = std::move(value); }
177
179
182 inline double GetThreshold() const{ return m_threshold; }
183 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
184 inline void SetThreshold(double value) { m_thresholdHasBeenSet = true; m_threshold = value; }
185 inline UpdateCloudWatchAlarmTemplateRequest& WithThreshold(double value) { SetThreshold(value); return *this;}
187
189
190 inline const CloudWatchAlarmTemplateTreatMissingData& GetTreatMissingData() const{ return m_treatMissingData; }
191 inline bool TreatMissingDataHasBeenSet() const { return m_treatMissingDataHasBeenSet; }
192 inline void SetTreatMissingData(const CloudWatchAlarmTemplateTreatMissingData& value) { m_treatMissingDataHasBeenSet = true; m_treatMissingData = value; }
193 inline void SetTreatMissingData(CloudWatchAlarmTemplateTreatMissingData&& value) { m_treatMissingDataHasBeenSet = true; m_treatMissingData = std::move(value); }
197 private:
198
200 bool m_comparisonOperatorHasBeenSet = false;
201
202 int m_datapointsToAlarm;
203 bool m_datapointsToAlarmHasBeenSet = false;
204
205 Aws::String m_description;
206 bool m_descriptionHasBeenSet = false;
207
208 int m_evaluationPeriods;
209 bool m_evaluationPeriodsHasBeenSet = false;
210
211 Aws::String m_groupIdentifier;
212 bool m_groupIdentifierHasBeenSet = false;
213
214 Aws::String m_identifier;
215 bool m_identifierHasBeenSet = 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_targetResourceTypeHasBeenSet = false;
231
232 double m_threshold;
233 bool m_thresholdHasBeenSet = false;
234
236 bool m_treatMissingDataHasBeenSet = false;
237 };
238
239} // namespace Model
240} // namespace MediaLive
241} // namespace Aws
void SetComparisonOperator(CloudWatchAlarmTemplateComparisonOperator &&value)
UpdateCloudWatchAlarmTemplateRequest & WithTreatMissingData(CloudWatchAlarmTemplateTreatMissingData &&value)
UpdateCloudWatchAlarmTemplateRequest & WithTreatMissingData(const CloudWatchAlarmTemplateTreatMissingData &value)
UpdateCloudWatchAlarmTemplateRequest & WithTargetResourceType(CloudWatchAlarmTemplateTargetResourceType &&value)
UpdateCloudWatchAlarmTemplateRequest & WithGroupIdentifier(const char *value)
UpdateCloudWatchAlarmTemplateRequest & WithIdentifier(Aws::String &&value)
UpdateCloudWatchAlarmTemplateRequest & WithComparisonOperator(const CloudWatchAlarmTemplateComparisonOperator &value)
void SetTargetResourceType(CloudWatchAlarmTemplateTargetResourceType &&value)
UpdateCloudWatchAlarmTemplateRequest & WithDatapointsToAlarm(int value)
UpdateCloudWatchAlarmTemplateRequest & WithStatistic(CloudWatchAlarmTemplateStatistic &&value)
const CloudWatchAlarmTemplateTreatMissingData & GetTreatMissingData() const
UpdateCloudWatchAlarmTemplateRequest & WithName(const Aws::String &value)
UpdateCloudWatchAlarmTemplateRequest & WithGroupIdentifier(Aws::String &&value)
UpdateCloudWatchAlarmTemplateRequest & WithDescription(const Aws::String &value)
UpdateCloudWatchAlarmTemplateRequest & WithComparisonOperator(CloudWatchAlarmTemplateComparisonOperator &&value)
UpdateCloudWatchAlarmTemplateRequest & WithIdentifier(const Aws::String &value)
UpdateCloudWatchAlarmTemplateRequest & WithDescription(Aws::String &&value)
UpdateCloudWatchAlarmTemplateRequest & WithEvaluationPeriods(int value)
UpdateCloudWatchAlarmTemplateRequest & WithGroupIdentifier(const Aws::String &value)
UpdateCloudWatchAlarmTemplateRequest & WithIdentifier(const char *value)
UpdateCloudWatchAlarmTemplateRequest & WithName(const char *value)
UpdateCloudWatchAlarmTemplateRequest & WithTargetResourceType(const CloudWatchAlarmTemplateTargetResourceType &value)
UpdateCloudWatchAlarmTemplateRequest & WithDescription(const char *value)
UpdateCloudWatchAlarmTemplateRequest & WithMetricName(const char *value)
UpdateCloudWatchAlarmTemplateRequest & WithStatistic(const CloudWatchAlarmTemplateStatistic &value)
void SetTreatMissingData(const CloudWatchAlarmTemplateTreatMissingData &value)
UpdateCloudWatchAlarmTemplateRequest & WithName(Aws::String &&value)
UpdateCloudWatchAlarmTemplateRequest & WithMetricName(Aws::String &&value)
void SetTreatMissingData(CloudWatchAlarmTemplateTreatMissingData &&value)
void SetComparisonOperator(const CloudWatchAlarmTemplateComparisonOperator &value)
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
void SetTargetResourceType(const CloudWatchAlarmTemplateTargetResourceType &value)
const CloudWatchAlarmTemplateComparisonOperator & GetComparisonOperator() const
const CloudWatchAlarmTemplateTargetResourceType & GetTargetResourceType() const
UpdateCloudWatchAlarmTemplateRequest & WithMetricName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String