com.amazonaws.services.simpleworkflow.model
Class DecisionTask

java.lang.Object
  extended by com.amazonaws.services.simpleworkflow.model.DecisionTask

public class DecisionTask
extends Object

A structure that represents a decision task. Decision tasks are sent to deciders in order for them to make decisions.


Constructor Summary
DecisionTask()
           
 
Method Summary
 boolean equals(Object obj)
           
 List<HistoryEvent> getEvents()
          A paginated list of history events of the workflow execution.
 String getNextPageToken()
          Returns a value if the results are paginated.
 Long getPreviousStartedEventId()
          The id of the DecisionTaskStarted event of the previous decision task of this workflow execution that was processed by the decider.
 Long getStartedEventId()
          The id of the DecisionTaskStarted event recorded in the history.
 String getTaskToken()
          The opaque string used as a handle on the task.
 WorkflowExecution getWorkflowExecution()
          The workflow execution for which this decision task was created.
 WorkflowType getWorkflowType()
          The type of the workflow execution for which this decision task was created.
 int hashCode()
           
 void setEvents(Collection<HistoryEvent> events)
          A paginated list of history events of the workflow execution.
 void setNextPageToken(String nextPageToken)
          Returns a value if the results are paginated.
 void setPreviousStartedEventId(Long previousStartedEventId)
          The id of the DecisionTaskStarted event of the previous decision task of this workflow execution that was processed by the decider.
 void setStartedEventId(Long startedEventId)
          The id of the DecisionTaskStarted event recorded in the history.
 void setTaskToken(String taskToken)
          The opaque string used as a handle on the task.
 void setWorkflowExecution(WorkflowExecution workflowExecution)
          The workflow execution for which this decision task was created.
 void setWorkflowType(WorkflowType workflowType)
          The type of the workflow execution for which this decision task was created.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DecisionTask withEvents(Collection<HistoryEvent> events)
          A paginated list of history events of the workflow execution.
 DecisionTask withEvents(HistoryEvent... events)
          A paginated list of history events of the workflow execution.
 DecisionTask withNextPageToken(String nextPageToken)
          Returns a value if the results are paginated.
 DecisionTask withPreviousStartedEventId(Long previousStartedEventId)
          The id of the DecisionTaskStarted event of the previous decision task of this workflow execution that was processed by the decider.
 DecisionTask withStartedEventId(Long startedEventId)
          The id of the DecisionTaskStarted event recorded in the history.
 DecisionTask withTaskToken(String taskToken)
          The opaque string used as a handle on the task.
 DecisionTask withWorkflowExecution(WorkflowExecution workflowExecution)
          The workflow execution for which this decision task was created.
 DecisionTask withWorkflowType(WorkflowType workflowType)
          The type of the workflow execution for which this decision task was created.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DecisionTask

public DecisionTask()
Method Detail

getTaskToken

public String getTaskToken()
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.

Constraints:
Length: 1 - 1024

Returns:
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.

setTaskToken

