FunctionsAlwaysReadyConfig Class

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

Implements

public final class FunctionsAlwaysReadyConfig
implements JsonSerializable<FunctionsAlwaysReadyConfig>

Sets the number of 'Always Ready' instances for a function group or a specific function.

Constructor Summary

Constructor Description
FunctionsAlwaysReadyConfig()

Creates an instance of FunctionsAlwaysReadyConfig class.

Method Summary

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

Reads an instance of FunctionsAlwaysReadyConfig from the JsonReader.

Integer instanceCount()

Get the instanceCount property: Sets the number of 'Always Ready' instances for a given function group or a specific function.

String name()

Get the name property: Either a function group or a function name is required.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

FunctionsAlwaysReadyConfig withInstanceCount(Integer instanceCount)

Set the instanceCount property: Sets the number of 'Always Ready' instances for a given function group or a specific function.

FunctionsAlwaysReadyConfig withName(String name)

Set the name property: Either a function group or a function name is required.

Methods inherited from java.lang.Object

Constructor Details

FunctionsAlwaysReadyConfig

public FunctionsAlwaysReadyConfig()

Creates an instance of FunctionsAlwaysReadyConfig class.

Method Details

fromJson

public static FunctionsAlwaysReadyConfig fromJson(JsonReader jsonReader)

Reads an instance of FunctionsAlwaysReadyConfig from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of FunctionsAlwaysReadyConfig 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 FunctionsAlwaysReadyConfig.

instanceCount

public Integer instanceCount()

Get the instanceCount property: Sets the number of 'Always Ready' instances for a given function group or a specific function. For additional information see https://aka.ms/flexconsumption/alwaysready.

Returns:

the instanceCount value.

name

public String name()

Get the name property: Either a function group or a function name is required. For additional information see https://aka.ms/flexconsumption/alwaysready.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withInstanceCount

public FunctionsAlwaysReadyConfig withInstanceCount(Integer instanceCount)

Set the instanceCount property: Sets the number of 'Always Ready' instances for a given function group or a specific function. For additional information see https://aka.ms/flexconsumption/alwaysready.

Parameters:

instanceCount - the instanceCount value to set.

Returns:

the FunctionsAlwaysReadyConfig object itself.

withName

public FunctionsAlwaysReadyConfig withName(String name)

Set the name property: Either a function group or a function name is required. For additional information see https://aka.ms/flexconsumption/alwaysready.

Parameters:

name - the name value to set.

Returns:

the FunctionsAlwaysReadyConfig object itself.

Applies to