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

Indicates that the one-time password (OTP) used for verification is * invalid.

See Also:

AWS * API Reference

*/ class VerificationException { public: AWS_SNS_API VerificationException(); AWS_SNS_API VerificationException(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_SNS_API VerificationException& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_SNS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_SNS_API void OutputToStream(Aws::OStream& oStream, const char* location) const; inline const Aws::String& GetMessage() const{ return m_message; } inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } inline VerificationException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} inline VerificationException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} inline VerificationException& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

The status of the verification error.

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

The status of the verification error.

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

The status of the verification error.

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

The status of the verification error.

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

The status of the verification error.

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

The status of the verification error.

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

The status of the verification error.

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

The status of the verification error.

*/ inline VerificationException& WithStatus(const char* value) { SetStatus(value); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace SNS } // namespace Aws