/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a stateless rule.See Also:
AWS
* API Reference
The ARN of the stateless rule group.
*/ inline const Aws::String& GetRuleGroupArn() const{ return m_ruleGroupArn; } /** *The ARN of the stateless rule group.
*/ inline bool RuleGroupArnHasBeenSet() const { return m_ruleGroupArnHasBeenSet; } /** *The ARN of the stateless rule group.
*/ inline void SetRuleGroupArn(const Aws::String& value) { m_ruleGroupArnHasBeenSet = true; m_ruleGroupArn = value; } /** *The ARN of the stateless rule group.
*/ inline void SetRuleGroupArn(Aws::String&& value) { m_ruleGroupArnHasBeenSet = true; m_ruleGroupArn = std::move(value); } /** *The ARN of the stateless rule group.
*/ inline void SetRuleGroupArn(const char* value) { m_ruleGroupArnHasBeenSet = true; m_ruleGroupArn.assign(value); } /** *The ARN of the stateless rule group.
*/ inline FirewallStatelessRule& WithRuleGroupArn(const Aws::String& value) { SetRuleGroupArn(value); return *this;} /** *The ARN of the stateless rule group.
*/ inline FirewallStatelessRule& WithRuleGroupArn(Aws::String&& value) { SetRuleGroupArn(std::move(value)); return *this;} /** *The ARN of the stateless rule group.
*/ inline FirewallStatelessRule& 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 FirewallStatelessRule& WithSources(const Aws::VectorThe source IP addresses, in CIDR notation.
*/ inline FirewallStatelessRule& WithSources(Aws::VectorThe source IP addresses, in CIDR notation.
*/ inline FirewallStatelessRule& AddSources(const Aws::String& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; } /** *The source IP addresses, in CIDR notation.
*/ inline FirewallStatelessRule& AddSources(Aws::String&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; } /** *The source IP addresses, in CIDR notation.
*/ inline FirewallStatelessRule& 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 FirewallStatelessRule& WithDestinations(const Aws::VectorThe destination IP addresses, in CIDR notation.
*/ inline FirewallStatelessRule& WithDestinations(Aws::VectorThe destination IP addresses, in CIDR notation.
*/ inline FirewallStatelessRule& AddDestinations(const Aws::String& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; } /** *The destination IP addresses, in CIDR notation.
*/ inline FirewallStatelessRule& AddDestinations(Aws::String&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(std::move(value)); return *this; } /** *The destination IP addresses, in CIDR notation.
*/ inline FirewallStatelessRule& 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 FirewallStatelessRule& WithSourcePorts(const Aws::VectorThe source ports.
*/ inline FirewallStatelessRule& WithSourcePorts(Aws::VectorThe source ports.
*/ inline FirewallStatelessRule& AddSourcePorts(const PortRange& value) { m_sourcePortsHasBeenSet = true; m_sourcePorts.push_back(value); return *this; } /** *The source ports.
*/ inline FirewallStatelessRule& 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 FirewallStatelessRule& WithDestinationPorts(const Aws::VectorThe destination ports.
*/ inline FirewallStatelessRule& WithDestinationPorts(Aws::VectorThe destination ports.
*/ inline FirewallStatelessRule& AddDestinationPorts(const PortRange& value) { m_destinationPortsHasBeenSet = true; m_destinationPorts.push_back(value); return *this; } /** *The destination ports.
*/ inline FirewallStatelessRule& AddDestinationPorts(PortRange&& value) { m_destinationPortsHasBeenSet = true; m_destinationPorts.push_back(std::move(value)); return *this; } /** *The protocols.
*/ inline const Aws::VectorThe protocols.
*/ inline bool ProtocolsHasBeenSet() const { return m_protocolsHasBeenSet; } /** *The protocols.
*/ inline void SetProtocols(const Aws::VectorThe protocols.
*/ inline void SetProtocols(Aws::VectorThe protocols.
*/ inline FirewallStatelessRule& WithProtocols(const Aws::VectorThe protocols.
*/ inline FirewallStatelessRule& WithProtocols(Aws::VectorThe protocols.
*/ inline FirewallStatelessRule& AddProtocols(int value) { m_protocolsHasBeenSet = true; m_protocols.push_back(value); return *this; } /** *The rule action. The possible values are pass
,
* drop
, and forward_to_site
.
The rule action. The possible values are pass
,
* drop
, and forward_to_site
.
The rule action. The possible values are pass
,
* drop
, and forward_to_site
.
The rule action. The possible values are pass
,
* drop
, and forward_to_site
.
The rule action. The possible values are pass
,
* drop
, and forward_to_site
.
The rule action. The possible values are pass
,
* drop
, and forward_to_site
.
The rule action. The possible values are pass
,
* drop
, and forward_to_site
.
The rule action. The possible values are pass
,
* drop
, and forward_to_site
.
The rule priority.
*/ inline int GetPriority() const{ return m_priority; } /** *The rule priority.
*/ inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; } /** *The rule priority.
*/ inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; } /** *The rule priority.
*/ inline FirewallStatelessRule& WithPriority(int value) { SetPriority(value); return *this;} private: Aws::String m_ruleGroupArn; bool m_ruleGroupArnHasBeenSet = false; Aws::Vector