/** * 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 the IPv4 delegated prefixes assigned to a network * interface.

See Also:

AWS * API Reference

*/ class Ipv4PrefixSpecificationResponse { public: AWS_EC2_API Ipv4PrefixSpecificationResponse(); AWS_EC2_API Ipv4PrefixSpecificationResponse(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API Ipv4PrefixSpecificationResponse& 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 IPv4 delegated prefixes assigned to the network interface.

*/ inline const Aws::String& GetIpv4Prefix() const{ return m_ipv4Prefix; } /** *

The IPv4 delegated prefixes assigned to the network interface.

*/ inline bool Ipv4PrefixHasBeenSet() const { return m_ipv4PrefixHasBeenSet; } /** *

The IPv4 delegated prefixes assigned to the network interface.

*/ inline void SetIpv4Prefix(const Aws::String& value) { m_ipv4PrefixHasBeenSet = true; m_ipv4Prefix = value; } /** *

The IPv4 delegated prefixes assigned to the network interface.

*/ inline void SetIpv4Prefix(Aws::String&& value) { m_ipv4PrefixHasBeenSet = true; m_ipv4Prefix = std::move(value); } /** *

The IPv4 delegated prefixes assigned to the network interface.

*/ inline void SetIpv4Prefix(const char* value) { m_ipv4PrefixHasBeenSet = true; m_ipv4Prefix.assign(value); } /** *

The IPv4 delegated prefixes assigned to the network interface.

*/ inline Ipv4PrefixSpecificationResponse& WithIpv4Prefix(const Aws::String& value) { SetIpv4Prefix(value); return *this;} /** *

The IPv4 delegated prefixes assigned to the network interface.

*/ inline Ipv4PrefixSpecificationResponse& WithIpv4Prefix(Aws::String&& value) { SetIpv4Prefix(std::move(value)); return *this;} /** *

The IPv4 delegated prefixes assigned to the network interface.

*/ inline Ipv4PrefixSpecificationResponse& WithIpv4Prefix(const char* value) { SetIpv4Prefix(value); return *this;} private: Aws::String m_ipv4Prefix; bool m_ipv4PrefixHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws