AWS SDK for C++  1.9.104
AWS SDK for C++
ListReviewPolicyResultsForHITRequest.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 "ListReviewPolicyResultsForHIT"; }
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 ListReviewPolicyResultsForHITRequest& WithHITId(const Aws::String& value) { SetHITId(value); return *this;}
68 
72  inline ListReviewPolicyResultsForHITRequest& WithHITId(Aws::String&& value) { SetHITId(std::move(value)); return *this;}
73 
77  inline ListReviewPolicyResultsForHITRequest& WithHITId(const char* value) { SetHITId(value); return *this;}
78 
79 
85  inline const Aws::Vector<ReviewPolicyLevel>& GetPolicyLevels() const{ return m_policyLevels; }
86 
92  inline bool PolicyLevelsHasBeenSet() const { return m_policyLevelsHasBeenSet; }
93 
99  inline void SetPolicyLevels(const Aws::Vector<ReviewPolicyLevel>& value) { m_policyLevelsHasBeenSet = true; m_policyLevels = value; }
100 
106  inline void SetPolicyLevels(Aws::Vector<ReviewPolicyLevel>&& value) { m_policyLevelsHasBeenSet = true; m_policyLevels = std::move(value); }
107 
113  inline ListReviewPolicyResultsForHITRequest& WithPolicyLevels(const Aws::Vector<ReviewPolicyLevel>& value) { SetPolicyLevels(value); return *this;}
114 
120  inline ListReviewPolicyResultsForHITRequest& WithPolicyLevels(Aws::Vector<ReviewPolicyLevel>&& value) { SetPolicyLevels(std::move(value)); return *this;}
121 
127  inline ListReviewPolicyResultsForHITRequest& AddPolicyLevels(const ReviewPolicyLevel& value) { m_policyLevelsHasBeenSet = true; m_policyLevels.push_back(value); return *this; }
128 
134  inline ListReviewPolicyResultsForHITRequest& AddPolicyLevels(ReviewPolicyLevel&& value) { m_policyLevelsHasBeenSet = true; m_policyLevels.push_back(std::move(value)); return *this; }
135 
136 
141  inline bool GetRetrieveActions() const{ return m_retrieveActions; }
142 
147  inline bool RetrieveActionsHasBeenSet() const { return m_retrieveActionsHasBeenSet; }
148 
153  inline void SetRetrieveActions(bool value) { m_retrieveActionsHasBeenSet = true; m_retrieveActions = value; }
154 
159  inline ListReviewPolicyResultsForHITRequest& WithRetrieveActions(bool value) { SetRetrieveActions(value); return *this;}
160 
161 
166  inline bool GetRetrieveResults() const{ return m_retrieveResults; }
167 
172  inline bool RetrieveResultsHasBeenSet() const { return m_retrieveResultsHasBeenSet; }
173 
178  inline void SetRetrieveResults(bool value) { m_retrieveResultsHasBeenSet = true; m_retrieveResults = value; }
179 
184  inline ListReviewPolicyResultsForHITRequest& WithRetrieveResults(bool value) { SetRetrieveResults(value); return *this;}
185 
186 
190  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
191 
195  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
196 
200  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
201 
205  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
206 
210  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
211 
215  inline ListReviewPolicyResultsForHITRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
216 
220  inline ListReviewPolicyResultsForHITRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
221 
225  inline ListReviewPolicyResultsForHITRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
226 
227 
231  inline int GetMaxResults() const{ return m_maxResults; }
232 
236  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
237 
241  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
242 
246  inline ListReviewPolicyResultsForHITRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
247 
248  private:
249 
250  Aws::String m_hITId;
251  bool m_hITIdHasBeenSet;
252 
253  Aws::Vector<ReviewPolicyLevel> m_policyLevels;
254  bool m_policyLevelsHasBeenSet;
255 
256  bool m_retrieveActions;
257  bool m_retrieveActionsHasBeenSet;
258 
259  bool m_retrieveResults;
260  bool m_retrieveResultsHasBeenSet;
261 
262  Aws::String m_nextToken;
263  bool m_nextTokenHasBeenSet;
264 
265  int m_maxResults;
266  bool m_maxResultsHasBeenSet;
267  };
268 
269 } // namespace Model
270 } // namespace MTurk
271 } // namespace Aws
ReviewPolicyLevel.h
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::SetHITId
void SetHITId(const char *value)
Definition: ListReviewPolicyResultsForHITRequest.h:62
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::WithHITId
ListReviewPolicyResultsForHITRequest & WithHITId(const Aws::String &value)
Definition: ListReviewPolicyResultsForHITRequest.h:67
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListReviewPolicyResultsForHITRequest.h:195
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListReviewPolicyResultsForHITRequest.h:236
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListReviewPolicyResultsForHITRequest.h:200
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::WithNextToken
ListReviewPolicyResultsForHITRequest & WithNextToken(Aws::String &&value)
Definition: ListReviewPolicyResultsForHITRequest.h:220
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::WithRetrieveActions
ListReviewPolicyResultsForHITRequest & WithRetrieveActions(bool value)
Definition: ListReviewPolicyResultsForHITRequest.h:159
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::SetPolicyLevels
void SetPolicyLevels(const Aws::Vector< ReviewPolicyLevel > &value)
Definition: ListReviewPolicyResultsForHITRequest.h:99
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::SetRetrieveResults
void SetRetrieveResults(bool value)
Definition: ListReviewPolicyResultsForHITRequest.h:178
AWSVector.h
Aws::MTurk::MTurkRequest
Definition: MTurkRequest.h:17
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::WithMaxResults
ListReviewPolicyResultsForHITRequest & WithMaxResults(int value)
Definition: ListReviewPolicyResultsForHITRequest.h:246
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::GetHITId
const Aws::String & GetHITId() const
Definition: ListReviewPolicyResultsForHITRequest.h:42
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::SetHITId
void SetHITId(Aws::String &&value)
Definition: ListReviewPolicyResultsForHITRequest.h:57
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::WithNextToken
ListReviewPolicyResultsForHITRequest & WithNextToken(const Aws::String &value)
Definition: ListReviewPolicyResultsForHITRequest.h:215
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::AddPolicyLevels
ListReviewPolicyResultsForHITRequest & AddPolicyLevels(const ReviewPolicyLevel &value)
Definition: ListReviewPolicyResultsForHITRequest.h:127
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::SetPolicyLevels
void SetPolicyLevels(Aws::Vector< ReviewPolicyLevel > &&value)
Definition: ListReviewPolicyResultsForHITRequest.h:106
MTurkRequest.h
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::GetPolicyLevels
const Aws::Vector< ReviewPolicyLevel > & GetPolicyLevels() const
Definition: ListReviewPolicyResultsForHITRequest.h:85
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::WithPolicyLevels
ListReviewPolicyResultsForHITRequest & WithPolicyLevels(Aws::Vector< ReviewPolicyLevel > &&value)
Definition: ListReviewPolicyResultsForHITRequest.h:120
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::WithRetrieveResults
ListReviewPolicyResultsForHITRequest & WithRetrieveResults(bool value)
Definition: ListReviewPolicyResultsForHITRequest.h:184
AWSString.h
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::GetRetrieveResults
bool GetRetrieveResults() const
Definition: ListReviewPolicyResultsForHITRequest.h:166
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListReviewPolicyResultsForHITRequest.h:210
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::WithHITId
ListReviewPolicyResultsForHITRequest & WithHITId(const char *value)
Definition: ListReviewPolicyResultsForHITRequest.h:77
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListReviewPolicyResultsForHITRequest.h:32
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::RetrieveResultsHasBeenSet
bool RetrieveResultsHasBeenSet() const
Definition: ListReviewPolicyResultsForHITRequest.h:172
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::SetHITId
void SetHITId(const Aws::String &value)
Definition: ListReviewPolicyResultsForHITRequest.h:52
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::GetRetrieveActions
bool GetRetrieveActions() const
Definition: ListReviewPolicyResultsForHITRequest.h:141
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::SetRetrieveActions
void SetRetrieveActions(bool value)
Definition: ListReviewPolicyResultsForHITRequest.h:153
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest
Definition: ListReviewPolicyResultsForHITRequest.h:24
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListReviewPolicyResultsForHITRequest.h:190
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::GetMaxResults
int GetMaxResults() const
Definition: ListReviewPolicyResultsForHITRequest.h:231
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::AddPolicyLevels
ListReviewPolicyResultsForHITRequest & AddPolicyLevels(ReviewPolicyLevel &&value)
Definition: ListReviewPolicyResultsForHITRequest.h:134
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::HITIdHasBeenSet
bool HITIdHasBeenSet() const
Definition: ListReviewPolicyResultsForHITRequest.h:47
MTurk_EXPORTS.h
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListReviewPolicyResultsForHITRequest.h:241
Aws
Definition: AccessManagementClient.h:15
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::RetrieveActionsHasBeenSet
bool RetrieveActionsHasBeenSet() const
Definition: ListReviewPolicyResultsForHITRequest.h:147
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::WithPolicyLevels
ListReviewPolicyResultsForHITRequest & WithPolicyLevels(const Aws::Vector< ReviewPolicyLevel > &value)
Definition: ListReviewPolicyResultsForHITRequest.h:113
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::WithHITId
ListReviewPolicyResultsForHITRequest & WithHITId(Aws::String &&value)
Definition: ListReviewPolicyResultsForHITRequest.h:72
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::PolicyLevelsHasBeenSet
bool PolicyLevelsHasBeenSet() const
Definition: ListReviewPolicyResultsForHITRequest.h:92
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListReviewPolicyResultsForHITRequest.h:205
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::ListReviewPolicyResultsForHITRequest
ListReviewPolicyResultsForHITRequest()
Aws::MTurk::Model::ListReviewPolicyResultsForHITRequest::WithNextToken
ListReviewPolicyResultsForHITRequest & WithNextToken(const char *value)
Definition: ListReviewPolicyResultsForHITRequest.h:225
Aws::MTurk::Model::ReviewPolicyLevel
ReviewPolicyLevel
Definition: ReviewPolicyLevel.h:17