AWS SDK for C++  1.9.106
AWS SDK for C++
ListAssignmentsForHITResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace MTurk
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
37 
38  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
39 
40 
41  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
42 
43 
44  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
45 
46 
47  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
48 
49 
50  inline ListAssignmentsForHITResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
51 
52 
53  inline ListAssignmentsForHITResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
54 
55 
56  inline ListAssignmentsForHITResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
57 
58 
63  inline int GetNumResults() const{ return m_numResults; }
64 
69  inline void SetNumResults(int value) { m_numResults = value; }
70 
75  inline ListAssignmentsForHITResult& WithNumResults(int value) { SetNumResults(value); return *this;}
76 
77 
81  inline const Aws::Vector<Assignment>& GetAssignments() const{ return m_assignments; }
82 
86  inline void SetAssignments(const Aws::Vector<Assignment>& value) { m_assignments = value; }
87 
91  inline void SetAssignments(Aws::Vector<Assignment>&& value) { m_assignments = std::move(value); }
92 
96  inline ListAssignmentsForHITResult& WithAssignments(const Aws::Vector<Assignment>& value) { SetAssignments(value); return *this;}
97 
101  inline ListAssignmentsForHITResult& WithAssignments(Aws::Vector<Assignment>&& value) { SetAssignments(std::move(value)); return *this;}
102 
106  inline ListAssignmentsForHITResult& AddAssignments(const Assignment& value) { m_assignments.push_back(value); return *this; }
107 
111  inline ListAssignmentsForHITResult& AddAssignments(Assignment&& value) { m_assignments.push_back(std::move(value)); return *this; }
112 
113  private:
114 
115  Aws::String m_nextToken;
116 
117  int m_numResults;
118 
119  Aws::Vector<Assignment> m_assignments;
120  };
121 
122 } // namespace Model
123 } // namespace MTurk
124 } // namespace Aws
Aws::MTurk::Model::ListAssignmentsForHITResult::WithNextToken
ListAssignmentsForHITResult & WithNextToken(const Aws::String &value)
Definition: ListAssignmentsForHITResult.h:50
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::MTurk::Model::ListAssignmentsForHITResult::GetNumResults
int GetNumResults() const
Definition: ListAssignmentsForHITResult.h:63
Aws::MTurk::Model::ListAssignmentsForHITResult::WithNumResults
ListAssignmentsForHITResult & WithNumResults(int value)
Definition: ListAssignmentsForHITResult.h:75
Aws::MTurk::Model::ListAssignmentsForHITResult::WithNextToken
ListAssignmentsForHITResult & WithNextToken(const char *value)
Definition: ListAssignmentsForHITResult.h:56
Aws::MTurk::Model::ListAssignmentsForHITResult::AddAssignments
ListAssignmentsForHITResult & AddAssignments(Assignment &&value)
Definition: ListAssignmentsForHITResult.h:111
Aws::MTurk::Model::ListAssignmentsForHITResult::SetAssignments
void SetAssignments(Aws::Vector< Assignment > &&value)
Definition: ListAssignmentsForHITResult.h:91
Aws::MTurk::Model::ListAssignmentsForHITResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListAssignmentsForHITResult.h:41
Aws::MTurk::Model::ListAssignmentsForHITResult::WithAssignments
ListAssignmentsForHITResult & WithAssignments(Aws::Vector< Assignment > &&value)
Definition: ListAssignmentsForHITResult.h:101
Aws::MTurk::Model::ListAssignmentsForHITResult
Definition: ListAssignmentsForHITResult.h:30
Aws::MTurk::Model::ListAssignmentsForHITResult::operator=
ListAssignmentsForHITResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::MTurk::Model::ListAssignmentsForHITResult::WithNextToken
ListAssignmentsForHITResult & WithNextToken(Aws::String &&value)
Definition: ListAssignmentsForHITResult.h:53
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::MTurk::Model::ListAssignmentsForHITResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListAssignmentsForHITResult.h:44
AWSVector.h
Aws::MTurk::Model::ListAssignmentsForHITResult::ListAssignmentsForHITResult
ListAssignmentsForHITResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::MTurk::Model::ListAssignmentsForHITResult::SetAssignments
void SetAssignments(const Aws::Vector< Assignment > &value)
Definition: ListAssignmentsForHITResult.h:86
Assignment.h
Aws::MTurk::Model::ListAssignmentsForHITResult::GetAssignments
const Aws::Vector< Assignment > & GetAssignments() const
Definition: ListAssignmentsForHITResult.h:81
Aws::MTurk::Model::ListAssignmentsForHITResult::AddAssignments
ListAssignmentsForHITResult & AddAssignments(const Assignment &value)
Definition: ListAssignmentsForHITResult.h:106
Aws::MTurk::Model::ListAssignmentsForHITResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListAssignmentsForHITResult.h:47
Aws::MTurk::Model::ListAssignmentsForHITResult::SetNumResults
void SetNumResults(int value)
Definition: ListAssignmentsForHITResult.h:69
Aws::MTurk::Model::Assignment
Definition: Assignment.h:36
Aws::MTurk::Model::ListAssignmentsForHITResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListAssignmentsForHITResult.h:38
AWSString.h
Aws::MTurk::Model::ListAssignmentsForHITResult::WithAssignments
ListAssignmentsForHITResult & WithAssignments(const Aws::Vector< Assignment > &value)
Definition: ListAssignmentsForHITResult.h:96
MTurk_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MTurk::Model::ListAssignmentsForHITResult::ListAssignmentsForHITResult
ListAssignmentsForHITResult()