Share via


LabeledDataKnowledgeSource Class

public final class LabeledDataKnowledgeSource
extends KnowledgeSource

Labeled data knowledge source.

Constructor Summary

Constructor Description
LabeledDataKnowledgeSource()

Creates an instance of LabeledDataKnowledgeSource class.

Method Summary

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

Reads an instance of LabeledDataKnowledgeSource from the JsonReader.

String getContainerUrl()

Get the containerUrl property: The URL of the blob container containing labeled data.

String getFileListPath()

Get the fileListPath property: An optional path to a file listing specific blobs to include.

KnowledgeSourceKind getKind()

Get the kind property: The kind of knowledge source.

String getPrefix()

Get the prefix property: An optional prefix to filter blobs within the container.

LabeledDataKnowledgeSource setContainerUrl(String containerUrl)

Set the containerUrl property: The URL of the blob container containing labeled data.

LabeledDataKnowledgeSource setFileListPath(String fileListPath)

Set the fileListPath property: An optional path to a file listing specific blobs to include.

LabeledDataKnowledgeSource setPrefix(String prefix)

Set the prefix property: An optional prefix to filter blobs within the container.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from KnowledgeSource

Methods inherited from java.lang.Object

Constructor Details

LabeledDataKnowledgeSource

public LabeledDataKnowledgeSource()

Creates an instance of LabeledDataKnowledgeSource class.

Method Details

fromJson

public static LabeledDataKnowledgeSource fromJson(JsonReader jsonReader)

Reads an instance of LabeledDataKnowledgeSource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getContainerUrl

public String getContainerUrl()

Get the containerUrl property: The URL of the blob container containing labeled data.

Returns:

the containerUrl value.

getFileListPath

public String getFileListPath()

Get the fileListPath property: An optional path to a file listing specific blobs to include.

Returns:

the fileListPath value.

getKind

public KnowledgeSourceKind getKind()

Get the kind property: The kind of knowledge source.

Overrides:

LabeledDataKnowledgeSource.getKind()

Returns:

the kind value.

getPrefix

public String getPrefix()

Get the prefix property: An optional prefix to filter blobs within the container.

Returns:

the prefix value.

setContainerUrl

public LabeledDataKnowledgeSource setContainerUrl(String containerUrl)

Set the containerUrl property: The URL of the blob container containing labeled data.

Required when create the resource.

Parameters:

containerUrl - the containerUrl value to set.

Returns:

the LabeledDataKnowledgeSource object itself.

setFileListPath

public LabeledDataKnowledgeSource setFileListPath(String fileListPath)

Set the fileListPath property: An optional path to a file listing specific blobs to include.

Required when create the resource.

Parameters:

fileListPath - the fileListPath value to set.

Returns:

the LabeledDataKnowledgeSource object itself.

setPrefix

public LabeledDataKnowledgeSource setPrefix(String prefix)

Set the prefix property: An optional prefix to filter blobs within the container.

Parameters:

prefix - the prefix value to set.

Returns:

the LabeledDataKnowledgeSource object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

LabeledDataKnowledgeSource.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to