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 Summary
ConstructorsConstructorDescriptionCreates an instance of FunctionsSiteUpdateStrategy class. -
Method Summary
Modifier and TypeMethodDescriptionstatic FunctionsSiteUpdateStrategyfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FunctionsSiteUpdateStrategy from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Function app site update strategy type.voidvalidate()Validates the instance.Set the type property: Function app site update strategy type.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
FunctionsSiteUpdateStrategy
public FunctionsSiteUpdateStrategy()Creates an instance of FunctionsSiteUpdateStrategy class.
-
-
Method Details
-
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
- Specified by:
toJsonin interfacecom.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.
-