/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace MTurk { namespace Model { class ListWorkerBlocksResult { public: AWS_MTURK_API ListWorkerBlocksResult(); AWS_MTURK_API ListWorkerBlocksResult(const Aws::AmazonWebServiceResult& result); AWS_MTURK_API ListWorkerBlocksResult& operator=(const Aws::AmazonWebServiceResult& result); inline const Aws::String& GetNextToken() const{ return m_nextToken; } inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } inline void SetNextToken(const char* value) { m_nextToken.assign(value); } inline ListWorkerBlocksResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} inline ListWorkerBlocksResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} inline ListWorkerBlocksResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The number of assignments on the page in the filtered results list, * equivalent to the number of assignments returned by this call.

*/ inline int GetNumResults() const{ return m_numResults; } /** *

The number of assignments on the page in the filtered results list, * equivalent to the number of assignments returned by this call.

*/ inline void SetNumResults(int value) { m_numResults = value; } /** *

The number of assignments on the page in the filtered results list, * equivalent to the number of assignments returned by this call.

*/ inline ListWorkerBlocksResult& WithNumResults(int value) { SetNumResults(value); return *this;} /** *

The list of WorkerBlocks, containing the collection of Worker IDs and * reasons for blocking.

*/ inline const Aws::Vector& GetWorkerBlocks() const{ return m_workerBlocks; } /** *

The list of WorkerBlocks, containing the collection of Worker IDs and * reasons for blocking.

*/ inline void SetWorkerBlocks(const Aws::Vector& value) { m_workerBlocks = value; } /** *

The list of WorkerBlocks, containing the collection of Worker IDs and * reasons for blocking.

*/ inline void SetWorkerBlocks(Aws::Vector&& value) { m_workerBlocks = std::move(value); } /** *

The list of WorkerBlocks, containing the collection of Worker IDs and * reasons for blocking.

*/ inline ListWorkerBlocksResult& WithWorkerBlocks(const Aws::Vector& value) { SetWorkerBlocks(value); return *this;} /** *

The list of WorkerBlocks, containing the collection of Worker IDs and * reasons for blocking.

*/ inline ListWorkerBlocksResult& WithWorkerBlocks(Aws::Vector&& value) { SetWorkerBlocks(std::move(value)); return *this;} /** *

The list of WorkerBlocks, containing the collection of Worker IDs and * reasons for blocking.

*/ inline ListWorkerBlocksResult& AddWorkerBlocks(const WorkerBlock& value) { m_workerBlocks.push_back(value); return *this; } /** *

The list of WorkerBlocks, containing the collection of Worker IDs and * reasons for blocking.

*/ inline ListWorkerBlocksResult& AddWorkerBlocks(WorkerBlock&& value) { m_workerBlocks.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline ListWorkerBlocksResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListWorkerBlocksResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListWorkerBlocksResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_nextToken; int m_numResults; Aws::Vector m_workerBlocks; Aws::String m_requestId; }; } // namespace Model } // namespace MTurk } // namespace Aws