Class FunctionsAlwaysReadyConfig

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

public final class FunctionsAlwaysReadyConfig extends Object
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 Float 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(Float 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.