Class InstallScriptSource
java.lang.Object
com.azure.resourcemanager.appservice.models.InstallScriptSource
- All Implemented Interfaces:
com.azure.json.JsonSerializable<InstallScriptSource>
public final class InstallScriptSource
extends Object
implements com.azure.json.JsonSerializable<InstallScriptSource>
Object to hold install script reference.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InstallScriptSourcefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of InstallScriptSource from the JsonReader.Get the sourceUri property: Install script source URI where the install script file will be fetched from.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Type of the install script.voidvalidate()Validates the instance.withSourceUri(String sourceUri) Set the sourceUri property: Install script source URI where the install script file will be fetched from.withType(InstallScriptType type) Set the type property: Type of the install script.Methods inherited from class 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
-
InstallScriptSource
public InstallScriptSource()Creates an instance of InstallScriptSource class.
-
-
Method Details
-
sourceUri
Get the sourceUri property: Install script source URI where the install script file will be fetched from.- Returns:
- the sourceUri value.
-
withSourceUri
Set the sourceUri property: Install script source URI where the install script file will be fetched from.- Parameters:
sourceUri- the sourceUri value to set.- Returns:
- the InstallScriptSource object itself.
-
type
Get the type property: Type of the install script.- Returns:
- the type value.
-
withType
Set the type property: Type of the install script.- Parameters:
type- the type value to set.- Returns:
- the InstallScriptSource object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<InstallScriptSource>- Throws:
IOException
-
fromJson
Reads an instance of InstallScriptSource from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of InstallScriptSource 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 InstallScriptSource.
-