AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
FirewallRuleGroupEntry.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
10#include <aws/network-firewall/model/FirewallRuleGroup.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace NetworkFirewall {
21namespace Model {
22
33 public:
34 AWS_NETWORKFIREWALL_API FirewallRuleGroupEntry() = default;
35 AWS_NETWORKFIREWALL_API FirewallRuleGroupEntry(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_NETWORKFIREWALL_API FirewallRuleGroupEntry& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
38
40
46 inline int64_t GetPriority() const { return m_priority; }
47 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
48 inline void SetPriority(int64_t value) {
49 m_priorityHasBeenSet = true;
50 m_priority = value;
51 }
52 inline FirewallRuleGroupEntry& WithPriority(int64_t value) {
53 SetPriority(value);
54 return *this;
55 }
57
59
65 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
66 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
67 template <typename ResourceArnT = Aws::String>
68 void SetResourceArn(ResourceArnT&& value) {
69 m_resourceArnHasBeenSet = true;
70 m_resourceArn = std::forward<ResourceArnT>(value);
71 }
72 template <typename ResourceArnT = Aws::String>
73 FirewallRuleGroupEntry& WithResourceArn(ResourceArnT&& value) {
74 SetResourceArn(std::forward<ResourceArnT>(value));
75 return *this;
76 }
78
80
87 inline const FirewallRuleGroup& GetInlineRuleGroup() const { return m_inlineRuleGroup; }
88 inline bool InlineRuleGroupHasBeenSet() const { return m_inlineRuleGroupHasBeenSet; }
89 template <typename InlineRuleGroupT = FirewallRuleGroup>
90 void SetInlineRuleGroup(InlineRuleGroupT&& value) {
91 m_inlineRuleGroupHasBeenSet = true;
92 m_inlineRuleGroup = std::forward<InlineRuleGroupT>(value);
93 }
94 template <typename InlineRuleGroupT = FirewallRuleGroup>
95 FirewallRuleGroupEntry& WithInlineRuleGroup(InlineRuleGroupT&& value) {
96 SetInlineRuleGroup(std::forward<InlineRuleGroupT>(value));
97 return *this;
98 }
100 private:
101 int64_t m_priority{0};
102
103 Aws::String m_resourceArn;
104
105 FirewallRuleGroup m_inlineRuleGroup;
106 bool m_priorityHasBeenSet = false;
107 bool m_resourceArnHasBeenSet = false;
108 bool m_inlineRuleGroupHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace NetworkFirewall
113} // namespace Aws
FirewallRuleGroupEntry & WithInlineRuleGroup(InlineRuleGroupT &&value)
const FirewallRuleGroup & GetInlineRuleGroup() const
FirewallRuleGroupEntry & WithResourceArn(ResourceArnT &&value)
void SetInlineRuleGroup(InlineRuleGroupT &&value)
AWS_NETWORKFIREWALL_API FirewallRuleGroupEntry & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool PriorityHasBeenSet() const
int64_t GetPriority() const
void SetResourceArn(ResourceArnT &&value)
bool ResourceArnHasBeenSet() const
FirewallRuleGroupEntry & WithPriority(int64_t value)
bool InlineRuleGroupHasBeenSet() const
const Aws::String & GetResourceArn() const
void SetPriority(int64_t value)
AWS_NETWORKFIREWALL_API FirewallRuleGroupEntry()=default
AWS_NETWORKFIREWALL_API FirewallRuleGroupEntry(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String