/** * 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 an IPv6 range.

See Also:

AWS API * Reference

*/ class Ipv6Range { public: AWS_EC2_API Ipv6Range(); AWS_EC2_API Ipv6Range(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API Ipv6Range& 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 IPv6 CIDR range. You can either specify a CIDR range or a source security * group, not both. To specify a single IPv6 address, use the /128 prefix * length.

*/ inline const Aws::String& GetCidrIpv6() const{ return m_cidrIpv6; } /** *

The IPv6 CIDR range. You can either specify a CIDR range or a source security * group, not both. To specify a single IPv6 address, use the /128 prefix * length.

*/ inline bool CidrIpv6HasBeenSet() const { return m_cidrIpv6HasBeenSet; } /** *

The IPv6 CIDR range. You can either specify a CIDR range or a source security * group, not both. To specify a single IPv6 address, use the /128 prefix * length.

*/ inline void SetCidrIpv6(const Aws::String& value) { m_cidrIpv6HasBeenSet = true; m_cidrIpv6 = value; } /** *

The IPv6 CIDR range. You can either specify a CIDR range or a source security * group, not both. To specify a single IPv6 address, use the /128 prefix * length.

*/ inline void SetCidrIpv6(Aws::String&& value) { m_cidrIpv6HasBeenSet = true; m_cidrIpv6 = std::move(value); } /** *

The IPv6 CIDR range. You can either specify a CIDR range or a source security * group, not both. To specify a single IPv6 address, use the /128 prefix * length.

*/ inline void SetCidrIpv6(const char* value) { m_cidrIpv6HasBeenSet = true; m_cidrIpv6.assign(value); } /** *

The IPv6 CIDR range. You can either specify a CIDR range or a source security * group, not both. To specify a single IPv6 address, use the /128 prefix * length.

*/ inline Ipv6Range& WithCidrIpv6(const Aws::String& value) { SetCidrIpv6(value); return *this;} /** *

The IPv6 CIDR range. You can either specify a CIDR range or a source security * group, not both. To specify a single IPv6 address, use the /128 prefix * length.

*/ inline Ipv6Range& WithCidrIpv6(Aws::String&& value) { SetCidrIpv6(std::move(value)); return *this;} /** *

The IPv6 CIDR range. You can either specify a CIDR range or a source security * group, not both. To specify a single IPv6 address, use the /128 prefix * length.

*/ inline Ipv6Range& WithCidrIpv6(const char* value) { SetCidrIpv6(value); return *this;} /** *

A description for the security group rule that references this IPv6 address * range.

Constraints: Up to 255 characters in length. Allowed characters * are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description for the security group rule that references this IPv6 address * range.

Constraints: Up to 255 characters in length. Allowed characters * are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description for the security group rule that references this IPv6 address * range.

Constraints: Up to 255 characters in length. Allowed characters * are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description for the security group rule that references this IPv6 address * range.

Constraints: Up to 255 characters in length. Allowed characters * are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description for the security group rule that references this IPv6 address * range.

Constraints: Up to 255 characters in length. Allowed characters * are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description for the security group rule that references this IPv6 address * range.

Constraints: Up to 255 characters in length. Allowed characters * are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*

*/ inline Ipv6Range& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description for the security group rule that references this IPv6 address * range.

Constraints: Up to 255 characters in length. Allowed characters * are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*

*/ inline Ipv6Range& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description for the security group rule that references this IPv6 address * range.

Constraints: Up to 255 characters in length. Allowed characters * are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*

*/ inline Ipv6Range& WithDescription(const char* value) { SetDescription(value); return *this;} private: Aws::String m_cidrIpv6; bool m_cidrIpv6HasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws