AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BehaviorCriteria.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/model/ComparisonOperator.h>
9#include <aws/iot/model/MetricValue.h>
10#include <aws/iot/model/StatisticalThreshold.h>
11#include <aws/iot/model/MachineLearningDetectionConfig.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace IoT
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_IOT_API BehaviorCriteria();
42
43
45
56 inline const ComparisonOperator& GetComparisonOperator() const{ return m_comparisonOperator; }
57 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
58 inline void SetComparisonOperator(const ComparisonOperator& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
59 inline void SetComparisonOperator(ComparisonOperator&& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = std::move(value); }
61 inline BehaviorCriteria& WithComparisonOperator(ComparisonOperator&& value) { SetComparisonOperator(std::move(value)); return *this;}
63
65
68 inline const MetricValue& GetValue() const{ return m_value; }
69 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
70 inline void SetValue(const MetricValue& value) { m_valueHasBeenSet = true; m_value = value; }
71 inline void SetValue(MetricValue&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
72 inline BehaviorCriteria& WithValue(const MetricValue& value) { SetValue(value); return *this;}
73 inline BehaviorCriteria& WithValue(MetricValue&& value) { SetValue(std::move(value)); return *this;}
75
77
87 inline int GetDurationSeconds() const{ return m_durationSeconds; }
88 inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
89 inline void SetDurationSeconds(int value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; }
90 inline BehaviorCriteria& WithDurationSeconds(int value) { SetDurationSeconds(value); return *this;}
92
94
98 inline int GetConsecutiveDatapointsToAlarm() const{ return m_consecutiveDatapointsToAlarm; }
99 inline bool ConsecutiveDatapointsToAlarmHasBeenSet() const { return m_consecutiveDatapointsToAlarmHasBeenSet; }
100 inline void SetConsecutiveDatapointsToAlarm(int value) { m_consecutiveDatapointsToAlarmHasBeenSet = true; m_consecutiveDatapointsToAlarm = value; }
103
105
110 inline int GetConsecutiveDatapointsToClear() const{ return m_consecutiveDatapointsToClear; }
111 inline bool ConsecutiveDatapointsToClearHasBeenSet() const { return m_consecutiveDatapointsToClearHasBeenSet; }
112 inline void SetConsecutiveDatapointsToClear(int value) { m_consecutiveDatapointsToClearHasBeenSet = true; m_consecutiveDatapointsToClear = value; }
115
117
121 inline const StatisticalThreshold& GetStatisticalThreshold() const{ return m_statisticalThreshold; }
122 inline bool StatisticalThresholdHasBeenSet() const { return m_statisticalThresholdHasBeenSet; }
123 inline void SetStatisticalThreshold(const StatisticalThreshold& value) { m_statisticalThresholdHasBeenSet = true; m_statisticalThreshold = value; }
124 inline void SetStatisticalThreshold(StatisticalThreshold&& value) { m_statisticalThresholdHasBeenSet = true; m_statisticalThreshold = std::move(value); }
128
130
133 inline const MachineLearningDetectionConfig& GetMlDetectionConfig() const{ return m_mlDetectionConfig; }
134 inline bool MlDetectionConfigHasBeenSet() const { return m_mlDetectionConfigHasBeenSet; }
135 inline void SetMlDetectionConfig(const MachineLearningDetectionConfig& value) { m_mlDetectionConfigHasBeenSet = true; m_mlDetectionConfig = value; }
136 inline void SetMlDetectionConfig(MachineLearningDetectionConfig&& value) { m_mlDetectionConfigHasBeenSet = true; m_mlDetectionConfig = std::move(value); }
140 private:
141
142 ComparisonOperator m_comparisonOperator;
143 bool m_comparisonOperatorHasBeenSet = false;
144
145 MetricValue m_value;
146 bool m_valueHasBeenSet = false;
147
148 int m_durationSeconds;
149 bool m_durationSecondsHasBeenSet = false;
150
151 int m_consecutiveDatapointsToAlarm;
152 bool m_consecutiveDatapointsToAlarmHasBeenSet = false;
153
154 int m_consecutiveDatapointsToClear;
155 bool m_consecutiveDatapointsToClearHasBeenSet = false;
156
157 StatisticalThreshold m_statisticalThreshold;
158 bool m_statisticalThresholdHasBeenSet = false;
159
160 MachineLearningDetectionConfig m_mlDetectionConfig;
161 bool m_mlDetectionConfigHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace IoT
166} // namespace Aws
void SetStatisticalThreshold(const StatisticalThreshold &value)
BehaviorCriteria & WithValue(MetricValue &&value)
BehaviorCriteria & WithValue(const MetricValue &value)
BehaviorCriteria & WithStatisticalThreshold(StatisticalThreshold &&value)
void SetComparisonOperator(const ComparisonOperator &value)
const MachineLearningDetectionConfig & GetMlDetectionConfig() const
void SetComparisonOperator(ComparisonOperator &&value)
BehaviorCriteria & WithComparisonOperator(ComparisonOperator &&value)
BehaviorCriteria & WithMlDetectionConfig(const MachineLearningDetectionConfig &value)
const ComparisonOperator & GetComparisonOperator() const
void SetMlDetectionConfig(const MachineLearningDetectionConfig &value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetValue(const MetricValue &value)
BehaviorCriteria & WithStatisticalThreshold(const StatisticalThreshold &value)
const StatisticalThreshold & GetStatisticalThreshold() const
void SetValue(MetricValue &&value)
BehaviorCriteria & WithDurationSeconds(int value)
BehaviorCriteria & WithConsecutiveDatapointsToClear(int value)
AWS_IOT_API BehaviorCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatisticalThreshold(StatisticalThreshold &&value)
void SetMlDetectionConfig(MachineLearningDetectionConfig &&value)
AWS_IOT_API BehaviorCriteria(Aws::Utils::Json::JsonView jsonValue)
BehaviorCriteria & WithConsecutiveDatapointsToAlarm(int value)
BehaviorCriteria & WithComparisonOperator(const ComparisonOperator &value)
BehaviorCriteria & WithMlDetectionConfig(MachineLearningDetectionConfig &&value)
const MetricValue & GetValue() const
Aws::Utils::Json::JsonValue JsonValue