Class FunctionsScaleAndConcurrency
java.lang.Object
com.azure.resourcemanager.appservice.models.FunctionsScaleAndConcurrency
- All Implemented Interfaces:
com.azure.json.JsonSerializable<FunctionsScaleAndConcurrency>
public final class FunctionsScaleAndConcurrency
extends Object
implements com.azure.json.JsonSerializable<FunctionsScaleAndConcurrency>
Scale and concurrency settings for the function app.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of FunctionsScaleAndConcurrency class. -
Method Summary
Modifier and TypeMethodDescriptionGet the alwaysReady property: 'Always Ready' configuration for the function app.static FunctionsScaleAndConcurrency
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of FunctionsScaleAndConcurrency from the JsonReader.Get the instanceMemoryMB property: Set the amount of memory allocated to each instance of the function app in MB.Get the maximumInstanceCount property: The maximum number of instances for the function app.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) triggers()
Get the triggers property: Scale and concurrency settings for the function app triggers.void
validate()
Validates the instance.withAlwaysReady
(List<FunctionsAlwaysReadyConfig> alwaysReady) Set the alwaysReady property: 'Always Ready' configuration for the function app.withInstanceMemoryMB
(Integer instanceMemoryMB) Set the instanceMemoryMB property: Set the amount of memory allocated to each instance of the function app in MB.withMaximumInstanceCount
(Integer maximumInstanceCount) Set the maximumInstanceCount property: The maximum number of instances for the function app.Set the triggers property: Scale and concurrency settings for the function app triggers.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
-
FunctionsScaleAndConcurrency
public FunctionsScaleAndConcurrency()Creates an instance of FunctionsScaleAndConcurrency class.
-
-
Method Details
-
alwaysReady
Get the alwaysReady property: 'Always Ready' configuration for the function app.- Returns:
- the alwaysReady value.
-
withAlwaysReady
Set the alwaysReady property: 'Always Ready' configuration for the function app.- Parameters:
alwaysReady
- the alwaysReady value to set.- Returns:
- the FunctionsScaleAndConcurrency object itself.
-
maximumInstanceCount
Get the maximumInstanceCount property: The maximum number of instances for the function app.- Returns:
- the maximumInstanceCount value.
-
withMaximumInstanceCount
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.
-
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.
-
withInstanceMemoryMB
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.
-
triggers
Get the triggers property: Scale and concurrency settings for the function app triggers.- Returns:
- the triggers value.
-
withTriggers
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.
-
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<FunctionsScaleAndConcurrency>
- Throws:
IOException
-
fromJson
public static FunctionsScaleAndConcurrency fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-