SqlScript Class

  • java.lang.Object
    • com.azure.analytics.synapse.artifacts.models.SqlScript

Implements

public final class SqlScript
implements JsonSerializable<SqlScript>

SQL script.

Constructor Summary

Constructor Description
SqlScript()

Creates an instance of SqlScript class.

Method Summary

Modifier and Type Method and Description
static SqlScript fromJson(JsonReader jsonReader)

Reads an instance of SqlScript from the JsonReader.

Map<String,Object> getAdditionalProperties()

Get the additionalProperties property: SQL script.

SqlScriptContent getContent()

Get the content property: The content of the SQL script.

String getDescription()

Get the description property: The description of the SQL script.

SqlScriptFolder getFolder()

Get the folder property: The folder that this SQL script is in.

SqlScriptType getType()

Get the type property: The type of the SQL script.

SqlScript setAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: SQL script.

SqlScript setContent(SqlScriptContent content)

Set the content property: The content of the SQL script.

SqlScript setDescription(String description)

Set the description property: The description of the SQL script.

SqlScript setFolder(SqlScriptFolder folder)

Set the folder property: The folder that this SQL script is in.

SqlScript setType(SqlScriptType type)

Set the type property: The type of the SQL script.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

SqlScript

public SqlScript()

Creates an instance of SqlScript class.

Method Details

fromJson

public static SqlScript fromJson(JsonReader jsonReader)

Reads an instance of SqlScript from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SqlScript if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getAdditionalProperties

public Map<String,Object> getAdditionalProperties()

Get the additionalProperties property: SQL script.

Returns:

the additionalProperties value.

getContent

public SqlScriptContent getContent()

Get the content property: The content of the SQL script.

Returns:

the content value.

getDescription

public String getDescription()

Get the description property: The description of the SQL script.

Returns:

the description value.

getFolder

public SqlScriptFolder getFolder()

Get the folder property: The folder that this SQL script is in. If not specified, this SQL script will appear at the root level.

Returns:

the folder value.

getType

public SqlScriptType getType()

Get the type property: The type of the SQL script.

Returns:

the type value.

setAdditionalProperties

public SqlScript setAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: SQL script.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the SqlScript object itself.

setContent

public SqlScript setContent(SqlScriptContent content)

Set the content property: The content of the SQL script.

Parameters:

content - the content value to set.

Returns:

the SqlScript object itself.

setDescription

public SqlScript setDescription(String description)

Set the description property: The description of the SQL script.

Parameters:

description - the description value to set.

Returns:

the SqlScript object itself.

setFolder

public SqlScript setFolder(SqlScriptFolder 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.

Parameters:

folder - the folder value to set.

Returns:

the SqlScript object itself.

setType

public SqlScript setType(SqlScriptType type)

Set the type property: The type of the SQL script.

Parameters:

type - the type value to set.

Returns:

the SqlScript object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to