AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Connect {
20namespace Model {
21
28class Threshold {
29 public:
30 AWS_CONNECT_API Threshold() = default;
31 AWS_CONNECT_API Threshold(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CONNECT_API Threshold& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline Comparison GetComparison() const { return m_comparison; }
40 inline bool ComparisonHasBeenSet() const { return m_comparisonHasBeenSet; }
41 inline void SetComparison(Comparison value) {
42 m_comparisonHasBeenSet = true;
43 m_comparison = value;
44 }
46 SetComparison(value);
47 return *this;
48 }
50
52
55 inline double GetThresholdValue() const { return m_thresholdValue; }
56 inline bool ThresholdValueHasBeenSet() const { return m_thresholdValueHasBeenSet; }
57 inline void SetThresholdValue(double value) {
58 m_thresholdValueHasBeenSet = true;
59 m_thresholdValue = value;
60 }
61 inline Threshold& WithThresholdValue(double value) {
62 SetThresholdValue(value);
63 return *this;
64 }
66 private:
67 Comparison m_comparison{Comparison::NOT_SET};
68
69 double m_thresholdValue{0.0};
70 bool m_comparisonHasBeenSet = false;
71 bool m_thresholdValueHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace Connect
76} // namespace Aws
void SetComparison(Comparison value)
Definition Threshold.h:41
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:39
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
bool ThresholdValueHasBeenSet() const
Definition Threshold.h:56
bool ComparisonHasBeenSet() const
Definition Threshold.h:40
void SetThresholdValue(double value)
Definition Threshold.h:57
Threshold & WithComparison(Comparison value)
Definition Threshold.h:45
Threshold & WithThresholdValue(double value)
Definition Threshold.h:61
AWS_CONNECT_API Threshold(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue