AWS SDK for C++

AWS SDK for C++ Version 1.11.771

Loading...
Searching...
No Matches
ParameterMapEntry.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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace MTurk {
21namespace Model {
22
30 public:
31 AWS_MTURK_API ParameterMapEntry() = default;
34 AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline const Aws::String& GetKey() const { return m_key; }
43 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
44 template <typename KeyT = Aws::String>
45 void SetKey(KeyT&& value) {
46 m_keyHasBeenSet = true;
47 m_key = std::forward<KeyT>(value);
48 }
49 template <typename KeyT = Aws::String>
50 ParameterMapEntry& WithKey(KeyT&& value) {
51 SetKey(std::forward<KeyT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
63 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
64 template <typename ValuesT = Aws::Vector<Aws::String>>
65 void SetValues(ValuesT&& value) {
66 m_valuesHasBeenSet = true;
67 m_values = std::forward<ValuesT>(value);
68 }
69 template <typename ValuesT = Aws::Vector<Aws::String>>
70 ParameterMapEntry& WithValues(ValuesT&& value) {
71 SetValues(std::forward<ValuesT>(value));
72 return *this;
73 }
74 template <typename ValuesT = Aws::String>
75 ParameterMapEntry& AddValues(ValuesT&& value) {
76 m_valuesHasBeenSet = true;
77 m_values.emplace_back(std::forward<ValuesT>(value));
78 return *this;
79 }
81 private:
82 Aws::String m_key;
83
85 bool m_keyHasBeenSet = false;
86 bool m_valuesHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace MTurk
91} // namespace Aws
const Aws::String & GetKey() const
bool ValuesHasBeenSet() const
AWS_MTURK_API ParameterMapEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MTURK_API ParameterMapEntry()=default
ParameterMapEntry & WithValues(ValuesT &&value)
bool KeyHasBeenSet() const
AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetValues() const
void SetKey(KeyT &&value)
AWS_MTURK_API ParameterMapEntry(Aws::Utils::Json::JsonView jsonValue)
ParameterMapEntry & WithKey(KeyT &&value)
ParameterMapEntry & AddValues(ValuesT &&value)
void SetValues(ValuesT &&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