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

Describes an IP range used in a security group.

See Also:

AWS * API Reference

*/ class IPRange { public: AWS_REDSHIFT_API IPRange(); AWS_REDSHIFT_API IPRange(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_REDSHIFT_API IPRange& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The status of the IP range, for example, "authorized".

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The status of the IP range, for example, "authorized".

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the IP range, for example, "authorized".

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the IP range, for example, "authorized".

*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the IP range, for example, "authorized".

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The status of the IP range, for example, "authorized".

*/ inline IPRange& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The status of the IP range, for example, "authorized".

*/ inline IPRange& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The status of the IP range, for example, "authorized".

*/ inline IPRange& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

The IP range in Classless Inter-Domain Routing (CIDR) notation.

*/ inline const Aws::String& GetCIDRIP() const{ return m_cIDRIP; } /** *

The IP range in Classless Inter-Domain Routing (CIDR) notation.

*/ inline bool CIDRIPHasBeenSet() const { return m_cIDRIPHasBeenSet; } /** *

The IP range in Classless Inter-Domain Routing (CIDR) notation.

*/ inline void SetCIDRIP(const Aws::String& value) { m_cIDRIPHasBeenSet = true; m_cIDRIP = value; } /** *

The IP range in Classless Inter-Domain Routing (CIDR) notation.

*/ inline void SetCIDRIP(Aws::String&& value) { m_cIDRIPHasBeenSet = true; m_cIDRIP = std::move(value); } /** *

The IP range in Classless Inter-Domain Routing (CIDR) notation.

*/ inline void SetCIDRIP(const char* value) { m_cIDRIPHasBeenSet = true; m_cIDRIP.assign(value); } /** *

The IP range in Classless Inter-Domain Routing (CIDR) notation.

*/ inline IPRange& WithCIDRIP(const Aws::String& value) { SetCIDRIP(value); return *this;} /** *

The IP range in Classless Inter-Domain Routing (CIDR) notation.

*/ inline IPRange& WithCIDRIP(Aws::String&& value) { SetCIDRIP(std::move(value)); return *this;} /** *

The IP range in Classless Inter-Domain Routing (CIDR) notation.

*/ inline IPRange& WithCIDRIP(const char* value) { SetCIDRIP(value); return *this;} /** *

The list of tags for the IP range.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The list of tags for the IP range.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The list of tags for the IP range.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The list of tags for the IP range.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The list of tags for the IP range.

*/ inline IPRange& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The list of tags for the IP range.

*/ inline IPRange& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The list of tags for the IP range.

*/ inline IPRange& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The list of tags for the IP range.

*/ inline IPRange& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_status; bool m_statusHasBeenSet = false; Aws::String m_cIDRIP; bool m_cIDRIPHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws