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

The ID of the HIT associated with the bonus payments to retrieve. If not * specified, all bonus payments for all assignments for the given HIT are * returned. Either the HITId parameter or the AssignmentId parameter must be * specified

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

The ID of the HIT associated with the bonus payments to retrieve. If not * specified, all bonus payments for all assignments for the given HIT are * returned. Either the HITId parameter or the AssignmentId parameter must be * specified

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

The ID of the HIT associated with the bonus payments to retrieve. If not * specified, all bonus payments for all assignments for the given HIT are * returned. Either the HITId parameter or the AssignmentId parameter must be * specified

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

The ID of the HIT associated with the bonus payments to retrieve. If not * specified, all bonus payments for all assignments for the given HIT are * returned. Either the HITId parameter or the AssignmentId parameter must be * specified

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

The ID of the HIT associated with the bonus payments to retrieve. If not * specified, all bonus payments for all assignments for the given HIT are * returned. Either the HITId parameter or the AssignmentId parameter must be * specified

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

The ID of the HIT associated with the bonus payments to retrieve. If not * specified, all bonus payments for all assignments for the given HIT are * returned. Either the HITId parameter or the AssignmentId parameter must be * specified

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

The ID of the HIT associated with the bonus payments to retrieve. If not * specified, all bonus payments for all assignments for the given HIT are * returned. Either the HITId parameter or the AssignmentId parameter must be * specified

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

The ID of the HIT associated with the bonus payments to retrieve. If not * specified, all bonus payments for all assignments for the given HIT are * returned. Either the HITId parameter or the AssignmentId parameter must be * specified

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

The ID of the assignment associated with the bonus payments to retrieve. If * specified, only bonus payments for the given assignment are returned. Either the * HITId parameter or the AssignmentId parameter must be specified

*/ inline const Aws::String& GetAssignmentId() const{ return m_assignmentId; } /** *

The ID of the assignment associated with the bonus payments to retrieve. If * specified, only bonus payments for the given assignment are returned. Either the * HITId parameter or the AssignmentId parameter must be specified

*/ inline bool AssignmentIdHasBeenSet() const { return m_assignmentIdHasBeenSet; } /** *

The ID of the assignment associated with the bonus payments to retrieve. If * specified, only bonus payments for the given assignment are returned. Either the * HITId parameter or the AssignmentId parameter must be specified

*/ inline void SetAssignmentId(const Aws::String& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = value; } /** *

The ID of the assignment associated with the bonus payments to retrieve. If * specified, only bonus payments for the given assignment are returned. Either the * HITId parameter or the AssignmentId parameter must be specified

*/ inline void SetAssignmentId(Aws::String&& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = std::move(value); } /** *

The ID of the assignment associated with the bonus payments to retrieve. If * specified, only bonus payments for the given assignment are returned. Either the * HITId parameter or the AssignmentId parameter must be specified

*/ inline void SetAssignmentId(const char* value) { m_assignmentIdHasBeenSet = true; m_assignmentId.assign(value); } /** *

The ID of the assignment associated with the bonus payments to retrieve. If * specified, only bonus payments for the given assignment are returned. Either the * HITId parameter or the AssignmentId parameter must be specified

*/ inline ListBonusPaymentsRequest& WithAssignmentId(const Aws::String& value) { SetAssignmentId(value); return *this;} /** *

The ID of the assignment associated with the bonus payments to retrieve. If * specified, only bonus payments for the given assignment are returned. Either the * HITId parameter or the AssignmentId parameter must be specified

*/ inline ListBonusPaymentsRequest& WithAssignmentId(Aws::String&& value) { SetAssignmentId(std::move(value)); return *this;} /** *

The ID of the assignment associated with the bonus payments to retrieve. If * specified, only bonus payments for the given assignment are returned. Either the * HITId parameter or the AssignmentId parameter must be specified

*/ inline ListBonusPaymentsRequest& WithAssignmentId(const char* value) { SetAssignmentId(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 ListBonusPaymentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

Pagination token

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

Pagination token

*/ inline ListBonusPaymentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} inline int GetMaxResults() const{ return m_maxResults; } inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } inline ListBonusPaymentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_hITId; bool m_hITIdHasBeenSet = false; Aws::String m_assignmentId; bool m_assignmentIdHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace MTurk } // namespace Aws