/** * 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 ListHITsResult { public: AWS_MTURK_API ListHITsResult(); AWS_MTURK_API ListHITsResult(const Aws::AmazonWebServiceResult& result); AWS_MTURK_API ListHITsResult& 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 ListHITsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} inline ListHITsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} inline ListHITsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

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

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

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

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

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

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

The list of HIT elements returned by the query.

*/ inline const Aws::Vector& GetHITs() const{ return m_hITs; } /** *

The list of HIT elements returned by the query.

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

The list of HIT elements returned by the query.

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

The list of HIT elements returned by the query.

*/ inline ListHITsResult& WithHITs(const Aws::Vector& value) { SetHITs(value); return *this;} /** *

The list of HIT elements returned by the query.

*/ inline ListHITsResult& WithHITs(Aws::Vector&& value) { SetHITs(std::move(value)); return *this;} /** *

The list of HIT elements returned by the query.

*/ inline ListHITsResult& AddHITs(const HIT& value) { m_hITs.push_back(value); return *this; } /** *

The list of HIT elements returned by the query.

*/ inline ListHITsResult& AddHITs(HIT&& value) { m_hITs.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 ListHITsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListHITsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListHITsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_nextToken; int m_numResults; Aws::Vector m_hITs; Aws::String m_requestId; }; } // namespace Model } // namespace MTurk } // namespace Aws