AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Threshold.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/Comparison.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Connect
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CONNECT_API Threshold() = default;
36 AWS_CONNECT_API Threshold(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONNECT_API Threshold& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline Comparison GetComparison() const { return m_comparison; }
46 inline bool ComparisonHasBeenSet() const { return m_comparisonHasBeenSet; }
47 inline void SetComparison(Comparison value) { m_comparisonHasBeenSet = true; m_comparison = value; }
48 inline Threshold& WithComparison(Comparison value) { SetComparison(value); return *this;}
50
52
55 inline double GetThresholdValue() const { return m_thresholdValue; }
56 inline bool ThresholdValueHasBeenSet() const { return m_thresholdValueHasBeenSet; }
57 inline void SetThresholdValue(double value) { m_thresholdValueHasBeenSet = true; m_thresholdValue = value; }
58 inline Threshold& WithThresholdValue(double value) { SetThresholdValue(value); return *this;}
60 private:
61
62 Comparison m_comparison{Comparison::NOT_SET};
63 bool m_comparisonHasBeenSet = false;
64
65 double m_thresholdValue{0.0};
66 bool m_thresholdValueHasBeenSet = false;
67 };
68
69} // namespace Model
70} // namespace Connect
71} // namespace Aws
void SetComparison(Comparison value)
Definition Threshold.h:47
AWS_CONNECT_API Threshold & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API Threshold()=default
double GetThresholdValue() const
Definition Threshold.h:55
Comparison GetComparison() const
Definition Threshold.h:45
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
bool ThresholdValueHasBeenSet() const
Definition Threshold.h:56
bool ComparisonHasBeenSet() const
Definition Threshold.h:46
void SetThresholdValue(double value)
Definition Threshold.h:57
Threshold & WithComparison(Comparison value)
Definition Threshold.h:48
Threshold & WithThresholdValue(double value)
Definition Threshold.h:58
AWS_CONNECT_API Threshold(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue