AWS SDK for C++  1.9.104
AWS SDK for C++
ParameterMapEntry.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace MTurk
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
47  inline const Aws::String& GetKey() const{ return m_key; }
48 
54  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
55 
61  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
62 
68  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
69 
75  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
76 
82  inline ParameterMapEntry& WithKey(const Aws::String& value) { SetKey(value); return *this;}
83 
89  inline ParameterMapEntry& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
90 
96  inline ParameterMapEntry& WithKey(const char* value) { SetKey(value); return *this;}
97 
98 
104  inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
105 
111  inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
112 
118  inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
119 
125  inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
126 
132  inline ParameterMapEntry& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
133 
139  inline ParameterMapEntry& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
140 
146  inline ParameterMapEntry& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
147 
153  inline ParameterMapEntry& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
154 
160  inline ParameterMapEntry& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
161 
162  private:
163 
164  Aws::String m_key;
165  bool m_keyHasBeenSet;
166 
167  Aws::Vector<Aws::String> m_values;
168  bool m_valuesHasBeenSet;
169  };
170 
171 } // namespace Model
172 } // namespace MTurk
173 } // namespace Aws
Aws::MTurk::Model::ParameterMapEntry::WithKey
ParameterMapEntry & WithKey(const char *value)
Definition: ParameterMapEntry.h:96
Aws::MTurk::Model::ParameterMapEntry::SetKey
void SetKey(const Aws::String &value)
Definition: ParameterMapEntry.h:61
Aws::MTurk::Model::ParameterMapEntry::ValuesHasBeenSet
bool ValuesHasBeenSet() const
Definition: ParameterMapEntry.h:111
Aws::MTurk::Model::ParameterMapEntry::SetValues
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: ParameterMapEntry.h:125
Aws::MTurk::Model::ParameterMapEntry::ParameterMapEntry
ParameterMapEntry(Aws::Utils::Json::JsonView jsonValue)
Aws::MTurk::Model::ParameterMapEntry::WithValues
ParameterMapEntry & WithValues(const Aws::Vector< Aws::String > &value)
Definition: ParameterMapEntry.h:132
Aws::MTurk::Model::ParameterMapEntry
Definition: ParameterMapEntry.h:34
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::MTurk::Model::ParameterMapEntry::GetKey
const Aws::String & GetKey() const
Definition: ParameterMapEntry.h:47
Aws::MTurk::Model::ParameterMapEntry::WithValues
ParameterMapEntry & WithValues(Aws::Vector< Aws::String > &&value)
Definition: ParameterMapEntry.h:139
Aws::MTurk::Model::ParameterMapEntry::WithKey
ParameterMapEntry & WithKey(const Aws::String &value)
Definition: ParameterMapEntry.h:82
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::MTurk::Model::ParameterMapEntry::SetValues
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: ParameterMapEntry.h:118
Aws::MTurk::Model::ParameterMapEntry::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::MTurk::Model::ParameterMapEntry::AddValues
ParameterMapEntry & AddValues(const Aws::String &value)
Definition: ParameterMapEntry.h:146
Aws::MTurk::Model::ParameterMapEntry::ParameterMapEntry
ParameterMapEntry()
MTurk_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::MTurk::Model::ParameterMapEntry::SetKey
void SetKey(const char *value)
Definition: ParameterMapEntry.h:75
Aws::MTurk::Model::ParameterMapEntry::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: ParameterMapEntry.h:54
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MTurk::Model::ParameterMapEntry::operator=
ParameterMapEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::MTurk::Model::ParameterMapEntry::AddValues
ParameterMapEntry & AddValues(Aws::String &&value)
Definition: ParameterMapEntry.h:153
Aws::MTurk::Model::ParameterMapEntry::AddValues
ParameterMapEntry & AddValues(const char *value)
Definition: ParameterMapEntry.h:160
Aws::MTurk::Model::ParameterMapEntry::SetKey
void SetKey(Aws::String &&value)
Definition: ParameterMapEntry.h:68
Aws::MTurk::Model::ParameterMapEntry::GetValues
const Aws::Vector< Aws::String > & GetValues() const
Definition: ParameterMapEntry.h:104
Aws::MTurk::Model::ParameterMapEntry::WithKey
ParameterMapEntry & WithKey(Aws::String &&value)
Definition: ParameterMapEntry.h:89