AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ParameterValue.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.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 SecurityHub
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SECURITYHUB_API ParameterValue();
37 AWS_SECURITYHUB_API ParameterValue(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SECURITYHUB_API ParameterValue& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline int GetInteger() const{ return m_integer; }
47 inline bool IntegerHasBeenSet() const { return m_integerHasBeenSet; }
48 inline void SetInteger(int value) { m_integerHasBeenSet = true; m_integer = value; }
49 inline ParameterValue& WithInteger(int value) { SetInteger(value); return *this;}
51
53
56 inline const Aws::Vector<int>& GetIntegerList() const{ return m_integerList; }
57 inline bool IntegerListHasBeenSet() const { return m_integerListHasBeenSet; }
58 inline void SetIntegerList(const Aws::Vector<int>& value) { m_integerListHasBeenSet = true; m_integerList = value; }
59 inline void SetIntegerList(Aws::Vector<int>&& value) { m_integerListHasBeenSet = true; m_integerList = std::move(value); }
60 inline ParameterValue& WithIntegerList(const Aws::Vector<int>& value) { SetIntegerList(value); return *this;}
61 inline ParameterValue& WithIntegerList(Aws::Vector<int>&& value) { SetIntegerList(std::move(value)); return *this;}
62 inline ParameterValue& AddIntegerList(int value) { m_integerListHasBeenSet = true; m_integerList.push_back(value); return *this; }
64
66
69 inline double GetDouble() const{ return m_double; }
70 inline bool DoubleHasBeenSet() const { return m_doubleHasBeenSet; }
71 inline void SetDouble(double value) { m_doubleHasBeenSet = true; m_double = value; }
72 inline ParameterValue& WithDouble(double value) { SetDouble(value); return *this;}
74
76
79 inline const Aws::String& GetString() const{ return m_string; }
80 inline bool StringHasBeenSet() const { return m_stringHasBeenSet; }
81 inline void SetString(const Aws::String& value) { m_stringHasBeenSet = true; m_string = value; }
82 inline void SetString(Aws::String&& value) { m_stringHasBeenSet = true; m_string = std::move(value); }
83 inline void SetString(const char* value) { m_stringHasBeenSet = true; m_string.assign(value); }
84 inline ParameterValue& WithString(const Aws::String& value) { SetString(value); return *this;}
85 inline ParameterValue& WithString(Aws::String&& value) { SetString(std::move(value)); return *this;}
86 inline ParameterValue& WithString(const char* value) { SetString(value); return *this;}
88
90
93 inline const Aws::Vector<Aws::String>& GetStringList() const{ return m_stringList; }
94 inline bool StringListHasBeenSet() const { return m_stringListHasBeenSet; }
95 inline void SetStringList(const Aws::Vector<Aws::String>& value) { m_stringListHasBeenSet = true; m_stringList = value; }
96 inline void SetStringList(Aws::Vector<Aws::String>&& value) { m_stringListHasBeenSet = true; m_stringList = std::move(value); }
97 inline ParameterValue& WithStringList(const Aws::Vector<Aws::String>& value) { SetStringList(value); return *this;}
98 inline ParameterValue& WithStringList(Aws::Vector<Aws::String>&& value) { SetStringList(std::move(value)); return *this;}
99 inline ParameterValue& AddStringList(const Aws::String& value) { m_stringListHasBeenSet = true; m_stringList.push_back(value); return *this; }
100 inline ParameterValue& AddStringList(Aws::String&& value) { m_stringListHasBeenSet = true; m_stringList.push_back(std::move(value)); return *this; }
101 inline ParameterValue& AddStringList(const char* value) { m_stringListHasBeenSet = true; m_stringList.push_back(value); return *this; }
103
105
108 inline bool GetBoolean() const{ return m_boolean; }
109 inline bool BooleanHasBeenSet() const { return m_booleanHasBeenSet; }
110 inline void SetBoolean(bool value) { m_booleanHasBeenSet = true; m_boolean = value; }
111 inline ParameterValue& WithBoolean(bool value) { SetBoolean(value); return *this;}
113
115
118 inline const Aws::String& GetEnum() const{ return m_enum; }
119 inline bool EnumHasBeenSet() const { return m_enumHasBeenSet; }
120 inline void SetEnum(const Aws::String& value) { m_enumHasBeenSet = true; m_enum = value; }
121 inline void SetEnum(Aws::String&& value) { m_enumHasBeenSet = true; m_enum = std::move(value); }
122 inline void SetEnum(const char* value) { m_enumHasBeenSet = true; m_enum.assign(value); }
123 inline ParameterValue& WithEnum(const Aws::String& value) { SetEnum(value); return *this;}
124 inline ParameterValue& WithEnum(Aws::String&& value) { SetEnum(std::move(value)); return *this;}
125 inline ParameterValue& WithEnum(const char* value) { SetEnum(value); return *this;}
127
129
132 inline const Aws::Vector<Aws::String>& GetEnumList() const{ return m_enumList; }
133 inline bool EnumListHasBeenSet() const { return m_enumListHasBeenSet; }
134 inline void SetEnumList(const Aws::Vector<Aws::String>& value) { m_enumListHasBeenSet = true; m_enumList = value; }
135 inline void SetEnumList(Aws::Vector<Aws::String>&& value) { m_enumListHasBeenSet = true; m_enumList = std::move(value); }
136 inline ParameterValue& WithEnumList(const Aws::Vector<Aws::String>& value) { SetEnumList(value); return *this;}
137 inline ParameterValue& WithEnumList(Aws::Vector<Aws::String>&& value) { SetEnumList(std::move(value)); return *this;}
138 inline ParameterValue& AddEnumList(const Aws::String& value) { m_enumListHasBeenSet = true; m_enumList.push_back(value); return *this; }
139 inline ParameterValue& AddEnumList(Aws::String&& value) { m_enumListHasBeenSet = true; m_enumList.push_back(std::move(value)); return *this; }
140 inline ParameterValue& AddEnumList(const char* value) { m_enumListHasBeenSet = true; m_enumList.push_back(value); return *this; }
142 private:
143
144 int m_integer;
145 bool m_integerHasBeenSet = false;
146
147 Aws::Vector<int> m_integerList;
148 bool m_integerListHasBeenSet = false;
149
150 double m_double;
151 bool m_doubleHasBeenSet = false;
152
153 Aws::String m_string;
154 bool m_stringHasBeenSet = false;
155
156 Aws::Vector<Aws::String> m_stringList;
157 bool m_stringListHasBeenSet = false;
158
159 bool m_boolean;
160 bool m_booleanHasBeenSet = false;
161
162 Aws::String m_enum;
163 bool m_enumHasBeenSet = false;
164
165 Aws::Vector<Aws::String> m_enumList;
166 bool m_enumListHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace SecurityHub
171} // namespace Aws
const Aws::Vector< Aws::String > & GetEnumList() const
void SetIntegerList(const Aws::Vector< int > &value)
ParameterValue & WithBoolean(bool value)
ParameterValue & AddStringList(const char *value)
ParameterValue & AddStringList(const Aws::String &value)
ParameterValue & WithDouble(double value)
ParameterValue & WithString(Aws::String &&value)
ParameterValue & AddEnumList(Aws::String &&value)
ParameterValue & WithEnum(const Aws::String &value)
ParameterValue & AddIntegerList(int value)
ParameterValue & AddStringList(Aws::String &&value)
const Aws::Vector< Aws::String > & GetStringList() const
const Aws::String & GetString() const
ParameterValue & WithEnumList(const Aws::Vector< Aws::String > &value)
AWS_SECURITYHUB_API ParameterValue & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStringList(Aws::Vector< Aws::String > &&value)
ParameterValue & WithStringList(const Aws::Vector< Aws::String > &value)
const Aws::Vector< int > & GetIntegerList() const
ParameterValue & WithInteger(int value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
ParameterValue & WithStringList(Aws::Vector< Aws::String > &&value)
const Aws::String & GetEnum() const
ParameterValue & AddEnumList(const Aws::String &value)
ParameterValue & WithEnumList(Aws::Vector< Aws::String > &&value)
void SetEnumList(const Aws::Vector< Aws::String > &value)
void SetIntegerList(Aws::Vector< int > &&value)
ParameterValue & WithEnum(const char *value)
ParameterValue & WithIntegerList(Aws::Vector< int > &&value)
void SetEnum(const Aws::String &value)
void SetStringList(const Aws::Vector< Aws::String > &value)
AWS_SECURITYHUB_API ParameterValue(Aws::Utils::Json::JsonView jsonValue)
void SetString(Aws::String &&value)
ParameterValue & AddEnumList(const char *value)
void SetEnumList(Aws::Vector< Aws::String > &&value)
ParameterValue & WithEnum(Aws::String &&value)
ParameterValue & WithString(const Aws::String &value)
ParameterValue & WithIntegerList(const Aws::Vector< int > &value)
ParameterValue & WithString(const char *value)
void SetString(const 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