Class FunctionsSiteUpdateStrategy

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

public final class FunctionsSiteUpdateStrategy extends Object implements com.azure.json.JsonSerializable<FunctionsSiteUpdateStrategy>
Function app site update strategy configuration for deployments and site config updates.
  • Constructor Details

    • FunctionsSiteUpdateStrategy

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

    • type

      public SiteUpdateStrategyType type()
      Get the type property: Function app site update strategy type. Available options: Recreate, RollingUpdate.
      Returns:
      the type value.
    • withType

      Set the type property: Function app site update strategy type. Available options: Recreate, RollingUpdate.
      Parameters:
      type - the type value to set.
      Returns:
      the FunctionsSiteUpdateStrategy 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<FunctionsSiteUpdateStrategy>
      Throws:
      IOException
    • fromJson

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