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

The list of channel memberships in the response.

*/ inline const BatchChannelMemberships& GetBatchChannelMemberships() const{ return m_batchChannelMemberships; } /** *

The list of channel memberships in the response.

*/ inline void SetBatchChannelMemberships(const BatchChannelMemberships& value) { m_batchChannelMemberships = value; } /** *

The list of channel memberships in the response.

*/ inline void SetBatchChannelMemberships(BatchChannelMemberships&& value) { m_batchChannelMemberships = std::move(value); } /** *

The list of channel memberships in the response.

*/ inline BatchCreateChannelMembershipResult& WithBatchChannelMemberships(const BatchChannelMemberships& value) { SetBatchChannelMemberships(value); return *this;} /** *

The list of channel memberships in the response.

*/ inline BatchCreateChannelMembershipResult& WithBatchChannelMemberships(BatchChannelMemberships&& value) { SetBatchChannelMemberships(std::move(value)); return *this;} /** *

If the action fails for one or more of the memberships in the request, a list * of the memberships 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 memberships in the request, a list * of the memberships 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 memberships in the request, a list * of the memberships 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 memberships in the request, a list * of the memberships is returned, along with error codes and error messages.

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

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

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

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

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

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

*/ inline BatchCreateChannelMembershipResult& AddErrors(BatchCreateChannelMembershipError&& value) { m_errors.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 BatchCreateChannelMembershipResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline BatchCreateChannelMembershipResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline BatchCreateChannelMembershipResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: BatchChannelMemberships m_batchChannelMemberships; Aws::Vector m_errors; Aws::String m_requestId; }; } // namespace Model } // namespace ChimeSDKMessaging } // namespace Aws