SessionDirectoryEntry Class

  • java.lang.Object
    • com.azure.ai.agents.models.SessionDirectoryEntry

Implements

public final class SessionDirectoryEntry
implements JsonSerializable<SessionDirectoryEntry>

A single entry in a directory listing.

Method Summary

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

Reads an instance of SessionDirectoryEntry from the JsonReader.

OffsetDateTime getModifiedTime()

Get the modifiedTime property: The Unix timestamp (in seconds) when the file was last modified.

String getName()

Get the name property: The name of the file or directory.

long getSize()

Get the size property: The size in bytes (0 for directories).

boolean isDirectory()

Get the isDirectory property: Whether this entry is a directory.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static SessionDirectoryEntry fromJson(JsonReader jsonReader)

Reads an instance of SessionDirectoryEntry from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getModifiedTime

public OffsetDateTime getModifiedTime()

Get the modifiedTime property: The Unix timestamp (in seconds) when the file was last modified.

Returns:

the modifiedTime value.

getName

public String getName()

Get the name property: The name of the file or directory.

Returns:

the name value.

getSize

public long getSize()

Get the size property: The size in bytes (0 for directories).

Returns:

the size value.

isDirectory

public boolean isDirectory()

Get the isDirectory property: Whether this entry is a directory.

Returns:

the isDirectory value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to