AWS SDK for C++  1.9.106
AWS SDK for C++
PolicyParameter.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace MTurk
24 {
25 namespace Model
26 {
27 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetKey() const{ return m_key; }
46 
50  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
51 
55  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
56 
60  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
61 
65  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
66 
70  inline PolicyParameter& WithKey(const Aws::String& value) { SetKey(value); return *this;}
71 
75  inline PolicyParameter& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
76 
80  inline PolicyParameter& WithKey(const char* value) { SetKey(value); return *this;}
81 
82 
86  inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
87 
91  inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
92 
96  inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
97 
101  inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
102 
106  inline PolicyParameter& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
107 
111  inline PolicyParameter& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
112 
116  inline PolicyParameter& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
117 
121  inline PolicyParameter& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
122 
126  inline PolicyParameter& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
127 
128 
132  inline const Aws::Vector<ParameterMapEntry>& GetMapEntries() const{ return m_mapEntries; }
133 
137  inline bool MapEntriesHasBeenSet() const { return m_mapEntriesHasBeenSet; }
138 
142  inline void SetMapEntries(const Aws::Vector<ParameterMapEntry>& value) { m_mapEntriesHasBeenSet = true; m_mapEntries = value; }
143 
147  inline void SetMapEntries(Aws::Vector<ParameterMapEntry>&& value) { m_mapEntriesHasBeenSet = true; m_mapEntries = std::move(value); }
148 
152  inline PolicyParameter& WithMapEntries(const Aws::Vector<ParameterMapEntry>& value) { SetMapEntries(value); return *this;}
153 
157  inline PolicyParameter& WithMapEntries(Aws::Vector<ParameterMapEntry>&& value) { SetMapEntries(std::move(value)); return *this;}
158 
162  inline PolicyParameter& AddMapEntries(const ParameterMapEntry& value) { m_mapEntriesHasBeenSet = true; m_mapEntries.push_back(value); return *this; }
163 
167  inline PolicyParameter& AddMapEntries(ParameterMapEntry&& value) { m_mapEntriesHasBeenSet = true; m_mapEntries.push_back(std::move(value)); return *this; }
168 
169  private:
170 
171  Aws::String m_key;
172  bool m_keyHasBeenSet;
173 
174  Aws::Vector<Aws::String> m_values;
175  bool m_valuesHasBeenSet;
176 
177  Aws::Vector<ParameterMapEntry> m_mapEntries;
178  bool m_mapEntriesHasBeenSet;
179  };
180 
181 } // namespace Model
182 } // namespace MTurk
183 } // namespace Aws
Aws::MTurk::Model::PolicyParameter::SetKey
void SetKey(const Aws::String &value)
Definition: PolicyParameter.h:55
Aws::MTurk::Model::PolicyParameter::SetValues
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: PolicyParameter.h:101
Aws::MTurk::Model::PolicyParameter::SetKey
void SetKey(const char *value)
Definition: PolicyParameter.h:65
Aws::MTurk::Model::PolicyParameter::WithKey
PolicyParameter & WithKey(const char *value)
Definition: PolicyParameter.h:80
Aws::MTurk::Model::PolicyParameter::WithKey
PolicyParameter & WithKey(Aws::String &&value)
Definition: PolicyParameter.h:75
Aws::MTurk::Model::PolicyParameter::WithMapEntries
PolicyParameter & WithMapEntries(Aws::Vector< ParameterMapEntry > &&value)
Definition: PolicyParameter.h:157
Aws::MTurk::Model::PolicyParameter::MapEntriesHasBeenSet
bool MapEntriesHasBeenSet() const
Definition: PolicyParameter.h:137
Aws::MTurk::Model::PolicyParameter::SetMapEntries
void SetMapEntries(const Aws::Vector< ParameterMapEntry > &value)
Definition: PolicyParameter.h:142
Aws::MTurk::Model::PolicyParameter::AddMapEntries
PolicyParameter & AddMapEntries(ParameterMapEntry &&value)
Definition: PolicyParameter.h:167
Aws::MTurk::Model::ParameterMapEntry
Definition: ParameterMapEntry.h:34
Aws::MTurk::Model::PolicyParameter::SetMapEntries
void SetMapEntries(Aws::Vector< ParameterMapEntry > &&value)
Definition: PolicyParameter.h:147
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::MTurk::Model::PolicyParameter::WithMapEntries
PolicyParameter & WithMapEntries(const Aws::Vector< ParameterMapEntry > &value)
Definition: PolicyParameter.h:152
Aws::MTurk::Model::PolicyParameter::ValuesHasBeenSet
bool ValuesHasBeenSet() const
Definition: PolicyParameter.h:91
AWSVector.h
Aws::MTurk::Model::PolicyParameter::AddMapEntries
PolicyParameter & AddMapEntries(const ParameterMapEntry &value)
Definition: PolicyParameter.h:162
Aws::MTurk::Model::PolicyParameter::AddValues
PolicyParameter & AddValues(const char *value)
Definition: PolicyParameter.h:126
Aws::MTurk::Model::PolicyParameter::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::MTurk::Model::PolicyParameter::GetKey
const Aws::String & GetKey() const
Definition: PolicyParameter.h:45
Aws::MTurk::Model::PolicyParameter::GetMapEntries
const Aws::Vector< ParameterMapEntry > & GetMapEntries() const
Definition: PolicyParameter.h:132
Aws::MTurk::Model::PolicyParameter::AddValues
PolicyParameter & AddValues(const Aws::String &value)
Definition: PolicyParameter.h:116
Aws::MTurk::Model::PolicyParameter::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: PolicyParameter.h:50
Aws::MTurk::Model::PolicyParameter::WithValues
PolicyParameter & WithValues(Aws::Vector< Aws::String > &&value)
Definition: PolicyParameter.h:111
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::MTurk::Model::PolicyParameter::WithKey
PolicyParameter & WithKey(const Aws::String &value)
Definition: PolicyParameter.h:70
Aws::MTurk::Model::PolicyParameter::AddValues
PolicyParameter & AddValues(Aws::String &&value)
Definition: PolicyParameter.h:121
Aws::MTurk::Model::PolicyParameter::PolicyParameter
PolicyParameter(Aws::Utils::Json::JsonView jsonValue)
Aws::MTurk::Model::PolicyParameter::PolicyParameter
PolicyParameter()
Aws::MTurk::Model::PolicyParameter::SetKey
void SetKey(Aws::String &&value)
Definition: PolicyParameter.h:60
MTurk_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::MTurk::Model::PolicyParameter::SetValues
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: PolicyParameter.h:96
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MTurk::Model::PolicyParameter::WithValues
PolicyParameter & WithValues(const Aws::Vector< Aws::String > &value)
Definition: PolicyParameter.h:106
ParameterMapEntry.h
Aws::MTurk::Model::PolicyParameter::GetValues
const Aws::Vector< Aws::String > & GetValues() const
Definition: PolicyParameter.h:86
Aws::MTurk::Model::PolicyParameter
Definition: PolicyParameter.h:34
Aws::MTurk::Model::PolicyParameter::operator=
PolicyParameter & operator=(Aws::Utils::Json::JsonView jsonValue)