AWS SDK for C++  1.9.106
AWS SDK for C++
ListWorkerBlocksResult.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 ListWorkerBlocksResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
51 
52 
53  inline ListWorkerBlocksResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
54 
55 
56  inline ListWorkerBlocksResult& 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 ListWorkerBlocksResult& WithNumResults(int value) { SetNumResults(value); return *this;}
76 
77 
82  inline const Aws::Vector<WorkerBlock>& GetWorkerBlocks() const{ return m_workerBlocks; }
83 
88  inline void SetWorkerBlocks(const Aws::Vector<WorkerBlock>& value) { m_workerBlocks = value; }
89 
94  inline void SetWorkerBlocks(Aws::Vector<WorkerBlock>&& value) { m_workerBlocks = std::move(value); }
95 
100  inline ListWorkerBlocksResult& WithWorkerBlocks(const Aws::Vector<WorkerBlock>& value) { SetWorkerBlocks(value); return *this;}
101 
106  inline ListWorkerBlocksResult& WithWorkerBlocks(Aws::Vector<WorkerBlock>&& value) { SetWorkerBlocks(std::move(value)); return *this;}
107 
112  inline ListWorkerBlocksResult& AddWorkerBlocks(const WorkerBlock& value) { m_workerBlocks.push_back(value); return *this; }
113 
118  inline ListWorkerBlocksResult& AddWorkerBlocks(WorkerBlock&& value) { m_workerBlocks.push_back(std::move(value)); return *this; }
119 
120  private:
121 
122  Aws::String m_nextToken;
123 
124  int m_numResults;
125 
126  Aws::Vector<WorkerBlock> m_workerBlocks;
127  };
128 
129 } // namespace Model
130 } // namespace MTurk
131 } // namespace Aws
Aws::MTurk::Model::ListWorkerBlocksResult::WithNumResults
ListWorkerBlocksResult & WithNumResults(int value)
Definition: ListWorkerBlocksResult.h:75
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::MTurk::Model::ListWorkerBlocksResult::SetWorkerBlocks
void SetWorkerBlocks(const Aws::Vector< WorkerBlock > &value)
Definition: ListWorkerBlocksResult.h:88
Aws::MTurk::Model::ListWorkerBlocksResult::WithNextToken
ListWorkerBlocksResult & WithNextToken(Aws::String &&value)
Definition: ListWorkerBlocksResult.h:53
WorkerBlock.h
Aws::MTurk::Model::ListWorkerBlocksResult::AddWorkerBlocks
ListWorkerBlocksResult & AddWorkerBlocks(const WorkerBlock &value)
Definition: ListWorkerBlocksResult.h:112
Aws::MTurk::Model::ListWorkerBlocksResult::operator=
ListWorkerBlocksResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::MTurk::Model::ListWorkerBlocksResult
Definition: ListWorkerBlocksResult.h:30
AWSVector.h
Aws::MTurk::Model::ListWorkerBlocksResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListWorkerBlocksResult.h:47
Aws::MTurk::Model::ListWorkerBlocksResult::WithWorkerBlocks
ListWorkerBlocksResult & WithWorkerBlocks(Aws::Vector< WorkerBlock > &&value)
Definition: ListWorkerBlocksResult.h:106
Aws::MTurk::Model::ListWorkerBlocksResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListWorkerBlocksResult.h:41
Aws::MTurk::Model::WorkerBlock
Definition: WorkerBlock.h:34
Aws::MTurk::Model::ListWorkerBlocksResult::WithWorkerBlocks
ListWorkerBlocksResult & WithWorkerBlocks(const Aws::Vector< WorkerBlock > &value)
Definition: ListWorkerBlocksResult.h:100
Aws::MTurk::Model::ListWorkerBlocksResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListWorkerBlocksResult.h:38
Aws::MTurk::Model::ListWorkerBlocksResult::ListWorkerBlocksResult
ListWorkerBlocksResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::MTurk::Model::ListWorkerBlocksResult::GetNumResults
int GetNumResults() const
Definition: ListWorkerBlocksResult.h:63
Aws::MTurk::Model::ListWorkerBlocksResult::WithNextToken
ListWorkerBlocksResult & WithNextToken(const char *value)
Definition: ListWorkerBlocksResult.h:56
AWSString.h
Aws::MTurk::Model::ListWorkerBlocksResult::SetNumResults
void SetNumResults(int value)
Definition: ListWorkerBlocksResult.h:69
Aws::MTurk::Model::ListWorkerBlocksResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListWorkerBlocksResult.h:44
Aws::MTurk::Model::ListWorkerBlocksResult::WithNextToken
ListWorkerBlocksResult & WithNextToken(const Aws::String &value)
Definition: ListWorkerBlocksResult.h:50
Aws::MTurk::Model::ListWorkerBlocksResult::ListWorkerBlocksResult
ListWorkerBlocksResult()
Aws::MTurk::Model::ListWorkerBlocksResult::AddWorkerBlocks
ListWorkerBlocksResult & AddWorkerBlocks(WorkerBlock &&value)
Definition: ListWorkerBlocksResult.h:118
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::ListWorkerBlocksResult::SetWorkerBlocks
void SetWorkerBlocks(Aws::Vector< WorkerBlock > &&value)
Definition: ListWorkerBlocksResult.h:94
Aws::MTurk::Model::ListWorkerBlocksResult::GetWorkerBlocks
const Aws::Vector< WorkerBlock > & GetWorkerBlocks() const
Definition: ListWorkerBlocksResult.h:82