// 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.ValidateOperationsClient;
import com.azure.resourcemanager.recoveryservicesbackup.models.ValidateOperationRequest;
import com.azure.resourcemanager.recoveryservicesbackup.models.ValidateOperations;

public final class ValidateOperationsImpl implements ValidateOperations {
    private static final ClientLogger LOGGER = new ClientLogger(ValidateOperationsImpl.class);

    private final ValidateOperationsClient innerClient;

    private final com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager serviceManager;

    public ValidateOperationsImpl(
        ValidateOperationsClient innerClient,
        com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager serviceManager) {
        this.innerClient = innerClient;
        this.serviceManager = serviceManager;
    }

    public void trigger(String vaultName, String resourceGroupName, ValidateOperationRequest parameters) {
        this.serviceClient().trigger(vaultName, resourceGroupName, parameters);
    }

    public void trigger(
        String vaultName, String resourceGroupName, ValidateOperationRequest parameters, Context context) {
        this.serviceClient().trigger(vaultName, resourceGroupName, parameters, context);
    }

    private ValidateOperationsClient serviceClient() {
        return this.innerClient;
    }

    private com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager manager() {
        return this.serviceManager;
    }
}
