AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ParameterMapEntry.h
1
6#pragma once
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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MTurk
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_MTURK_API ParameterMapEntry();
39 AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline const Aws::String& GetKey() const{ return m_key; }
49 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
50 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
51 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
52 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
53 inline ParameterMapEntry& WithKey(const Aws::String& value) { SetKey(value); return *this;}
54 inline ParameterMapEntry& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
55 inline ParameterMapEntry& WithKey(const char* value) { SetKey(value); return *this;}
57
59
64 inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
65 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
66 inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
67 inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
68 inline ParameterMapEntry& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
69 inline ParameterMapEntry& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
70 inline ParameterMapEntry& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
71 inline ParameterMapEntry& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
72 inline ParameterMapEntry& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
74 private:
75
76 Aws::String m_key;
77 bool m_keyHasBeenSet = false;
78
80 bool m_valuesHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace MTurk
85} // namespace Aws
void SetKey(const Aws::String &value)
void SetKey(Aws::String &&value)
ParameterMapEntry & WithValues(const Aws::Vector< Aws::String > &value)
ParameterMapEntry & WithKey(const Aws::String &value)
const Aws::String & GetKey() const
void SetValues(const Aws::Vector< Aws::String > &value)
ParameterMapEntry & AddValues(Aws::String &&value)
bool ValuesHasBeenSet() const
ParameterMapEntry & AddValues(const char *value)
AWS_MTURK_API ParameterMapEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MTURK_API ParameterMapEntry()
void SetValues(Aws::Vector< Aws::String > &&value)
bool KeyHasBeenSet() const
ParameterMapEntry & WithKey(const char *value)
AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetValues() const
ParameterMapEntry & WithKey(Aws::String &&value)
void SetKey(const char *value)
AWS_MTURK_API ParameterMapEntry(Aws::Utils::Json::JsonView jsonValue)
ParameterMapEntry & AddValues(const Aws::String &value)
ParameterMapEntry & WithValues(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue