// 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.azure.resourcemanager.paloaltonetworks.ngfw.models.SecurityServicesTypeList;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Security services list response. */
@Fluent
public final class SecurityServicesResponseInner {
    /*
     * response value
     */
    @JsonProperty(value = "value", required = true)
    private SecurityServicesTypeList value;

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

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

    /**
     * Get the value property: response value.
     *
     * @return the value value.
     */
    public SecurityServicesTypeList value() {
        return this.value;
    }

    /**
     * Set the value property: response value.
     *
     * @param value the value value to set.
     * @return the SecurityServicesResponseInner object itself.
     */
    public SecurityServicesResponseInner withValue(SecurityServicesTypeList 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 SecurityServicesResponseInner object itself.
     */
    public SecurityServicesResponseInner 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 SecurityServicesResponseInner"));
        } else {
            value().validate();
        }
    }

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