AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
StatelessRulesAndCustomActions.h
Go to the documentation of this file.
1
6#pragma once
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace NetworkFirewall
24{
25namespace Model
26{
27
35 {
36 public:
41
42
46 inline const Aws::Vector<StatelessRule>& GetStatelessRules() const{ return m_statelessRules; }
47
51 inline bool StatelessRulesHasBeenSet() const { return m_statelessRulesHasBeenSet; }
52
56 inline void SetStatelessRules(const Aws::Vector<StatelessRule>& value) { m_statelessRulesHasBeenSet = true; m_statelessRules = value; }
57
61 inline void SetStatelessRules(Aws::Vector<StatelessRule>&& value) { m_statelessRulesHasBeenSet = true; m_statelessRules = std::move(value); }
62
67
72
76 inline StatelessRulesAndCustomActions& AddStatelessRules(const StatelessRule& value) { m_statelessRulesHasBeenSet = true; m_statelessRules.push_back(value); return *this; }
77
81 inline StatelessRulesAndCustomActions& AddStatelessRules(StatelessRule&& value) { m_statelessRulesHasBeenSet = true; m_statelessRules.push_back(std::move(value)); return *this; }
82
83
92 inline const Aws::Vector<CustomAction>& GetCustomActions() const{ return m_customActions; }
93
102 inline bool CustomActionsHasBeenSet() const { return m_customActionsHasBeenSet; }
103
112 inline void SetCustomActions(const Aws::Vector<CustomAction>& value) { m_customActionsHasBeenSet = true; m_customActions = value; }
113
122 inline void SetCustomActions(Aws::Vector<CustomAction>&& value) { m_customActionsHasBeenSet = true; m_customActions = std::move(value); }
123
133
143
152 inline StatelessRulesAndCustomActions& AddCustomActions(const CustomAction& value) { m_customActionsHasBeenSet = true; m_customActions.push_back(value); return *this; }
153
162 inline StatelessRulesAndCustomActions& AddCustomActions(CustomAction&& value) { m_customActionsHasBeenSet = true; m_customActions.push_back(std::move(value)); return *this; }
163
164 private:
165
166 Aws::Vector<StatelessRule> m_statelessRules;
167 bool m_statelessRulesHasBeenSet = false;
168
169 Aws::Vector<CustomAction> m_customActions;
170 bool m_customActionsHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace NetworkFirewall
175} // namespace Aws
#define AWS_NETWORKFIREWALL_API
AWS_NETWORKFIREWALL_API StatelessRulesAndCustomActions(Aws::Utils::Json::JsonView jsonValue)
StatelessRulesAndCustomActions & AddCustomActions(CustomAction &&value)
StatelessRulesAndCustomActions & WithCustomActions(Aws::Vector< CustomAction > &&value)
StatelessRulesAndCustomActions & AddCustomActions(const CustomAction &value)
StatelessRulesAndCustomActions & WithStatelessRules(const Aws::Vector< StatelessRule > &value)
AWS_NETWORKFIREWALL_API StatelessRulesAndCustomActions & operator=(Aws::Utils::Json::JsonView jsonValue)
StatelessRulesAndCustomActions & WithStatelessRules(Aws::Vector< StatelessRule > &&value)
StatelessRulesAndCustomActions & AddStatelessRules(const StatelessRule &value)
StatelessRulesAndCustomActions & AddStatelessRules(StatelessRule &&value)
void SetStatelessRules(const Aws::Vector< StatelessRule > &value)
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
StatelessRulesAndCustomActions & WithCustomActions(const Aws::Vector< CustomAction > &value)
std::vector< T, Aws::Allocator< T > > Vector