AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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
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
29 public:
30 AWS_CONNECT_API ThresholdV2() = default;
31 AWS_CONNECT_API ThresholdV2(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetComparison() const { return m_comparison; }
41 inline bool ComparisonHasBeenSet() const { return m_comparisonHasBeenSet; }
42 template <typename ComparisonT = Aws::String>
43 void SetComparison(ComparisonT&& value) {
44 m_comparisonHasBeenSet = true;
45 m_comparison = std::forward<ComparisonT>(value);
46 }
47 template <typename ComparisonT = Aws::String>
48 ThresholdV2& WithComparison(ComparisonT&& value) {
49 SetComparison(std::forward<ComparisonT>(value));
50 return *this;
51 }
53
55
58 inline double GetThresholdValue() const { return m_thresholdValue; }
59 inline bool ThresholdValueHasBeenSet() const { return m_thresholdValueHasBeenSet; }
60 inline void SetThresholdValue(double value) {
61 m_thresholdValueHasBeenSet = true;
62 m_thresholdValue = value;
63 }
64 inline ThresholdV2& WithThresholdValue(double value) {
65 SetThresholdValue(value);
66 return *this;
67 }
69 private:
70 Aws::String m_comparison;
71
72 double m_thresholdValue{0.0};
73 bool m_comparisonHasBeenSet = false;
74 bool m_thresholdValueHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace Connect
79} // 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:64
AWS_CONNECT_API ThresholdV2(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetComparison() const
Definition ThresholdV2.h:40
ThresholdV2 & WithComparison(ComparisonT &&value)
Definition ThresholdV2.h:48
void SetComparison(ComparisonT &&value)
Definition ThresholdV2.h:43
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