/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace MTurk { namespace Model { /** *

The WorkerBlock data structure represents a Worker who has been blocked. It * has two elements: the WorkerId and the Reason for the block.

See * Also:

AWS * API Reference

*/ class WorkerBlock { public: AWS_MTURK_API WorkerBlock(); AWS_MTURK_API WorkerBlock(Aws::Utils::Json::JsonView jsonValue); AWS_MTURK_API WorkerBlock& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ID of the Worker who accepted the HIT.

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

The ID of the Worker who accepted the HIT.

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

The ID of the Worker who accepted the HIT.

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

The ID of the Worker who accepted the HIT.

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

The ID of the Worker who accepted the HIT.

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

The ID of the Worker who accepted the HIT.

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

The ID of the Worker who accepted the HIT.

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

The ID of the Worker who accepted the HIT.

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

A message explaining the reason the Worker was blocked.

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

A message explaining the reason the Worker was blocked.

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

A message explaining the reason the Worker was blocked.

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

A message explaining the reason the Worker was blocked.

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

A message explaining the reason the Worker was blocked.

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

A message explaining the reason the Worker was blocked.

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

A message explaining the reason the Worker was blocked.

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

A message explaining the reason the Worker was blocked.

*/ inline WorkerBlock& 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