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

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

/** Response for the DscpConfigurationList API service call. */
@Fluent
public final class DscpConfigurationListResult {
    /*
     * A list of dscp configurations in a resource group.
     */
    @JsonProperty(value = "value")
    private List<DscpConfigurationInner> value;

    /*
     * The URL to get the next set of results.
     */
    @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY)
    private String nextLink;

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

    /**
     * Get the value property: A list of dscp configurations in a resource group.
     *
     * @return the value value.
     */
    public List<DscpConfigurationInner> value() {
        return this.value;
    }

    /**
     * Set the value property: A list of dscp configurations in a resource group.
     *
     * @param value the value value to set.
     * @return the DscpConfigurationListResult object itself.
     */
    public DscpConfigurationListResult withValue(List<DscpConfigurationInner> value) {
        this.value = value;
        return this;
    }

    /**
     * Get the nextLink property: The URL to get the next set of results.
     *
     * @return the nextLink value.
     */
    public String nextLink() {
        return this.nextLink;
    }

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