/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include If a phone number action fails for one or more of the phone numbers in a
* request, a list of the failed phone numbers is returned, along with error codes
* and error messages.See Also:
AWS
* API Reference
The phone number ID for which the action failed.
*/ inline const Aws::String& GetPhoneNumberId() const{ return m_phoneNumberId; } /** *The phone number ID for which the action failed.
*/ inline bool PhoneNumberIdHasBeenSet() const { return m_phoneNumberIdHasBeenSet; } /** *The phone number ID for which the action failed.
*/ inline void SetPhoneNumberId(const Aws::String& value) { m_phoneNumberIdHasBeenSet = true; m_phoneNumberId = value; } /** *The phone number ID for which the action failed.
*/ inline void SetPhoneNumberId(Aws::String&& value) { m_phoneNumberIdHasBeenSet = true; m_phoneNumberId = std::move(value); } /** *The phone number ID for which the action failed.
*/ inline void SetPhoneNumberId(const char* value) { m_phoneNumberIdHasBeenSet = true; m_phoneNumberId.assign(value); } /** *The phone number ID for which the action failed.
*/ inline PhoneNumberError& WithPhoneNumberId(const Aws::String& value) { SetPhoneNumberId(value); return *this;} /** *The phone number ID for which the action failed.
*/ inline PhoneNumberError& WithPhoneNumberId(Aws::String&& value) { SetPhoneNumberId(std::move(value)); return *this;} /** *The phone number ID for which the action failed.
*/ inline PhoneNumberError& WithPhoneNumberId(const char* value) { SetPhoneNumberId(value); return *this;} /** *The error code.
*/ inline const ErrorCode& GetErrorCode() const{ return m_errorCode; } /** *The error code.
*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *The error code.
*/ inline void SetErrorCode(const ErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *The error code.
*/ inline void SetErrorCode(ErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *The error code.
*/ inline PhoneNumberError& WithErrorCode(const ErrorCode& value) { SetErrorCode(value); return *this;} /** *The error code.
*/ inline PhoneNumberError& WithErrorCode(ErrorCode&& value) { SetErrorCode(std::move(value)); return *this;} /** *The error message.
*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *The error message.
*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *The error message.
*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *The error message.
*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *The error message.
*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *The error message.
*/ inline PhoneNumberError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *The error message.
*/ inline PhoneNumberError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *The error message.
*/ inline PhoneNumberError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} private: Aws::String m_phoneNumberId; bool m_phoneNumberIdHasBeenSet = false; ErrorCode m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; }; } // namespace Model } // namespace ChimeSDKVoice } // namespace Aws