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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FunctionsRuntime
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of FunctionsRuntime from the JsonReader.name()
Get the name property: Function app runtime name.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.version()
Get the version property: Function app runtime version.withName
(RuntimeName name) Set the name property: Function app runtime name.withVersion
(String version) Set the version property: Function app runtime version.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
-
FunctionsRuntime
public FunctionsRuntime()Creates an instance of FunctionsRuntime class.
-
-
Method Details
-
name
Get the name property: Function app runtime name. Available options: dotnet-isolated, node, java, powershell, python, custom.- Returns:
- the name value.
-
withName
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
Get the version property: Function app runtime version. Example: 8 (for dotnet-isolated).- Returns:
- the version value.
-
withVersion
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
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<FunctionsRuntime>
- Throws:
IOException
-
fromJson
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.
-