AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NetworkAclEntry.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/IcmpTypeCode.h>
11#include <aws/ec2/model/PortRange.h>
12#include <aws/ec2/model/RuleAction.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_EC2_API NetworkAclEntry();
38 AWS_EC2_API NetworkAclEntry(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetCidrBlock() const{ return m_cidrBlock; }
50 inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; }
51 inline void SetCidrBlock(const Aws::String& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = value; }
52 inline void SetCidrBlock(Aws::String&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = std::move(value); }
53 inline void SetCidrBlock(const char* value) { m_cidrBlockHasBeenSet = true; m_cidrBlock.assign(value); }
54 inline NetworkAclEntry& WithCidrBlock(const Aws::String& value) { SetCidrBlock(value); return *this;}
55 inline NetworkAclEntry& WithCidrBlock(Aws::String&& value) { SetCidrBlock(std::move(value)); return *this;}
56 inline NetworkAclEntry& WithCidrBlock(const char* value) { SetCidrBlock(value); return *this;}
58
60
64 inline bool GetEgress() const{ return m_egress; }
65 inline bool EgressHasBeenSet() const { return m_egressHasBeenSet; }
66 inline void SetEgress(bool value) { m_egressHasBeenSet = true; m_egress = value; }
67 inline NetworkAclEntry& WithEgress(bool value) { SetEgress(value); return *this;}
69
71
74 inline const IcmpTypeCode& GetIcmpTypeCode() const{ return m_icmpTypeCode; }
75 inline bool IcmpTypeCodeHasBeenSet() const { return m_icmpTypeCodeHasBeenSet; }
76 inline void SetIcmpTypeCode(const IcmpTypeCode& value) { m_icmpTypeCodeHasBeenSet = true; m_icmpTypeCode = value; }
77 inline void SetIcmpTypeCode(IcmpTypeCode&& value) { m_icmpTypeCodeHasBeenSet = true; m_icmpTypeCode = std::move(value); }
78 inline NetworkAclEntry& WithIcmpTypeCode(const IcmpTypeCode& value) { SetIcmpTypeCode(value); return *this;}
79 inline NetworkAclEntry& WithIcmpTypeCode(IcmpTypeCode&& value) { SetIcmpTypeCode(std::move(value)); return *this;}
81
83
86 inline const Aws::String& GetIpv6CidrBlock() const{ return m_ipv6CidrBlock; }
87 inline bool Ipv6CidrBlockHasBeenSet() const { return m_ipv6CidrBlockHasBeenSet; }
88 inline void SetIpv6CidrBlock(const Aws::String& value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock = value; }
89 inline void SetIpv6CidrBlock(Aws::String&& value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock = std::move(value); }
90 inline void SetIpv6CidrBlock(const char* value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock.assign(value); }
91 inline NetworkAclEntry& WithIpv6CidrBlock(const Aws::String& value) { SetIpv6CidrBlock(value); return *this;}
92 inline NetworkAclEntry& WithIpv6CidrBlock(Aws::String&& value) { SetIpv6CidrBlock(std::move(value)); return *this;}
93 inline NetworkAclEntry& WithIpv6CidrBlock(const char* value) { SetIpv6CidrBlock(value); return *this;}
95
97
100 inline const PortRange& GetPortRange() const{ return m_portRange; }
101 inline bool PortRangeHasBeenSet() const { return m_portRangeHasBeenSet; }
102 inline void SetPortRange(const PortRange& value) { m_portRangeHasBeenSet = true; m_portRange = value; }
103 inline void SetPortRange(PortRange&& value) { m_portRangeHasBeenSet = true; m_portRange = std::move(value); }
104 inline NetworkAclEntry& WithPortRange(const PortRange& value) { SetPortRange(value); return *this;}
105 inline NetworkAclEntry& WithPortRange(PortRange&& value) { SetPortRange(std::move(value)); return *this;}
107
109
112 inline const Aws::String& GetProtocol() const{ return m_protocol; }
113 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
114 inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; }
115 inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
116 inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); }
117 inline NetworkAclEntry& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;}
118 inline NetworkAclEntry& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;}
119 inline NetworkAclEntry& WithProtocol(const char* value) { SetProtocol(value); return *this;}
121
123
126 inline const RuleAction& GetRuleAction() const{ return m_ruleAction; }
127 inline bool RuleActionHasBeenSet() const { return m_ruleActionHasBeenSet; }
128 inline void SetRuleAction(const RuleAction& value) { m_ruleActionHasBeenSet = true; m_ruleAction = value; }
129 inline void SetRuleAction(RuleAction&& value) { m_ruleActionHasBeenSet = true; m_ruleAction = std::move(value); }
130 inline NetworkAclEntry& WithRuleAction(const RuleAction& value) { SetRuleAction(value); return *this;}
131 inline NetworkAclEntry& WithRuleAction(RuleAction&& value) { SetRuleAction(std::move(value)); return *this;}
133
135
139 inline int GetRuleNumber() const{ return m_ruleNumber; }
140 inline bool RuleNumberHasBeenSet() const { return m_ruleNumberHasBeenSet; }
141 inline void SetRuleNumber(int value) { m_ruleNumberHasBeenSet = true; m_ruleNumber = value; }
142 inline NetworkAclEntry& WithRuleNumber(int value) { SetRuleNumber(value); return *this;}
144 private:
145
146 Aws::String m_cidrBlock;
147 bool m_cidrBlockHasBeenSet = false;
148
149 bool m_egress;
150 bool m_egressHasBeenSet = false;
151
152 IcmpTypeCode m_icmpTypeCode;
153 bool m_icmpTypeCodeHasBeenSet = false;
154
155 Aws::String m_ipv6CidrBlock;
156 bool m_ipv6CidrBlockHasBeenSet = false;
157
158 PortRange m_portRange;
159 bool m_portRangeHasBeenSet = false;
160
161 Aws::String m_protocol;
162 bool m_protocolHasBeenSet = false;
163
164 RuleAction m_ruleAction;
165 bool m_ruleActionHasBeenSet = false;
166
167 int m_ruleNumber;
168 bool m_ruleNumberHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace EC2
173} // namespace Aws
bool Ipv6CidrBlockHasBeenSet() const
int GetRuleNumber() const
void SetIcmpTypeCode(const IcmpTypeCode &value)
NetworkAclEntry & WithPortRange(const PortRange &value)
bool IcmpTypeCodeHasBeenSet() const
NetworkAclEntry & WithRuleAction(const RuleAction &value)
bool EgressHasBeenSet() const
NetworkAclEntry & WithProtocol(const Aws::String &value)
void SetRuleNumber(int value)
NetworkAclEntry & WithCidrBlock(const Aws::String &value)
const RuleAction & GetRuleAction() const
void SetEgress(bool value)
void SetIpv6CidrBlock(const Aws::String &value)
const Aws::String & GetIpv6CidrBlock() const
NetworkAclEntry & WithIpv6CidrBlock(const Aws::String &value)
void SetIpv6CidrBlock(const char *value)
void SetIcmpTypeCode(IcmpTypeCode &&value)
AWS_EC2_API NetworkAclEntry & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
NetworkAclEntry & WithIpv6CidrBlock(Aws::String &&value)
void SetRuleAction(RuleAction &&value)
void SetCidrBlock(Aws::String &&value)
AWS_EC2_API NetworkAclEntry(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetProtocol(Aws::String &&value)
void SetProtocol(const Aws::String &value)
AWS_EC2_API NetworkAclEntry()
const IcmpTypeCode & GetIcmpTypeCode() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
NetworkAclEntry & WithIcmpTypeCode(const IcmpTypeCode &value)
NetworkAclEntry & WithIcmpTypeCode(IcmpTypeCode &&value)
void SetRuleAction(const RuleAction &value)
void SetIpv6CidrBlock(Aws::String &&value)
const Aws::String & GetProtocol() const
bool PortRangeHasBeenSet() const
void SetCidrBlock(const Aws::String &value)
void SetPortRange(const PortRange &value)
NetworkAclEntry & WithCidrBlock(Aws::String &&value)
NetworkAclEntry & WithIpv6CidrBlock(const char *value)
bool RuleNumberHasBeenSet() const
void SetPortRange(PortRange &&value)
NetworkAclEntry & WithEgress(bool value)
NetworkAclEntry & WithRuleAction(RuleAction &&value)
NetworkAclEntry & WithProtocol(Aws::String &&value)
bool GetEgress() const
const Aws::String & GetCidrBlock() const
NetworkAclEntry & WithCidrBlock(const char *value)
NetworkAclEntry & WithPortRange(PortRange &&value)
NetworkAclEntry & WithProtocol(const char *value)
bool ProtocolHasBeenSet() const
void SetCidrBlock(const char *value)
void SetProtocol(const char *value)
bool CidrBlockHasBeenSet() const
const PortRange & GetPortRange() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
NetworkAclEntry & WithRuleNumber(int value)
bool RuleActionHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream