// 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.NetworkFunctionVendorInner;
import com.azure.resourcemanager.hybridnetwork.fluent.models.SkuOverviewInner;
import com.azure.resourcemanager.hybridnetwork.models.NetworkFunctionVendor;
import com.azure.resourcemanager.hybridnetwork.models.SkuOverview;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;

public final class NetworkFunctionVendorImpl implements NetworkFunctionVendor {
    private NetworkFunctionVendorInner innerObject;

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

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

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

    public List<SkuOverview> skuList() {
        List<SkuOverviewInner> inner = this.innerModel().skuList();
        if (inner != null) {
            return Collections
                .unmodifiableList(
                    inner
                        .stream()
                        .map(inner1 -> new SkuOverviewImpl(inner1, this.manager()))
                        .collect(Collectors.toList()));
        } else {
            return Collections.emptyList();
        }
    }

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

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