Share via


FileListResponse Class

  • java.lang.Object
    • com.azure.ai.agents.persistent.models.FileListResponse

Implements

public final class FileListResponse
implements JsonSerializable<FileListResponse>

The response data from a file list operation.

Method Summary

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

Reads an instance of FileListResponse from the JsonReader.

List<FileInfo> getData()

Get the data property: The files returned for the request.

String getObject()

Get the object property: The object type, which is always 'list'.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static FileListResponse fromJson(JsonReader jsonReader)

Reads an instance of FileListResponse from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getData

public List<FileInfo> getData()

Get the data property: The files returned for the request.

Returns:

the data value.

getObject

public String getObject()

Get the object property: The object type, which is always 'list'.

Returns:

the object value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to