AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StatelessRule.h
1
6#pragma once
7#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
8#include <aws/network-firewall/model/RuleDefinition.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace NetworkFirewall
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_NETWORKFIREWALL_API StatelessRule();
36 AWS_NETWORKFIREWALL_API StatelessRule(Aws::Utils::Json::JsonView jsonValue);
37 AWS_NETWORKFIREWALL_API StatelessRule& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const RuleDefinition& GetRuleDefinition() const{ return m_ruleDefinition; }
47 inline bool RuleDefinitionHasBeenSet() const { return m_ruleDefinitionHasBeenSet; }
48 inline void SetRuleDefinition(const RuleDefinition& value) { m_ruleDefinitionHasBeenSet = true; m_ruleDefinition = value; }
49 inline void SetRuleDefinition(RuleDefinition&& value) { m_ruleDefinitionHasBeenSet = true; m_ruleDefinition = std::move(value); }
50 inline StatelessRule& WithRuleDefinition(const RuleDefinition& value) { SetRuleDefinition(value); return *this;}
51 inline StatelessRule& WithRuleDefinition(RuleDefinition&& value) { SetRuleDefinition(std::move(value)); return *this;}
53
55
69 inline int GetPriority() const{ return m_priority; }
70 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
71 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
72 inline StatelessRule& WithPriority(int value) { SetPriority(value); return *this;}
74 private:
75
76 RuleDefinition m_ruleDefinition;
77 bool m_ruleDefinitionHasBeenSet = false;
78
79 int m_priority;
80 bool m_priorityHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace NetworkFirewall
85} // namespace Aws
AWS_NETWORKFIREWALL_API StatelessRule(Aws::Utils::Json::JsonView jsonValue)
StatelessRule & WithPriority(int value)
StatelessRule & WithRuleDefinition(const RuleDefinition &value)
void SetRuleDefinition(RuleDefinition &&value)
void SetRuleDefinition(const RuleDefinition &value)
const RuleDefinition & GetRuleDefinition() const
AWS_NETWORKFIREWALL_API StatelessRule()
AWS_NETWORKFIREWALL_API StatelessRule & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
StatelessRule & WithRuleDefinition(RuleDefinition &&value)
Aws::Utils::Json::JsonValue JsonValue