Class FunctionsAlwaysReadyConfig
java.lang.Object
com.azure.resourcemanager.appservice.models.FunctionsAlwaysReadyConfig
- All Implemented Interfaces:
com.azure.json.JsonSerializable<FunctionsAlwaysReadyConfig>
public final class FunctionsAlwaysReadyConfig
extends Object
implements com.azure.json.JsonSerializable<FunctionsAlwaysReadyConfig>
Sets the number of 'Always Ready' instances for a function group or a specific function.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of FunctionsAlwaysReadyConfig class. -
Method Summary
Modifier and TypeMethodDescriptionstatic FunctionsAlwaysReadyConfig
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of FunctionsAlwaysReadyConfig from the JsonReader.Get the instanceCount property: Sets the number of 'Always Ready' instances for a given function group or a specific function.name()
Get the name property: Either a function group or a function name is required.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withInstanceCount
(Integer instanceCount) Set the instanceCount property: Sets the number of 'Always Ready' instances for a given function group or a specific function.Set the name property: Either a function group or a function name is required.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
-
FunctionsAlwaysReadyConfig
public FunctionsAlwaysReadyConfig()Creates an instance of FunctionsAlwaysReadyConfig class.
-
-
Method Details
-
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.
-
withName
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.
-
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.
-
withInstanceCount
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.
-
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<FunctionsAlwaysReadyConfig>
- Throws:
IOException
-
fromJson
public static FunctionsAlwaysReadyConfig fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-