VariableSpecification Class

  • java.lang.Object
    • com.azure.resourcemanager.datafactory.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
Object defaultValue()

Get the defaultValue property: Default value of variable.

static VariableSpecification fromJson(JsonReader jsonReader)

Reads an instance of VariableSpecification from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
VariableType type()

Get the type property: Variable type.

void validate()

Validates the instance.

VariableSpecification withDefaultValue(Object defaultValue)

Set the defaultValue property: Default value of variable.

VariableSpecification withType(VariableType type)

Set the type property: Variable type.

Methods inherited from java.lang.Object

Constructor Details

VariableSpecification

public VariableSpecification()

Creates an instance of VariableSpecification class.

Method Details

defaultValue

public Object defaultValue()

Get the defaultValue property: Default value of variable.

Returns:

the defaultValue value.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public VariableType type()

Get the type property: Variable type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withDefaultValue

public VariableSpecification withDefaultValue(Object defaultValue)

Set the defaultValue property: Default value of variable.

Parameters:

defaultValue - the defaultValue value to set.

Returns:

the VariableSpecification object itself.

withType

public VariableSpecification withType(VariableType type)

Set the type property: Variable type.

Parameters:

type - the type value to set.

Returns:

the VariableSpecification object itself.

Applies to