public void setTaskToken(String 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.

Constraints:
Length: 1 - 1024

Parameters:
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.

withTaskToken

public DecisionTask withTaskToken(String 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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 1024

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

getStartedEventId

public Long getStartedEventId()
The id of the DecisionTaskStarted event recorded in the history.

Returns:
The id of the DecisionTaskStarted event recorded in the history.

setStartedEventId

public void setStartedEventId(Long startedEventId)
The id of the DecisionTaskStarted event recorded in the history.

Parameters:
startedEventId - The id of the DecisionTaskStarted event recorded in the history.

withStartedEventId

public DecisionTask withStartedEventId(Long startedEventId)
The id of the DecisionTaskStarted event recorded in the history.

Returns a reference to this object so that method calls can be chained together.

Parameters:
startedEventId - The id of the DecisionTaskStarted event recorded in the history.
Returns:
A reference to this updated object so that method calls can be chained together.

getWorkflowExecution

public WorkflowExecution getWorkflowExecution()
The workflow execution for which this decision task was created.

Returns:
The workflow execution for which this decision task was created.

setWorkflowExecution

public void setWorkflowExecution(WorkflowExecution workflowExecution)
The workflow execution for which this decision task was created.

Parameters:
workflowExecution - The workflow execution for which this decision task was created.

withWorkflowExecution

public DecisionTask withWorkflowExecution(WorkflowExecution workflowExecution)
The workflow execution for which this decision task was created.

Returns a reference to this object so that method calls can be chained together.

Parameters:
workflowExecution - The workflow execution for which this decision task was created.
Returns:
A reference to this updated object so that method calls can be chained together.

getWorkflowType

public WorkflowType getWorkflowType()
The type of the workflow execution for which this decision task was created.

Returns:
The type of the workflow execution for which this decision task was created.

setWorkflowType

public void setWorkflowType(WorkflowType workflowType)
The type of the workflow execution for which this decision task was created.

Parameters:
workflowType - The type of the workflow execution for which this decision task was created.

withWorkflowType

public DecisionTask withWorkflowType(WorkflowType workflowType)
The type of the workflow execution for which this decision task was created.

Returns a reference to this object so that method calls can be chained together.

Parameters:
workflowType - The type of the workflow execution for which this decision task was created.
Returns:
A reference to this updated object so that method calls can be chained together.

getEvents

public List<HistoryEvent> getEvents()
A paginated list of history events of the workflow execution. The decider uses this during the processing of the decision task.

Returns:
A paginated list of history events of the workflow execution. The decider uses this during the processing of the decision task.

setEvents

public void setEvents(Collection<HistoryEvent> events)
A paginated list of history events of the workflow execution. The decider uses this during the processing of the decision task.

Parameters:
events - A paginated list of history events of the workflow execution. The decider uses this during the processing of the decision task.

withEvents

public DecisionTask withEvents(HistoryEvent... events)
A paginated list of history events of the workflow execution. The decider uses this during the processing of the decision task.

Returns a reference to this object so that method calls can be chained together.

Parameters:
events - A paginated list of history events of the workflow execution. The decider uses this during the processing of the decision task.
Returns:
A reference to this updated object so that method calls can be chained together.

withEvents

public DecisionTask withEvents(Collection<HistoryEvent> events)
A paginated list of history events of the workflow execution. The decider uses this during the processing of the decision task.

Returns a reference to this object so that method calls can be chained together.

Parameters:
events - A paginated list of history events of the workflow execution. The decider uses this during the processing of the decision task.
Returns:
A reference to this updated object so that method calls can be chained together.

getNextPageToken

public String getNextPageToken()
Returns a value if the results are paginated. To get the next page of results, repeat the request specifying this token and all other arguments unchanged.

Constraints:
Length: 0 - 2048

Returns:
Returns a value if the results are paginated. To get the next page of results, repeat the request specifying this token and all other arguments unchanged.

setNextPageToken

public void setNextPageToken(String nextPageToken)
Returns a value if the results are paginated. To get the next page of results, repeat the request specifying this token and all other arguments unchanged.

Constraints:
Length: 0 - 2048

Parameters:
nextPageToken - Returns a value if the results are paginated. To get the next page of results, repeat the request specifying this token and all other arguments unchanged.

withNextPageToken

public DecisionTask withNextPageToken(String nextPageToken)
Returns a value if the results are paginated. To get the next page of results, repeat the request specifying this token and all other arguments unchanged.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 2048

Parameters:
nextPageToken - Returns a value if the results are paginated. To get the next page of results, repeat the request specifying this token and all other arguments unchanged.
Returns:
A reference to this updated object so that method calls can be chained together.

getPreviousStartedEventId

public Long getPreviousStartedEventId()
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.

Returns:
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.

setPreviousStartedEventId

public void setPreviousStartedEventId(Long 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.

Parameters:
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.

withPreviousStartedEventId

public DecisionTask withPreviousStartedEventId(Long 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.