/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Chime { namespace Model { class AWS_CHIME_API BatchCreateRoomMembershipResult { public: BatchCreateRoomMembershipResult(); BatchCreateRoomMembershipResult(const Aws::AmazonWebServiceResult& result); BatchCreateRoomMembershipResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

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

*/ inline const Aws::Vector& GetErrors() const{ return m_errors; } /** *

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

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

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

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

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

*/ inline BatchCreateRoomMembershipResult& WithErrors(const Aws::Vector& value) { SetErrors(value); return *this;} /** *

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

*/ inline BatchCreateRoomMembershipResult& WithErrors(Aws::Vector&& value) { SetErrors(std::move(value)); return *this;} /** *

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

*/ inline BatchCreateRoomMembershipResult& AddErrors(const MemberError& value) { m_errors.push_back(value); return *this; } /** *

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

*/ inline BatchCreateRoomMembershipResult& AddErrors(MemberError&& value) { m_errors.push_back(std::move(value)); return *this; } private: Aws::Vector m_errors; }; } // namespace Model } // namespace Chime } // namespace Aws