/*
* 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
{
///
/// Provides the details of the ActivityTaskScheduled
event.
///
public partial class ActivityTaskScheduledEventAttributes
{
private string _activityId;
private ActivityType _activityType;
private string _control;
private long? _decisionTaskCompletedEventId;
private string _heartbeatTimeout;
private string _input;
private string _scheduleToCloseTimeout;
private string _scheduleToStartTimeout;
private string _startToCloseTimeout;
private TaskList _taskList;
private string _taskPriority;
///
/// Gets and sets the property ActivityId.
///
/// The unique ID of the activity task.
///
///
[AWSProperty(Required=true, Min=1, Max=256)]
public string ActivityId
{
get { return this._activityId; }
set { this._activityId = value; }
}
// Check to see if ActivityId property is set
internal bool IsSetActivityId()
{
return this._activityId != null;
}
///
/// Gets and sets the property ActivityType.
///
/// The type of the activity task.
///
///
[AWSProperty(Required=true)]
public ActivityType ActivityType
{
get { return this._activityType; }
set { this._activityType = value; }
}
// Check to see if ActivityType property is set
internal bool IsSetActivityType()
{
return this._activityType != null;
}
///
/// Gets and sets the property Control.
///
/// Data attached to the event that can be used by the decider in subsequent workflow
/// tasks. This data isn't sent to the activity.
///
///
[AWSProperty(Max=32768)]
public string Control
{
get { return this._control; }
set { this._control = value; }
}
// Check to see if Control property is set
internal bool IsSetControl()
{
return this._control != null;
}
///
/// Gets and sets the property DecisionTaskCompletedEventId.
///
/// The ID of the DecisionTaskCompleted
event corresponding to the decision
/// that resulted in the scheduling of this activity task. This information can be useful
/// for diagnosing problems by tracing back the chain of events leading up to this event.
///
///
[AWSProperty(Required=true)]
public long DecisionTaskCompletedEventId
{
get { return this._decisionTaskCompletedEventId.GetValueOrDefault(); }
set { this._decisionTaskCompletedEventId = value; }
}
// Check to see if DecisionTaskCompletedEventId property is set
internal bool IsSetDecisionTaskCompletedEventId()
{
return this._decisionTaskCompletedEventId.HasValue;
}
///
/// Gets and sets the property HeartbeatTimeout.
///
/// The maximum time before which the worker processing this task must report progress
/// by calling RecordActivityTaskHeartbeat. If the timeout is exceeded, the activity
/// task is automatically timed out. If the worker subsequently attempts to record a heartbeat
/// or return a result, it is ignored.
///
///
[AWSProperty(Max=8)]
public string HeartbeatTimeout
{
get { return this._heartbeatTimeout; }
set { this._heartbeatTimeout = value; }
}
// Check to see if HeartbeatTimeout property is set
internal bool IsSetHeartbeatTimeout()
{
return this._heartbeatTimeout != null;
}
///
/// Gets and sets the property Input.
///
/// The input provided to the activity task.
///
///
[AWSProperty(Max=32768)]
public string Input
{
get { return this._input; }
set { this._input = value; }
}
// Check to see if Input property is set
internal bool IsSetInput()
{
return this._input != null;
}
///
/// Gets and sets the property ScheduleToCloseTimeout.
///
/// The maximum amount of time for this activity task.
///
///
[AWSProperty(Max=8)]
public string ScheduleToCloseTimeout
{
get { return this._scheduleToCloseTimeout; }
set { this._scheduleToCloseTimeout = value; }
}
// Check to see if ScheduleToCloseTimeout property is set
internal bool IsSetScheduleToCloseTimeout()
{
return this._scheduleToCloseTimeout != null;
}
///
/// Gets and sets the property ScheduleToStartTimeout.
///
/// The maximum amount of time the activity task can wait to be assigned to a worker.
///
///
[AWSProperty(Max=8)]
public string ScheduleToStartTimeout
{
get { return this._scheduleToStartTimeout; }
set { this._scheduleToStartTimeout = value; }
}
// Check to see if ScheduleToStartTimeout property is set
internal bool IsSetScheduleToStartTimeout()
{
return this._scheduleToStartTimeout != null;
}
///
/// Gets and sets the property StartToCloseTimeout.
///
/// The maximum amount of time a worker may take to process the activity task.
///
///
[AWSProperty(Max=8)]
public string StartToCloseTimeout
{
get { return this._startToCloseTimeout; }
set { this._startToCloseTimeout = value; }
}
// Check to see if StartToCloseTimeout property is set
internal bool IsSetStartToCloseTimeout()
{
return this._startToCloseTimeout != null;
}
///
/// Gets and sets the property TaskList.
///
/// The task list in which the activity task has been scheduled.
///
///
[AWSProperty(Required=true)]
public TaskList TaskList
{
get { return this._taskList; }
set { this._taskList = value; }
}
// Check to see if TaskList property is set
internal bool IsSetTaskList()
{
return this._taskList != null;
}
///
/// Gets and sets the property TaskPriority.
///
/// The priority to assign to the scheduled activity task. If set, this overrides any
/// default priority value that was assigned when the activity type was registered.
///
///
///
/// Valid values are integers that range from Java's Integer.MIN_VALUE
(-2147483648)
/// to Integer.MAX_VALUE
(2147483647). Higher numbers indicate higher priority.
///
///
///
/// For more information about setting task priority, see Setting
/// Task Priority in the Amazon SWF Developer Guide.
///
///
public string TaskPriority
{
get { return this._taskPriority; }
set { this._taskPriority = value; }
}
// Check to see if TaskPriority property is set
internal bool IsSetTaskPriority()
{
return this._taskPriority != null;
}
}
}