AWS SDK for C++  1.9.107
AWS SDK for C++
FirewallManagerRuleGroup.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace WAFV2
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
48  inline const Aws::String& GetName() const{ return m_name; }
49 
54  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 
60  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
61 
66  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 
72  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
73 
78  inline FirewallManagerRuleGroup& WithName(const Aws::String& value) { SetName(value); return *this;}
79 
84  inline FirewallManagerRuleGroup& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
85 
90  inline FirewallManagerRuleGroup& WithName(const char* value) { SetName(value); return *this;}
91 
92 
99  inline int GetPriority() const{ return m_priority; }
100 
107  inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
108 
115  inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
116 
123  inline FirewallManagerRuleGroup& WithPriority(int value) { SetPriority(value); return *this;}
124 
125 
130  inline const FirewallManagerStatement& GetFirewallManagerStatement() const{ return m_firewallManagerStatement; }
131 
136  inline bool FirewallManagerStatementHasBeenSet() const { return m_firewallManagerStatementHasBeenSet; }
137 
142  inline void SetFirewallManagerStatement(const FirewallManagerStatement& value) { m_firewallManagerStatementHasBeenSet = true; m_firewallManagerStatement = value; }
143 
148  inline void SetFirewallManagerStatement(FirewallManagerStatement&& value) { m_firewallManagerStatementHasBeenSet = true; m_firewallManagerStatement = std::move(value); }
149 
154  inline FirewallManagerRuleGroup& WithFirewallManagerStatement(const FirewallManagerStatement& value) { SetFirewallManagerStatement(value); return *this;}
155 
160  inline FirewallManagerRuleGroup& WithFirewallManagerStatement(FirewallManagerStatement&& value) { SetFirewallManagerStatement(std::move(value)); return *this;}
161 
162 
177  inline const OverrideAction& GetOverrideAction() const{ return m_overrideAction; }
178 
193  inline bool OverrideActionHasBeenSet() const { return m_overrideActionHasBeenSet; }
194 
209  inline void SetOverrideAction(const OverrideAction& value) { m_overrideActionHasBeenSet = true; m_overrideAction = value; }
210 
225  inline void SetOverrideAction(OverrideAction&& value) { m_overrideActionHasBeenSet = true; m_overrideAction = std::move(value); }
226 
241  inline FirewallManagerRuleGroup& WithOverrideAction(const OverrideAction& value) { SetOverrideAction(value); return *this;}
242 
257  inline FirewallManagerRuleGroup& WithOverrideAction(OverrideAction&& value) { SetOverrideAction(std::move(value)); return *this;}
258 
259 
264  inline const VisibilityConfig& GetVisibilityConfig() const{ return m_visibilityConfig; }
265 
270  inline bool VisibilityConfigHasBeenSet() const { return m_visibilityConfigHasBeenSet; }
271 
276  inline void SetVisibilityConfig(const VisibilityConfig& value) { m_visibilityConfigHasBeenSet = true; m_visibilityConfig = value; }
277 
282  inline void SetVisibilityConfig(VisibilityConfig&& value) { m_visibilityConfigHasBeenSet = true; m_visibilityConfig = std::move(value); }
283 
288  inline FirewallManagerRuleGroup& WithVisibilityConfig(const VisibilityConfig& value) { SetVisibilityConfig(value); return *this;}
289 
294  inline FirewallManagerRuleGroup& WithVisibilityConfig(VisibilityConfig&& value) { SetVisibilityConfig(std::move(value)); return *this;}
295 
296  private:
297 
298  Aws::String m_name;
299  bool m_nameHasBeenSet;
300 
301  int m_priority;
302  bool m_priorityHasBeenSet;
303 
304  FirewallManagerStatement m_firewallManagerStatement;
305  bool m_firewallManagerStatementHasBeenSet;
306 
307  OverrideAction m_overrideAction;
308  bool m_overrideActionHasBeenSet;
309 
310  VisibilityConfig m_visibilityConfig;
311  bool m_visibilityConfigHasBeenSet;
312  };
313 
314 } // namespace Model
315 } // namespace WAFV2
316 } // namespace Aws
Aws::WAFV2::Model::FirewallManagerRuleGroup::FirewallManagerStatementHasBeenSet
bool FirewallManagerStatementHasBeenSet() const
Definition: FirewallManagerRuleGroup.h:136
Aws::WAFV2::Model::FirewallManagerRuleGroup::WithVisibilityConfig
FirewallManagerRuleGroup & WithVisibilityConfig(VisibilityConfig &&value)
Definition: FirewallManagerRuleGroup.h:294
Aws::WAFV2::Model::FirewallManagerRuleGroup::WithOverrideAction
FirewallManagerRuleGroup & WithOverrideAction(OverrideAction &&value)
Definition: FirewallManagerRuleGroup.h:257
Aws::WAFV2::Model::FirewallManagerRuleGroup::SetName
void SetName(const Aws::String &value)
Definition: FirewallManagerRuleGroup.h:60
Aws::WAFV2::Model::FirewallManagerRuleGroup::OverrideActionHasBeenSet
bool OverrideActionHasBeenSet() const
Definition: FirewallManagerRuleGroup.h:193
Aws::WAFV2::Model::FirewallManagerRuleGroup::GetName
const Aws::String & GetName() const
Definition: FirewallManagerRuleGroup.h:48
Aws::WAFV2::Model::FirewallManagerRuleGroup::SetPriority
void SetPriority(int value)
Definition: FirewallManagerRuleGroup.h:115
Aws::WAFV2::Model::FirewallManagerRuleGroup::WithOverrideAction
FirewallManagerRuleGroup & WithOverrideAction(const OverrideAction &value)
Definition: FirewallManagerRuleGroup.h:241
Aws::WAFV2::Model::FirewallManagerRuleGroup::NameHasBeenSet
bool NameHasBeenSet() const
Definition: FirewallManagerRuleGroup.h:54
Aws::WAFV2::Model::FirewallManagerRuleGroup
Definition: FirewallManagerRuleGroup.h:36
Aws::WAFV2::Model::FirewallManagerRuleGroup::WithPriority
FirewallManagerRuleGroup & WithPriority(int value)
Definition: FirewallManagerRuleGroup.h:123
Aws::WAFV2::Model::FirewallManagerRuleGroup::SetName
void SetName(const char *value)
Definition: FirewallManagerRuleGroup.h:72
Aws::WAFV2::Model::VisibilityConfig
Definition: VisibilityConfig.h:33
Aws::WAFV2::Model::FirewallManagerRuleGroup::VisibilityConfigHasBeenSet
bool VisibilityConfigHasBeenSet() const
Definition: FirewallManagerRuleGroup.h:270
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::FirewallManagerRuleGroup::WithName
FirewallManagerRuleGroup & WithName(const char *value)
Definition: FirewallManagerRuleGroup.h:90
Aws::WAFV2::Model::FirewallManagerRuleGroup::GetVisibilityConfig
const VisibilityConfig & GetVisibilityConfig() const
Definition: FirewallManagerRuleGroup.h:264
Aws::WAFV2::Model::FirewallManagerRuleGroup::SetOverrideAction
void SetOverrideAction(const OverrideAction &value)
Definition: FirewallManagerRuleGroup.h:209
OverrideAction.h
Aws::WAFV2::Model::FirewallManagerRuleGroup::GetOverrideAction
const OverrideAction & GetOverrideAction() const
Definition: FirewallManagerRuleGroup.h:177
WAFV2_EXPORTS.h
FirewallManagerStatement.h
Aws::WAFV2::Model::FirewallManagerRuleGroup::WithName
FirewallManagerRuleGroup & WithName(Aws::String &&value)
Definition: FirewallManagerRuleGroup.h:84
Aws::WAFV2::Model::FirewallManagerRuleGroup::WithFirewallManagerStatement
FirewallManagerRuleGroup & WithFirewallManagerStatement(const FirewallManagerStatement &value)
Definition: FirewallManagerRuleGroup.h:154
Aws::WAFV2::Model::FirewallManagerRuleGroup::SetName
void SetName(Aws::String &&value)
Definition: FirewallManagerRuleGroup.h:66
Aws::WAFV2::Model::FirewallManagerRuleGroup::WithFirewallManagerStatement
FirewallManagerRuleGroup & WithFirewallManagerStatement(FirewallManagerStatement &&value)
Definition: FirewallManagerRuleGroup.h:160
Aws::WAFV2::Model::FirewallManagerRuleGroup::SetOverrideAction
void SetOverrideAction(OverrideAction &&value)
Definition: FirewallManagerRuleGroup.h:225
Aws::WAFV2::Model::FirewallManagerRuleGroup::SetVisibilityConfig
void SetVisibilityConfig(VisibilityConfig &&value)
Definition: FirewallManagerRuleGroup.h:282
Aws::WAFV2::Model::FirewallManagerRuleGroup::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::WAFV2::Model::FirewallManagerRuleGroup::SetFirewallManagerStatement
void SetFirewallManagerStatement(const FirewallManagerStatement &value)
Definition: FirewallManagerRuleGroup.h:142
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::FirewallManagerRuleGroup::operator=
FirewallManagerRuleGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::FirewallManagerRuleGroup::SetFirewallManagerStatement
void SetFirewallManagerStatement(FirewallManagerStatement &&value)
Definition: FirewallManagerRuleGroup.h:148
Aws::WAFV2::Model::FirewallManagerRuleGroup::GetPriority
int GetPriority() const
Definition: FirewallManagerRuleGroup.h:99
Aws::WAFV2::Model::FirewallManagerRuleGroup::SetVisibilityConfig
void SetVisibilityConfig(const VisibilityConfig &value)
Definition: FirewallManagerRuleGroup.h:276
Aws::WAFV2::Model::FirewallManagerRuleGroup::GetFirewallManagerStatement
const FirewallManagerStatement & GetFirewallManagerStatement() const
Definition: FirewallManagerRuleGroup.h:130
Aws::WAFV2::Model::FirewallManagerRuleGroup::FirewallManagerRuleGroup
FirewallManagerRuleGroup()
Aws::WAFV2::Model::FirewallManagerRuleGroup::PriorityHasBeenSet
bool PriorityHasBeenSet() const
Definition: FirewallManagerRuleGroup.h:107
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::FirewallManagerStatement
Definition: FirewallManagerStatement.h:35
Aws::WAFV2::Model::OverrideAction
Definition: OverrideAction.h:44
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
VisibilityConfig.h
Aws::WAFV2::Model::FirewallManagerRuleGroup::FirewallManagerRuleGroup
FirewallManagerRuleGroup(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::FirewallManagerRuleGroup::WithName
FirewallManagerRuleGroup & WithName(const Aws::String &value)
Definition: FirewallManagerRuleGroup.h:78
Aws::WAFV2::Model::FirewallManagerRuleGroup::WithVisibilityConfig
FirewallManagerRuleGroup & WithVisibilityConfig(const VisibilityConfig &value)
Definition: FirewallManagerRuleGroup.h:288