AWS SDK for C++  1.9.123
AWS SDK for C++
BehaviorCriteria.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace IoT
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
55  inline const ComparisonOperator& GetComparisonOperator() const{ return m_comparisonOperator; }
56 
68  inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
69 
81  inline void SetComparisonOperator(const ComparisonOperator& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
82 
94  inline void SetComparisonOperator(ComparisonOperator&& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = std::move(value); }
95 
107  inline BehaviorCriteria& WithComparisonOperator(const ComparisonOperator& value) { SetComparisonOperator(value); return *this;}
108 
120  inline BehaviorCriteria& WithComparisonOperator(ComparisonOperator&& value) { SetComparisonOperator(std::move(value)); return *this;}
121 
122 
126  inline const MetricValue& GetValue() const{ return m_value; }
127 
131  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
132 
136  inline void SetValue(const MetricValue& value) { m_valueHasBeenSet = true; m_value = value; }
137 
141  inline void SetValue(MetricValue&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
142 
146  inline BehaviorCriteria& WithValue(const MetricValue& value) { SetValue(value); return *this;}
147 
151  inline BehaviorCriteria& WithValue(MetricValue&& value) { SetValue(std::move(value)); return *this;}
152 
153 
164  inline int GetDurationSeconds() const{ return m_durationSeconds; }
165 
176  inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
177 
188  inline void SetDurationSeconds(int value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; }
189 
200  inline BehaviorCriteria& WithDurationSeconds(int value) { SetDurationSeconds(value); return *this;}
201 
202 
207  inline int GetConsecutiveDatapointsToAlarm() const{ return m_consecutiveDatapointsToAlarm; }
208 
213  inline bool ConsecutiveDatapointsToAlarmHasBeenSet() const { return m_consecutiveDatapointsToAlarmHasBeenSet; }
214 
219  inline void SetConsecutiveDatapointsToAlarm(int value) { m_consecutiveDatapointsToAlarmHasBeenSet = true; m_consecutiveDatapointsToAlarm = value; }
220 
225  inline BehaviorCriteria& WithConsecutiveDatapointsToAlarm(int value) { SetConsecutiveDatapointsToAlarm(value); return *this;}
226 
227 
233  inline int GetConsecutiveDatapointsToClear() const{ return m_consecutiveDatapointsToClear; }
234 
240  inline bool ConsecutiveDatapointsToClearHasBeenSet() const { return m_consecutiveDatapointsToClearHasBeenSet; }
241 
247  inline void SetConsecutiveDatapointsToClear(int value) { m_consecutiveDatapointsToClearHasBeenSet = true; m_consecutiveDatapointsToClear = value; }
248 
254  inline BehaviorCriteria& WithConsecutiveDatapointsToClear(int value) { SetConsecutiveDatapointsToClear(value); return *this;}
255 
256 
261  inline const StatisticalThreshold& GetStatisticalThreshold() const{ return m_statisticalThreshold; }
262 
267  inline bool StatisticalThresholdHasBeenSet() const { return m_statisticalThresholdHasBeenSet; }
268 
273  inline void SetStatisticalThreshold(const StatisticalThreshold& value) { m_statisticalThresholdHasBeenSet = true; m_statisticalThreshold = value; }
274 
279  inline void SetStatisticalThreshold(StatisticalThreshold&& value) { m_statisticalThresholdHasBeenSet = true; m_statisticalThreshold = std::move(value); }
280 
285  inline BehaviorCriteria& WithStatisticalThreshold(const StatisticalThreshold& value) { SetStatisticalThreshold(value); return *this;}
286 
291  inline BehaviorCriteria& WithStatisticalThreshold(StatisticalThreshold&& value) { SetStatisticalThreshold(std::move(value)); return *this;}
292 
293 
297  inline const MachineLearningDetectionConfig& GetMlDetectionConfig() const{ return m_mlDetectionConfig; }
298 
302  inline bool MlDetectionConfigHasBeenSet() const { return m_mlDetectionConfigHasBeenSet; }
303 
307  inline void SetMlDetectionConfig(const MachineLearningDetectionConfig& value) { m_mlDetectionConfigHasBeenSet = true; m_mlDetectionConfig = value; }
308 
312  inline void SetMlDetectionConfig(MachineLearningDetectionConfig&& value) { m_mlDetectionConfigHasBeenSet = true; m_mlDetectionConfig = std::move(value); }
313 
317  inline BehaviorCriteria& WithMlDetectionConfig(const MachineLearningDetectionConfig& value) { SetMlDetectionConfig(value); return *this;}
318 
322  inline BehaviorCriteria& WithMlDetectionConfig(MachineLearningDetectionConfig&& value) { SetMlDetectionConfig(std::move(value)); return *this;}
323 
324  private:
325 
326  ComparisonOperator m_comparisonOperator;
327  bool m_comparisonOperatorHasBeenSet;
328 
329  MetricValue m_value;
330  bool m_valueHasBeenSet;
331 
332  int m_durationSeconds;
333  bool m_durationSecondsHasBeenSet;
334 
335  int m_consecutiveDatapointsToAlarm;
336  bool m_consecutiveDatapointsToAlarmHasBeenSet;
337 
338  int m_consecutiveDatapointsToClear;
339  bool m_consecutiveDatapointsToClearHasBeenSet;
340 
341  StatisticalThreshold m_statisticalThreshold;
342  bool m_statisticalThresholdHasBeenSet;
343 
344  MachineLearningDetectionConfig m_mlDetectionConfig;
345  bool m_mlDetectionConfigHasBeenSet;
346  };
347 
348 } // namespace Model
349 } // namespace IoT
350 } // namespace Aws
Aws::IoT::Model::BehaviorCriteria::WithComparisonOperator
BehaviorCriteria & WithComparisonOperator(ComparisonOperator &&value)
Definition: BehaviorCriteria.h:120
Aws::IoT::Model::BehaviorCriteria::GetDurationSeconds
int GetDurationSeconds() const
Definition: BehaviorCriteria.h:164
Aws::IoT::Model::BehaviorCriteria::SetMlDetectionConfig
void SetMlDetectionConfig(const MachineLearningDetectionConfig &value)
Definition: BehaviorCriteria.h:307
Aws::IoT::Model::BehaviorCriteria::GetComparisonOperator
const ComparisonOperator & GetComparisonOperator() const
Definition: BehaviorCriteria.h:55
Aws::IoT::Model::BehaviorCriteria::WithMlDetectionConfig
BehaviorCriteria & WithMlDetectionConfig(const MachineLearningDetectionConfig &value)
Definition: BehaviorCriteria.h:317
Aws::IoT::Model::BehaviorCriteria::SetStatisticalThreshold
void SetStatisticalThreshold(StatisticalThreshold &&value)
Definition: BehaviorCriteria.h:279
Aws::IoT::Model::BehaviorCriteria::GetValue
const MetricValue & GetValue() const
Definition: BehaviorCriteria.h:126
Aws::IoT::Model::BehaviorCriteria::SetValue
void SetValue(const MetricValue &value)
Definition: BehaviorCriteria.h:136
Aws::IoT::Model::BehaviorCriteria::SetDurationSeconds
void SetDurationSeconds(int value)
Definition: BehaviorCriteria.h:188
Aws::IoT::Model::BehaviorCriteria::MlDetectionConfigHasBeenSet
bool MlDetectionConfigHasBeenSet() const
Definition: BehaviorCriteria.h:302
Aws::IoT::Model::BehaviorCriteria::WithConsecutiveDatapointsToAlarm
BehaviorCriteria & WithConsecutiveDatapointsToAlarm(int value)
Definition: BehaviorCriteria.h:225
Aws::IoT::Model::BehaviorCriteria::ConsecutiveDatapointsToClearHasBeenSet
bool ConsecutiveDatapointsToClearHasBeenSet() const
Definition: BehaviorCriteria.h:240
Aws::IoT::Model::BehaviorCriteria::SetStatisticalThreshold
void SetStatisticalThreshold(const StatisticalThreshold &value)
Definition: BehaviorCriteria.h:273
Aws::IoT::Model::BehaviorCriteria::BehaviorCriteria
BehaviorCriteria()
Aws::IoT::Model::MetricValue
Definition: MetricValue.h:34
Aws::IoT::Model::BehaviorCriteria::WithComparisonOperator
BehaviorCriteria & WithComparisonOperator(const ComparisonOperator &value)
Definition: BehaviorCriteria.h:107
Aws::IoT::Model::ComparisonOperator
ComparisonOperator
Definition: ComparisonOperator.h:17
Aws::IoT::Model::BehaviorCriteria::SetConsecutiveDatapointsToClear
void SetConsecutiveDatapointsToClear(int value)
Definition: BehaviorCriteria.h:247
StatisticalThreshold.h
Aws::IoT::Model::BehaviorCriteria::SetConsecutiveDatapointsToAlarm
void SetConsecutiveDatapointsToAlarm(int value)
Definition: BehaviorCriteria.h:219
Aws::IoT::Model::BehaviorCriteria::WithValue
BehaviorCriteria & WithValue(const MetricValue &value)
Definition: BehaviorCriteria.h:146
Aws::IoT::Model::BehaviorCriteria::SetMlDetectionConfig
void SetMlDetectionConfig(MachineLearningDetectionConfig &&value)
Definition: BehaviorCriteria.h:312
Aws::IoT::Model::BehaviorCriteria::StatisticalThresholdHasBeenSet
bool StatisticalThresholdHasBeenSet() const
Definition: BehaviorCriteria.h:267
Aws::IoT::Model::BehaviorCriteria::SetComparisonOperator
void SetComparisonOperator(ComparisonOperator &&value)
Definition: BehaviorCriteria.h:94
Aws::IoT::Model::MachineLearningDetectionConfig
Definition: MachineLearningDetectionConfig.h:33
Aws::IoT::Model::BehaviorCriteria::WithStatisticalThreshold
BehaviorCriteria & WithStatisticalThreshold(StatisticalThreshold &&value)
Definition: BehaviorCriteria.h:291
Aws::IoT::Model::BehaviorCriteria::SetComparisonOperator
void SetComparisonOperator(const ComparisonOperator &value)
Definition: BehaviorCriteria.h:81
MetricValue.h
Aws::IoT::Model::BehaviorCriteria::GetConsecutiveDatapointsToAlarm
int GetConsecutiveDatapointsToAlarm() const
Definition: BehaviorCriteria.h:207
Aws::IoT::Model::BehaviorCriteria::DurationSecondsHasBeenSet
bool DurationSecondsHasBeenSet() const
Definition: BehaviorCriteria.h:176
Aws::IoT::Model::BehaviorCriteria::GetConsecutiveDatapointsToClear
int GetConsecutiveDatapointsToClear() const
Definition: BehaviorCriteria.h:233
Aws::IoT::Model::BehaviorCriteria
Definition: BehaviorCriteria.h:36
Aws::IoT::Model::BehaviorCriteria::GetStatisticalThreshold
const StatisticalThreshold & GetStatisticalThreshold() const
Definition: BehaviorCriteria.h:261
Aws::IoT::Model::BehaviorCriteria::BehaviorCriteria
BehaviorCriteria(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::BehaviorCriteria::ConsecutiveDatapointsToAlarmHasBeenSet
bool ConsecutiveDatapointsToAlarmHasBeenSet() const
Definition: BehaviorCriteria.h:213
Aws::IoT::Model::BehaviorCriteria::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
MachineLearningDetectionConfig.h
Aws::IoT::Model::BehaviorCriteria::ComparisonOperatorHasBeenSet
bool ComparisonOperatorHasBeenSet() const
Definition: BehaviorCriteria.h:68
Aws::IoT::Model::BehaviorCriteria::WithStatisticalThreshold
BehaviorCriteria & WithStatisticalThreshold(const StatisticalThreshold &value)
Definition: BehaviorCriteria.h:285
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::BehaviorCriteria::operator=
BehaviorCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::BehaviorCriteria::WithConsecutiveDatapointsToClear
BehaviorCriteria & WithConsecutiveDatapointsToClear(int value)
Definition: BehaviorCriteria.h:254
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::BehaviorCriteria::WithValue
BehaviorCriteria & WithValue(MetricValue &&value)
Definition: BehaviorCriteria.h:151
Aws::IoT::Model::BehaviorCriteria::WithDurationSeconds
BehaviorCriteria & WithDurationSeconds(int value)
Definition: BehaviorCriteria.h:200
Aws::IoT::Model::BehaviorCriteria::SetValue
void SetValue(MetricValue &&value)
Definition: BehaviorCriteria.h:141
Aws::IoT::Model::BehaviorCriteria::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: BehaviorCriteria.h:131
Aws::IoT::Model::BehaviorCriteria::WithMlDetectionConfig
BehaviorCriteria & WithMlDetectionConfig(MachineLearningDetectionConfig &&value)
Definition: BehaviorCriteria.h:322
Aws::IoT::Model::StatisticalThreshold
Definition: StatisticalThreshold.h:34
Aws::IoT::Model::BehaviorCriteria::GetMlDetectionConfig
const MachineLearningDetectionConfig & GetMlDetectionConfig() const
Definition: BehaviorCriteria.h:297
ComparisonOperator.h
IoT_EXPORTS.h