/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

Criteria for the stateless rule.

See Also:

AWS * API Reference

*/ class RuleGroupSourceStatelessRuleMatchAttributes { public: AWS_SECURITYHUB_API RuleGroupSourceStatelessRuleMatchAttributes(); AWS_SECURITYHUB_API RuleGroupSourceStatelessRuleMatchAttributes(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API RuleGroupSourceStatelessRuleMatchAttributes& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A list of port ranges to specify the destination ports to inspect for.

*/ inline const Aws::Vector& GetDestinationPorts() const{ return m_destinationPorts; } /** *

A list of port ranges to specify the destination ports to inspect for.

*/ inline bool DestinationPortsHasBeenSet() const { return m_destinationPortsHasBeenSet; } /** *

A list of port ranges to specify the destination ports to inspect for.

*/ inline void SetDestinationPorts(const Aws::Vector& value) { m_destinationPortsHasBeenSet = true; m_destinationPorts = value; } /** *

A list of port ranges to specify the destination ports to inspect for.

*/ inline void SetDestinationPorts(Aws::Vector&& value) { m_destinationPortsHasBeenSet = true; m_destinationPorts = std::move(value); } /** *

A list of port ranges to specify the destination ports to inspect for.

*/ inline RuleGroupSourceStatelessRuleMatchAttributes& WithDestinationPorts(const Aws::Vector& value) { SetDestinationPorts(value); return *this;} /** *

A list of port ranges to specify the destination ports to inspect for.

*/ inline RuleGroupSourceStatelessRuleMatchAttributes& WithDestinationPorts(Aws::Vector&& value) { SetDestinationPorts(std::move(value)); return *this;} /** *

A list of port ranges to specify the destination ports to inspect for.

*/ inline RuleGroupSourceStatelessRuleMatchAttributes& AddDestinationPorts(const RuleGroupSourceStatelessRuleMatchAttributesDestinationPorts& value) { m_destinationPortsHasBeenSet = true; m_destinationPorts.push_back(value); return *this; } /** *

A list of port ranges to specify the destination ports to inspect for.

*/ inline RuleGroupSourceStatelessRuleMatchAttributes& AddDestinationPorts(RuleGroupSourceStatelessRuleMatchAttributesDestinationPorts&& value) { m_destinationPortsHasBeenSet = true; m_destinationPorts.push_back(std::move(value)); return *this; } /** *

The destination IP addresses and address ranges to inspect for, in CIDR * notation.

*/ inline const Aws::Vector& GetDestinations() const{ return m_destinations; } /** *

The destination IP addresses and address ranges to inspect for, in CIDR * notation.

*/ inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; } /** *

The destination IP addresses and address ranges to inspect for, in CIDR * notation.

*/ inline void SetDestinations(const Aws::Vector& value) { m_destinationsHasBeenSet = true; m_destinations = value; } /** *

The destination IP addresses and address ranges to inspect for, in CIDR * notation.

*/ inline void SetDestinations(Aws::Vector&& value) { m_destinationsHasBeenSet = true; m_destinations = std::move(value); } /** *

The destination IP addresses and address ranges to inspect for, in CIDR * notation.

*/ inline RuleGroupSourceStatelessRuleMatchAttributes& WithDestinations(const Aws::Vector& value) { SetDestinations(value); return *this;} /** *

The destination IP addresses and address ranges to inspect for, in CIDR * notation.

*/ inline RuleGroupSourceStatelessRuleMatchAttributes& WithDestinations(Aws::Vector&& value) { SetDestinations(std::move(value)); return *this;} /** *

The destination IP addresses and address ranges to inspect for, in CIDR * notation.

*/ inline RuleGroupSourceStatelessRuleMatchAttributes& AddDestinations(const RuleGroupSourceStatelessRuleMatchAttributesDestinations& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; } /** *

The destination IP addresses and address ranges to inspect for, in CIDR * notation.

*/ inline RuleGroupSourceStatelessRuleMatchAttributes& AddDestinations(RuleGroupSourceStatelessRuleMatchAttributesDestinations&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(std::move(value)); return *this; } /** *

The protocols to inspect for.

*/ inline const Aws::Vector& GetProtocols() const{ return m_protocols; } /** *

The protocols to inspect for.

*/ inline bool ProtocolsHasBeenSet() const { return m_protocolsHasBeenSet; } /** *

The protocols to inspect for.

*/ inline void SetProtocols(const Aws::Vector& value) { m_protocolsHasBeenSet = true; m_protocols = value; } /** *

The protocols to inspect for.

*/ inline void SetProtocols(Aws::Vector&& value) { m_protocolsHasBeenSet = true; m_protocols = std::move(value); } /** *

The protocols to inspect for.

*/ inline RuleGroupSourceStatelessRuleMatchAttributes& WithProtocols(const Aws::Vector& value) { SetProtocols(value); return *this;} /** *

The protocols to inspect for.

*/ inline RuleGroupSourceStatelessRuleMatchAttributes& WithProtocols(Aws::Vector&& value) { SetProtocols(std::move(value)); return *this;} /** *

The protocols to inspect for.

*/ inline RuleGroupSourceStatelessRuleMatchAttributes& AddProtocols(int value) { m_protocolsHasBeenSet = true; m_protocols.push_back(value); return *this; } /** *

A list of port ranges to specify the source ports to inspect for.

*/ inline const Aws::Vector& GetSourcePorts() const{ return m_sourcePorts; } /** *

A list of port ranges to specify the source ports to inspect for.

*/ inline bool SourcePortsHasBeenSet() const { return m_sourcePortsHasBeenSet; } /** *

A list of port ranges to specify the source ports to inspect for.

*/ inline void SetSourcePorts(const Aws::Vector& value) { m_sourcePortsHasBeenSet = true; m_sourcePorts = value; } /** *

A list of port ranges to specify the source ports to inspect for.

*/ inline void SetSourcePorts(Aws::Vector&& value) { m_sourcePortsHasBeenSet = true; m_sourcePorts = std::move(value); } /** *

A list of port ranges to specify the source ports to inspect for.

*/ inline RuleGroupSourceStatelessRuleMatchAttributes& WithSourcePorts(const Aws::Vector& value) { SetSourcePorts(value); return *this;} /** *

A list of port ranges to specify the source ports to inspect for.

*/ inline RuleGroupSourceStatelessRuleMatchAttributes& WithSourcePorts(Aws::Vector&& value) { SetSourcePorts(std::move(value)); return *this;} /** *

A list of port ranges to specify the source ports to inspect for.

*/ inline RuleGroupSourceStatelessRuleMatchAttributes& AddSourcePorts(const RuleGroupSourceStatelessRuleMatchAttributesSourcePorts& value) { m_sourcePortsHasBeenSet = true; m_sourcePorts.push_back(value); return *this; } /** *

A list of port ranges to specify the source ports to inspect for.

*/ inline RuleGroupSourceStatelessRuleMatchAttributes& AddSourcePorts(RuleGroupSourceStatelessRuleMatchAttributesSourcePorts&& value) { m_sourcePortsHasBeenSet = true; m_sourcePorts.push_back(std::move(value)); return *this; } /** *

The source IP addresses and address ranges to inspect for, in CIDR * notation.

*/ inline const Aws::Vector& GetSources() const{ return m_sources; } /** *

The source IP addresses and address ranges to inspect for, in CIDR * notation.

*/ inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; } /** *

The source IP addresses and address ranges to inspect for, in CIDR * notation.

*/ inline void SetSources(const Aws::Vector& value) { m_sourcesHasBeenSet = true; m_sources = value; } /** *

The source IP addresses and address ranges to inspect for, in CIDR * notation.

*/ inline void SetSources(Aws::Vector&& value) { m_sourcesHasBeenSet = true; m_sources = std::move(value); } /** *

The source IP addresses and address ranges to inspect for, in CIDR * notation.

*/ inline RuleGroupSourceStatelessRuleMatchAttributes& WithSources(const Aws::Vector& value) { SetSources(value); return *this;} /** *

The source IP addresses and address ranges to inspect for, in CIDR * notation.

*/ inline RuleGroupSourceStatelessRuleMatchAttributes& WithSources(Aws::Vector&& value) { SetSources(std::move(value)); return *this;} /** *

The source IP addresses and address ranges to inspect for, in CIDR * notation.

*/ inline RuleGroupSourceStatelessRuleMatchAttributes& AddSources(const RuleGroupSourceStatelessRuleMatchAttributesSources& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; } /** *

The source IP addresses and address ranges to inspect for, in CIDR * notation.

*/ inline RuleGroupSourceStatelessRuleMatchAttributes& AddSources(RuleGroupSourceStatelessRuleMatchAttributesSources&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; } /** *

The TCP flags and masks to inspect for.

*/ inline const Aws::Vector& GetTcpFlags() const{ return m_tcpFlags; } /** *

The TCP flags and masks to inspect for.

*/ inline bool TcpFlagsHasBeenSet() const { return m_tcpFlagsHasBeenSet; } /** *

The TCP flags and masks to inspect for.

*/ inline void SetTcpFlags(const Aws::Vector& value) { m_tcpFlagsHasBeenSet = true; m_tcpFlags = value; } /** *

The TCP flags and masks to inspect for.

*/ inline void SetTcpFlags(Aws::Vector&& value) { m_tcpFlagsHasBeenSet = true; m_tcpFlags = std::move(value); } /** *

The TCP flags and masks to inspect for.

*/ inline RuleGroupSourceStatelessRuleMatchAttributes& WithTcpFlags(const Aws::Vector& value) { SetTcpFlags(value); return *this;} /** *

The TCP flags and masks to inspect for.

*/ inline RuleGroupSourceStatelessRuleMatchAttributes& WithTcpFlags(Aws::Vector&& value) { SetTcpFlags(std::move(value)); return *this;} /** *

The TCP flags and masks to inspect for.

*/ inline RuleGroupSourceStatelessRuleMatchAttributes& AddTcpFlags(const RuleGroupSourceStatelessRuleMatchAttributesTcpFlags& value) { m_tcpFlagsHasBeenSet = true; m_tcpFlags.push_back(value); return *this; } /** *

The TCP flags and masks to inspect for.

*/ inline RuleGroupSourceStatelessRuleMatchAttributes& AddTcpFlags(RuleGroupSourceStatelessRuleMatchAttributesTcpFlags&& value) { m_tcpFlagsHasBeenSet = true; m_tcpFlags.push_back(std::move(value)); return *this; } private: Aws::Vector m_destinationPorts; bool m_destinationPortsHasBeenSet = false; Aws::Vector m_destinations; bool m_destinationsHasBeenSet = false; Aws::Vector m_protocols; bool m_protocolsHasBeenSet = false; Aws::Vector m_sourcePorts; bool m_sourcePortsHasBeenSet = false; Aws::Vector m_sources; bool m_sourcesHasBeenSet = false; Aws::Vector m_tcpFlags; bool m_tcpFlagsHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws