AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCidrBlock(const Aws::String& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = value; }
50 inline void SetCidrBlock(Aws::String&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = std::move(value); }
51 inline void SetCidrBlock(const char* value) { m_cidrBlockHasBeenSet = true; m_cidrBlock.assign(value); }
52 inline AwsEc2NetworkAclEntry& WithCidrBlock(const Aws::String& value) { SetCidrBlock(value); return *this;}
53 inline AwsEc2NetworkAclEntry& WithCidrBlock(Aws::String&& value) { SetCidrBlock(std::move(value)); return *this;}
54 inline AwsEc2NetworkAclEntry& WithCidrBlock(const char* value) { SetCidrBlock(value); return *this;}
56
58
62 inline bool GetEgress() const{ return m_egress; }
63 inline bool EgressHasBeenSet() const { return m_egressHasBeenSet; }
64 inline void SetEgress(bool value) { m_egressHasBeenSet = true; m_egress = value; }
65 inline AwsEc2NetworkAclEntry& WithEgress(bool value) { SetEgress(value); return *this;}
67
69
73 inline const IcmpTypeCode& GetIcmpTypeCode() const{ return m_icmpTypeCode; }
74 inline bool IcmpTypeCodeHasBeenSet() const { return m_icmpTypeCodeHasBeenSet; }
75 inline void SetIcmpTypeCode(const IcmpTypeCode& value) { m_icmpTypeCodeHasBeenSet = true; m_icmpTypeCode = value; }
76 inline void SetIcmpTypeCode(IcmpTypeCode&& value) { m_icmpTypeCodeHasBeenSet = true; m_icmpTypeCode = std::move(value); }
77 inline AwsEc2NetworkAclEntry& WithIcmpTypeCode(const IcmpTypeCode& value) { SetIcmpTypeCode(value); return *this;}
78 inline AwsEc2NetworkAclEntry& WithIcmpTypeCode(IcmpTypeCode&& value) { SetIcmpTypeCode(std::move(value)); return *this;}
80
82
85 inline const Aws::String& GetIpv6CidrBlock() const{ return m_ipv6CidrBlock; }
86 inline bool Ipv6CidrBlockHasBeenSet() const { return m_ipv6CidrBlockHasBeenSet; }
87 inline void SetIpv6CidrBlock(const Aws::String& value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock = value; }
88 inline void SetIpv6CidrBlock(Aws::String&& value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock = std::move(value); }
89 inline void SetIpv6CidrBlock(const char* value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock.assign(value); }
90 inline AwsEc2NetworkAclEntry& WithIpv6CidrBlock(const Aws::String& value) { SetIpv6CidrBlock(value); return *this;}
91 inline AwsEc2NetworkAclEntry& WithIpv6CidrBlock(Aws::String&& value) { SetIpv6CidrBlock(std::move(value)); return *this;}
92 inline AwsEc2NetworkAclEntry& WithIpv6CidrBlock(const char* value) { SetIpv6CidrBlock(value); return *this;}
94
96
99 inline const PortRangeFromTo& GetPortRange() const{ return m_portRange; }
100 inline bool PortRangeHasBeenSet() const { return m_portRangeHasBeenSet; }
101 inline void SetPortRange(const PortRangeFromTo& value) { m_portRangeHasBeenSet = true; m_portRange = value; }
102 inline void SetPortRange(PortRangeFromTo&& value) { m_portRangeHasBeenSet = true; m_portRange = std::move(value); }
103 inline AwsEc2NetworkAclEntry& WithPortRange(const PortRangeFromTo& value) { SetPortRange(value); return *this;}
104 inline AwsEc2NetworkAclEntry& WithPortRange(PortRangeFromTo&& value) { SetPortRange(std::move(value)); return *this;}
106
108
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 AwsEc2NetworkAclEntry& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;}
118 inline AwsEc2NetworkAclEntry& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;}
119 inline AwsEc2NetworkAclEntry& WithProtocol(const char* value) { SetProtocol(value); return *this;}
121
123
126 inline const Aws::String& GetRuleAction() const{ return m_ruleAction; }
127 inline bool RuleActionHasBeenSet() const { return m_ruleActionHasBeenSet; }
128 inline void SetRuleAction(const Aws::String& value) { m_ruleActionHasBeenSet = true; m_ruleAction = value; }
129 inline void SetRuleAction(Aws::String&& value) { m_ruleActionHasBeenSet = true; m_ruleAction = std::move(value); }
130 inline void SetRuleAction(const char* value) { m_ruleActionHasBeenSet = true; m_ruleAction.assign(value); }
131 inline AwsEc2NetworkAclEntry& WithRuleAction(const Aws::String& value) { SetRuleAction(value); return *this;}
132 inline AwsEc2NetworkAclEntry& WithRuleAction(Aws::String&& value) { SetRuleAction(std::move(value)); return *this;}
133 inline AwsEc2NetworkAclEntry& WithRuleAction(const char* value) { SetRuleAction(value); return *this;}
135
137
140 inline int GetRuleNumber() const{ return m_ruleNumber; }
141 inline bool RuleNumberHasBeenSet() const { return m_ruleNumberHasBeenSet; }
142 inline void SetRuleNumber(int value) { m_ruleNumberHasBeenSet = true; m_ruleNumber = value; }
143 inline AwsEc2NetworkAclEntry& WithRuleNumber(int value) { SetRuleNumber(value); return *this;}
145 private:
146
147 Aws::String m_cidrBlock;
148 bool m_cidrBlockHasBeenSet = false;
149
150 bool m_egress;
151 bool m_egressHasBeenSet = false;
152
153 IcmpTypeCode m_icmpTypeCode;
154 bool m_icmpTypeCodeHasBeenSet = false;
155
156 Aws::String m_ipv6CidrBlock;
157 bool m_ipv6CidrBlockHasBeenSet = false;
158
159 PortRangeFromTo m_portRange;
160 bool m_portRangeHasBeenSet = false;
161
162 Aws::String m_protocol;
163 bool m_protocolHasBeenSet = false;
164
165 Aws::String m_ruleAction;
166 bool m_ruleActionHasBeenSet = false;
167
168 int m_ruleNumber;
169 bool m_ruleNumberHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace SecurityHub
174} // namespace Aws
AwsEc2NetworkAclEntry & WithIpv6CidrBlock(Aws::String &&value)
void SetIpv6CidrBlock(Aws::String &&value)
AwsEc2NetworkAclEntry & WithCidrBlock(const char *value)
AwsEc2NetworkAclEntry & WithRuleAction(const char *value)
AWS_SECURITYHUB_API AwsEc2NetworkAclEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsEc2NetworkAclEntry & WithProtocol(const Aws::String &value)
AwsEc2NetworkAclEntry & WithRuleAction(const Aws::String &value)
void SetPortRange(const PortRangeFromTo &value)
void SetProtocol(Aws::String &&value)
void SetProtocol(const char *value)
AwsEc2NetworkAclEntry & WithProtocol(Aws::String &&value)
bool CidrBlockHasBeenSet() const
bool PortRangeHasBeenSet() const
void SetCidrBlock(Aws::String &&value)
AwsEc2NetworkAclEntry & WithCidrBlock(const Aws::String &value)
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
void SetProtocol(const Aws::String &value)
AwsEc2NetworkAclEntry & WithCidrBlock(Aws::String &&value)
AWS_SECURITYHUB_API AwsEc2NetworkAclEntry(Aws::Utils::Json::JsonView jsonValue)
AwsEc2NetworkAclEntry & WithRuleAction(Aws::String &&value)
void SetRuleAction(const Aws::String &value)
void SetEgress(bool value)
void SetIpv6CidrBlock(const Aws::String &value)
bool IcmpTypeCodeHasBeenSet() const
const IcmpTypeCode & GetIcmpTypeCode() const
bool ProtocolHasBeenSet() const
AwsEc2NetworkAclEntry & WithIcmpTypeCode(IcmpTypeCode &&value)
AwsEc2NetworkAclEntry & WithPortRange(const PortRangeFromTo &value)
void SetPortRange(PortRangeFromTo &&value)
void SetCidrBlock(const Aws::String &value)
const Aws::String & GetCidrBlock() const
AwsEc2NetworkAclEntry & WithIpv6CidrBlock(const char *value)
void SetIpv6CidrBlock(const char *value)
bool RuleNumberHasBeenSet() const
void SetCidrBlock(const char *value)
AwsEc2NetworkAclEntry & WithEgress(bool value)
void SetIcmpTypeCode(IcmpTypeCode &&value)
void SetRuleNumber(int value)
const Aws::String & GetRuleAction() const
AwsEc2NetworkAclEntry & WithIpv6CidrBlock(const Aws::String &value)
AwsEc2NetworkAclEntry & WithProtocol(const char *value)
void SetIcmpTypeCode(const IcmpTypeCode &value)
AwsEc2NetworkAclEntry & WithPortRange(PortRangeFromTo &&value)
AwsEc2NetworkAclEntry & WithIcmpTypeCode(const IcmpTypeCode &value)
void SetRuleAction(Aws::String &&value)
const Aws::String & GetIpv6CidrBlock() const
void SetRuleAction(const char *value)
int GetRuleNumber() const
AWS_SECURITYHUB_API AwsEc2NetworkAclEntry()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue