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

package com.azure.resourcemanager.network.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.network.models.VirtualWanSecurityProvider;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** Collection of SecurityProviders. */
@Fluent
public final class VirtualWanSecurityProvidersInner {
    /*
     * List of VirtualWAN security providers.
     */
    @JsonProperty(value = "supportedProviders")
    private List<VirtualWanSecurityProvider> supportedProviders;

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

    /**
     * Get the supportedProviders property: List of VirtualWAN security providers.
     *
     * @return the supportedProviders value.
     */
    public List<VirtualWanSecurityProvider> supportedProviders() {
        return this.supportedProviders;
    }

    /**
     * Set the supportedProviders property: List of VirtualWAN security providers.
     *
     * @param supportedProviders the supportedProviders value to set.
     * @return the VirtualWanSecurityProvidersInner object itself.
     */
    public VirtualWanSecurityProvidersInner withSupportedProviders(
        List<VirtualWanSecurityProvider> supportedProviders) {
        this.supportedProviders = supportedProviders;
        return this;
    }

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