AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsWafv2WebAclDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityhub/model/AwsWafv2WebAclCaptchaConfigDetails.h>
10#include <aws/securityhub/model/AwsWafv2WebAclActionDetails.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/securityhub/model/AwsWafv2VisibilityConfigDetails.h>
13#include <aws/securityhub/model/AwsWafv2RulesDetails.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SecurityHub
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_SECURITYHUB_API AwsWafv2WebAclDetails() = default;
41 AWS_SECURITYHUB_API AwsWafv2WebAclDetails(Aws::Utils::Json::JsonView jsonValue);
43 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetName() const { return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 template<typename NameT = Aws::String>
53 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
54 template<typename NameT = Aws::String>
55 AwsWafv2WebAclDetails& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
67 template<typename ArnT = Aws::String>
68 AwsWafv2WebAclDetails& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
70
72
75 inline bool GetManagedbyFirewallManager() const { return m_managedbyFirewallManager; }
76 inline bool ManagedbyFirewallManagerHasBeenSet() const { return m_managedbyFirewallManagerHasBeenSet; }
77 inline void SetManagedbyFirewallManager(bool value) { m_managedbyFirewallManagerHasBeenSet = true; m_managedbyFirewallManager = value; }
80
82
85 inline const Aws::String& GetId() const { return m_id; }
86 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
87 template<typename IdT = Aws::String>
88 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
89 template<typename IdT = Aws::String>
90 AwsWafv2WebAclDetails& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
92
94
97 inline long long GetCapacity() const { return m_capacity; }
98 inline bool CapacityHasBeenSet() const { return m_capacityHasBeenSet; }
99 inline void SetCapacity(long long value) { m_capacityHasBeenSet = true; m_capacity = value; }
100 inline AwsWafv2WebAclDetails& WithCapacity(long long value) { SetCapacity(value); return *this;}
102
104
108 inline const AwsWafv2WebAclCaptchaConfigDetails& GetCaptchaConfig() const { return m_captchaConfig; }
109 inline bool CaptchaConfigHasBeenSet() const { return m_captchaConfigHasBeenSet; }
110 template<typename CaptchaConfigT = AwsWafv2WebAclCaptchaConfigDetails>
111 void SetCaptchaConfig(CaptchaConfigT&& value) { m_captchaConfigHasBeenSet = true; m_captchaConfig = std::forward<CaptchaConfigT>(value); }
112 template<typename CaptchaConfigT = AwsWafv2WebAclCaptchaConfigDetails>
113 AwsWafv2WebAclDetails& WithCaptchaConfig(CaptchaConfigT&& value) { SetCaptchaConfig(std::forward<CaptchaConfigT>(value)); return *this;}
115
117
121 inline const AwsWafv2WebAclActionDetails& GetDefaultAction() const { return m_defaultAction; }
122 inline bool DefaultActionHasBeenSet() const { return m_defaultActionHasBeenSet; }
123 template<typename DefaultActionT = AwsWafv2WebAclActionDetails>
124 void SetDefaultAction(DefaultActionT&& value) { m_defaultActionHasBeenSet = true; m_defaultAction = std::forward<DefaultActionT>(value); }
125 template<typename DefaultActionT = AwsWafv2WebAclActionDetails>
126 AwsWafv2WebAclDetails& WithDefaultAction(DefaultActionT&& value) { SetDefaultAction(std::forward<DefaultActionT>(value)); return *this;}
128
130
133 inline const Aws::String& GetDescription() const { return m_description; }
134 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
135 template<typename DescriptionT = Aws::String>
136 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
137 template<typename DescriptionT = Aws::String>
138 AwsWafv2WebAclDetails& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
140
142
148 inline const Aws::Vector<AwsWafv2RulesDetails>& GetRules() const { return m_rules; }
149 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
150 template<typename RulesT = Aws::Vector<AwsWafv2RulesDetails>>
151 void SetRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules = std::forward<RulesT>(value); }
152 template<typename RulesT = Aws::Vector<AwsWafv2RulesDetails>>
153 AwsWafv2WebAclDetails& WithRules(RulesT&& value) { SetRules(std::forward<RulesT>(value)); return *this;}
154 template<typename RulesT = AwsWafv2RulesDetails>
155 AwsWafv2WebAclDetails& AddRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules.emplace_back(std::forward<RulesT>(value)); return *this; }
157
159
163 inline const AwsWafv2VisibilityConfigDetails& GetVisibilityConfig() const { return m_visibilityConfig; }
164 inline bool VisibilityConfigHasBeenSet() const { return m_visibilityConfigHasBeenSet; }
165 template<typename VisibilityConfigT = AwsWafv2VisibilityConfigDetails>
166 void SetVisibilityConfig(VisibilityConfigT&& value) { m_visibilityConfigHasBeenSet = true; m_visibilityConfig = std::forward<VisibilityConfigT>(value); }
167 template<typename VisibilityConfigT = AwsWafv2VisibilityConfigDetails>
168 AwsWafv2WebAclDetails& WithVisibilityConfig(VisibilityConfigT&& value) { SetVisibilityConfig(std::forward<VisibilityConfigT>(value)); return *this;}
170 private:
171
172 Aws::String m_name;
173 bool m_nameHasBeenSet = false;
174
175 Aws::String m_arn;
176 bool m_arnHasBeenSet = false;
177
178 bool m_managedbyFirewallManager{false};
179 bool m_managedbyFirewallManagerHasBeenSet = false;
180
181 Aws::String m_id;
182 bool m_idHasBeenSet = false;
183
184 long long m_capacity{0};
185 bool m_capacityHasBeenSet = false;
186
187 AwsWafv2WebAclCaptchaConfigDetails m_captchaConfig;
188 bool m_captchaConfigHasBeenSet = false;
189
190 AwsWafv2WebAclActionDetails m_defaultAction;
191 bool m_defaultActionHasBeenSet = false;
192
193 Aws::String m_description;
194 bool m_descriptionHasBeenSet = false;
195
197 bool m_rulesHasBeenSet = false;
198
199 AwsWafv2VisibilityConfigDetails m_visibilityConfig;
200 bool m_visibilityConfigHasBeenSet = false;
201 };
202
203} // namespace Model
204} // namespace SecurityHub
205} // 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