/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the swf-2012-01-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.SimpleWorkflow.Model { /// /// Contains the counts of open tasks, child workflow executions and timers for a workflow /// execution. /// public partial class WorkflowExecutionOpenCounts { private int? _openActivityTasks; private int? _openChildWorkflowExecutions; private int? _openDecisionTasks; private int? _openLambdaFunctions; private int? _openTimers; /// /// Gets and sets the property OpenActivityTasks. /// /// The count of activity tasks whose status is OPEN. /// /// [AWSProperty(Required=true, Min=0)] public int OpenActivityTasks { get { return this._openActivityTasks.GetValueOrDefault(); } set { this._openActivityTasks = value; } } // Check to see if OpenActivityTasks property is set internal bool IsSetOpenActivityTasks() { return this._openActivityTasks.HasValue; } /// /// Gets and sets the property OpenChildWorkflowExecutions. /// /// The count of child workflow executions whose status is OPEN. /// /// [AWSProperty(Required=true, Min=0)] public int OpenChildWorkflowExecutions { get { return this._openChildWorkflowExecutions.GetValueOrDefault(); } set { this._openChildWorkflowExecutions = value; } } // Check to see if OpenChildWorkflowExecutions property is set internal bool IsSetOpenChildWorkflowExecutions() { return this._openChildWorkflowExecutions.HasValue; } /// /// Gets and sets the property OpenDecisionTasks. /// /// The count of decision tasks whose status is OPEN. A workflow execution can have at /// most one open decision task. /// /// [AWSProperty(Required=true, Min=0, Max=1)] public int OpenDecisionTasks { get { return this._openDecisionTasks.GetValueOrDefault(); } set { this._openDecisionTasks = value; } } // Check to see if OpenDecisionTasks property is set internal bool IsSetOpenDecisionTasks() { return this._openDecisionTasks.HasValue; } /// /// Gets and sets the property OpenLambdaFunctions. /// /// The count of Lambda tasks whose status is OPEN. /// /// [AWSProperty(Min=0)] public int OpenLambdaFunctions { get { return this._openLambdaFunctions.GetValueOrDefault(); } set { this._openLambdaFunctions = value; } } // Check to see if OpenLambdaFunctions property is set internal bool IsSetOpenLambdaFunctions() { return this._openLambdaFunctions.HasValue; } /// /// Gets and sets the property OpenTimers. /// /// The count of timers started by this workflow execution that have not fired yet. /// /// [AWSProperty(Required=true, Min=0)] public int OpenTimers { get { return this._openTimers.GetValueOrDefault(); } set { this._openTimers = value; } } // Check to see if OpenTimers property is set internal bool IsSetOpenTimers() { return this._openTimers.HasValue; } } }