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

The ID of the Worker to unblock.

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

The ID of the Worker to unblock.

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

The ID of the Worker to unblock.

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

The ID of the Worker to unblock.

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

The ID of the Worker to unblock.

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

The ID of the Worker to unblock.

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

The ID of the Worker to unblock.

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

The ID of the Worker to unblock.

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

A message that explains the reason for unblocking the Worker. The Worker does * not see this message.

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

A message that explains the reason for unblocking the Worker. The Worker does * not see this message.

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

A message that explains the reason for unblocking the Worker. The Worker does * not see this message.

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

A message that explains the reason for unblocking the Worker. The Worker does * not see this message.

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

A message that explains the reason for unblocking the Worker. The Worker does * not see this message.

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

A message that explains the reason for unblocking the Worker. The Worker does * not see this message.

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

A message that explains the reason for unblocking the Worker. The Worker does * not see this message.

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

A message that explains the reason for unblocking the Worker. The Worker does * not see this message.

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