AWS SDK for C++  1.9.105
AWS SDK for C++
ListReviewableHITsResult.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 ListReviewableHITsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
51 
52 
53  inline ListReviewableHITsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
54 
55 
56  inline ListReviewableHITsResult& 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 ListReviewableHITsResult& WithNumResults(int value) { SetNumResults(value); return *this;}
76 
77 
81  inline const Aws::Vector<HIT>& GetHITs() const{ return m_hITs; }
82 
86  inline void SetHITs(const Aws::Vector<HIT>& value) { m_hITs = value; }
87 
91  inline void SetHITs(Aws::Vector<HIT>&& value) { m_hITs = std::move(value); }
92 
96  inline ListReviewableHITsResult& WithHITs(const Aws::Vector<HIT>& value) { SetHITs(value); return *this;}
97 
101  inline ListReviewableHITsResult& WithHITs(Aws::Vector<HIT>&& value) { SetHITs(std::move(value)); return *this;}
102 
106  inline ListReviewableHITsResult& AddHITs(const HIT& value) { m_hITs.push_back(value); return *this; }
107 
111  inline ListReviewableHITsResult& AddHITs(HIT&& value) { m_hITs.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<HIT> m_hITs;
120  };
121 
122 } // namespace Model
123 } // namespace MTurk
124 } // namespace Aws
Aws::MTurk::Model::ListReviewableHITsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListReviewableHITsResult.h:44
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::MTurk::Model::ListReviewableHITsResult::AddHITs
ListReviewableHITsResult & AddHITs(const HIT &value)
Definition: ListReviewableHITsResult.h:106
Aws::MTurk::Model::ListReviewableHITsResult::AddHITs
ListReviewableHITsResult & AddHITs(HIT &&value)
Definition: ListReviewableHITsResult.h:111
Aws::MTurk::Model::ListReviewableHITsResult::GetHITs
const Aws::Vector< HIT > & GetHITs() const
Definition: ListReviewableHITsResult.h:81
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::MTurk::Model::ListReviewableHITsResult
Definition: ListReviewableHITsResult.h:30
Aws::MTurk::Model::ListReviewableHITsResult::WithNextToken
ListReviewableHITsResult & WithNextToken(const char *value)
Definition: ListReviewableHITsResult.h:56
Aws::MTurk::Model::ListReviewableHITsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListReviewableHITsResult.h:41
Aws::MTurk::Model::ListReviewableHITsResult::WithNumResults
ListReviewableHITsResult & WithNumResults(int value)
Definition: ListReviewableHITsResult.h:75
AWSVector.h
Aws::MTurk::Model::ListReviewableHITsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListReviewableHITsResult.h:38
Aws::MTurk::Model::ListReviewableHITsResult::ListReviewableHITsResult
ListReviewableHITsResult()
Aws::MTurk::Model::ListReviewableHITsResult::WithHITs
ListReviewableHITsResult & WithHITs(const Aws::Vector< HIT > &value)
Definition: ListReviewableHITsResult.h:96
Aws::MTurk::Model::ListReviewableHITsResult::operator=
ListReviewableHITsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSString.h
Aws::MTurk::Model::ListReviewableHITsResult::WithNextToken
ListReviewableHITsResult & WithNextToken(const Aws::String &value)
Definition: ListReviewableHITsResult.h:50
Aws::MTurk::Model::ListReviewableHITsResult::SetNumResults
void SetNumResults(int value)
Definition: ListReviewableHITsResult.h:69
Aws::MTurk::Model::ListReviewableHITsResult::WithHITs
ListReviewableHITsResult & WithHITs(Aws::Vector< HIT > &&value)
Definition: ListReviewableHITsResult.h:101
Aws::MTurk::Model::HIT
Definition: HIT.h:39
Aws::MTurk::Model::ListReviewableHITsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListReviewableHITsResult.h:47
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
HIT.h
Aws::MTurk::Model::ListReviewableHITsResult::SetHITs
void SetHITs(const Aws::Vector< HIT > &value)
Definition: ListReviewableHITsResult.h:86
Aws::MTurk::Model::ListReviewableHITsResult::ListReviewableHITsResult
ListReviewableHITsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::MTurk::Model::ListReviewableHITsResult::GetNumResults
int GetNumResults() const
Definition: ListReviewableHITsResult.h:63
Aws::MTurk::Model::ListReviewableHITsResult::WithNextToken
ListReviewableHITsResult & WithNextToken(Aws::String &&value)
Definition: ListReviewableHITsResult.h:53
Aws::MTurk::Model::ListReviewableHITsResult::SetHITs
void SetHITs(Aws::Vector< HIT > &&value)
Definition: ListReviewableHITsResult.h:91