/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Chime { namespace Model { class BatchUpdatePhoneNumberResult { public: AWS_CHIME_API BatchUpdatePhoneNumberResult(); AWS_CHIME_API BatchUpdatePhoneNumberResult(const Aws::AmazonWebServiceResult& result); AWS_CHIME_API BatchUpdatePhoneNumberResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

If the action fails for one or more of the phone numbers in the request, a * list of the phone numbers is returned, along with error codes and error * messages.

*/ inline const Aws::Vector& GetPhoneNumberErrors() const{ return m_phoneNumberErrors; } /** *

If the action fails for one or more of the phone numbers in the request, a * list of the phone numbers is returned, along with error codes and error * messages.

*/ inline void SetPhoneNumberErrors(const Aws::Vector& value) { m_phoneNumberErrors = value; } /** *

If the action fails for one or more of the phone numbers in the request, a * list of the phone numbers is returned, along with error codes and error * messages.

*/ inline void SetPhoneNumberErrors(Aws::Vector&& value) { m_phoneNumberErrors = std::move(value); } /** *

If the action fails for one or more of the phone numbers in the request, a * list of the phone numbers is returned, along with error codes and error * messages.

*/ inline BatchUpdatePhoneNumberResult& WithPhoneNumberErrors(const Aws::Vector& value) { SetPhoneNumberErrors(value); return *this;} /** *

If the action fails for one or more of the phone numbers in the request, a * list of the phone numbers is returned, along with error codes and error * messages.

*/ inline BatchUpdatePhoneNumberResult& WithPhoneNumberErrors(Aws::Vector&& value) { SetPhoneNumberErrors(std::move(value)); return *this;} /** *

If the action fails for one or more of the phone numbers in the request, a * list of the phone numbers is returned, along with error codes and error * messages.

*/ inline BatchUpdatePhoneNumberResult& AddPhoneNumberErrors(const PhoneNumberError& value) { m_phoneNumberErrors.push_back(value); return *this; } /** *

If the action fails for one or more of the phone numbers in the request, a * list of the phone numbers is returned, along with error codes and error * messages.

*/ inline BatchUpdatePhoneNumberResult& AddPhoneNumberErrors(PhoneNumberError&& value) { m_phoneNumberErrors.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline BatchUpdatePhoneNumberResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline BatchUpdatePhoneNumberResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline BatchUpdatePhoneNumberResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_phoneNumberErrors; Aws::String m_requestId; }; } // namespace Model } // namespace Chime } // namespace Aws