FunctionsScaleAndConcurrency Class

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

Implements

public final class FunctionsScaleAndConcurrency
implements JsonSerializable<FunctionsScaleAndConcurrency>

Scale and concurrency settings for the function app.

Constructor Summary

Constructor Description
FunctionsScaleAndConcurrency()

Creates an instance of FunctionsScaleAndConcurrency class.

Method Summary

Modifier and Type Method and Description
List<FunctionsAlwaysReadyConfig> alwaysReady()

Get the alwaysReady property: 'Always Ready' configuration for the function app.

static FunctionsScaleAndConcurrency fromJson(JsonReader jsonReader)

Reads an instance of FunctionsScaleAndConcurrency from the JsonReader.

Integer instanceMemoryMB()

Get the instanceMemoryMB property: Set the amount of memory allocated to each instance of the function app in MB.

Integer maximumInstanceCount()

Get the maximumInstanceCount property: The maximum number of instances for the function app.

JsonWriter toJson(JsonWriter jsonWriter)
FunctionsScaleAndConcurrencyTriggers triggers()

Get the triggers property: Scale and concurrency settings for the function app triggers.

void validate()

Validates the instance.

FunctionsScaleAndConcurrency withAlwaysReady(List<FunctionsAlwaysReadyConfig> alwaysReady)

Set the alwaysReady property: 'Always Ready' configuration for the function app.

FunctionsScaleAndConcurrency withInstanceMemoryMB(Integer instanceMemoryMB)

Set the instanceMemoryMB property: Set the amount of memory allocated to each instance of the function app in MB.

FunctionsScaleAndConcurrency withMaximumInstanceCount(Integer maximumInstanceCount)

Set the maximumInstanceCount property: The maximum number of instances for the function app.

FunctionsScaleAndConcurrency withTriggers(FunctionsScaleAndConcurrencyTriggers triggers)

Set the triggers property: Scale and concurrency settings for the function app triggers.

Methods inherited from java.lang.Object

Constructor Details

FunctionsScaleAndConcurrency

public FunctionsScaleAndConcurrency()

Creates an instance of FunctionsScaleAndConcurrency class.

Method Details

alwaysReady

public List alwaysReady()

Get the alwaysReady property: 'Always Ready' configuration for the function app.

Returns:

the alwaysReady value.

fromJson

public static FunctionsScaleAndConcurrency fromJson(JsonReader jsonReader)

Reads an instance of FunctionsScaleAndConcurrency from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

instanceMemoryMB

public Integer instanceMemoryMB()

Get the instanceMemoryMB property: Set the amount of memory allocated to each instance of the function app in MB. CPU and network bandwidth are allocated proportionally.

Returns:

the instanceMemoryMB value.

maximumInstanceCount

public Integer maximumInstanceCount()

Get the maximumInstanceCount property: The maximum number of instances for the function app.

Returns:

the maximumInstanceCount value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

triggers

public FunctionsScaleAndConcurrencyTriggers triggers()

Get the triggers property: Scale and concurrency settings for the function app triggers.

Returns:

the triggers value.

validate

public void validate()

Validates the instance.

withAlwaysReady

public FunctionsScaleAndConcurrency withAlwaysReady(List alwaysReady)

Set the alwaysReady property: 'Always Ready' configuration for the function app.

Parameters:

alwaysReady - the alwaysReady value to set.

Returns:

the FunctionsScaleAndConcurrency object itself.

withInstanceMemoryMB

public FunctionsScaleAndConcurrency withInstanceMemoryMB(Integer instanceMemoryMB)

Set the instanceMemoryMB property: Set the amount of memory allocated to each instance of the function app in MB. CPU and network bandwidth are allocated proportionally.

Parameters:

instanceMemoryMB - the instanceMemoryMB value to set.

Returns:

the FunctionsScaleAndConcurrency object itself.

withMaximumInstanceCount

public FunctionsScaleAndConcurrency withMaximumInstanceCount(Integer maximumInstanceCount)

Set the maximumInstanceCount property: The maximum number of instances for the function app.

Parameters:

maximumInstanceCount - the maximumInstanceCount value to set.

Returns:

the FunctionsScaleAndConcurrency object itself.

withTriggers

public FunctionsScaleAndConcurrency withTriggers(FunctionsScaleAndConcurrencyTriggers triggers)

Set the triggers property: Scale and concurrency settings for the function app triggers.

Parameters:

triggers - the triggers value to set.

Returns:

the FunctionsScaleAndConcurrency object itself.

Applies to