com.amazonaws.services.simpleworkflow.model

## クラス ActivityTask

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

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

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

  Unit of work sent to an activity worker.

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

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getActivityId()` The unique ID of the task.
    `ActivityType` | `getActivityType()` The type of this activity task.
    `java.lang.String` | `getInput()` The inputs provided when the activity task was scheduled.
    `java.lang.Long` | `getStartedEventId()` The id of the `ActivityTaskStarted` event recorded in the history.
    `java.lang.String` | `getTaskToken()` The opaque string used as a handle on the task.
    `WorkflowExecution` | `getWorkflowExecution()` The workflow execution that started this activity task.
    `int` | `hashCode()`
    `void` | `setActivityId(java.lang.String activityId)` The unique ID of the task.
    `void` | `setActivityType(ActivityType activityType)` The type of this activity task.
    `void` | `setInput(java.lang.String input)` The inputs provided when the activity task was scheduled.
    `void` | `setStartedEventId(java.lang.Long startedEventId)` The id of the `ActivityTaskStarted` 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 that started this activity task.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `ActivityTask` | `withActivityId(java.lang.String activityId)` The unique ID of the task.
    `ActivityTask` | `withActivityType(ActivityType activityType)` The type of this activity task.
    `ActivityTask` | `withInput(java.lang.String input)` The inputs provided when the activity task was scheduled.
    `ActivityTask` | `withStartedEventId(java.lang.Long startedEventId)` The id of the `ActivityTaskStarted` event recorded in the history.
    `ActivityTask` | `withTaskToken(java.lang.String taskToken)` The opaque string used as a handle on the task.
    `ActivityTask` | `withWorkflowExecution(WorkflowExecution workflowExecution)` The workflow execution that started this activity task.

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

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

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

    - #### ActivityTask

          public ActivityTask()

  - ### メソッドの詳細

    - #### 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 ActivityTask 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.

    - #### getActivityId

          public java.lang.String getActivityId()

      The unique ID of the task.

      Constraints:
      Length: 1 - 256

      戻り値:
        The unique ID of the task.

    - #### setActivityId

          public void setActivityId(java.lang.String activityId)

      The unique ID of the task.

      Constraints:
      Length: 1 - 256

      パラメータ:
        `activityId` - The unique ID of the task.

    - #### withActivityId

          public ActivityTask withActivityId(java.lang.String activityId)

      The unique ID of the task.

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

      Constraints:
      Length: 1 - 256

      パラメータ:
        `activityId` - The unique ID of the task.

    - #### getStartedEventId

          public java.lang.Long getStartedEventId()

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

    - #### setStartedEventId

          public void setStartedEventId(java.lang.Long startedEventId)

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

    - #### withStartedEventId

          public ActivityTask withStartedEventId(java.lang.Long startedEventId)

      The id of the `ActivityTaskStarted` event recorded in the history.

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

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

    - #### getWorkflowExecution

          public WorkflowExecution getWorkflowExecution()

      The workflow execution that started this activity task.
      戻り値:
        The workflow execution that started this activity task.

    - #### setWorkflowExecution

          public void setWorkflowExecution(WorkflowExecution workflowExecution)

      The workflow execution that started this activity task.
      パラメータ:
        `workflowExecution` - The workflow execution that started this activity task.

    - #### withWorkflowExecution

          public ActivityTask withWorkflowExecution(WorkflowExecution workflowExecution)

      The workflow execution that started this activity task.

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

      パラメータ:
        `workflowExecution` - The workflow execution that started this activity task.

    - #### getActivityType

          public ActivityType getActivityType()

      The type of this activity task.
      戻り値:
        The type of this activity task.

    - #### setActivityType

          public void setActivityType(ActivityType activityType)

      The type of this activity task.
      パラメータ:
        `activityType` - The type of this activity task.

    - #### withActivityType

          public ActivityTask withActivityType(ActivityType activityType)

      The type of this activity task.

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

      パラメータ:
        `activityType` - The type of this activity task.

    - #### getInput

          public java.lang.String getInput()

      The inputs provided when the activity task was scheduled. The form of the input is user defined and should be meaningful to the activity implementation.

      Constraints:
      Length: 0 - 32768

      戻り値:
        The inputs provided when the activity task was scheduled. The form of the input is user defined and should be meaningful to the activity implementation.

    - #### setInput

          public void setInput(java.lang.String input)

      The inputs provided when the activity task was scheduled. The form of the input is user defined and should be meaningful to the activity implementation.

      Constraints:
      Length: 0 - 32768

      パラメータ:
        `input` - The inputs provided when the activity task was scheduled. The form of the input is user defined and should be meaningful to the activity implementation.

    - #### withInput

          public ActivityTask withInput(java.lang.String input)

      The inputs provided when the activity task was scheduled. The form of the input is user defined and should be meaningful to the activity implementation.

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

      Constraints:
      Length: 0 - 32768

      パラメータ:
        `input` - The inputs provided when the activity task was scheduled. The form of the input is user defined and should be meaningful to the activity implementation.

    - #### 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`