AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
AttributeCondition.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/MatchCriteria.h>
9#include <aws/connect/model/Range.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Connect {
22namespace Model {
23
31 public:
32 AWS_CONNECT_API AttributeCondition() = default;
35 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 AttributeCondition& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetValue() const { return m_value; }
60 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
61 template <typename ValueT = Aws::String>
62 void SetValue(ValueT&& value) {
63 m_valueHasBeenSet = true;
64 m_value = std::forward<ValueT>(value);
65 }
66 template <typename ValueT = Aws::String>
67 AttributeCondition& WithValue(ValueT&& value) {
68 SetValue(std::forward<ValueT>(value));
69 return *this;
70 }
72
74
77 inline double GetProficiencyLevel() const { return m_proficiencyLevel; }
78 inline bool ProficiencyLevelHasBeenSet() const { return m_proficiencyLevelHasBeenSet; }
79 inline void SetProficiencyLevel(double value) {
80 m_proficiencyLevelHasBeenSet = true;
81 m_proficiencyLevel = value;
82 }
85 return *this;
86 }
88
90
93 inline const Range& GetRange() const { return m_range; }
94 inline bool RangeHasBeenSet() const { return m_rangeHasBeenSet; }
95 template <typename RangeT = Range>
96 void SetRange(RangeT&& value) {
97 m_rangeHasBeenSet = true;
98 m_range = std::forward<RangeT>(value);
99 }
100 template <typename RangeT = Range>
101 AttributeCondition& WithRange(RangeT&& value) {
102 SetRange(std::forward<RangeT>(value));
103 return *this;
104 }
106
108
111 inline const MatchCriteria& GetMatchCriteria() const { return m_matchCriteria; }
112 inline bool MatchCriteriaHasBeenSet() const { return m_matchCriteriaHasBeenSet; }
113 template <typename MatchCriteriaT = MatchCriteria>
114 void SetMatchCriteria(MatchCriteriaT&& value) {
115 m_matchCriteriaHasBeenSet = true;
116 m_matchCriteria = std::forward<MatchCriteriaT>(value);
117 }
118 template <typename MatchCriteriaT = MatchCriteria>
119 AttributeCondition& WithMatchCriteria(MatchCriteriaT&& value) {
120 SetMatchCriteria(std::forward<MatchCriteriaT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetComparisonOperator() const { return m_comparisonOperator; }
130 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
131 template <typename ComparisonOperatorT = Aws::String>
132 void SetComparisonOperator(ComparisonOperatorT&& value) {
133 m_comparisonOperatorHasBeenSet = true;
134 m_comparisonOperator = std::forward<ComparisonOperatorT>(value);
135 }
136 template <typename ComparisonOperatorT = Aws::String>
137 AttributeCondition& WithComparisonOperator(ComparisonOperatorT&& value) {
138 SetComparisonOperator(std::forward<ComparisonOperatorT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_name;
144
145 Aws::String m_value;
146
147 double m_proficiencyLevel{0.0};
148
149 Range m_range;
150
151 MatchCriteria m_matchCriteria;
152
153 Aws::String m_comparisonOperator;
154 bool m_nameHasBeenSet = false;
155 bool m_valueHasBeenSet = false;
156 bool m_proficiencyLevelHasBeenSet = false;
157 bool m_rangeHasBeenSet = false;
158 bool m_matchCriteriaHasBeenSet = false;
159 bool m_comparisonOperatorHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace Connect
164} // namespace Aws
AttributeCondition & WithRange(RangeT &&value)
AttributeCondition & WithMatchCriteria(MatchCriteriaT &&value)
void SetComparisonOperator(ComparisonOperatorT &&value)
AttributeCondition & WithProficiencyLevel(double value)
AttributeCondition & WithValue(ValueT &&value)
AWS_CONNECT_API AttributeCondition & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API AttributeCondition(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API AttributeCondition()=default
const MatchCriteria & GetMatchCriteria() const
const Aws::String & GetComparisonOperator() const
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AttributeCondition & WithName(NameT &&value)
AttributeCondition & WithComparisonOperator(ComparisonOperatorT &&value)
void SetMatchCriteria(MatchCriteriaT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue