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

The unique identifier of the task run.

*/ inline const Aws::String& GetTransformId() const{ return m_transformId; } /** *

The unique identifier of the task run.

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

The unique identifier of the task run.

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

The unique identifier of the task run.

*/ inline void SetTransformId(const char* value) { m_transformId.assign(value); } /** *

The unique identifier of the task run.

*/ inline GetMLTaskRunResult& WithTransformId(const Aws::String& value) { SetTransformId(value); return *this;} /** *

The unique identifier of the task run.

*/ inline GetMLTaskRunResult& WithTransformId(Aws::String&& value) { SetTransformId(std::move(value)); return *this;} /** *

The unique identifier of the task run.

*/ inline GetMLTaskRunResult& WithTransformId(const char* value) { SetTransformId(value); return *this;} /** *

The unique run identifier associated with this run.

*/ inline const Aws::String& GetTaskRunId() const{ return m_taskRunId; } /** *

The unique run identifier associated with this run.

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

The unique run identifier associated with this run.

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

The unique run identifier associated with this run.

*/ inline void SetTaskRunId(const char* value) { m_taskRunId.assign(value); } /** *

The unique run identifier associated with this run.

*/ inline GetMLTaskRunResult& WithTaskRunId(const Aws::String& value) { SetTaskRunId(value); return *this;} /** *

The unique run identifier associated with this run.

*/ inline GetMLTaskRunResult& WithTaskRunId(Aws::String&& value) { SetTaskRunId(std::move(value)); return *this;} /** *

The unique run identifier associated with this run.

*/ inline GetMLTaskRunResult& WithTaskRunId(const char* value) { SetTaskRunId(value); return *this;} /** *

The status for this task run.

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

The status for this task run.

*/ inline void SetStatus(const TaskStatusType& value) { m_status = value; } /** *

The status for this task run.

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

The status for this task run.

*/ inline GetMLTaskRunResult& WithStatus(const TaskStatusType& value) { SetStatus(value); return *this;} /** *

The status for this task run.

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

The names of the log groups that are associated with the task run.

*/ inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; } /** *

The names of the log groups that are associated with the task run.

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

The names of the log groups that are associated with the task run.

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

The names of the log groups that are associated with the task run.

*/ inline void SetLogGroupName(const char* value) { m_logGroupName.assign(value); } /** *

The names of the log groups that are associated with the task run.

*/ inline GetMLTaskRunResult& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;} /** *

The names of the log groups that are associated with the task run.

*/ inline GetMLTaskRunResult& WithLogGroupName(Aws::String&& value) { SetLogGroupName(std::move(value)); return *this;} /** *

The names of the log groups that are associated with the task run.

*/ inline GetMLTaskRunResult& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;} /** *

The list of properties that are associated with the task run.

*/ inline const TaskRunProperties& GetProperties() const{ return m_properties; } /** *

The list of properties that are associated with the task run.

*/ inline void SetProperties(const TaskRunProperties& value) { m_properties = value; } /** *

The list of properties that are associated with the task run.

*/ inline void SetProperties(TaskRunProperties&& value) { m_properties = std::move(value); } /** *

The list of properties that are associated with the task run.

*/ inline GetMLTaskRunResult& WithProperties(const TaskRunProperties& value) { SetProperties(value); return *this;} /** *

The list of properties that are associated with the task run.

*/ inline GetMLTaskRunResult& WithProperties(TaskRunProperties&& value) { SetProperties(std::move(value)); return *this;} /** *

The error strings that are associated with the task run.

*/ inline const Aws::String& GetErrorString() const{ return m_errorString; } /** *

The error strings that are associated with the task run.

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

The error strings that are associated with the task run.

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

The error strings that are associated with the task run.

*/ inline void SetErrorString(const char* value) { m_errorString.assign(value); } /** *

The error strings that are associated with the task run.

*/ inline GetMLTaskRunResult& WithErrorString(const Aws::String& value) { SetErrorString(value); return *this;} /** *

The error strings that are associated with the task run.

*/ inline GetMLTaskRunResult& WithErrorString(Aws::String&& value) { SetErrorString(std::move(value)); return *this;} /** *

The error strings that are associated with the task run.

*/ inline GetMLTaskRunResult& WithErrorString(const char* value) { SetErrorString(value); return *this;} /** *

The date and time when this task run started.

*/ inline const Aws::Utils::DateTime& GetStartedOn() const{ return m_startedOn; } /** *

The date and time when this task run started.

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

The date and time when this task run started.

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

The date and time when this task run started.

*/ inline GetMLTaskRunResult& WithStartedOn(const Aws::Utils::DateTime& value) { SetStartedOn(value); return *this;} /** *

The date and time when this task run started.

*/ inline GetMLTaskRunResult& WithStartedOn(Aws::Utils::DateTime&& value) { SetStartedOn(std::move(value)); return *this;} /** *

The date and time when this task run was last modified.

*/ inline const Aws::Utils::DateTime& GetLastModifiedOn() const{ return m_lastModifiedOn; } /** *

The date and time when this task run was last modified.

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

The date and time when this task run was last modified.

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

The date and time when this task run was last modified.

*/ inline GetMLTaskRunResult& WithLastModifiedOn(const Aws::Utils::DateTime& value) { SetLastModifiedOn(value); return *this;} /** *

The date and time when this task run was last modified.

*/ inline GetMLTaskRunResult& WithLastModifiedOn(Aws::Utils::DateTime&& value) { SetLastModifiedOn(std::move(value)); return *this;} /** *

The date and time when this task run was completed.

*/ inline const Aws::Utils::DateTime& GetCompletedOn() const{ return m_completedOn; } /** *

The date and time when this task run was completed.

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

The date and time when this task run was completed.

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

The date and time when this task run was completed.

*/ inline GetMLTaskRunResult& WithCompletedOn(const Aws::Utils::DateTime& value) { SetCompletedOn(value); return *this;} /** *

The date and time when this task run was completed.

*/ inline GetMLTaskRunResult& WithCompletedOn(Aws::Utils::DateTime&& value) { SetCompletedOn(std::move(value)); return *this;} /** *

The amount of time (in seconds) that the task run consumed resources.

*/ inline int GetExecutionTime() const{ return m_executionTime; } /** *

The amount of time (in seconds) that the task run consumed resources.

*/ inline void SetExecutionTime(int value) { m_executionTime = value; } /** *

The amount of time (in seconds) that the task run consumed resources.

*/ inline GetMLTaskRunResult& WithExecutionTime(int value) { SetExecutionTime(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 GetMLTaskRunResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetMLTaskRunResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetMLTaskRunResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_transformId; Aws::String m_taskRunId; TaskStatusType m_status; Aws::String m_logGroupName; TaskRunProperties m_properties; Aws::String m_errorString; Aws::Utils::DateTime m_startedOn; Aws::Utils::DateTime m_lastModifiedOn; Aws::Utils::DateTime m_completedOn; int m_executionTime; Aws::String m_requestId; }; } // namespace Model } // namespace Glue } // namespace Aws