167 lines
6.3 KiB
C++
167 lines
6.3 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/ec2/EC2_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Xml
|
|
{
|
|
class XmlNode;
|
|
} // namespace Xml
|
|
} // namespace Utils
|
|
namespace EC2
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>[EC2-VPC only] Describes an IPv6 range.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Ipv6Range">AWS API
|
|
* Reference</a></p>
|
|
*/
|
|
class AWS_EC2_API Ipv6Range
|
|
{
|
|
public:
|
|
Ipv6Range();
|
|
Ipv6Range(const Aws::Utils::Xml::XmlNode& xmlNode);
|
|
Ipv6Range& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
|
|
|
|
void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
|
|
void OutputToStream(Aws::OStream& oStream, const char* location) const;
|
|
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline const Aws::String& GetCidrIpv6() const{ return m_cidrIpv6; }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline bool CidrIpv6HasBeenSet() const { return m_cidrIpv6HasBeenSet; }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline void SetCidrIpv6(const Aws::String& value) { m_cidrIpv6HasBeenSet = true; m_cidrIpv6 = value; }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline void SetCidrIpv6(Aws::String&& value) { m_cidrIpv6HasBeenSet = true; m_cidrIpv6 = std::move(value); }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline void SetCidrIpv6(const char* value) { m_cidrIpv6HasBeenSet = true; m_cidrIpv6.assign(value); }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline Ipv6Range& WithCidrIpv6(const Aws::String& value) { SetCidrIpv6(value); return *this;}
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline Ipv6Range& WithCidrIpv6(Aws::String&& value) { SetCidrIpv6(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline Ipv6Range& WithCidrIpv6(const char* value) { SetCidrIpv6(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A description for the security group rule that references this IPv6 address
|
|
* range.</p> <p>Constraints: Up to 255 characters in length. Allowed characters
|
|
* are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*</p>
|
|
*/
|
|
inline const Aws::String& GetDescription() const{ return m_description; }
|
|
|
|
/**
|
|
* <p>A description for the security group rule that references this IPv6 address
|
|
* range.</p> <p>Constraints: Up to 255 characters in length. Allowed characters
|
|
* are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*</p>
|
|
*/
|
|
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A description for the security group rule that references this IPv6 address
|
|
* range.</p> <p>Constraints: Up to 255 characters in length. Allowed characters
|
|
* are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*</p>
|
|
*/
|
|
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
|
|
|
|
/**
|
|
* <p>A description for the security group rule that references this IPv6 address
|
|
* range.</p> <p>Constraints: Up to 255 characters in length. Allowed characters
|
|
* are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*</p>
|
|
*/
|
|
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
|
|
|
|
/**
|
|
* <p>A description for the security group rule that references this IPv6 address
|
|
* range.</p> <p>Constraints: Up to 255 characters in length. Allowed characters
|
|
* are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*</p>
|
|
*/
|
|
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
|
|
|
|
/**
|
|
* <p>A description for the security group rule that references this IPv6 address
|
|
* range.</p> <p>Constraints: Up to 255 characters in length. Allowed characters
|
|
* are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*</p>
|
|
*/
|
|
inline Ipv6Range& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
|
|
|
/**
|
|
* <p>A description for the security group rule that references this IPv6 address
|
|
* range.</p> <p>Constraints: Up to 255 characters in length. Allowed characters
|
|
* are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*</p>
|
|
*/
|
|
inline Ipv6Range& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A description for the security group rule that references this IPv6 address
|
|
* range.</p> <p>Constraints: Up to 255 characters in length. Allowed characters
|
|
* are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*</p>
|
|
*/
|
|
inline Ipv6Range& WithDescription(const char* value) { SetDescription(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_cidrIpv6;
|
|
bool m_cidrIpv6HasBeenSet;
|
|
|
|
Aws::String m_description;
|
|
bool m_descriptionHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace EC2
|
|
} // namespace Aws
|