/** * 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 SWF { namespace Model { /** *

Contains the counts of open tasks, child workflow executions and timers for a * workflow execution.

See Also:

AWS * API Reference

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

The count of activity tasks whose status is OPEN.

*/ inline int GetOpenActivityTasks() const{ return m_openActivityTasks; } /** *

The count of activity tasks whose status is OPEN.

*/ inline bool OpenActivityTasksHasBeenSet() const { return m_openActivityTasksHasBeenSet; } /** *

The count of activity tasks whose status is OPEN.

*/ inline void SetOpenActivityTasks(int value) { m_openActivityTasksHasBeenSet = true; m_openActivityTasks = value; } /** *

The count of activity tasks whose status is OPEN.

*/ inline WorkflowExecutionOpenCounts& WithOpenActivityTasks(int value) { SetOpenActivityTasks(value); return *this;} /** *

The count of decision tasks whose status is OPEN. A workflow execution can * have at most one open decision task.

*/ inline int GetOpenDecisionTasks() const{ return m_openDecisionTasks; } /** *

The count of decision tasks whose status is OPEN. A workflow execution can * have at most one open decision task.

*/ inline bool OpenDecisionTasksHasBeenSet() const { return m_openDecisionTasksHasBeenSet; } /** *

The count of decision tasks whose status is OPEN. A workflow execution can * have at most one open decision task.

*/ inline void SetOpenDecisionTasks(int value) { m_openDecisionTasksHasBeenSet = true; m_openDecisionTasks = value; } /** *

The count of decision tasks whose status is OPEN. A workflow execution can * have at most one open decision task.

*/ inline WorkflowExecutionOpenCounts& WithOpenDecisionTasks(int value) { SetOpenDecisionTasks(value); return *this;} /** *

The count of timers started by this workflow execution that have not fired * yet.

*/ inline int GetOpenTimers() const{ return m_openTimers; } /** *

The count of timers started by this workflow execution that have not fired * yet.

*/ inline bool OpenTimersHasBeenSet() const { return m_openTimersHasBeenSet; } /** *

The count of timers started by this workflow execution that have not fired * yet.

*/ inline void SetOpenTimers(int value) { m_openTimersHasBeenSet = true; m_openTimers = value; } /** *

The count of timers started by this workflow execution that have not fired * yet.

*/ inline WorkflowExecutionOpenCounts& WithOpenTimers(int value) { SetOpenTimers(value); return *this;} /** *

The count of child workflow executions whose status is OPEN.

*/ inline int GetOpenChildWorkflowExecutions() const{ return m_openChildWorkflowExecutions; } /** *

The count of child workflow executions whose status is OPEN.

*/ inline bool OpenChildWorkflowExecutionsHasBeenSet() const { return m_openChildWorkflowExecutionsHasBeenSet; } /** *

The count of child workflow executions whose status is OPEN.

*/ inline void SetOpenChildWorkflowExecutions(int value) { m_openChildWorkflowExecutionsHasBeenSet = true; m_openChildWorkflowExecutions = value; } /** *

The count of child workflow executions whose status is OPEN.

*/ inline WorkflowExecutionOpenCounts& WithOpenChildWorkflowExecutions(int value) { SetOpenChildWorkflowExecutions(value); return *this;} /** *

The count of Lambda tasks whose status is OPEN.

*/ inline int GetOpenLambdaFunctions() const{ return m_openLambdaFunctions; } /** *

The count of Lambda tasks whose status is OPEN.

*/ inline bool OpenLambdaFunctionsHasBeenSet() const { return m_openLambdaFunctionsHasBeenSet; } /** *

The count of Lambda tasks whose status is OPEN.

*/ inline void SetOpenLambdaFunctions(int value) { m_openLambdaFunctionsHasBeenSet = true; m_openLambdaFunctions = value; } /** *

The count of Lambda tasks whose status is OPEN.

*/ inline WorkflowExecutionOpenCounts& WithOpenLambdaFunctions(int value) { SetOpenLambdaFunctions(value); return *this;} private: int m_openActivityTasks; bool m_openActivityTasksHasBeenSet = false; int m_openDecisionTasks; bool m_openDecisionTasksHasBeenSet = false; int m_openTimers; bool m_openTimersHasBeenSet = false; int m_openChildWorkflowExecutions; bool m_openChildWorkflowExecutionsHasBeenSet = false; int m_openLambdaFunctions; bool m_openLambdaFunctionsHasBeenSet = false; }; } // namespace Model } // namespace SWF } // namespace Aws