AWS SDK for C++  1.9.106
AWS SDK for C++
ListAssignmentsForHITRequest.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 "ListAssignmentsForHIT"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetHITId() const{ return m_hITId; }
43 
47  inline bool HITIdHasBeenSet() const { return m_hITIdHasBeenSet; }
48 
52  inline void SetHITId(const Aws::String& value) { m_hITIdHasBeenSet = true; m_hITId = value; }
53 
57  inline void SetHITId(Aws::String&& value) { m_hITIdHasBeenSet = true; m_hITId = std::move(value); }
58 
62  inline void SetHITId(const char* value) { m_hITIdHasBeenSet = true; m_hITId.assign(value); }
63 
67  inline ListAssignmentsForHITRequest& WithHITId(const Aws::String& value) { SetHITId(value); return *this;}
68 
72  inline ListAssignmentsForHITRequest& WithHITId(Aws::String&& value) { SetHITId(std::move(value)); return *this;}
73 
77  inline ListAssignmentsForHITRequest& WithHITId(const char* value) { SetHITId(value); return *this;}
78 
79 
83  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
84 
88  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
89 
93  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
94 
98  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
99 
103  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
104 
108  inline ListAssignmentsForHITRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
109 
113  inline ListAssignmentsForHITRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
114 
118  inline ListAssignmentsForHITRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
119 
120 
121 
122  inline int GetMaxResults() const{ return m_maxResults; }
123 
124 
125  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
126 
127 
128  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
129 
130 
131  inline ListAssignmentsForHITRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
132 
133 
137  inline const Aws::Vector<AssignmentStatus>& GetAssignmentStatuses() const{ return m_assignmentStatuses; }
138 
142  inline bool AssignmentStatusesHasBeenSet() const { return m_assignmentStatusesHasBeenSet; }
143 
147  inline void SetAssignmentStatuses(const Aws::Vector<AssignmentStatus>& value) { m_assignmentStatusesHasBeenSet = true; m_assignmentStatuses = value; }
148 
152  inline void SetAssignmentStatuses(Aws::Vector<AssignmentStatus>&& value) { m_assignmentStatusesHasBeenSet = true; m_assignmentStatuses = std::move(value); }
153 
157  inline ListAssignmentsForHITRequest& WithAssignmentStatuses(const Aws::Vector<AssignmentStatus>& value) { SetAssignmentStatuses(value); return *this;}
158 
162  inline ListAssignmentsForHITRequest& WithAssignmentStatuses(Aws::Vector<AssignmentStatus>&& value) { SetAssignmentStatuses(std::move(value)); return *this;}
163 
167  inline ListAssignmentsForHITRequest& AddAssignmentStatuses(const AssignmentStatus& value) { m_assignmentStatusesHasBeenSet = true; m_assignmentStatuses.push_back(value); return *this; }
168 
172  inline ListAssignmentsForHITRequest& AddAssignmentStatuses(AssignmentStatus&& value) { m_assignmentStatusesHasBeenSet = true; m_assignmentStatuses.push_back(std::move(value)); return *this; }
173 
174  private:
175 
176  Aws::String m_hITId;
177  bool m_hITIdHasBeenSet;
178 
179  Aws::String m_nextToken;
180  bool m_nextTokenHasBeenSet;
181 
182  int m_maxResults;
183  bool m_maxResultsHasBeenSet;
184 
185  Aws::Vector<AssignmentStatus> m_assignmentStatuses;
186  bool m_assignmentStatusesHasBeenSet;
187  };
188 
189 } // namespace Model
190 } // namespace MTurk
191 } // namespace Aws
Aws::MTurk::Model::ListAssignmentsForHITRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListAssignmentsForHITRequest.h:88
Aws::MTurk::Model::ListAssignmentsForHITRequest::WithAssignmentStatuses
ListAssignmentsForHITRequest & WithAssignmentStatuses(Aws::Vector< AssignmentStatus > &&value)
Definition: ListAssignmentsForHITRequest.h:162
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::MTurk::Model::ListAssignmentsForHITRequest::GetHITId
const Aws::String & GetHITId() const
Definition: ListAssignmentsForHITRequest.h:42
Aws::MTurk::Model::ListAssignmentsForHITRequest::WithAssignmentStatuses
ListAssignmentsForHITRequest & WithAssignmentStatuses(const Aws::Vector< AssignmentStatus > &value)
Definition: ListAssignmentsForHITRequest.h:157
Aws::MTurk::Model::ListAssignmentsForHITRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListAssignmentsForHITRequest.h:103
Aws::MTurk::Model::ListAssignmentsForHITRequest::WithNextToken
ListAssignmentsForHITRequest & WithNextToken(Aws::String &&value)
Definition: ListAssignmentsForHITRequest.h:113
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::MTurk::Model::ListAssignmentsForHITRequest::WithHITId
ListAssignmentsForHITRequest & WithHITId(const Aws::String &value)
Definition: ListAssignmentsForHITRequest.h:67
AWSVector.h
Aws::MTurk::MTurkRequest
Definition: MTurkRequest.h:17
Aws::MTurk::Model::ListAssignmentsForHITRequest::WithNextToken
ListAssignmentsForHITRequest & WithNextToken(const char *value)
Definition: ListAssignmentsForHITRequest.h:118
MTurkRequest.h
Aws::MTurk::Model::ListAssignmentsForHITRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListAssignmentsForHITRequest.h:125
Aws::MTurk::Model::ListAssignmentsForHITRequest::SetAssignmentStatuses
void SetAssignmentStatuses(Aws::Vector< AssignmentStatus > &&value)
Definition: ListAssignmentsForHITRequest.h:152
Aws::MTurk::Model::ListAssignmentsForHITRequest::ListAssignmentsForHITRequest
ListAssignmentsForHITRequest()
Aws::MTurk::Model::ListAssignmentsForHITRequest::GetMaxResults
int GetMaxResults() const
Definition: ListAssignmentsForHITRequest.h:122
Aws::MTurk::Model::ListAssignmentsForHITRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListAssignmentsForHITRequest.h:93
Aws::MTurk::Model::ListAssignmentsForHITRequest::SetAssignmentStatuses
void SetAssignmentStatuses(const Aws::Vector< AssignmentStatus > &value)
Definition: ListAssignmentsForHITRequest.h:147
Aws::MTurk::Model::ListAssignmentsForHITRequest::AddAssignmentStatuses
ListAssignmentsForHITRequest & AddAssignmentStatuses(const AssignmentStatus &value)
Definition: ListAssignmentsForHITRequest.h:167
Aws::MTurk::Model::ListAssignmentsForHITRequest::SetHITId
void SetHITId(const Aws::String &value)
Definition: ListAssignmentsForHITRequest.h:52
Aws::MTurk::Model::ListAssignmentsForHITRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MTurk::Model::ListAssignmentsForHITRequest::AssignmentStatusesHasBeenSet
bool AssignmentStatusesHasBeenSet() const
Definition: ListAssignmentsForHITRequest.h:142
Aws::MTurk::Model::AssignmentStatus
AssignmentStatus
Definition: AssignmentStatus.h:17
AWSString.h
Aws::MTurk::Model::ListAssignmentsForHITRequest::WithNextToken
ListAssignmentsForHITRequest & WithNextToken(const Aws::String &value)
Definition: ListAssignmentsForHITRequest.h:108
Aws::MTurk::Model::ListAssignmentsForHITRequest::WithMaxResults
ListAssignmentsForHITRequest & WithMaxResults(int value)
Definition: ListAssignmentsForHITRequest.h:131
Aws::MTurk::Model::ListAssignmentsForHITRequest::SetHITId
void SetHITId(const char *value)
Definition: ListAssignmentsForHITRequest.h:62
AssignmentStatus.h
Aws::MTurk::Model::ListAssignmentsForHITRequest::GetAssignmentStatuses
const Aws::Vector< AssignmentStatus > & GetAssignmentStatuses() const
Definition: ListAssignmentsForHITRequest.h:137
Aws::MTurk::Model::ListAssignmentsForHITRequest::WithHITId
ListAssignmentsForHITRequest & WithHITId(const char *value)
Definition: ListAssignmentsForHITRequest.h:77
Aws::MTurk::Model::ListAssignmentsForHITRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::MTurk::Model::ListAssignmentsForHITRequest::HITIdHasBeenSet
bool HITIdHasBeenSet() const
Definition: ListAssignmentsForHITRequest.h:47
MTurk_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::MTurk::Model::ListAssignmentsForHITRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListAssignmentsForHITRequest.h:128
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::MTurk::Model::ListAssignmentsForHITRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListAssignmentsForHITRequest.h:98
Aws::MTurk::Model::ListAssignmentsForHITRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListAssignmentsForHITRequest.h:83
Aws::MTurk::Model::ListAssignmentsForHITRequest::SetHITId
void SetHITId(Aws::String &&value)
Definition: ListAssignmentsForHITRequest.h:57
Aws::MTurk::Model::ListAssignmentsForHITRequest::WithHITId
ListAssignmentsForHITRequest & WithHITId(Aws::String &&value)
Definition: ListAssignmentsForHITRequest.h:72
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MTurk::Model::ListAssignmentsForHITRequest::AddAssignmentStatuses
ListAssignmentsForHITRequest & AddAssignmentStatuses(AssignmentStatus &&value)
Definition: ListAssignmentsForHITRequest.h:172
Aws::MTurk::Model::ListAssignmentsForHITRequest
Definition: ListAssignmentsForHITRequest.h:24
Aws::MTurk::Model::ListAssignmentsForHITRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListAssignmentsForHITRequest.h:32