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

Describes the ENA Express configuration for the network interface that's * attached to the instance.

See Also:

AWS * API Reference

*/ class AttachmentEnaSrdSpecification { public: AWS_EC2_API AttachmentEnaSrdSpecification(); AWS_EC2_API AttachmentEnaSrdSpecification(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API AttachmentEnaSrdSpecification& 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 ENA Express is enabled for the network interface that's * attached to the instance.

*/ inline bool GetEnaSrdEnabled() const{ return m_enaSrdEnabled; } /** *

Indicates whether ENA Express is enabled for the network interface that's * attached to the instance.

*/ inline bool EnaSrdEnabledHasBeenSet() const { return m_enaSrdEnabledHasBeenSet; } /** *

Indicates whether ENA Express is enabled for the network interface that's * attached to the instance.

*/ inline void SetEnaSrdEnabled(bool value) { m_enaSrdEnabledHasBeenSet = true; m_enaSrdEnabled = value; } /** *

Indicates whether ENA Express is enabled for the network interface that's * attached to the instance.

*/ inline AttachmentEnaSrdSpecification& WithEnaSrdEnabled(bool value) { SetEnaSrdEnabled(value); return *this;} /** *

ENA Express configuration for UDP network traffic.

*/ inline const AttachmentEnaSrdUdpSpecification& GetEnaSrdUdpSpecification() const{ return m_enaSrdUdpSpecification; } /** *

ENA Express configuration for UDP network traffic.

*/ inline bool EnaSrdUdpSpecificationHasBeenSet() const { return m_enaSrdUdpSpecificationHasBeenSet; } /** *

ENA Express configuration for UDP network traffic.

*/ inline void SetEnaSrdUdpSpecification(const AttachmentEnaSrdUdpSpecification& value) { m_enaSrdUdpSpecificationHasBeenSet = true; m_enaSrdUdpSpecification = value; } /** *

ENA Express configuration for UDP network traffic.

*/ inline void SetEnaSrdUdpSpecification(AttachmentEnaSrdUdpSpecification&& value) { m_enaSrdUdpSpecificationHasBeenSet = true; m_enaSrdUdpSpecification = std::move(value); } /** *

ENA Express configuration for UDP network traffic.

*/ inline AttachmentEnaSrdSpecification& WithEnaSrdUdpSpecification(const AttachmentEnaSrdUdpSpecification& value) { SetEnaSrdUdpSpecification(value); return *this;} /** *

ENA Express configuration for UDP network traffic.

*/ inline AttachmentEnaSrdSpecification& WithEnaSrdUdpSpecification(AttachmentEnaSrdUdpSpecification&& value) { SetEnaSrdUdpSpecification(std::move(value)); return *this;} private: bool m_enaSrdEnabled; bool m_enaSrdEnabledHasBeenSet = false; AttachmentEnaSrdUdpSpecification m_enaSrdUdpSpecification; bool m_enaSrdUdpSpecificationHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws