1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/chime/Chime_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSVector.h> 9 #include <aws/chime/model/PhoneNumberError.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 template<typename RESULT_TYPE> 15 class AmazonWebServiceResult; 16 17 namespace Utils 18 { 19 namespace Json 20 { 21 class JsonValue; 22 } // namespace Json 23 } // namespace Utils 24 namespace Chime 25 { 26 namespace Model 27 { 28 class AWS_CHIME_API BatchDeletePhoneNumberResult 29 { 30 public: 31 BatchDeletePhoneNumberResult(); 32 BatchDeletePhoneNumberResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 33 BatchDeletePhoneNumberResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 34 35 36 /** 37 * <p>If the action fails for one or more of the phone numbers in the request, a 38 * list of the phone numbers is returned, along with error codes and error 39 * messages.</p> 40 */ GetPhoneNumberErrors()41 inline const Aws::Vector<PhoneNumberError>& GetPhoneNumberErrors() const{ return m_phoneNumberErrors; } 42 43 /** 44 * <p>If the action fails for one or more of the phone numbers in the request, a 45 * list of the phone numbers is returned, along with error codes and error 46 * messages.</p> 47 */ SetPhoneNumberErrors(const Aws::Vector<PhoneNumberError> & value)48 inline void SetPhoneNumberErrors(const Aws::Vector<PhoneNumberError>& value) { m_phoneNumberErrors = value; } 49 50 /** 51 * <p>If the action fails for one or more of the phone numbers in the request, a 52 * list of the phone numbers is returned, along with error codes and error 53 * messages.</p> 54 */ SetPhoneNumberErrors(Aws::Vector<PhoneNumberError> && value)55 inline void SetPhoneNumberErrors(Aws::Vector<PhoneNumberError>&& value) { m_phoneNumberErrors = std::move(value); } 56 57 /** 58 * <p>If the action fails for one or more of the phone numbers in the request, a 59 * list of the phone numbers is returned, along with error codes and error 60 * messages.</p> 61 */ WithPhoneNumberErrors(const Aws::Vector<PhoneNumberError> & value)62 inline BatchDeletePhoneNumberResult& WithPhoneNumberErrors(const Aws::Vector<PhoneNumberError>& value) { SetPhoneNumberErrors(value); return *this;} 63 64 /** 65 * <p>If the action fails for one or more of the phone numbers in the request, a 66 * list of the phone numbers is returned, along with error codes and error 67 * messages.</p> 68 */ WithPhoneNumberErrors(Aws::Vector<PhoneNumberError> && value)69 inline BatchDeletePhoneNumberResult& WithPhoneNumberErrors(Aws::Vector<PhoneNumberError>&& value) { SetPhoneNumberErrors(std::move(value)); return *this;} 70 71 /** 72 * <p>If the action fails for one or more of the phone numbers in the request, a 73 * list of the phone numbers is returned, along with error codes and error 74 * messages.</p> 75 */ AddPhoneNumberErrors(const PhoneNumberError & value)76 inline BatchDeletePhoneNumberResult& AddPhoneNumberErrors(const PhoneNumberError& value) { m_phoneNumberErrors.push_back(value); return *this; } 77 78 /** 79 * <p>If the action fails for one or more of the phone numbers in the request, a 80 * list of the phone numbers is returned, along with error codes and error 81 * messages.</p> 82 */ AddPhoneNumberErrors(PhoneNumberError && value)83 inline BatchDeletePhoneNumberResult& AddPhoneNumberErrors(PhoneNumberError&& value) { m_phoneNumberErrors.push_back(std::move(value)); return *this; } 84 85 private: 86 87 Aws::Vector<PhoneNumberError> m_phoneNumberErrors; 88 }; 89 90 } // namespace Model 91 } // namespace Chime 92 } // namespace Aws 93