AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
DecimalCondition.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/DecimalComparisonType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Connect {
21namespace Model {
22
29 public:
30 AWS_CONNECT_API DecimalCondition() = default;
31 AWS_CONNECT_API DecimalCondition(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetFieldName() const { return m_fieldName; }
40 inline bool FieldNameHasBeenSet() const { return m_fieldNameHasBeenSet; }
41 template <typename FieldNameT = Aws::String>
42 void SetFieldName(FieldNameT&& value) {
43 m_fieldNameHasBeenSet = true;
44 m_fieldName = std::forward<FieldNameT>(value);
45 }
46 template <typename FieldNameT = Aws::String>
47 DecimalCondition& WithFieldName(FieldNameT&& value) {
48 SetFieldName(std::forward<FieldNameT>(value));
49 return *this;
50 }
52
54
57 inline double GetMinValue() const { return m_minValue; }
58 inline bool MinValueHasBeenSet() const { return m_minValueHasBeenSet; }
59 inline void SetMinValue(double value) {
60 m_minValueHasBeenSet = true;
61 m_minValue = value;
62 }
63 inline DecimalCondition& WithMinValue(double value) {
64 SetMinValue(value);
65 return *this;
66 }
68
70
73 inline double GetMaxValue() const { return m_maxValue; }
74 inline bool MaxValueHasBeenSet() const { return m_maxValueHasBeenSet; }
75 inline void SetMaxValue(double value) {
76 m_maxValueHasBeenSet = true;
77 m_maxValue = value;
78 }
79 inline DecimalCondition& WithMaxValue(double value) {
80 SetMaxValue(value);
81 return *this;
82 }
84
86
89 inline DecimalComparisonType GetComparisonType() const { return m_comparisonType; }
90 inline bool ComparisonTypeHasBeenSet() const { return m_comparisonTypeHasBeenSet; }
92 m_comparisonTypeHasBeenSet = true;
93 m_comparisonType = value;
94 }
96 SetComparisonType(value);
97 return *this;
98 }
100 private:
101 Aws::String m_fieldName;
102
103 double m_minValue{0.0};
104
105 double m_maxValue{0.0};
106
108 bool m_fieldNameHasBeenSet = false;
109 bool m_minValueHasBeenSet = false;
110 bool m_maxValueHasBeenSet = false;
111 bool m_comparisonTypeHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace Connect
116} // namespace Aws
DecimalComparisonType GetComparisonType() const
void SetComparisonType(DecimalComparisonType value)
DecimalCondition & WithComparisonType(DecimalComparisonType value)
AWS_CONNECT_API DecimalCondition()=default
void SetFieldName(FieldNameT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
DecimalCondition & WithFieldName(FieldNameT &&value)
DecimalCondition & WithMinValue(double value)
AWS_CONNECT_API DecimalCondition(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API DecimalCondition & operator=(Aws::Utils::Json::JsonView jsonValue)
DecimalCondition & WithMaxValue(double value)
const Aws::String & GetFieldName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue