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

package com.azure.analytics.synapse.artifacts.models;

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

/** Script block of scripts. */
@Fluent
public final class ScriptActivityScriptBlock {
    /*
     * The query text. Type: string (or Expression with resultType string).
     */
    @JsonProperty(value = "text", required = true)
    private Object text;

    /*
     * The type of the query. Type: string.
     */
    @JsonProperty(value = "type", required = true)
    private ScriptType type;

    /*
     * Array of script parameters. Type: array.
     */
    @JsonProperty(value = "parameters")
    private List<ScriptActivityParameter> parameters;

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

    /**
     * Get the text property: The query text. Type: string (or Expression with resultType string).
     *
     * @return the text value.
     */
    public Object getText() {
        return this.text;
    }

    /**
     * Set the text property: The query text. Type: string (or Expression with resultType string).
     *
     * @param text the text value to set.
     * @return the ScriptActivityScriptBlock object itself.
     */
    public ScriptActivityScriptBlock setText(Object text) {
        this.text = text;
        return this;
    }

    /**
     * Get the type property: The type of the query. Type: string.
     *
     * @return the type value.
     */
    public ScriptType getType() {
        return this.type;
    }

    /**
     * Set the type property: The type of the query. Type: string.
     *
     * @param type the type value to set.
     * @return the ScriptActivityScriptBlock object itself.
     */
    public ScriptActivityScriptBlock setType(ScriptType type) {
        this.type = type;
        return this;
    }

    /**
     * Get the parameters property: Array of script parameters. Type: array.
     *
     * @return the parameters value.
     */
    public List<ScriptActivityParameter> getParameters() {
        return this.parameters;
    }

    /**
     * Set the parameters property: Array of script parameters. Type: array.
     *
     * @param parameters the parameters value to set.
     * @return the ScriptActivityScriptBlock object itself.
     */
    public ScriptActivityScriptBlock setParameters(List<ScriptActivityParameter> parameters) {
        this.parameters = parameters;
        return this;
    }
}
