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 interfacePollForActivityTaskResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringactivityId()The unique ID of the task.ActivityTypeactivityType()The type of this activity task.static PollForActivityTaskResponse.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringinput()The inputs provided when the activity task was scheduled.List<SdkField<?>>sdkFields()static Class<? extends PollForActivityTaskResponse.Builder>serializableBuilderClass()LongstartedEventId()The ID of theActivityTaskStartedevent recorded in the history.StringtaskToken()The opaque string used as a handle on the task.PollForActivityTaskResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.WorkflowExecutionworkflowExecution()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
ActivityTaskStartedevent recorded in the history.- Returns:
- The ID of the
ActivityTaskStartedevent 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:
toBuilderin interfaceToCopyableBuilder<PollForActivityTaskResponse.Builder,PollForActivityTaskResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static PollForActivityTaskResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends PollForActivityTaskResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsResponse
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin 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:
getValueForFieldin classSdkResponse
-
-