/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include 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
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