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

Describes a header. Reflects any changes made by a component as traffic * passes through. The fields of an inbound header are null except for the first * component of a path.

See Also:

AWS * API Reference

*/ class AnalysisPacketHeader { public: AWS_EC2_API AnalysisPacketHeader(); AWS_EC2_API AnalysisPacketHeader(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API AnalysisPacketHeader& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The destination addresses.

*/ inline const Aws::Vector& GetDestinationAddresses() const{ return m_destinationAddresses; } /** *

The destination addresses.

*/ inline bool DestinationAddressesHasBeenSet() const { return m_destinationAddressesHasBeenSet; } /** *

The destination addresses.

*/ inline void SetDestinationAddresses(const Aws::Vector& value) { m_destinationAddressesHasBeenSet = true; m_destinationAddresses = value; } /** *

The destination addresses.

*/ inline void SetDestinationAddresses(Aws::Vector&& value) { m_destinationAddressesHasBeenSet = true; m_destinationAddresses = std::move(value); } /** *

The destination addresses.

*/ inline AnalysisPacketHeader& WithDestinationAddresses(const Aws::Vector& value) { SetDestinationAddresses(value); return *this;} /** *

The destination addresses.

*/ inline AnalysisPacketHeader& WithDestinationAddresses(Aws::Vector&& value) { SetDestinationAddresses(std::move(value)); return *this;} /** *

The destination addresses.

*/ inline AnalysisPacketHeader& AddDestinationAddresses(const Aws::String& value) { m_destinationAddressesHasBeenSet = true; m_destinationAddresses.push_back(value); return *this; } /** *

The destination addresses.

*/ inline AnalysisPacketHeader& AddDestinationAddresses(Aws::String&& value) { m_destinationAddressesHasBeenSet = true; m_destinationAddresses.push_back(std::move(value)); return *this; } /** *

The destination addresses.

*/ inline AnalysisPacketHeader& AddDestinationAddresses(const char* value) { m_destinationAddressesHasBeenSet = true; m_destinationAddresses.push_back(value); return *this; } /** *

The destination port ranges.

*/ inline const Aws::Vector& GetDestinationPortRanges() const{ return m_destinationPortRanges; } /** *

The destination port ranges.

*/ inline bool DestinationPortRangesHasBeenSet() const { return m_destinationPortRangesHasBeenSet; } /** *

The destination port ranges.

*/ inline void SetDestinationPortRanges(const Aws::Vector& value) { m_destinationPortRangesHasBeenSet = true; m_destinationPortRanges = value; } /** *

The destination port ranges.

*/ inline void SetDestinationPortRanges(Aws::Vector&& value) { m_destinationPortRangesHasBeenSet = true; m_destinationPortRanges = std::move(value); } /** *

The destination port ranges.

*/ inline AnalysisPacketHeader& WithDestinationPortRanges(const Aws::Vector& value) { SetDestinationPortRanges(value); return *this;} /** *

The destination port ranges.

*/ inline AnalysisPacketHeader& WithDestinationPortRanges(Aws::Vector&& value) { SetDestinationPortRanges(std::move(value)); return *this;} /** *

The destination port ranges.

*/ inline AnalysisPacketHeader& AddDestinationPortRanges(const PortRange& value) { m_destinationPortRangesHasBeenSet = true; m_destinationPortRanges.push_back(value); return *this; } /** *

The destination port ranges.

*/ inline AnalysisPacketHeader& AddDestinationPortRanges(PortRange&& value) { m_destinationPortRangesHasBeenSet = true; m_destinationPortRanges.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 AnalysisPacketHeader& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;} /** *

The protocol.

*/ inline AnalysisPacketHeader& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;} /** *

The protocol.

*/ inline AnalysisPacketHeader& WithProtocol(const char* value) { SetProtocol(value); return *this;} /** *

The source addresses.

*/ inline const Aws::Vector& GetSourceAddresses() const{ return m_sourceAddresses; } /** *

The source addresses.

*/ inline bool SourceAddressesHasBeenSet() const { return m_sourceAddressesHasBeenSet; } /** *

The source addresses.

*/ inline void SetSourceAddresses(const Aws::Vector& value) { m_sourceAddressesHasBeenSet = true; m_sourceAddresses = value; } /** *

The source addresses.

*/ inline void SetSourceAddresses(Aws::Vector&& value) { m_sourceAddressesHasBeenSet = true; m_sourceAddresses = std::move(value); } /** *

The source addresses.

*/ inline AnalysisPacketHeader& WithSourceAddresses(const Aws::Vector& value) { SetSourceAddresses(value); return *this;} /** *

The source addresses.

*/ inline AnalysisPacketHeader& WithSourceAddresses(Aws::Vector&& value) { SetSourceAddresses(std::move(value)); return *this;} /** *

The source addresses.

*/ inline AnalysisPacketHeader& AddSourceAddresses(const Aws::String& value) { m_sourceAddressesHasBeenSet = true; m_sourceAddresses.push_back(value); return *this; } /** *

The source addresses.

*/ inline AnalysisPacketHeader& AddSourceAddresses(Aws::String&& value) { m_sourceAddressesHasBeenSet = true; m_sourceAddresses.push_back(std::move(value)); return *this; } /** *

The source addresses.

*/ inline AnalysisPacketHeader& AddSourceAddresses(const char* value) { m_sourceAddressesHasBeenSet = true; m_sourceAddresses.push_back(value); return *this; } /** *

The source port ranges.

*/ inline const Aws::Vector& GetSourcePortRanges() const{ return m_sourcePortRanges; } /** *

The source port ranges.

*/ inline bool SourcePortRangesHasBeenSet() const { return m_sourcePortRangesHasBeenSet; } /** *

The source port ranges.

*/ inline void SetSourcePortRanges(const Aws::Vector& value) { m_sourcePortRangesHasBeenSet = true; m_sourcePortRanges = value; } /** *

The source port ranges.

*/ inline void SetSourcePortRanges(Aws::Vector&& value) { m_sourcePortRangesHasBeenSet = true; m_sourcePortRanges = std::move(value); } /** *

The source port ranges.

*/ inline AnalysisPacketHeader& WithSourcePortRanges(const Aws::Vector& value) { SetSourcePortRanges(value); return *this;} /** *

The source port ranges.

*/ inline AnalysisPacketHeader& WithSourcePortRanges(Aws::Vector&& value) { SetSourcePortRanges(std::move(value)); return *this;} /** *

The source port ranges.

*/ inline AnalysisPacketHeader& AddSourcePortRanges(const PortRange& value) { m_sourcePortRangesHasBeenSet = true; m_sourcePortRanges.push_back(value); return *this; } /** *

The source port ranges.

*/ inline AnalysisPacketHeader& AddSourcePortRanges(PortRange&& value) { m_sourcePortRangesHasBeenSet = true; m_sourcePortRanges.push_back(std::move(value)); return *this; } private: Aws::Vector m_destinationAddresses; bool m_destinationAddressesHasBeenSet = false; Aws::Vector m_destinationPortRanges; bool m_destinationPortRangesHasBeenSet = false; Aws::String m_protocol; bool m_protocolHasBeenSet = false; Aws::Vector m_sourceAddresses; bool m_sourceAddressesHasBeenSet = false; Aws::Vector m_sourcePortRanges; bool m_sourcePortRangesHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws