Interface ProjectTask


public interface ProjectTask
An immutable client-side representation of ProjectTask.
  • Method Details

    • id

      String id()
      Gets the id property: Fully qualified resource Id for the resource.
      Returns:
      the id value.
    • name

      String name()
      Gets the name property: The name of the resource.
      Returns:
      the name value.
    • type

      String type()
      Gets the type property: The type of the resource.
      Returns:
      the type value.
    • etag

      String etag()
      Gets the etag property: HTTP strong entity tag value. This is ignored if submitted.
      Returns:
      the etag value.
    • properties

      ProjectTaskProperties properties()
      Gets the properties property: Custom task properties.
      Returns:
      the properties value.
    • resourceGroupName

      String resourceGroupName()
      Gets the name of the resource group.
      Returns:
      the name of the resource group.
    • innerModel

      ProjectTaskInner innerModel()
      Gets the inner com.azure.resourcemanager.datamigration.fluent.models.ProjectTaskInner object.
      Returns:
      the inner object.
    • update

      Begins update for the ProjectTask resource.
      Returns:
      the stage of resource update.
    • refresh

      ProjectTask refresh()
      Refreshes the resource to sync with Azure.
      Returns:
      the refreshed resource.
    • refresh

      ProjectTask refresh(com.azure.core.util.Context context)
      Refreshes the resource to sync with Azure.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      the refreshed resource.
    • cancelWithResponse

      com.azure.core.http.rest.Response<ProjectTask> cancelWithResponse(com.azure.core.util.Context context)
      Cancel a task

      The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. This method cancels a task if it's currently queued or running.

      Parameters:
      context - The context to associate with this operation.
      Returns:
      a task resource along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • cancel

      ProjectTask cancel()
      Cancel a task

      The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. This method cancels a task if it's currently queued or running.

      Returns:
      a task resource.
      Throws:
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.