/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace MTurk { namespace Model { /** */ class ListReviewPolicyResultsForHITRequest : public MTurkRequest { public: AWS_MTURK_API ListReviewPolicyResultsForHITRequest(); // 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 "ListReviewPolicyResultsForHIT"; } AWS_MTURK_API Aws::String SerializePayload() const override; AWS_MTURK_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The unique identifier of the HIT to retrieve review results for.

*/ inline const Aws::String& GetHITId() const{ return m_hITId; } /** *

The unique identifier of the HIT to retrieve review results for.

*/ inline bool HITIdHasBeenSet() const { return m_hITIdHasBeenSet; } /** *

The unique identifier of the HIT to retrieve review results for.

*/ inline void SetHITId(const Aws::String& value) { m_hITIdHasBeenSet = true; m_hITId = value; } /** *

The unique identifier of the HIT to retrieve review results for.

*/ inline void SetHITId(Aws::String&& value) { m_hITIdHasBeenSet = true; m_hITId = std::move(value); } /** *

The unique identifier of the HIT to retrieve review results for.

*/ inline void SetHITId(const char* value) { m_hITIdHasBeenSet = true; m_hITId.assign(value); } /** *

The unique identifier of the HIT to retrieve review results for.

*/ inline ListReviewPolicyResultsForHITRequest& WithHITId(const Aws::String& value) { SetHITId(value); return *this;} /** *

The unique identifier of the HIT to retrieve review results for.

*/ inline ListReviewPolicyResultsForHITRequest& WithHITId(Aws::String&& value) { SetHITId(std::move(value)); return *this;} /** *

The unique identifier of the HIT to retrieve review results for.

*/ inline ListReviewPolicyResultsForHITRequest& WithHITId(const char* value) { SetHITId(value); return *this;} /** *

The Policy Level(s) to retrieve review results for - HIT or Assignment. If * omitted, the default behavior is to retrieve all data for both policy levels. * For a list of all the described policies, see Review Policies.

*/ inline const Aws::Vector& GetPolicyLevels() const{ return m_policyLevels; } /** *

The Policy Level(s) to retrieve review results for - HIT or Assignment. If * omitted, the default behavior is to retrieve all data for both policy levels. * For a list of all the described policies, see Review Policies.

*/ inline bool PolicyLevelsHasBeenSet() const { return m_policyLevelsHasBeenSet; } /** *

The Policy Level(s) to retrieve review results for - HIT or Assignment. If * omitted, the default behavior is to retrieve all data for both policy levels. * For a list of all the described policies, see Review Policies.

*/ inline void SetPolicyLevels(const Aws::Vector& value) { m_policyLevelsHasBeenSet = true; m_policyLevels = value; } /** *

The Policy Level(s) to retrieve review results for - HIT or Assignment. If * omitted, the default behavior is to retrieve all data for both policy levels. * For a list of all the described policies, see Review Policies.

*/ inline void SetPolicyLevels(Aws::Vector&& value) { m_policyLevelsHasBeenSet = true; m_policyLevels = std::move(value); } /** *

The Policy Level(s) to retrieve review results for - HIT or Assignment. If * omitted, the default behavior is to retrieve all data for both policy levels. * For a list of all the described policies, see Review Policies.

*/ inline ListReviewPolicyResultsForHITRequest& WithPolicyLevels(const Aws::Vector& value) { SetPolicyLevels(value); return *this;} /** *

The Policy Level(s) to retrieve review results for - HIT or Assignment. If * omitted, the default behavior is to retrieve all data for both policy levels. * For a list of all the described policies, see Review Policies.

*/ inline ListReviewPolicyResultsForHITRequest& WithPolicyLevels(Aws::Vector&& value) { SetPolicyLevels(std::move(value)); return *this;} /** *

The Policy Level(s) to retrieve review results for - HIT or Assignment. If * omitted, the default behavior is to retrieve all data for both policy levels. * For a list of all the described policies, see Review Policies.

*/ inline ListReviewPolicyResultsForHITRequest& AddPolicyLevels(const ReviewPolicyLevel& value) { m_policyLevelsHasBeenSet = true; m_policyLevels.push_back(value); return *this; } /** *

The Policy Level(s) to retrieve review results for - HIT or Assignment. If * omitted, the default behavior is to retrieve all data for both policy levels. * For a list of all the described policies, see Review Policies.

*/ inline ListReviewPolicyResultsForHITRequest& AddPolicyLevels(ReviewPolicyLevel&& value) { m_policyLevelsHasBeenSet = true; m_policyLevels.push_back(std::move(value)); return *this; } /** *

Specify if the operation should retrieve a list of the actions taken * executing the Review Policies and their outcomes.

*/ inline bool GetRetrieveActions() const{ return m_retrieveActions; } /** *

Specify if the operation should retrieve a list of the actions taken * executing the Review Policies and their outcomes.

*/ inline bool RetrieveActionsHasBeenSet() const { return m_retrieveActionsHasBeenSet; } /** *

Specify if the operation should retrieve a list of the actions taken * executing the Review Policies and their outcomes.

*/ inline void SetRetrieveActions(bool value) { m_retrieveActionsHasBeenSet = true; m_retrieveActions = value; } /** *

Specify if the operation should retrieve a list of the actions taken * executing the Review Policies and their outcomes.

*/ inline ListReviewPolicyResultsForHITRequest& WithRetrieveActions(bool value) { SetRetrieveActions(value); return *this;} /** *

Specify if the operation should retrieve a list of the results computed by * the Review Policies.

*/ inline bool GetRetrieveResults() const{ return m_retrieveResults; } /** *

Specify if the operation should retrieve a list of the results computed by * the Review Policies.

*/ inline bool RetrieveResultsHasBeenSet() const { return m_retrieveResultsHasBeenSet; } /** *

Specify if the operation should retrieve a list of the results computed by * the Review Policies.

*/ inline void SetRetrieveResults(bool value) { m_retrieveResultsHasBeenSet = true; m_retrieveResults = value; } /** *

Specify if the operation should retrieve a list of the results computed by * the Review Policies.

*/ inline ListReviewPolicyResultsForHITRequest& WithRetrieveResults(bool value) { SetRetrieveResults(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 ListReviewPolicyResultsForHITRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

Pagination token

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

Pagination token

*/ inline ListReviewPolicyResultsForHITRequest& 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 ListReviewPolicyResultsForHITRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_hITId; bool m_hITIdHasBeenSet = false; Aws::Vector m_policyLevels; bool m_policyLevelsHasBeenSet = false; bool m_retrieveActions; bool m_retrieveActionsHasBeenSet = false; bool m_retrieveResults; bool m_retrieveResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace MTurk } // namespace Aws