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

The ID of the Qualification request, as returned by the * ListQualificationRequests operation.

*/ inline const Aws::String& GetQualificationRequestId() const{ return m_qualificationRequestId; } /** *

The ID of the Qualification request, as returned by the * ListQualificationRequests operation.

*/ inline bool QualificationRequestIdHasBeenSet() const { return m_qualificationRequestIdHasBeenSet; } /** *

The ID of the Qualification request, as returned by the * ListQualificationRequests operation.

*/ inline void SetQualificationRequestId(const Aws::String& value) { m_qualificationRequestIdHasBeenSet = true; m_qualificationRequestId = value; } /** *

The ID of the Qualification request, as returned by the * ListQualificationRequests operation.

*/ inline void SetQualificationRequestId(Aws::String&& value) { m_qualificationRequestIdHasBeenSet = true; m_qualificationRequestId = std::move(value); } /** *

The ID of the Qualification request, as returned by the * ListQualificationRequests operation.

*/ inline void SetQualificationRequestId(const char* value) { m_qualificationRequestIdHasBeenSet = true; m_qualificationRequestId.assign(value); } /** *

The ID of the Qualification request, as returned by the * ListQualificationRequests operation.

*/ inline RejectQualificationRequestRequest& WithQualificationRequestId(const Aws::String& value) { SetQualificationRequestId(value); return *this;} /** *

The ID of the Qualification request, as returned by the * ListQualificationRequests operation.

*/ inline RejectQualificationRequestRequest& WithQualificationRequestId(Aws::String&& value) { SetQualificationRequestId(std::move(value)); return *this;} /** *

The ID of the Qualification request, as returned by the * ListQualificationRequests operation.

*/ inline RejectQualificationRequestRequest& WithQualificationRequestId(const char* value) { SetQualificationRequestId(value); return *this;} /** *

A text message explaining why the request was rejected, to be shown to the * Worker who made the request.

*/ inline const Aws::String& GetReason() const{ return m_reason; } /** *

A text message explaining why the request was rejected, to be shown to the * Worker who made the request.

*/ inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } /** *

A text message explaining why the request was rejected, to be shown to the * Worker who made the request.

*/ inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; } /** *

A text message explaining why the request was rejected, to be shown to the * Worker who made the request.

*/ inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } /** *

A text message explaining why the request was rejected, to be shown to the * Worker who made the request.

*/ inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); } /** *

A text message explaining why the request was rejected, to be shown to the * Worker who made the request.

*/ inline RejectQualificationRequestRequest& WithReason(const Aws::String& value) { SetReason(value); return *this;} /** *

A text message explaining why the request was rejected, to be shown to the * Worker who made the request.

*/ inline RejectQualificationRequestRequest& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;} /** *

A text message explaining why the request was rejected, to be shown to the * Worker who made the request.

*/ inline RejectQualificationRequestRequest& WithReason(const char* value) { SetReason(value); return *this;} private: Aws::String m_qualificationRequestId; bool m_qualificationRequestIdHasBeenSet = false; Aws::String m_reason; bool m_reasonHasBeenSet = false; }; } // namespace Model } // namespace MTurk } // namespace Aws