FileReferenceInputDataSource Class

public final class FileReferenceInputDataSource
extends ReferenceInputDataSource

Describes a file input data source that contains reference data.

Constructor Summary

Constructor Description
FileReferenceInputDataSource()

Creates an instance of FileReferenceInputDataSource class.

Method Summary

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

Reads an instance of FileReferenceInputDataSource from the JsonReader.

String path()

Get the path property: The path of the file.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Indicates the type of input data source containing reference data.

void validate()

Validates the instance.

FileReferenceInputDataSource withPath(String path)

Set the path property: The path of the file.

Methods inherited from ReferenceInputDataSource

Methods inherited from java.lang.Object

Constructor Details

FileReferenceInputDataSource

public FileReferenceInputDataSource()

Creates an instance of FileReferenceInputDataSource class.

Method Details

fromJson

public static FileReferenceInputDataSource fromJson(JsonReader jsonReader)

Reads an instance of FileReferenceInputDataSource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the FileReferenceInputDataSource.

path

public String path()

Get the path property: The path of the file.

Returns:

the path value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

FileReferenceInputDataSource.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Indicates the type of input data source containing reference data. Required on PUT (CreateOrReplace) requests.

Overrides:

FileReferenceInputDataSource.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

FileReferenceInputDataSource.validate()

withPath

public FileReferenceInputDataSource withPath(String path)

Set the path property: The path of the file.

Parameters:

path - the path value to set.

Returns:

the FileReferenceInputDataSource object itself.

Applies to