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

A workflow run task.

See Also:

AWS * API Reference

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

The task's ID.

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

The task's ID.

*/ inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; } /** *

The task's ID.

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

The task's ID.

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

The task's ID.

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

The task's ID.

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

The task's ID.

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

The task's ID.

*/ inline TaskListItem& WithTaskId(const char* value) { SetTaskId(value); return *this;} /** *

The task's status.

*/ inline const TaskStatus& GetStatus() const{ return m_status; } /** *

The task's status.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The task's status.

*/ inline void SetStatus(const TaskStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The task's status.

*/ inline void SetStatus(TaskStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The task's status.

*/ inline TaskListItem& WithStatus(const TaskStatus& value) { SetStatus(value); return *this;} /** *

The task's status.

*/ inline TaskListItem& WithStatus(TaskStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The task's name.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The task's name.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The task's name.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The task's name.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The task's name.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The task's name.

*/ inline TaskListItem& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The task's name.

*/ inline TaskListItem& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The task's name.

*/ inline TaskListItem& WithName(const char* value) { SetName(value); return *this;} /** *

The task's CPU count.

*/ inline int GetCpus() const{ return m_cpus; } /** *

The task's CPU count.

*/ inline bool CpusHasBeenSet() const { return m_cpusHasBeenSet; } /** *

The task's CPU count.

*/ inline void SetCpus(int value) { m_cpusHasBeenSet = true; m_cpus = value; } /** *

The task's CPU count.

*/ inline TaskListItem& WithCpus(int value) { SetCpus(value); return *this;} /** *

The task's memory use in gigabyes.

*/ inline int GetMemory() const{ return m_memory; } /** *

The task's memory use in gigabyes.

*/ inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; } /** *

The task's memory use in gigabyes.

*/ inline void SetMemory(int value) { m_memoryHasBeenSet = true; m_memory = value; } /** *

The task's memory use in gigabyes.

*/ inline TaskListItem& WithMemory(int value) { SetMemory(value); return *this;} /** *

When the task was created.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

When the task was created.

*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

When the task was created.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *

When the task was created.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *

When the task was created.

*/ inline TaskListItem& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

When the task was created.

*/ inline TaskListItem& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *

When the task started.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

When the task started.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

When the task started.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

When the task started.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

When the task started.

*/ inline TaskListItem& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

When the task started.

*/ inline TaskListItem& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

When the task stopped.

*/ inline const Aws::Utils::DateTime& GetStopTime() const{ return m_stopTime; } /** *

When the task stopped.

*/ inline bool StopTimeHasBeenSet() const { return m_stopTimeHasBeenSet; } /** *

When the task stopped.

*/ inline void SetStopTime(const Aws::Utils::DateTime& value) { m_stopTimeHasBeenSet = true; m_stopTime = value; } /** *

When the task stopped.

*/ inline void SetStopTime(Aws::Utils::DateTime&& value) { m_stopTimeHasBeenSet = true; m_stopTime = std::move(value); } /** *

When the task stopped.

*/ inline TaskListItem& WithStopTime(const Aws::Utils::DateTime& value) { SetStopTime(value); return *this;} /** *

When the task stopped.

*/ inline TaskListItem& WithStopTime(Aws::Utils::DateTime&& value) { SetStopTime(std::move(value)); return *this;} /** *

The number of Graphics Processing Units (GPU) specified for the task.

*/ inline int GetGpus() const{ return m_gpus; } /** *

The number of Graphics Processing Units (GPU) specified for the task.

*/ inline bool GpusHasBeenSet() const { return m_gpusHasBeenSet; } /** *

The number of Graphics Processing Units (GPU) specified for the task.

*/ inline void SetGpus(int value) { m_gpusHasBeenSet = true; m_gpus = value; } /** *

The number of Graphics Processing Units (GPU) specified for the task.

*/ inline TaskListItem& WithGpus(int value) { SetGpus(value); return *this;} private: Aws::String m_taskId; bool m_taskIdHasBeenSet = false; TaskStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; int m_cpus; bool m_cpusHasBeenSet = false; int m_memory; bool m_memoryHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_stopTime; bool m_stopTimeHasBeenSet = false; int m_gpus; bool m_gpusHasBeenSet = false; }; } // namespace Model } // namespace Omics } // namespace Aws