Class AzureBlobContentSource

java.lang.Object
com.azure.ai.documentintelligence.models.AzureBlobContentSource
All Implemented Interfaces:
com.azure.json.JsonSerializable<AzureBlobContentSource>

public final class AzureBlobContentSource extends Object implements com.azure.json.JsonSerializable<AzureBlobContentSource>
Azure Blob Storage content.
  • Constructor Details

    • AzureBlobContentSource

      public AzureBlobContentSource(String containerUrl)
      Creates an instance of AzureBlobContentSource class.
      Parameters:
      containerUrl - the containerUrl value to set.
  • Method Details

    • getContainerUrl

      public String getContainerUrl()
      Get the containerUrl property: Azure Blob Storage container URL.
      Returns:
      the containerUrl value.
    • getPrefix

      public String getPrefix()
      Get the prefix property: Blob name prefix.
      Returns:
      the prefix value.
    • setPrefix

      public AzureBlobContentSource setPrefix(String prefix)
      Set the prefix property: Blob name prefix.
      Parameters:
      prefix - the prefix value to set.
      Returns:
      the AzureBlobContentSource object itself.
    • toJson

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

      public static AzureBlobContentSource fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AzureBlobContentSource from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AzureBlobContentSource 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 AzureBlobContentSource.