AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FirewallPolicyDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/model/FirewallPolicyStatefulRuleGroupReferencesDetails.h>
10#include <aws/securityhub/model/FirewallPolicyStatelessCustomActionsDetails.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/securityhub/model/FirewallPolicyStatelessRuleGroupReferencesDetails.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SecurityHub
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_SECURITYHUB_API FirewallPolicyDetails();
39 AWS_SECURITYHUB_API FirewallPolicyDetails(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<FirewallPolicyStatefulRuleGroupReferencesDetails>& GetStatefulRuleGroupReferences() const{ return m_statefulRuleGroupReferences; }
49 inline bool StatefulRuleGroupReferencesHasBeenSet() const { return m_statefulRuleGroupReferencesHasBeenSet; }
50 inline void SetStatefulRuleGroupReferences(const Aws::Vector<FirewallPolicyStatefulRuleGroupReferencesDetails>& value) { m_statefulRuleGroupReferencesHasBeenSet = true; m_statefulRuleGroupReferences = value; }
51 inline void SetStatefulRuleGroupReferences(Aws::Vector<FirewallPolicyStatefulRuleGroupReferencesDetails>&& value) { m_statefulRuleGroupReferencesHasBeenSet = true; m_statefulRuleGroupReferences = std::move(value); }
54 inline FirewallPolicyDetails& AddStatefulRuleGroupReferences(const FirewallPolicyStatefulRuleGroupReferencesDetails& value) { m_statefulRuleGroupReferencesHasBeenSet = true; m_statefulRuleGroupReferences.push_back(value); return *this; }
55 inline FirewallPolicyDetails& AddStatefulRuleGroupReferences(FirewallPolicyStatefulRuleGroupReferencesDetails&& value) { m_statefulRuleGroupReferencesHasBeenSet = true; m_statefulRuleGroupReferences.push_back(std::move(value)); return *this; }
57
59
63 inline const Aws::Vector<FirewallPolicyStatelessCustomActionsDetails>& GetStatelessCustomActions() const{ return m_statelessCustomActions; }
64 inline bool StatelessCustomActionsHasBeenSet() const { return m_statelessCustomActionsHasBeenSet; }
65 inline void SetStatelessCustomActions(const Aws::Vector<FirewallPolicyStatelessCustomActionsDetails>& value) { m_statelessCustomActionsHasBeenSet = true; m_statelessCustomActions = value; }
66 inline void SetStatelessCustomActions(Aws::Vector<FirewallPolicyStatelessCustomActionsDetails>&& value) { m_statelessCustomActionsHasBeenSet = true; m_statelessCustomActions = std::move(value); }
69 inline FirewallPolicyDetails& AddStatelessCustomActions(const FirewallPolicyStatelessCustomActionsDetails& value) { m_statelessCustomActionsHasBeenSet = true; m_statelessCustomActions.push_back(value); return *this; }
70 inline FirewallPolicyDetails& AddStatelessCustomActions(FirewallPolicyStatelessCustomActionsDetails&& value) { m_statelessCustomActionsHasBeenSet = true; m_statelessCustomActions.push_back(std::move(value)); return *this; }
72
74
81 inline const Aws::Vector<Aws::String>& GetStatelessDefaultActions() const{ return m_statelessDefaultActions; }
82 inline bool StatelessDefaultActionsHasBeenSet() const { return m_statelessDefaultActionsHasBeenSet; }
83 inline void SetStatelessDefaultActions(const Aws::Vector<Aws::String>& value) { m_statelessDefaultActionsHasBeenSet = true; m_statelessDefaultActions = value; }
84 inline void SetStatelessDefaultActions(Aws::Vector<Aws::String>&& value) { m_statelessDefaultActionsHasBeenSet = true; m_statelessDefaultActions = std::move(value); }
87 inline FirewallPolicyDetails& AddStatelessDefaultActions(const Aws::String& value) { m_statelessDefaultActionsHasBeenSet = true; m_statelessDefaultActions.push_back(value); return *this; }
88 inline FirewallPolicyDetails& AddStatelessDefaultActions(Aws::String&& value) { m_statelessDefaultActionsHasBeenSet = true; m_statelessDefaultActions.push_back(std::move(value)); return *this; }
89 inline FirewallPolicyDetails& AddStatelessDefaultActions(const char* value) { m_statelessDefaultActionsHasBeenSet = true; m_statelessDefaultActions.push_back(value); return *this; }
91
93
100 inline const Aws::Vector<Aws::String>& GetStatelessFragmentDefaultActions() const{ return m_statelessFragmentDefaultActions; }
101 inline bool StatelessFragmentDefaultActionsHasBeenSet() const { return m_statelessFragmentDefaultActionsHasBeenSet; }
102 inline void SetStatelessFragmentDefaultActions(const Aws::Vector<Aws::String>& value) { m_statelessFragmentDefaultActionsHasBeenSet = true; m_statelessFragmentDefaultActions = value; }
103 inline void SetStatelessFragmentDefaultActions(Aws::Vector<Aws::String>&& value) { m_statelessFragmentDefaultActionsHasBeenSet = true; m_statelessFragmentDefaultActions = std::move(value); }
106 inline FirewallPolicyDetails& AddStatelessFragmentDefaultActions(const Aws::String& value) { m_statelessFragmentDefaultActionsHasBeenSet = true; m_statelessFragmentDefaultActions.push_back(value); return *this; }
107 inline FirewallPolicyDetails& AddStatelessFragmentDefaultActions(Aws::String&& value) { m_statelessFragmentDefaultActionsHasBeenSet = true; m_statelessFragmentDefaultActions.push_back(std::move(value)); return *this; }
108 inline FirewallPolicyDetails& AddStatelessFragmentDefaultActions(const char* value) { m_statelessFragmentDefaultActionsHasBeenSet = true; m_statelessFragmentDefaultActions.push_back(value); return *this; }
110
112
115 inline const Aws::Vector<FirewallPolicyStatelessRuleGroupReferencesDetails>& GetStatelessRuleGroupReferences() const{ return m_statelessRuleGroupReferences; }
116 inline bool StatelessRuleGroupReferencesHasBeenSet() const { return m_statelessRuleGroupReferencesHasBeenSet; }
117 inline void SetStatelessRuleGroupReferences(const Aws::Vector<FirewallPolicyStatelessRuleGroupReferencesDetails>& value) { m_statelessRuleGroupReferencesHasBeenSet = true; m_statelessRuleGroupReferences = value; }
118 inline void SetStatelessRuleGroupReferences(Aws::Vector<FirewallPolicyStatelessRuleGroupReferencesDetails>&& value) { m_statelessRuleGroupReferencesHasBeenSet = true; m_statelessRuleGroupReferences = std::move(value); }
121 inline FirewallPolicyDetails& AddStatelessRuleGroupReferences(const FirewallPolicyStatelessRuleGroupReferencesDetails& value) { m_statelessRuleGroupReferencesHasBeenSet = true; m_statelessRuleGroupReferences.push_back(value); return *this; }
122 inline FirewallPolicyDetails& AddStatelessRuleGroupReferences(FirewallPolicyStatelessRuleGroupReferencesDetails&& value) { m_statelessRuleGroupReferencesHasBeenSet = true; m_statelessRuleGroupReferences.push_back(std::move(value)); return *this; }
124 private:
125
127 bool m_statefulRuleGroupReferencesHasBeenSet = false;
128
130 bool m_statelessCustomActionsHasBeenSet = false;
131
132 Aws::Vector<Aws::String> m_statelessDefaultActions;
133 bool m_statelessDefaultActionsHasBeenSet = false;
134
135 Aws::Vector<Aws::String> m_statelessFragmentDefaultActions;
136 bool m_statelessFragmentDefaultActionsHasBeenSet = false;
137
139 bool m_statelessRuleGroupReferencesHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace SecurityHub
144} // namespace Aws
void SetStatelessCustomActions(Aws::Vector< FirewallPolicyStatelessCustomActionsDetails > &&value)
FirewallPolicyDetails & AddStatelessCustomActions(FirewallPolicyStatelessCustomActionsDetails &&value)
FirewallPolicyDetails & AddStatelessDefaultActions(const Aws::String &value)
FirewallPolicyDetails & WithStatelessRuleGroupReferences(const Aws::Vector< FirewallPolicyStatelessRuleGroupReferencesDetails > &value)
const Aws::Vector< FirewallPolicyStatelessCustomActionsDetails > & GetStatelessCustomActions() const
FirewallPolicyDetails & AddStatelessRuleGroupReferences(FirewallPolicyStatelessRuleGroupReferencesDetails &&value)
const Aws::Vector< Aws::String > & GetStatelessFragmentDefaultActions() const
AWS_SECURITYHUB_API FirewallPolicyDetails(Aws::Utils::Json::JsonView jsonValue)
void SetStatefulRuleGroupReferences(const Aws::Vector< FirewallPolicyStatefulRuleGroupReferencesDetails > &value)
FirewallPolicyDetails & AddStatefulRuleGroupReferences(FirewallPolicyStatefulRuleGroupReferencesDetails &&value)
FirewallPolicyDetails & AddStatelessFragmentDefaultActions(const Aws::String &value)
void SetStatelessDefaultActions(Aws::Vector< Aws::String > &&value)
void SetStatelessDefaultActions(const Aws::Vector< Aws::String > &value)
AWS_SECURITYHUB_API FirewallPolicyDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatelessFragmentDefaultActions(const Aws::Vector< Aws::String > &value)
const Aws::Vector< FirewallPolicyStatelessRuleGroupReferencesDetails > & GetStatelessRuleGroupReferences() const
FirewallPolicyDetails & AddStatelessCustomActions(const FirewallPolicyStatelessCustomActionsDetails &value)
void SetStatelessRuleGroupReferences(Aws::Vector< FirewallPolicyStatelessRuleGroupReferencesDetails > &&value)
FirewallPolicyDetails & WithStatefulRuleGroupReferences(Aws::Vector< FirewallPolicyStatefulRuleGroupReferencesDetails > &&value)
void SetStatefulRuleGroupReferences(Aws::Vector< FirewallPolicyStatefulRuleGroupReferencesDetails > &&value)
FirewallPolicyDetails & WithStatelessCustomActions(Aws::Vector< FirewallPolicyStatelessCustomActionsDetails > &&value)
void SetStatelessCustomActions(const Aws::Vector< FirewallPolicyStatelessCustomActionsDetails > &value)
FirewallPolicyDetails & AddStatelessFragmentDefaultActions(const char *value)
FirewallPolicyDetails & WithStatelessDefaultActions(const Aws::Vector< Aws::String > &value)
FirewallPolicyDetails & AddStatelessDefaultActions(const char *value)
FirewallPolicyDetails & WithStatelessCustomActions(const Aws::Vector< FirewallPolicyStatelessCustomActionsDetails > &value)
FirewallPolicyDetails & AddStatelessDefaultActions(Aws::String &&value)
FirewallPolicyDetails & WithStatelessDefaultActions(Aws::Vector< Aws::String > &&value)
FirewallPolicyDetails & AddStatefulRuleGroupReferences(const FirewallPolicyStatefulRuleGroupReferencesDetails &value)
FirewallPolicyDetails & WithStatelessFragmentDefaultActions(Aws::Vector< Aws::String > &&value)
const Aws::Vector< FirewallPolicyStatefulRuleGroupReferencesDetails > & GetStatefulRuleGroupReferences() const
const Aws::Vector< Aws::String > & GetStatelessDefaultActions() const
void SetStatelessRuleGroupReferences(const Aws::Vector< FirewallPolicyStatelessRuleGroupReferencesDetails > &value)
FirewallPolicyDetails & WithStatelessFragmentDefaultActions(const Aws::Vector< Aws::String > &value)
void SetStatelessFragmentDefaultActions(Aws::Vector< Aws::String > &&value)
FirewallPolicyDetails & AddStatelessFragmentDefaultActions(Aws::String &&value)
FirewallPolicyDetails & WithStatelessRuleGroupReferences(Aws::Vector< FirewallPolicyStatelessRuleGroupReferencesDetails > &&value)
FirewallPolicyDetails & WithStatefulRuleGroupReferences(const Aws::Vector< FirewallPolicyStatefulRuleGroupReferencesDetails > &value)
FirewallPolicyDetails & AddStatelessRuleGroupReferences(const FirewallPolicyStatelessRuleGroupReferencesDetails &value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue