/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Omics { namespace Model { class GetRunTaskResult { public: AWS_OMICS_API GetRunTaskResult(); AWS_OMICS_API GetRunTaskResult(const Aws::AmazonWebServiceResult& result); AWS_OMICS_API GetRunTaskResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The task's ID.

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

The task's ID.

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

The task's ID.

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

The task's ID.

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

The task's ID.

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

The task's ID.

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

The task's ID.

*/ inline GetRunTaskResult& 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 void SetStatus(const TaskStatus& value) { m_status = value; } /** *

The task's status.

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

The task's status.

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

The task's status.

*/ inline GetRunTaskResult& 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 void SetName(const Aws::String& value) { m_name = value; } /** *

The task's name.

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

The task's name.

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

The task's name.

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

The task's name.

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

The task's name.

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

The task's CPU usage.

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

The task's CPU usage.

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

The task's CPU usage.

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

The task's memory use in gigabytes.

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

The task's memory use in gigabytes.

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

The task's memory use in gigabytes.

*/ inline GetRunTaskResult& 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 void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; } /** *

When the task was created.

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

When the task was created.

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

When the task was created.

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

The task's start time.

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

The task's start time.

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

The task's start time.

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

The task's start time.

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

The task's start time.

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

The task's stop time.

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

The task's stop time.

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

The task's stop time.

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

The task's stop time.

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

The task's stop time.

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

The task's status message.

*/ inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; } /** *

The task's status message.

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

The task's status message.

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

The task's status message.

*/ inline void SetStatusMessage(const char* value) { m_statusMessage.assign(value); } /** *

The task's status message.

*/ inline GetRunTaskResult& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} /** *

The task's status message.

*/ inline GetRunTaskResult& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} /** *

The task's status message.

*/ inline GetRunTaskResult& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} /** *

The task's log stream.

*/ inline const Aws::String& GetLogStream() const{ return m_logStream; } /** *

The task's log stream.

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

The task's log stream.

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

The task's log stream.

*/ inline void SetLogStream(const char* value) { m_logStream.assign(value); } /** *

The task's log stream.

*/ inline GetRunTaskResult& WithLogStream(const Aws::String& value) { SetLogStream(value); return *this;} /** *

The task's log stream.

*/ inline GetRunTaskResult& WithLogStream(Aws::String&& value) { SetLogStream(std::move(value)); return *this;} /** *

The task's log stream.

*/ inline GetRunTaskResult& WithLogStream(const char* value) { SetLogStream(value); return *this;} /** *

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

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

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

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

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

*/ inline GetRunTaskResult& WithGpus(int value) { SetGpus(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 GetRunTaskResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetRunTaskResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetRunTaskResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_taskId; TaskStatus m_status; Aws::String m_name; int m_cpus; int m_memory; Aws::Utils::DateTime m_creationTime; Aws::Utils::DateTime m_startTime; Aws::Utils::DateTime m_stopTime; Aws::String m_statusMessage; Aws::String m_logStream; int m_gpus; Aws::String m_requestId; }; } // namespace Model } // namespace Omics } // namespace Aws