Class Task
- java.lang.Object
-
- software.amazon.awssdk.services.migrationhub.model.Task
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Task.Builder,Task>
@Generated("software.amazon.awssdk:codegen") public final class Task extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Task.Builder,Task>
Task object encapsulating task information.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTask.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Task.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegerprogressPercent()Indication of the percentage completion of the task.List<SdkField<?>>sdkFields()static Class<? extends Task.Builder>serializableBuilderClass()Statusstatus()Status of the task - Not Started, In-Progress, Complete.StringstatusAsString()Status of the task - Not Started, In-Progress, Complete.StringstatusDetail()Details of task status as notified by a migration tool.Task.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
status
public final Status status()
Status of the task - Not Started, In-Progress, Complete.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- Status of the task - Not Started, In-Progress, Complete.
- See Also:
Status
-
statusAsString
public final String statusAsString()
Status of the task - Not Started, In-Progress, Complete.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- Status of the task - Not Started, In-Progress, Complete.
- See Also:
Status
-
statusDetail
public final String statusDetail()
Details of task status as notified by a migration tool. A tool might use this field to provide clarifying information about the status that is unique to that tool or that explains an error state.
- Returns:
- Details of task status as notified by a migration tool. A tool might use this field to provide clarifying information about the status that is unique to that tool or that explains an error state.
-
progressPercent
public final Integer progressPercent()
Indication of the percentage completion of the task.
- Returns:
- Indication of the percentage completion of the task.
-
toBuilder
public Task.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Task.Builder,Task>
-
builder
public static Task.Builder builder()
-
serializableBuilderClass
public static Class<? extends Task.Builder> serializableBuilderClass()
-
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.
-
-