Class SourceStorageLocation

java.lang.Object
com.azure.health.deidentification.models.SourceStorageLocation
All Implemented Interfaces:
com.azure.json.JsonSerializable<SourceStorageLocation>

public final class SourceStorageLocation extends Object implements com.azure.json.JsonSerializable<SourceStorageLocation>
Storage location.
  • Constructor Details

    • SourceStorageLocation

      public SourceStorageLocation(String location, String prefix)
      Creates an instance of SourceStorageLocation class.
      Parameters:
      location - the location value to set.
      prefix - the prefix value to set.
  • Method Details

    • getLocation

      public String getLocation()
      Get the location property: URL to storage location.
      Returns:
      the location value.
    • getPrefix

      public String getPrefix()
      Get the prefix property: Prefix to filter path by.
      Returns:
      the prefix value.
    • getExtensions

      public List<String> getExtensions()
      Get the extensions property: List of extensions to filter path by.
      Returns:
      the extensions value.
    • setExtensions

      public SourceStorageLocation setExtensions(List<String> extensions)
      Set the extensions property: List of extensions to filter path by.
      Parameters:
      extensions - the extensions value to set.
      Returns:
      the SourceStorageLocation 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<SourceStorageLocation>
      Throws:
      IOException
    • fromJson

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