AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename KeyT = Aws::String>
51 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
52 template<typename KeyT = Aws::String>
53 ParameterMapEntry& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
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) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
66 template<typename ValuesT = Aws::Vector<Aws::String>>
67 ParameterMapEntry& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
68 template<typename ValuesT = Aws::String>
69 ParameterMapEntry& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
71 private:
72
73 Aws::String m_key;
74 bool m_keyHasBeenSet = false;
75
77 bool m_valuesHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace MTurk
82} // 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