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 Details

    • InstallScriptSource

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

    • sourceUri

      public String sourceUri()
      Get the sourceUri property: Install script source URI where the install script file will be fetched from.
      Returns:
      the sourceUri value.
    • withSourceUri

      public InstallScriptSource withSourceUri(String sourceUri)
      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

      public InstallScriptType type()
      Get the type property: Type of the install script.
      Returns:
      the type value.
    • withType

      public InstallScriptSource withType(InstallScriptType type)
      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

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

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