/** * 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 Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Connect { namespace Model { /** *

The status of the phone number.

  • CLAIMED means * the previous ClaimedPhoneNumber * or UpdatePhoneNumber * operation succeeded.

  • IN_PROGRESS means a ClaimedPhoneNumber * or UpdatePhoneNumber * operation is still in progress and has not yet completed. You can call DescribePhoneNumber * at a later time to verify if the previous operation has completed.

  • *
  • FAILED indicates that the previous ClaimedPhoneNumber * or UpdatePhoneNumber * operation has failed. It will include a message indicating the failure reason. A * common reason for a failure may be that the TargetArn value you are * claiming or updating a phone number to has reached its limit of total claimed * numbers. If you received a FAILED status from a * ClaimPhoneNumber API call, you have one day to retry claiming the * phone number before the number is released back to the inventory for other * customers to claim.

See Also:

AWS * API Reference

*/ class PhoneNumberStatus { public: AWS_CONNECT_API PhoneNumberStatus(); AWS_CONNECT_API PhoneNumberStatus(Aws::Utils::Json::JsonView jsonValue); AWS_CONNECT_API PhoneNumberStatus& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The status.

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

The status.

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

The status.

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

The status.

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

The status.

*/ inline PhoneNumberStatus& WithStatus(const PhoneNumberWorkflowStatus& value) { SetStatus(value); return *this;} /** *

The status.

*/ inline PhoneNumberStatus& WithStatus(PhoneNumberWorkflowStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The status message.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

The status message.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

The status message.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

The status message.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

The status message.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

The status message.

*/ inline PhoneNumberStatus& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

The status message.

*/ inline PhoneNumberStatus& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

The status message.

*/ inline PhoneNumberStatus& WithMessage(const char* value) { SetMessage(value); return *this;} private: PhoneNumberWorkflowStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws