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

Information about an IPv6 prefix.

See Also:

AWS * API Reference

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

One or more IPv6 prefixes assigned to the network interface.

*/ inline const Aws::String& GetIpv6Prefix() const{ return m_ipv6Prefix; } /** *

One or more IPv6 prefixes assigned to the network interface.

*/ inline bool Ipv6PrefixHasBeenSet() const { return m_ipv6PrefixHasBeenSet; } /** *

One or more IPv6 prefixes assigned to the network interface.

*/ inline void SetIpv6Prefix(const Aws::String& value) { m_ipv6PrefixHasBeenSet = true; m_ipv6Prefix = value; } /** *

One or more IPv6 prefixes assigned to the network interface.

*/ inline void SetIpv6Prefix(Aws::String&& value) { m_ipv6PrefixHasBeenSet = true; m_ipv6Prefix = std::move(value); } /** *

One or more IPv6 prefixes assigned to the network interface.

*/ inline void SetIpv6Prefix(const char* value) { m_ipv6PrefixHasBeenSet = true; m_ipv6Prefix.assign(value); } /** *

One or more IPv6 prefixes assigned to the network interface.

*/ inline InstanceIpv6Prefix& WithIpv6Prefix(const Aws::String& value) { SetIpv6Prefix(value); return *this;} /** *

One or more IPv6 prefixes assigned to the network interface.

*/ inline InstanceIpv6Prefix& WithIpv6Prefix(Aws::String&& value) { SetIpv6Prefix(std::move(value)); return *this;} /** *

One or more IPv6 prefixes assigned to the network interface.

*/ inline InstanceIpv6Prefix& WithIpv6Prefix(const char* value) { SetIpv6Prefix(value); return *this;} private: Aws::String m_ipv6Prefix; bool m_ipv6PrefixHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws