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

Workflow run statistics provides statistics about the workflow * run.

See Also:

AWS * API Reference

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

Total number of Actions in the workflow run.

*/ inline int GetTotalActions() const{ return m_totalActions; } /** *

Total number of Actions in the workflow run.

*/ inline bool TotalActionsHasBeenSet() const { return m_totalActionsHasBeenSet; } /** *

Total number of Actions in the workflow run.

*/ inline void SetTotalActions(int value) { m_totalActionsHasBeenSet = true; m_totalActions = value; } /** *

Total number of Actions in the workflow run.

*/ inline WorkflowRunStatistics& WithTotalActions(int value) { SetTotalActions(value); return *this;} /** *

Total number of Actions that timed out.

*/ inline int GetTimeoutActions() const{ return m_timeoutActions; } /** *

Total number of Actions that timed out.

*/ inline bool TimeoutActionsHasBeenSet() const { return m_timeoutActionsHasBeenSet; } /** *

Total number of Actions that timed out.

*/ inline void SetTimeoutActions(int value) { m_timeoutActionsHasBeenSet = true; m_timeoutActions = value; } /** *

Total number of Actions that timed out.

*/ inline WorkflowRunStatistics& WithTimeoutActions(int value) { SetTimeoutActions(value); return *this;} /** *

Total number of Actions that have failed.

*/ inline int GetFailedActions() const{ return m_failedActions; } /** *

Total number of Actions that have failed.

*/ inline bool FailedActionsHasBeenSet() const { return m_failedActionsHasBeenSet; } /** *

Total number of Actions that have failed.

*/ inline void SetFailedActions(int value) { m_failedActionsHasBeenSet = true; m_failedActions = value; } /** *

Total number of Actions that have failed.

*/ inline WorkflowRunStatistics& WithFailedActions(int value) { SetFailedActions(value); return *this;} /** *

Total number of Actions that have stopped.

*/ inline int GetStoppedActions() const{ return m_stoppedActions; } /** *

Total number of Actions that have stopped.

*/ inline bool StoppedActionsHasBeenSet() const { return m_stoppedActionsHasBeenSet; } /** *

Total number of Actions that have stopped.

*/ inline void SetStoppedActions(int value) { m_stoppedActionsHasBeenSet = true; m_stoppedActions = value; } /** *

Total number of Actions that have stopped.

*/ inline WorkflowRunStatistics& WithStoppedActions(int value) { SetStoppedActions(value); return *this;} /** *

Total number of Actions that have succeeded.

*/ inline int GetSucceededActions() const{ return m_succeededActions; } /** *

Total number of Actions that have succeeded.

*/ inline bool SucceededActionsHasBeenSet() const { return m_succeededActionsHasBeenSet; } /** *

Total number of Actions that have succeeded.

*/ inline void SetSucceededActions(int value) { m_succeededActionsHasBeenSet = true; m_succeededActions = value; } /** *

Total number of Actions that have succeeded.

*/ inline WorkflowRunStatistics& WithSucceededActions(int value) { SetSucceededActions(value); return *this;} /** *

Total number Actions in running state.

*/ inline int GetRunningActions() const{ return m_runningActions; } /** *

Total number Actions in running state.

*/ inline bool RunningActionsHasBeenSet() const { return m_runningActionsHasBeenSet; } /** *

Total number Actions in running state.

*/ inline void SetRunningActions(int value) { m_runningActionsHasBeenSet = true; m_runningActions = value; } /** *

Total number Actions in running state.

*/ inline WorkflowRunStatistics& WithRunningActions(int value) { SetRunningActions(value); return *this;} /** *

Indicates the count of job runs in the ERROR state in the workflow run.

*/ inline int GetErroredActions() const{ return m_erroredActions; } /** *

Indicates the count of job runs in the ERROR state in the workflow run.

*/ inline bool ErroredActionsHasBeenSet() const { return m_erroredActionsHasBeenSet; } /** *

Indicates the count of job runs in the ERROR state in the workflow run.

*/ inline void SetErroredActions(int value) { m_erroredActionsHasBeenSet = true; m_erroredActions = value; } /** *

Indicates the count of job runs in the ERROR state in the workflow run.

*/ inline WorkflowRunStatistics& WithErroredActions(int value) { SetErroredActions(value); return *this;} /** *

Indicates the count of job runs in WAITING state in the workflow run.

*/ inline int GetWaitingActions() const{ return m_waitingActions; } /** *

Indicates the count of job runs in WAITING state in the workflow run.

*/ inline bool WaitingActionsHasBeenSet() const { return m_waitingActionsHasBeenSet; } /** *

Indicates the count of job runs in WAITING state in the workflow run.

*/ inline void SetWaitingActions(int value) { m_waitingActionsHasBeenSet = true; m_waitingActions = value; } /** *

Indicates the count of job runs in WAITING state in the workflow run.

*/ inline WorkflowRunStatistics& WithWaitingActions(int value) { SetWaitingActions(value); return *this;} private: int m_totalActions; bool m_totalActionsHasBeenSet = false; int m_timeoutActions; bool m_timeoutActionsHasBeenSet = false; int m_failedActions; bool m_failedActionsHasBeenSet = false; int m_stoppedActions; bool m_stoppedActionsHasBeenSet = false; int m_succeededActions; bool m_succeededActionsHasBeenSet = false; int m_runningActions; bool m_runningActionsHasBeenSet = false; int m_erroredActions; bool m_erroredActionsHasBeenSet = false; int m_waitingActions; bool m_waitingActionsHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws