AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
PolicyParameter.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 <aws/mturk-requester/model/ParameterMapEntry.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace MTurk
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_MTURK_API PolicyParameter() = default;
39 AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetKey() const { return m_key; }
47 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
48 template<typename KeyT = Aws::String>
49 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
50 template<typename KeyT = Aws::String>
51 PolicyParameter& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
53
55
58 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
59 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
60 template<typename ValuesT = Aws::Vector<Aws::String>>
61 void SetValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
62 template<typename ValuesT = Aws::Vector<Aws::String>>
63 PolicyParameter& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
64 template<typename ValuesT = Aws::String>
65 PolicyParameter& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
67
69
72 inline const Aws::Vector<ParameterMapEntry>& GetMapEntries() const { return m_mapEntries; }
73 inline bool MapEntriesHasBeenSet() const { return m_mapEntriesHasBeenSet; }
74 template<typename MapEntriesT = Aws::Vector<ParameterMapEntry>>
75 void SetMapEntries(MapEntriesT&& value) { m_mapEntriesHasBeenSet = true; m_mapEntries = std::forward<MapEntriesT>(value); }
76 template<typename MapEntriesT = Aws::Vector<ParameterMapEntry>>
77 PolicyParameter& WithMapEntries(MapEntriesT&& value) { SetMapEntries(std::forward<MapEntriesT>(value)); return *this;}
78 template<typename MapEntriesT = ParameterMapEntry>
79 PolicyParameter& AddMapEntries(MapEntriesT&& value) { m_mapEntriesHasBeenSet = true; m_mapEntries.emplace_back(std::forward<MapEntriesT>(value)); return *this; }
81 private:
82
83 Aws::String m_key;
84 bool m_keyHasBeenSet = false;
85
87 bool m_valuesHasBeenSet = false;
88
90 bool m_mapEntriesHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace MTurk
95} // namespace Aws
AWS_MTURK_API PolicyParameter & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MTURK_API PolicyParameter(Aws::Utils::Json::JsonView jsonValue)
PolicyParameter & WithMapEntries(MapEntriesT &&value)
const Aws::Vector< ParameterMapEntry > & GetMapEntries() const
PolicyParameter & AddMapEntries(MapEntriesT &&value)
void SetMapEntries(MapEntriesT &&value)
AWS_MTURK_API PolicyParameter()=default
PolicyParameter & WithValues(ValuesT &&value)
PolicyParameter & WithKey(KeyT &&value)
PolicyParameter & AddValues(ValuesT &&value)
const Aws::String & GetKey() const
const Aws::Vector< Aws::String > & GetValues() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue