/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes an IPv4 range.See Also:
AWS API
* Reference
The IPv4 CIDR range. You can either specify a CIDR range or a source security * group, 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 either specify a CIDR range or a source security * group, 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 either specify a CIDR range or a source security * group, 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 either specify a CIDR range or a source security * group, 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 either specify a CIDR range or a source security * group, 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 either specify a CIDR range or a source security * group, not both. To specify a single IPv4 address, use the /32 prefix * length.
*/ inline IpRange& WithCidrIp(const Aws::String& value) { SetCidrIp(value); return *this;} /** *The IPv4 CIDR range. You can either specify a CIDR range or a source security * group, not both. To specify a single IPv4 address, use the /32 prefix * length.
*/ inline IpRange& WithCidrIp(Aws::String&& value) { SetCidrIp(std::move(value)); return *this;} /** *The IPv4 CIDR range. You can either specify a CIDR range or a source security * group, not both. To specify a single IPv4 address, use the /32 prefix * length.
*/ inline IpRange& WithCidrIp(const char* value) { SetCidrIp(value); return *this;} /** *A description for the security group rule that references this IPv4 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 IPv4 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 IPv4 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 IPv4 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 IPv4 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 IPv4 address * range.
Constraints: Up to 255 characters in length. Allowed characters * are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
*/ inline IpRange& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *A description for the security group rule that references this IPv4 address * range.
Constraints: Up to 255 characters in length. Allowed characters * are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
*/ inline IpRange& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *A description for the security group rule that references this IPv4 address * range.
Constraints: Up to 255 characters in length. Allowed characters * are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
*/ inline IpRange& WithDescription(const char* value) { SetDescription(value); return *this;} private: Aws::String m_cidrIp; bool m_cidrIpHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws