Class FunctionAppConfig

java.lang.Object
com.azure.resourcemanager.appservice.models.FunctionAppConfig
All Implemented Interfaces:
com.azure.json.JsonSerializable<FunctionAppConfig>

public final class FunctionAppConfig extends Object implements com.azure.json.JsonSerializable<FunctionAppConfig>
Function app configuration.
  • Constructor Details

    • FunctionAppConfig

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

    • deployment

      public FunctionsDeployment deployment()
      Get the deployment property: Function app deployment configuration.
      Returns:
      the deployment value.
    • withDeployment

      public FunctionAppConfig withDeployment(FunctionsDeployment deployment)
      Set the deployment property: Function app deployment configuration.
      Parameters:
      deployment - the deployment value to set.
      Returns:
      the FunctionAppConfig object itself.
    • runtime

      public FunctionsRuntime runtime()
      Get the runtime property: Function app runtime settings.
      Returns:
      the runtime value.
    • withRuntime

      public FunctionAppConfig withRuntime(FunctionsRuntime runtime)
      Set the runtime property: Function app runtime settings.
      Parameters:
      runtime - the runtime value to set.
      Returns:
      the FunctionAppConfig object itself.
    • scaleAndConcurrency

      public FunctionsScaleAndConcurrency scaleAndConcurrency()
      Get the scaleAndConcurrency property: Function app scale and concurrency settings.
      Returns:
      the scaleAndConcurrency value.
    • withScaleAndConcurrency

      public FunctionAppConfig withScaleAndConcurrency(FunctionsScaleAndConcurrency scaleAndConcurrency)
      Set the scaleAndConcurrency property: Function app scale and concurrency settings.
      Parameters:
      scaleAndConcurrency - the scaleAndConcurrency value to set.
      Returns:
      the FunctionAppConfig 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<FunctionAppConfig>
      Throws:
      IOException
    • fromJson

      public static FunctionAppConfig fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of FunctionAppConfig from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of FunctionAppConfig 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 FunctionAppConfig.