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 Summary
ConstructorsConstructorDescriptionSourceStorageLocation(String location, String prefix) Creates an instance of SourceStorageLocation class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SourceStorageLocationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SourceStorageLocation from the JsonReader.Get the extensions property: List of extensions to filter path by.Get the location property: URL to storage location.Get the prefix property: Prefix to filter path by.setExtensions(List<String> extensions) Set the extensions property: List of extensions to filter path by.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SourceStorageLocation
Creates an instance of SourceStorageLocation class.- Parameters:
location- the location value to set.prefix- the prefix value to set.
-
-
Method Details
-
getLocation
Get the location property: URL to storage location.- Returns:
- the location value.
-
getPrefix
Get the prefix property: Prefix to filter path by.- Returns:
- the prefix value.
-
getExtensions
Get the extensions property: List of extensions to filter path by.- Returns:
- the extensions value.
-
setExtensions
Set the extensions property: List of extensions to filter path by.- Parameters:
extensions- the extensions value to set.- Returns:
- the SourceStorageLocation object itself.
-
toJson
- Specified by:
toJsonin interfacecom.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.
-