/** * 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 { /** *

Contains both ReviewResult and ReviewAction elements for a particular HIT. *

See Also:

AWS * API Reference

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

A list of ReviewResults objects for each action specified in the Review * Policy.

*/ inline const Aws::Vector& GetReviewResults() const{ return m_reviewResults; } /** *

A list of ReviewResults objects for each action specified in the Review * Policy.

*/ inline bool ReviewResultsHasBeenSet() const { return m_reviewResultsHasBeenSet; } /** *

A list of ReviewResults objects for each action specified in the Review * Policy.

*/ inline void SetReviewResults(const Aws::Vector& value) { m_reviewResultsHasBeenSet = true; m_reviewResults = value; } /** *

A list of ReviewResults objects for each action specified in the Review * Policy.

*/ inline void SetReviewResults(Aws::Vector&& value) { m_reviewResultsHasBeenSet = true; m_reviewResults = std::move(value); } /** *

A list of ReviewResults objects for each action specified in the Review * Policy.

*/ inline ReviewReport& WithReviewResults(const Aws::Vector& value) { SetReviewResults(value); return *this;} /** *

A list of ReviewResults objects for each action specified in the Review * Policy.

*/ inline ReviewReport& WithReviewResults(Aws::Vector&& value) { SetReviewResults(std::move(value)); return *this;} /** *

A list of ReviewResults objects for each action specified in the Review * Policy.

*/ inline ReviewReport& AddReviewResults(const ReviewResultDetail& value) { m_reviewResultsHasBeenSet = true; m_reviewResults.push_back(value); return *this; } /** *

A list of ReviewResults objects for each action specified in the Review * Policy.

*/ inline ReviewReport& AddReviewResults(ReviewResultDetail&& value) { m_reviewResultsHasBeenSet = true; m_reviewResults.push_back(std::move(value)); return *this; } /** *

A list of ReviewAction objects for each action specified in the Review * Policy.

*/ inline const Aws::Vector& GetReviewActions() const{ return m_reviewActions; } /** *

A list of ReviewAction objects for each action specified in the Review * Policy.

*/ inline bool ReviewActionsHasBeenSet() const { return m_reviewActionsHasBeenSet; } /** *

A list of ReviewAction objects for each action specified in the Review * Policy.

*/ inline void SetReviewActions(const Aws::Vector& value) { m_reviewActionsHasBeenSet = true; m_reviewActions = value; } /** *

A list of ReviewAction objects for each action specified in the Review * Policy.

*/ inline void SetReviewActions(Aws::Vector&& value) { m_reviewActionsHasBeenSet = true; m_reviewActions = std::move(value); } /** *

A list of ReviewAction objects for each action specified in the Review * Policy.

*/ inline ReviewReport& WithReviewActions(const Aws::Vector& value) { SetReviewActions(value); return *this;} /** *

A list of ReviewAction objects for each action specified in the Review * Policy.

*/ inline ReviewReport& WithReviewActions(Aws::Vector&& value) { SetReviewActions(std::move(value)); return *this;} /** *

A list of ReviewAction objects for each action specified in the Review * Policy.

*/ inline ReviewReport& AddReviewActions(const ReviewActionDetail& value) { m_reviewActionsHasBeenSet = true; m_reviewActions.push_back(value); return *this; } /** *

A list of ReviewAction objects for each action specified in the Review * Policy.

*/ inline ReviewReport& AddReviewActions(ReviewActionDetail&& value) { m_reviewActionsHasBeenSet = true; m_reviewActions.push_back(std::move(value)); return *this; } private: Aws::Vector m_reviewResults; bool m_reviewResultsHasBeenSet = false; Aws::Vector m_reviewActions; bool m_reviewActionsHasBeenSet = false; }; } // namespace Model } // namespace MTurk } // namespace Aws