AWS SDK for C++  1.9.160
AWS SDK for C++
CreateAdditionalAssignmentsForHITRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace MTurk
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "CreateAdditionalAssignmentsForHIT"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetHITId() const{ return m_hITId; }
41 
45  inline bool HITIdHasBeenSet() const { return m_hITIdHasBeenSet; }
46 
50  inline void SetHITId(const Aws::String& value) { m_hITIdHasBeenSet = true; m_hITId = value; }
51 
55  inline void SetHITId(Aws::String&& value) { m_hITIdHasBeenSet = true; m_hITId = std::move(value); }
56 
60  inline void SetHITId(const char* value) { m_hITIdHasBeenSet = true; m_hITId.assign(value); }
61 
65  inline CreateAdditionalAssignmentsForHITRequest& WithHITId(const Aws::String& value) { SetHITId(value); return *this;}
66 
70  inline CreateAdditionalAssignmentsForHITRequest& WithHITId(Aws::String&& value) { SetHITId(std::move(value)); return *this;}
71 
75  inline CreateAdditionalAssignmentsForHITRequest& WithHITId(const char* value) { SetHITId(value); return *this;}
76 
77 
81  inline int GetNumberOfAdditionalAssignments() const{ return m_numberOfAdditionalAssignments; }
82 
86  inline bool NumberOfAdditionalAssignmentsHasBeenSet() const { return m_numberOfAdditionalAssignmentsHasBeenSet; }
87 
91  inline void SetNumberOfAdditionalAssignments(int value) { m_numberOfAdditionalAssignmentsHasBeenSet = true; m_numberOfAdditionalAssignments = value; }
92 
96  inline CreateAdditionalAssignmentsForHITRequest& WithNumberOfAdditionalAssignments(int value) { SetNumberOfAdditionalAssignments(value); return *this;}
97 
98 
107  inline const Aws::String& GetUniqueRequestToken() const{ return m_uniqueRequestToken; }
108 
117  inline bool UniqueRequestTokenHasBeenSet() const { return m_uniqueRequestTokenHasBeenSet; }
118 
127  inline void SetUniqueRequestToken(const Aws::String& value) { m_uniqueRequestTokenHasBeenSet = true; m_uniqueRequestToken = value; }
128 
137  inline void SetUniqueRequestToken(Aws::String&& value) { m_uniqueRequestTokenHasBeenSet = true; m_uniqueRequestToken = std::move(value); }
138 
147  inline void SetUniqueRequestToken(const char* value) { m_uniqueRequestTokenHasBeenSet = true; m_uniqueRequestToken.assign(value); }
148 
157  inline CreateAdditionalAssignmentsForHITRequest& WithUniqueRequestToken(const Aws::String& value) { SetUniqueRequestToken(value); return *this;}
158 
167  inline CreateAdditionalAssignmentsForHITRequest& WithUniqueRequestToken(Aws::String&& value) { SetUniqueRequestToken(std::move(value)); return *this;}
168 
177  inline CreateAdditionalAssignmentsForHITRequest& WithUniqueRequestToken(const char* value) { SetUniqueRequestToken(value); return *this;}
178 
179  private:
180 
181  Aws::String m_hITId;
182  bool m_hITIdHasBeenSet;
183 
184  int m_numberOfAdditionalAssignments;
185  bool m_numberOfAdditionalAssignmentsHasBeenSet;
186 
187  Aws::String m_uniqueRequestToken;
188  bool m_uniqueRequestTokenHasBeenSet;
189  };
190 
191 } // namespace Model
192 } // namespace MTurk
193 } // namespace Aws
Aws::MTurk::Model::CreateAdditionalAssignmentsForHITRequest::SetUniqueRequestToken
void SetUniqueRequestToken(const char *value)
Definition: CreateAdditionalAssignmentsForHITRequest.h:147
Aws::MTurk::Model::CreateAdditionalAssignmentsForHITRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateAdditionalAssignmentsForHITRequest.h:30
Aws::MTurk::Model::CreateAdditionalAssignmentsForHITRequest::WithHITId
CreateAdditionalAssignmentsForHITRequest & WithHITId(const char *value)
Definition: CreateAdditionalAssignmentsForHITRequest.h:75
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::MTurk::Model::CreateAdditionalAssignmentsForHITRequest::WithHITId
CreateAdditionalAssignmentsForHITRequest & WithHITId(const Aws::String &value)
Definition: CreateAdditionalAssignmentsForHITRequest.h:65
Aws::MTurk::Model::CreateAdditionalAssignmentsForHITRequest::GetNumberOfAdditionalAssignments
int GetNumberOfAdditionalAssignments() const
Definition: CreateAdditionalAssignmentsForHITRequest.h:81
Aws::MTurk::MTurkRequest
Definition: MTurkRequest.h:17
Aws::MTurk::Model::CreateAdditionalAssignmentsForHITRequest::CreateAdditionalAssignmentsForHITRequest
CreateAdditionalAssignmentsForHITRequest()
Aws::MTurk::Model::CreateAdditionalAssignmentsForHITRequest::SetUniqueRequestToken
void SetUniqueRequestToken(const Aws::String &value)
Definition: CreateAdditionalAssignmentsForHITRequest.h:127
MTurkRequest.h
Aws::MTurk::Model::CreateAdditionalAssignmentsForHITRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::MTurk::Model::CreateAdditionalAssignmentsForHITRequest::SetHITId
void SetHITId(const Aws::String &value)
Definition: CreateAdditionalAssignmentsForHITRequest.h:50
Aws::MTurk::Model::CreateAdditionalAssignmentsForHITRequest::GetUniqueRequestToken
const Aws::String & GetUniqueRequestToken() const
Definition: CreateAdditionalAssignmentsForHITRequest.h:107
AWSString.h
Aws::MTurk::Model::CreateAdditionalAssignmentsForHITRequest::WithUniqueRequestToken
CreateAdditionalAssignmentsForHITRequest & WithUniqueRequestToken(Aws::String &&value)
Definition: CreateAdditionalAssignmentsForHITRequest.h:167
Aws::MTurk::Model::CreateAdditionalAssignmentsForHITRequest::GetHITId
const Aws::String & GetHITId() const
Definition: CreateAdditionalAssignmentsForHITRequest.h:40
Aws::MTurk::Model::CreateAdditionalAssignmentsForHITRequest::SetHITId
void SetHITId(const char *value)
Definition: CreateAdditionalAssignmentsForHITRequest.h:60
Aws::MTurk::Model::CreateAdditionalAssignmentsForHITRequest::WithHITId
CreateAdditionalAssignmentsForHITRequest & WithHITId(Aws::String &&value)
Definition: CreateAdditionalAssignmentsForHITRequest.h:70
Aws::MTurk::Model::CreateAdditionalAssignmentsForHITRequest::SerializePayload
Aws::String SerializePayload() const override
MTurk_EXPORTS.h
Aws::MTurk::Model::CreateAdditionalAssignmentsForHITRequest::WithUniqueRequestToken
CreateAdditionalAssignmentsForHITRequest & WithUniqueRequestToken(const char *value)
Definition: CreateAdditionalAssignmentsForHITRequest.h:177
Aws
Definition: AccessManagementClient.h:15
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::MTurk::Model::CreateAdditionalAssignmentsForHITRequest::SetUniqueRequestToken
void SetUniqueRequestToken(Aws::String &&value)
Definition: CreateAdditionalAssignmentsForHITRequest.h:137
Aws::MTurk::Model::CreateAdditionalAssignmentsForHITRequest::NumberOfAdditionalAssignmentsHasBeenSet
bool NumberOfAdditionalAssignmentsHasBeenSet() const
Definition: CreateAdditionalAssignmentsForHITRequest.h:86
Aws::MTurk::Model::CreateAdditionalAssignmentsForHITRequest
Definition: CreateAdditionalAssignmentsForHITRequest.h:22
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MTurk::Model::CreateAdditionalAssignmentsForHITRequest::WithUniqueRequestToken
CreateAdditionalAssignmentsForHITRequest & WithUniqueRequestToken(const Aws::String &value)
Definition: CreateAdditionalAssignmentsForHITRequest.h:157
Aws::MTurk::Model::CreateAdditionalAssignmentsForHITRequest::UniqueRequestTokenHasBeenSet
bool UniqueRequestTokenHasBeenSet() const
Definition: CreateAdditionalAssignmentsForHITRequest.h:117
Aws::MTurk::Model::CreateAdditionalAssignmentsForHITRequest::SetNumberOfAdditionalAssignments
void SetNumberOfAdditionalAssignments(int value)
Definition: CreateAdditionalAssignmentsForHITRequest.h:91
Aws::MTurk::Model::CreateAdditionalAssignmentsForHITRequest::SetHITId
void SetHITId(Aws::String &&value)
Definition: CreateAdditionalAssignmentsForHITRequest.h:55
Aws::MTurk::Model::CreateAdditionalAssignmentsForHITRequest::HITIdHasBeenSet
bool HITIdHasBeenSet() const
Definition: CreateAdditionalAssignmentsForHITRequest.h:45
Aws::MTurk::Model::CreateAdditionalAssignmentsForHITRequest::WithNumberOfAdditionalAssignments
CreateAdditionalAssignmentsForHITRequest & WithNumberOfAdditionalAssignments(int value)
Definition: CreateAdditionalAssignmentsForHITRequest.h:96