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

package com.azure.resourcemanager.logic.models;

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

/** The expression traces. */
@Fluent
public final class ExpressionTraces {
    /*
     * The inputs property.
     */
    @JsonProperty(value = "inputs")
    private List<ExpressionRoot> inputs;

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

    /**
     * Get the inputs property: The inputs property.
     *
     * @return the inputs value.
     */
    public List<ExpressionRoot> inputs() {
        return this.inputs;
    }

    /**
     * Set the inputs property: The inputs property.
     *
     * @param inputs the inputs value to set.
     * @return the ExpressionTraces object itself.
     */
    public ExpressionTraces withInputs(List<ExpressionRoot> inputs) {
        this.inputs = inputs;
        return this;
    }

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