/* * 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 { /// /// Container for the parameters to the RespondDecisionTaskCompleted operation. /// Used by deciders to tell the service that the DecisionTask identified by the /// taskToken has successfully completed. The decisions argument /// specifies the list of decisions made while processing the task. /// /// /// /// A DecisionTaskCompleted event is added to the workflow history. The executionContext /// specified is attached to the event in the workflow execution history. /// /// /// /// Access Control /// /// /// /// If an IAM policy grants permission to use RespondDecisionTaskCompleted, /// it can express permissions for the list of decisions in the decisions /// parameter. Each of the decisions has one or more parameters, much like a regular API /// call. To allow for policies to be as readable as possible, you can express permissions /// on decisions as if they were actual API calls, including applying conditions to some /// parameters. For more information, see Using /// IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide. /// /// public partial class RespondDecisionTaskCompletedRequest : AmazonSimpleWorkflowRequest { private List _decisions = new List(); private string _executionContext; private string _taskToken; /// /// Gets and sets the property Decisions. /// /// The list of decisions (possibly empty) made by the decider while processing this decision /// task. See the docs for the Decision structure for details. /// /// public List Decisions { get { return this._decisions; } set { this._decisions = value; } } // Check to see if Decisions property is set internal bool IsSetDecisions() { return this._decisions != null && this._decisions.Count > 0; } /// /// Gets and sets the property ExecutionContext. /// /// User defined context to add to workflow execution. /// /// [AWSProperty(Max=32768)] public string ExecutionContext { get { return this._executionContext; } set { this._executionContext = value; } } // Check to see if ExecutionContext property is set internal bool IsSetExecutionContext() { return this._executionContext != null; } /// /// Gets and sets the property TaskToken. /// /// The taskToken from the DecisionTask. /// /// /// /// taskToken is generated by the service and should be treated as an opaque /// value. If the task is passed to another process, its taskToken must also /// be passed. This enables it to provide its progress and respond with results. /// /// /// [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; } } }