SftpLocation Class

public final class SftpLocation
extends DatasetLocation

The location of SFTP dataset.

Constructor Summary

Constructor Description
SftpLocation()

Creates an instance of SftpLocation class.

Method Summary

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

Reads an instance of SftpLocation from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Type of dataset storage location.

void validate()

Validates the instance.

SftpLocation withFileName(Object fileName)

Set the fileName property: Specify the file name of dataset.

SftpLocation withFolderPath(Object folderPath)

Set the folderPath property: Specify the folder path of dataset.

Methods inherited from DatasetLocation

Methods inherited from java.lang.Object

Constructor Details

SftpLocation

public SftpLocation()

Creates an instance of SftpLocation class.

Method Details

fromJson

public static SftpLocation fromJson(JsonReader jsonReader)

Reads an instance of SftpLocation from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

SftpLocation.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Type of dataset storage location.

Overrides:

SftpLocation.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

SftpLocation.validate()

withFileName

public SftpLocation withFileName(Object fileName)

Set the fileName property: Specify the file name of dataset. Type: string (or Expression with resultType string).

Overrides:

SftpLocation.withFileName(Object fileName)

Parameters:

fileName

withFolderPath

public SftpLocation withFolderPath(Object folderPath)

Set the folderPath property: Specify the folder path of dataset. Type: string (or Expression with resultType string).

Overrides:

SftpLocation.withFolderPath(Object folderPath)

Parameters:

folderPath

Applies to