// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.elastic.implementation;

import com.azure.core.util.Context;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.elastic.fluent.MonitorOperationsClient;
import com.azure.resourcemanager.elastic.models.ElasticMonitorUpgrade;
import com.azure.resourcemanager.elastic.models.MonitorOperations;

public final class MonitorOperationsImpl implements MonitorOperations {
    private static final ClientLogger LOGGER = new ClientLogger(MonitorOperationsImpl.class);

    private final MonitorOperationsClient innerClient;

    private final com.azure.resourcemanager.elastic.ElasticManager serviceManager;

    public MonitorOperationsImpl(
        MonitorOperationsClient innerClient, com.azure.resourcemanager.elastic.ElasticManager serviceManager) {
        this.innerClient = innerClient;
        this.serviceManager = serviceManager;
    }

    public void upgrade(String resourceGroupName, String monitorName) {
        this.serviceClient().upgrade(resourceGroupName, monitorName);
    }

    public void upgrade(String resourceGroupName, String monitorName, ElasticMonitorUpgrade body, Context context) {
        this.serviceClient().upgrade(resourceGroupName, monitorName, body, context);
    }

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

    private com.azure.resourcemanager.elastic.ElasticManager manager() {
        return this.serviceManager;
    }
}
