7#include <aws/mturk-requester/MTurk_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/mturk-requester/model/ParameterMapEntry.h>
48 template<
typename KeyT = Aws::String>
49 void SetKey(KeyT&& value) { m_keyHasBeenSet =
true; m_key = std::forward<KeyT>(value); }
50 template<
typename KeyT = Aws::String>
60 template<
typename ValuesT = Aws::Vector<Aws::String>>
61 void SetValues(ValuesT&& value) { m_valuesHasBeenSet =
true; m_values = std::forward<ValuesT>(value); }
62 template<
typename ValuesT = Aws::Vector<Aws::String>>
64 template<
typename ValuesT = Aws::String>
65 PolicyParameter&
AddValues(ValuesT&& value) { m_valuesHasBeenSet =
true; m_values.emplace_back(std::forward<ValuesT>(value));
return *
this; }
74 template<
typename MapEntriesT = Aws::Vector<ParameterMapEntry>>
75 void SetMapEntries(MapEntriesT&& value) { m_mapEntriesHasBeenSet =
true; m_mapEntries = std::forward<MapEntriesT>(value); }
76 template<
typename MapEntriesT = Aws::Vector<ParameterMapEntry>>
78 template<
typename MapEntriesT = ParameterMapEntry>
79 PolicyParameter&
AddMapEntries(MapEntriesT&& value) { m_mapEntriesHasBeenSet =
true; m_mapEntries.emplace_back(std::forward<MapEntriesT>(value));
return *
this; }
84 bool m_keyHasBeenSet =
false;
87 bool m_valuesHasBeenSet =
false;
90 bool m_mapEntriesHasBeenSet =
false;
AWS_MTURK_API PolicyParameter & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const
void SetKey(KeyT &&value)
AWS_MTURK_API PolicyParameter(Aws::Utils::Json::JsonView jsonValue)
PolicyParameter & WithMapEntries(MapEntriesT &&value)
const Aws::Vector< ParameterMapEntry > & GetMapEntries() const
bool KeyHasBeenSet() const
PolicyParameter & AddMapEntries(MapEntriesT &&value)
void SetMapEntries(MapEntriesT &&value)
void SetValues(ValuesT &&value)
AWS_MTURK_API PolicyParameter()=default
PolicyParameter & WithValues(ValuesT &&value)
PolicyParameter & WithKey(KeyT &&value)
bool MapEntriesHasBeenSet() const
PolicyParameter & AddValues(ValuesT &&value)
const Aws::String & GetKey() const
bool ValuesHasBeenSet() const
const Aws::Vector< Aws::String > & GetValues() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue