com.azure.resourcemanager.recoveryservicesbackup.implementation.JobCancellationsImpl Maven / Gradle / Ivy
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.recoveryservicesbackup.implementation;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.recoveryservicesbackup.fluent.JobCancellationsClient;
import com.azure.resourcemanager.recoveryservicesbackup.models.JobCancellations;
public final class JobCancellationsImpl implements JobCancellations {
private static final ClientLogger LOGGER = new ClientLogger(JobCancellationsImpl.class);
private final JobCancellationsClient innerClient;
private final com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager serviceManager;
public JobCancellationsImpl(JobCancellationsClient innerClient,
com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager serviceManager) {
this.innerClient = innerClient;
this.serviceManager = serviceManager;
}
public Response triggerWithResponse(String vaultName, String resourceGroupName, String jobName,
Context context) {
return this.serviceClient().triggerWithResponse(vaultName, resourceGroupName, jobName, context);
}
public void trigger(String vaultName, String resourceGroupName, String jobName) {
this.serviceClient().trigger(vaultName, resourceGroupName, jobName);
}
private JobCancellationsClient serviceClient() {
return this.innerClient;
}
private com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager manager() {
return this.serviceManager;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy