FunctionsRuntime Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.FunctionsRuntime

Implements

public final class FunctionsRuntime
implements JsonSerializable<FunctionsRuntime>

Function app runtime name and version.

Constructor Summary

Constructor Description
FunctionsRuntime()

Creates an instance of FunctionsRuntime class.

Method Summary

Modifier and Type Method and Description
static FunctionsRuntime fromJson(JsonReader jsonReader)

Reads an instance of FunctionsRuntime from the JsonReader.

RuntimeName name()

Get the name property: Function app runtime name.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String version()

Get the version property: Function app runtime version.

FunctionsRuntime withName(RuntimeName name)

Set the name property: Function app runtime name.

FunctionsRuntime withVersion(String version)

Set the version property: Function app runtime version.

Methods inherited from java.lang.Object

Constructor Details

FunctionsRuntime

public FunctionsRuntime()

Creates an instance of FunctionsRuntime class.

Method Details

fromJson

public static FunctionsRuntime fromJson(JsonReader jsonReader)

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.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

version

public String version()

Get the version property: Function app runtime version. Example: 8 (for dotnet-isolated).

Returns:

the version 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.

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.

Applies to