Class PollForActivityTaskResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.swf.model.SwfResponse
-
- software.amazon.awssdk.services.swf.model.PollForActivityTaskResponse
-
- All Implemented Interfaces:
SdkPojo
,ToCopyableBuilder<PollForActivityTaskResponse.Builder,PollForActivityTaskResponse>
@Generated("software.amazon.awssdk:codegen") public final class PollForActivityTaskResponse extends SwfResponse implements ToCopyableBuilder<PollForActivityTaskResponse.Builder,PollForActivityTaskResponse>
Unit of work sent to an activity worker.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
PollForActivityTaskResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
activityId()
The unique ID of the task.ActivityType
activityType()
The type of this activity task.static PollForActivityTaskResponse.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
String
input()
The inputs provided when the activity task was scheduled.List<SdkField<?>>
sdkFields()
static Class<? extends PollForActivityTaskResponse.Builder>
serializableBuilderClass()
Long
startedEventId()
The ID of theActivityTaskStarted
event recorded in the history.String
taskToken()
The opaque string used as a handle on the task.PollForActivityTaskResponse.Builder
toBuilder()
String
toString()
Returns a string representation of this object.WorkflowExecution
workflowExecution()
The workflow execution that started this activity task.-
Methods inherited from class software.amazon.awssdk.services.swf.model.SwfResponse
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
taskToken
public final 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:
- 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.
-
activityId
public final String activityId()
The unique ID of the task.
- Returns:
- The unique ID of the task.
-
startedEventId
public final Long startedEventId()
The ID of the
ActivityTaskStarted
event recorded in the history.- Returns:
- The ID of the
ActivityTaskStarted
event recorded in the history.
-
workflowExecution
public final WorkflowExecution workflowExecution()
The workflow execution that started this activity task.
- Returns:
- The workflow execution that started this activity task.
-
activityType
public final ActivityType activityType()
The type of this activity task.
- Returns:
- The type of this activity task.
-
input
public final 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:
- 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.
-
toBuilder
public PollForActivityTaskResponse.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<PollForActivityTaskResponse.Builder,PollForActivityTaskResponse>
- Specified by:
toBuilder
in classAwsResponse
-
builder
public static PollForActivityTaskResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends PollForActivityTaskResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equals
in classAwsResponse
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForField
in classSdkResponse
-
-