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/AWSString.h> 9 #include <aws/chime/model/ErrorCode.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace Utils 15 { 16 namespace Json 17 { 18 class JsonValue; 19 class JsonView; 20 } // namespace Json 21 } // namespace Utils 22 namespace Chime 23 { 24 namespace Model 25 { 26 27 /** 28 * <p>A list of failed member ARNs, error codes, and error messages.</p><p><h3>See 29 * Also:</h3> <a 30 * href="http://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/BatchCreateChannelMembershipError">AWS 31 * API Reference</a></p> 32 */ 33 class AWS_CHIME_API BatchCreateChannelMembershipError 34 { 35 public: 36 BatchCreateChannelMembershipError(); 37 BatchCreateChannelMembershipError(Aws::Utils::Json::JsonView jsonValue); 38 BatchCreateChannelMembershipError& operator=(Aws::Utils::Json::JsonView jsonValue); 39 Aws::Utils::Json::JsonValue Jsonize() const; 40 41 42 /** 43 * <p>The ARN of the member that the service couldn't add.</p> 44 */ GetMemberArn()45 inline const Aws::String& GetMemberArn() const{ return m_memberArn; } 46 47 /** 48 * <p>The ARN of the member that the service couldn't add.</p> 49 */ MemberArnHasBeenSet()50 inline bool MemberArnHasBeenSet() const { return m_memberArnHasBeenSet; } 51 52 /** 53 * <p>The ARN of the member that the service couldn't add.</p> 54 */ SetMemberArn(const Aws::String & value)55 inline void SetMemberArn(const Aws::String& value) { m_memberArnHasBeenSet = true; m_memberArn = value; } 56 57 /** 58 * <p>The ARN of the member that the service couldn't add.</p> 59 */ SetMemberArn(Aws::String && value)60 inline void SetMemberArn(Aws::String&& value) { m_memberArnHasBeenSet = true; m_memberArn = std::move(value); } 61 62 /** 63 * <p>The ARN of the member that the service couldn't add.</p> 64 */ SetMemberArn(const char * value)65 inline void SetMemberArn(const char* value) { m_memberArnHasBeenSet = true; m_memberArn.assign(value); } 66 67 /** 68 * <p>The ARN of the member that the service couldn't add.</p> 69 */ WithMemberArn(const Aws::String & value)70 inline BatchCreateChannelMembershipError& WithMemberArn(const Aws::String& value) { SetMemberArn(value); return *this;} 71 72 /** 73 * <p>The ARN of the member that the service couldn't add.</p> 74 */ WithMemberArn(Aws::String && value)75 inline BatchCreateChannelMembershipError& WithMemberArn(Aws::String&& value) { SetMemberArn(std::move(value)); return *this;} 76 77 /** 78 * <p>The ARN of the member that the service couldn't add.</p> 79 */ WithMemberArn(const char * value)80 inline BatchCreateChannelMembershipError& WithMemberArn(const char* value) { SetMemberArn(value); return *this;} 81 82 83 /** 84 * <p>The error code.</p> 85 */ GetErrorCode()86 inline const ErrorCode& GetErrorCode() const{ return m_errorCode; } 87 88 /** 89 * <p>The error code.</p> 90 */ ErrorCodeHasBeenSet()91 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } 92 93 /** 94 * <p>The error code.</p> 95 */ SetErrorCode(const ErrorCode & value)96 inline void SetErrorCode(const ErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } 97 98 /** 99 * <p>The error code.</p> 100 */ SetErrorCode(ErrorCode && value)101 inline void SetErrorCode(ErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } 102 103 /** 104 * <p>The error code.</p> 105 */ WithErrorCode(const ErrorCode & value)106 inline BatchCreateChannelMembershipError& WithErrorCode(const ErrorCode& value) { SetErrorCode(value); return *this;} 107 108 /** 109 * <p>The error code.</p> 110 */ WithErrorCode(ErrorCode && value)111 inline BatchCreateChannelMembershipError& WithErrorCode(ErrorCode&& value) { SetErrorCode(std::move(value)); return *this;} 112 113 114 /** 115 * <p>The error message.</p> 116 */ GetErrorMessage()117 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } 118 119 /** 120 * <p>The error message.</p> 121 */ ErrorMessageHasBeenSet()122 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } 123 124 /** 125 * <p>The error message.</p> 126 */ SetErrorMessage(const Aws::String & value)127 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } 128 129 /** 130 * <p>The error message.</p> 131 */ SetErrorMessage(Aws::String && value)132 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } 133 134 /** 135 * <p>The error message.</p> 136 */ SetErrorMessage(const char * value)137 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } 138 139 /** 140 * <p>The error message.</p> 141 */ WithErrorMessage(const Aws::String & value)142 inline BatchCreateChannelMembershipError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} 143 144 /** 145 * <p>The error message.</p> 146 */ WithErrorMessage(Aws::String && value)147 inline BatchCreateChannelMembershipError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} 148 149 /** 150 * <p>The error message.</p> 151 */ WithErrorMessage(const char * value)152 inline BatchCreateChannelMembershipError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} 153 154 private: 155 156 Aws::String m_memberArn; 157 bool m_memberArnHasBeenSet; 158 159 ErrorCode m_errorCode; 160 bool m_errorCodeHasBeenSet; 161 162 Aws::String m_errorMessage; 163 bool m_errorMessageHasBeenSet; 164 }; 165 166 } // namespace Model 167 } // namespace Chime 168 } // namespace Aws 169