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

package com.azure.resourcemanager.storagecache.implementation;

import com.azure.resourcemanager.storagecache.fluent.models.ResourceUsageInner;
import com.azure.resourcemanager.storagecache.models.ResourceUsage;
import com.azure.resourcemanager.storagecache.models.ResourceUsageName;

public final class ResourceUsageImpl implements ResourceUsage {
    private ResourceUsageInner innerObject;

    private final com.azure.resourcemanager.storagecache.StorageCacheManager serviceManager;

    ResourceUsageImpl(
        ResourceUsageInner innerObject, com.azure.resourcemanager.storagecache.StorageCacheManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

    public Integer limit() {
        return this.innerModel().limit();
    }

    public String unit() {
        return this.innerModel().unit();
    }

    public Integer currentValue() {
        return this.innerModel().currentValue();
    }

    public ResourceUsageName name() {
        return this.innerModel().name();
    }

    public ResourceUsageInner innerModel() {
        return this.innerObject;
    }

    private com.azure.resourcemanager.storagecache.StorageCacheManager manager() {
        return this.serviceManager;
    }
}
