/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace WorkSpaces { namespace Model { class MigrateWorkspaceResult { public: AWS_WORKSPACES_API MigrateWorkspaceResult(); AWS_WORKSPACES_API MigrateWorkspaceResult(const Aws::AmazonWebServiceResult& result); AWS_WORKSPACES_API MigrateWorkspaceResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The original identifier of the WorkSpace that is being migrated.

*/ inline const Aws::String& GetSourceWorkspaceId() const{ return m_sourceWorkspaceId; } /** *

The original identifier of the WorkSpace that is being migrated.

*/ inline void SetSourceWorkspaceId(const Aws::String& value) { m_sourceWorkspaceId = value; } /** *

The original identifier of the WorkSpace that is being migrated.

*/ inline void SetSourceWorkspaceId(Aws::String&& value) { m_sourceWorkspaceId = std::move(value); } /** *

The original identifier of the WorkSpace that is being migrated.

*/ inline void SetSourceWorkspaceId(const char* value) { m_sourceWorkspaceId.assign(value); } /** *

The original identifier of the WorkSpace that is being migrated.

*/ inline MigrateWorkspaceResult& WithSourceWorkspaceId(const Aws::String& value) { SetSourceWorkspaceId(value); return *this;} /** *

The original identifier of the WorkSpace that is being migrated.

*/ inline MigrateWorkspaceResult& WithSourceWorkspaceId(Aws::String&& value) { SetSourceWorkspaceId(std::move(value)); return *this;} /** *

The original identifier of the WorkSpace that is being migrated.

*/ inline MigrateWorkspaceResult& WithSourceWorkspaceId(const char* value) { SetSourceWorkspaceId(value); return *this;} /** *

The new identifier of the WorkSpace that is being migrated. If the migration * does not succeed, the target WorkSpace ID will not be used, and the WorkSpace * will still have the original WorkSpace ID.

*/ inline const Aws::String& GetTargetWorkspaceId() const{ return m_targetWorkspaceId; } /** *

The new identifier of the WorkSpace that is being migrated. If the migration * does not succeed, the target WorkSpace ID will not be used, and the WorkSpace * will still have the original WorkSpace ID.

*/ inline void SetTargetWorkspaceId(const Aws::String& value) { m_targetWorkspaceId = value; } /** *

The new identifier of the WorkSpace that is being migrated. If the migration * does not succeed, the target WorkSpace ID will not be used, and the WorkSpace * will still have the original WorkSpace ID.

*/ inline void SetTargetWorkspaceId(Aws::String&& value) { m_targetWorkspaceId = std::move(value); } /** *

The new identifier of the WorkSpace that is being migrated. If the migration * does not succeed, the target WorkSpace ID will not be used, and the WorkSpace * will still have the original WorkSpace ID.

*/ inline void SetTargetWorkspaceId(const char* value) { m_targetWorkspaceId.assign(value); } /** *

The new identifier of the WorkSpace that is being migrated. If the migration * does not succeed, the target WorkSpace ID will not be used, and the WorkSpace * will still have the original WorkSpace ID.

*/ inline MigrateWorkspaceResult& WithTargetWorkspaceId(const Aws::String& value) { SetTargetWorkspaceId(value); return *this;} /** *

The new identifier of the WorkSpace that is being migrated. If the migration * does not succeed, the target WorkSpace ID will not be used, and the WorkSpace * will still have the original WorkSpace ID.

*/ inline MigrateWorkspaceResult& WithTargetWorkspaceId(Aws::String&& value) { SetTargetWorkspaceId(std::move(value)); return *this;} /** *

The new identifier of the WorkSpace that is being migrated. If the migration * does not succeed, the target WorkSpace ID will not be used, and the WorkSpace * will still have the original WorkSpace ID.

*/ inline MigrateWorkspaceResult& WithTargetWorkspaceId(const char* value) { SetTargetWorkspaceId(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline MigrateWorkspaceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline MigrateWorkspaceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline MigrateWorkspaceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_sourceWorkspaceId; Aws::String m_targetWorkspaceId; Aws::String m_requestId; }; } // namespace Model } // namespace WorkSpaces } // namespace Aws