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 Details

    • FunctionsScaleAndConcurrency

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

    • alwaysReady

      public List<FunctionsAlwaysReadyConfig> alwaysReady()
      Get the alwaysReady property: 'Always Ready' configuration for the function app.
      Returns:
      the alwaysReady value.
    • withAlwaysReady

      public FunctionsScaleAndConcurrency withAlwaysReady(List<FunctionsAlwaysReadyConfig> alwaysReady)
      Set the alwaysReady property: 'Always Ready' configuration for the function app.
      Parameters:
      alwaysReady - the alwaysReady value to set.
      Returns:
      the FunctionsScaleAndConcurrency object itself.
    • maximumInstanceCount

      public Integer maximumInstanceCount()
      Get the maximumInstanceCount property: The maximum number of instances for the function app.
      Returns:
      the maximumInstanceCount value.
    • 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.
    • 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.
    • 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.
    • 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

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