/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A range of IPv6 addresses.See Also:
AWS
* API Reference
The IPv6 CIDR range. You can specify either a CIDR range or a source security * group, but 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 specify either a CIDR range or a source security * group, but 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 specify either a CIDR range or a source security * group, but 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 specify either a CIDR range or a source security * group, but 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 specify either a CIDR range or a source security * group, but 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 specify either a CIDR range or a source security * group, but not both. To specify a single IPv6 address, use the /128 prefix * length.
*/ inline AwsEc2SecurityGroupIpv6Range& WithCidrIpv6(const Aws::String& value) { SetCidrIpv6(value); return *this;} /** *The IPv6 CIDR range. You can specify either a CIDR range or a source security * group, but not both. To specify a single IPv6 address, use the /128 prefix * length.
*/ inline AwsEc2SecurityGroupIpv6Range& WithCidrIpv6(Aws::String&& value) { SetCidrIpv6(std::move(value)); return *this;} /** *The IPv6 CIDR range. You can specify either a CIDR range or a source security * group, but not both. To specify a single IPv6 address, use the /128 prefix * length.
*/ inline AwsEc2SecurityGroupIpv6Range& WithCidrIpv6(const char* value) { SetCidrIpv6(value); return *this;} private: Aws::String m_cidrIpv6; bool m_cidrIpv6HasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws