SqlScript.java

// 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.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.HashMap;
import java.util.Map;

/** SQL script. */
@Fluent
public final class SqlScript {
    /*
     * The description of the SQL script.
     */
    @JsonProperty(value = "description")
    private String description;

    /*
     * The type of the SQL script.
     */
    @JsonProperty(value = "type")
    private SqlScriptType type;

    /*
     * The content of the SQL script.
     */
    @JsonProperty(value = "content", required = true)
    private SqlScriptContent content;

    /*
     * The folder that this SQL script is in. If not specified, this SQL script
     * will appear at the root level.
     */
    @JsonProperty(value = "folder")
    private SqlScriptFolder folder;

    /*
     * SQL script.
     */
    @JsonIgnore private Map<String, Object> additionalProperties;

    /**
     * Get the description property: The description of the SQL script.
     *
     * @return the description value.
     */
    public String getDescription() {
        return this.description;
    }

    /**
     * Set the description property: The description of the SQL script.
     *
     * @param description the description value to set.
     * @return the SqlScript object itself.
     */
    public SqlScript setDescription(String description) {
        this.description = description;
        return this;
    }

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

    /**
     * Set the type property: The type of the SQL script.
     *
     * @param type the type value to set.
     * @return the SqlScript object itself.
     */
    public SqlScript setType(SqlScriptType type) {
        this.type = type;
        return this;
    }

    /**
     * Get the content property: The content of the SQL script.
     *
     * @return the content value.
     */
    public SqlScriptContent getContent() {
        return this.content;
    }

    /**
     * Set the content property: The content of the SQL script.
     *
     * @param content the content value to set.
     * @return the SqlScript object itself.
     */
    public SqlScript setContent(SqlScriptContent content) {
        this.content = content;
        return this;
    }

    /**
     * Get the folder property: The folder that this SQL script is in. If not specified, this SQL script will appear at
     * the root level.
     *
     * @return the folder value.
     */
    public SqlScriptFolder getFolder() {
        return this.folder;
    }

    /**
     * Set the folder property: The folder that this SQL script is in. If not specified, this SQL script will appear at
     * the root level.
     *
     * @param folder the folder value to set.
     * @return the SqlScript object itself.
     */
    public SqlScript setFolder(SqlScriptFolder folder) {
        this.folder = folder;
        return this;
    }

    /**
     * Get the additionalProperties property: SQL script.
     *
     * @return the additionalProperties value.
     */
    @JsonAnyGetter
    public Map<String, Object> getAdditionalProperties() {
        return this.additionalProperties;
    }

    /**
     * Set the additionalProperties property: SQL script.
     *
     * @param additionalProperties the additionalProperties value to set.
     * @return the SqlScript object itself.
     */
    public SqlScript setAdditionalProperties(Map<String, Object> additionalProperties) {
        this.additionalProperties = additionalProperties;
        return this;
    }

    @JsonAnySetter
    void setAdditionalProperties(String key, Object value) {
        if (additionalProperties == null) {
            additionalProperties = new HashMap<>();
        }
        additionalProperties.put(key, value);
    }
}