AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ConfigurationOptions.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/model/IntegerConfigurationOptions.h>
9#include <aws/securityhub/model/IntegerListConfigurationOptions.h>
10#include <aws/securityhub/model/DoubleConfigurationOptions.h>
11#include <aws/securityhub/model/StringConfigurationOptions.h>
12#include <aws/securityhub/model/StringListConfigurationOptions.h>
13#include <aws/securityhub/model/BooleanConfigurationOptions.h>
14#include <aws/securityhub/model/EnumConfigurationOptions.h>
15#include <aws/securityhub/model/EnumListConfigurationOptions.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace SecurityHub
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_SECURITYHUB_API ConfigurationOptions() = default;
43 AWS_SECURITYHUB_API ConfigurationOptions(Aws::Utils::Json::JsonView jsonValue);
45 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
53 inline const IntegerConfigurationOptions& GetInteger() const { return m_integer; }
54 inline bool IntegerHasBeenSet() const { return m_integerHasBeenSet; }
55 template<typename IntegerT = IntegerConfigurationOptions>
56 void SetInteger(IntegerT&& value) { m_integerHasBeenSet = true; m_integer = std::forward<IntegerT>(value); }
57 template<typename IntegerT = IntegerConfigurationOptions>
58 ConfigurationOptions& WithInteger(IntegerT&& value) { SetInteger(std::forward<IntegerT>(value)); return *this;}
60
62
66 inline const IntegerListConfigurationOptions& GetIntegerList() const { return m_integerList; }
67 inline bool IntegerListHasBeenSet() const { return m_integerListHasBeenSet; }
68 template<typename IntegerListT = IntegerListConfigurationOptions>
69 void SetIntegerList(IntegerListT&& value) { m_integerListHasBeenSet = true; m_integerList = std::forward<IntegerListT>(value); }
70 template<typename IntegerListT = IntegerListConfigurationOptions>
71 ConfigurationOptions& WithIntegerList(IntegerListT&& value) { SetIntegerList(std::forward<IntegerListT>(value)); return *this;}
73
75
79 inline const DoubleConfigurationOptions& GetDouble() const { return m_double; }
80 inline bool DoubleHasBeenSet() const { return m_doubleHasBeenSet; }
81 template<typename DoubleT = DoubleConfigurationOptions>
82 void SetDouble(DoubleT&& value) { m_doubleHasBeenSet = true; m_double = std::forward<DoubleT>(value); }
83 template<typename DoubleT = DoubleConfigurationOptions>
84 ConfigurationOptions& WithDouble(DoubleT&& value) { SetDouble(std::forward<DoubleT>(value)); return *this;}
86
88
92 inline const StringConfigurationOptions& GetString() const { return m_string; }
93 inline bool StringHasBeenSet() const { return m_stringHasBeenSet; }
94 template<typename StringT = StringConfigurationOptions>
95 void SetString(StringT&& value) { m_stringHasBeenSet = true; m_string = std::forward<StringT>(value); }
96 template<typename StringT = StringConfigurationOptions>
97 ConfigurationOptions& WithString(StringT&& value) { SetString(std::forward<StringT>(value)); return *this;}
99
101
105 inline const StringListConfigurationOptions& GetStringList() const { return m_stringList; }
106 inline bool StringListHasBeenSet() const { return m_stringListHasBeenSet; }
107 template<typename StringListT = StringListConfigurationOptions>
108 void SetStringList(StringListT&& value) { m_stringListHasBeenSet = true; m_stringList = std::forward<StringListT>(value); }
109 template<typename StringListT = StringListConfigurationOptions>
110 ConfigurationOptions& WithStringList(StringListT&& value) { SetStringList(std::forward<StringListT>(value)); return *this;}
112
114
119 inline const BooleanConfigurationOptions& GetBoolean() const { return m_boolean; }
120 inline bool BooleanHasBeenSet() const { return m_booleanHasBeenSet; }
121 template<typename BooleanT = BooleanConfigurationOptions>
122 void SetBoolean(BooleanT&& value) { m_booleanHasBeenSet = true; m_boolean = std::forward<BooleanT>(value); }
123 template<typename BooleanT = BooleanConfigurationOptions>
124 ConfigurationOptions& WithBoolean(BooleanT&& value) { SetBoolean(std::forward<BooleanT>(value)); return *this;}
126
128
132 inline const EnumConfigurationOptions& GetEnum() const { return m_enum; }
133 inline bool EnumHasBeenSet() const { return m_enumHasBeenSet; }
134 template<typename EnumT = EnumConfigurationOptions>
135 void SetEnum(EnumT&& value) { m_enumHasBeenSet = true; m_enum = std::forward<EnumT>(value); }
136 template<typename EnumT = EnumConfigurationOptions>
137 ConfigurationOptions& WithEnum(EnumT&& value) { SetEnum(std::forward<EnumT>(value)); return *this;}
139
141
145 inline const EnumListConfigurationOptions& GetEnumList() const { return m_enumList; }
146 inline bool EnumListHasBeenSet() const { return m_enumListHasBeenSet; }
147 template<typename EnumListT = EnumListConfigurationOptions>
148 void SetEnumList(EnumListT&& value) { m_enumListHasBeenSet = true; m_enumList = std::forward<EnumListT>(value); }
149 template<typename EnumListT = EnumListConfigurationOptions>
150 ConfigurationOptions& WithEnumList(EnumListT&& value) { SetEnumList(std::forward<EnumListT>(value)); return *this;}
152 private:
153
155 bool m_integerHasBeenSet = false;
156
158 bool m_integerListHasBeenSet = false;
159
161 bool m_doubleHasBeenSet = false;
162
164 bool m_stringHasBeenSet = false;
165
167 bool m_stringListHasBeenSet = false;
168
170 bool m_booleanHasBeenSet = false;
171
173 bool m_enumHasBeenSet = false;
174
176 bool m_enumListHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace SecurityHub
181} // namespace Aws
ConfigurationOptions & WithEnumList(EnumListT &&value)
ConfigurationOptions & WithEnum(EnumT &&value)
const EnumConfigurationOptions & GetEnum() const
const IntegerConfigurationOptions & GetInteger() const
ConfigurationOptions & WithString(StringT &&value)
ConfigurationOptions & WithIntegerList(IntegerListT &&value)
const DoubleConfigurationOptions & GetDouble() const
AWS_SECURITYHUB_API ConfigurationOptions()=default
AWS_SECURITYHUB_API ConfigurationOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
ConfigurationOptions & WithBoolean(BooleanT &&value)
const BooleanConfigurationOptions & GetBoolean() const
ConfigurationOptions & WithInteger(IntegerT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const StringConfigurationOptions & GetString() const
ConfigurationOptions & WithStringList(StringListT &&value)
AWS_SECURITYHUB_API ConfigurationOptions(Aws::Utils::Json::JsonView jsonValue)
const StringListConfigurationOptions & GetStringList() const
ConfigurationOptions & WithDouble(DoubleT &&value)
const EnumListConfigurationOptions & GetEnumList() const
const IntegerListConfigurationOptions & GetIntegerList() const
Aws::Utils::Json::JsonValue JsonValue