AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
53 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
54 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
55 inline AwsWafv2WebAclDetails& WithName(const Aws::String& value) { SetName(value); return *this;}
56 inline AwsWafv2WebAclDetails& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
57 inline AwsWafv2WebAclDetails& WithName(const char* value) { SetName(value); return *this;}
59
61
65 inline const Aws::String& GetArn() const{ return m_arn; }
66 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
67 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
68 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
69 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
70 inline AwsWafv2WebAclDetails& WithArn(const Aws::String& value) { SetArn(value); return *this;}
71 inline AwsWafv2WebAclDetails& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
72 inline AwsWafv2WebAclDetails& WithArn(const char* value) { SetArn(value); return *this;}
74
76
79 inline bool GetManagedbyFirewallManager() const{ return m_managedbyFirewallManager; }
80 inline bool ManagedbyFirewallManagerHasBeenSet() const { return m_managedbyFirewallManagerHasBeenSet; }
81 inline void SetManagedbyFirewallManager(bool value) { m_managedbyFirewallManagerHasBeenSet = true; m_managedbyFirewallManager = value; }
84
86
89 inline const Aws::String& GetId() const{ return m_id; }
90 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
91 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
92 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
93 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
94 inline AwsWafv2WebAclDetails& WithId(const Aws::String& value) { SetId(value); return *this;}
95 inline AwsWafv2WebAclDetails& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
96 inline AwsWafv2WebAclDetails& WithId(const char* value) { SetId(value); return *this;}
98
100
103 inline long long GetCapacity() const{ return m_capacity; }
104 inline bool CapacityHasBeenSet() const { return m_capacityHasBeenSet; }
105 inline void SetCapacity(long long value) { m_capacityHasBeenSet = true; m_capacity = value; }
106 inline AwsWafv2WebAclDetails& WithCapacity(long long value) { SetCapacity(value); return *this;}
108
110
114 inline const AwsWafv2WebAclCaptchaConfigDetails& GetCaptchaConfig() const{ return m_captchaConfig; }
115 inline bool CaptchaConfigHasBeenSet() const { return m_captchaConfigHasBeenSet; }
116 inline void SetCaptchaConfig(const AwsWafv2WebAclCaptchaConfigDetails& value) { m_captchaConfigHasBeenSet = true; m_captchaConfig = value; }
117 inline void SetCaptchaConfig(AwsWafv2WebAclCaptchaConfigDetails&& value) { m_captchaConfigHasBeenSet = true; m_captchaConfig = std::move(value); }
121
123
127 inline const AwsWafv2WebAclActionDetails& GetDefaultAction() const{ return m_defaultAction; }
128 inline bool DefaultActionHasBeenSet() const { return m_defaultActionHasBeenSet; }
129 inline void SetDefaultAction(const AwsWafv2WebAclActionDetails& value) { m_defaultActionHasBeenSet = true; m_defaultAction = value; }
130 inline void SetDefaultAction(AwsWafv2WebAclActionDetails&& value) { m_defaultActionHasBeenSet = true; m_defaultAction = std::move(value); }
132 inline AwsWafv2WebAclDetails& WithDefaultAction(AwsWafv2WebAclActionDetails&& value) { SetDefaultAction(std::move(value)); return *this;}
134
136
139 inline const Aws::String& GetDescription() const{ return m_description; }
140 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
141 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
142 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
143 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
144 inline AwsWafv2WebAclDetails& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
145 inline AwsWafv2WebAclDetails& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
146 inline AwsWafv2WebAclDetails& WithDescription(const char* value) { SetDescription(value); return *this;}
148
150
156 inline const Aws::Vector<AwsWafv2RulesDetails>& GetRules() const{ return m_rules; }
157 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
158 inline void SetRules(const Aws::Vector<AwsWafv2RulesDetails>& value) { m_rulesHasBeenSet = true; m_rules = value; }
159 inline void SetRules(Aws::Vector<AwsWafv2RulesDetails>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
160 inline AwsWafv2WebAclDetails& WithRules(const Aws::Vector<AwsWafv2RulesDetails>& value) { SetRules(value); return *this;}
161 inline AwsWafv2WebAclDetails& WithRules(Aws::Vector<AwsWafv2RulesDetails>&& value) { SetRules(std::move(value)); return *this;}
162 inline AwsWafv2WebAclDetails& AddRules(const AwsWafv2RulesDetails& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
163 inline AwsWafv2WebAclDetails& AddRules(AwsWafv2RulesDetails&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
165
167
171 inline const AwsWafv2VisibilityConfigDetails& GetVisibilityConfig() const{ return m_visibilityConfig; }
172 inline bool VisibilityConfigHasBeenSet() const { return m_visibilityConfigHasBeenSet; }
173 inline void SetVisibilityConfig(const AwsWafv2VisibilityConfigDetails& value) { m_visibilityConfigHasBeenSet = true; m_visibilityConfig = value; }
174 inline void SetVisibilityConfig(AwsWafv2VisibilityConfigDetails&& value) { m_visibilityConfigHasBeenSet = true; m_visibilityConfig = std::move(value); }
178 private:
179
180 Aws::String m_name;
181 bool m_nameHasBeenSet = false;
182
183 Aws::String m_arn;
184 bool m_arnHasBeenSet = false;
185
186 bool m_managedbyFirewallManager;
187 bool m_managedbyFirewallManagerHasBeenSet = false;
188
189 Aws::String m_id;
190 bool m_idHasBeenSet = false;
191
192 long long m_capacity;
193 bool m_capacityHasBeenSet = false;
194
196 bool m_captchaConfigHasBeenSet = false;
197
198 AwsWafv2WebAclActionDetails m_defaultAction;
199 bool m_defaultActionHasBeenSet = false;
200
201 Aws::String m_description;
202 bool m_descriptionHasBeenSet = false;
203
205 bool m_rulesHasBeenSet = false;
206
207 AwsWafv2VisibilityConfigDetails m_visibilityConfig;
208 bool m_visibilityConfigHasBeenSet = false;
209 };
210
211} // namespace Model
212} // namespace SecurityHub
213} // namespace Aws
AwsWafv2WebAclDetails & WithArn(Aws::String &&value)
const AwsWafv2VisibilityConfigDetails & GetVisibilityConfig() const
AwsWafv2WebAclDetails & WithDescription(const Aws::String &value)
void SetRules(Aws::Vector< AwsWafv2RulesDetails > &&value)
AwsWafv2WebAclDetails & WithDescription(const char *value)
AwsWafv2WebAclDetails & AddRules(const AwsWafv2RulesDetails &value)
const Aws::Vector< AwsWafv2RulesDetails > & GetRules() const
void SetDefaultAction(AwsWafv2WebAclActionDetails &&value)
void SetRules(const Aws::Vector< AwsWafv2RulesDetails > &value)
void SetVisibilityConfig(AwsWafv2VisibilityConfigDetails &&value)
AWS_SECURITYHUB_API AwsWafv2WebAclDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsWafv2WebAclDetails & WithDefaultAction(AwsWafv2WebAclActionDetails &&value)
AwsWafv2WebAclDetails & WithVisibilityConfig(const AwsWafv2VisibilityConfigDetails &value)
AwsWafv2WebAclDetails & WithDescription(Aws::String &&value)
AwsWafv2WebAclDetails & WithArn(const Aws::String &value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const AwsWafv2WebAclActionDetails & GetDefaultAction() const
AWS_SECURITYHUB_API AwsWafv2WebAclDetails(Aws::Utils::Json::JsonView jsonValue)
void SetCaptchaConfig(AwsWafv2WebAclCaptchaConfigDetails &&value)
AwsWafv2WebAclDetails & WithVisibilityConfig(AwsWafv2VisibilityConfigDetails &&value)
AwsWafv2WebAclDetails & WithCaptchaConfig(const AwsWafv2WebAclCaptchaConfigDetails &value)
AwsWafv2WebAclDetails & WithCapacity(long long value)
AwsWafv2WebAclDetails & WithName(Aws::String &&value)
const AwsWafv2WebAclCaptchaConfigDetails & GetCaptchaConfig() const
AwsWafv2WebAclDetails & WithManagedbyFirewallManager(bool value)
void SetCaptchaConfig(const AwsWafv2WebAclCaptchaConfigDetails &value)
AwsWafv2WebAclDetails & WithName(const Aws::String &value)
void SetDefaultAction(const AwsWafv2WebAclActionDetails &value)
AwsWafv2WebAclDetails & WithDefaultAction(const AwsWafv2WebAclActionDetails &value)
AwsWafv2WebAclDetails & WithRules(const Aws::Vector< AwsWafv2RulesDetails > &value)
AwsWafv2WebAclDetails & WithCaptchaConfig(AwsWafv2WebAclCaptchaConfigDetails &&value)
void SetVisibilityConfig(const AwsWafv2VisibilityConfigDetails &value)
AwsWafv2WebAclDetails & WithName(const char *value)
AwsWafv2WebAclDetails & WithId(const Aws::String &value)
AwsWafv2WebAclDetails & WithRules(Aws::Vector< AwsWafv2RulesDetails > &&value)
AwsWafv2WebAclDetails & WithArn(const char *value)
AwsWafv2WebAclDetails & WithId(const char *value)
AwsWafv2WebAclDetails & AddRules(AwsWafv2RulesDetails &&value)
AwsWafv2WebAclDetails & WithId(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