AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StatefulRuleGroupReference.h
1
6#pragma once
7#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/network-firewall/model/StatefulRuleGroupOverride.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace NetworkFirewall
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_NETWORKFIREWALL_API StatefulRuleGroupReference();
37 AWS_NETWORKFIREWALL_API StatefulRuleGroupReference(Aws::Utils::Json::JsonView jsonValue);
39 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
47 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
48 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
49 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
50 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
51 inline StatefulRuleGroupReference& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
52 inline StatefulRuleGroupReference& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
53 inline StatefulRuleGroupReference& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
55
57
68 inline int GetPriority() const{ return m_priority; }
69 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
70 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
71 inline StatefulRuleGroupReference& WithPriority(int value) { SetPriority(value); return *this;}
73
75
79 inline const StatefulRuleGroupOverride& GetOverride() const{ return m_override; }
80 inline bool OverrideHasBeenSet() const { return m_overrideHasBeenSet; }
81 inline void SetOverride(const StatefulRuleGroupOverride& value) { m_overrideHasBeenSet = true; m_override = value; }
82 inline void SetOverride(StatefulRuleGroupOverride&& value) { m_overrideHasBeenSet = true; m_override = std::move(value); }
84 inline StatefulRuleGroupReference& WithOverride(StatefulRuleGroupOverride&& value) { SetOverride(std::move(value)); return *this;}
86 private:
87
88 Aws::String m_resourceArn;
89 bool m_resourceArnHasBeenSet = false;
90
91 int m_priority;
92 bool m_priorityHasBeenSet = false;
93
95 bool m_overrideHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace NetworkFirewall
100} // namespace Aws
StatefulRuleGroupReference & WithResourceArn(const char *value)
AWS_NETWORKFIREWALL_API StatefulRuleGroupReference(Aws::Utils::Json::JsonView jsonValue)
StatefulRuleGroupReference & WithResourceArn(const Aws::String &value)
void SetOverride(const StatefulRuleGroupOverride &value)
AWS_NETWORKFIREWALL_API StatefulRuleGroupReference & operator=(Aws::Utils::Json::JsonView jsonValue)
StatefulRuleGroupReference & WithOverride(const StatefulRuleGroupOverride &value)
StatefulRuleGroupReference & WithOverride(StatefulRuleGroupOverride &&value)
StatefulRuleGroupReference & WithResourceArn(Aws::String &&value)
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue