/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Task object encapsulating task information.See Also:
AWS
* API Reference
Status of the task - Not Started, In-Progress, Complete.
*/ inline const Status& GetStatus() const{ return m_status; } /** *Status of the task - Not Started, In-Progress, Complete.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *Status of the task - Not Started, In-Progress, Complete.
*/ inline void SetStatus(const Status& value) { m_statusHasBeenSet = true; m_status = value; } /** *Status of the task - Not Started, In-Progress, Complete.
*/ inline void SetStatus(Status&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *Status of the task - Not Started, In-Progress, Complete.
*/ inline Task& WithStatus(const Status& value) { SetStatus(value); return *this;} /** *Status of the task - Not Started, In-Progress, Complete.
*/ inline Task& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;} /** *Details of task status as notified by a migration tool. A tool might use this * field to provide clarifying information about the status that is unique to that * tool or that explains an error state.
*/ inline const Aws::String& GetStatusDetail() const{ return m_statusDetail; } /** *Details of task status as notified by a migration tool. A tool might use this * field to provide clarifying information about the status that is unique to that * tool or that explains an error state.
*/ inline bool StatusDetailHasBeenSet() const { return m_statusDetailHasBeenSet; } /** *Details of task status as notified by a migration tool. A tool might use this * field to provide clarifying information about the status that is unique to that * tool or that explains an error state.
*/ inline void SetStatusDetail(const Aws::String& value) { m_statusDetailHasBeenSet = true; m_statusDetail = value; } /** *Details of task status as notified by a migration tool. A tool might use this * field to provide clarifying information about the status that is unique to that * tool or that explains an error state.
*/ inline void SetStatusDetail(Aws::String&& value) { m_statusDetailHasBeenSet = true; m_statusDetail = std::move(value); } /** *Details of task status as notified by a migration tool. A tool might use this * field to provide clarifying information about the status that is unique to that * tool or that explains an error state.
*/ inline void SetStatusDetail(const char* value) { m_statusDetailHasBeenSet = true; m_statusDetail.assign(value); } /** *Details of task status as notified by a migration tool. A tool might use this * field to provide clarifying information about the status that is unique to that * tool or that explains an error state.
*/ inline Task& WithStatusDetail(const Aws::String& value) { SetStatusDetail(value); return *this;} /** *Details of task status as notified by a migration tool. A tool might use this * field to provide clarifying information about the status that is unique to that * tool or that explains an error state.
*/ inline Task& WithStatusDetail(Aws::String&& value) { SetStatusDetail(std::move(value)); return *this;} /** *Details of task status as notified by a migration tool. A tool might use this * field to provide clarifying information about the status that is unique to that * tool or that explains an error state.
*/ inline Task& WithStatusDetail(const char* value) { SetStatusDetail(value); return *this;} /** *Indication of the percentage completion of the task.
*/ inline int GetProgressPercent() const{ return m_progressPercent; } /** *Indication of the percentage completion of the task.
*/ inline bool ProgressPercentHasBeenSet() const { return m_progressPercentHasBeenSet; } /** *Indication of the percentage completion of the task.
*/ inline void SetProgressPercent(int value) { m_progressPercentHasBeenSet = true; m_progressPercent = value; } /** *Indication of the percentage completion of the task.
*/ inline Task& WithProgressPercent(int value) { SetProgressPercent(value); return *this;} private: Status m_status; bool m_statusHasBeenSet = false; Aws::String m_statusDetail; bool m_statusDetailHasBeenSet = false; int m_progressPercent; bool m_progressPercentHasBeenSet = false; }; } // namespace Model } // namespace MigrationHub } // namespace Aws