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

package com.azure.resourcemanager.machinelearningservices.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Details of customized scripts to execute for setting up the cluster. */
@Fluent
public final class SetupScripts {
    @JsonIgnore private final ClientLogger logger = new ClientLogger(SetupScripts.class);

    /*
     * Customized setup scripts
     */
    @JsonProperty(value = "scripts")
    private ScriptsToExecute scripts;

    /**
     * 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();
        }
    }
}
