AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateHITRequest.h
1
6#pragma once
7#include <aws/mturk-requester/MTurk_EXPORTS.h>
8#include <aws/mturk-requester/MTurkRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/mturk-requester/model/ReviewPolicy.h>
12#include <aws/mturk-requester/model/QualificationRequirement.h>
13#include <aws/mturk-requester/model/HITLayoutParameter.h>
14#include <utility>
15
16namespace Aws
17{
18namespace MTurk
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_MTURK_API CreateHITRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateHIT"; }
35
36 AWS_MTURK_API Aws::String SerializePayload() const override;
37
39
40
42
46 inline int GetMaxAssignments() const{ return m_maxAssignments; }
47 inline bool MaxAssignmentsHasBeenSet() const { return m_maxAssignmentsHasBeenSet; }
48 inline void SetMaxAssignments(int value) { m_maxAssignmentsHasBeenSet = true; m_maxAssignments = value; }
49 inline CreateHITRequest& WithMaxAssignments(int value) { SetMaxAssignments(value); return *this;}
51
53
58 inline long long GetAutoApprovalDelayInSeconds() const{ return m_autoApprovalDelayInSeconds; }
59 inline bool AutoApprovalDelayInSecondsHasBeenSet() const { return m_autoApprovalDelayInSecondsHasBeenSet; }
60 inline void SetAutoApprovalDelayInSeconds(long long value) { m_autoApprovalDelayInSecondsHasBeenSet = true; m_autoApprovalDelayInSeconds = value; }
61 inline CreateHITRequest& WithAutoApprovalDelayInSeconds(long long value) { SetAutoApprovalDelayInSeconds(value); return *this;}
63
65
71 inline long long GetLifetimeInSeconds() const{ return m_lifetimeInSeconds; }
72 inline bool LifetimeInSecondsHasBeenSet() const { return m_lifetimeInSecondsHasBeenSet; }
73 inline void SetLifetimeInSeconds(long long value) { m_lifetimeInSecondsHasBeenSet = true; m_lifetimeInSeconds = value; }
74 inline CreateHITRequest& WithLifetimeInSeconds(long long value) { SetLifetimeInSeconds(value); return *this;}
76
78
85 inline long long GetAssignmentDurationInSeconds() const{ return m_assignmentDurationInSeconds; }
86 inline bool AssignmentDurationInSecondsHasBeenSet() const { return m_assignmentDurationInSecondsHasBeenSet; }
87 inline void SetAssignmentDurationInSeconds(long long value) { m_assignmentDurationInSecondsHasBeenSet = true; m_assignmentDurationInSeconds = value; }
90
92
96 inline const Aws::String& GetReward() const{ return m_reward; }
97 inline bool RewardHasBeenSet() const { return m_rewardHasBeenSet; }
98 inline void SetReward(const Aws::String& value) { m_rewardHasBeenSet = true; m_reward = value; }
99 inline void SetReward(Aws::String&& value) { m_rewardHasBeenSet = true; m_reward = std::move(value); }
100 inline void SetReward(const char* value) { m_rewardHasBeenSet = true; m_reward.assign(value); }
101 inline CreateHITRequest& WithReward(const Aws::String& value) { SetReward(value); return *this;}
102 inline CreateHITRequest& WithReward(Aws::String&& value) { SetReward(std::move(value)); return *this;}
103 inline CreateHITRequest& WithReward(const char* value) { SetReward(value); return *this;}
105
107
112 inline const Aws::String& GetTitle() const{ return m_title; }
113 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
114 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
115 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
116 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
117 inline CreateHITRequest& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
118 inline CreateHITRequest& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
119 inline CreateHITRequest& WithTitle(const char* value) { SetTitle(value); return *this;}
121
123
127 inline const Aws::String& GetKeywords() const{ return m_keywords; }
128 inline bool KeywordsHasBeenSet() const { return m_keywordsHasBeenSet; }
129 inline void SetKeywords(const Aws::String& value) { m_keywordsHasBeenSet = true; m_keywords = value; }
130 inline void SetKeywords(Aws::String&& value) { m_keywordsHasBeenSet = true; m_keywords = std::move(value); }
131 inline void SetKeywords(const char* value) { m_keywordsHasBeenSet = true; m_keywords.assign(value); }
132 inline CreateHITRequest& WithKeywords(const Aws::String& value) { SetKeywords(value); return *this;}
133 inline CreateHITRequest& WithKeywords(Aws::String&& value) { SetKeywords(std::move(value)); return *this;}
134 inline CreateHITRequest& WithKeywords(const char* value) { SetKeywords(value); return *this;}
136
138
145 inline const Aws::String& GetDescription() const{ return m_description; }
146 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
147 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
148 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
149 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
150 inline CreateHITRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
151 inline CreateHITRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
152 inline CreateHITRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
154
156
163 inline const Aws::String& GetQuestion() const{ return m_question; }
164 inline bool QuestionHasBeenSet() const { return m_questionHasBeenSet; }
165 inline void SetQuestion(const Aws::String& value) { m_questionHasBeenSet = true; m_question = value; }
166 inline void SetQuestion(Aws::String&& value) { m_questionHasBeenSet = true; m_question = std::move(value); }
167 inline void SetQuestion(const char* value) { m_questionHasBeenSet = true; m_question.assign(value); }
168 inline CreateHITRequest& WithQuestion(const Aws::String& value) { SetQuestion(value); return *this;}
169 inline CreateHITRequest& WithQuestion(Aws::String&& value) { SetQuestion(std::move(value)); return *this;}
170 inline CreateHITRequest& WithQuestion(const char* value) { SetQuestion(value); return *this;}
172
174
184 inline const Aws::String& GetRequesterAnnotation() const{ return m_requesterAnnotation; }
185 inline bool RequesterAnnotationHasBeenSet() const { return m_requesterAnnotationHasBeenSet; }
186 inline void SetRequesterAnnotation(const Aws::String& value) { m_requesterAnnotationHasBeenSet = true; m_requesterAnnotation = value; }
187 inline void SetRequesterAnnotation(Aws::String&& value) { m_requesterAnnotationHasBeenSet = true; m_requesterAnnotation = std::move(value); }
188 inline void SetRequesterAnnotation(const char* value) { m_requesterAnnotationHasBeenSet = true; m_requesterAnnotation.assign(value); }
189 inline CreateHITRequest& WithRequesterAnnotation(const Aws::String& value) { SetRequesterAnnotation(value); return *this;}
190 inline CreateHITRequest& WithRequesterAnnotation(Aws::String&& value) { SetRequesterAnnotation(std::move(value)); return *this;}
191 inline CreateHITRequest& WithRequesterAnnotation(const char* value) { SetRequesterAnnotation(value); return *this;}
193
195
202 inline const Aws::Vector<QualificationRequirement>& GetQualificationRequirements() const{ return m_qualificationRequirements; }
203 inline bool QualificationRequirementsHasBeenSet() const { return m_qualificationRequirementsHasBeenSet; }
204 inline void SetQualificationRequirements(const Aws::Vector<QualificationRequirement>& value) { m_qualificationRequirementsHasBeenSet = true; m_qualificationRequirements = value; }
205 inline void SetQualificationRequirements(Aws::Vector<QualificationRequirement>&& value) { m_qualificationRequirementsHasBeenSet = true; m_qualificationRequirements = std::move(value); }
208 inline CreateHITRequest& AddQualificationRequirements(const QualificationRequirement& value) { m_qualificationRequirementsHasBeenSet = true; m_qualificationRequirements.push_back(value); return *this; }
209 inline CreateHITRequest& AddQualificationRequirements(QualificationRequirement&& value) { m_qualificationRequirementsHasBeenSet = true; m_qualificationRequirements.push_back(std::move(value)); return *this; }
211
213
225 inline const Aws::String& GetUniqueRequestToken() const{ return m_uniqueRequestToken; }
226 inline bool UniqueRequestTokenHasBeenSet() const { return m_uniqueRequestTokenHasBeenSet; }
227 inline void SetUniqueRequestToken(const Aws::String& value) { m_uniqueRequestTokenHasBeenSet = true; m_uniqueRequestToken = value; }
228 inline void SetUniqueRequestToken(Aws::String&& value) { m_uniqueRequestTokenHasBeenSet = true; m_uniqueRequestToken = std::move(value); }
229 inline void SetUniqueRequestToken(const char* value) { m_uniqueRequestTokenHasBeenSet = true; m_uniqueRequestToken.assign(value); }
230 inline CreateHITRequest& WithUniqueRequestToken(const Aws::String& value) { SetUniqueRequestToken(value); return *this;}
231 inline CreateHITRequest& WithUniqueRequestToken(Aws::String&& value) { SetUniqueRequestToken(std::move(value)); return *this;}
232 inline CreateHITRequest& WithUniqueRequestToken(const char* value) { SetUniqueRequestToken(value); return *this;}
234
236
241 inline const ReviewPolicy& GetAssignmentReviewPolicy() const{ return m_assignmentReviewPolicy; }
242 inline bool AssignmentReviewPolicyHasBeenSet() const { return m_assignmentReviewPolicyHasBeenSet; }
243 inline void SetAssignmentReviewPolicy(const ReviewPolicy& value) { m_assignmentReviewPolicyHasBeenSet = true; m_assignmentReviewPolicy = value; }
244 inline void SetAssignmentReviewPolicy(ReviewPolicy&& value) { m_assignmentReviewPolicyHasBeenSet = true; m_assignmentReviewPolicy = std::move(value); }
246 inline CreateHITRequest& WithAssignmentReviewPolicy(ReviewPolicy&& value) { SetAssignmentReviewPolicy(std::move(value)); return *this;}
248
250
254 inline const ReviewPolicy& GetHITReviewPolicy() const{ return m_hITReviewPolicy; }
255 inline bool HITReviewPolicyHasBeenSet() const { return m_hITReviewPolicyHasBeenSet; }
256 inline void SetHITReviewPolicy(const ReviewPolicy& value) { m_hITReviewPolicyHasBeenSet = true; m_hITReviewPolicy = value; }
257 inline void SetHITReviewPolicy(ReviewPolicy&& value) { m_hITReviewPolicyHasBeenSet = true; m_hITReviewPolicy = std::move(value); }
258 inline CreateHITRequest& WithHITReviewPolicy(const ReviewPolicy& value) { SetHITReviewPolicy(value); return *this;}
259 inline CreateHITRequest& WithHITReviewPolicy(ReviewPolicy&& value) { SetHITReviewPolicy(std::move(value)); return *this;}
261
263
269 inline const Aws::String& GetHITLayoutId() const{ return m_hITLayoutId; }
270 inline bool HITLayoutIdHasBeenSet() const { return m_hITLayoutIdHasBeenSet; }
271 inline void SetHITLayoutId(const Aws::String& value) { m_hITLayoutIdHasBeenSet = true; m_hITLayoutId = value; }
272 inline void SetHITLayoutId(Aws::String&& value) { m_hITLayoutIdHasBeenSet = true; m_hITLayoutId = std::move(value); }
273 inline void SetHITLayoutId(const char* value) { m_hITLayoutIdHasBeenSet = true; m_hITLayoutId.assign(value); }
274 inline CreateHITRequest& WithHITLayoutId(const Aws::String& value) { SetHITLayoutId(value); return *this;}
275 inline CreateHITRequest& WithHITLayoutId(Aws::String&& value) { SetHITLayoutId(std::move(value)); return *this;}
276 inline CreateHITRequest& WithHITLayoutId(const char* value) { SetHITLayoutId(value); return *this;}
278
280
285 inline const Aws::Vector<HITLayoutParameter>& GetHITLayoutParameters() const{ return m_hITLayoutParameters; }
286 inline bool HITLayoutParametersHasBeenSet() const { return m_hITLayoutParametersHasBeenSet; }
287 inline void SetHITLayoutParameters(const Aws::Vector<HITLayoutParameter>& value) { m_hITLayoutParametersHasBeenSet = true; m_hITLayoutParameters = value; }
288 inline void SetHITLayoutParameters(Aws::Vector<HITLayoutParameter>&& value) { m_hITLayoutParametersHasBeenSet = true; m_hITLayoutParameters = std::move(value); }
291 inline CreateHITRequest& AddHITLayoutParameters(const HITLayoutParameter& value) { m_hITLayoutParametersHasBeenSet = true; m_hITLayoutParameters.push_back(value); return *this; }
292 inline CreateHITRequest& AddHITLayoutParameters(HITLayoutParameter&& value) { m_hITLayoutParametersHasBeenSet = true; m_hITLayoutParameters.push_back(std::move(value)); return *this; }
294 private:
295
296 int m_maxAssignments;
297 bool m_maxAssignmentsHasBeenSet = false;
298
299 long long m_autoApprovalDelayInSeconds;
300 bool m_autoApprovalDelayInSecondsHasBeenSet = false;
301
302 long long m_lifetimeInSeconds;
303 bool m_lifetimeInSecondsHasBeenSet = false;
304
305 long long m_assignmentDurationInSeconds;
306 bool m_assignmentDurationInSecondsHasBeenSet = false;
307
308 Aws::String m_reward;
309 bool m_rewardHasBeenSet = false;
310
311 Aws::String m_title;
312 bool m_titleHasBeenSet = false;
313
314 Aws::String m_keywords;
315 bool m_keywordsHasBeenSet = false;
316
317 Aws::String m_description;
318 bool m_descriptionHasBeenSet = false;
319
320 Aws::String m_question;
321 bool m_questionHasBeenSet = false;
322
323 Aws::String m_requesterAnnotation;
324 bool m_requesterAnnotationHasBeenSet = false;
325
326 Aws::Vector<QualificationRequirement> m_qualificationRequirements;
327 bool m_qualificationRequirementsHasBeenSet = false;
328
329 Aws::String m_uniqueRequestToken;
330 bool m_uniqueRequestTokenHasBeenSet = false;
331
332 ReviewPolicy m_assignmentReviewPolicy;
333 bool m_assignmentReviewPolicyHasBeenSet = false;
334
335 ReviewPolicy m_hITReviewPolicy;
336 bool m_hITReviewPolicyHasBeenSet = false;
337
338 Aws::String m_hITLayoutId;
339 bool m_hITLayoutIdHasBeenSet = false;
340
341 Aws::Vector<HITLayoutParameter> m_hITLayoutParameters;
342 bool m_hITLayoutParametersHasBeenSet = false;
343 };
344
345} // namespace Model
346} // namespace MTurk
347} // namespace Aws
CreateHITRequest & WithHITReviewPolicy(const ReviewPolicy &value)
CreateHITRequest & WithUniqueRequestToken(const char *value)
void SetHITReviewPolicy(const ReviewPolicy &value)
void SetQualificationRequirements(Aws::Vector< QualificationRequirement > &&value)
const Aws::String & GetKeywords() const
CreateHITRequest & WithQuestion(const char *value)
const ReviewPolicy & GetAssignmentReviewPolicy() const
CreateHITRequest & WithAutoApprovalDelayInSeconds(long long value)
void SetHITLayoutId(const Aws::String &value)
const Aws::String & GetReward() const
CreateHITRequest & WithDescription(const Aws::String &value)
void SetAssignmentReviewPolicy(const ReviewPolicy &value)
CreateHITRequest & WithKeywords(Aws::String &&value)
const Aws::Vector< HITLayoutParameter > & GetHITLayoutParameters() const
CreateHITRequest & WithMaxAssignments(int value)
CreateHITRequest & WithRequesterAnnotation(Aws::String &&value)
void SetAssignmentDurationInSeconds(long long value)
void SetQuestion(const Aws::String &value)
CreateHITRequest & WithHITLayoutParameters(const Aws::Vector< HITLayoutParameter > &value)
long long GetAutoApprovalDelayInSeconds() const
void SetKeywords(const Aws::String &value)
CreateHITRequest & AddHITLayoutParameters(const HITLayoutParameter &value)
const Aws::String & GetUniqueRequestToken() const
void SetHITLayoutParameters(Aws::Vector< HITLayoutParameter > &&value)
void SetRequesterAnnotation(const Aws::String &value)
CreateHITRequest & WithHITLayoutId(Aws::String &&value)
CreateHITRequest & WithKeywords(const Aws::String &value)
CreateHITRequest & WithLifetimeInSeconds(long long value)
CreateHITRequest & WithHITLayoutParameters(Aws::Vector< HITLayoutParameter > &&value)
CreateHITRequest & WithQuestion(Aws::String &&value)
CreateHITRequest & WithReward(const char *value)
CreateHITRequest & WithHITReviewPolicy(ReviewPolicy &&value)
CreateHITRequest & AddQualificationRequirements(const QualificationRequirement &value)
CreateHITRequest & AddQualificationRequirements(QualificationRequirement &&value)
CreateHITRequest & WithTitle(const char *value)
const ReviewPolicy & GetHITReviewPolicy() const
void SetHITLayoutId(const char *value)
CreateHITRequest & WithTitle(Aws::String &&value)
void SetQuestion(Aws::String &&value)
long long GetAssignmentDurationInSeconds() const
CreateHITRequest & WithQualificationRequirements(Aws::Vector< QualificationRequirement > &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetQuestion() const
void SetHITLayoutParameters(const Aws::Vector< HITLayoutParameter > &value)
const Aws::String & GetDescription() const
const Aws::String & GetHITLayoutId() const
const Aws::String & GetRequesterAnnotation() const
CreateHITRequest & WithDescription(const char *value)
void SetTitle(const Aws::String &value)
void SetHITLayoutId(Aws::String &&value)
CreateHITRequest & WithQualificationRequirements(const Aws::Vector< QualificationRequirement > &value)
CreateHITRequest & WithHITLayoutId(const Aws::String &value)
void SetUniqueRequestToken(const Aws::String &value)
void SetRequesterAnnotation(Aws::String &&value)
void SetAutoApprovalDelayInSeconds(long long value)
CreateHITRequest & AddHITLayoutParameters(HITLayoutParameter &&value)
void SetDescription(const char *value)
void SetUniqueRequestToken(const char *value)
void SetQualificationRequirements(const Aws::Vector< QualificationRequirement > &value)
CreateHITRequest & WithDescription(Aws::String &&value)
CreateHITRequest & WithQuestion(const Aws::String &value)
void SetReward(const Aws::String &value)
CreateHITRequest & WithUniqueRequestToken(Aws::String &&value)
AWS_MTURK_API Aws::String SerializePayload() const override
void SetReward(Aws::String &&value)
void SetAssignmentReviewPolicy(ReviewPolicy &&value)
CreateHITRequest & WithAssignmentReviewPolicy(const ReviewPolicy &value)
void SetTitle(Aws::String &&value)
CreateHITRequest & WithRequesterAnnotation(const char *value)
CreateHITRequest & WithRequesterAnnotation(const Aws::String &value)
void SetDescription(const Aws::String &value)
CreateHITRequest & WithReward(const Aws::String &value)
CreateHITRequest & WithReward(Aws::String &&value)
void SetLifetimeInSeconds(long long value)
const Aws::Vector< QualificationRequirement > & GetQualificationRequirements() const
void SetHITReviewPolicy(ReviewPolicy &&value)
CreateHITRequest & WithTitle(const Aws::String &value)
CreateHITRequest & WithKeywords(const char *value)
const Aws::String & GetTitle() const
CreateHITRequest & WithAssignmentDurationInSeconds(long long value)
CreateHITRequest & WithHITLayoutId(const char *value)
CreateHITRequest & WithAssignmentReviewPolicy(ReviewPolicy &&value)
CreateHITRequest & WithUniqueRequestToken(const Aws::String &value)
void SetDescription(Aws::String &&value)
void SetUniqueRequestToken(Aws::String &&value)
AWS_MTURK_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetRequesterAnnotation(const char *value)
void SetKeywords(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector