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>
55 inline void SetRuleNumber(
int value) { m_ruleNumberHasBeenSet =
true; m_ruleNumber = value; }
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>
87 template<
typename PortRangeT = PortRange>
88 void SetPortRange(PortRangeT&& value) { m_portRangeHasBeenSet =
true; m_portRange = std::forward<PortRangeT>(value); }
89 template<
typename PortRangeT = PortRange>
99 template<
typename IcmpTypeCodeT = IcmpTypeCode>
100 void SetIcmpTypeCode(IcmpTypeCodeT&& value) { m_icmpTypeCodeHasBeenSet =
true; m_icmpTypeCode = std::forward<IcmpTypeCodeT>(value); }
101 template<
typename IcmpTypeCodeT = IcmpTypeCode>
114 template<
typename C
idrBlockT = Aws::String>
115 void SetCidrBlock(CidrBlockT&& value) { m_cidrBlockHasBeenSet =
true; m_cidrBlock = std::forward<CidrBlockT>(value); }
116 template<
typename C
idrBlockT = Aws::String>
122 bool m_ruleNumberHasBeenSet =
false;
125 bool m_protocolHasBeenSet =
false;
128 bool m_ruleActionHasBeenSet =
false;
130 PortRange m_portRange;
131 bool m_portRangeHasBeenSet =
false;
133 IcmpTypeCode m_icmpTypeCode;
134 bool m_icmpTypeCodeHasBeenSet =
false;
137 bool m_cidrBlockHasBeenSet =
false;
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