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

package com.azure.resourcemanager.avs.implementation;

import com.azure.resourcemanager.avs.fluent.models.QuotaInner;
import com.azure.resourcemanager.avs.models.Quota;
import com.azure.resourcemanager.avs.models.QuotaEnabled;
import java.util.Collections;
import java.util.Map;

public final class QuotaImpl implements Quota {
    private QuotaInner innerObject;

    private final com.azure.resourcemanager.avs.AvsManager serviceManager;

    QuotaImpl(QuotaInner innerObject, com.azure.resourcemanager.avs.AvsManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

    public Map<String, Integer> hostsRemaining() {
        Map<String, Integer> inner = this.innerModel().hostsRemaining();
        if (inner != null) {
            return Collections.unmodifiableMap(inner);
        } else {
            return Collections.emptyMap();
        }
    }

    public QuotaEnabled quotaEnabled() {
        return this.innerModel().quotaEnabled();
    }

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

    private com.azure.resourcemanager.avs.AvsManager manager() {
        return this.serviceManager;
    }
}
