AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AttributeCondition.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/Range.h>
10#include <aws/connect/model/MatchCriteria.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Connect
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CONNECT_API AttributeCondition() = default;
40 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 AttributeCondition& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
63 template<typename ValueT = Aws::String>
64 AttributeCondition& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
66
68
71 inline double GetProficiencyLevel() const { return m_proficiencyLevel; }
72 inline bool ProficiencyLevelHasBeenSet() const { return m_proficiencyLevelHasBeenSet; }
73 inline void SetProficiencyLevel(double value) { m_proficiencyLevelHasBeenSet = true; m_proficiencyLevel = value; }
74 inline AttributeCondition& WithProficiencyLevel(double value) { SetProficiencyLevel(value); return *this;}
76
78
81 inline const Range& GetRange() const { return m_range; }
82 inline bool RangeHasBeenSet() const { return m_rangeHasBeenSet; }
83 template<typename RangeT = Range>
84 void SetRange(RangeT&& value) { m_rangeHasBeenSet = true; m_range = std::forward<RangeT>(value); }
85 template<typename RangeT = Range>
86 AttributeCondition& WithRange(RangeT&& value) { SetRange(std::forward<RangeT>(value)); return *this;}
88
90
93 inline const MatchCriteria& GetMatchCriteria() const { return m_matchCriteria; }
94 inline bool MatchCriteriaHasBeenSet() const { return m_matchCriteriaHasBeenSet; }
95 template<typename MatchCriteriaT = MatchCriteria>
96 void SetMatchCriteria(MatchCriteriaT&& value) { m_matchCriteriaHasBeenSet = true; m_matchCriteria = std::forward<MatchCriteriaT>(value); }
97 template<typename MatchCriteriaT = MatchCriteria>
98 AttributeCondition& WithMatchCriteria(MatchCriteriaT&& value) { SetMatchCriteria(std::forward<MatchCriteriaT>(value)); return *this;}
100
102
105 inline const Aws::String& GetComparisonOperator() const { return m_comparisonOperator; }
106 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
107 template<typename ComparisonOperatorT = Aws::String>
108 void SetComparisonOperator(ComparisonOperatorT&& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = std::forward<ComparisonOperatorT>(value); }
109 template<typename ComparisonOperatorT = Aws::String>
110 AttributeCondition& WithComparisonOperator(ComparisonOperatorT&& value) { SetComparisonOperator(std::forward<ComparisonOperatorT>(value)); return *this;}
112 private:
113
114 Aws::String m_name;
115 bool m_nameHasBeenSet = false;
116
117 Aws::String m_value;
118 bool m_valueHasBeenSet = false;
119
120 double m_proficiencyLevel{0.0};
121 bool m_proficiencyLevelHasBeenSet = false;
122
123 Range m_range;
124 bool m_rangeHasBeenSet = false;
125
126 MatchCriteria m_matchCriteria;
127 bool m_matchCriteriaHasBeenSet = false;
128
129 Aws::String m_comparisonOperator;
130 bool m_comparisonOperatorHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace Connect
135} // 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