AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
NetworkACLEntry.h
1
6#pragma once
7#include <aws/finspace/Finspace_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/finspace/model/RuleAction.h>
10#include <aws/finspace/model/PortRange.h>
11#include <aws/finspace/model/IcmpTypeCode.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 finspace
25{
26namespace Model
27{
28
40 {
41 public:
42 AWS_FINSPACE_API NetworkACLEntry() = default;
43 AWS_FINSPACE_API NetworkACLEntry(Aws::Utils::Json::JsonView jsonValue);
45 AWS_FINSPACE_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
53 inline int GetRuleNumber() const { return m_ruleNumber; }
54 inline bool RuleNumberHasBeenSet() const { return m_ruleNumberHasBeenSet; }
55 inline void SetRuleNumber(int value) { m_ruleNumberHasBeenSet = true; m_ruleNumber = value; }
56 inline NetworkACLEntry& WithRuleNumber(int value) { SetRuleNumber(value); return *this;}
58
60
63 inline const Aws::String& GetProtocol() const { return m_protocol; }
64 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
65 template<typename ProtocolT = Aws::String>
66 void SetProtocol(ProtocolT&& value) { m_protocolHasBeenSet = true; m_protocol = std::forward<ProtocolT>(value); }
67 template<typename ProtocolT = Aws::String>
68 NetworkACLEntry& WithProtocol(ProtocolT&& value) { SetProtocol(std::forward<ProtocolT>(value)); return *this;}
70
72
75 inline RuleAction GetRuleAction() const { return m_ruleAction; }
76 inline bool RuleActionHasBeenSet() const { return m_ruleActionHasBeenSet; }
77 inline void SetRuleAction(RuleAction value) { m_ruleActionHasBeenSet = true; m_ruleAction = value; }
78 inline NetworkACLEntry& WithRuleAction(RuleAction value) { SetRuleAction(value); return *this;}
80
82
85 inline const PortRange& GetPortRange() const { return m_portRange; }
86 inline bool PortRangeHasBeenSet() const { return m_portRangeHasBeenSet; }
87 template<typename PortRangeT = PortRange>
88 void SetPortRange(PortRangeT&& value) { m_portRangeHasBeenSet = true; m_portRange = std::forward<PortRangeT>(value); }
89 template<typename PortRangeT = PortRange>
90 NetworkACLEntry& WithPortRange(PortRangeT&& value) { SetPortRange(std::forward<PortRangeT>(value)); return *this;}
92
94
97 inline const IcmpTypeCode& GetIcmpTypeCode() const { return m_icmpTypeCode; }
98 inline bool IcmpTypeCodeHasBeenSet() const { return m_icmpTypeCodeHasBeenSet; }
99 template<typename IcmpTypeCodeT = IcmpTypeCode>
100 void SetIcmpTypeCode(IcmpTypeCodeT&& value) { m_icmpTypeCodeHasBeenSet = true; m_icmpTypeCode = std::forward<IcmpTypeCodeT>(value); }
101 template<typename IcmpTypeCodeT = IcmpTypeCode>
102 NetworkACLEntry& WithIcmpTypeCode(IcmpTypeCodeT&& value) { SetIcmpTypeCode(std::forward<IcmpTypeCodeT>(value)); return *this;}
104
106
112 inline const Aws::String& GetCidrBlock() const { return m_cidrBlock; }
113 inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; }
114 template<typename CidrBlockT = Aws::String>
115 void SetCidrBlock(CidrBlockT&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = std::forward<CidrBlockT>(value); }
116 template<typename CidrBlockT = Aws::String>
117 NetworkACLEntry& WithCidrBlock(CidrBlockT&& value) { SetCidrBlock(std::forward<CidrBlockT>(value)); return *this;}
119 private:
120
121 int m_ruleNumber{0};
122 bool m_ruleNumberHasBeenSet = false;
123
124 Aws::String m_protocol;
125 bool m_protocolHasBeenSet = false;
126
127 RuleAction m_ruleAction{RuleAction::NOT_SET};
128 bool m_ruleActionHasBeenSet = false;
129
130 PortRange m_portRange;
131 bool m_portRangeHasBeenSet = false;
132
133 IcmpTypeCode m_icmpTypeCode;
134 bool m_icmpTypeCodeHasBeenSet = false;
135
136 Aws::String m_cidrBlock;
137 bool m_cidrBlockHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace finspace
142} // namespace Aws
bool CidrBlockHasBeenSet() const
void SetRuleNumber(int value)
NetworkACLEntry & WithPortRange(PortRangeT &&value)
void SetProtocol(ProtocolT &&value)
void SetCidrBlock(CidrBlockT &&value)
AWS_FINSPACE_API NetworkACLEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRuleAction(RuleAction value)
bool RuleActionHasBeenSet() const
bool ProtocolHasBeenSet() const
int GetRuleNumber() const
NetworkACLEntry & WithRuleNumber(int value)
const Aws::String & GetCidrBlock() const
AWS_FINSPACE_API NetworkACLEntry()=default
NetworkACLEntry & WithCidrBlock(CidrBlockT &&value)
bool PortRangeHasBeenSet() const
AWS_FINSPACE_API NetworkACLEntry(Aws::Utils::Json::JsonView jsonValue)
bool IcmpTypeCodeHasBeenSet() const
AWS_FINSPACE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPortRange(PortRangeT &&value)
bool RuleNumberHasBeenSet() const
const IcmpTypeCode & GetIcmpTypeCode() const
RuleAction GetRuleAction() const
const Aws::String & GetProtocol() const
void SetIcmpTypeCode(IcmpTypeCodeT &&value)
NetworkACLEntry & WithIcmpTypeCode(IcmpTypeCodeT &&value)
NetworkACLEntry & WithProtocol(ProtocolT &&value)
NetworkACLEntry & WithRuleAction(RuleAction value)
const PortRange & GetPortRange() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue