AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AwsWafv2WebAclDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/AwsWafv2RulesDetails.h>
11#include <aws/securityhub/model/AwsWafv2VisibilityConfigDetails.h>
12#include <aws/securityhub/model/AwsWafv2WebAclActionDetails.h>
13#include <aws/securityhub/model/AwsWafv2WebAclCaptchaConfigDetails.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SecurityHub {
25namespace Model {
26
34 public:
35 AWS_SECURITYHUB_API AwsWafv2WebAclDetails() = default;
36 AWS_SECURITYHUB_API AwsWafv2WebAclDetails(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetArn() const { return m_arn; }
64 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
65 template <typename ArnT = Aws::String>
66 void SetArn(ArnT&& value) {
67 m_arnHasBeenSet = true;
68 m_arn = std::forward<ArnT>(value);
69 }
70 template <typename ArnT = Aws::String>
72 SetArn(std::forward<ArnT>(value));
73 return *this;
74 }
76
78
81 inline bool GetManagedbyFirewallManager() const { return m_managedbyFirewallManager; }
82 inline bool ManagedbyFirewallManagerHasBeenSet() const { return m_managedbyFirewallManagerHasBeenSet; }
83 inline void SetManagedbyFirewallManager(bool value) {
84 m_managedbyFirewallManagerHasBeenSet = true;
85 m_managedbyFirewallManager = value;
86 }
89 return *this;
90 }
92
94
97 inline const Aws::String& GetId() const { return m_id; }
98 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
99 template <typename IdT = Aws::String>
100 void SetId(IdT&& value) {
101 m_idHasBeenSet = true;
102 m_id = std::forward<IdT>(value);
103 }
104 template <typename IdT = Aws::String>
106 SetId(std::forward<IdT>(value));
107 return *this;
108 }
110
112
115 inline long long GetCapacity() const { return m_capacity; }
116 inline bool CapacityHasBeenSet() const { return m_capacityHasBeenSet; }
117 inline void SetCapacity(long long value) {
118 m_capacityHasBeenSet = true;
119 m_capacity = value;
120 }
121 inline AwsWafv2WebAclDetails& WithCapacity(long long value) {
122 SetCapacity(value);
123 return *this;
124 }
126
128
132 inline const AwsWafv2WebAclCaptchaConfigDetails& GetCaptchaConfig() const { return m_captchaConfig; }
133 inline bool CaptchaConfigHasBeenSet() const { return m_captchaConfigHasBeenSet; }
134 template <typename CaptchaConfigT = AwsWafv2WebAclCaptchaConfigDetails>
135 void SetCaptchaConfig(CaptchaConfigT&& value) {
136 m_captchaConfigHasBeenSet = true;
137 m_captchaConfig = std::forward<CaptchaConfigT>(value);
138 }
139 template <typename CaptchaConfigT = AwsWafv2WebAclCaptchaConfigDetails>
140 AwsWafv2WebAclDetails& WithCaptchaConfig(CaptchaConfigT&& value) {
141 SetCaptchaConfig(std::forward<CaptchaConfigT>(value));
142 return *this;
143 }
145
147
151 inline const AwsWafv2WebAclActionDetails& GetDefaultAction() const { return m_defaultAction; }
152 inline bool DefaultActionHasBeenSet() const { return m_defaultActionHasBeenSet; }
153 template <typename DefaultActionT = AwsWafv2WebAclActionDetails>
154 void SetDefaultAction(DefaultActionT&& value) {
155 m_defaultActionHasBeenSet = true;
156 m_defaultAction = std::forward<DefaultActionT>(value);
157 }
158 template <typename DefaultActionT = AwsWafv2WebAclActionDetails>
159 AwsWafv2WebAclDetails& WithDefaultAction(DefaultActionT&& value) {
160 SetDefaultAction(std::forward<DefaultActionT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::String& GetDescription() const { return m_description; }
170 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
171 template <typename DescriptionT = Aws::String>
172 void SetDescription(DescriptionT&& value) {
173 m_descriptionHasBeenSet = true;
174 m_description = std::forward<DescriptionT>(value);
175 }
176 template <typename DescriptionT = Aws::String>
177 AwsWafv2WebAclDetails& WithDescription(DescriptionT&& value) {
178 SetDescription(std::forward<DescriptionT>(value));
179 return *this;
180 }
182
184
190 inline const Aws::Vector<AwsWafv2RulesDetails>& GetRules() const { return m_rules; }
191 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
192 template <typename RulesT = Aws::Vector<AwsWafv2RulesDetails>>
193 void SetRules(RulesT&& value) {
194 m_rulesHasBeenSet = true;
195 m_rules = std::forward<RulesT>(value);
196 }
197 template <typename RulesT = Aws::Vector<AwsWafv2RulesDetails>>
199 SetRules(std::forward<RulesT>(value));
200 return *this;
201 }
202 template <typename RulesT = AwsWafv2RulesDetails>
204 m_rulesHasBeenSet = true;
205 m_rules.emplace_back(std::forward<RulesT>(value));
206 return *this;
207 }
209
211
215 inline const AwsWafv2VisibilityConfigDetails& GetVisibilityConfig() const { return m_visibilityConfig; }
216 inline bool VisibilityConfigHasBeenSet() const { return m_visibilityConfigHasBeenSet; }
217 template <typename VisibilityConfigT = AwsWafv2VisibilityConfigDetails>
218 void SetVisibilityConfig(VisibilityConfigT&& value) {
219 m_visibilityConfigHasBeenSet = true;
220 m_visibilityConfig = std::forward<VisibilityConfigT>(value);
221 }
222 template <typename VisibilityConfigT = AwsWafv2VisibilityConfigDetails>
223 AwsWafv2WebAclDetails& WithVisibilityConfig(VisibilityConfigT&& value) {
224 SetVisibilityConfig(std::forward<VisibilityConfigT>(value));
225 return *this;
226 }
228 private:
229 Aws::String m_name;
230
231 Aws::String m_arn;
232
233 bool m_managedbyFirewallManager{false};
234
235 Aws::String m_id;
236
237 long long m_capacity{0};
238
239 AwsWafv2WebAclCaptchaConfigDetails m_captchaConfig;
240
241 AwsWafv2WebAclActionDetails m_defaultAction;
242
243 Aws::String m_description;
244
246
247 AwsWafv2VisibilityConfigDetails m_visibilityConfig;
248 bool m_nameHasBeenSet = false;
249 bool m_arnHasBeenSet = false;
250 bool m_managedbyFirewallManagerHasBeenSet = false;
251 bool m_idHasBeenSet = false;
252 bool m_capacityHasBeenSet = false;
253 bool m_captchaConfigHasBeenSet = false;
254 bool m_defaultActionHasBeenSet = false;
255 bool m_descriptionHasBeenSet = false;
256 bool m_rulesHasBeenSet = false;
257 bool m_visibilityConfigHasBeenSet = false;
258};
259
260} // namespace Model
261} // namespace SecurityHub
262} // namespace Aws
const AwsWafv2VisibilityConfigDetails & GetVisibilityConfig() const
const Aws::Vector< AwsWafv2RulesDetails > & GetRules() const
AwsWafv2WebAclDetails & WithCaptchaConfig(CaptchaConfigT &&value)
AWS_SECURITYHUB_API AwsWafv2WebAclDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsWafv2WebAclDetails & WithDescription(DescriptionT &&value)
AwsWafv2WebAclDetails & AddRules(RulesT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const AwsWafv2WebAclActionDetails & GetDefaultAction() const
AwsWafv2WebAclDetails & WithRules(RulesT &&value)
AWS_SECURITYHUB_API AwsWafv2WebAclDetails(Aws::Utils::Json::JsonView jsonValue)
AwsWafv2WebAclDetails & WithCapacity(long long value)
const AwsWafv2WebAclCaptchaConfigDetails & GetCaptchaConfig() const
AwsWafv2WebAclDetails & WithManagedbyFirewallManager(bool value)
AwsWafv2WebAclDetails & WithId(IdT &&value)
AWS_SECURITYHUB_API AwsWafv2WebAclDetails()=default
AwsWafv2WebAclDetails & WithDefaultAction(DefaultActionT &&value)
AwsWafv2WebAclDetails & WithName(NameT &&value)
AwsWafv2WebAclDetails & WithVisibilityConfig(VisibilityConfigT &&value)
AwsWafv2WebAclDetails & WithArn(ArnT &&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