/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A range of IPv4 addresses.See Also:
AWS
* API Reference
The IPv4 CIDR range. You can specify either a CIDR range or a source security * group, but not both. To specify a single IPv4 address, use the /32 prefix * length.
*/ inline const Aws::String& GetCidrIp() const{ return m_cidrIp; } /** *The IPv4 CIDR range. You can specify either a CIDR range or a source security * group, but not both. To specify a single IPv4 address, use the /32 prefix * length.
*/ inline bool CidrIpHasBeenSet() const { return m_cidrIpHasBeenSet; } /** *The IPv4 CIDR range. You can specify either a CIDR range or a source security * group, but not both. To specify a single IPv4 address, use the /32 prefix * length.
*/ inline void SetCidrIp(const Aws::String& value) { m_cidrIpHasBeenSet = true; m_cidrIp = value; } /** *The IPv4 CIDR range. You can specify either a CIDR range or a source security * group, but not both. To specify a single IPv4 address, use the /32 prefix * length.
*/ inline void SetCidrIp(Aws::String&& value) { m_cidrIpHasBeenSet = true; m_cidrIp = std::move(value); } /** *The IPv4 CIDR range. You can specify either a CIDR range or a source security * group, but not both. To specify a single IPv4 address, use the /32 prefix * length.
*/ inline void SetCidrIp(const char* value) { m_cidrIpHasBeenSet = true; m_cidrIp.assign(value); } /** *The IPv4 CIDR range. You can specify either a CIDR range or a source security * group, but not both. To specify a single IPv4 address, use the /32 prefix * length.
*/ inline AwsEc2SecurityGroupIpRange& WithCidrIp(const Aws::String& value) { SetCidrIp(value); return *this;} /** *The IPv4 CIDR range. You can specify either a CIDR range or a source security * group, but not both. To specify a single IPv4 address, use the /32 prefix * length.
*/ inline AwsEc2SecurityGroupIpRange& WithCidrIp(Aws::String&& value) { SetCidrIp(std::move(value)); return *this;} /** *The IPv4 CIDR range. You can specify either a CIDR range or a source security * group, but not both. To specify a single IPv4 address, use the /32 prefix * length.
*/ inline AwsEc2SecurityGroupIpRange& WithCidrIp(const char* value) { SetCidrIp(value); return *this;} private: Aws::String m_cidrIp; bool m_cidrIpHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws