/** * 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 EC2 { namespace Model { /** *

The status of an updated pointer (PTR) record for an Elastic IP * address.

See Also:

AWS * API Reference

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

The value for the PTR record update.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

The value for the PTR record update.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The value for the PTR record update.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value for the PTR record update.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The value for the PTR record update.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

The value for the PTR record update.

*/ inline PtrUpdateStatus& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

The value for the PTR record update.

*/ inline PtrUpdateStatus& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

The value for the PTR record update.

*/ inline PtrUpdateStatus& WithValue(const char* value) { SetValue(value); return *this;} /** *

The status of the PTR record update.

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

The status of the PTR record update.

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

The status of the PTR record update.

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

The status of the PTR record update.

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

The status of the PTR record update.

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

The status of the PTR record update.

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

The status of the PTR record update.

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

The status of the PTR record update.

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

The reason for the PTR record update.

*/ inline const Aws::String& GetReason() const{ return m_reason; } /** *

The reason for the PTR record update.

*/ inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } /** *

The reason for the PTR record update.

*/ inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; } /** *

The reason for the PTR record update.

*/ inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } /** *

The reason for the PTR record update.

*/ inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); } /** *

The reason for the PTR record update.

*/ inline PtrUpdateStatus& WithReason(const Aws::String& value) { SetReason(value); return *this;} /** *

The reason for the PTR record update.

*/ inline PtrUpdateStatus& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;} /** *

The reason for the PTR record update.

*/ inline PtrUpdateStatus& WithReason(const char* value) { SetReason(value); return *this;} private: Aws::String m_value; bool m_valueHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; Aws::String m_reason; bool m_reasonHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws