AWS SDK for C++  1.9.105
AWS SDK for C++
CreateQualificationTypeRequest.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 "CreateQualificationType"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
44  inline const Aws::String& GetName() const{ return m_name; }
45 
52  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 
60  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
61 
68  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
69 
76  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
77 
84  inline CreateQualificationTypeRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
85 
92  inline CreateQualificationTypeRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
93 
100  inline CreateQualificationTypeRequest& WithName(const char* value) { SetName(value); return *this;}
101 
102 
108  inline const Aws::String& GetKeywords() const{ return m_keywords; }
109 
115  inline bool KeywordsHasBeenSet() const { return m_keywordsHasBeenSet; }
116 
122  inline void SetKeywords(const Aws::String& value) { m_keywordsHasBeenSet = true; m_keywords = value; }
123 
129  inline void SetKeywords(Aws::String&& value) { m_keywordsHasBeenSet = true; m_keywords = std::move(value); }
130 
136  inline void SetKeywords(const char* value) { m_keywordsHasBeenSet = true; m_keywords.assign(value); }
137 
143  inline CreateQualificationTypeRequest& WithKeywords(const Aws::String& value) { SetKeywords(value); return *this;}
144 
150  inline CreateQualificationTypeRequest& WithKeywords(Aws::String&& value) { SetKeywords(std::move(value)); return *this;}
151 
157  inline CreateQualificationTypeRequest& WithKeywords(const char* value) { SetKeywords(value); return *this;}
158 
159 
165  inline const Aws::String& GetDescription() const{ return m_description; }
166 
172  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
173 
179  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
180 
186  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
187 
193  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
194 
200  inline CreateQualificationTypeRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
201 
207  inline CreateQualificationTypeRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
208 
214  inline CreateQualificationTypeRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
215 
216 
221  inline const QualificationTypeStatus& GetQualificationTypeStatus() const{ return m_qualificationTypeStatus; }
222 
227  inline bool QualificationTypeStatusHasBeenSet() const { return m_qualificationTypeStatusHasBeenSet; }
228 
233  inline void SetQualificationTypeStatus(const QualificationTypeStatus& value) { m_qualificationTypeStatusHasBeenSet = true; m_qualificationTypeStatus = value; }
234 
239  inline void SetQualificationTypeStatus(QualificationTypeStatus&& value) { m_qualificationTypeStatusHasBeenSet = true; m_qualificationTypeStatus = std::move(value); }
240 
245  inline CreateQualificationTypeRequest& WithQualificationTypeStatus(const QualificationTypeStatus& value) { SetQualificationTypeStatus(value); return *this;}
246 
251  inline CreateQualificationTypeRequest& WithQualificationTypeStatus(QualificationTypeStatus&& value) { SetQualificationTypeStatus(std::move(value)); return *this;}
252 
253 
265  inline long long GetRetryDelayInSeconds() const{ return m_retryDelayInSeconds; }
266 
278  inline bool RetryDelayInSecondsHasBeenSet() const { return m_retryDelayInSecondsHasBeenSet; }
279 
291  inline void SetRetryDelayInSeconds(long long value) { m_retryDelayInSecondsHasBeenSet = true; m_retryDelayInSeconds = value; }
292 
304  inline CreateQualificationTypeRequest& WithRetryDelayInSeconds(long long value) { SetRetryDelayInSeconds(value); return *this;}
305 
306 
316  inline const Aws::String& GetTest() const{ return m_test; }
317 
327  inline bool TestHasBeenSet() const { return m_testHasBeenSet; }
328 
338  inline void SetTest(const Aws::String& value) { m_testHasBeenSet = true; m_test = value; }
339 
349  inline void SetTest(Aws::String&& value) { m_testHasBeenSet = true; m_test = std::move(value); }
350 
360  inline void SetTest(const char* value) { m_testHasBeenSet = true; m_test.assign(value); }
361 
371  inline CreateQualificationTypeRequest& WithTest(const Aws::String& value) { SetTest(value); return *this;}
372 
382  inline CreateQualificationTypeRequest& WithTest(Aws::String&& value) { SetTest(std::move(value)); return *this;}
383 
393  inline CreateQualificationTypeRequest& WithTest(const char* value) { SetTest(value); return *this;}
394 
395 
402  inline const Aws::String& GetAnswerKey() const{ return m_answerKey; }
403 
410  inline bool AnswerKeyHasBeenSet() const { return m_answerKeyHasBeenSet; }
411 
418  inline void SetAnswerKey(const Aws::String& value) { m_answerKeyHasBeenSet = true; m_answerKey = value; }
419 
426  inline void SetAnswerKey(Aws::String&& value) { m_answerKeyHasBeenSet = true; m_answerKey = std::move(value); }
427 
434  inline void SetAnswerKey(const char* value) { m_answerKeyHasBeenSet = true; m_answerKey.assign(value); }
435 
442  inline CreateQualificationTypeRequest& WithAnswerKey(const Aws::String& value) { SetAnswerKey(value); return *this;}
443 
450  inline CreateQualificationTypeRequest& WithAnswerKey(Aws::String&& value) { SetAnswerKey(std::move(value)); return *this;}
451 
458  inline CreateQualificationTypeRequest& WithAnswerKey(const char* value) { SetAnswerKey(value); return *this;}
459 
460 
465  inline long long GetTestDurationInSeconds() const{ return m_testDurationInSeconds; }
466 
471  inline bool TestDurationInSecondsHasBeenSet() const { return m_testDurationInSecondsHasBeenSet; }
472 
477  inline void SetTestDurationInSeconds(long long value) { m_testDurationInSecondsHasBeenSet = true; m_testDurationInSeconds = value; }
478 
483  inline CreateQualificationTypeRequest& WithTestDurationInSeconds(long long value) { SetTestDurationInSeconds(value); return *this;}
484 
485 
492  inline bool GetAutoGranted() const{ return m_autoGranted; }
493 
500  inline bool AutoGrantedHasBeenSet() const { return m_autoGrantedHasBeenSet; }
501 
508  inline void SetAutoGranted(bool value) { m_autoGrantedHasBeenSet = true; m_autoGranted = value; }
509 
516  inline CreateQualificationTypeRequest& WithAutoGranted(bool value) { SetAutoGranted(value); return *this;}
517 
518 
523  inline int GetAutoGrantedValue() const{ return m_autoGrantedValue; }
524 
529  inline bool AutoGrantedValueHasBeenSet() const { return m_autoGrantedValueHasBeenSet; }
530 
535  inline void SetAutoGrantedValue(int value) { m_autoGrantedValueHasBeenSet = true; m_autoGrantedValue = value; }
536 
541  inline CreateQualificationTypeRequest& WithAutoGrantedValue(int value) { SetAutoGrantedValue(value); return *this;}
542 
543  private:
544 
545  Aws::String m_name;
546  bool m_nameHasBeenSet;
547 
548  Aws::String m_keywords;
549  bool m_keywordsHasBeenSet;
550 
551  Aws::String m_description;
552  bool m_descriptionHasBeenSet;
553 
554  QualificationTypeStatus m_qualificationTypeStatus;
555  bool m_qualificationTypeStatusHasBeenSet;
556 
557  long long m_retryDelayInSeconds;
558  bool m_retryDelayInSecondsHasBeenSet;
559 
560  Aws::String m_test;
561  bool m_testHasBeenSet;
562 
563  Aws::String m_answerKey;
564  bool m_answerKeyHasBeenSet;
565 
566  long long m_testDurationInSeconds;
567  bool m_testDurationInSecondsHasBeenSet;
568 
569  bool m_autoGranted;
570  bool m_autoGrantedHasBeenSet;
571 
572  int m_autoGrantedValue;
573  bool m_autoGrantedValueHasBeenSet;
574  };
575 
576 } // namespace Model
577 } // namespace MTurk
578 } // namespace Aws
Aws::MTurk::Model::CreateQualificationTypeRequest::SetTest
void SetTest(const Aws::String &value)
Definition: CreateQualificationTypeRequest.h:338
Aws::MTurk::Model::CreateQualificationTypeRequest::WithTestDurationInSeconds
CreateQualificationTypeRequest & WithTestDurationInSeconds(long long value)
Definition: CreateQualificationTypeRequest.h:483
Aws::MTurk::Model::CreateQualificationTypeRequest::WithAnswerKey
CreateQualificationTypeRequest & WithAnswerKey(const Aws::String &value)
Definition: CreateQualificationTypeRequest.h:442
Aws::MTurk::Model::CreateQualificationTypeRequest::AutoGrantedHasBeenSet
bool AutoGrantedHasBeenSet() const
Definition: CreateQualificationTypeRequest.h:500
Aws::MTurk::Model::CreateQualificationTypeRequest::SetKeywords
void SetKeywords(const char *value)
Definition: CreateQualificationTypeRequest.h:136
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::MTurk::Model::CreateQualificationTypeRequest::SetTest
void SetTest(const char *value)
Definition: CreateQualificationTypeRequest.h:360
Aws::MTurk::Model::CreateQualificationTypeRequest::SetTest
void SetTest(Aws::String &&value)
Definition: CreateQualificationTypeRequest.h:349
Aws::MTurk::Model::CreateQualificationTypeRequest::GetName
const Aws::String & GetName() const
Definition: CreateQualificationTypeRequest.h:44
Aws::MTurk::Model::CreateQualificationTypeRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateQualificationTypeRequest.h:193
Aws::MTurk::Model::CreateQualificationTypeRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateQualificationTypeRequest.h:52
Aws::MTurk::Model::CreateQualificationTypeRequest::GetKeywords
const Aws::String & GetKeywords() const
Definition: CreateQualificationTypeRequest.h:108
Aws::MTurk::Model::CreateQualificationTypeRequest::WithKeywords
CreateQualificationTypeRequest & WithKeywords(Aws::String &&value)
Definition: CreateQualificationTypeRequest.h:150
Aws::MTurk::Model::CreateQualificationTypeRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MTurk::Model::CreateQualificationTypeRequest::WithAnswerKey
CreateQualificationTypeRequest & WithAnswerKey(Aws::String &&value)
Definition: CreateQualificationTypeRequest.h:450
Aws::MTurk::Model::CreateQualificationTypeRequest::WithQualificationTypeStatus
CreateQualificationTypeRequest & WithQualificationTypeStatus(QualificationTypeStatus &&value)
Definition: CreateQualificationTypeRequest.h:251
Aws::MTurk::Model::CreateQualificationTypeRequest::WithAutoGranted
CreateQualificationTypeRequest & WithAutoGranted(bool value)
Definition: CreateQualificationTypeRequest.h:516
Aws::MTurk::Model::CreateQualificationTypeRequest::WithRetryDelayInSeconds
CreateQualificationTypeRequest & WithRetryDelayInSeconds(long long value)
Definition: CreateQualificationTypeRequest.h:304
Aws::MTurk::Model::CreateQualificationTypeRequest::SetAutoGrantedValue
void SetAutoGrantedValue(int value)
Definition: CreateQualificationTypeRequest.h:535
Aws::MTurk::Model::CreateQualificationTypeRequest::TestDurationInSecondsHasBeenSet
bool TestDurationInSecondsHasBeenSet() const
Definition: CreateQualificationTypeRequest.h:471
Aws::MTurk::Model::CreateQualificationTypeRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateQualificationTypeRequest.h:179
Aws::MTurk::Model::CreateQualificationTypeRequest::WithAnswerKey
CreateQualificationTypeRequest & WithAnswerKey(const char *value)
Definition: CreateQualificationTypeRequest.h:458
Aws::MTurk::Model::CreateQualificationTypeRequest::RetryDelayInSecondsHasBeenSet
bool RetryDelayInSecondsHasBeenSet() const
Definition: CreateQualificationTypeRequest.h:278
Aws::MTurk::Model::CreateQualificationTypeRequest::GetAnswerKey
const Aws::String & GetAnswerKey() const
Definition: CreateQualificationTypeRequest.h:402
Aws::MTurk::Model::CreateQualificationTypeRequest::TestHasBeenSet
bool TestHasBeenSet() const
Definition: CreateQualificationTypeRequest.h:327
Aws::MTurk::Model::CreateQualificationTypeRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateQualificationTypeRequest.h:60
Aws::MTurk::MTurkRequest
Definition: MTurkRequest.h:17
Aws::MTurk::Model::CreateQualificationTypeRequest::SetAnswerKey
void SetAnswerKey(const Aws::String &value)
Definition: CreateQualificationTypeRequest.h:418
Aws::MTurk::Model::CreateQualificationTypeRequest::GetAutoGrantedValue
int GetAutoGrantedValue() const
Definition: CreateQualificationTypeRequest.h:523
Aws::MTurk::Model::CreateQualificationTypeRequest::GetQualificationTypeStatus
const QualificationTypeStatus & GetQualificationTypeStatus() const
Definition: CreateQualificationTypeRequest.h:221
Aws::MTurk::Model::CreateQualificationTypeRequest::GetTest
const Aws::String & GetTest() const
Definition: CreateQualificationTypeRequest.h:316
MTurkRequest.h
Aws::MTurk::Model::CreateQualificationTypeRequest::WithKeywords
CreateQualificationTypeRequest & WithKeywords(const char *value)
Definition: CreateQualificationTypeRequest.h:157
Aws::MTurk::Model::CreateQualificationTypeRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateQualificationTypeRequest.h:186
Aws::MTurk::Model::CreateQualificationTypeRequest::SetRetryDelayInSeconds
void SetRetryDelayInSeconds(long long value)
Definition: CreateQualificationTypeRequest.h:291
Aws::MTurk::Model::CreateQualificationTypeRequest::SetAnswerKey
void SetAnswerKey(Aws::String &&value)
Definition: CreateQualificationTypeRequest.h:426
Aws::MTurk::Model::CreateQualificationTypeRequest::GetRetryDelayInSeconds
long long GetRetryDelayInSeconds() const
Definition: CreateQualificationTypeRequest.h:265
Aws::MTurk::Model::CreateQualificationTypeRequest::QualificationTypeStatusHasBeenSet
bool QualificationTypeStatusHasBeenSet() const
Definition: CreateQualificationTypeRequest.h:227
Aws::MTurk::Model::CreateQualificationTypeRequest::WithName
CreateQualificationTypeRequest & WithName(const char *value)
Definition: CreateQualificationTypeRequest.h:100
Aws::MTurk::Model::CreateQualificationTypeRequest::SetTestDurationInSeconds
void SetTestDurationInSeconds(long long value)
Definition: CreateQualificationTypeRequest.h:477
Aws::MTurk::Model::CreateQualificationTypeRequest::AnswerKeyHasBeenSet
bool AnswerKeyHasBeenSet() const
Definition: CreateQualificationTypeRequest.h:410
Aws::MTurk::Model::CreateQualificationTypeRequest::SetKeywords
void SetKeywords(const Aws::String &value)
Definition: CreateQualificationTypeRequest.h:122
Aws::MTurk::Model::CreateQualificationTypeRequest::SetKeywords
void SetKeywords(Aws::String &&value)
Definition: CreateQualificationTypeRequest.h:129
AWSString.h
Aws::MTurk::Model::CreateQualificationTypeRequest::SetName
void SetName(const char *value)
Definition: CreateQualificationTypeRequest.h:76
Aws::MTurk::Model::CreateQualificationTypeRequest::AutoGrantedValueHasBeenSet
bool AutoGrantedValueHasBeenSet() const
Definition: CreateQualificationTypeRequest.h:529
Aws::MTurk::Model::CreateQualificationTypeRequest::WithName
CreateQualificationTypeRequest & WithName(const Aws::String &value)
Definition: CreateQualificationTypeRequest.h:84
Aws::MTurk::Model::CreateQualificationTypeRequest::WithTest
CreateQualificationTypeRequest & WithTest(const Aws::String &value)
Definition: CreateQualificationTypeRequest.h:371
Aws::MTurk::Model::QualificationTypeStatus
QualificationTypeStatus
Definition: QualificationTypeStatus.h:17
Aws::MTurk::Model::CreateQualificationTypeRequest::GetTestDurationInSeconds
long long GetTestDurationInSeconds() const
Definition: CreateQualificationTypeRequest.h:465
Aws::MTurk::Model::CreateQualificationTypeRequest::SetAnswerKey
void SetAnswerKey(const char *value)
Definition: CreateQualificationTypeRequest.h:434
Aws::MTurk::Model::CreateQualificationTypeRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateQualificationTypeRequest.h:68
Aws::MTurk::Model::CreateQualificationTypeRequest::WithAutoGrantedValue
CreateQualificationTypeRequest & WithAutoGrantedValue(int value)
Definition: CreateQualificationTypeRequest.h:541
Aws::MTurk::Model::CreateQualificationTypeRequest::WithDescription
CreateQualificationTypeRequest & WithDescription(const char *value)
Definition: CreateQualificationTypeRequest.h:214
Aws::MTurk::Model::CreateQualificationTypeRequest::WithName
CreateQualificationTypeRequest & WithName(Aws::String &&value)
Definition: CreateQualificationTypeRequest.h:92
Aws::MTurk::Model::CreateQualificationTypeRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::MTurk::Model::CreateQualificationTypeRequest::WithQualificationTypeStatus
CreateQualificationTypeRequest & WithQualificationTypeStatus(const QualificationTypeStatus &value)
Definition: CreateQualificationTypeRequest.h:245
MTurk_EXPORTS.h
Aws::MTurk::Model::CreateQualificationTypeRequest::SetQualificationTypeStatus
void SetQualificationTypeStatus(QualificationTypeStatus &&value)
Definition: CreateQualificationTypeRequest.h:239
Aws
Definition: AccessManagementClient.h:15
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::MTurk::Model::CreateQualificationTypeRequest::SetAutoGranted
void SetAutoGranted(bool value)
Definition: CreateQualificationTypeRequest.h:508
Aws::MTurk::Model::CreateQualificationTypeRequest::WithDescription
CreateQualificationTypeRequest & WithDescription(Aws::String &&value)
Definition: CreateQualificationTypeRequest.h:207
Aws::MTurk::Model::CreateQualificationTypeRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateQualificationTypeRequest.h:165
Aws::MTurk::Model::CreateQualificationTypeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateQualificationTypeRequest.h:31
Aws::MTurk::Model::CreateQualificationTypeRequest::SetQualificationTypeStatus
void SetQualificationTypeStatus(const QualificationTypeStatus &value)
Definition: CreateQualificationTypeRequest.h:233
Aws::MTurk::Model::CreateQualificationTypeRequest::CreateQualificationTypeRequest
CreateQualificationTypeRequest()
QualificationTypeStatus.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MTurk::Model::CreateQualificationTypeRequest::WithTest
CreateQualificationTypeRequest & WithTest(const char *value)
Definition: CreateQualificationTypeRequest.h:393
Aws::MTurk::Model::CreateQualificationTypeRequest::WithKeywords
CreateQualificationTypeRequest & WithKeywords(const Aws::String &value)
Definition: CreateQualificationTypeRequest.h:143
Aws::MTurk::Model::CreateQualificationTypeRequest::WithDescription
CreateQualificationTypeRequest & WithDescription(const Aws::String &value)
Definition: CreateQualificationTypeRequest.h:200
Aws::MTurk::Model::CreateQualificationTypeRequest::KeywordsHasBeenSet
bool KeywordsHasBeenSet() const
Definition: CreateQualificationTypeRequest.h:115
Aws::MTurk::Model::CreateQualificationTypeRequest::WithTest
CreateQualificationTypeRequest & WithTest(Aws::String &&value)
Definition: CreateQualificationTypeRequest.h:382
Aws::MTurk::Model::CreateQualificationTypeRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateQualificationTypeRequest.h:172
Aws::MTurk::Model::CreateQualificationTypeRequest
Definition: CreateQualificationTypeRequest.h:23
Aws::MTurk::Model::CreateQualificationTypeRequest::GetAutoGranted
bool GetAutoGranted() const
Definition: CreateQualificationTypeRequest.h:492