/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a WorkSpace that cannot be created.See Also:
AWS
* API Reference
Information about the WorkSpace.
*/ inline const WorkspaceRequest& GetWorkspaceRequest() const{ return m_workspaceRequest; } /** *Information about the WorkSpace.
*/ inline bool WorkspaceRequestHasBeenSet() const { return m_workspaceRequestHasBeenSet; } /** *Information about the WorkSpace.
*/ inline void SetWorkspaceRequest(const WorkspaceRequest& value) { m_workspaceRequestHasBeenSet = true; m_workspaceRequest = value; } /** *Information about the WorkSpace.
*/ inline void SetWorkspaceRequest(WorkspaceRequest&& value) { m_workspaceRequestHasBeenSet = true; m_workspaceRequest = std::move(value); } /** *Information about the WorkSpace.
*/ inline FailedCreateWorkspaceRequest& WithWorkspaceRequest(const WorkspaceRequest& value) { SetWorkspaceRequest(value); return *this;} /** *Information about the WorkSpace.
*/ inline FailedCreateWorkspaceRequest& WithWorkspaceRequest(WorkspaceRequest&& value) { SetWorkspaceRequest(std::move(value)); return *this;} /** *The error code that is returned if the WorkSpace cannot be created.
*/ inline const Aws::String& GetErrorCode() const{ return m_errorCode; } /** *The error code that is returned if the WorkSpace cannot be created.
*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *The error code that is returned if the WorkSpace cannot be created.
*/ inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *The error code that is returned if the WorkSpace cannot be created.
*/ 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 created.
*/ inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); } /** *The error code that is returned if the WorkSpace cannot be created.
*/ inline FailedCreateWorkspaceRequest& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;} /** *The error code that is returned if the WorkSpace cannot be created.
*/ inline FailedCreateWorkspaceRequest& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;} /** *The error code that is returned if the WorkSpace cannot be created.
*/ inline FailedCreateWorkspaceRequest& WithErrorCode(const char* value) { SetErrorCode(value); return *this;} /** *The text of the error message that is returned if the WorkSpace cannot be * created.
*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *The text of the error message that is returned if the WorkSpace cannot be * created.
*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *The text of the error message that is returned if the WorkSpace cannot be * created.
*/ 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 * created.
*/ 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 * created.
*/ 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 * created.
*/ inline FailedCreateWorkspaceRequest& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *The text of the error message that is returned if the WorkSpace cannot be * created.
*/ inline FailedCreateWorkspaceRequest& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *The text of the error message that is returned if the WorkSpace cannot be * created.
*/ inline FailedCreateWorkspaceRequest& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} private: WorkspaceRequest m_workspaceRequest; bool m_workspaceRequestHasBeenSet = false; Aws::String m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; }; } // namespace Model } // namespace WorkSpaces } // namespace Aws