KnowledgeSourceFileCapacity Class

  • java.lang.Object
    • com.azure.search.documents.indexes.models.KnowledgeSourceFileCapacity

Implements

public final class KnowledgeSourceFileCapacity
implements JsonSerializable<KnowledgeSourceFileCapacity>

File upload capacity for a File knowledge source.

Method Summary

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

Reads an instance of KnowledgeSourceFileCapacity from the JsonReader.

int getMaxFileCount()

Get the maxFileCount property: The maximum number of files allowed in the knowledge source.

long getMaxFileSizeBytes()

Get the maxFileSizeBytes property: The maximum size in bytes of an individual uploaded file.

int getRemainingFileCount()

Get the remainingFileCount property: The number of additional files that can be uploaded at the time of the request.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static KnowledgeSourceFileCapacity fromJson(JsonReader jsonReader)

Reads an instance of KnowledgeSourceFileCapacity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getMaxFileCount

public int getMaxFileCount()

Get the maxFileCount property: The maximum number of files allowed in the knowledge source.

Returns:

the maxFileCount value.

getMaxFileSizeBytes

public long getMaxFileSizeBytes()

Get the maxFileSizeBytes property: The maximum size in bytes of an individual uploaded file.

Returns:

the maxFileSizeBytes value.

getRemainingFileCount

public int getRemainingFileCount()

Get the remainingFileCount property: The number of additional files that can be uploaded at the time of the request.

Returns:

the remainingFileCount value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to