Class VectorStoreDataSource

java.lang.Object
com.azure.ai.agents.persistent.models.VectorStoreDataSource
All Implemented Interfaces:
com.azure.json.JsonSerializable<VectorStoreDataSource>

public final class VectorStoreDataSource extends Object implements com.azure.json.JsonSerializable<VectorStoreDataSource>
The structure, containing Azure asset URI path and the asset type of the file used as a data source for the enterprise file search.
  • Constructor Details

    • VectorStoreDataSource

      public VectorStoreDataSource(String assetIdentifier, VectorStoreDataSourceAssetType assetType)
      Creates an instance of VectorStoreDataSource class.
      Parameters:
      assetIdentifier - the assetIdentifier value to set.
      assetType - the assetType value to set.
  • Method Details

    • getAssetIdentifier

      public String getAssetIdentifier()
      Get the assetIdentifier property: Asset URI.
      Returns:
      the assetIdentifier value.
    • getAssetType

      public VectorStoreDataSourceAssetType getAssetType()
      Get the assetType property: The asset type.
      Returns:
      the assetType value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<VectorStoreDataSource>
      Throws:
      IOException
    • fromJson

      public static VectorStoreDataSource fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of VectorStoreDataSource from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of VectorStoreDataSource if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the VectorStoreDataSource.