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

Describes the error that is returned when a user can’t be associated with or * disassociated from a stack.

See Also:

AWS * API Reference

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

Information about the user and associated stack.

*/ inline const UserStackAssociation& GetUserStackAssociation() const{ return m_userStackAssociation; } /** *

Information about the user and associated stack.

*/ inline bool UserStackAssociationHasBeenSet() const { return m_userStackAssociationHasBeenSet; } /** *

Information about the user and associated stack.

*/ inline void SetUserStackAssociation(const UserStackAssociation& value) { m_userStackAssociationHasBeenSet = true; m_userStackAssociation = value; } /** *

Information about the user and associated stack.

*/ inline void SetUserStackAssociation(UserStackAssociation&& value) { m_userStackAssociationHasBeenSet = true; m_userStackAssociation = std::move(value); } /** *

Information about the user and associated stack.

*/ inline UserStackAssociationError& WithUserStackAssociation(const UserStackAssociation& value) { SetUserStackAssociation(value); return *this;} /** *

Information about the user and associated stack.

*/ inline UserStackAssociationError& WithUserStackAssociation(UserStackAssociation&& value) { SetUserStackAssociation(std::move(value)); return *this;} /** *

The error code for the error that is returned when a user can’t be associated * with or disassociated from a stack.

*/ inline const UserStackAssociationErrorCode& GetErrorCode() const{ return m_errorCode; } /** *

The error code for the error that is returned when a user can’t be associated * with or disassociated from a stack.

*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *

The error code for the error that is returned when a user can’t be associated * with or disassociated from a stack.

*/ inline void SetErrorCode(const UserStackAssociationErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *

The error code for the error that is returned when a user can’t be associated * with or disassociated from a stack.

*/ inline void SetErrorCode(UserStackAssociationErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *

The error code for the error that is returned when a user can’t be associated * with or disassociated from a stack.

*/ inline UserStackAssociationError& WithErrorCode(const UserStackAssociationErrorCode& value) { SetErrorCode(value); return *this;} /** *

The error code for the error that is returned when a user can’t be associated * with or disassociated from a stack.

*/ inline UserStackAssociationError& WithErrorCode(UserStackAssociationErrorCode&& value) { SetErrorCode(std::move(value)); return *this;} /** *

The error message for the error that is returned when a user can’t be * associated with or disassociated from a stack.

*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *

The error message for the error that is returned when a user can’t be * associated with or disassociated from a stack.

*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *

The error message for the error that is returned when a user can’t be * associated with or disassociated from a stack.

*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *

The error message for the error that is returned when a user can’t be * associated with or disassociated from a stack.

*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *

The error message for the error that is returned when a user can’t be * associated with or disassociated from a stack.

*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *

The error message for the error that is returned when a user can’t be * associated with or disassociated from a stack.

*/ inline UserStackAssociationError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

The error message for the error that is returned when a user can’t be * associated with or disassociated from a stack.

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

The error message for the error that is returned when a user can’t be * associated with or disassociated from a stack.

*/ inline UserStackAssociationError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} private: UserStackAssociation m_userStackAssociation; bool m_userStackAssociationHasBeenSet = false; UserStackAssociationErrorCode m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; }; } // namespace Model } // namespace AppStream } // namespace Aws