/* * 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 { /// /// A structure that represents a decision task. Decision tasks are sent to deciders in /// order for them to make decisions. /// public partial class DecisionTask { private List _events = new List(); private string _nextPageToken; private long? _previousStartedEventId; private long? _startedEventId; private string _taskToken; private WorkflowExecution _workflowExecution; private WorkflowType _workflowType; /// /// Gets and sets the property Events. /// /// A paginated list of history events of the workflow execution. The decider uses this /// during the processing of the decision task. /// /// [AWSProperty(Required=true)] public List Events { get { return this._events; } set { this._events = value; } } // Check to see if Events property is set internal bool IsSetEvents() { return this._events != null && this._events.Count > 0; } /// /// Gets and sets the property NextPageToken. /// /// If a NextPageToken was returned by a previous call, there are more results /// available. To retrieve the next page of results, make the call again using the returned /// token in nextPageToken. Keep all other arguments unchanged. /// /// /// /// The configured maximumPageSize determines how many results can be returned /// in a single call. /// /// [AWSProperty(Max=2048)] public string NextPageToken { get { return this._nextPageToken; } set { this._nextPageToken = value; } } // Check to see if NextPageToken property is set internal bool IsSetNextPageToken() { return this._nextPageToken != null; } /// /// Gets and sets the property PreviousStartedEventId. /// /// The ID of the DecisionTaskStarted event of the previous decision task of this workflow /// execution that was processed by the decider. This can be used to determine the events /// in the history new since the last decision task received by the decider. /// /// public long PreviousStartedEventId { get { return this._previousStartedEventId.GetValueOrDefault(); } set { this._previousStartedEventId = value; } } // Check to see if PreviousStartedEventId property is set internal bool IsSetPreviousStartedEventId() { return this._previousStartedEventId.HasValue; } /// /// Gets and sets the property StartedEventId. /// /// The ID of the DecisionTaskStarted event recorded in the history. /// /// [AWSProperty(Required=true)] public long StartedEventId { get { return this._startedEventId.GetValueOrDefault(); } set { this._startedEventId = value; } } // Check to see if StartedEventId property is set internal bool IsSetStartedEventId() { return this._startedEventId.HasValue; } /// /// Gets and sets the property TaskToken. /// /// The opaque string used as a handle on the task. This token is used by workers to communicate /// progress and response information back to the system about the task. /// /// [AWSProperty(Required=true, Min=1, Max=1024)] public string TaskToken { get { return this._taskToken; } set { this._taskToken = value; } } // Check to see if TaskToken property is set internal bool IsSetTaskToken() { return this._taskToken != null; } /// /// Gets and sets the property WorkflowExecution. /// /// The workflow execution for which this decision task was created. /// /// [AWSProperty(Required=true)] public WorkflowExecution WorkflowExecution { get { return this._workflowExecution; } set { this._workflowExecution = value; } } // Check to see if WorkflowExecution property is set internal bool IsSetWorkflowExecution() { return this._workflowExecution != null; } /// /// Gets and sets the property WorkflowType. /// /// The type of the workflow execution for which this decision task was created. /// /// [AWSProperty(Required=true)] public WorkflowType WorkflowType { get { return this._workflowType; } set { this._workflowType = value; } } // Check to see if WorkflowType property is set internal bool IsSetWorkflowType() { return this._workflowType != null; } } }