AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename IntegerListT = Aws::Vector<int>>
59 void SetIntegerList(IntegerListT&& value) { m_integerListHasBeenSet = true; m_integerList = std::forward<IntegerListT>(value); }
60 template<typename IntegerListT = Aws::Vector<int>>
61 ParameterValue& WithIntegerList(IntegerListT&& value) { SetIntegerList(std::forward<IntegerListT>(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 template<typename StringT = Aws::String>
82 void SetString(StringT&& value) { m_stringHasBeenSet = true; m_string = std::forward<StringT>(value); }
83 template<typename StringT = Aws::String>
84 ParameterValue& WithString(StringT&& value) { SetString(std::forward<StringT>(value)); return *this;}
86
88
91 inline const Aws::Vector<Aws::String>& GetStringList() const { return m_stringList; }
92 inline bool StringListHasBeenSet() const { return m_stringListHasBeenSet; }
93 template<typename StringListT = Aws::Vector<Aws::String>>
94 void SetStringList(StringListT&& value) { m_stringListHasBeenSet = true; m_stringList = std::forward<StringListT>(value); }
95 template<typename StringListT = Aws::Vector<Aws::String>>
96 ParameterValue& WithStringList(StringListT&& value) { SetStringList(std::forward<StringListT>(value)); return *this;}
97 template<typename StringListT = Aws::String>
98 ParameterValue& AddStringList(StringListT&& value) { m_stringListHasBeenSet = true; m_stringList.emplace_back(std::forward<StringListT>(value)); return *this; }
100
102
105 inline bool GetBoolean() const { return m_boolean; }
106 inline bool BooleanHasBeenSet() const { return m_booleanHasBeenSet; }
107 inline void SetBoolean(bool value) { m_booleanHasBeenSet = true; m_boolean = value; }
108 inline ParameterValue& WithBoolean(bool value) { SetBoolean(value); return *this;}
110
112
115 inline const Aws::String& GetEnum() const { return m_enum; }
116 inline bool EnumHasBeenSet() const { return m_enumHasBeenSet; }
117 template<typename EnumT = Aws::String>
118 void SetEnum(EnumT&& value) { m_enumHasBeenSet = true; m_enum = std::forward<EnumT>(value); }
119 template<typename EnumT = Aws::String>
120 ParameterValue& WithEnum(EnumT&& value) { SetEnum(std::forward<EnumT>(value)); return *this;}
122
124
127 inline const Aws::Vector<Aws::String>& GetEnumList() const { return m_enumList; }
128 inline bool EnumListHasBeenSet() const { return m_enumListHasBeenSet; }
129 template<typename EnumListT = Aws::Vector<Aws::String>>
130 void SetEnumList(EnumListT&& value) { m_enumListHasBeenSet = true; m_enumList = std::forward<EnumListT>(value); }
131 template<typename EnumListT = Aws::Vector<Aws::String>>
132 ParameterValue& WithEnumList(EnumListT&& value) { SetEnumList(std::forward<EnumListT>(value)); return *this;}
133 template<typename EnumListT = Aws::String>
134 ParameterValue& AddEnumList(EnumListT&& value) { m_enumListHasBeenSet = true; m_enumList.emplace_back(std::forward<EnumListT>(value)); return *this; }
136 private:
137
138 int m_integer{0};
139 bool m_integerHasBeenSet = false;
140
141 Aws::Vector<int> m_integerList;
142 bool m_integerListHasBeenSet = false;
143
144 double m_double{0.0};
145 bool m_doubleHasBeenSet = false;
146
147 Aws::String m_string;
148 bool m_stringHasBeenSet = false;
149
150 Aws::Vector<Aws::String> m_stringList;
151 bool m_stringListHasBeenSet = false;
152
153 bool m_boolean{false};
154 bool m_booleanHasBeenSet = false;
155
156 Aws::String m_enum;
157 bool m_enumHasBeenSet = false;
158
159 Aws::Vector<Aws::String> m_enumList;
160 bool m_enumListHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace SecurityHub
165} // namespace Aws
const Aws::Vector< Aws::String > & GetEnumList() const
ParameterValue & WithBoolean(bool value)
ParameterValue & WithDouble(double value)
AWS_SECURITYHUB_API ParameterValue()=default
ParameterValue & WithString(StringT &&value)
void SetStringList(StringListT &&value)
void SetIntegerList(IntegerListT &&value)
ParameterValue & AddIntegerList(int value)
const Aws::Vector< Aws::String > & GetStringList() const
const Aws::String & GetString() const
AWS_SECURITYHUB_API ParameterValue & operator=(Aws::Utils::Json::JsonView jsonValue)
ParameterValue & WithIntegerList(IntegerListT &&value)
const Aws::Vector< int > & GetIntegerList() const
ParameterValue & WithInteger(int value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
ParameterValue & WithStringList(StringListT &&value)
const Aws::String & GetEnum() const
ParameterValue & AddEnumList(EnumListT &&value)
ParameterValue & WithEnum(EnumT &&value)
AWS_SECURITYHUB_API ParameterValue(Aws::Utils::Json::JsonView jsonValue)
ParameterValue & WithEnumList(EnumListT &&value)
ParameterValue & AddStringList(StringListT &&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