/** * 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 { namespace MTurk { namespace Model { /** */ class ListReviewableHITsRequest : public MTurkRequest { public: AWS_MTURK_API ListReviewableHITsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ListReviewableHITs"; } AWS_MTURK_API Aws::String SerializePayload() const override; AWS_MTURK_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the HIT type of the HITs to consider for the query. If not * specified, all HITs for the Reviewer are considered

*/ inline const Aws::String& GetHITTypeId() const{ return m_hITTypeId; } /** *

The ID of the HIT type of the HITs to consider for the query. If not * specified, all HITs for the Reviewer are considered

*/ inline bool HITTypeIdHasBeenSet() const { return m_hITTypeIdHasBeenSet; } /** *

The ID of the HIT type of the HITs to consider for the query. If not * specified, all HITs for the Reviewer are considered

*/ inline void SetHITTypeId(const Aws::String& value) { m_hITTypeIdHasBeenSet = true; m_hITTypeId = value; } /** *

The ID of the HIT type of the HITs to consider for the query. If not * specified, all HITs for the Reviewer are considered

*/ inline void SetHITTypeId(Aws::String&& value) { m_hITTypeIdHasBeenSet = true; m_hITTypeId = std::move(value); } /** *

The ID of the HIT type of the HITs to consider for the query. If not * specified, all HITs for the Reviewer are considered

*/ inline void SetHITTypeId(const char* value) { m_hITTypeIdHasBeenSet = true; m_hITTypeId.assign(value); } /** *

The ID of the HIT type of the HITs to consider for the query. If not * specified, all HITs for the Reviewer are considered

*/ inline ListReviewableHITsRequest& WithHITTypeId(const Aws::String& value) { SetHITTypeId(value); return *this;} /** *

The ID of the HIT type of the HITs to consider for the query. If not * specified, all HITs for the Reviewer are considered

*/ inline ListReviewableHITsRequest& WithHITTypeId(Aws::String&& value) { SetHITTypeId(std::move(value)); return *this;} /** *

The ID of the HIT type of the HITs to consider for the query. If not * specified, all HITs for the Reviewer are considered

*/ inline ListReviewableHITsRequest& WithHITTypeId(const char* value) { SetHITTypeId(value); return *this;} /** *

Can be either Reviewable or Reviewing. Reviewable * is the default value.

*/ inline const ReviewableHITStatus& GetStatus() const{ return m_status; } /** *

Can be either Reviewable or Reviewing. Reviewable * is the default value.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

Can be either Reviewable or Reviewing. Reviewable * is the default value.

*/ inline void SetStatus(const ReviewableHITStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

Can be either Reviewable or Reviewing. Reviewable * is the default value.

*/ inline void SetStatus(ReviewableHITStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

Can be either Reviewable or Reviewing. Reviewable * is the default value.

*/ inline ListReviewableHITsRequest& WithStatus(const ReviewableHITStatus& value) { SetStatus(value); return *this;} /** *

Can be either Reviewable or Reviewing. Reviewable * is the default value.

*/ inline ListReviewableHITsRequest& WithStatus(ReviewableHITStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

Pagination Token

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

Pagination Token

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

Pagination Token

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

Pagination Token

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

Pagination Token

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

Pagination Token

*/ inline ListReviewableHITsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

Pagination Token

*/ inline ListReviewableHITsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

Pagination Token

*/ inline ListReviewableHITsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

Limit the number of results returned.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

Limit the number of results returned.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

Limit the number of results returned.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

Limit the number of results returned.

*/ inline ListReviewableHITsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_hITTypeId; bool m_hITTypeIdHasBeenSet = false; ReviewableHITStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace MTurk } // namespace Aws