Interface ProjectTask
public interface ProjectTask
An immutable client-side representation of ProjectTask.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
The entirety of the ProjectTask definition.static interface
The ProjectTask definition stages.static interface
The template for ProjectTask update.static interface
The ProjectTask update stages. -
Method Summary
Modifier and TypeMethodDescriptioncancel()
Cancel a taskcom.azure.core.http.rest.Response<ProjectTask>
cancelWithResponse
(com.azure.core.util.Context context) Cancel a tasketag()
Gets the etag property: HTTP strong entity tag value.id()
Gets the id property: Fully qualified resource Id for the resource.Gets the inner com.azure.resourcemanager.datamigration.fluent.models.ProjectTaskInner object.name()
Gets the name property: The name of the resource.Gets the properties property: Custom task properties.refresh()
Refreshes the resource to sync with Azure.refresh
(com.azure.core.util.Context context) Refreshes the resource to sync with Azure.Gets the name of the resource group.type()
Gets the type property: The type of the resource.update()
Begins update for the ProjectTask resource.
-
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
ProjectTask.Update 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
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 taskThe 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 taskThe 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.
-