/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ChimeSDKMessaging { namespace Model { /** *

A list of failed member ARNs, error codes, and error messages.

See * Also:

AWS * API Reference

*/ class BatchCreateChannelMembershipError { public: AWS_CHIMESDKMESSAGING_API BatchCreateChannelMembershipError(); AWS_CHIMESDKMESSAGING_API BatchCreateChannelMembershipError(Aws::Utils::Json::JsonView jsonValue); AWS_CHIMESDKMESSAGING_API BatchCreateChannelMembershipError& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CHIMESDKMESSAGING_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The AppInstanceUserArn of the member that the service couldn't * add.

*/ inline const Aws::String& GetMemberArn() const{ return m_memberArn; } /** *

The AppInstanceUserArn of the member that the service couldn't * add.

*/ inline bool MemberArnHasBeenSet() const { return m_memberArnHasBeenSet; } /** *

The AppInstanceUserArn of the member that the service couldn't * add.

*/ inline void SetMemberArn(const Aws::String& value) { m_memberArnHasBeenSet = true; m_memberArn = value; } /** *

The AppInstanceUserArn of the member that the service couldn't * add.

*/ inline void SetMemberArn(Aws::String&& value) { m_memberArnHasBeenSet = true; m_memberArn = std::move(value); } /** *

The AppInstanceUserArn of the member that the service couldn't * add.

*/ inline void SetMemberArn(const char* value) { m_memberArnHasBeenSet = true; m_memberArn.assign(value); } /** *

The AppInstanceUserArn of the member that the service couldn't * add.

*/ inline BatchCreateChannelMembershipError& WithMemberArn(const Aws::String& value) { SetMemberArn(value); return *this;} /** *

The AppInstanceUserArn of the member that the service couldn't * add.

*/ inline BatchCreateChannelMembershipError& WithMemberArn(Aws::String&& value) { SetMemberArn(std::move(value)); return *this;} /** *

The AppInstanceUserArn of the member that the service couldn't * add.

*/ inline BatchCreateChannelMembershipError& WithMemberArn(const char* value) { SetMemberArn(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 BatchCreateChannelMembershipError& WithErrorCode(const ErrorCode& value) { SetErrorCode(value); return *this;} /** *

The error code.

*/ inline BatchCreateChannelMembershipError& 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 BatchCreateChannelMembershipError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

The error message.

*/ inline BatchCreateChannelMembershipError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *

The error message.

*/ inline BatchCreateChannelMembershipError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} private: Aws::String m_memberArn; bool m_memberArnHasBeenSet = false; ErrorCode m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; }; } // namespace Model } // namespace ChimeSDKMessaging } // namespace Aws