/** * 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 ApproveAssignmentRequest : public MTurkRequest { public: AWS_MTURK_API ApproveAssignmentRequest(); // 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 "ApproveAssignment"; } AWS_MTURK_API Aws::String SerializePayload() const override; AWS_MTURK_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the assignment. The assignment must correspond to a HIT created by * the Requester.

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

The ID of the assignment. The assignment must correspond to a HIT created by * the Requester.

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

The ID of the assignment. The assignment must correspond to a HIT created by * the Requester.

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

The ID of the assignment. The assignment must correspond to a HIT created by * the Requester.

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

The ID of the assignment. The assignment must correspond to a HIT created by * the Requester.

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

The ID of the assignment. The assignment must correspond to a HIT created by * the Requester.

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

The ID of the assignment. The assignment must correspond to a HIT created by * the Requester.

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

The ID of the assignment. The assignment must correspond to a HIT created by * the Requester.

*/ inline ApproveAssignmentRequest& WithAssignmentId(const char* value) { SetAssignmentId(value); return *this;} /** *

A message for the Worker, which the Worker can see in the Status section of * the web site.

*/ inline const Aws::String& GetRequesterFeedback() const{ return m_requesterFeedback; } /** *

A message for the Worker, which the Worker can see in the Status section of * the web site.

*/ inline bool RequesterFeedbackHasBeenSet() const { return m_requesterFeedbackHasBeenSet; } /** *

A message for the Worker, which the Worker can see in the Status section of * the web site.

*/ inline void SetRequesterFeedback(const Aws::String& value) { m_requesterFeedbackHasBeenSet = true; m_requesterFeedback = value; } /** *

A message for the Worker, which the Worker can see in the Status section of * the web site.

*/ inline void SetRequesterFeedback(Aws::String&& value) { m_requesterFeedbackHasBeenSet = true; m_requesterFeedback = std::move(value); } /** *

A message for the Worker, which the Worker can see in the Status section of * the web site.

*/ inline void SetRequesterFeedback(const char* value) { m_requesterFeedbackHasBeenSet = true; m_requesterFeedback.assign(value); } /** *

A message for the Worker, which the Worker can see in the Status section of * the web site.

*/ inline ApproveAssignmentRequest& WithRequesterFeedback(const Aws::String& value) { SetRequesterFeedback(value); return *this;} /** *

A message for the Worker, which the Worker can see in the Status section of * the web site.

*/ inline ApproveAssignmentRequest& WithRequesterFeedback(Aws::String&& value) { SetRequesterFeedback(std::move(value)); return *this;} /** *

A message for the Worker, which the Worker can see in the Status section of * the web site.

*/ inline ApproveAssignmentRequest& WithRequesterFeedback(const char* value) { SetRequesterFeedback(value); return *this;} /** *

A flag indicating that an assignment should be approved even if it was * previously rejected. Defaults to False.

*/ inline bool GetOverrideRejection() const{ return m_overrideRejection; } /** *

A flag indicating that an assignment should be approved even if it was * previously rejected. Defaults to False.

*/ inline bool OverrideRejectionHasBeenSet() const { return m_overrideRejectionHasBeenSet; } /** *

A flag indicating that an assignment should be approved even if it was * previously rejected. Defaults to False.

*/ inline void SetOverrideRejection(bool value) { m_overrideRejectionHasBeenSet = true; m_overrideRejection = value; } /** *

A flag indicating that an assignment should be approved even if it was * previously rejected. Defaults to False.

*/ inline ApproveAssignmentRequest& WithOverrideRejection(bool value) { SetOverrideRejection(value); return *this;} private: Aws::String m_assignmentId; bool m_assignmentIdHasBeenSet = false; Aws::String m_requesterFeedback; bool m_requesterFeedbackHasBeenSet = false; bool m_overrideRejection; bool m_overrideRejectionHasBeenSet = false; }; } // namespace Model } // namespace MTurk } // namespace Aws