AWS SDK for C++  1.9.105
AWS SDK for C++
CreateHITTypeRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace MTurk
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateHITType"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
44  inline long long GetAutoApprovalDelayInSeconds() const{ return m_autoApprovalDelayInSeconds; }
45 
51  inline bool AutoApprovalDelayInSecondsHasBeenSet() const { return m_autoApprovalDelayInSecondsHasBeenSet; }
52 
58  inline void SetAutoApprovalDelayInSeconds(long long value) { m_autoApprovalDelayInSecondsHasBeenSet = true; m_autoApprovalDelayInSeconds = value; }
59 
65  inline CreateHITTypeRequest& WithAutoApprovalDelayInSeconds(long long value) { SetAutoApprovalDelayInSeconds(value); return *this;}
66 
67 
75  inline long long GetAssignmentDurationInSeconds() const{ return m_assignmentDurationInSeconds; }
76 
84  inline bool AssignmentDurationInSecondsHasBeenSet() const { return m_assignmentDurationInSecondsHasBeenSet; }
85 
93  inline void SetAssignmentDurationInSeconds(long long value) { m_assignmentDurationInSecondsHasBeenSet = true; m_assignmentDurationInSeconds = value; }
94 
102  inline CreateHITTypeRequest& WithAssignmentDurationInSeconds(long long value) { SetAssignmentDurationInSeconds(value); return *this;}
103 
104 
109  inline const Aws::String& GetReward() const{ return m_reward; }
110 
115  inline bool RewardHasBeenSet() const { return m_rewardHasBeenSet; }
116 
121  inline void SetReward(const Aws::String& value) { m_rewardHasBeenSet = true; m_reward = value; }
122 
127  inline void SetReward(Aws::String&& value) { m_rewardHasBeenSet = true; m_reward = std::move(value); }
128 
133  inline void SetReward(const char* value) { m_rewardHasBeenSet = true; m_reward.assign(value); }
134 
139  inline CreateHITTypeRequest& WithReward(const Aws::String& value) { SetReward(value); return *this;}
140 
145  inline CreateHITTypeRequest& WithReward(Aws::String&& value) { SetReward(std::move(value)); return *this;}
146 
151  inline CreateHITTypeRequest& WithReward(const char* value) { SetReward(value); return *this;}
152 
153 
159  inline const Aws::String& GetTitle() const{ return m_title; }
160 
166  inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
167 
173  inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
174 
180  inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
181 
187  inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
188 
194  inline CreateHITTypeRequest& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
195 
201  inline CreateHITTypeRequest& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
202 
208  inline CreateHITTypeRequest& WithTitle(const char* value) { SetTitle(value); return *this;}
209 
210 
215  inline const Aws::String& GetKeywords() const{ return m_keywords; }
216 
221  inline bool KeywordsHasBeenSet() const { return m_keywordsHasBeenSet; }
222 
227  inline void SetKeywords(const Aws::String& value) { m_keywordsHasBeenSet = true; m_keywords = value; }
228 
233  inline void SetKeywords(Aws::String&& value) { m_keywordsHasBeenSet = true; m_keywords = std::move(value); }
234 
239  inline void SetKeywords(const char* value) { m_keywordsHasBeenSet = true; m_keywords.assign(value); }
240 
245  inline CreateHITTypeRequest& WithKeywords(const Aws::String& value) { SetKeywords(value); return *this;}
246 
251  inline CreateHITTypeRequest& WithKeywords(Aws::String&& value) { SetKeywords(std::move(value)); return *this;}
252 
257  inline CreateHITTypeRequest& WithKeywords(const char* value) { SetKeywords(value); return *this;}
258 
259 
267  inline const Aws::String& GetDescription() const{ return m_description; }
268 
276  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
277 
285  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
286 
294  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
295 
303  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
304 
312  inline CreateHITTypeRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
313 
321  inline CreateHITTypeRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
322 
330  inline CreateHITTypeRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
331 
332 
340  inline const Aws::Vector<QualificationRequirement>& GetQualificationRequirements() const{ return m_qualificationRequirements; }
341 
349  inline bool QualificationRequirementsHasBeenSet() const { return m_qualificationRequirementsHasBeenSet; }
350 
358  inline void SetQualificationRequirements(const Aws::Vector<QualificationRequirement>& value) { m_qualificationRequirementsHasBeenSet = true; m_qualificationRequirements = value; }
359 
367  inline void SetQualificationRequirements(Aws::Vector<QualificationRequirement>&& value) { m_qualificationRequirementsHasBeenSet = true; m_qualificationRequirements = std::move(value); }
368 
376  inline CreateHITTypeRequest& WithQualificationRequirements(const Aws::Vector<QualificationRequirement>& value) { SetQualificationRequirements(value); return *this;}
377 
385  inline CreateHITTypeRequest& WithQualificationRequirements(Aws::Vector<QualificationRequirement>&& value) { SetQualificationRequirements(std::move(value)); return *this;}
386 
394  inline CreateHITTypeRequest& AddQualificationRequirements(const QualificationRequirement& value) { m_qualificationRequirementsHasBeenSet = true; m_qualificationRequirements.push_back(value); return *this; }
395 
403  inline CreateHITTypeRequest& AddQualificationRequirements(QualificationRequirement&& value) { m_qualificationRequirementsHasBeenSet = true; m_qualificationRequirements.push_back(std::move(value)); return *this; }
404 
405  private:
406 
407  long long m_autoApprovalDelayInSeconds;
408  bool m_autoApprovalDelayInSecondsHasBeenSet;
409 
410  long long m_assignmentDurationInSeconds;
411  bool m_assignmentDurationInSecondsHasBeenSet;
412 
413  Aws::String m_reward;
414  bool m_rewardHasBeenSet;
415 
416  Aws::String m_title;
417  bool m_titleHasBeenSet;
418 
419  Aws::String m_keywords;
420  bool m_keywordsHasBeenSet;
421 
422  Aws::String m_description;
423  bool m_descriptionHasBeenSet;
424 
425  Aws::Vector<QualificationRequirement> m_qualificationRequirements;
426  bool m_qualificationRequirementsHasBeenSet;
427  };
428 
429 } // namespace Model
430 } // namespace MTurk
431 } // namespace Aws
Aws::MTurk::Model::CreateHITTypeRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateHITTypeRequest.h:294
Aws::MTurk::Model::CreateHITTypeRequest::SetReward
void SetReward(const char *value)
Definition: CreateHITTypeRequest.h:133
QualificationRequirement.h
Aws::MTurk::Model::CreateHITTypeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateHITTypeRequest.h:32
Aws::MTurk::Model::CreateHITTypeRequest::WithDescription
CreateHITTypeRequest & WithDescription(Aws::String &&value)
Definition: CreateHITTypeRequest.h:321
Aws::MTurk::Model::CreateHITTypeRequest::RewardHasBeenSet
bool RewardHasBeenSet() const
Definition: CreateHITTypeRequest.h:115
Aws::MTurk::Model::CreateHITTypeRequest::KeywordsHasBeenSet
bool KeywordsHasBeenSet() const
Definition: CreateHITTypeRequest.h:221
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::MTurk::Model::CreateHITTypeRequest::AddQualificationRequirements
CreateHITTypeRequest & AddQualificationRequirements(QualificationRequirement &&value)
Definition: CreateHITTypeRequest.h:403
Aws::MTurk::Model::CreateHITTypeRequest::WithKeywords
CreateHITTypeRequest & WithKeywords(const Aws::String &value)
Definition: CreateHITTypeRequest.h:245
Aws::MTurk::Model::CreateHITTypeRequest::GetTitle
const Aws::String & GetTitle() const
Definition: CreateHITTypeRequest.h:159
Aws::MTurk::Model::CreateHITTypeRequest::WithAssignmentDurationInSeconds
CreateHITTypeRequest & WithAssignmentDurationInSeconds(long long value)
Definition: CreateHITTypeRequest.h:102
Aws::MTurk::Model::CreateHITTypeRequest::AssignmentDurationInSecondsHasBeenSet
bool AssignmentDurationInSecondsHasBeenSet() const
Definition: CreateHITTypeRequest.h:84
Aws::MTurk::Model::CreateHITTypeRequest::SetKeywords
void SetKeywords(const Aws::String &value)
Definition: CreateHITTypeRequest.h:227
Aws::MTurk::Model::CreateHITTypeRequest::AutoApprovalDelayInSecondsHasBeenSet
bool AutoApprovalDelayInSecondsHasBeenSet() const
Definition: CreateHITTypeRequest.h:51
Aws::MTurk::Model::CreateHITTypeRequest::WithQualificationRequirements
CreateHITTypeRequest & WithQualificationRequirements(Aws::Vector< QualificationRequirement > &&value)
Definition: CreateHITTypeRequest.h:385
Aws::MTurk::Model::CreateHITTypeRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateHITTypeRequest.h:267
Aws::MTurk::Model::CreateHITTypeRequest::SetAssignmentDurationInSeconds
void SetAssignmentDurationInSeconds(long long value)
Definition: CreateHITTypeRequest.h:93
Aws::MTurk::Model::CreateHITTypeRequest::WithKeywords
CreateHITTypeRequest & WithKeywords(const char *value)
Definition: CreateHITTypeRequest.h:257
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::MTurk::Model::CreateHITTypeRequest::GetAutoApprovalDelayInSeconds
long long GetAutoApprovalDelayInSeconds() const
Definition: CreateHITTypeRequest.h:44
Aws::MTurk::Model::CreateHITTypeRequest
Definition: CreateHITTypeRequest.h:24
AWSVector.h
Aws::MTurk::Model::CreateHITTypeRequest::WithQualificationRequirements
CreateHITTypeRequest & WithQualificationRequirements(const Aws::Vector< QualificationRequirement > &value)
Definition: CreateHITTypeRequest.h:376
Aws::MTurk::MTurkRequest
Definition: MTurkRequest.h:17
Aws::MTurk::Model::CreateHITTypeRequest::WithAutoApprovalDelayInSeconds
CreateHITTypeRequest & WithAutoApprovalDelayInSeconds(long long value)
Definition: CreateHITTypeRequest.h:65
Aws::MTurk::Model::CreateHITTypeRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateHITTypeRequest.h:303
MTurkRequest.h
Aws::MTurk::Model::CreateHITTypeRequest::SetKeywords
void SetKeywords(const char *value)
Definition: CreateHITTypeRequest.h:239
Aws::MTurk::Model::CreateHITTypeRequest::WithDescription
CreateHITTypeRequest & WithDescription(const char *value)
Definition: CreateHITTypeRequest.h:330
Aws::MTurk::Model::CreateHITTypeRequest::WithTitle
CreateHITTypeRequest & WithTitle(const Aws::String &value)
Definition: CreateHITTypeRequest.h:194
Aws::MTurk::Model::CreateHITTypeRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateHITTypeRequest.h:276
Aws::MTurk::Model::QualificationRequirement
Definition: QualificationRequirement.h:39
Aws::MTurk::Model::CreateHITTypeRequest::SetKeywords
void SetKeywords(Aws::String &&value)
Definition: CreateHITTypeRequest.h:233
Aws::MTurk::Model::CreateHITTypeRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateHITTypeRequest.h:285
AWSString.h
Aws::MTurk::Model::CreateHITTypeRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MTurk::Model::CreateHITTypeRequest::AddQualificationRequirements
CreateHITTypeRequest & AddQualificationRequirements(const QualificationRequirement &value)
Definition: CreateHITTypeRequest.h:394
Aws::MTurk::Model::CreateHITTypeRequest::WithTitle
CreateHITTypeRequest & WithTitle(Aws::String &&value)
Definition: CreateHITTypeRequest.h:201
Aws::MTurk::Model::CreateHITTypeRequest::SetTitle
void SetTitle(const Aws::String &value)
Definition: CreateHITTypeRequest.h:173
Aws::MTurk::Model::CreateHITTypeRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::MTurk::Model::CreateHITTypeRequest::WithKeywords
CreateHITTypeRequest & WithKeywords(Aws::String &&value)
Definition: CreateHITTypeRequest.h:251
Aws::MTurk::Model::CreateHITTypeRequest::SetTitle
void SetTitle(Aws::String &&value)
Definition: CreateHITTypeRequest.h:180
Aws::MTurk::Model::CreateHITTypeRequest::SetReward
void SetReward(const Aws::String &value)
Definition: CreateHITTypeRequest.h:121
Aws::MTurk::Model::CreateHITTypeRequest::GetQualificationRequirements
const Aws::Vector< QualificationRequirement > & GetQualificationRequirements() const
Definition: CreateHITTypeRequest.h:340
Aws::MTurk::Model::CreateHITTypeRequest::GetAssignmentDurationInSeconds
long long GetAssignmentDurationInSeconds() const
Definition: CreateHITTypeRequest.h:75
Aws::MTurk::Model::CreateHITTypeRequest::CreateHITTypeRequest
CreateHITTypeRequest()
Aws::MTurk::Model::CreateHITTypeRequest::GetKeywords
const Aws::String & GetKeywords() const
Definition: CreateHITTypeRequest.h:215
MTurk_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::MTurk::Model::CreateHITTypeRequest::WithReward
CreateHITTypeRequest & WithReward(const char *value)
Definition: CreateHITTypeRequest.h:151
Aws::MTurk::Model::CreateHITTypeRequest::WithReward
CreateHITTypeRequest & WithReward(const Aws::String &value)
Definition: CreateHITTypeRequest.h:139
Aws::MTurk::Model::CreateHITTypeRequest::WithReward
CreateHITTypeRequest & WithReward(Aws::String &&value)
Definition: CreateHITTypeRequest.h:145
Aws::MTurk::Model::CreateHITTypeRequest::GetReward
const Aws::String & GetReward() const
Definition: CreateHITTypeRequest.h:109
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MTurk::Model::CreateHITTypeRequest::SetQualificationRequirements
void SetQualificationRequirements(const Aws::Vector< QualificationRequirement > &value)
Definition: CreateHITTypeRequest.h:358
Aws::MTurk::Model::CreateHITTypeRequest::WithDescription
CreateHITTypeRequest & WithDescription(const Aws::String &value)
Definition: CreateHITTypeRequest.h:312
Aws::MTurk::Model::CreateHITTypeRequest::QualificationRequirementsHasBeenSet
bool QualificationRequirementsHasBeenSet() const
Definition: CreateHITTypeRequest.h:349
Aws::MTurk::Model::CreateHITTypeRequest::SetReward
void SetReward(Aws::String &&value)
Definition: CreateHITTypeRequest.h:127
Aws::MTurk::Model::CreateHITTypeRequest::SetQualificationRequirements
void SetQualificationRequirements(Aws::Vector< QualificationRequirement > &&value)
Definition: CreateHITTypeRequest.h:367
Aws::MTurk::Model::CreateHITTypeRequest::TitleHasBeenSet
bool TitleHasBeenSet() const
Definition: CreateHITTypeRequest.h:166
Aws::MTurk::Model::CreateHITTypeRequest::WithTitle
CreateHITTypeRequest & WithTitle(const char *value)
Definition: CreateHITTypeRequest.h:208
Aws::MTurk::Model::CreateHITTypeRequest::SetTitle
void SetTitle(const char *value)
Definition: CreateHITTypeRequest.h:187
Aws::MTurk::Model::CreateHITTypeRequest::SetAutoApprovalDelayInSeconds
void SetAutoApprovalDelayInSeconds(long long value)
Definition: CreateHITTypeRequest.h:58