AWS SDK for C++  1.9.147
AWS SDK for C++
Threshold.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Connect
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Comparison& GetComparison() const{ return m_comparison; }
45 
49  inline bool ComparisonHasBeenSet() const { return m_comparisonHasBeenSet; }
50 
54  inline void SetComparison(const Comparison& value) { m_comparisonHasBeenSet = true; m_comparison = value; }
55 
59  inline void SetComparison(Comparison&& value) { m_comparisonHasBeenSet = true; m_comparison = std::move(value); }
60 
64  inline Threshold& WithComparison(const Comparison& value) { SetComparison(value); return *this;}
65 
69  inline Threshold& WithComparison(Comparison&& value) { SetComparison(std::move(value)); return *this;}
70 
71 
75  inline double GetThresholdValue() const{ return m_thresholdValue; }
76 
80  inline bool ThresholdValueHasBeenSet() const { return m_thresholdValueHasBeenSet; }
81 
85  inline void SetThresholdValue(double value) { m_thresholdValueHasBeenSet = true; m_thresholdValue = value; }
86 
90  inline Threshold& WithThresholdValue(double value) { SetThresholdValue(value); return *this;}
91 
92  private:
93 
94  Comparison m_comparison;
95  bool m_comparisonHasBeenSet;
96 
97  double m_thresholdValue;
98  bool m_thresholdValueHasBeenSet;
99  };
100 
101 } // namespace Model
102 } // namespace Connect
103 } // namespace Aws
Aws::Connect::Model::Threshold::operator=
Threshold & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Connect::Model::Threshold::Threshold
Threshold()
Aws::Connect::Model::Threshold::ComparisonHasBeenSet
bool ComparisonHasBeenSet() const
Definition: Threshold.h:49
Aws::Connect::Model::Threshold::Threshold
Threshold(Aws::Utils::Json::JsonView jsonValue)
Aws::Connect::Model::Comparison
Comparison
Definition: Comparison.h:17
Aws::Connect::Model::Threshold::GetThresholdValue
double GetThresholdValue() const
Definition: Threshold.h:75
Aws::Connect::Model::Threshold::GetComparison
const Comparison & GetComparison() const
Definition: Threshold.h:44
Aws::Connect::Model::Threshold::WithComparison
Threshold & WithComparison(const Comparison &value)
Definition: Threshold.h:64
Aws::Connect::Model::Threshold
Definition: Threshold.h:33
Aws::Connect::Model::Threshold::SetComparison
void SetComparison(Comparison &&value)
Definition: Threshold.h:59
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Connect::Model::Threshold::WithThresholdValue
Threshold & WithThresholdValue(double value)
Definition: Threshold.h:90
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Connect::Model::Threshold::ThresholdValueHasBeenSet
bool ThresholdValueHasBeenSet() const
Definition: Threshold.h:80
Aws::Connect::Model::Threshold::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Connect::Model::Threshold::SetThresholdValue
void SetThresholdValue(double value)
Definition: Threshold.h:85
Aws::Connect::Model::Threshold::WithComparison
Threshold & WithComparison(Comparison &&value)
Definition: Threshold.h:69
Aws::Connect::Model::Threshold::SetComparison
void SetComparison(const Comparison &value)
Definition: Threshold.h:54
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Connect_EXPORTS.h
Comparison.h