/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The list of errors returned when errors are encountered during the
* BatchSuspendUser, BatchUnsuspendUser, or BatchUpdateUser
* actions. This includes user IDs, error codes, and error messages.See
* Also:
AWS API
* Reference
The user ID for which the action failed.
*/ inline const Aws::String& GetUserId() const{ return m_userId; } /** *The user ID for which the action failed.
*/ inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; } /** *The user ID for which the action failed.
*/ inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; } /** *The user ID for which the action failed.
*/ inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); } /** *The user ID for which the action failed.
*/ inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); } /** *The user ID for which the action failed.
*/ inline UserError& WithUserId(const Aws::String& value) { SetUserId(value); return *this;} /** *The user ID for which the action failed.
*/ inline UserError& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;} /** *The user ID for which the action failed.
*/ inline UserError& WithUserId(const char* value) { SetUserId(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 UserError& WithErrorCode(const ErrorCode& value) { SetErrorCode(value); return *this;} /** *The error code.
*/ inline UserError& 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 UserError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *The error message.
*/ inline UserError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *The error message.
*/ inline UserError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} private: Aws::String m_userId; bool m_userIdHasBeenSet = false; ErrorCode m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; }; } // namespace Model } // namespace Chime } // namespace Aws