Interface MigrationTask.Builder

    • Method Detail

      • progressUpdateStream

        MigrationTask.Builder progressUpdateStream​(String progressUpdateStream)

        A name that identifies the vendor of the migration tool being used.

        Parameters:
        progressUpdateStream - A name that identifies the vendor of the migration tool being used.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • migrationTaskName

        MigrationTask.Builder migrationTaskName​(String migrationTaskName)

        Unique identifier that references the migration task. Do not store personal data in this field.

        Parameters:
        migrationTaskName - Unique identifier that references the migration task. Do not store personal data in this field.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • task

        MigrationTask.Builder task​(Task task)

        Task object encapsulating task information.

        Parameters:
        task - Task object encapsulating task information.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • updateDateTime

        MigrationTask.Builder updateDateTime​(Instant updateDateTime)

        The timestamp when the task was gathered.

        Parameters:
        updateDateTime - The timestamp when the task was gathered.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • resourceAttributeList

        MigrationTask.Builder resourceAttributeList​(Collection<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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • resourceAttributeList

        MigrationTask.Builder resourceAttributeList​(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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • resourceAttributeList

        MigrationTask.Builder resourceAttributeList​(Consumer<ResourceAttribute.Builder>... 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.

        This is a convenience method that creates an instance of the ResourceAttribute.Builder avoiding the need to create one manually via ResourceAttribute.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #resourceAttributeList(List).

        Parameters:
        resourceAttributeList - a consumer that will call methods on ResourceAttribute.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #resourceAttributeList(java.util.Collection)