Class VirtualApplication

java.lang.Object
com.azure.resourcemanager.appservice.models.VirtualApplication
All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualApplication>

public final class VirtualApplication extends Object implements com.azure.json.JsonSerializable<VirtualApplication>
Virtual application in an app.
  • Constructor Details

    • VirtualApplication

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

    • virtualPath

      public String virtualPath()
      Get the virtualPath property: Virtual path.
      Returns:
      the virtualPath value.
    • withVirtualPath

      public VirtualApplication withVirtualPath(String virtualPath)
      Set the virtualPath property: Virtual path.
      Parameters:
      virtualPath - the virtualPath value to set.
      Returns:
      the VirtualApplication object itself.
    • physicalPath

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

      public VirtualApplication withPhysicalPath(String physicalPath)
      Set the physicalPath property: Physical path.
      Parameters:
      physicalPath - the physicalPath value to set.
      Returns:
      the VirtualApplication object itself.
    • preloadEnabled

      public Boolean preloadEnabled()
      Get the preloadEnabled property: <code>true</code> if preloading is enabled; otherwise, <code>false</code>.
      Returns:
      the preloadEnabled value.
    • withPreloadEnabled

      public VirtualApplication withPreloadEnabled(Boolean preloadEnabled)
      Set the preloadEnabled property: <code>true</code> if preloading is enabled; otherwise, <code>false</code>.
      Parameters:
      preloadEnabled - the preloadEnabled value to set.
      Returns:
      the VirtualApplication object itself.
    • virtualDirectories

      public List<VirtualDirectory> virtualDirectories()
      Get the virtualDirectories property: Virtual directories for virtual application.
      Returns:
      the virtualDirectories value.
    • withVirtualDirectories

      public VirtualApplication withVirtualDirectories(List<VirtualDirectory> virtualDirectories)
      Set the virtualDirectories property: Virtual directories for virtual application.
      Parameters:
      virtualDirectories - the virtualDirectories value to set.
      Returns:
      the VirtualApplication 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<VirtualApplication>
      Throws:
      IOException
    • fromJson

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