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

package com.azure.resourcemanager.machinelearning.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Details of customized scripts to execute for setting up the cluster. */
@Fluent
public final class SetupScripts {
    /*
     * Customized setup scripts
     */
    @JsonProperty(value = "scripts")
    private ScriptsToExecute scripts;

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

    /**
     * Get the scripts property: Customized setup scripts.
     *
     * @return the scripts value.
     */
    public ScriptsToExecute scripts() {
        return this.scripts;
    }

    /**
     * Set the scripts property: Customized setup scripts.
     *
     * @param scripts the scripts value to set.
     * @return the SetupScripts object itself.
     */
    public SetupScripts withScripts(ScriptsToExecute scripts) {
        this.scripts = scripts;
        return this;
    }

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