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

package com.azure.resourcemanager.loganalytics.implementation;

import com.azure.resourcemanager.loganalytics.fluent.models.UsageMetricInner;
import com.azure.resourcemanager.loganalytics.models.MetricName;
import com.azure.resourcemanager.loganalytics.models.UsageMetric;
import java.time.OffsetDateTime;

public final class UsageMetricImpl implements UsageMetric {
    private UsageMetricInner innerObject;

    private final com.azure.resourcemanager.loganalytics.LogAnalyticsManager serviceManager;

    UsageMetricImpl(
        UsageMetricInner innerObject, com.azure.resourcemanager.loganalytics.LogAnalyticsManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

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

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

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

    public OffsetDateTime nextResetTime() {
        return this.innerModel().nextResetTime();
    }

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

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

    private com.azure.resourcemanager.loganalytics.LogAnalyticsManager manager() {
        return this.serviceManager;
    }
}
