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

A verified or pending destination phone number in the SMS sandbox.

*

When you start using Amazon SNS to send SMS messages, your Amazon Web * Services account is in the SMS sandbox. The SMS sandbox provides a safe * environment for you to try Amazon SNS features without risking your reputation * as an SMS sender. While your Amazon Web Services account is in the SMS sandbox, * you can use all of the features of Amazon SNS. However, you can send SMS * messages only to verified destination phone numbers. For more information, * including how to move out of the sandbox to send messages without restrictions, * see SMS * sandbox in the Amazon SNS Developer Guide.

See Also:

* AWS * API Reference

*/ class SMSSandboxPhoneNumber { public: AWS_SNS_API SMSSandboxPhoneNumber(); AWS_SNS_API SMSSandboxPhoneNumber(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_SNS_API SMSSandboxPhoneNumber& 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; /** *

The destination phone number.

*/ inline const Aws::String& GetPhoneNumber() const{ return m_phoneNumber; } /** *

The destination phone number.

*/ inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; } /** *

The destination phone number.

*/ inline void SetPhoneNumber(const Aws::String& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = value; } /** *

The destination phone number.

*/ inline void SetPhoneNumber(Aws::String&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::move(value); } /** *

The destination phone number.

*/ inline void SetPhoneNumber(const char* value) { m_phoneNumberHasBeenSet = true; m_phoneNumber.assign(value); } /** *

The destination phone number.

*/ inline SMSSandboxPhoneNumber& WithPhoneNumber(const Aws::String& value) { SetPhoneNumber(value); return *this;} /** *

The destination phone number.

*/ inline SMSSandboxPhoneNumber& WithPhoneNumber(Aws::String&& value) { SetPhoneNumber(std::move(value)); return *this;} /** *

The destination phone number.

*/ inline SMSSandboxPhoneNumber& WithPhoneNumber(const char* value) { SetPhoneNumber(value); return *this;} /** *

The destination phone number's verification status.

*/ inline const SMSSandboxPhoneNumberVerificationStatus& GetStatus() const{ return m_status; } /** *

The destination phone number's verification status.

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

The destination phone number's verification status.

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

The destination phone number's verification status.

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

The destination phone number's verification status.

*/ inline SMSSandboxPhoneNumber& WithStatus(const SMSSandboxPhoneNumberVerificationStatus& value) { SetStatus(value); return *this;} /** *

The destination phone number's verification status.

*/ inline SMSSandboxPhoneNumber& WithStatus(SMSSandboxPhoneNumberVerificationStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_phoneNumber; bool m_phoneNumberHasBeenSet = false; SMSSandboxPhoneNumberVerificationStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace SNS } // namespace Aws