/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes an IPv6 range.See Also:
AWS API
* Reference
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