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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VirtualApplication
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualApplication from the JsonReader.Get the physicalPath property: Physical path.Get the preloadEnabled property: <code>true</code> if preloading is enabled; otherwise, <code>false</code>.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Get the virtualDirectories property: Virtual directories for virtual application.Get the virtualPath property: Virtual path.withPhysicalPath
(String physicalPath) Set the physicalPath property: Physical path.withPreloadEnabled
(Boolean preloadEnabled) Set the preloadEnabled property: <code>true</code> if preloading is enabled; otherwise, <code>false</code>.withVirtualDirectories
(List<VirtualDirectory> virtualDirectories) Set the virtualDirectories property: Virtual directories for virtual application.withVirtualPath
(String virtualPath) Set the virtualPath property: Virtual path.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
-
VirtualApplication
public VirtualApplication()Creates an instance of VirtualApplication class.
-
-
Method Details
-
virtualPath
Get the virtualPath property: Virtual path.- Returns:
- the virtualPath value.
-
withVirtualPath
Set the virtualPath property: Virtual path.- Parameters:
virtualPath
- the virtualPath value to set.- Returns:
- the VirtualApplication 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 VirtualApplication object itself.
-
preloadEnabled
Get the preloadEnabled property: <code>true</code> if preloading is enabled; otherwise, <code>false</code>.- Returns:
- the preloadEnabled value.
-
withPreloadEnabled
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
Get the virtualDirectories property: Virtual directories for virtual application.- Returns:
- the virtualDirectories value.
-
withVirtualDirectories
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
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<VirtualApplication>
- Throws:
IOException
-
fromJson
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.
-