AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ThresholdV2.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.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 ThresholdV2() = default;
36 AWS_CONNECT_API ThresholdV2(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetComparison() const { return m_comparison; }
47 inline bool ComparisonHasBeenSet() const { return m_comparisonHasBeenSet; }
48 template<typename ComparisonT = Aws::String>
49 void SetComparison(ComparisonT&& value) { m_comparisonHasBeenSet = true; m_comparison = std::forward<ComparisonT>(value); }
50 template<typename ComparisonT = Aws::String>
51 ThresholdV2& WithComparison(ComparisonT&& value) { SetComparison(std::forward<ComparisonT>(value)); return *this;}
53
55
58 inline double GetThresholdValue() const { return m_thresholdValue; }
59 inline bool ThresholdValueHasBeenSet() const { return m_thresholdValueHasBeenSet; }
60 inline void SetThresholdValue(double value) { m_thresholdValueHasBeenSet = true; m_thresholdValue = value; }
61 inline ThresholdV2& WithThresholdValue(double value) { SetThresholdValue(value); return *this;}
63 private:
64
65 Aws::String m_comparison;
66 bool m_comparisonHasBeenSet = false;
67
68 double m_thresholdValue{0.0};
69 bool m_thresholdValueHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace Connect
74} // namespace Aws
AWS_CONNECT_API ThresholdV2 & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetThresholdValue(double value)
Definition ThresholdV2.h:60
ThresholdV2 & WithThresholdValue(double value)
Definition ThresholdV2.h:61
AWS_CONNECT_API ThresholdV2(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetComparison() const
Definition ThresholdV2.h:46
ThresholdV2 & WithComparison(ComparisonT &&value)
Definition ThresholdV2.h:51
void SetComparison(ComparisonT &&value)
Definition ThresholdV2.h:49
AWS_CONNECT_API ThresholdV2()=default
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue