/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a network access control (ACL) rule.See Also:
AWS
* API Reference
The IPv4 address range, in CIDR notation.
*/ inline const Aws::String& GetCidr() const{ return m_cidr; } /** *The IPv4 address range, in CIDR notation.
*/ inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; } /** *The IPv4 address range, in CIDR notation.
*/ inline void SetCidr(const Aws::String& value) { m_cidrHasBeenSet = true; m_cidr = value; } /** *The IPv4 address range, in CIDR notation.
*/ inline void SetCidr(Aws::String&& value) { m_cidrHasBeenSet = true; m_cidr = std::move(value); } /** *The IPv4 address range, in CIDR notation.
*/ inline void SetCidr(const char* value) { m_cidrHasBeenSet = true; m_cidr.assign(value); } /** *The IPv4 address range, in CIDR notation.
*/ inline AnalysisAclRule& WithCidr(const Aws::String& value) { SetCidr(value); return *this;} /** *The IPv4 address range, in CIDR notation.
*/ inline AnalysisAclRule& WithCidr(Aws::String&& value) { SetCidr(std::move(value)); return *this;} /** *The IPv4 address range, in CIDR notation.
*/ inline AnalysisAclRule& WithCidr(const char* value) { SetCidr(value); return *this;} /** *Indicates whether the rule is an outbound rule.
*/ inline bool GetEgress() const{ return m_egress; } /** *Indicates whether the rule is an outbound rule.
*/ inline bool EgressHasBeenSet() const { return m_egressHasBeenSet; } /** *Indicates whether the rule is an outbound rule.
*/ inline void SetEgress(bool value) { m_egressHasBeenSet = true; m_egress = value; } /** *Indicates whether the rule is an outbound rule.
*/ inline AnalysisAclRule& WithEgress(bool value) { SetEgress(value); return *this;} /** *The range of ports.
*/ inline const PortRange& GetPortRange() const{ return m_portRange; } /** *The range of ports.
*/ inline bool PortRangeHasBeenSet() const { return m_portRangeHasBeenSet; } /** *The range of ports.
*/ inline void SetPortRange(const PortRange& value) { m_portRangeHasBeenSet = true; m_portRange = value; } /** *The range of ports.
*/ inline void SetPortRange(PortRange&& value) { m_portRangeHasBeenSet = true; m_portRange = std::move(value); } /** *The range of ports.
*/ inline AnalysisAclRule& WithPortRange(const PortRange& value) { SetPortRange(value); return *this;} /** *The range of ports.
*/ inline AnalysisAclRule& WithPortRange(PortRange&& value) { SetPortRange(std::move(value)); return *this;} /** *The protocol.
*/ inline const Aws::String& GetProtocol() const{ return m_protocol; } /** *The protocol.
*/ inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; } /** *The protocol.
*/ inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; } /** *The protocol.
*/ inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); } /** *The protocol.
*/ inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); } /** *The protocol.
*/ inline AnalysisAclRule& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;} /** *The protocol.
*/ inline AnalysisAclRule& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;} /** *The protocol.
*/ inline AnalysisAclRule& WithProtocol(const char* value) { SetProtocol(value); return *this;} /** *Indicates whether to allow or deny traffic that matches the rule.
*/ inline const Aws::String& GetRuleAction() const{ return m_ruleAction; } /** *Indicates whether to allow or deny traffic that matches the rule.
*/ inline bool RuleActionHasBeenSet() const { return m_ruleActionHasBeenSet; } /** *Indicates whether to allow or deny traffic that matches the rule.
*/ inline void SetRuleAction(const Aws::String& value) { m_ruleActionHasBeenSet = true; m_ruleAction = value; } /** *Indicates whether to allow or deny traffic that matches the rule.
*/ inline void SetRuleAction(Aws::String&& value) { m_ruleActionHasBeenSet = true; m_ruleAction = std::move(value); } /** *Indicates whether to allow or deny traffic that matches the rule.
*/ inline void SetRuleAction(const char* value) { m_ruleActionHasBeenSet = true; m_ruleAction.assign(value); } /** *Indicates whether to allow or deny traffic that matches the rule.
*/ inline AnalysisAclRule& WithRuleAction(const Aws::String& value) { SetRuleAction(value); return *this;} /** *Indicates whether to allow or deny traffic that matches the rule.
*/ inline AnalysisAclRule& WithRuleAction(Aws::String&& value) { SetRuleAction(std::move(value)); return *this;} /** *Indicates whether to allow or deny traffic that matches the rule.
*/ inline AnalysisAclRule& WithRuleAction(const char* value) { SetRuleAction(value); return *this;} /** *The rule number.
*/ inline int GetRuleNumber() const{ return m_ruleNumber; } /** *The rule number.
*/ inline bool RuleNumberHasBeenSet() const { return m_ruleNumberHasBeenSet; } /** *The rule number.
*/ inline void SetRuleNumber(int value) { m_ruleNumberHasBeenSet = true; m_ruleNumber = value; } /** *The rule number.
*/ inline AnalysisAclRule& WithRuleNumber(int value) { SetRuleNumber(value); return *this;} private: Aws::String m_cidr; bool m_cidrHasBeenSet = false; bool m_egress; bool m_egressHasBeenSet = false; PortRange m_portRange; bool m_portRangeHasBeenSet = false; Aws::String m_protocol; bool m_protocolHasBeenSet = false; Aws::String m_ruleAction; bool m_ruleActionHasBeenSet = false; int m_ruleNumber; bool m_ruleNumberHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws