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

The ID of the Worker who possesses the Qualification to be revoked.

*/ inline const Aws::String& GetWorkerId() const{ return m_workerId; } /** *

The ID of the Worker who possesses the Qualification to be revoked.

*/ inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; } /** *

The ID of the Worker who possesses the Qualification to be revoked.

*/ inline void SetWorkerId(const Aws::String& value) { m_workerIdHasBeenSet = true; m_workerId = value; } /** *

The ID of the Worker who possesses the Qualification to be revoked.

*/ inline void SetWorkerId(Aws::String&& value) { m_workerIdHasBeenSet = true; m_workerId = std::move(value); } /** *

The ID of the Worker who possesses the Qualification to be revoked.

*/ inline void SetWorkerId(const char* value) { m_workerIdHasBeenSet = true; m_workerId.assign(value); } /** *

The ID of the Worker who possesses the Qualification to be revoked.

*/ inline DisassociateQualificationFromWorkerRequest& WithWorkerId(const Aws::String& value) { SetWorkerId(value); return *this;} /** *

The ID of the Worker who possesses the Qualification to be revoked.

*/ inline DisassociateQualificationFromWorkerRequest& WithWorkerId(Aws::String&& value) { SetWorkerId(std::move(value)); return *this;} /** *

The ID of the Worker who possesses the Qualification to be revoked.

*/ inline DisassociateQualificationFromWorkerRequest& WithWorkerId(const char* value) { SetWorkerId(value); return *this;} /** *

The ID of the Qualification type of the Qualification to be revoked.

*/ inline const Aws::String& GetQualificationTypeId() const{ return m_qualificationTypeId; } /** *

The ID of the Qualification type of the Qualification to be revoked.

*/ inline bool QualificationTypeIdHasBeenSet() const { return m_qualificationTypeIdHasBeenSet; } /** *

The ID of the Qualification type of the Qualification to be revoked.

*/ inline void SetQualificationTypeId(const Aws::String& value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId = value; } /** *

The ID of the Qualification type of the Qualification to be revoked.

*/ inline void SetQualificationTypeId(Aws::String&& value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId = std::move(value); } /** *

The ID of the Qualification type of the Qualification to be revoked.

*/ inline void SetQualificationTypeId(const char* value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId.assign(value); } /** *

The ID of the Qualification type of the Qualification to be revoked.

*/ inline DisassociateQualificationFromWorkerRequest& WithQualificationTypeId(const Aws::String& value) { SetQualificationTypeId(value); return *this;} /** *

The ID of the Qualification type of the Qualification to be revoked.

*/ inline DisassociateQualificationFromWorkerRequest& WithQualificationTypeId(Aws::String&& value) { SetQualificationTypeId(std::move(value)); return *this;} /** *

The ID of the Qualification type of the Qualification to be revoked.

*/ inline DisassociateQualificationFromWorkerRequest& WithQualificationTypeId(const char* value) { SetQualificationTypeId(value); return *this;} /** *

A text message that explains why the Qualification was revoked. The user who * had the Qualification sees this message.

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

A text message that explains why the Qualification was revoked. The user who * had the Qualification sees this message.

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

A text message that explains why the Qualification was revoked. The user who * had the Qualification sees this message.

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

A text message that explains why the Qualification was revoked. The user who * had the Qualification sees this message.

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

A text message that explains why the Qualification was revoked. The user who * had the Qualification sees this message.

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

A text message that explains why the Qualification was revoked. The user who * had the Qualification sees this message.

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

A text message that explains why the Qualification was revoked. The user who * had the Qualification sees this message.

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

A text message that explains why the Qualification was revoked. The user who * had the Qualification sees this message.

*/ inline DisassociateQualificationFromWorkerRequest& WithReason(const char* value) { SetReason(value); return *this;} private: Aws::String m_workerId; bool m_workerIdHasBeenSet = false; Aws::String m_qualificationTypeId; bool m_qualificationTypeIdHasBeenSet = false; Aws::String m_reason; bool m_reasonHasBeenSet = false; }; } // namespace Model } // namespace MTurk } // namespace Aws