com.azure.resourcemanager.recoveryservicesbackup.implementation.RestoresImpl 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.util.Context;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.recoveryservicesbackup.fluent.RestoresClient;
import com.azure.resourcemanager.recoveryservicesbackup.models.RestoreRequestResource;
import com.azure.resourcemanager.recoveryservicesbackup.models.Restores;
public final class RestoresImpl implements Restores {
private static final ClientLogger LOGGER = new ClientLogger(RestoresImpl.class);
private final RestoresClient innerClient;
private final com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager serviceManager;
public RestoresImpl(RestoresClient innerClient,
com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager serviceManager) {
this.innerClient = innerClient;
this.serviceManager = serviceManager;
}
public void trigger(String vaultName, String resourceGroupName, String fabricName, String containerName,
String protectedItemName, String recoveryPointId, RestoreRequestResource parameters) {
this.serviceClient().trigger(vaultName, resourceGroupName, fabricName, containerName, protectedItemName,
recoveryPointId, parameters);
}
public void trigger(String vaultName, String resourceGroupName, String fabricName, String containerName,
String protectedItemName, String recoveryPointId, RestoreRequestResource parameters, Context context) {
this.serviceClient().trigger(vaultName, resourceGroupName, fabricName, containerName, protectedItemName,
recoveryPointId, parameters, context);
}
private RestoresClient serviceClient() {
return this.innerClient;
}
private com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager manager() {
return this.serviceManager;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy