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

Describes a WorkSpace that could not be rebooted. (RebootWorkspaces), * rebuilt (RebuildWorkspaces), restored (RestoreWorkspace), * terminated (TerminateWorkspaces), started (StartWorkspaces), or * stopped (StopWorkspaces).

See Also:

AWS * API Reference

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

The identifier of the WorkSpace.

*/ inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; } /** *

The identifier of the WorkSpace.

*/ inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; } /** *

The identifier of the WorkSpace.

*/ inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; } /** *

The identifier of the WorkSpace.

*/ inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); } /** *

The identifier of the WorkSpace.

*/ inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); } /** *

The identifier of the WorkSpace.

*/ inline FailedWorkspaceChangeRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;} /** *

The identifier of the WorkSpace.

*/ inline FailedWorkspaceChangeRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;} /** *

The identifier of the WorkSpace.

*/ inline FailedWorkspaceChangeRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;} /** *

The error code that is returned if the WorkSpace cannot be rebooted.

*/ inline const Aws::String& GetErrorCode() const{ return m_errorCode; } /** *

The error code that is returned if the WorkSpace cannot be rebooted.

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

The error code that is returned if the WorkSpace cannot be rebooted.

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

The error code that is returned if the WorkSpace cannot be rebooted.

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

The error code that is returned if the WorkSpace cannot be rebooted.

*/ inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); } /** *

The error code that is returned if the WorkSpace cannot be rebooted.

*/ inline FailedWorkspaceChangeRequest& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;} /** *

The error code that is returned if the WorkSpace cannot be rebooted.

*/ inline FailedWorkspaceChangeRequest& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;} /** *

The error code that is returned if the WorkSpace cannot be rebooted.

*/ inline FailedWorkspaceChangeRequest& WithErrorCode(const char* value) { SetErrorCode(value); return *this;} /** *

The text of the error message that is returned if the WorkSpace cannot be * rebooted.

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

The text of the error message that is returned if the WorkSpace cannot be * rebooted.

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

The text of the error message that is returned if the WorkSpace cannot be * rebooted.

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

The text of the error message that is returned if the WorkSpace cannot be * rebooted.

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

The text of the error message that is returned if the WorkSpace cannot be * rebooted.

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

The text of the error message that is returned if the WorkSpace cannot be * rebooted.

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

The text of the error message that is returned if the WorkSpace cannot be * rebooted.

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

The text of the error message that is returned if the WorkSpace cannot be * rebooted.

*/ inline FailedWorkspaceChangeRequest& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} private: Aws::String m_workspaceId; bool m_workspaceIdHasBeenSet = false; Aws::String m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; }; } // namespace Model } // namespace WorkSpaces } // namespace Aws