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

Describes the Traffic Mirror port range.

See Also:

AWS * API Reference

*/ class TrafficMirrorPortRange { public: AWS_EC2_API TrafficMirrorPortRange(); AWS_EC2_API TrafficMirrorPortRange(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API TrafficMirrorPortRange& 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 start of the Traffic Mirror port range. This applies to the TCP and UDP * protocols.

*/ inline int GetFromPort() const{ return m_fromPort; } /** *

The start of the Traffic Mirror port range. This applies to the TCP and UDP * protocols.

*/ inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; } /** *

The start of the Traffic Mirror port range. This applies to the TCP and UDP * protocols.

*/ inline void SetFromPort(int value) { m_fromPortHasBeenSet = true; m_fromPort = value; } /** *

The start of the Traffic Mirror port range. This applies to the TCP and UDP * protocols.

*/ inline TrafficMirrorPortRange& WithFromPort(int value) { SetFromPort(value); return *this;} /** *

The end of the Traffic Mirror port range. This applies to the TCP and UDP * protocols.

*/ inline int GetToPort() const{ return m_toPort; } /** *

The end of the Traffic Mirror port range. This applies to the TCP and UDP * protocols.

*/ inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; } /** *

The end of the Traffic Mirror port range. This applies to the TCP and UDP * protocols.

*/ inline void SetToPort(int value) { m_toPortHasBeenSet = true; m_toPort = value; } /** *

The end of the Traffic Mirror port range. This applies to the TCP and UDP * protocols.

*/ inline TrafficMirrorPortRange& WithToPort(int value) { SetToPort(value); return *this;} private: int m_fromPort; bool m_fromPortHasBeenSet = false; int m_toPort; bool m_toPortHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws