AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
32 AWS_MEDIALIVE_API UpdateCloudWatchAlarmTemplateRequest() = default;
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 CloudWatchAlarmTemplateComparisonOperator GetComparisonOperator() const { return m_comparisonOperator; }
46 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
47 inline void SetComparisonOperator(CloudWatchAlarmTemplateComparisonOperator value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
50
52
56 inline int GetDatapointsToAlarm() const { return m_datapointsToAlarm; }
57 inline bool DatapointsToAlarmHasBeenSet() const { return m_datapointsToAlarmHasBeenSet; }
58 inline void SetDatapointsToAlarm(int value) { m_datapointsToAlarmHasBeenSet = true; m_datapointsToAlarm = value; }
61
63
66 inline const Aws::String& GetDescription() const { return m_description; }
67 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
68 template<typename DescriptionT = Aws::String>
69 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
70 template<typename DescriptionT = Aws::String>
71 UpdateCloudWatchAlarmTemplateRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
73
75
78 inline int GetEvaluationPeriods() const { return m_evaluationPeriods; }
79 inline bool EvaluationPeriodsHasBeenSet() const { return m_evaluationPeriodsHasBeenSet; }
80 inline void SetEvaluationPeriods(int value) { m_evaluationPeriodsHasBeenSet = true; m_evaluationPeriods = value; }
83
85
89 inline const Aws::String& GetGroupIdentifier() const { return m_groupIdentifier; }
90 inline bool GroupIdentifierHasBeenSet() const { return m_groupIdentifierHasBeenSet; }
91 template<typename GroupIdentifierT = Aws::String>
92 void SetGroupIdentifier(GroupIdentifierT&& value) { m_groupIdentifierHasBeenSet = true; m_groupIdentifier = std::forward<GroupIdentifierT>(value); }
93 template<typename GroupIdentifierT = Aws::String>
94 UpdateCloudWatchAlarmTemplateRequest& WithGroupIdentifier(GroupIdentifierT&& value) { SetGroupIdentifier(std::forward<GroupIdentifierT>(value)); return *this;}
96
98
102 inline const Aws::String& GetIdentifier() const { return m_identifier; }
103 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
104 template<typename IdentifierT = Aws::String>
105 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
106 template<typename IdentifierT = Aws::String>
107 UpdateCloudWatchAlarmTemplateRequest& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
109
111
115 inline const Aws::String& GetMetricName() const { return m_metricName; }
116 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
117 template<typename MetricNameT = Aws::String>
118 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
119 template<typename MetricNameT = Aws::String>
120 UpdateCloudWatchAlarmTemplateRequest& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
122
124
128 inline const Aws::String& GetName() const { return m_name; }
129 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
130 template<typename NameT = Aws::String>
131 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
132 template<typename NameT = Aws::String>
133 UpdateCloudWatchAlarmTemplateRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
135
137
140 inline int GetPeriod() const { return m_period; }
141 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
142 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
143 inline UpdateCloudWatchAlarmTemplateRequest& WithPeriod(int value) { SetPeriod(value); return *this;}
145
147
148 inline CloudWatchAlarmTemplateStatistic GetStatistic() const { return m_statistic; }
149 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
150 inline void SetStatistic(CloudWatchAlarmTemplateStatistic value) { m_statisticHasBeenSet = true; m_statistic = value; }
153
155
156 inline CloudWatchAlarmTemplateTargetResourceType GetTargetResourceType() const { return m_targetResourceType; }
157 inline bool TargetResourceTypeHasBeenSet() const { return m_targetResourceTypeHasBeenSet; }
158 inline void SetTargetResourceType(CloudWatchAlarmTemplateTargetResourceType value) { m_targetResourceTypeHasBeenSet = true; m_targetResourceType = value; }
161
163
166 inline double GetThreshold() const { return m_threshold; }
167 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
168 inline void SetThreshold(double value) { m_thresholdHasBeenSet = true; m_threshold = value; }
169 inline UpdateCloudWatchAlarmTemplateRequest& WithThreshold(double value) { SetThreshold(value); return *this;}
171
173
174 inline CloudWatchAlarmTemplateTreatMissingData GetTreatMissingData() const { return m_treatMissingData; }
175 inline bool TreatMissingDataHasBeenSet() const { return m_treatMissingDataHasBeenSet; }
176 inline void SetTreatMissingData(CloudWatchAlarmTemplateTreatMissingData value) { m_treatMissingDataHasBeenSet = true; m_treatMissingData = value; }
179 private:
180
182 bool m_comparisonOperatorHasBeenSet = false;
183
184 int m_datapointsToAlarm{0};
185 bool m_datapointsToAlarmHasBeenSet = false;
186
187 Aws::String m_description;
188 bool m_descriptionHasBeenSet = false;
189
190 int m_evaluationPeriods{0};
191 bool m_evaluationPeriodsHasBeenSet = false;
192
193 Aws::String m_groupIdentifier;
194 bool m_groupIdentifierHasBeenSet = false;
195
196 Aws::String m_identifier;
197 bool m_identifierHasBeenSet = false;
198
199 Aws::String m_metricName;
200 bool m_metricNameHasBeenSet = false;
201
202 Aws::String m_name;
203 bool m_nameHasBeenSet = false;
204
205 int m_period{0};
206 bool m_periodHasBeenSet = false;
207
209 bool m_statisticHasBeenSet = false;
210
212 bool m_targetResourceTypeHasBeenSet = false;
213
214 double m_threshold{0.0};
215 bool m_thresholdHasBeenSet = false;
216
218 bool m_treatMissingDataHasBeenSet = false;
219 };
220
221} // namespace Model
222} // namespace MediaLive
223} // namespace Aws
UpdateCloudWatchAlarmTemplateRequest & WithIdentifier(IdentifierT &&value)
UpdateCloudWatchAlarmTemplateRequest & WithTargetResourceType(CloudWatchAlarmTemplateTargetResourceType value)
UpdateCloudWatchAlarmTemplateRequest & WithComparisonOperator(CloudWatchAlarmTemplateComparisonOperator value)
UpdateCloudWatchAlarmTemplateRequest & WithGroupIdentifier(GroupIdentifierT &&value)
UpdateCloudWatchAlarmTemplateRequest & WithDatapointsToAlarm(int value)
void SetTreatMissingData(CloudWatchAlarmTemplateTreatMissingData value)
UpdateCloudWatchAlarmTemplateRequest & WithEvaluationPeriods(int value)
CloudWatchAlarmTemplateComparisonOperator GetComparisonOperator() const
UpdateCloudWatchAlarmTemplateRequest & WithStatistic(CloudWatchAlarmTemplateStatistic value)
void SetComparisonOperator(CloudWatchAlarmTemplateComparisonOperator value)
void SetTargetResourceType(CloudWatchAlarmTemplateTargetResourceType value)
UpdateCloudWatchAlarmTemplateRequest & WithDescription(DescriptionT &&value)
UpdateCloudWatchAlarmTemplateRequest & WithMetricName(MetricNameT &&value)
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
UpdateCloudWatchAlarmTemplateRequest & WithTreatMissingData(CloudWatchAlarmTemplateTreatMissingData value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String