AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace MediaLive
21{
22namespace Model
23{
24
32 {
33 public:
34 AWS_MEDIALIVE_API CreateCloudWatchAlarmTemplateRequest() = default;
35
36 // Service request name is the Operation name which will send this request out,
37 // each operation should has unique request name, so that we can get operation's name from this request.
38 // Note: this is not true for response, multiple operations may have the same response name,
39 // so we can not get operation's name from response.
40 inline virtual const char* GetServiceRequestName() const override { return "CreateCloudWatchAlarmTemplate"; }
41
42 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
43
44
46
47 inline CloudWatchAlarmTemplateComparisonOperator GetComparisonOperator() const { return m_comparisonOperator; }
48 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
49 inline void SetComparisonOperator(CloudWatchAlarmTemplateComparisonOperator value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = 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 template<typename DescriptionT = Aws::String>
71 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
72 template<typename DescriptionT = Aws::String>
73 CreateCloudWatchAlarmTemplateRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
75
77
80 inline int GetEvaluationPeriods() const { return m_evaluationPeriods; }
81 inline bool EvaluationPeriodsHasBeenSet() const { return m_evaluationPeriodsHasBeenSet; }
82 inline void SetEvaluationPeriods(int value) { m_evaluationPeriodsHasBeenSet = true; m_evaluationPeriods = value; }
85
87
91 inline const Aws::String& GetGroupIdentifier() const { return m_groupIdentifier; }
92 inline bool GroupIdentifierHasBeenSet() const { return m_groupIdentifierHasBeenSet; }
93 template<typename GroupIdentifierT = Aws::String>
94 void SetGroupIdentifier(GroupIdentifierT&& value) { m_groupIdentifierHasBeenSet = true; m_groupIdentifier = std::forward<GroupIdentifierT>(value); }
95 template<typename GroupIdentifierT = Aws::String>
96 CreateCloudWatchAlarmTemplateRequest& WithGroupIdentifier(GroupIdentifierT&& value) { SetGroupIdentifier(std::forward<GroupIdentifierT>(value)); return *this;}
98
100
104 inline const Aws::String& GetMetricName() const { return m_metricName; }
105 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
106 template<typename MetricNameT = Aws::String>
107 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
108 template<typename MetricNameT = Aws::String>
109 CreateCloudWatchAlarmTemplateRequest& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
111
113
117 inline const Aws::String& GetName() const { return m_name; }
118 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
119 template<typename NameT = Aws::String>
120 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
121 template<typename NameT = Aws::String>
122 CreateCloudWatchAlarmTemplateRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
124
126
129 inline int GetPeriod() const { return m_period; }
130 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
131 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
132 inline CreateCloudWatchAlarmTemplateRequest& WithPeriod(int value) { SetPeriod(value); return *this;}
134
136
137 inline CloudWatchAlarmTemplateStatistic GetStatistic() const { return m_statistic; }
138 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
139 inline void SetStatistic(CloudWatchAlarmTemplateStatistic value) { m_statisticHasBeenSet = true; m_statistic = value; }
142
144
145 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
146 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
147 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
148 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
149 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
150 CreateCloudWatchAlarmTemplateRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
151 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
152 CreateCloudWatchAlarmTemplateRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
153 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
154 }
156
158
159 inline CloudWatchAlarmTemplateTargetResourceType GetTargetResourceType() const { return m_targetResourceType; }
160 inline bool TargetResourceTypeHasBeenSet() const { return m_targetResourceTypeHasBeenSet; }
161 inline void SetTargetResourceType(CloudWatchAlarmTemplateTargetResourceType value) { m_targetResourceTypeHasBeenSet = true; m_targetResourceType = value; }
164
166
169 inline double GetThreshold() const { return m_threshold; }
170 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
171 inline void SetThreshold(double value) { m_thresholdHasBeenSet = true; m_threshold = value; }
172 inline CreateCloudWatchAlarmTemplateRequest& WithThreshold(double value) { SetThreshold(value); return *this;}
174
176
177 inline CloudWatchAlarmTemplateTreatMissingData GetTreatMissingData() const { return m_treatMissingData; }
178 inline bool TreatMissingDataHasBeenSet() const { return m_treatMissingDataHasBeenSet; }
179 inline void SetTreatMissingData(CloudWatchAlarmTemplateTreatMissingData value) { m_treatMissingDataHasBeenSet = true; m_treatMissingData = value; }
182
184
188 inline const Aws::String& GetRequestId() const { return m_requestId; }
189 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
190 template<typename RequestIdT = Aws::String>
191 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
192 template<typename RequestIdT = Aws::String>
193 CreateCloudWatchAlarmTemplateRequest& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
195 private:
196
198 bool m_comparisonOperatorHasBeenSet = false;
199
200 int m_datapointsToAlarm{0};
201 bool m_datapointsToAlarmHasBeenSet = false;
202
203 Aws::String m_description;
204 bool m_descriptionHasBeenSet = false;
205
206 int m_evaluationPeriods{0};
207 bool m_evaluationPeriodsHasBeenSet = false;
208
209 Aws::String m_groupIdentifier;
210 bool m_groupIdentifierHasBeenSet = false;
211
212 Aws::String m_metricName;
213 bool m_metricNameHasBeenSet = false;
214
215 Aws::String m_name;
216 bool m_nameHasBeenSet = false;
217
218 int m_period{0};
219 bool m_periodHasBeenSet = false;
220
222 bool m_statisticHasBeenSet = false;
223
225 bool m_tagsHasBeenSet = false;
226
228 bool m_targetResourceTypeHasBeenSet = false;
229
230 double m_threshold{0.0};
231 bool m_thresholdHasBeenSet = false;
232
234 bool m_treatMissingDataHasBeenSet = false;
235
237 bool m_requestIdHasBeenSet = true;
238 };
239
240} // namespace Model
241} // namespace MediaLive
242} // namespace Aws
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
CreateCloudWatchAlarmTemplateRequest & WithMetricName(MetricNameT &&value)
CreateCloudWatchAlarmTemplateRequest & WithTargetResourceType(CloudWatchAlarmTemplateTargetResourceType value)
void SetTreatMissingData(CloudWatchAlarmTemplateTreatMissingData value)
CreateCloudWatchAlarmTemplateRequest & WithEvaluationPeriods(int value)
CreateCloudWatchAlarmTemplateRequest & WithGroupIdentifier(GroupIdentifierT &&value)
CloudWatchAlarmTemplateComparisonOperator GetComparisonOperator() const
CreateCloudWatchAlarmTemplateRequest & WithDatapointsToAlarm(int value)
void SetComparisonOperator(CloudWatchAlarmTemplateComparisonOperator value)
CreateCloudWatchAlarmTemplateRequest & WithStatistic(CloudWatchAlarmTemplateStatistic value)
CreateCloudWatchAlarmTemplateRequest & WithComparisonOperator(CloudWatchAlarmTemplateComparisonOperator value)
CreateCloudWatchAlarmTemplateRequest & WithTreatMissingData(CloudWatchAlarmTemplateTreatMissingData value)
CreateCloudWatchAlarmTemplateRequest & WithRequestId(RequestIdT &&value)
CreateCloudWatchAlarmTemplateRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateCloudWatchAlarmTemplateRequest & WithDescription(DescriptionT &&value)
void SetTargetResourceType(CloudWatchAlarmTemplateTargetResourceType value)
static Aws::Utils::UUID PseudoRandomUUID()
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