@Generated(value="software.amazon.awssdk:codegen") public final class SetTaskStatusRequest extends DataPipelineRequest implements ToCopyableBuilder<SetTaskStatusRequest.Builder,SetTaskStatusRequest>
Contains the parameters for SetTaskStatus.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SetTaskStatusRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static SetTaskStatusRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
errorId()
If an error occurred during the task, this value specifies the error code.
|
String |
errorMessage()
If an error occurred during the task, this value specifies a text description of the error.
|
String |
errorStackTrace()
If an error occurred during the task, this value specifies the stack trace associated with the error.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends SetTaskStatusRequest.Builder> |
serializableBuilderClass() |
String |
taskId()
The ID of the task assigned to the task runner.
|
TaskStatus |
taskStatus()
If
FINISHED, the task successfully completed. |
String |
taskStatusAsString()
If
FINISHED, the task successfully completed. |
SetTaskStatusRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String taskId()
The ID of the task assigned to the task runner. This value is provided in the response for PollForTask.
public final TaskStatus taskStatus()
If FINISHED, the task successfully completed. If FAILED, the task ended unsuccessfully.
Preconditions use false.
If the service returns an enum value that is not available in the current SDK version, taskStatus will
return TaskStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
taskStatusAsString().
FINISHED, the task successfully completed. If FAILED, the task ended
unsuccessfully. Preconditions use false.TaskStatuspublic final String taskStatusAsString()
If FINISHED, the task successfully completed. If FAILED, the task ended unsuccessfully.
Preconditions use false.
If the service returns an enum value that is not available in the current SDK version, taskStatus will
return TaskStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
taskStatusAsString().
FINISHED, the task successfully completed. If FAILED, the task ended
unsuccessfully. Preconditions use false.TaskStatuspublic final String errorId()
If an error occurred during the task, this value specifies the error code. This value is set on the physical attempt object. It is used to display error information to the user. It should not start with string "Service_" which is reserved by the system.
public final String errorMessage()
If an error occurred during the task, this value specifies a text description of the error. This value is set on the physical attempt object. It is used to display error information to the user. The web service does not parse this value.
public final String errorStackTrace()
If an error occurred during the task, this value specifies the stack trace associated with the error. This value is set on the physical attempt object. It is used to display error information to the user. The web service does not parse this value.
public SetTaskStatusRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SetTaskStatusRequest.Builder,SetTaskStatusRequest>toBuilder in class DataPipelineRequestpublic static SetTaskStatusRequest.Builder builder()
public static Class<? extends SetTaskStatusRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2021. All rights reserved.