Class AutoHealRules
java.lang.Object
com.azure.resourcemanager.appservice.models.AutoHealRules
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AutoHealRules>
public final class AutoHealRules
extends Object
implements com.azure.json.JsonSerializable<AutoHealRules>
Rules that can be defined for auto-heal.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactions()Get the actions property: Actions to be executed when a rule is triggered.static AutoHealRulesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AutoHealRules from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) triggers()Get the triggers property: Conditions that describe when to execute the auto-heal actions.voidvalidate()Validates the instance.withActions(AutoHealActions actions) Set the actions property: Actions to be executed when a rule is triggered.withTriggers(AutoHealTriggers triggers) Set the triggers property: Conditions that describe when to execute the auto-heal actions.Methods inherited from class java.lang.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
-
AutoHealRules
public AutoHealRules()Creates an instance of AutoHealRules class.
-
-
Method Details
-
triggers
Get the triggers property: Conditions that describe when to execute the auto-heal actions.- Returns:
- the triggers value.
-
withTriggers
Set the triggers property: Conditions that describe when to execute the auto-heal actions.- Parameters:
triggers- the triggers value to set.- Returns:
- the AutoHealRules object itself.
-
actions
Get the actions property: Actions to be executed when a rule is triggered.- Returns:
- the actions value.
-
withActions
Set the actions property: Actions to be executed when a rule is triggered.- Parameters:
actions- the actions value to set.- Returns:
- the AutoHealRules 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<AutoHealRules>- Throws:
IOException
-
fromJson
Reads an instance of AutoHealRules from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AutoHealRules 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 AutoHealRules.
-