/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

A range of IPv4 addresses.

See Also:

AWS * API Reference

*/ class AwsEc2SecurityGroupIpRange { public: AWS_SECURITYHUB_API AwsEc2SecurityGroupIpRange(); AWS_SECURITYHUB_API AwsEc2SecurityGroupIpRange(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsEc2SecurityGroupIpRange& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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