// 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.fluent.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** The network function vendor. */
@Fluent
public final class NetworkFunctionVendorInner {
    /*
     * Vendors of Hybrid Network service provider.
     */
    @JsonProperty(value = "properties")
    private VendorDetails innerProperties;

    /** Creates an instance of NetworkFunctionVendorInner class. */
    public NetworkFunctionVendorInner() {
    }

    /**
     * Get the innerProperties property: Vendors of Hybrid Network service provider.
     *
     * @return the innerProperties value.
     */
    private VendorDetails innerProperties() {
        return this.innerProperties;
    }

    /**
     * Get the vendorName property: The network function vendor name.
     *
     * @return the vendorName value.
     */
    public String vendorName() {
        return this.innerProperties() == null ? null : this.innerProperties().vendorName();
    }

    /**
     * Set the vendorName property: The network function vendor name.
     *
     * @param vendorName the vendorName value to set.
     * @return the NetworkFunctionVendorInner object itself.
     */
    public NetworkFunctionVendorInner withVendorName(String vendorName) {
        if (this.innerProperties() == null) {
            this.innerProperties = new VendorDetails();
        }
        this.innerProperties().withVendorName(vendorName);
        return this;
    }

    /**
     * Get the skuList property: The network function sku list.
     *
     * @return the skuList value.
     */
    public List<SkuOverviewInner> skuList() {
        return this.innerProperties() == null ? null : this.innerProperties().skuList();
    }

    /**
     * Set the skuList property: The network function sku list.
     *
     * @param skuList the skuList value to set.
     * @return the NetworkFunctionVendorInner object itself.
     */
    public NetworkFunctionVendorInner withSkuList(List<SkuOverviewInner> skuList) {
        if (this.innerProperties() == null) {
            this.innerProperties = new VendorDetails();
        }
        this.innerProperties().withSkuList(skuList);
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (innerProperties() != null) {
            innerProperties().validate();
        }
    }
}
