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

package com.azure.resourcemanager.hybridnetwork.implementation;

import com.azure.resourcemanager.hybridnetwork.fluent.models.NetworkFunctionSkuRoleDetailsInner;
import com.azure.resourcemanager.hybridnetwork.models.NetworkFunctionSkuRoleDetails;
import com.azure.resourcemanager.hybridnetwork.models.NetworkInterface;
import java.util.Collections;
import java.util.List;

public final class NetworkFunctionSkuRoleDetailsImpl implements NetworkFunctionSkuRoleDetails {
    private NetworkFunctionSkuRoleDetailsInner innerObject;

    private final com.azure.resourcemanager.hybridnetwork.HybridNetworkManager serviceManager;

    NetworkFunctionSkuRoleDetailsImpl(
        NetworkFunctionSkuRoleDetailsInner innerObject,
        com.azure.resourcemanager.hybridnetwork.HybridNetworkManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

    public Object userDataTemplate() {
        return this.innerModel().userDataTemplate();
    }

    public Object userDataParameters() {
        return this.innerModel().userDataParameters();
    }

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

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

    private com.azure.resourcemanager.hybridnetwork.HybridNetworkManager manager() {
        return this.serviceManager;
    }
}
