// 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;

/** Parameters of a script block. */
@Fluent
public final class ScriptActivityParameter {
    /*
     * The name of the parameter. Type: string (or Expression with resultType string).
     */
    @JsonProperty(value = "name")
    private Object name;

    /*
     * The type of the parameter.
     */
    @JsonProperty(value = "type")
    private ScriptActivityParameterType type;

    /*
     * The value of the parameter.
     */
    @JsonProperty(value = "value")
    private Object value;

    /*
     * The direction of the parameter.
     */
    @JsonProperty(value = "direction")
    private ScriptActivityParameterDirection direction;

    /*
     * The size of the output direction parameter.
     */
    @JsonProperty(value = "size")
    private Integer size;

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

    /**
     * Get the name property: The name of the parameter. Type: string (or Expression with resultType string).
     *
     * @return the name value.
     */
    public Object getName() {
        return this.name;
    }

    /**
     * Set the name property: The name of the parameter. Type: string (or Expression with resultType string).
     *
     * @param name the name value to set.
     * @return the ScriptActivityParameter object itself.
     */
    public ScriptActivityParameter setName(Object name) {
        this.name = name;
        return this;
    }

    /**
     * Get the type property: The type of the parameter.
     *
     * @return the type value.
     */
    public ScriptActivityParameterType getType() {
        return this.type;
    }

    /**
     * Set the type property: The type of the parameter.
     *
     * @param type the type value to set.
     * @return the ScriptActivityParameter object itself.
     */
    public ScriptActivityParameter setType(ScriptActivityParameterType type) {
        this.type = type;
        return this;
    }

    /**
     * Get the value property: The value of the parameter.
     *
     * @return the value value.
     */
    public Object getValue() {
        return this.value;
    }

    /**
     * Set the value property: The value of the parameter.
     *
     * @param value the value value to set.
     * @return the ScriptActivityParameter object itself.
     */
    public ScriptActivityParameter setValue(Object value) {
        this.value = value;
        return this;
    }

    /**
     * Get the direction property: The direction of the parameter.
     *
     * @return the direction value.
     */
    public ScriptActivityParameterDirection getDirection() {
        return this.direction;
    }

    /**
     * Set the direction property: The direction of the parameter.
     *
     * @param direction the direction value to set.
     * @return the ScriptActivityParameter object itself.
     */
    public ScriptActivityParameter setDirection(ScriptActivityParameterDirection direction) {
        this.direction = direction;
        return this;
    }

    /**
     * Get the size property: The size of the output direction parameter.
     *
     * @return the size value.
     */
    public Integer getSize() {
        return this.size;
    }

    /**
     * Set the size property: The size of the output direction parameter.
     *
     * @param size the size value to set.
     * @return the ScriptActivityParameter object itself.
     */
    public ScriptActivityParameter setSize(Integer size) {
        this.size = size;
        return this;
    }
}
