Interface JobCancellationsClient
-
public interface JobCancellationsClient
An instance of this class provides access to all the operations defined in JobCancellationsClient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
trigger(String vaultName, String resourceGroupName, String jobName)
Cancels a job.com.azure.core.http.rest.Response<Void>
triggerWithResponse(String vaultName, String resourceGroupName, String jobName, com.azure.core.util.Context context)
Cancels a job.
-
-
-
Method Detail
-
trigger
void trigger(String vaultName, String resourceGroupName, String jobName)
Cancels a job. This is an asynchronous operation. To know the status of the cancellation, call GetCancelOperationResult API.- Parameters:
vaultName
- The name of the recovery services vault.resourceGroupName
- The name of the resource group where the recovery services vault is present.jobName
- Name of the job to cancel.- 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.
-
triggerWithResponse
com.azure.core.http.rest.Response<Void> triggerWithResponse(String vaultName, String resourceGroupName, String jobName, com.azure.core.util.Context context)
Cancels a job. This is an asynchronous operation. To know the status of the cancellation, call GetCancelOperationResult API.- Parameters:
vaultName
- The name of the recovery services vault.resourceGroupName
- The name of the resource group where the recovery services vault is present.jobName
- Name of the job to cancel.context
- The context to associate with this operation.- Returns:
- the
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.
-
-