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

package com.azure.resourcemanager.storagepool.implementation;

import com.azure.resourcemanager.storagepool.fluent.models.ResourceSkuInfoInner;
import com.azure.resourcemanager.storagepool.models.ResourceSkuCapability;
import com.azure.resourcemanager.storagepool.models.ResourceSkuInfo;
import com.azure.resourcemanager.storagepool.models.ResourceSkuLocationInfo;
import com.azure.resourcemanager.storagepool.models.ResourceSkuRestrictions;
import java.util.Collections;
import java.util.List;

public final class ResourceSkuInfoImpl implements ResourceSkuInfo {
    private ResourceSkuInfoInner innerObject;

    private final com.azure.resourcemanager.storagepool.StoragePoolManager serviceManager;

    ResourceSkuInfoImpl(
        ResourceSkuInfoInner innerObject, com.azure.resourcemanager.storagepool.StoragePoolManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

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

    public List<ResourceSkuCapability> capabilities() {
        List<ResourceSkuCapability> inner = this.innerModel().capabilities();
        if (inner != null) {
            return Collections.unmodifiableList(inner);
        } else {
            return Collections.emptyList();
        }
    }

    public ResourceSkuLocationInfo locationInfo() {
        return this.innerModel().locationInfo();
    }

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

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

    public List<ResourceSkuRestrictions> restrictions() {
        List<ResourceSkuRestrictions> inner = this.innerModel().restrictions();
        if (inner != null) {
            return Collections.unmodifiableList(inner);
        } else {
            return Collections.emptyList();
        }
    }

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

    private com.azure.resourcemanager.storagepool.StoragePoolManager manager() {
        return this.serviceManager;
    }
}
