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

Both the AssignmentReviewReport and the HITReviewReport elements contains * the ReviewActionDetail data structure. This structure is returned multiple times * for each action specified in the Review Policy.

See Also:

AWS * API Reference

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

The unique identifier for the action.

*/ inline const Aws::String& GetActionId() const{ return m_actionId; } /** *

The unique identifier for the action.

*/ inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; } /** *

The unique identifier for the action.

*/ inline void SetActionId(const Aws::String& value) { m_actionIdHasBeenSet = true; m_actionId = value; } /** *

The unique identifier for the action.

*/ inline void SetActionId(Aws::String&& value) { m_actionIdHasBeenSet = true; m_actionId = std::move(value); } /** *

The unique identifier for the action.

*/ inline void SetActionId(const char* value) { m_actionIdHasBeenSet = true; m_actionId.assign(value); } /** *

The unique identifier for the action.

*/ inline ReviewActionDetail& WithActionId(const Aws::String& value) { SetActionId(value); return *this;} /** *

The unique identifier for the action.

*/ inline ReviewActionDetail& WithActionId(Aws::String&& value) { SetActionId(std::move(value)); return *this;} /** *

The unique identifier for the action.

*/ inline ReviewActionDetail& WithActionId(const char* value) { SetActionId(value); return *this;} /** *

The nature of the action itself. The Review Policy is responsible for * examining the HIT and Assignments, emitting results, and deciding which other * actions will be necessary.

*/ inline const Aws::String& GetActionName() const{ return m_actionName; } /** *

The nature of the action itself. The Review Policy is responsible for * examining the HIT and Assignments, emitting results, and deciding which other * actions will be necessary.

*/ inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; } /** *

The nature of the action itself. The Review Policy is responsible for * examining the HIT and Assignments, emitting results, and deciding which other * actions will be necessary.

*/ inline void SetActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName = value; } /** *

The nature of the action itself. The Review Policy is responsible for * examining the HIT and Assignments, emitting results, and deciding which other * actions will be necessary.

*/ inline void SetActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName = std::move(value); } /** *

The nature of the action itself. The Review Policy is responsible for * examining the HIT and Assignments, emitting results, and deciding which other * actions will be necessary.

*/ inline void SetActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.assign(value); } /** *

The nature of the action itself. The Review Policy is responsible for * examining the HIT and Assignments, emitting results, and deciding which other * actions will be necessary.

*/ inline ReviewActionDetail& WithActionName(const Aws::String& value) { SetActionName(value); return *this;} /** *

The nature of the action itself. The Review Policy is responsible for * examining the HIT and Assignments, emitting results, and deciding which other * actions will be necessary.

*/ inline ReviewActionDetail& WithActionName(Aws::String&& value) { SetActionName(std::move(value)); return *this;} /** *

The nature of the action itself. The Review Policy is responsible for * examining the HIT and Assignments, emitting results, and deciding which other * actions will be necessary.

*/ inline ReviewActionDetail& WithActionName(const char* value) { SetActionName(value); return *this;} /** *

The specific HITId or AssignmentID targeted by the action.

*/ inline const Aws::String& GetTargetId() const{ return m_targetId; } /** *

The specific HITId or AssignmentID targeted by the action.

*/ inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; } /** *

The specific HITId or AssignmentID targeted by the action.

*/ inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; } /** *

The specific HITId or AssignmentID targeted by the action.

*/ inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); } /** *

The specific HITId or AssignmentID targeted by the action.

*/ inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); } /** *

The specific HITId or AssignmentID targeted by the action.

*/ inline ReviewActionDetail& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;} /** *

The specific HITId or AssignmentID targeted by the action.

*/ inline ReviewActionDetail& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;} /** *

The specific HITId or AssignmentID targeted by the action.

*/ inline ReviewActionDetail& WithTargetId(const char* value) { SetTargetId(value); return *this;} /** *

The type of object in TargetId.

*/ inline const Aws::String& GetTargetType() const{ return m_targetType; } /** *

The type of object in TargetId.

*/ inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; } /** *

The type of object in TargetId.

*/ inline void SetTargetType(const Aws::String& value) { m_targetTypeHasBeenSet = true; m_targetType = value; } /** *

The type of object in TargetId.

*/ inline void SetTargetType(Aws::String&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); } /** *

The type of object in TargetId.

*/ inline void SetTargetType(const char* value) { m_targetTypeHasBeenSet = true; m_targetType.assign(value); } /** *

The type of object in TargetId.

*/ inline ReviewActionDetail& WithTargetType(const Aws::String& value) { SetTargetType(value); return *this;} /** *

The type of object in TargetId.

*/ inline ReviewActionDetail& WithTargetType(Aws::String&& value) { SetTargetType(std::move(value)); return *this;} /** *

The type of object in TargetId.

*/ inline ReviewActionDetail& WithTargetType(const char* value) { SetTargetType(value); return *this;} /** *

The current disposition of the action: INTENDED, SUCCEEDED, FAILED, or * CANCELLED.

*/ inline const ReviewActionStatus& GetStatus() const{ return m_status; } /** *

The current disposition of the action: INTENDED, SUCCEEDED, FAILED, or * CANCELLED.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The current disposition of the action: INTENDED, SUCCEEDED, FAILED, or * CANCELLED.

*/ inline void SetStatus(const ReviewActionStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The current disposition of the action: INTENDED, SUCCEEDED, FAILED, or * CANCELLED.

*/ inline void SetStatus(ReviewActionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The current disposition of the action: INTENDED, SUCCEEDED, FAILED, or * CANCELLED.

*/ inline ReviewActionDetail& WithStatus(const ReviewActionStatus& value) { SetStatus(value); return *this;} /** *

The current disposition of the action: INTENDED, SUCCEEDED, FAILED, or * CANCELLED.

*/ inline ReviewActionDetail& WithStatus(ReviewActionStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The date when the action was completed.

*/ inline const Aws::Utils::DateTime& GetCompleteTime() const{ return m_completeTime; } /** *

The date when the action was completed.

*/ inline bool CompleteTimeHasBeenSet() const { return m_completeTimeHasBeenSet; } /** *

The date when the action was completed.

*/ inline void SetCompleteTime(const Aws::Utils::DateTime& value) { m_completeTimeHasBeenSet = true; m_completeTime = value; } /** *

The date when the action was completed.

*/ inline void SetCompleteTime(Aws::Utils::DateTime&& value) { m_completeTimeHasBeenSet = true; m_completeTime = std::move(value); } /** *

The date when the action was completed.

*/ inline ReviewActionDetail& WithCompleteTime(const Aws::Utils::DateTime& value) { SetCompleteTime(value); return *this;} /** *

The date when the action was completed.

*/ inline ReviewActionDetail& WithCompleteTime(Aws::Utils::DateTime&& value) { SetCompleteTime(std::move(value)); return *this;} /** *

A description of the outcome of the review.

*/ inline const Aws::String& GetResult() const{ return m_result; } /** *

A description of the outcome of the review.

*/ inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; } /** *

A description of the outcome of the review.

*/ inline void SetResult(const Aws::String& value) { m_resultHasBeenSet = true; m_result = value; } /** *

A description of the outcome of the review.

*/ inline void SetResult(Aws::String&& value) { m_resultHasBeenSet = true; m_result = std::move(value); } /** *

A description of the outcome of the review.

*/ inline void SetResult(const char* value) { m_resultHasBeenSet = true; m_result.assign(value); } /** *

A description of the outcome of the review.

*/ inline ReviewActionDetail& WithResult(const Aws::String& value) { SetResult(value); return *this;} /** *

A description of the outcome of the review.

*/ inline ReviewActionDetail& WithResult(Aws::String&& value) { SetResult(std::move(value)); return *this;} /** *

A description of the outcome of the review.

*/ inline ReviewActionDetail& WithResult(const char* value) { SetResult(value); return *this;} /** *

Present only when the Results have a FAILED Status.

*/ inline const Aws::String& GetErrorCode() const{ return m_errorCode; } /** *

Present only when the Results have a FAILED Status.

*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *

Present only when the Results have a FAILED Status.

*/ inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *

Present only when the Results have a FAILED Status.

*/ inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *

Present only when the Results have a FAILED Status.

*/ inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); } /** *

Present only when the Results have a FAILED Status.

*/ inline ReviewActionDetail& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;} /** *

Present only when the Results have a FAILED Status.

*/ inline ReviewActionDetail& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;} /** *

Present only when the Results have a FAILED Status.

*/ inline ReviewActionDetail& WithErrorCode(const char* value) { SetErrorCode(value); return *this;} private: Aws::String m_actionId; bool m_actionIdHasBeenSet = false; Aws::String m_actionName; bool m_actionNameHasBeenSet = false; Aws::String m_targetId; bool m_targetIdHasBeenSet = false; Aws::String m_targetType; bool m_targetTypeHasBeenSet = false; ReviewActionStatus m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_completeTime; bool m_completeTimeHasBeenSet = false; Aws::String m_result; bool m_resultHasBeenSet = false; Aws::String m_errorCode; bool m_errorCodeHasBeenSet = false; }; } // namespace Model } // namespace MTurk } // namespace Aws