AWS SDK for C++  1.9.105
AWS SDK for C++
UpdateQualificationTypeRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace MTurk
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "UpdateQualificationType"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetQualificationTypeId() const{ return m_qualificationTypeId; }
42 
46  inline bool QualificationTypeIdHasBeenSet() const { return m_qualificationTypeIdHasBeenSet; }
47 
51  inline void SetQualificationTypeId(const Aws::String& value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId = value; }
52 
56  inline void SetQualificationTypeId(Aws::String&& value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId = std::move(value); }
57 
61  inline void SetQualificationTypeId(const char* value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId.assign(value); }
62 
66  inline UpdateQualificationTypeRequest& WithQualificationTypeId(const Aws::String& value) { SetQualificationTypeId(value); return *this;}
67 
71  inline UpdateQualificationTypeRequest& WithQualificationTypeId(Aws::String&& value) { SetQualificationTypeId(std::move(value)); return *this;}
72 
76  inline UpdateQualificationTypeRequest& WithQualificationTypeId(const char* value) { SetQualificationTypeId(value); return *this;}
77 
78 
82  inline const Aws::String& GetDescription() const{ return m_description; }
83 
87  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
88 
92  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
93 
97  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
98 
102  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
103 
107  inline UpdateQualificationTypeRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
108 
112  inline UpdateQualificationTypeRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
113 
117  inline UpdateQualificationTypeRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
118 
119 
123  inline const QualificationTypeStatus& GetQualificationTypeStatus() const{ return m_qualificationTypeStatus; }
124 
128  inline bool QualificationTypeStatusHasBeenSet() const { return m_qualificationTypeStatusHasBeenSet; }
129 
133  inline void SetQualificationTypeStatus(const QualificationTypeStatus& value) { m_qualificationTypeStatusHasBeenSet = true; m_qualificationTypeStatus = value; }
134 
138  inline void SetQualificationTypeStatus(QualificationTypeStatus&& value) { m_qualificationTypeStatusHasBeenSet = true; m_qualificationTypeStatus = std::move(value); }
139 
143  inline UpdateQualificationTypeRequest& WithQualificationTypeStatus(const QualificationTypeStatus& value) { SetQualificationTypeStatus(value); return *this;}
144 
148  inline UpdateQualificationTypeRequest& WithQualificationTypeStatus(QualificationTypeStatus&& value) { SetQualificationTypeStatus(std::move(value)); return *this;}
149 
150 
160  inline const Aws::String& GetTest() const{ return m_test; }
161 
171  inline bool TestHasBeenSet() const { return m_testHasBeenSet; }
172 
182  inline void SetTest(const Aws::String& value) { m_testHasBeenSet = true; m_test = value; }
183 
193  inline void SetTest(Aws::String&& value) { m_testHasBeenSet = true; m_test = std::move(value); }
194 
204  inline void SetTest(const char* value) { m_testHasBeenSet = true; m_test.assign(value); }
205 
215  inline UpdateQualificationTypeRequest& WithTest(const Aws::String& value) { SetTest(value); return *this;}
216 
226  inline UpdateQualificationTypeRequest& WithTest(Aws::String&& value) { SetTest(std::move(value)); return *this;}
227 
237  inline UpdateQualificationTypeRequest& WithTest(const char* value) { SetTest(value); return *this;}
238 
239 
244  inline const Aws::String& GetAnswerKey() const{ return m_answerKey; }
245 
250  inline bool AnswerKeyHasBeenSet() const { return m_answerKeyHasBeenSet; }
251 
256  inline void SetAnswerKey(const Aws::String& value) { m_answerKeyHasBeenSet = true; m_answerKey = value; }
257 
262  inline void SetAnswerKey(Aws::String&& value) { m_answerKeyHasBeenSet = true; m_answerKey = std::move(value); }
263 
268  inline void SetAnswerKey(const char* value) { m_answerKeyHasBeenSet = true; m_answerKey.assign(value); }
269 
274  inline UpdateQualificationTypeRequest& WithAnswerKey(const Aws::String& value) { SetAnswerKey(value); return *this;}
275 
280  inline UpdateQualificationTypeRequest& WithAnswerKey(Aws::String&& value) { SetAnswerKey(std::move(value)); return *this;}
281 
286  inline UpdateQualificationTypeRequest& WithAnswerKey(const char* value) { SetAnswerKey(value); return *this;}
287 
288 
293  inline long long GetTestDurationInSeconds() const{ return m_testDurationInSeconds; }
294 
299  inline bool TestDurationInSecondsHasBeenSet() const { return m_testDurationInSecondsHasBeenSet; }
300 
305  inline void SetTestDurationInSeconds(long long value) { m_testDurationInSecondsHasBeenSet = true; m_testDurationInSeconds = value; }
306 
311  inline UpdateQualificationTypeRequest& WithTestDurationInSeconds(long long value) { SetTestDurationInSeconds(value); return *this;}
312 
313 
323  inline long long GetRetryDelayInSeconds() const{ return m_retryDelayInSeconds; }
324 
334  inline bool RetryDelayInSecondsHasBeenSet() const { return m_retryDelayInSecondsHasBeenSet; }
335 
345  inline void SetRetryDelayInSeconds(long long value) { m_retryDelayInSecondsHasBeenSet = true; m_retryDelayInSeconds = value; }
346 
356  inline UpdateQualificationTypeRequest& WithRetryDelayInSeconds(long long value) { SetRetryDelayInSeconds(value); return *this;}
357 
358 
365  inline bool GetAutoGranted() const{ return m_autoGranted; }
366 
373  inline bool AutoGrantedHasBeenSet() const { return m_autoGrantedHasBeenSet; }
374 
381  inline void SetAutoGranted(bool value) { m_autoGrantedHasBeenSet = true; m_autoGranted = value; }
382 
389  inline UpdateQualificationTypeRequest& WithAutoGranted(bool value) { SetAutoGranted(value); return *this;}
390 
391 
396  inline int GetAutoGrantedValue() const{ return m_autoGrantedValue; }
397 
402  inline bool AutoGrantedValueHasBeenSet() const { return m_autoGrantedValueHasBeenSet; }
403 
408  inline void SetAutoGrantedValue(int value) { m_autoGrantedValueHasBeenSet = true; m_autoGrantedValue = value; }
409 
414  inline UpdateQualificationTypeRequest& WithAutoGrantedValue(int value) { SetAutoGrantedValue(value); return *this;}
415 
416  private:
417 
418  Aws::String m_qualificationTypeId;
419  bool m_qualificationTypeIdHasBeenSet;
420 
421  Aws::String m_description;
422  bool m_descriptionHasBeenSet;
423 
424  QualificationTypeStatus m_qualificationTypeStatus;
425  bool m_qualificationTypeStatusHasBeenSet;
426 
427  Aws::String m_test;
428  bool m_testHasBeenSet;
429 
430  Aws::String m_answerKey;
431  bool m_answerKeyHasBeenSet;
432 
433  long long m_testDurationInSeconds;
434  bool m_testDurationInSecondsHasBeenSet;
435 
436  long long m_retryDelayInSeconds;
437  bool m_retryDelayInSecondsHasBeenSet;
438 
439  bool m_autoGranted;
440  bool m_autoGrantedHasBeenSet;
441 
442  int m_autoGrantedValue;
443  bool m_autoGrantedValueHasBeenSet;
444  };
445 
446 } // namespace Model
447 } // namespace MTurk
448 } // namespace Aws
Aws::MTurk::Model::UpdateQualificationTypeRequest::GetQualificationTypeStatus
const QualificationTypeStatus & GetQualificationTypeStatus() const
Definition: UpdateQualificationTypeRequest.h:123
Aws::MTurk::Model::UpdateQualificationTypeRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: UpdateQualificationTypeRequest.h:92
Aws::MTurk::Model::UpdateQualificationTypeRequest::SetAutoGranted
void SetAutoGranted(bool value)
Definition: UpdateQualificationTypeRequest.h:381
Aws::MTurk::Model::UpdateQualificationTypeRequest::GetTestDurationInSeconds
long long GetTestDurationInSeconds() const
Definition: UpdateQualificationTypeRequest.h:293
Aws::MTurk::Model::UpdateQualificationTypeRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::MTurk::Model::UpdateQualificationTypeRequest::WithQualificationTypeStatus
UpdateQualificationTypeRequest & WithQualificationTypeStatus(QualificationTypeStatus &&value)
Definition: UpdateQualificationTypeRequest.h:148
Aws::MTurk::Model::UpdateQualificationTypeRequest::GetAutoGrantedValue
int GetAutoGrantedValue() const
Definition: UpdateQualificationTypeRequest.h:396
Aws::MTurk::Model::UpdateQualificationTypeRequest::WithQualificationTypeId
UpdateQualificationTypeRequest & WithQualificationTypeId(Aws::String &&value)
Definition: UpdateQualificationTypeRequest.h:71
Aws::MTurk::Model::UpdateQualificationTypeRequest::WithAnswerKey
UpdateQualificationTypeRequest & WithAnswerKey(Aws::String &&value)
Definition: UpdateQualificationTypeRequest.h:280
Aws::MTurk::Model::UpdateQualificationTypeRequest::WithAutoGranted
UpdateQualificationTypeRequest & WithAutoGranted(bool value)
Definition: UpdateQualificationTypeRequest.h:389
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::MTurk::Model::UpdateQualificationTypeRequest
Definition: UpdateQualificationTypeRequest.h:23
Aws::MTurk::Model::UpdateQualificationTypeRequest::WithDescription
UpdateQualificationTypeRequest & WithDescription(Aws::String &&value)
Definition: UpdateQualificationTypeRequest.h:112
Aws::MTurk::Model::UpdateQualificationTypeRequest::SetRetryDelayInSeconds
void SetRetryDelayInSeconds(long long value)
Definition: UpdateQualificationTypeRequest.h:345
Aws::MTurk::Model::UpdateQualificationTypeRequest::GetRetryDelayInSeconds
long long GetRetryDelayInSeconds() const
Definition: UpdateQualificationTypeRequest.h:323
Aws::MTurk::Model::UpdateQualificationTypeRequest::GetDescription
const Aws::String & GetDescription() const
Definition: UpdateQualificationTypeRequest.h:82
Aws::MTurk::Model::UpdateQualificationTypeRequest::WithAutoGrantedValue
UpdateQualificationTypeRequest & WithAutoGrantedValue(int value)
Definition: UpdateQualificationTypeRequest.h:414
Aws::MTurk::Model::UpdateQualificationTypeRequest::SetQualificationTypeId
void SetQualificationTypeId(const char *value)
Definition: UpdateQualificationTypeRequest.h:61
Aws::MTurk::Model::UpdateQualificationTypeRequest::AutoGrantedValueHasBeenSet
bool AutoGrantedValueHasBeenSet() const
Definition: UpdateQualificationTypeRequest.h:402
Aws::MTurk::MTurkRequest
Definition: MTurkRequest.h:17
MTurkRequest.h
Aws::MTurk::Model::UpdateQualificationTypeRequest::SetDescription
void SetDescription(const char *value)
Definition: UpdateQualificationTypeRequest.h:102
Aws::MTurk::Model::UpdateQualificationTypeRequest::AutoGrantedHasBeenSet
bool AutoGrantedHasBeenSet() const
Definition: UpdateQualificationTypeRequest.h:373
Aws::MTurk::Model::UpdateQualificationTypeRequest::WithTestDurationInSeconds
UpdateQualificationTypeRequest & WithTestDurationInSeconds(long long value)
Definition: UpdateQualificationTypeRequest.h:311
Aws::MTurk::Model::UpdateQualificationTypeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateQualificationTypeRequest.h:31
Aws::MTurk::Model::UpdateQualificationTypeRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: UpdateQualificationTypeRequest.h:97
Aws::MTurk::Model::UpdateQualificationTypeRequest::WithAnswerKey
UpdateQualificationTypeRequest & WithAnswerKey(const Aws::String &value)
Definition: UpdateQualificationTypeRequest.h:274
Aws::MTurk::Model::UpdateQualificationTypeRequest::RetryDelayInSecondsHasBeenSet
bool RetryDelayInSecondsHasBeenSet() const
Definition: UpdateQualificationTypeRequest.h:334
Aws::MTurk::Model::UpdateQualificationTypeRequest::TestDurationInSecondsHasBeenSet
bool TestDurationInSecondsHasBeenSet() const
Definition: UpdateQualificationTypeRequest.h:299
Aws::MTurk::Model::UpdateQualificationTypeRequest::GetQualificationTypeId
const Aws::String & GetQualificationTypeId() const
Definition: UpdateQualificationTypeRequest.h:41
Aws::MTurk::Model::UpdateQualificationTypeRequest::AnswerKeyHasBeenSet
bool AnswerKeyHasBeenSet() const
Definition: UpdateQualificationTypeRequest.h:250
Aws::MTurk::Model::UpdateQualificationTypeRequest::WithTest
UpdateQualificationTypeRequest & WithTest(Aws::String &&value)
Definition: UpdateQualificationTypeRequest.h:226
AWSString.h
Aws::MTurk::Model::UpdateQualificationTypeRequest::WithRetryDelayInSeconds
UpdateQualificationTypeRequest & WithRetryDelayInSeconds(long long value)
Definition: UpdateQualificationTypeRequest.h:356
Aws::MTurk::Model::UpdateQualificationTypeRequest::WithTest
UpdateQualificationTypeRequest & WithTest(const Aws::String &value)
Definition: UpdateQualificationTypeRequest.h:215
Aws::MTurk::Model::UpdateQualificationTypeRequest::SetTest
void SetTest(const Aws::String &value)
Definition: UpdateQualificationTypeRequest.h:182
Aws::MTurk::Model::UpdateQualificationTypeRequest::WithQualificationTypeStatus
UpdateQualificationTypeRequest & WithQualificationTypeStatus(const QualificationTypeStatus &value)
Definition: UpdateQualificationTypeRequest.h:143
Aws::MTurk::Model::UpdateQualificationTypeRequest::SetTest
void SetTest(Aws::String &&value)
Definition: UpdateQualificationTypeRequest.h:193
Aws::MTurk::Model::QualificationTypeStatus
QualificationTypeStatus
Definition: QualificationTypeStatus.h:17
Aws::MTurk::Model::UpdateQualificationTypeRequest::QualificationTypeStatusHasBeenSet
bool QualificationTypeStatusHasBeenSet() const
Definition: UpdateQualificationTypeRequest.h:128
Aws::MTurk::Model::UpdateQualificationTypeRequest::SetTest
void SetTest(const char *value)
Definition: UpdateQualificationTypeRequest.h:204
Aws::MTurk::Model::UpdateQualificationTypeRequest::SetAutoGrantedValue
void SetAutoGrantedValue(int value)
Definition: UpdateQualificationTypeRequest.h:408
Aws::MTurk::Model::UpdateQualificationTypeRequest::SetTestDurationInSeconds
void SetTestDurationInSeconds(long long value)
Definition: UpdateQualificationTypeRequest.h:305
Aws::MTurk::Model::UpdateQualificationTypeRequest::TestHasBeenSet
bool TestHasBeenSet() const
Definition: UpdateQualificationTypeRequest.h:171
MTurk_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::MTurk::Model::UpdateQualificationTypeRequest::WithAnswerKey
UpdateQualificationTypeRequest & WithAnswerKey(const char *value)
Definition: UpdateQualificationTypeRequest.h:286
Aws::MTurk::Model::UpdateQualificationTypeRequest::GetAnswerKey
const Aws::String & GetAnswerKey() const
Definition: UpdateQualificationTypeRequest.h:244
QualificationTypeStatus.h
Aws::MTurk::Model::UpdateQualificationTypeRequest::SetAnswerKey
void SetAnswerKey(const Aws::String &value)
Definition: UpdateQualificationTypeRequest.h:256
Aws::MTurk::Model::UpdateQualificationTypeRequest::WithQualificationTypeId
UpdateQualificationTypeRequest & WithQualificationTypeId(const Aws::String &value)
Definition: UpdateQualificationTypeRequest.h:66
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MTurk::Model::UpdateQualificationTypeRequest::SetQualificationTypeStatus
void SetQualificationTypeStatus(const QualificationTypeStatus &value)
Definition: UpdateQualificationTypeRequest.h:133
Aws::MTurk::Model::UpdateQualificationTypeRequest::WithDescription
UpdateQualificationTypeRequest & WithDescription(const char *value)
Definition: UpdateQualificationTypeRequest.h:117
Aws::MTurk::Model::UpdateQualificationTypeRequest::SetAnswerKey
void SetAnswerKey(Aws::String &&value)
Definition: UpdateQualificationTypeRequest.h:262
Aws::MTurk::Model::UpdateQualificationTypeRequest::GetAutoGranted
bool GetAutoGranted() const
Definition: UpdateQualificationTypeRequest.h:365
Aws::MTurk::Model::UpdateQualificationTypeRequest::SetAnswerKey
void SetAnswerKey(const char *value)
Definition: UpdateQualificationTypeRequest.h:268
Aws::MTurk::Model::UpdateQualificationTypeRequest::UpdateQualificationTypeRequest
UpdateQualificationTypeRequest()
Aws::MTurk::Model::UpdateQualificationTypeRequest::SetQualificationTypeId
void SetQualificationTypeId(const Aws::String &value)
Definition: UpdateQualificationTypeRequest.h:51
Aws::MTurk::Model::UpdateQualificationTypeRequest::WithQualificationTypeId
UpdateQualificationTypeRequest & WithQualificationTypeId(const char *value)
Definition: UpdateQualificationTypeRequest.h:76
Aws::MTurk::Model::UpdateQualificationTypeRequest::SetQualificationTypeStatus
void SetQualificationTypeStatus(QualificationTypeStatus &&value)
Definition: UpdateQualificationTypeRequest.h:138
Aws::MTurk::Model::UpdateQualificationTypeRequest::SetQualificationTypeId
void SetQualificationTypeId(Aws::String &&value)
Definition: UpdateQualificationTypeRequest.h:56
Aws::MTurk::Model::UpdateQualificationTypeRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MTurk::Model::UpdateQualificationTypeRequest::WithDescription
UpdateQualificationTypeRequest & WithDescription(const Aws::String &value)
Definition: UpdateQualificationTypeRequest.h:107
Aws::MTurk::Model::UpdateQualificationTypeRequest::WithTest
UpdateQualificationTypeRequest & WithTest(const char *value)
Definition: UpdateQualificationTypeRequest.h:237
Aws::MTurk::Model::UpdateQualificationTypeRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: UpdateQualificationTypeRequest.h:87
Aws::MTurk::Model::UpdateQualificationTypeRequest::QualificationTypeIdHasBeenSet
bool QualificationTypeIdHasBeenSet() const
Definition: UpdateQualificationTypeRequest.h:46
Aws::MTurk::Model::UpdateQualificationTypeRequest::GetTest
const Aws::String & GetTest() const
Definition: UpdateQualificationTypeRequest.h:160