Class AutoHealActions
java.lang.Object
com.azure.resourcemanager.appservice.models.AutoHealActions
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AutoHealActions>
public final class AutoHealActions
extends Object
implements com.azure.json.JsonSerializable<AutoHealActions>
Actions which to take by the auto-heal module when a rule is triggered.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the actionType property: Predefined action to be taken.Get the customAction property: Custom action to be taken.static AutoHealActions
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of AutoHealActions from the JsonReader.Get the minProcessExecutionTime property: Minimum time the process must execute before taking the action.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withActionType
(AutoHealActionType actionType) Set the actionType property: Predefined action to be taken.withCustomAction
(AutoHealCustomAction customAction) Set the customAction property: Custom action to be taken.withMinProcessExecutionTime
(String minProcessExecutionTime) Set the minProcessExecutionTime property: Minimum time the process must execute before taking the action.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AutoHealActions
public AutoHealActions()Creates an instance of AutoHealActions class.
-
-
Method Details
-
actionType
Get the actionType property: Predefined action to be taken.- Returns:
- the actionType value.
-
withActionType
Set the actionType property: Predefined action to be taken.- Parameters:
actionType
- the actionType value to set.- Returns:
- the AutoHealActions object itself.
-
customAction
Get the customAction property: Custom action to be taken.- Returns:
- the customAction value.
-
withCustomAction
Set the customAction property: Custom action to be taken.- Parameters:
customAction
- the customAction value to set.- Returns:
- the AutoHealActions object itself.
-
minProcessExecutionTime
Get the minProcessExecutionTime property: Minimum time the process must execute before taking the action.- Returns:
- the minProcessExecutionTime value.
-
withMinProcessExecutionTime
Set the minProcessExecutionTime property: Minimum time the process must execute before taking the action.- Parameters:
minProcessExecutionTime
- the minProcessExecutionTime value to set.- Returns:
- the AutoHealActions object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<AutoHealActions>
- Throws:
IOException
-
fromJson
Reads an instance of AutoHealActions from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of AutoHealActions 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 AutoHealActions.
-