AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FirewallManagerRuleGroup.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/wafv2/model/FirewallManagerStatement.h>
10#include <aws/wafv2/model/OverrideAction.h>
11#include <aws/wafv2/model/VisibilityConfig.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace WAFV2
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_WAFV2_API FirewallManagerRuleGroup();
41 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetName() const{ return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
53 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
54 inline FirewallManagerRuleGroup& WithName(const Aws::String& value) { SetName(value); return *this;}
55 inline FirewallManagerRuleGroup& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
56 inline FirewallManagerRuleGroup& WithName(const char* value) { SetName(value); return *this;}
58
60
66 inline int GetPriority() const{ return m_priority; }
67 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
68 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
69 inline FirewallManagerRuleGroup& WithPriority(int value) { SetPriority(value); return *this;}
71
73
77 inline const FirewallManagerStatement& GetFirewallManagerStatement() const{ return m_firewallManagerStatement; }
78 inline bool FirewallManagerStatementHasBeenSet() const { return m_firewallManagerStatementHasBeenSet; }
79 inline void SetFirewallManagerStatement(const FirewallManagerStatement& value) { m_firewallManagerStatementHasBeenSet = true; m_firewallManagerStatement = value; }
80 inline void SetFirewallManagerStatement(FirewallManagerStatement&& value) { m_firewallManagerStatementHasBeenSet = true; m_firewallManagerStatement = std::move(value); }
84
86
98 inline const OverrideAction& GetOverrideAction() const{ return m_overrideAction; }
99 inline bool OverrideActionHasBeenSet() const { return m_overrideActionHasBeenSet; }
100 inline void SetOverrideAction(const OverrideAction& value) { m_overrideActionHasBeenSet = true; m_overrideAction = value; }
101 inline void SetOverrideAction(OverrideAction&& value) { m_overrideActionHasBeenSet = true; m_overrideAction = std::move(value); }
103 inline FirewallManagerRuleGroup& WithOverrideAction(OverrideAction&& value) { SetOverrideAction(std::move(value)); return *this;}
105
107
111 inline const VisibilityConfig& GetVisibilityConfig() const{ return m_visibilityConfig; }
112 inline bool VisibilityConfigHasBeenSet() const { return m_visibilityConfigHasBeenSet; }
113 inline void SetVisibilityConfig(const VisibilityConfig& value) { m_visibilityConfigHasBeenSet = true; m_visibilityConfig = value; }
114 inline void SetVisibilityConfig(VisibilityConfig&& value) { m_visibilityConfigHasBeenSet = true; m_visibilityConfig = std::move(value); }
116 inline FirewallManagerRuleGroup& WithVisibilityConfig(VisibilityConfig&& value) { SetVisibilityConfig(std::move(value)); return *this;}
118 private:
119
120 Aws::String m_name;
121 bool m_nameHasBeenSet = false;
122
123 int m_priority;
124 bool m_priorityHasBeenSet = false;
125
126 FirewallManagerStatement m_firewallManagerStatement;
127 bool m_firewallManagerStatementHasBeenSet = false;
128
129 OverrideAction m_overrideAction;
130 bool m_overrideActionHasBeenSet = false;
131
132 VisibilityConfig m_visibilityConfig;
133 bool m_visibilityConfigHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace WAFV2
138} // namespace Aws
FirewallManagerRuleGroup & WithName(const Aws::String &value)
FirewallManagerRuleGroup & WithOverrideAction(OverrideAction &&value)
FirewallManagerRuleGroup & WithFirewallManagerStatement(const FirewallManagerStatement &value)
void SetFirewallManagerStatement(const FirewallManagerStatement &value)
FirewallManagerRuleGroup & WithVisibilityConfig(const VisibilityConfig &value)
AWS_WAFV2_API FirewallManagerRuleGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API FirewallManagerRuleGroup(Aws::Utils::Json::JsonView jsonValue)
const VisibilityConfig & GetVisibilityConfig() const
FirewallManagerRuleGroup & WithOverrideAction(const OverrideAction &value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
FirewallManagerRuleGroup & WithVisibilityConfig(VisibilityConfig &&value)
FirewallManagerRuleGroup & WithName(const char *value)
FirewallManagerRuleGroup & WithPriority(int value)
FirewallManagerRuleGroup & WithName(Aws::String &&value)
const FirewallManagerStatement & GetFirewallManagerStatement() const
void SetOverrideAction(const OverrideAction &value)
FirewallManagerRuleGroup & WithFirewallManagerStatement(FirewallManagerStatement &&value)
void SetVisibilityConfig(const VisibilityConfig &value)
void SetFirewallManagerStatement(FirewallManagerStatement &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue