/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a stateful rule.See Also:
AWS
* API Reference
The ARN of the stateful rule group.
*/ inline const Aws::String& GetRuleGroupArn() const{ return m_ruleGroupArn; } /** *The ARN of the stateful rule group.
*/ inline bool RuleGroupArnHasBeenSet() const { return m_ruleGroupArnHasBeenSet; } /** *The ARN of the stateful rule group.
*/ inline void SetRuleGroupArn(const Aws::String& value) { m_ruleGroupArnHasBeenSet = true; m_ruleGroupArn = value; } /** *The ARN of the stateful rule group.
*/ inline void SetRuleGroupArn(Aws::String&& value) { m_ruleGroupArnHasBeenSet = true; m_ruleGroupArn = std::move(value); } /** *The ARN of the stateful rule group.
*/ inline void SetRuleGroupArn(const char* value) { m_ruleGroupArnHasBeenSet = true; m_ruleGroupArn.assign(value); } /** *The ARN of the stateful rule group.
*/ inline FirewallStatefulRule& WithRuleGroupArn(const Aws::String& value) { SetRuleGroupArn(value); return *this;} /** *The ARN of the stateful rule group.
*/ inline FirewallStatefulRule& WithRuleGroupArn(Aws::String&& value) { SetRuleGroupArn(std::move(value)); return *this;} /** *The ARN of the stateful rule group.
*/ inline FirewallStatefulRule& WithRuleGroupArn(const char* value) { SetRuleGroupArn(value); return *this;} /** *The source IP addresses, in CIDR notation.
*/ inline const Aws::VectorThe source IP addresses, in CIDR notation.
*/ inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; } /** *The source IP addresses, in CIDR notation.
*/ inline void SetSources(const Aws::VectorThe source IP addresses, in CIDR notation.
*/ inline void SetSources(Aws::VectorThe source IP addresses, in CIDR notation.
*/ inline FirewallStatefulRule& WithSources(const Aws::VectorThe source IP addresses, in CIDR notation.
*/ inline FirewallStatefulRule& WithSources(Aws::VectorThe source IP addresses, in CIDR notation.
*/ inline FirewallStatefulRule& AddSources(const Aws::String& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; } /** *The source IP addresses, in CIDR notation.
*/ inline FirewallStatefulRule& AddSources(Aws::String&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; } /** *The source IP addresses, in CIDR notation.
*/ inline FirewallStatefulRule& AddSources(const char* value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; } /** *The destination IP addresses, in CIDR notation.
*/ inline const Aws::VectorThe destination IP addresses, in CIDR notation.
*/ inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; } /** *The destination IP addresses, in CIDR notation.
*/ inline void SetDestinations(const Aws::VectorThe destination IP addresses, in CIDR notation.
*/ inline void SetDestinations(Aws::VectorThe destination IP addresses, in CIDR notation.
*/ inline FirewallStatefulRule& WithDestinations(const Aws::VectorThe destination IP addresses, in CIDR notation.
*/ inline FirewallStatefulRule& WithDestinations(Aws::VectorThe destination IP addresses, in CIDR notation.
*/ inline FirewallStatefulRule& AddDestinations(const Aws::String& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; } /** *The destination IP addresses, in CIDR notation.
*/ inline FirewallStatefulRule& AddDestinations(Aws::String&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(std::move(value)); return *this; } /** *The destination IP addresses, in CIDR notation.
*/ inline FirewallStatefulRule& AddDestinations(const char* value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; } /** *The source ports.
*/ inline const Aws::VectorThe source ports.
*/ inline bool SourcePortsHasBeenSet() const { return m_sourcePortsHasBeenSet; } /** *The source ports.
*/ inline void SetSourcePorts(const Aws::VectorThe source ports.
*/ inline void SetSourcePorts(Aws::VectorThe source ports.
*/ inline FirewallStatefulRule& WithSourcePorts(const Aws::VectorThe source ports.
*/ inline FirewallStatefulRule& WithSourcePorts(Aws::VectorThe source ports.
*/ inline FirewallStatefulRule& AddSourcePorts(const PortRange& value) { m_sourcePortsHasBeenSet = true; m_sourcePorts.push_back(value); return *this; } /** *The source ports.
*/ inline FirewallStatefulRule& AddSourcePorts(PortRange&& value) { m_sourcePortsHasBeenSet = true; m_sourcePorts.push_back(std::move(value)); return *this; } /** *The destination ports.
*/ inline const Aws::VectorThe destination ports.
*/ inline bool DestinationPortsHasBeenSet() const { return m_destinationPortsHasBeenSet; } /** *The destination ports.
*/ inline void SetDestinationPorts(const Aws::VectorThe destination ports.
*/ inline void SetDestinationPorts(Aws::VectorThe destination ports.
*/ inline FirewallStatefulRule& WithDestinationPorts(const Aws::VectorThe destination ports.
*/ inline FirewallStatefulRule& WithDestinationPorts(Aws::VectorThe destination ports.
*/ inline FirewallStatefulRule& AddDestinationPorts(const PortRange& value) { m_destinationPortsHasBeenSet = true; m_destinationPorts.push_back(value); return *this; } /** *The destination ports.
*/ inline FirewallStatefulRule& AddDestinationPorts(PortRange&& value) { m_destinationPortsHasBeenSet = true; m_destinationPorts.push_back(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 FirewallStatefulRule& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;} /** *The protocol.
*/ inline FirewallStatefulRule& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;} /** *The protocol.
*/ inline FirewallStatefulRule& WithProtocol(const char* value) { SetProtocol(value); return *this;} /** *The rule action. The possible values are pass
,
* drop
, and alert
.
The rule action. The possible values are pass
,
* drop
, and alert
.
The rule action. The possible values are pass
,
* drop
, and alert
.
The rule action. The possible values are pass
,
* drop
, and alert
.
The rule action. The possible values are pass
,
* drop
, and alert
.
The rule action. The possible values are pass
,
* drop
, and alert
.
The rule action. The possible values are pass
,
* drop
, and alert
.
The rule action. The possible values are pass
,
* drop
, and alert
.
The direction. The possible values are FORWARD
and
* ANY
.
The direction. The possible values are FORWARD
and
* ANY
.
The direction. The possible values are FORWARD
and
* ANY
.
The direction. The possible values are FORWARD
and
* ANY
.
The direction. The possible values are FORWARD
and
* ANY
.
The direction. The possible values are FORWARD
and
* ANY
.
The direction. The possible values are FORWARD
and
* ANY
.
The direction. The possible values are FORWARD
and
* ANY
.