VariableSpecification Class

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

Implements

public final class VariableSpecification
implements JsonSerializable<VariableSpecification>

Definition of a single variable for a Pipeline.

Constructor Summary

Constructor Description
VariableSpecification()

Creates an instance of VariableSpecification class.

Method Summary

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

Reads an instance of VariableSpecification from the JsonReader.

Object getDefaultValue()

Get the defaultValue property: Default value of variable.

VariableType getType()

Get the type property: Variable type.

VariableSpecification setDefaultValue(Object defaultValue)

Set the defaultValue property: Default value of variable.

VariableSpecification setType(VariableType type)

Set the type property: Variable type.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

VariableSpecification

public VariableSpecification()

Creates an instance of VariableSpecification class.

Method Details

fromJson

public static VariableSpecification fromJson(JsonReader jsonReader)

Reads an instance of VariableSpecification from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VariableSpecification 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.

getDefaultValue

public Object getDefaultValue()

Get the defaultValue property: Default value of variable.

Returns:

the defaultValue value.

getType

public VariableType getType()

Get the type property: Variable type.

Returns:

the type value.

setDefaultValue

public VariableSpecification setDefaultValue(Object defaultValue)

Set the defaultValue property: Default value of variable.

Parameters:

defaultValue - the defaultValue value to set.

Returns:

the VariableSpecification object itself.

setType

public VariableSpecification setType(VariableType type)

Set the type property: Variable type.

Parameters:

type - the type value to set.

Returns:

the VariableSpecification object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to