AWS SDK for C++

AWS SDK for C++ Version 1.11.773

Loading...
Searching...
No Matches
PolicyParameter.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/mturk-requester/MTurk_EXPORTS.h>
10#include <aws/mturk-requester/model/ParameterMapEntry.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MTurk {
22namespace Model {
23
30 public:
31 AWS_MTURK_API PolicyParameter() = default;
34 AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetKey() const { return m_key; }
41 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
42 template <typename KeyT = Aws::String>
43 void SetKey(KeyT&& value) {
44 m_keyHasBeenSet = true;
45 m_key = std::forward<KeyT>(value);
46 }
47 template <typename KeyT = Aws::String>
48 PolicyParameter& WithKey(KeyT&& value) {
49 SetKey(std::forward<KeyT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
59 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
60 template <typename ValuesT = Aws::Vector<Aws::String>>
61 void SetValues(ValuesT&& value) {
62 m_valuesHasBeenSet = true;
63 m_values = std::forward<ValuesT>(value);
64 }
65 template <typename ValuesT = Aws::Vector<Aws::String>>
66 PolicyParameter& WithValues(ValuesT&& value) {
67 SetValues(std::forward<ValuesT>(value));
68 return *this;
69 }
70 template <typename ValuesT = Aws::String>
71 PolicyParameter& AddValues(ValuesT&& value) {
72 m_valuesHasBeenSet = true;
73 m_values.emplace_back(std::forward<ValuesT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::Vector<ParameterMapEntry>& GetMapEntries() const { return m_mapEntries; }
83 inline bool MapEntriesHasBeenSet() const { return m_mapEntriesHasBeenSet; }
84 template <typename MapEntriesT = Aws::Vector<ParameterMapEntry>>
85 void SetMapEntries(MapEntriesT&& value) {
86 m_mapEntriesHasBeenSet = true;
87 m_mapEntries = std::forward<MapEntriesT>(value);
88 }
89 template <typename MapEntriesT = Aws::Vector<ParameterMapEntry>>
90 PolicyParameter& WithMapEntries(MapEntriesT&& value) {
91 SetMapEntries(std::forward<MapEntriesT>(value));
92 return *this;
93 }
94 template <typename MapEntriesT = ParameterMapEntry>
95 PolicyParameter& AddMapEntries(MapEntriesT&& value) {
96 m_mapEntriesHasBeenSet = true;
97 m_mapEntries.emplace_back(std::forward<MapEntriesT>(value));
98 return *this;
99 }
101 private:
102 Aws::String m_key;
103
105
107 bool m_keyHasBeenSet = false;
108 bool m_valuesHasBeenSet = false;
109 bool m_mapEntriesHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace MTurk
114} // namespace Aws
AWS_MTURK_API PolicyParameter & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MTURK_API PolicyParameter(Aws::Utils::Json::JsonView jsonValue)
PolicyParameter & WithMapEntries(MapEntriesT &&value)
const Aws::Vector< ParameterMapEntry > & GetMapEntries() const
PolicyParameter & AddMapEntries(MapEntriesT &&value)
void SetMapEntries(MapEntriesT &&value)
AWS_MTURK_API PolicyParameter()=default
PolicyParameter & WithValues(ValuesT &&value)
PolicyParameter & WithKey(KeyT &&value)
PolicyParameter & AddValues(ValuesT &&value)
const Aws::String & GetKey() 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