/** * 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 { /** *

ENA Express is compatible with both TCP and UDP transport protocols. When * it’s enabled, TCP traffic automatically uses it. However, some UDP-based * applications are designed to handle network packets that are out of order, * without a need for retransmission, such as live video broadcasting or other * near-real-time applications. For UDP traffic, you can specify whether to use ENA * Express, based on your application environment needs.

See Also:

* AWS * API Reference

*/ class EnaSrdUdpSpecification { public: AWS_EC2_API EnaSrdUdpSpecification(); AWS_EC2_API EnaSrdUdpSpecification(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API EnaSrdUdpSpecification& 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; /** *

Indicates whether UDP traffic uses ENA Express. To specify this setting, you * must first enable ENA Express.

*/ inline bool GetEnaSrdUdpEnabled() const{ return m_enaSrdUdpEnabled; } /** *

Indicates whether UDP traffic uses ENA Express. To specify this setting, you * must first enable ENA Express.

*/ inline bool EnaSrdUdpEnabledHasBeenSet() const { return m_enaSrdUdpEnabledHasBeenSet; } /** *

Indicates whether UDP traffic uses ENA Express. To specify this setting, you * must first enable ENA Express.

*/ inline void SetEnaSrdUdpEnabled(bool value) { m_enaSrdUdpEnabledHasBeenSet = true; m_enaSrdUdpEnabled = value; } /** *

Indicates whether UDP traffic uses ENA Express. To specify this setting, you * must first enable ENA Express.

*/ inline EnaSrdUdpSpecification& WithEnaSrdUdpEnabled(bool value) { SetEnaSrdUdpEnabled(value); return *this;} private: bool m_enaSrdUdpEnabled; bool m_enaSrdUdpEnabledHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws