AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const Comparison& GetComparison() const{ return m_comparison; }
46 inline bool ComparisonHasBeenSet() const { return m_comparisonHasBeenSet; }
47 inline void SetComparison(const Comparison& value) { m_comparisonHasBeenSet = true; m_comparison = value; }
48 inline void SetComparison(Comparison&& value) { m_comparisonHasBeenSet = true; m_comparison = std::move(value); }
49 inline Threshold& WithComparison(const Comparison& value) { SetComparison(value); return *this;}
50 inline Threshold& WithComparison(Comparison&& value) { SetComparison(std::move(value)); return *this;}
52
54
57 inline double GetThresholdValue() const{ return m_thresholdValue; }
58 inline bool ThresholdValueHasBeenSet() const { return m_thresholdValueHasBeenSet; }
59 inline void SetThresholdValue(double value) { m_thresholdValueHasBeenSet = true; m_thresholdValue = value; }
60 inline Threshold& WithThresholdValue(double value) { SetThresholdValue(value); return *this;}
62 private:
63
64 Comparison m_comparison;
65 bool m_comparisonHasBeenSet = false;
66
67 double m_thresholdValue;
68 bool m_thresholdValueHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace Connect
73} // namespace Aws
const Comparison & GetComparison() const
Definition Threshold.h:45
AWS_CONNECT_API Threshold & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetComparison(const Comparison &value)
Definition Threshold.h:47
Threshold & WithComparison(const Comparison &value)
Definition Threshold.h:49
double GetThresholdValue() const
Definition Threshold.h:57
Threshold & WithComparison(Comparison &&value)
Definition Threshold.h:50
void SetComparison(Comparison &&value)
Definition Threshold.h:48
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
bool ThresholdValueHasBeenSet() const
Definition Threshold.h:58
bool ComparisonHasBeenSet() const
Definition Threshold.h:46
void SetThresholdValue(double value)
Definition Threshold.h:59
Threshold & WithThresholdValue(double value)
Definition Threshold.h:60
AWS_CONNECT_API Threshold(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue