AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
49 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
50 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
51 inline PolicyParameter& WithKey(const Aws::String& value) { SetKey(value); return *this;}
52 inline PolicyParameter& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
53 inline PolicyParameter& WithKey(const char* value) { SetKey(value); return *this;}
55
57
60 inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
61 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
62 inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
63 inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
64 inline PolicyParameter& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
65 inline PolicyParameter& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
66 inline PolicyParameter& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
67 inline PolicyParameter& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
68 inline PolicyParameter& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
70
72
75 inline const Aws::Vector<ParameterMapEntry>& GetMapEntries() const{ return m_mapEntries; }
76 inline bool MapEntriesHasBeenSet() const { return m_mapEntriesHasBeenSet; }
77 inline void SetMapEntries(const Aws::Vector<ParameterMapEntry>& value) { m_mapEntriesHasBeenSet = true; m_mapEntries = value; }
78 inline void SetMapEntries(Aws::Vector<ParameterMapEntry>&& value) { m_mapEntriesHasBeenSet = true; m_mapEntries = std::move(value); }
79 inline PolicyParameter& WithMapEntries(const Aws::Vector<ParameterMapEntry>& value) { SetMapEntries(value); return *this;}
80 inline PolicyParameter& WithMapEntries(Aws::Vector<ParameterMapEntry>&& value) { SetMapEntries(std::move(value)); return *this;}
81 inline PolicyParameter& AddMapEntries(const ParameterMapEntry& value) { m_mapEntriesHasBeenSet = true; m_mapEntries.push_back(value); return *this; }
82 inline PolicyParameter& AddMapEntries(ParameterMapEntry&& value) { m_mapEntriesHasBeenSet = true; m_mapEntries.push_back(std::move(value)); return *this; }
84 private:
85
86 Aws::String m_key;
87 bool m_keyHasBeenSet = false;
88
90 bool m_valuesHasBeenSet = false;
91
93 bool m_mapEntriesHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace MTurk
98} // namespace Aws
void SetValues(const Aws::Vector< Aws::String > &value)
PolicyParameter & AddValues(const char *value)
AWS_MTURK_API PolicyParameter & operator=(Aws::Utils::Json::JsonView jsonValue)
PolicyParameter & WithKey(Aws::String &&value)
void SetKey(const Aws::String &value)
AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const
void SetValues(Aws::Vector< Aws::String > &&value)
AWS_MTURK_API PolicyParameter(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ParameterMapEntry > & GetMapEntries() const
void SetMapEntries(Aws::Vector< ParameterMapEntry > &&value)
PolicyParameter & WithMapEntries(const Aws::Vector< ParameterMapEntry > &value)
PolicyParameter & AddMapEntries(const ParameterMapEntry &value)
PolicyParameter & AddValues(const Aws::String &value)
void SetKey(Aws::String &&value)
PolicyParameter & AddValues(Aws::String &&value)
void SetMapEntries(const Aws::Vector< ParameterMapEntry > &value)
PolicyParameter & WithValues(Aws::Vector< Aws::String > &&value)
PolicyParameter & WithKey(const char *value)
PolicyParameter & WithMapEntries(Aws::Vector< ParameterMapEntry > &&value)
PolicyParameter & WithValues(const Aws::Vector< Aws::String > &value)
const Aws::String & GetKey() const
PolicyParameter & WithKey(const Aws::String &value)
PolicyParameter & AddMapEntries(ParameterMapEntry &&value)
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