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

package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models;

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

/** List firewalls response. */
@Fluent
public final class ListFirewallsResponseInner {
    /*
     * firewalls list
     */
    @JsonProperty(value = "value", required = true)
    private List<String> value;

    /*
     * next link
     */
    @JsonProperty(value = "nextLink")
    private String nextLink;

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

    /**
     * Get the value property: firewalls list.
     *
     * @return the value value.
     */
    public List<String> value() {
        return this.value;
    }

    /**
     * Set the value property: firewalls list.
     *
     * @param value the value value to set.
     * @return the ListFirewallsResponseInner object itself.
     */
    public ListFirewallsResponseInner withValue(List<String> value) {
        this.value = value;
        return this;
    }

    /**
     * Get the nextLink property: next link.
     *
     * @return the nextLink value.
     */
    public String nextLink() {
        return this.nextLink;
    }

    /**
     * Set the nextLink property: next link.
     *
     * @param nextLink the nextLink value to set.
     * @return the ListFirewallsResponseInner object itself.
     */
    public ListFirewallsResponseInner withNextLink(String nextLink) {
        this.nextLink = nextLink;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (value() == null) {
            throw LOGGER
                .logExceptionAsError(
                    new IllegalArgumentException(
                        "Missing required property value in model ListFirewallsResponseInner"));
        }
    }

    private static final ClientLogger LOGGER = new ClientLogger(ListFirewallsResponseInner.class);
}
