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

package com.azure.resourcemanager.recoveryservices.implementation;

import com.azure.resourcemanager.recoveryservices.fluent.models.VaultUsageInner;
import com.azure.resourcemanager.recoveryservices.models.NameInfo;
import com.azure.resourcemanager.recoveryservices.models.UsagesUnit;
import com.azure.resourcemanager.recoveryservices.models.VaultUsage;
import java.time.OffsetDateTime;

public final class VaultUsageImpl implements VaultUsage {
    private VaultUsageInner innerObject;

    private final com.azure.resourcemanager.recoveryservices.RecoveryServicesManager serviceManager;

    VaultUsageImpl(
        VaultUsageInner innerObject,
        com.azure.resourcemanager.recoveryservices.RecoveryServicesManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

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

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

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

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

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

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

    private com.azure.resourcemanager.recoveryservices.RecoveryServicesManager manager() {
        return this.serviceManager;
    }
}
