1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/mturk-requester/MTurk_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
9 #include <aws/core/utils/memory/stl/AWSVector.h>
10 #include <aws/mturk-requester/model/WorkerBlock.h>
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 {
29   class AWS_MTURK_API ListWorkerBlocksResult
30   {
31   public:
32     ListWorkerBlocksResult();
33     ListWorkerBlocksResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
34     ListWorkerBlocksResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
35 
36 
37 
GetNextToken()38     inline const Aws::String& GetNextToken() const{ return m_nextToken; }
39 
40 
SetNextToken(const Aws::String & value)41     inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
42 
43 
SetNextToken(Aws::String && value)44     inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
45 
46 
SetNextToken(const char * value)47     inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
48 
49 
WithNextToken(const Aws::String & value)50     inline ListWorkerBlocksResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
51 
52 
WithNextToken(Aws::String && value)53     inline ListWorkerBlocksResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
54 
55 
WithNextToken(const char * value)56     inline ListWorkerBlocksResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
57 
58 
59     /**
60      * <p> The number of assignments on the page in the filtered results list,
61      * equivalent to the number of assignments returned by this call.</p>
62      */
GetNumResults()63     inline int GetNumResults() const{ return m_numResults; }
64 
65     /**
66      * <p> The number of assignments on the page in the filtered results list,
67      * equivalent to the number of assignments returned by this call.</p>
68      */
SetNumResults(int value)69     inline void SetNumResults(int value) { m_numResults = value; }
70 
71     /**
72      * <p> The number of assignments on the page in the filtered results list,
73      * equivalent to the number of assignments returned by this call.</p>
74      */
WithNumResults(int value)75     inline ListWorkerBlocksResult& WithNumResults(int value) { SetNumResults(value); return *this;}
76 
77 
78     /**
79      * <p> The list of WorkerBlocks, containing the collection of Worker IDs and
80      * reasons for blocking.</p>
81      */
GetWorkerBlocks()82     inline const Aws::Vector<WorkerBlock>& GetWorkerBlocks() const{ return m_workerBlocks; }
83 
84     /**
85      * <p> The list of WorkerBlocks, containing the collection of Worker IDs and
86      * reasons for blocking.</p>
87      */
SetWorkerBlocks(const Aws::Vector<WorkerBlock> & value)88     inline void SetWorkerBlocks(const Aws::Vector<WorkerBlock>& value) { m_workerBlocks = value; }
89 
90     /**
91      * <p> The list of WorkerBlocks, containing the collection of Worker IDs and
92      * reasons for blocking.</p>
93      */
SetWorkerBlocks(Aws::Vector<WorkerBlock> && value)94     inline void SetWorkerBlocks(Aws::Vector<WorkerBlock>&& value) { m_workerBlocks = std::move(value); }
95 
96     /**
97      * <p> The list of WorkerBlocks, containing the collection of Worker IDs and
98      * reasons for blocking.</p>
99      */
WithWorkerBlocks(const Aws::Vector<WorkerBlock> & value)100     inline ListWorkerBlocksResult& WithWorkerBlocks(const Aws::Vector<WorkerBlock>& value) { SetWorkerBlocks(value); return *this;}
101 
102     /**
103      * <p> The list of WorkerBlocks, containing the collection of Worker IDs and
104      * reasons for blocking.</p>
105      */
WithWorkerBlocks(Aws::Vector<WorkerBlock> && value)106     inline ListWorkerBlocksResult& WithWorkerBlocks(Aws::Vector<WorkerBlock>&& value) { SetWorkerBlocks(std::move(value)); return *this;}
107 
108     /**
109      * <p> The list of WorkerBlocks, containing the collection of Worker IDs and
110      * reasons for blocking.</p>
111      */
AddWorkerBlocks(const WorkerBlock & value)112     inline ListWorkerBlocksResult& AddWorkerBlocks(const WorkerBlock& value) { m_workerBlocks.push_back(value); return *this; }
113 
114     /**
115      * <p> The list of WorkerBlocks, containing the collection of Worker IDs and
116      * reasons for blocking.</p>
117      */
AddWorkerBlocks(WorkerBlock && value)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
132