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

Describes the status of the elastic IP (EIP) address.

See * Also:

AWS * API Reference

*/ class ElasticIpStatus { public: AWS_REDSHIFT_API ElasticIpStatus(); AWS_REDSHIFT_API ElasticIpStatus(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_REDSHIFT_API ElasticIpStatus& 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 elastic IP (EIP) address for the cluster.

*/ inline const Aws::String& GetElasticIp() const{ return m_elasticIp; } /** *

The elastic IP (EIP) address for the cluster.

*/ inline bool ElasticIpHasBeenSet() const { return m_elasticIpHasBeenSet; } /** *

The elastic IP (EIP) address for the cluster.

*/ inline void SetElasticIp(const Aws::String& value) { m_elasticIpHasBeenSet = true; m_elasticIp = value; } /** *

The elastic IP (EIP) address for the cluster.

*/ inline void SetElasticIp(Aws::String&& value) { m_elasticIpHasBeenSet = true; m_elasticIp = std::move(value); } /** *

The elastic IP (EIP) address for the cluster.

*/ inline void SetElasticIp(const char* value) { m_elasticIpHasBeenSet = true; m_elasticIp.assign(value); } /** *

The elastic IP (EIP) address for the cluster.

*/ inline ElasticIpStatus& WithElasticIp(const Aws::String& value) { SetElasticIp(value); return *this;} /** *

The elastic IP (EIP) address for the cluster.

*/ inline ElasticIpStatus& WithElasticIp(Aws::String&& value) { SetElasticIp(std::move(value)); return *this;} /** *

The elastic IP (EIP) address for the cluster.

*/ inline ElasticIpStatus& WithElasticIp(const char* value) { SetElasticIp(value); return *this;} /** *

The status of the elastic IP (EIP) address.

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

The status of the elastic IP (EIP) address.

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

The status of the elastic IP (EIP) address.

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

The status of the elastic IP (EIP) address.

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

The status of the elastic IP (EIP) address.

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

The status of the elastic IP (EIP) address.

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

The status of the elastic IP (EIP) address.

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

The status of the elastic IP (EIP) address.

*/ inline ElasticIpStatus& WithStatus(const char* value) { SetStatus(value); return *this;} private: Aws::String m_elasticIp; bool m_elasticIpHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws