/** * 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 ENA Express configuration for UDP traffic on the network * interface that's attached to the instance.

See Also:

AWS * API Reference

*/ class AttachmentEnaSrdUdpSpecification { public: AWS_EC2_API AttachmentEnaSrdUdpSpecification(); AWS_EC2_API AttachmentEnaSrdUdpSpecification(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API AttachmentEnaSrdUdpSpecification& 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 to and from the instance uses ENA Express. To * specify this setting, you must first enable ENA Express.

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

Indicates whether UDP traffic to and from the instance uses ENA Express. To * specify this setting, you must first enable ENA Express.

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

Indicates whether UDP traffic to and from the instance 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 to and from the instance uses ENA Express. To * specify this setting, you must first enable ENA Express.

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