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

The lifecycle status of the data repository task, as follows:

  • *

    PENDING - Amazon FSx has not started the task.

  • *

    EXECUTING - Amazon FSx is processing the task.

  • *

    FAILED - Amazon FSx was not able to complete the task. For * example, there may be files the task failed to process. The * DataRepositoryTaskFailureDetails property provides more information about * task failures.

  • SUCCEEDED - FSx completed the * task successfully.

  • CANCELED - Amazon FSx * canceled the task and it did not complete.

  • * CANCELING - FSx is in process of canceling the task.

  • *
*/ inline const DataRepositoryTaskLifecycle& GetLifecycle() const{ return m_lifecycle; } /** *

The lifecycle status of the data repository task, as follows:

  • *

    PENDING - Amazon FSx has not started the task.

  • *

    EXECUTING - Amazon FSx is processing the task.

  • *

    FAILED - Amazon FSx was not able to complete the task. For * example, there may be files the task failed to process. The * DataRepositoryTaskFailureDetails property provides more information about * task failures.

  • SUCCEEDED - FSx completed the * task successfully.

  • CANCELED - Amazon FSx * canceled the task and it did not complete.

  • * CANCELING - FSx is in process of canceling the task.

  • *
*/ inline void SetLifecycle(const DataRepositoryTaskLifecycle& value) { m_lifecycle = value; } /** *

The lifecycle status of the data repository task, as follows:

  • *

    PENDING - Amazon FSx has not started the task.

  • *

    EXECUTING - Amazon FSx is processing the task.

  • *

    FAILED - Amazon FSx was not able to complete the task. For * example, there may be files the task failed to process. The * DataRepositoryTaskFailureDetails property provides more information about * task failures.

  • SUCCEEDED - FSx completed the * task successfully.

  • CANCELED - Amazon FSx * canceled the task and it did not complete.

  • * CANCELING - FSx is in process of canceling the task.

  • *
*/ inline void SetLifecycle(DataRepositoryTaskLifecycle&& value) { m_lifecycle = std::move(value); } /** *

The lifecycle status of the data repository task, as follows:

  • *

    PENDING - Amazon FSx has not started the task.

  • *

    EXECUTING - Amazon FSx is processing the task.

  • *

    FAILED - Amazon FSx was not able to complete the task. For * example, there may be files the task failed to process. The * DataRepositoryTaskFailureDetails property provides more information about * task failures.

  • SUCCEEDED - FSx completed the * task successfully.

  • CANCELED - Amazon FSx * canceled the task and it did not complete.

  • * CANCELING - FSx is in process of canceling the task.

  • *
*/ inline CancelDataRepositoryTaskResult& WithLifecycle(const DataRepositoryTaskLifecycle& value) { SetLifecycle(value); return *this;} /** *

The lifecycle status of the data repository task, as follows:

  • *

    PENDING - Amazon FSx has not started the task.

  • *

    EXECUTING - Amazon FSx is processing the task.

  • *

    FAILED - Amazon FSx was not able to complete the task. For * example, there may be files the task failed to process. The * DataRepositoryTaskFailureDetails property provides more information about * task failures.

  • SUCCEEDED - FSx completed the * task successfully.

  • CANCELED - Amazon FSx * canceled the task and it did not complete.

  • * CANCELING - FSx is in process of canceling the task.

  • *
*/ inline CancelDataRepositoryTaskResult& WithLifecycle(DataRepositoryTaskLifecycle&& value) { SetLifecycle(std::move(value)); return *this;} /** *

The ID of the task being canceled.

*/ inline const Aws::String& GetTaskId() const{ return m_taskId; } /** *

The ID of the task being canceled.

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

The ID of the task being canceled.

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

The ID of the task being canceled.

*/ inline void SetTaskId(const char* value) { m_taskId.assign(value); } /** *

The ID of the task being canceled.

*/ inline CancelDataRepositoryTaskResult& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;} /** *

The ID of the task being canceled.

*/ inline CancelDataRepositoryTaskResult& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;} /** *

The ID of the task being canceled.

*/ inline CancelDataRepositoryTaskResult& WithTaskId(const char* value) { SetTaskId(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 CancelDataRepositoryTaskResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CancelDataRepositoryTaskResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CancelDataRepositoryTaskResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: DataRepositoryTaskLifecycle m_lifecycle; Aws::String m_taskId; Aws::String m_requestId; }; } // namespace Model } // namespace FSx } // namespace Aws