Class FunctionsRuntime

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

public final class FunctionsRuntime extends Object implements com.azure.json.JsonSerializable<FunctionsRuntime>
Function app runtime name and version.
  • Constructor Details

    • FunctionsRuntime

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

    • name

      public RuntimeName name()
      Get the name property: Function app runtime name. Available options: dotnet-isolated, node, java, powershell, python, custom.
      Returns:
      the name value.
    • withName

      public FunctionsRuntime withName(RuntimeName name)
      Set the name property: Function app runtime name. Available options: dotnet-isolated, node, java, powershell, python, custom.
      Parameters:
      name - the name value to set.
      Returns:
      the FunctionsRuntime object itself.
    • version

      public String version()
      Get the version property: Function app runtime version. Example: 8 (for dotnet-isolated).
      Returns:
      the version value.
    • withVersion

      public FunctionsRuntime withVersion(String version)
      Set the version property: Function app runtime version. Example: 8 (for dotnet-isolated).
      Parameters:
      version - the version value to set.
      Returns:
      the FunctionsRuntime 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<FunctionsRuntime>
      Throws:
      IOException
    • fromJson

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