PowerQuerySource Class

public final class PowerQuerySource
extends DataFlowSource

Power query source.

Constructor Summary

Constructor Description
PowerQuerySource()

Creates an instance of PowerQuerySource class.

Method Summary

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

Reads an instance of PowerQuerySource from the JsonReader.

String script()

Get the script property: source script.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PowerQuerySource withDataset(DatasetReference dataset)

Set the dataset property: Dataset reference.

PowerQuerySource withDescription(String description)

Set the description property: Transformation description.

PowerQuerySource withFlowlet(DataFlowReference flowlet)

Set the flowlet property: Flowlet Reference.

PowerQuerySource withLinkedService(LinkedServiceReference linkedService)

Set the linkedService property: Linked service reference.

PowerQuerySource withName(String name)

Set the name property: Transformation name.

PowerQuerySource withSchemaLinkedService(LinkedServiceReference schemaLinkedService)

Set the schemaLinkedService property: Schema linked service reference.

PowerQuerySource withScript(String script)

Set the script property: source script.

Methods inherited from DataFlowSource

Methods inherited from Transformation

Methods inherited from java.lang.Object

Constructor Details

PowerQuerySource

public PowerQuerySource()

Creates an instance of PowerQuerySource class.

Method Details

fromJson

public static PowerQuerySource fromJson(JsonReader jsonReader)

Reads an instance of PowerQuerySource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

script

public String script()

Get the script property: source script.

Returns:

the script value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

PowerQuerySource.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

PowerQuerySource.validate()

withDataset

public PowerQuerySource withDataset(DatasetReference dataset)

Set the dataset property: Dataset reference.

Overrides:

PowerQuerySource.withDataset(DatasetReference dataset)

Parameters:

dataset

withDescription

public PowerQuerySource withDescription(String description)

Set the description property: Transformation description.

Overrides:

PowerQuerySource.withDescription(String description)

Parameters:

description

withFlowlet

public PowerQuerySource withFlowlet(DataFlowReference flowlet)

Set the flowlet property: Flowlet Reference.

Overrides:

PowerQuerySource.withFlowlet(DataFlowReference flowlet)

Parameters:

flowlet

withLinkedService

public PowerQuerySource withLinkedService(LinkedServiceReference linkedService)

Set the linkedService property: Linked service reference.

Overrides:

PowerQuerySource.withLinkedService(LinkedServiceReference linkedService)

Parameters:

linkedService

withName

public PowerQuerySource withName(String name)

Set the name property: Transformation name.

Overrides:

PowerQuerySource.withName(String name)

Parameters:

name

withSchemaLinkedService

public PowerQuerySource withSchemaLinkedService(LinkedServiceReference schemaLinkedService)

Set the schemaLinkedService property: Schema linked service reference.

Overrides:

PowerQuerySource.withSchemaLinkedService(LinkedServiceReference schemaLinkedService)

Parameters:

schemaLinkedService

withScript

public PowerQuerySource withScript(String script)

Set the script property: source script.

Parameters:

script - the script value to set.

Returns:

the PowerQuerySource object itself.

Applies to