AWS SDK for C++

AWS SDK for C++ Version 1.11.771

Loading...
Searching...
No Matches
QualificationRequirement.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/mturk-requester/MTurk_EXPORTS.h>
10#include <aws/mturk-requester/model/Comparator.h>
11#include <aws/mturk-requester/model/HITAccessActions.h>
12#include <aws/mturk-requester/model/Locale.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace MTurk {
24namespace Model {
25
35 public:
36 AWS_MTURK_API QualificationRequirement() = default;
39 AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetQualificationTypeId() const { return m_qualificationTypeId; }
46 inline bool QualificationTypeIdHasBeenSet() const { return m_qualificationTypeIdHasBeenSet; }
47 template <typename QualificationTypeIdT = Aws::String>
48 void SetQualificationTypeId(QualificationTypeIdT&& value) {
49 m_qualificationTypeIdHasBeenSet = true;
50 m_qualificationTypeId = std::forward<QualificationTypeIdT>(value);
51 }
52 template <typename QualificationTypeIdT = Aws::String>
53 QualificationRequirement& WithQualificationTypeId(QualificationTypeIdT&& value) {
54 SetQualificationTypeId(std::forward<QualificationTypeIdT>(value));
55 return *this;
56 }
58
60
70 inline Comparator GetComparator() const { return m_comparator; }
71 inline bool ComparatorHasBeenSet() const { return m_comparatorHasBeenSet; }
72 inline void SetComparator(Comparator value) {
73 m_comparatorHasBeenSet = true;
74 m_comparator = value;
75 }
77 SetComparator(value);
78 return *this;
79 }
81
83
91 inline const Aws::Vector<int>& GetIntegerValues() const { return m_integerValues; }
92 inline bool IntegerValuesHasBeenSet() const { return m_integerValuesHasBeenSet; }
93 template <typename IntegerValuesT = Aws::Vector<int>>
94 void SetIntegerValues(IntegerValuesT&& value) {
95 m_integerValuesHasBeenSet = true;
96 m_integerValues = std::forward<IntegerValuesT>(value);
97 }
98 template <typename IntegerValuesT = Aws::Vector<int>>
100 SetIntegerValues(std::forward<IntegerValuesT>(value));
101 return *this;
102 }
104 m_integerValuesHasBeenSet = true;
105 m_integerValues.push_back(value);
106 return *this;
107 }
109
111
121 inline const Aws::Vector<Locale>& GetLocaleValues() const { return m_localeValues; }
122 inline bool LocaleValuesHasBeenSet() const { return m_localeValuesHasBeenSet; }
123 template <typename LocaleValuesT = Aws::Vector<Locale>>
124 void SetLocaleValues(LocaleValuesT&& value) {
125 m_localeValuesHasBeenSet = true;
126 m_localeValues = std::forward<LocaleValuesT>(value);
127 }
128 template <typename LocaleValuesT = Aws::Vector<Locale>>
130 SetLocaleValues(std::forward<LocaleValuesT>(value));
131 return *this;
132 }
133 template <typename LocaleValuesT = Locale>
135 m_localeValuesHasBeenSet = true;
136 m_localeValues.emplace_back(std::forward<LocaleValuesT>(value));
137 return *this;
138 }
140
142
161 inline HITAccessActions GetActionsGuarded() const { return m_actionsGuarded; }
162 inline bool ActionsGuardedHasBeenSet() const { return m_actionsGuardedHasBeenSet; }
164 m_actionsGuardedHasBeenSet = true;
165 m_actionsGuarded = value;
166 }
168 SetActionsGuarded(value);
169 return *this;
170 }
172 private:
173 Aws::String m_qualificationTypeId;
174
175 Comparator m_comparator{Comparator::NOT_SET};
176
177 Aws::Vector<int> m_integerValues;
178
179 Aws::Vector<Locale> m_localeValues;
180
182 bool m_qualificationTypeIdHasBeenSet = false;
183 bool m_comparatorHasBeenSet = false;
184 bool m_integerValuesHasBeenSet = false;
185 bool m_localeValuesHasBeenSet = false;
186 bool m_actionsGuardedHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace MTurk
191} // namespace Aws
AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const
void SetQualificationTypeId(QualificationTypeIdT &&value)
QualificationRequirement & AddLocaleValues(LocaleValuesT &&value)
AWS_MTURK_API QualificationRequirement & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MTURK_API QualificationRequirement(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Locale > & GetLocaleValues() const
AWS_MTURK_API QualificationRequirement()=default
QualificationRequirement & AddIntegerValues(int value)
QualificationRequirement & WithLocaleValues(LocaleValuesT &&value)
QualificationRequirement & WithQualificationTypeId(QualificationTypeIdT &&value)
QualificationRequirement & WithActionsGuarded(HITAccessActions value)
QualificationRequirement & WithIntegerValues(IntegerValuesT &&value)
const Aws::Vector< int > & GetIntegerValues() const
QualificationRequirement & WithComparator(Comparator value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue