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

A workflow run is an execution of a workflow providing all the runtime * information.

See Also:

AWS * API Reference

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

Name of the workflow that was run.

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

Name of the workflow that was run.

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

Name of the workflow that was run.

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

Name of the workflow that was run.

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

Name of the workflow that was run.

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

Name of the workflow that was run.

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

Name of the workflow that was run.

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

Name of the workflow that was run.

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

The ID of this workflow run.

*/ inline const Aws::String& GetWorkflowRunId() const{ return m_workflowRunId; } /** *

The ID of this workflow run.

*/ inline bool WorkflowRunIdHasBeenSet() const { return m_workflowRunIdHasBeenSet; } /** *

The ID of this workflow run.

*/ inline void SetWorkflowRunId(const Aws::String& value) { m_workflowRunIdHasBeenSet = true; m_workflowRunId = value; } /** *

The ID of this workflow run.

*/ inline void SetWorkflowRunId(Aws::String&& value) { m_workflowRunIdHasBeenSet = true; m_workflowRunId = std::move(value); } /** *

The ID of this workflow run.

*/ inline void SetWorkflowRunId(const char* value) { m_workflowRunIdHasBeenSet = true; m_workflowRunId.assign(value); } /** *

The ID of this workflow run.

*/ inline WorkflowRun& WithWorkflowRunId(const Aws::String& value) { SetWorkflowRunId(value); return *this;} /** *

The ID of this workflow run.

*/ inline WorkflowRun& WithWorkflowRunId(Aws::String&& value) { SetWorkflowRunId(std::move(value)); return *this;} /** *

The ID of this workflow run.

*/ inline WorkflowRun& WithWorkflowRunId(const char* value) { SetWorkflowRunId(value); return *this;} /** *

The ID of the previous workflow run.

*/ inline const Aws::String& GetPreviousRunId() const{ return m_previousRunId; } /** *

The ID of the previous workflow run.

*/ inline bool PreviousRunIdHasBeenSet() const { return m_previousRunIdHasBeenSet; } /** *

The ID of the previous workflow run.

*/ inline void SetPreviousRunId(const Aws::String& value) { m_previousRunIdHasBeenSet = true; m_previousRunId = value; } /** *

The ID of the previous workflow run.

*/ inline void SetPreviousRunId(Aws::String&& value) { m_previousRunIdHasBeenSet = true; m_previousRunId = std::move(value); } /** *

The ID of the previous workflow run.

*/ inline void SetPreviousRunId(const char* value) { m_previousRunIdHasBeenSet = true; m_previousRunId.assign(value); } /** *

The ID of the previous workflow run.

*/ inline WorkflowRun& WithPreviousRunId(const Aws::String& value) { SetPreviousRunId(value); return *this;} /** *

The ID of the previous workflow run.

*/ inline WorkflowRun& WithPreviousRunId(Aws::String&& value) { SetPreviousRunId(std::move(value)); return *this;} /** *

The ID of the previous workflow run.

*/ inline WorkflowRun& WithPreviousRunId(const char* value) { SetPreviousRunId(value); return *this;} /** *

The workflow run properties which were set during the run.

*/ inline const Aws::Map& GetWorkflowRunProperties() const{ return m_workflowRunProperties; } /** *

The workflow run properties which were set during the run.

*/ inline bool WorkflowRunPropertiesHasBeenSet() const { return m_workflowRunPropertiesHasBeenSet; } /** *

The workflow run properties which were set during the run.

*/ inline void SetWorkflowRunProperties(const Aws::Map& value) { m_workflowRunPropertiesHasBeenSet = true; m_workflowRunProperties = value; } /** *

The workflow run properties which were set during the run.

*/ inline void SetWorkflowRunProperties(Aws::Map&& value) { m_workflowRunPropertiesHasBeenSet = true; m_workflowRunProperties = std::move(value); } /** *

The workflow run properties which were set during the run.

*/ inline WorkflowRun& WithWorkflowRunProperties(const Aws::Map& value) { SetWorkflowRunProperties(value); return *this;} /** *

The workflow run properties which were set during the run.

*/ inline WorkflowRun& WithWorkflowRunProperties(Aws::Map&& value) { SetWorkflowRunProperties(std::move(value)); return *this;} /** *

The workflow run properties which were set during the run.

*/ inline WorkflowRun& AddWorkflowRunProperties(const Aws::String& key, const Aws::String& value) { m_workflowRunPropertiesHasBeenSet = true; m_workflowRunProperties.emplace(key, value); return *this; } /** *

The workflow run properties which were set during the run.

*/ inline WorkflowRun& AddWorkflowRunProperties(Aws::String&& key, const Aws::String& value) { m_workflowRunPropertiesHasBeenSet = true; m_workflowRunProperties.emplace(std::move(key), value); return *this; } /** *

The workflow run properties which were set during the run.

*/ inline WorkflowRun& AddWorkflowRunProperties(const Aws::String& key, Aws::String&& value) { m_workflowRunPropertiesHasBeenSet = true; m_workflowRunProperties.emplace(key, std::move(value)); return *this; } /** *

The workflow run properties which were set during the run.

*/ inline WorkflowRun& AddWorkflowRunProperties(Aws::String&& key, Aws::String&& value) { m_workflowRunPropertiesHasBeenSet = true; m_workflowRunProperties.emplace(std::move(key), std::move(value)); return *this; } /** *

The workflow run properties which were set during the run.

*/ inline WorkflowRun& AddWorkflowRunProperties(const char* key, Aws::String&& value) { m_workflowRunPropertiesHasBeenSet = true; m_workflowRunProperties.emplace(key, std::move(value)); return *this; } /** *

The workflow run properties which were set during the run.

*/ inline WorkflowRun& AddWorkflowRunProperties(Aws::String&& key, const char* value) { m_workflowRunPropertiesHasBeenSet = true; m_workflowRunProperties.emplace(std::move(key), value); return *this; } /** *

The workflow run properties which were set during the run.

*/ inline WorkflowRun& AddWorkflowRunProperties(const char* key, const char* value) { m_workflowRunPropertiesHasBeenSet = true; m_workflowRunProperties.emplace(key, value); return *this; } /** *

The date and time when the workflow run was started.

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

The date and time when the workflow run was started.

*/ inline bool StartedOnHasBeenSet() const { return m_startedOnHasBeenSet; } /** *

The date and time when the workflow run was started.

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

The date and time when the workflow run was started.

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

The date and time when the workflow run was started.

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

The date and time when the workflow run was started.

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

The date and time when the workflow run completed.

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

The date and time when the workflow run completed.

*/ inline bool CompletedOnHasBeenSet() const { return m_completedOnHasBeenSet; } /** *

The date and time when the workflow run completed.

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

The date and time when the workflow run completed.

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

The date and time when the workflow run completed.

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

The date and time when the workflow run completed.

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

The status of the workflow run.

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

The status of the workflow run.

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

The status of the workflow run.

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

The status of the workflow run.

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

The status of the workflow run.

*/ inline WorkflowRun& WithStatus(const WorkflowRunStatus& value) { SetStatus(value); return *this;} /** *

The status of the workflow run.

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

This error message describes any error that may have occurred in starting the * workflow run. Currently the only error message is "Concurrent runs exceeded for * workflow: foo."

*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *

This error message describes any error that may have occurred in starting the * workflow run. Currently the only error message is "Concurrent runs exceeded for * workflow: foo."

*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *

This error message describes any error that may have occurred in starting the * workflow run. Currently the only error message is "Concurrent runs exceeded for * workflow: foo."

*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *

This error message describes any error that may have occurred in starting the * workflow run. Currently the only error message is "Concurrent runs exceeded for * workflow: foo."

*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *

This error message describes any error that may have occurred in starting the * workflow run. Currently the only error message is "Concurrent runs exceeded for * workflow: foo."

*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *

This error message describes any error that may have occurred in starting the * workflow run. Currently the only error message is "Concurrent runs exceeded for * workflow: foo."

*/ inline WorkflowRun& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

This error message describes any error that may have occurred in starting the * workflow run. Currently the only error message is "Concurrent runs exceeded for * workflow: foo."

*/ inline WorkflowRun& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *

This error message describes any error that may have occurred in starting the * workflow run. Currently the only error message is "Concurrent runs exceeded for * workflow: foo."

*/ inline WorkflowRun& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} /** *

The statistics of the run.

*/ inline const WorkflowRunStatistics& GetStatistics() const{ return m_statistics; } /** *

The statistics of the run.

*/ inline bool StatisticsHasBeenSet() const { return m_statisticsHasBeenSet; } /** *

The statistics of the run.

*/ inline void SetStatistics(const WorkflowRunStatistics& value) { m_statisticsHasBeenSet = true; m_statistics = value; } /** *

The statistics of the run.

*/ inline void SetStatistics(WorkflowRunStatistics&& value) { m_statisticsHasBeenSet = true; m_statistics = std::move(value); } /** *

The statistics of the run.

*/ inline WorkflowRun& WithStatistics(const WorkflowRunStatistics& value) { SetStatistics(value); return *this;} /** *

The statistics of the run.

*/ inline WorkflowRun& WithStatistics(WorkflowRunStatistics&& value) { SetStatistics(std::move(value)); return *this;} /** *

The graph representing all the Glue components that belong to the workflow as * nodes and directed connections between them as edges.

*/ inline const WorkflowGraph& GetGraph() const{ return m_graph; } /** *

The graph representing all the Glue components that belong to the workflow as * nodes and directed connections between them as edges.

*/ inline bool GraphHasBeenSet() const { return m_graphHasBeenSet; } /** *

The graph representing all the Glue components that belong to the workflow as * nodes and directed connections between them as edges.

*/ inline void SetGraph(const WorkflowGraph& value) { m_graphHasBeenSet = true; m_graph = value; } /** *

The graph representing all the Glue components that belong to the workflow as * nodes and directed connections between them as edges.

*/ inline void SetGraph(WorkflowGraph&& value) { m_graphHasBeenSet = true; m_graph = std::move(value); } /** *

The graph representing all the Glue components that belong to the workflow as * nodes and directed connections between them as edges.

*/ inline WorkflowRun& WithGraph(const WorkflowGraph& value) { SetGraph(value); return *this;} /** *

The graph representing all the Glue components that belong to the workflow as * nodes and directed connections between them as edges.

*/ inline WorkflowRun& WithGraph(WorkflowGraph&& value) { SetGraph(std::move(value)); return *this;} /** *

The batch condition that started the workflow run.

*/ inline const StartingEventBatchCondition& GetStartingEventBatchCondition() const{ return m_startingEventBatchCondition; } /** *

The batch condition that started the workflow run.

*/ inline bool StartingEventBatchConditionHasBeenSet() const { return m_startingEventBatchConditionHasBeenSet; } /** *

The batch condition that started the workflow run.

*/ inline void SetStartingEventBatchCondition(const StartingEventBatchCondition& value) { m_startingEventBatchConditionHasBeenSet = true; m_startingEventBatchCondition = value; } /** *

The batch condition that started the workflow run.

*/ inline void SetStartingEventBatchCondition(StartingEventBatchCondition&& value) { m_startingEventBatchConditionHasBeenSet = true; m_startingEventBatchCondition = std::move(value); } /** *

The batch condition that started the workflow run.

*/ inline WorkflowRun& WithStartingEventBatchCondition(const StartingEventBatchCondition& value) { SetStartingEventBatchCondition(value); return *this;} /** *

The batch condition that started the workflow run.

*/ inline WorkflowRun& WithStartingEventBatchCondition(StartingEventBatchCondition&& value) { SetStartingEventBatchCondition(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_workflowRunId; bool m_workflowRunIdHasBeenSet = false; Aws::String m_previousRunId; bool m_previousRunIdHasBeenSet = false; Aws::Map m_workflowRunProperties; bool m_workflowRunPropertiesHasBeenSet = false; Aws::Utils::DateTime m_startedOn; bool m_startedOnHasBeenSet = false; Aws::Utils::DateTime m_completedOn; bool m_completedOnHasBeenSet = false; WorkflowRunStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; WorkflowRunStatistics m_statistics; bool m_statisticsHasBeenSet = false; WorkflowGraph m_graph; bool m_graphHasBeenSet = false; StartingEventBatchCondition m_startingEventBatchCondition; bool m_startingEventBatchConditionHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws