AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FirewallPolicy.h
1
6#pragma once
7#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/network-firewall/model/StatefulEngineOptions.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/network-firewall/model/PolicyVariables.h>
12#include <aws/network-firewall/model/StatelessRuleGroupReference.h>
13#include <aws/network-firewall/model/CustomAction.h>
14#include <aws/network-firewall/model/StatefulRuleGroupReference.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace NetworkFirewall
28{
29namespace Model
30{
31
43 {
44 public:
45 AWS_NETWORKFIREWALL_API FirewallPolicy();
46 AWS_NETWORKFIREWALL_API FirewallPolicy(Aws::Utils::Json::JsonView jsonValue);
47 AWS_NETWORKFIREWALL_API FirewallPolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
56 inline const Aws::Vector<StatelessRuleGroupReference>& GetStatelessRuleGroupReferences() const{ return m_statelessRuleGroupReferences; }
57 inline bool StatelessRuleGroupReferencesHasBeenSet() const { return m_statelessRuleGroupReferencesHasBeenSet; }
58 inline void SetStatelessRuleGroupReferences(const Aws::Vector<StatelessRuleGroupReference>& value) { m_statelessRuleGroupReferencesHasBeenSet = true; m_statelessRuleGroupReferences = value; }
59 inline void SetStatelessRuleGroupReferences(Aws::Vector<StatelessRuleGroupReference>&& value) { m_statelessRuleGroupReferencesHasBeenSet = true; m_statelessRuleGroupReferences = std::move(value); }
62 inline FirewallPolicy& AddStatelessRuleGroupReferences(const StatelessRuleGroupReference& value) { m_statelessRuleGroupReferencesHasBeenSet = true; m_statelessRuleGroupReferences.push_back(value); return *this; }
63 inline FirewallPolicy& AddStatelessRuleGroupReferences(StatelessRuleGroupReference&& value) { m_statelessRuleGroupReferencesHasBeenSet = true; m_statelessRuleGroupReferences.push_back(std::move(value)); return *this; }
65
67
79 inline const Aws::Vector<Aws::String>& GetStatelessDefaultActions() const{ return m_statelessDefaultActions; }
80 inline bool StatelessDefaultActionsHasBeenSet() const { return m_statelessDefaultActionsHasBeenSet; }
81 inline void SetStatelessDefaultActions(const Aws::Vector<Aws::String>& value) { m_statelessDefaultActionsHasBeenSet = true; m_statelessDefaultActions = value; }
82 inline void SetStatelessDefaultActions(Aws::Vector<Aws::String>&& value) { m_statelessDefaultActionsHasBeenSet = true; m_statelessDefaultActions = std::move(value); }
85 inline FirewallPolicy& AddStatelessDefaultActions(const Aws::String& value) { m_statelessDefaultActionsHasBeenSet = true; m_statelessDefaultActions.push_back(value); return *this; }
86 inline FirewallPolicy& AddStatelessDefaultActions(Aws::String&& value) { m_statelessDefaultActionsHasBeenSet = true; m_statelessDefaultActions.push_back(std::move(value)); return *this; }
87 inline FirewallPolicy& AddStatelessDefaultActions(const char* value) { m_statelessDefaultActionsHasBeenSet = true; m_statelessDefaultActions.push_back(value); return *this; }
89
91
104 inline const Aws::Vector<Aws::String>& GetStatelessFragmentDefaultActions() const{ return m_statelessFragmentDefaultActions; }
105 inline bool StatelessFragmentDefaultActionsHasBeenSet() const { return m_statelessFragmentDefaultActionsHasBeenSet; }
106 inline void SetStatelessFragmentDefaultActions(const Aws::Vector<Aws::String>& value) { m_statelessFragmentDefaultActionsHasBeenSet = true; m_statelessFragmentDefaultActions = value; }
107 inline void SetStatelessFragmentDefaultActions(Aws::Vector<Aws::String>&& value) { m_statelessFragmentDefaultActionsHasBeenSet = true; m_statelessFragmentDefaultActions = std::move(value); }
110 inline FirewallPolicy& AddStatelessFragmentDefaultActions(const Aws::String& value) { m_statelessFragmentDefaultActionsHasBeenSet = true; m_statelessFragmentDefaultActions.push_back(value); return *this; }
111 inline FirewallPolicy& AddStatelessFragmentDefaultActions(Aws::String&& value) { m_statelessFragmentDefaultActionsHasBeenSet = true; m_statelessFragmentDefaultActions.push_back(std::move(value)); return *this; }
112 inline FirewallPolicy& AddStatelessFragmentDefaultActions(const char* value) { m_statelessFragmentDefaultActionsHasBeenSet = true; m_statelessFragmentDefaultActions.push_back(value); return *this; }
114
116
122 inline const Aws::Vector<CustomAction>& GetStatelessCustomActions() const{ return m_statelessCustomActions; }
123 inline bool StatelessCustomActionsHasBeenSet() const { return m_statelessCustomActionsHasBeenSet; }
124 inline void SetStatelessCustomActions(const Aws::Vector<CustomAction>& value) { m_statelessCustomActionsHasBeenSet = true; m_statelessCustomActions = value; }
125 inline void SetStatelessCustomActions(Aws::Vector<CustomAction>&& value) { m_statelessCustomActionsHasBeenSet = true; m_statelessCustomActions = std::move(value); }
128 inline FirewallPolicy& AddStatelessCustomActions(const CustomAction& value) { m_statelessCustomActionsHasBeenSet = true; m_statelessCustomActions.push_back(value); return *this; }
129 inline FirewallPolicy& AddStatelessCustomActions(CustomAction&& value) { m_statelessCustomActionsHasBeenSet = true; m_statelessCustomActions.push_back(std::move(value)); return *this; }
131
133
137 inline const Aws::Vector<StatefulRuleGroupReference>& GetStatefulRuleGroupReferences() const{ return m_statefulRuleGroupReferences; }
138 inline bool StatefulRuleGroupReferencesHasBeenSet() const { return m_statefulRuleGroupReferencesHasBeenSet; }
139 inline void SetStatefulRuleGroupReferences(const Aws::Vector<StatefulRuleGroupReference>& value) { m_statefulRuleGroupReferencesHasBeenSet = true; m_statefulRuleGroupReferences = value; }
140 inline void SetStatefulRuleGroupReferences(Aws::Vector<StatefulRuleGroupReference>&& value) { m_statefulRuleGroupReferencesHasBeenSet = true; m_statefulRuleGroupReferences = std::move(value); }
143 inline FirewallPolicy& AddStatefulRuleGroupReferences(const StatefulRuleGroupReference& value) { m_statefulRuleGroupReferencesHasBeenSet = true; m_statefulRuleGroupReferences.push_back(value); return *this; }
144 inline FirewallPolicy& AddStatefulRuleGroupReferences(StatefulRuleGroupReference&& value) { m_statefulRuleGroupReferencesHasBeenSet = true; m_statefulRuleGroupReferences.push_back(std::move(value)); return *this; }
146
148
158 inline const Aws::Vector<Aws::String>& GetStatefulDefaultActions() const{ return m_statefulDefaultActions; }
159 inline bool StatefulDefaultActionsHasBeenSet() const { return m_statefulDefaultActionsHasBeenSet; }
160 inline void SetStatefulDefaultActions(const Aws::Vector<Aws::String>& value) { m_statefulDefaultActionsHasBeenSet = true; m_statefulDefaultActions = value; }
161 inline void SetStatefulDefaultActions(Aws::Vector<Aws::String>&& value) { m_statefulDefaultActionsHasBeenSet = true; m_statefulDefaultActions = std::move(value); }
164 inline FirewallPolicy& AddStatefulDefaultActions(const Aws::String& value) { m_statefulDefaultActionsHasBeenSet = true; m_statefulDefaultActions.push_back(value); return *this; }
165 inline FirewallPolicy& AddStatefulDefaultActions(Aws::String&& value) { m_statefulDefaultActionsHasBeenSet = true; m_statefulDefaultActions.push_back(std::move(value)); return *this; }
166 inline FirewallPolicy& AddStatefulDefaultActions(const char* value) { m_statefulDefaultActionsHasBeenSet = true; m_statefulDefaultActions.push_back(value); return *this; }
168
170
175 inline const StatefulEngineOptions& GetStatefulEngineOptions() const{ return m_statefulEngineOptions; }
176 inline bool StatefulEngineOptionsHasBeenSet() const { return m_statefulEngineOptionsHasBeenSet; }
177 inline void SetStatefulEngineOptions(const StatefulEngineOptions& value) { m_statefulEngineOptionsHasBeenSet = true; m_statefulEngineOptions = value; }
178 inline void SetStatefulEngineOptions(StatefulEngineOptions&& value) { m_statefulEngineOptionsHasBeenSet = true; m_statefulEngineOptions = std::move(value); }
182
184
187 inline const Aws::String& GetTLSInspectionConfigurationArn() const{ return m_tLSInspectionConfigurationArn; }
188 inline bool TLSInspectionConfigurationArnHasBeenSet() const { return m_tLSInspectionConfigurationArnHasBeenSet; }
189 inline void SetTLSInspectionConfigurationArn(const Aws::String& value) { m_tLSInspectionConfigurationArnHasBeenSet = true; m_tLSInspectionConfigurationArn = value; }
190 inline void SetTLSInspectionConfigurationArn(Aws::String&& value) { m_tLSInspectionConfigurationArnHasBeenSet = true; m_tLSInspectionConfigurationArn = std::move(value); }
191 inline void SetTLSInspectionConfigurationArn(const char* value) { m_tLSInspectionConfigurationArnHasBeenSet = true; m_tLSInspectionConfigurationArn.assign(value); }
196
198
202 inline const PolicyVariables& GetPolicyVariables() const{ return m_policyVariables; }
203 inline bool PolicyVariablesHasBeenSet() const { return m_policyVariablesHasBeenSet; }
204 inline void SetPolicyVariables(const PolicyVariables& value) { m_policyVariablesHasBeenSet = true; m_policyVariables = value; }
205 inline void SetPolicyVariables(PolicyVariables&& value) { m_policyVariablesHasBeenSet = true; m_policyVariables = std::move(value); }
206 inline FirewallPolicy& WithPolicyVariables(const PolicyVariables& value) { SetPolicyVariables(value); return *this;}
207 inline FirewallPolicy& WithPolicyVariables(PolicyVariables&& value) { SetPolicyVariables(std::move(value)); return *this;}
209 private:
210
211 Aws::Vector<StatelessRuleGroupReference> m_statelessRuleGroupReferences;
212 bool m_statelessRuleGroupReferencesHasBeenSet = false;
213
214 Aws::Vector<Aws::String> m_statelessDefaultActions;
215 bool m_statelessDefaultActionsHasBeenSet = false;
216
217 Aws::Vector<Aws::String> m_statelessFragmentDefaultActions;
218 bool m_statelessFragmentDefaultActionsHasBeenSet = false;
219
220 Aws::Vector<CustomAction> m_statelessCustomActions;
221 bool m_statelessCustomActionsHasBeenSet = false;
222
223 Aws::Vector<StatefulRuleGroupReference> m_statefulRuleGroupReferences;
224 bool m_statefulRuleGroupReferencesHasBeenSet = false;
225
226 Aws::Vector<Aws::String> m_statefulDefaultActions;
227 bool m_statefulDefaultActionsHasBeenSet = false;
228
229 StatefulEngineOptions m_statefulEngineOptions;
230 bool m_statefulEngineOptionsHasBeenSet = false;
231
232 Aws::String m_tLSInspectionConfigurationArn;
233 bool m_tLSInspectionConfigurationArnHasBeenSet = false;
234
235 PolicyVariables m_policyVariables;
236 bool m_policyVariablesHasBeenSet = false;
237 };
238
239} // namespace Model
240} // namespace NetworkFirewall
241} // namespace Aws
FirewallPolicy & AddStatelessRuleGroupReferences(StatelessRuleGroupReference &&value)
void SetStatelessDefaultActions(Aws::Vector< Aws::String > &&value)
FirewallPolicy & AddStatelessFragmentDefaultActions(const Aws::String &value)
FirewallPolicy & WithStatefulEngineOptions(const StatefulEngineOptions &value)
void SetTLSInspectionConfigurationArn(const Aws::String &value)
FirewallPolicy & WithStatefulRuleGroupReferences(const Aws::Vector< StatefulRuleGroupReference > &value)
FirewallPolicy & WithTLSInspectionConfigurationArn(const char *value)
void SetTLSInspectionConfigurationArn(const char *value)
FirewallPolicy & WithPolicyVariables(const PolicyVariables &value)
FirewallPolicy & WithStatefulDefaultActions(const Aws::Vector< Aws::String > &value)
FirewallPolicy & WithTLSInspectionConfigurationArn(Aws::String &&value)
FirewallPolicy & WithPolicyVariables(PolicyVariables &&value)
AWS_NETWORKFIREWALL_API FirewallPolicy(Aws::Utils::Json::JsonView jsonValue)
FirewallPolicy & AddStatelessRuleGroupReferences(const StatelessRuleGroupReference &value)
void SetStatefulDefaultActions(Aws::Vector< Aws::String > &&value)
FirewallPolicy & AddStatefulDefaultActions(const char *value)
AWS_NETWORKFIREWALL_API FirewallPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetStatefulDefaultActions() const
const PolicyVariables & GetPolicyVariables() const
const Aws::String & GetTLSInspectionConfigurationArn() const
const Aws::Vector< Aws::String > & GetStatelessDefaultActions() const
FirewallPolicy & AddStatelessFragmentDefaultActions(const char *value)
void SetStatefulRuleGroupReferences(Aws::Vector< StatefulRuleGroupReference > &&value)
FirewallPolicy & AddStatefulRuleGroupReferences(const StatefulRuleGroupReference &value)
const Aws::Vector< Aws::String > & GetStatelessFragmentDefaultActions() const
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
FirewallPolicy & AddStatelessCustomActions(CustomAction &&value)
void SetPolicyVariables(PolicyVariables &&value)
void SetStatelessFragmentDefaultActions(Aws::Vector< Aws::String > &&value)
FirewallPolicy & WithStatelessFragmentDefaultActions(const Aws::Vector< Aws::String > &value)
FirewallPolicy & WithStatelessDefaultActions(const Aws::Vector< Aws::String > &value)
void SetStatelessRuleGroupReferences(const Aws::Vector< StatelessRuleGroupReference > &value)
FirewallPolicy & WithStatelessRuleGroupReferences(const Aws::Vector< StatelessRuleGroupReference > &value)
void SetStatefulEngineOptions(StatefulEngineOptions &&value)
FirewallPolicy & AddStatelessFragmentDefaultActions(Aws::String &&value)
const Aws::Vector< StatelessRuleGroupReference > & GetStatelessRuleGroupReferences() const
void SetPolicyVariables(const PolicyVariables &value)
void SetStatelessFragmentDefaultActions(const Aws::Vector< Aws::String > &value)
FirewallPolicy & AddStatelessDefaultActions(const char *value)
FirewallPolicy & AddStatelessDefaultActions(Aws::String &&value)
FirewallPolicy & WithStatefulDefaultActions(Aws::Vector< Aws::String > &&value)
FirewallPolicy & AddStatefulDefaultActions(Aws::String &&value)
void SetStatelessDefaultActions(const Aws::Vector< Aws::String > &value)
const StatefulEngineOptions & GetStatefulEngineOptions() const
FirewallPolicy & WithStatelessCustomActions(const Aws::Vector< CustomAction > &value)
FirewallPolicy & WithStatelessCustomActions(Aws::Vector< CustomAction > &&value)
void SetStatefulEngineOptions(const StatefulEngineOptions &value)
FirewallPolicy & WithStatefulRuleGroupReferences(Aws::Vector< StatefulRuleGroupReference > &&value)
FirewallPolicy & WithTLSInspectionConfigurationArn(const Aws::String &value)
FirewallPolicy & WithStatelessDefaultActions(Aws::Vector< Aws::String > &&value)
FirewallPolicy & AddStatefulDefaultActions(const Aws::String &value)
FirewallPolicy & AddStatefulRuleGroupReferences(StatefulRuleGroupReference &&value)
FirewallPolicy & WithStatelessRuleGroupReferences(Aws::Vector< StatelessRuleGroupReference > &&value)
AWS_NETWORKFIREWALL_API FirewallPolicy()
const Aws::Vector< StatefulRuleGroupReference > & GetStatefulRuleGroupReferences() const
void SetStatefulDefaultActions(const Aws::Vector< Aws::String > &value)
void SetStatelessCustomActions(const Aws::Vector< CustomAction > &value)
FirewallPolicy & AddStatelessCustomActions(const CustomAction &value)
FirewallPolicy & AddStatelessDefaultActions(const Aws::String &value)
void SetStatelessCustomActions(Aws::Vector< CustomAction > &&value)
FirewallPolicy & WithStatefulEngineOptions(StatefulEngineOptions &&value)
void SetStatelessRuleGroupReferences(Aws::Vector< StatelessRuleGroupReference > &&value)
void SetTLSInspectionConfigurationArn(Aws::String &&value)
void SetStatefulRuleGroupReferences(const Aws::Vector< StatefulRuleGroupReference > &value)
const Aws::Vector< CustomAction > & GetStatelessCustomActions() const
FirewallPolicy & WithStatelessFragmentDefaultActions(Aws::Vector< 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