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

package com.azure.resourcemanager.managednetworkfabric.implementation;

import com.azure.core.management.SystemData;
import com.azure.resourcemanager.managednetworkfabric.fluent.models.NetworkRackSkuInner;
import com.azure.resourcemanager.managednetworkfabric.models.NetworkDeviceRoleProperties;
import com.azure.resourcemanager.managednetworkfabric.models.NetworkRackRoleName;
import com.azure.resourcemanager.managednetworkfabric.models.NetworkRackSku;
import com.azure.resourcemanager.managednetworkfabric.models.ProvisioningState;
import java.util.Collections;
import java.util.List;

public final class NetworkRackSkuImpl implements NetworkRackSku {
    private NetworkRackSkuInner innerObject;

    private final com.azure.resourcemanager.managednetworkfabric.ManagedNetworkFabricManager serviceManager;

    NetworkRackSkuImpl(
        NetworkRackSkuInner innerObject,
        com.azure.resourcemanager.managednetworkfabric.ManagedNetworkFabricManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

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

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

    public SystemData systemData() {
        return this.innerModel().systemData();
    }

    public NetworkRackRoleName roleName() {
        return this.innerModel().roleName();
    }

    public Integer maximumServerCount() {
        return this.innerModel().maximumServerCount();
    }

    public Integer maximumStorageCount() {
        return this.innerModel().maximumStorageCount();
    }

    public Integer maximumUplinks() {
        return this.innerModel().maximumUplinks();
    }

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

    public ProvisioningState provisioningState() {
        return this.innerModel().provisioningState();
    }

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

    private com.azure.resourcemanager.managednetworkfabric.ManagedNetworkFabricManager manager() {
        return this.serviceManager;
    }
}
