AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StatefulRule.h
1
6#pragma once
7#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
8#include <aws/network-firewall/model/StatefulAction.h>
9#include <aws/network-firewall/model/Header.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/network-firewall/model/RuleOption.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 NetworkFirewall
25{
26namespace Model
27{
28
40 {
41 public:
42 AWS_NETWORKFIREWALL_API StatefulRule();
43 AWS_NETWORKFIREWALL_API StatefulRule(Aws::Utils::Json::JsonView jsonValue);
44 AWS_NETWORKFIREWALL_API StatefulRule& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
69 inline const StatefulAction& GetAction() const{ return m_action; }
70 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
71 inline void SetAction(const StatefulAction& value) { m_actionHasBeenSet = true; m_action = value; }
72 inline void SetAction(StatefulAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
73 inline StatefulRule& WithAction(const StatefulAction& value) { SetAction(value); return *this;}
74 inline StatefulRule& WithAction(StatefulAction&& value) { SetAction(std::move(value)); return *this;}
76
78
82 inline const Header& GetHeader() const{ return m_header; }
83 inline bool HeaderHasBeenSet() const { return m_headerHasBeenSet; }
84 inline void SetHeader(const Header& value) { m_headerHasBeenSet = true; m_header = value; }
85 inline void SetHeader(Header&& value) { m_headerHasBeenSet = true; m_header = std::move(value); }
86 inline StatefulRule& WithHeader(const Header& value) { SetHeader(value); return *this;}
87 inline StatefulRule& WithHeader(Header&& value) { SetHeader(std::move(value)); return *this;}
89
91
95 inline const Aws::Vector<RuleOption>& GetRuleOptions() const{ return m_ruleOptions; }
96 inline bool RuleOptionsHasBeenSet() const { return m_ruleOptionsHasBeenSet; }
97 inline void SetRuleOptions(const Aws::Vector<RuleOption>& value) { m_ruleOptionsHasBeenSet = true; m_ruleOptions = value; }
98 inline void SetRuleOptions(Aws::Vector<RuleOption>&& value) { m_ruleOptionsHasBeenSet = true; m_ruleOptions = std::move(value); }
99 inline StatefulRule& WithRuleOptions(const Aws::Vector<RuleOption>& value) { SetRuleOptions(value); return *this;}
100 inline StatefulRule& WithRuleOptions(Aws::Vector<RuleOption>&& value) { SetRuleOptions(std::move(value)); return *this;}
101 inline StatefulRule& AddRuleOptions(const RuleOption& value) { m_ruleOptionsHasBeenSet = true; m_ruleOptions.push_back(value); return *this; }
102 inline StatefulRule& AddRuleOptions(RuleOption&& value) { m_ruleOptionsHasBeenSet = true; m_ruleOptions.push_back(std::move(value)); return *this; }
104 private:
105
106 StatefulAction m_action;
107 bool m_actionHasBeenSet = false;
108
109 Header m_header;
110 bool m_headerHasBeenSet = false;
111
112 Aws::Vector<RuleOption> m_ruleOptions;
113 bool m_ruleOptionsHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace NetworkFirewall
118} // namespace Aws
StatefulRule & WithAction(const StatefulAction &value)
StatefulRule & WithAction(StatefulAction &&value)
AWS_NETWORKFIREWALL_API StatefulRule(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
StatefulRule & WithRuleOptions(const Aws::Vector< RuleOption > &value)
const Aws::Vector< RuleOption > & GetRuleOptions() const
StatefulRule & AddRuleOptions(const RuleOption &value)
void SetAction(StatefulAction &&value)
StatefulRule & WithHeader(const Header &value)
void SetAction(const StatefulAction &value)
AWS_NETWORKFIREWALL_API StatefulRule()
const StatefulAction & GetAction() const
void SetHeader(const Header &value)
StatefulRule & WithRuleOptions(Aws::Vector< RuleOption > &&value)
StatefulRule & WithHeader(Header &&value)
void SetRuleOptions(const Aws::Vector< RuleOption > &value)
AWS_NETWORKFIREWALL_API StatefulRule & operator=(Aws::Utils::Json::JsonView jsonValue)
StatefulRule & AddRuleOptions(RuleOption &&value)
void SetRuleOptions(Aws::Vector< RuleOption > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue