AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NumberCondition.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/connect/model/NumberComparisonType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Connect
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_CONNECT_API NumberCondition();
38 AWS_CONNECT_API NumberCondition(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetFieldName() const{ return m_fieldName; }
48 inline bool FieldNameHasBeenSet() const { return m_fieldNameHasBeenSet; }
49 inline void SetFieldName(const Aws::String& value) { m_fieldNameHasBeenSet = true; m_fieldName = value; }
50 inline void SetFieldName(Aws::String&& value) { m_fieldNameHasBeenSet = true; m_fieldName = std::move(value); }
51 inline void SetFieldName(const char* value) { m_fieldNameHasBeenSet = true; m_fieldName.assign(value); }
52 inline NumberCondition& WithFieldName(const Aws::String& value) { SetFieldName(value); return *this;}
53 inline NumberCondition& WithFieldName(Aws::String&& value) { SetFieldName(std::move(value)); return *this;}
54 inline NumberCondition& WithFieldName(const char* value) { SetFieldName(value); return *this;}
56
58
61 inline int GetMinValue() const{ return m_minValue; }
62 inline bool MinValueHasBeenSet() const { return m_minValueHasBeenSet; }
63 inline void SetMinValue(int value) { m_minValueHasBeenSet = true; m_minValue = value; }
64 inline NumberCondition& WithMinValue(int value) { SetMinValue(value); return *this;}
66
68
71 inline int GetMaxValue() const{ return m_maxValue; }
72 inline bool MaxValueHasBeenSet() const { return m_maxValueHasBeenSet; }
73 inline void SetMaxValue(int value) { m_maxValueHasBeenSet = true; m_maxValue = value; }
74 inline NumberCondition& WithMaxValue(int value) { SetMaxValue(value); return *this;}
76
78
81 inline const NumberComparisonType& GetComparisonType() const{ return m_comparisonType; }
82 inline bool ComparisonTypeHasBeenSet() const { return m_comparisonTypeHasBeenSet; }
83 inline void SetComparisonType(const NumberComparisonType& value) { m_comparisonTypeHasBeenSet = true; m_comparisonType = value; }
84 inline void SetComparisonType(NumberComparisonType&& value) { m_comparisonTypeHasBeenSet = true; m_comparisonType = std::move(value); }
85 inline NumberCondition& WithComparisonType(const NumberComparisonType& value) { SetComparisonType(value); return *this;}
86 inline NumberCondition& WithComparisonType(NumberComparisonType&& value) { SetComparisonType(std::move(value)); return *this;}
88 private:
89
90 Aws::String m_fieldName;
91 bool m_fieldNameHasBeenSet = false;
92
93 int m_minValue;
94 bool m_minValueHasBeenSet = false;
95
96 int m_maxValue;
97 bool m_maxValueHasBeenSet = false;
98
99 NumberComparisonType m_comparisonType;
100 bool m_comparisonTypeHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace Connect
105} // namespace Aws
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
NumberCondition & WithComparisonType(const NumberComparisonType &value)
AWS_CONNECT_API NumberCondition(Aws::Utils::Json::JsonView jsonValue)
const NumberComparisonType & GetComparisonType() const
NumberCondition & WithComparisonType(NumberComparisonType &&value)
NumberCondition & WithMaxValue(int value)
void SetFieldName(Aws::String &&value)
NumberCondition & WithFieldName(Aws::String &&value)
NumberCondition & WithFieldName(const char *value)
NumberCondition & WithFieldName(const Aws::String &value)
void SetComparisonType(const NumberComparisonType &value)
void SetFieldName(const Aws::String &value)
NumberCondition & WithMinValue(int value)
const Aws::String & GetFieldName() const
void SetFieldName(const char *value)
AWS_CONNECT_API NumberCondition & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetComparisonType(NumberComparisonType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue