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/fms/FMS_EXPORTS.h>
8#include <aws/fms/model/NetworkAclIcmpTypeCode.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/fms/model/NetworkAclPortRange.h>
11#include <aws/fms/model/NetworkAclRuleAction.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 FMS
25{
26namespace Model
27{
28
45 {
46 public:
47 AWS_FMS_API NetworkAclEntry();
51
52
54
57 inline const NetworkAclIcmpTypeCode& GetIcmpTypeCode() const{ return m_icmpTypeCode; }
58 inline bool IcmpTypeCodeHasBeenSet() const { return m_icmpTypeCodeHasBeenSet; }
59 inline void SetIcmpTypeCode(const NetworkAclIcmpTypeCode& value) { m_icmpTypeCodeHasBeenSet = true; m_icmpTypeCode = value; }
60 inline void SetIcmpTypeCode(NetworkAclIcmpTypeCode&& value) { m_icmpTypeCodeHasBeenSet = true; m_icmpTypeCode = std::move(value); }
61 inline NetworkAclEntry& WithIcmpTypeCode(const NetworkAclIcmpTypeCode& value) { SetIcmpTypeCode(value); return *this;}
62 inline NetworkAclEntry& WithIcmpTypeCode(NetworkAclIcmpTypeCode&& value) { SetIcmpTypeCode(std::move(value)); return *this;}
64
66
69 inline const Aws::String& GetProtocol() const{ return m_protocol; }
70 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
71 inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; }
72 inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
73 inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); }
74 inline NetworkAclEntry& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;}
75 inline NetworkAclEntry& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;}
76 inline NetworkAclEntry& WithProtocol(const char* value) { SetProtocol(value); return *this;}
78
80
83 inline const NetworkAclPortRange& GetPortRange() const{ return m_portRange; }
84 inline bool PortRangeHasBeenSet() const { return m_portRangeHasBeenSet; }
85 inline void SetPortRange(const NetworkAclPortRange& value) { m_portRangeHasBeenSet = true; m_portRange = value; }
86 inline void SetPortRange(NetworkAclPortRange&& value) { m_portRangeHasBeenSet = true; m_portRange = std::move(value); }
87 inline NetworkAclEntry& WithPortRange(const NetworkAclPortRange& value) { SetPortRange(value); return *this;}
88 inline NetworkAclEntry& WithPortRange(NetworkAclPortRange&& value) { SetPortRange(std::move(value)); return *this;}
90
92
95 inline const Aws::String& GetCidrBlock() const{ return m_cidrBlock; }
96 inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; }
97 inline void SetCidrBlock(const Aws::String& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = value; }
98 inline void SetCidrBlock(Aws::String&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = std::move(value); }
99 inline void SetCidrBlock(const char* value) { m_cidrBlockHasBeenSet = true; m_cidrBlock.assign(value); }
100 inline NetworkAclEntry& WithCidrBlock(const Aws::String& value) { SetCidrBlock(value); return *this;}
101 inline NetworkAclEntry& WithCidrBlock(Aws::String&& value) { SetCidrBlock(std::move(value)); return *this;}
102 inline NetworkAclEntry& WithCidrBlock(const char* value) { SetCidrBlock(value); return *this;}
104
106
109 inline const Aws::String& GetIpv6CidrBlock() const{ return m_ipv6CidrBlock; }
110 inline bool Ipv6CidrBlockHasBeenSet() const { return m_ipv6CidrBlockHasBeenSet; }
111 inline void SetIpv6CidrBlock(const Aws::String& value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock = value; }
112 inline void SetIpv6CidrBlock(Aws::String&& value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock = std::move(value); }
113 inline void SetIpv6CidrBlock(const char* value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock.assign(value); }
114 inline NetworkAclEntry& WithIpv6CidrBlock(const Aws::String& value) { SetIpv6CidrBlock(value); return *this;}
115 inline NetworkAclEntry& WithIpv6CidrBlock(Aws::String&& value) { SetIpv6CidrBlock(std::move(value)); return *this;}
116 inline NetworkAclEntry& WithIpv6CidrBlock(const char* value) { SetIpv6CidrBlock(value); return *this;}
118
120
123 inline const NetworkAclRuleAction& GetRuleAction() const{ return m_ruleAction; }
124 inline bool RuleActionHasBeenSet() const { return m_ruleActionHasBeenSet; }
125 inline void SetRuleAction(const NetworkAclRuleAction& value) { m_ruleActionHasBeenSet = true; m_ruleAction = value; }
126 inline void SetRuleAction(NetworkAclRuleAction&& value) { m_ruleActionHasBeenSet = true; m_ruleAction = std::move(value); }
127 inline NetworkAclEntry& WithRuleAction(const NetworkAclRuleAction& value) { SetRuleAction(value); return *this;}
128 inline NetworkAclEntry& WithRuleAction(NetworkAclRuleAction&& value) { SetRuleAction(std::move(value)); return *this;}
130
132
137 inline bool GetEgress() const{ return m_egress; }
138 inline bool EgressHasBeenSet() const { return m_egressHasBeenSet; }
139 inline void SetEgress(bool value) { m_egressHasBeenSet = true; m_egress = value; }
140 inline NetworkAclEntry& WithEgress(bool value) { SetEgress(value); return *this;}
142 private:
143
144 NetworkAclIcmpTypeCode m_icmpTypeCode;
145 bool m_icmpTypeCodeHasBeenSet = false;
146
147 Aws::String m_protocol;
148 bool m_protocolHasBeenSet = false;
149
150 NetworkAclPortRange m_portRange;
151 bool m_portRangeHasBeenSet = false;
152
153 Aws::String m_cidrBlock;
154 bool m_cidrBlockHasBeenSet = false;
155
156 Aws::String m_ipv6CidrBlock;
157 bool m_ipv6CidrBlockHasBeenSet = false;
158
159 NetworkAclRuleAction m_ruleAction;
160 bool m_ruleActionHasBeenSet = false;
161
162 bool m_egress;
163 bool m_egressHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace FMS
168} // namespace Aws
NetworkAclEntry & WithIpv6CidrBlock(const Aws::String &value)
bool EgressHasBeenSet() const
NetworkAclEntry & WithIpv6CidrBlock(const char *value)
NetworkAclEntry & WithEgress(bool value)
void SetPortRange(const NetworkAclPortRange &value)
bool GetEgress() const
NetworkAclEntry & WithCidrBlock(const char *value)
NetworkAclEntry & WithProtocol(const Aws::String &value)
void SetPortRange(NetworkAclPortRange &&value)
void SetRuleAction(const NetworkAclRuleAction &value)
AWS_FMS_API NetworkAclEntry()
const Aws::String & GetProtocol() const
const Aws::String & GetIpv6CidrBlock() const
NetworkAclEntry & WithIpv6CidrBlock(Aws::String &&value)
void SetProtocol(const char *value)
NetworkAclEntry & WithProtocol(const char *value)
bool RuleActionHasBeenSet() const
void SetRuleAction(NetworkAclRuleAction &&value)
const NetworkAclPortRange & GetPortRange() const
const NetworkAclIcmpTypeCode & GetIcmpTypeCode() const
NetworkAclEntry & WithCidrBlock(Aws::String &&value)
NetworkAclEntry & WithIcmpTypeCode(NetworkAclIcmpTypeCode &&value)
void SetIpv6CidrBlock(const char *value)
bool Ipv6CidrBlockHasBeenSet() const
void SetEgress(bool value)
void SetProtocol(const Aws::String &value)
NetworkAclEntry & WithProtocol(Aws::String &&value)
const NetworkAclRuleAction & GetRuleAction() const
NetworkAclEntry & WithPortRange(NetworkAclPortRange &&value)
void SetCidrBlock(Aws::String &&value)
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
NetworkAclEntry & WithCidrBlock(const Aws::String &value)
void SetIpv6CidrBlock(const Aws::String &value)
NetworkAclEntry & WithPortRange(const NetworkAclPortRange &value)
void SetIcmpTypeCode(NetworkAclIcmpTypeCode &&value)
void SetIpv6CidrBlock(Aws::String &&value)
AWS_FMS_API NetworkAclEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_FMS_API NetworkAclEntry(Aws::Utils::Json::JsonView jsonValue)
void SetProtocol(Aws::String &&value)
void SetCidrBlock(const Aws::String &value)
void SetCidrBlock(const char *value)
NetworkAclEntry & WithIcmpTypeCode(const NetworkAclIcmpTypeCode &value)
NetworkAclEntry & WithRuleAction(const NetworkAclRuleAction &value)
void SetIcmpTypeCode(const NetworkAclIcmpTypeCode &value)
bool IcmpTypeCodeHasBeenSet() const
bool CidrBlockHasBeenSet() const
bool ProtocolHasBeenSet() const
bool PortRangeHasBeenSet() const
NetworkAclEntry & WithRuleAction(NetworkAclRuleAction &&value)
const Aws::String & GetCidrBlock() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue