AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsEc2NetworkAclEntry.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityhub/model/IcmpTypeCode.h>
10#include <aws/securityhub/model/PortRangeFromTo.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SECURITYHUB_API AwsEc2NetworkAclEntry() = default;
38 AWS_SECURITYHUB_API AwsEc2NetworkAclEntry(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetCidrBlock() const { return m_cidrBlock; }
48 inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; }
49 template<typename CidrBlockT = Aws::String>
50 void SetCidrBlock(CidrBlockT&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = std::forward<CidrBlockT>(value); }
51 template<typename CidrBlockT = Aws::String>
52 AwsEc2NetworkAclEntry& WithCidrBlock(CidrBlockT&& value) { SetCidrBlock(std::forward<CidrBlockT>(value)); return *this;}
54
56
60 inline bool GetEgress() const { return m_egress; }
61 inline bool EgressHasBeenSet() const { return m_egressHasBeenSet; }
62 inline void SetEgress(bool value) { m_egressHasBeenSet = true; m_egress = value; }
63 inline AwsEc2NetworkAclEntry& WithEgress(bool value) { SetEgress(value); return *this;}
65
67
71 inline const IcmpTypeCode& GetIcmpTypeCode() const { return m_icmpTypeCode; }
72 inline bool IcmpTypeCodeHasBeenSet() const { return m_icmpTypeCodeHasBeenSet; }
73 template<typename IcmpTypeCodeT = IcmpTypeCode>
74 void SetIcmpTypeCode(IcmpTypeCodeT&& value) { m_icmpTypeCodeHasBeenSet = true; m_icmpTypeCode = std::forward<IcmpTypeCodeT>(value); }
75 template<typename IcmpTypeCodeT = IcmpTypeCode>
76 AwsEc2NetworkAclEntry& WithIcmpTypeCode(IcmpTypeCodeT&& value) { SetIcmpTypeCode(std::forward<IcmpTypeCodeT>(value)); return *this;}
78
80
83 inline const Aws::String& GetIpv6CidrBlock() const { return m_ipv6CidrBlock; }
84 inline bool Ipv6CidrBlockHasBeenSet() const { return m_ipv6CidrBlockHasBeenSet; }
85 template<typename Ipv6CidrBlockT = Aws::String>
86 void SetIpv6CidrBlock(Ipv6CidrBlockT&& value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock = std::forward<Ipv6CidrBlockT>(value); }
87 template<typename Ipv6CidrBlockT = Aws::String>
88 AwsEc2NetworkAclEntry& WithIpv6CidrBlock(Ipv6CidrBlockT&& value) { SetIpv6CidrBlock(std::forward<Ipv6CidrBlockT>(value)); return *this;}
90
92
95 inline const PortRangeFromTo& GetPortRange() const { return m_portRange; }
96 inline bool PortRangeHasBeenSet() const { return m_portRangeHasBeenSet; }
97 template<typename PortRangeT = PortRangeFromTo>
98 void SetPortRange(PortRangeT&& value) { m_portRangeHasBeenSet = true; m_portRange = std::forward<PortRangeT>(value); }
99 template<typename PortRangeT = PortRangeFromTo>
100 AwsEc2NetworkAclEntry& WithPortRange(PortRangeT&& value) { SetPortRange(std::forward<PortRangeT>(value)); return *this;}
102
104
108 inline const Aws::String& GetProtocol() const { return m_protocol; }
109 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
110 template<typename ProtocolT = Aws::String>
111 void SetProtocol(ProtocolT&& value) { m_protocolHasBeenSet = true; m_protocol = std::forward<ProtocolT>(value); }
112 template<typename ProtocolT = Aws::String>
113 AwsEc2NetworkAclEntry& WithProtocol(ProtocolT&& value) { SetProtocol(std::forward<ProtocolT>(value)); return *this;}
115
117
120 inline const Aws::String& GetRuleAction() const { return m_ruleAction; }
121 inline bool RuleActionHasBeenSet() const { return m_ruleActionHasBeenSet; }
122 template<typename RuleActionT = Aws::String>
123 void SetRuleAction(RuleActionT&& value) { m_ruleActionHasBeenSet = true; m_ruleAction = std::forward<RuleActionT>(value); }
124 template<typename RuleActionT = Aws::String>
125 AwsEc2NetworkAclEntry& WithRuleAction(RuleActionT&& value) { SetRuleAction(std::forward<RuleActionT>(value)); return *this;}
127
129
132 inline int GetRuleNumber() const { return m_ruleNumber; }
133 inline bool RuleNumberHasBeenSet() const { return m_ruleNumberHasBeenSet; }
134 inline void SetRuleNumber(int value) { m_ruleNumberHasBeenSet = true; m_ruleNumber = value; }
135 inline AwsEc2NetworkAclEntry& WithRuleNumber(int value) { SetRuleNumber(value); return *this;}
137 private:
138
139 Aws::String m_cidrBlock;
140 bool m_cidrBlockHasBeenSet = false;
141
142 bool m_egress{false};
143 bool m_egressHasBeenSet = false;
144
145 IcmpTypeCode m_icmpTypeCode;
146 bool m_icmpTypeCodeHasBeenSet = false;
147
148 Aws::String m_ipv6CidrBlock;
149 bool m_ipv6CidrBlockHasBeenSet = false;
150
151 PortRangeFromTo m_portRange;
152 bool m_portRangeHasBeenSet = false;
153
154 Aws::String m_protocol;
155 bool m_protocolHasBeenSet = false;
156
157 Aws::String m_ruleAction;
158 bool m_ruleActionHasBeenSet = false;
159
160 int m_ruleNumber{0};
161 bool m_ruleNumberHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace SecurityHub
166} // namespace Aws
void SetIcmpTypeCode(IcmpTypeCodeT &&value)
AWS_SECURITYHUB_API AwsEc2NetworkAclEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCidrBlock(CidrBlockT &&value)
bool CidrBlockHasBeenSet() const
bool PortRangeHasBeenSet() const
AwsEc2NetworkAclEntry & WithRuleNumber(int value)
bool EgressHasBeenSet() const
bool GetEgress() const
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
bool Ipv6CidrBlockHasBeenSet() const
const Aws::String & GetProtocol() const
const PortRangeFromTo & GetPortRange() const
bool RuleActionHasBeenSet() const
AwsEc2NetworkAclEntry & WithRuleAction(RuleActionT &&value)
AwsEc2NetworkAclEntry & WithCidrBlock(CidrBlockT &&value)
AwsEc2NetworkAclEntry & WithIcmpTypeCode(IcmpTypeCodeT &&value)
AWS_SECURITYHUB_API AwsEc2NetworkAclEntry(Aws::Utils::Json::JsonView jsonValue)
void SetEgress(bool value)
bool IcmpTypeCodeHasBeenSet() const
const IcmpTypeCode & GetIcmpTypeCode() const
AwsEc2NetworkAclEntry & WithIpv6CidrBlock(Ipv6CidrBlockT &&value)
bool ProtocolHasBeenSet() const
void SetPortRange(PortRangeT &&value)
AWS_SECURITYHUB_API AwsEc2NetworkAclEntry()=default
const Aws::String & GetCidrBlock() const
void SetIpv6CidrBlock(Ipv6CidrBlockT &&value)
void SetProtocol(ProtocolT &&value)
bool RuleNumberHasBeenSet() const
AwsEc2NetworkAclEntry & WithEgress(bool value)
void SetRuleNumber(int value)
const Aws::String & GetRuleAction() const
const Aws::String & GetIpv6CidrBlock() const
AwsEc2NetworkAclEntry & WithPortRange(PortRangeT &&value)
void SetRuleAction(RuleActionT &&value)
int GetRuleNumber() const
AwsEc2NetworkAclEntry & WithProtocol(ProtocolT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue