Class MigrationTask
- java.lang.Object
-
- software.amazon.awssdk.services.migrationhub.model.MigrationTask
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<MigrationTask.Builder,MigrationTask>
@Generated("software.amazon.awssdk:codegen") public final class MigrationTask extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MigrationTask.Builder,MigrationTask>
Represents a migration task in a migration tool.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMigrationTask.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MigrationTask.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasResourceAttributeList()For responses, this returns true if the service returned a value for the ResourceAttributeList property.StringmigrationTaskName()Unique identifier that references the migration task.StringprogressUpdateStream()A name that identifies the vendor of the migration tool being used.List<ResourceAttribute>resourceAttributeList()Information about the resource that is being migrated.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends MigrationTask.Builder>serializableBuilderClass()Tasktask()Task object encapsulating task information.MigrationTask.BuildertoBuilder()StringtoString()Returns a string representation of this object.InstantupdateDateTime()The timestamp when the task was gathered.-
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
-
progressUpdateStream
public final String progressUpdateStream()
A name that identifies the vendor of the migration tool being used.
- Returns:
- A name that identifies the vendor of the migration tool being used.
-
migrationTaskName
public final String migrationTaskName()
Unique identifier that references the migration task. Do not store personal data in this field.
- Returns:
- Unique identifier that references the migration task. Do not store personal data in this field.
-
task
public final Task task()
Task object encapsulating task information.
- Returns:
- Task object encapsulating task information.
-
updateDateTime
public final Instant updateDateTime()
The timestamp when the task was gathered.
- Returns:
- The timestamp when the task was gathered.
-
hasResourceAttributeList
public final boolean hasResourceAttributeList()
For responses, this returns true if the service returned a value for the ResourceAttributeList property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
resourceAttributeList
public final List<ResourceAttribute> resourceAttributeList()
Information about the resource that is being migrated. This data will be used to map the task to a resource in the Application Discovery Service repository.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasResourceAttributeList()method.- Returns:
- Information about the resource that is being migrated. This data will be used to map the task to a resource in the Application Discovery Service repository.
-
toBuilder
public MigrationTask.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<MigrationTask.Builder,MigrationTask>
-
builder
public static MigrationTask.Builder builder()
-
serializableBuilderClass
public static Class<? extends MigrationTask.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-