/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace MTurk { namespace Model { /** *

This data structure is the data type for the AnswerKey parameter of the * ScoreMyKnownAnswers/2011-09-01 Review Policy.

See Also:

AWS * API Reference

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

The QuestionID from the HIT that is used to identify which question requires * Mechanical Turk to score as part of the ScoreMyKnownAnswers/2011-09-01 Review * Policy.

*/ inline const Aws::String& GetKey() const{ return m_key; } /** *

The QuestionID from the HIT that is used to identify which question requires * Mechanical Turk to score as part of the ScoreMyKnownAnswers/2011-09-01 Review * Policy.

*/ inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; } /** *

The QuestionID from the HIT that is used to identify which question requires * Mechanical Turk to score as part of the ScoreMyKnownAnswers/2011-09-01 Review * Policy.

*/ inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; } /** *

The QuestionID from the HIT that is used to identify which question requires * Mechanical Turk to score as part of the ScoreMyKnownAnswers/2011-09-01 Review * Policy.

*/ inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); } /** *

The QuestionID from the HIT that is used to identify which question requires * Mechanical Turk to score as part of the ScoreMyKnownAnswers/2011-09-01 Review * Policy.

*/ inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); } /** *

The QuestionID from the HIT that is used to identify which question requires * Mechanical Turk to score as part of the ScoreMyKnownAnswers/2011-09-01 Review * Policy.

*/ inline ParameterMapEntry& WithKey(const Aws::String& value) { SetKey(value); return *this;} /** *

The QuestionID from the HIT that is used to identify which question requires * Mechanical Turk to score as part of the ScoreMyKnownAnswers/2011-09-01 Review * Policy.

*/ inline ParameterMapEntry& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;} /** *

The QuestionID from the HIT that is used to identify which question requires * Mechanical Turk to score as part of the ScoreMyKnownAnswers/2011-09-01 Review * Policy.

*/ inline ParameterMapEntry& WithKey(const char* value) { SetKey(value); return *this;} /** *

The list of answers to the question specified in the MapEntry Key element. * The Worker must match all values in order for the answer to be scored correctly. *

*/ inline const Aws::Vector& GetValues() const{ return m_values; } /** *

The list of answers to the question specified in the MapEntry Key element. * The Worker must match all values in order for the answer to be scored correctly. *

*/ inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; } /** *

The list of answers to the question specified in the MapEntry Key element. * The Worker must match all values in order for the answer to be scored correctly. *

*/ inline void SetValues(const Aws::Vector& value) { m_valuesHasBeenSet = true; m_values = value; } /** *

The list of answers to the question specified in the MapEntry Key element. * The Worker must match all values in order for the answer to be scored correctly. *

*/ inline void SetValues(Aws::Vector&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); } /** *

The list of answers to the question specified in the MapEntry Key element. * The Worker must match all values in order for the answer to be scored correctly. *

*/ inline ParameterMapEntry& WithValues(const Aws::Vector& value) { SetValues(value); return *this;} /** *

The list of answers to the question specified in the MapEntry Key element. * The Worker must match all values in order for the answer to be scored correctly. *

*/ inline ParameterMapEntry& WithValues(Aws::Vector&& value) { SetValues(std::move(value)); return *this;} /** *

The list of answers to the question specified in the MapEntry Key element. * The Worker must match all values in order for the answer to be scored correctly. *

*/ inline ParameterMapEntry& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } /** *

The list of answers to the question specified in the MapEntry Key element. * The Worker must match all values in order for the answer to be scored correctly. *

*/ inline ParameterMapEntry& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; } /** *

The list of answers to the question specified in the MapEntry Key element. * The Worker must match all values in order for the answer to be scored correctly. *

*/ inline ParameterMapEntry& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } private: Aws::String m_key; bool m_keyHasBeenSet = false; Aws::Vector m_values; bool m_valuesHasBeenSet = false; }; } // namespace Model } // namespace MTurk } // namespace Aws