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 Details

    • FunctionsAlwaysReadyConfig

      public FunctionsAlwaysReadyConfig()
      Creates an instance of FunctionsAlwaysReadyConfig class.
  • Method Details

    • 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.
    • 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.
    • 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.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.