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

Name of the parameter from the Review policy.

See Also:

AWS * API Reference

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

Name of the parameter from the list of Review Polices.

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

Name of the parameter from the list of Review Polices.

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

Name of the parameter from the list of Review Polices.

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

Name of the parameter from the list of Review Polices.

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

Name of the parameter from the list of Review Polices.

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

Name of the parameter from the list of Review Polices.

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

Name of the parameter from the list of Review Polices.

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

Name of the parameter from the list of Review Polices.

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

The list of values of the Parameter

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

The list of values of the Parameter

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

The list of values of the Parameter

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

The list of values of the Parameter

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

The list of values of the Parameter

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

The list of values of the Parameter

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

The list of values of the Parameter

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

The list of values of the Parameter

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

The list of values of the Parameter

*/ inline PolicyParameter& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } /** *

List of ParameterMapEntry objects.

*/ inline const Aws::Vector& GetMapEntries() const{ return m_mapEntries; } /** *

List of ParameterMapEntry objects.

*/ inline bool MapEntriesHasBeenSet() const { return m_mapEntriesHasBeenSet; } /** *

List of ParameterMapEntry objects.

*/ inline void SetMapEntries(const Aws::Vector& value) { m_mapEntriesHasBeenSet = true; m_mapEntries = value; } /** *

List of ParameterMapEntry objects.

*/ inline void SetMapEntries(Aws::Vector&& value) { m_mapEntriesHasBeenSet = true; m_mapEntries = std::move(value); } /** *

List of ParameterMapEntry objects.

*/ inline PolicyParameter& WithMapEntries(const Aws::Vector& value) { SetMapEntries(value); return *this;} /** *

List of ParameterMapEntry objects.

*/ inline PolicyParameter& WithMapEntries(Aws::Vector&& value) { SetMapEntries(std::move(value)); return *this;} /** *

List of ParameterMapEntry objects.

*/ inline PolicyParameter& AddMapEntries(const ParameterMapEntry& value) { m_mapEntriesHasBeenSet = true; m_mapEntries.push_back(value); return *this; } /** *

List of ParameterMapEntry objects.

*/ inline PolicyParameter& AddMapEntries(ParameterMapEntry&& value) { m_mapEntriesHasBeenSet = true; m_mapEntries.push_back(std::move(value)); return *this; } private: Aws::String m_key; bool m_keyHasBeenSet = false; Aws::Vector m_values; bool m_valuesHasBeenSet = false; Aws::Vector m_mapEntries; bool m_mapEntriesHasBeenSet = false; }; } // namespace Model } // namespace MTurk } // namespace Aws