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

package com.azure.resourcemanager.kusto.models;

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

/** The list attached database configurations operation response. */
@Fluent
public final class AttachedDatabaseConfigurationListResult {
    /*
     * The list of attached database configurations.
     */
    @JsonProperty(value = "value")
    private List<AttachedDatabaseConfigurationInner> value;

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

    /**
     * Get the value property: The list of attached database configurations.
     *
     * @return the value value.
     */
    public List<AttachedDatabaseConfigurationInner> value() {
        return this.value;
    }

    /**
     * Set the value property: The list of attached database configurations.
     *
     * @param value the value value to set.
     * @return the AttachedDatabaseConfigurationListResult object itself.
     */
    public AttachedDatabaseConfigurationListResult withValue(List<AttachedDatabaseConfigurationInner> value) {
        this.value = value;
        return this;
    }

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