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 Details

    • VirtualDirectory

      public VirtualDirectory()
      Creates an instance of VirtualDirectory class.
  • Method Details

    • virtualPath

      public String virtualPath()
      Get the virtualPath property: Path to virtual application.
      Returns:
      the virtualPath value.
    • withVirtualPath

      public VirtualDirectory withVirtualPath(String virtualPath)
      Set the virtualPath property: Path to virtual application.
      Parameters:
      virtualPath - the virtualPath value to set.
      Returns:
      the VirtualDirectory object itself.
    • physicalPath

      public String physicalPath()
      Get the physicalPath property: Physical path.
      Returns:
      the physicalPath value.
    • withPhysicalPath

      public VirtualDirectory withPhysicalPath(String physicalPath)
      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

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

      public static VirtualDirectory fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.