Class VirtualDirectory
java.lang.Object
com.azure.resourcemanager.appservice.models.VirtualDirectory
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualDirectory>
public final class VirtualDirectory
extends Object
implements com.azure.json.JsonSerializable<VirtualDirectory>
Directory for virtual application.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VirtualDirectory
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualDirectory from the JsonReader.Get the physicalPath property: Physical path.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Get the virtualPath property: Path to virtual application.withPhysicalPath
(String physicalPath) Set the physicalPath property: Physical path.withVirtualPath
(String virtualPath) Set the virtualPath property: Path to virtual application.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
VirtualDirectory
public VirtualDirectory()Creates an instance of VirtualDirectory class.
-
-
Method Details
-
virtualPath
Get the virtualPath property: Path to virtual application.- Returns:
- the virtualPath value.
-
withVirtualPath
Set the virtualPath property: Path to virtual application.- Parameters:
virtualPath
- the virtualPath value to set.- Returns:
- the VirtualDirectory object itself.
-
physicalPath
Get the physicalPath property: Physical path.- Returns:
- the physicalPath value.
-
withPhysicalPath
Set the physicalPath property: Physical path.- Parameters:
physicalPath
- the physicalPath value to set.- Returns:
- the VirtualDirectory object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<VirtualDirectory>
- Throws:
IOException
-
fromJson
Reads an instance of VirtualDirectory from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of VirtualDirectory if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the VirtualDirectory.
-