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

package com.azure.resourcemanager.webpubsub.implementation;

import com.azure.resourcemanager.webpubsub.fluent.models.SignalRServiceUsageInner;
import com.azure.resourcemanager.webpubsub.models.SignalRServiceUsage;
import com.azure.resourcemanager.webpubsub.models.SignalRServiceUsageName;

public final class SignalRServiceUsageImpl implements SignalRServiceUsage {
    private SignalRServiceUsageInner innerObject;

    private final com.azure.resourcemanager.webpubsub.WebPubSubManager serviceManager;

    SignalRServiceUsageImpl(
        SignalRServiceUsageInner innerObject, com.azure.resourcemanager.webpubsub.WebPubSubManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

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

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

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

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

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

    private com.azure.resourcemanager.webpubsub.WebPubSubManager manager() {
        return this.serviceManager;
    }
}
