com.amazonaws.services.simpleworkflow.model

## クラス DecisionTask

- java.lang.Object
- - com.amazonaws.services.simpleworkflow.model.DecisionTask

- すべての実装されたインタフェース:
    java.io.Serializable

      public class DecisionTask
      extends java.lang.Object
      implements java.io.Serializable

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

  関連項目:
    直列化された形式

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `DecisionTask()`

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.util.List<HistoryEvent>` | `getEvents()` A paginated list of history events of the workflow execution.
    `java.lang.String` | `getNextPageToken()` Returns a value if the results are paginated.
    `java.lang.Long` | `getPreviousStartedEventId()` The id of the DecisionTaskStarted event of the previous decision task of this workflow execution that was processed by the decider.
    `java.lang.Long` | `getStartedEventId()` The id of the `DecisionTaskStarted` event recorded in the history.
    `java.lang.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(java.util.Collection<HistoryEvent> events)` A paginated list of history events of the workflow execution.
    `void` | `setNextPageToken(java.lang.String nextPageToken)` Returns a value if the results are paginated.
    `void` | `setPreviousStartedEventId(java.lang.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(java.lang.Long startedEventId)` The id of the `DecisionTaskStarted` event recorded in the history.
    `void` | `setTaskToken(java.lang.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.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `DecisionTask` | `withEvents(java.util.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(java.lang.String nextPageToken)` Returns a value if the results are paginated.
    `DecisionTask` | `withPreviousStartedEventId(java.lang.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(java.lang.Long startedEventId)` The id of the `DecisionTaskStarted` event recorded in the history.
    `DecisionTask` | `withTaskToken(java.lang.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.

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### DecisionTask

          public DecisionTask()

  - ### メソッドの詳細

    - #### getTaskToken

          public java.lang.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

      戻り値:
        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(java.lang.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

      パラメータ:
        `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(java.lang.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

      パラメータ:
        `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.

    - #### getStartedEventId

          public java.lang.Long getStartedEventId()

      The id of the `DecisionTaskStarted` event recorded in the history.
      戻り値:
        The id of the `DecisionTaskStarted` event recorded in the history.

    - #### setStartedEventId

          public void setStartedEventId(java.lang.Long startedEventId)

      The id of the `DecisionTaskStarted` event recorded in the history.
      パラメータ:
        `startedEventId` - The id of the `DecisionTaskStarted` event recorded in the history.

    - #### withStartedEventId

          public DecisionTask withStartedEventId(java.lang.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.

      パラメータ:
        `startedEventId` - The id of the `DecisionTaskStarted` event recorded in the history.

    - #### getWorkflowExecution

          public WorkflowExecution getWorkflowExecution()

      The workflow execution for which this decision task was created.
      戻り値:
        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.
      パラメータ:
        `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.

      パラメータ:
        `workflowExecution` - The workflow execution for which this decision task was created.

    - #### getWorkflowType

          public WorkflowType getWorkflowType()

      The type of the workflow execution for which this decision task was created.
      戻り値:
        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.
      パラメータ:
        `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.

      パラメータ:
        `workflowType` - The type of the workflow execution for which this decision task was created.

    - #### getEvents

          public java.util.List<HistoryEvent> getEvents()

      A paginated list of history events of the workflow execution. The decider uses this during the processing of the decision task.
      戻り値:
        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(java.util.Collection<HistoryEvent> events)

      A paginated list of history events of the workflow execution. The decider uses this during the processing of the decision task.
      パラメータ:
        `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.

      パラメータ:
        `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(java.util.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.

      パラメータ:
        `events` - A paginated list of history events of the workflow execution. The decider uses this during the processing of the decision task.

    - #### getNextPageToken

          public java.lang.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 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(java.lang.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

      パラメータ:
        `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(java.lang.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

      パラメータ:
        `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.

    - #### getPreviousStartedEventId

          public java.lang.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.
      戻り値:
        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(java.lang.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.
      パラメータ:
        `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(java.lang.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.

      パラメータ:
        `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.

    - #### toString

          public java.lang.String toString()

      Returns a string representation of this object; useful for testing and debugging.
      オーバーライド:
        `toString` クラス内 `java.lang.Object`
      戻り値:
        A string representation of this object.
      関連項目:
        `Object.toString()`

    - #### hashCode

          public int hashCode()

      オーバーライド:
        `hashCode` クラス内 `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object obj)

      オーバーライド:
        `equals` クラス内 `java.lang.Object`