Class AutoHealCustomAction
java.lang.Object
com.azure.resourcemanager.appservice.models.AutoHealCustomAction
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AutoHealCustomAction>
public final class AutoHealCustomAction
extends Object
implements com.azure.json.JsonSerializable<AutoHealCustomAction>
Custom action to be executed
when an auto heal rule is triggered.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexe()
Get the exe property: Executable to be run.static AutoHealCustomAction
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of AutoHealCustomAction from the JsonReader.Get the parameters property: Parameters for the executable.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Set the exe property: Executable to be run.withParameters
(String parameters) Set the parameters property: Parameters for the executable.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
-
AutoHealCustomAction
public AutoHealCustomAction()Creates an instance of AutoHealCustomAction class.
-
-
Method Details
-
exe
Get the exe property: Executable to be run.- Returns:
- the exe value.
-
withExe
Set the exe property: Executable to be run.- Parameters:
exe
- the exe value to set.- Returns:
- the AutoHealCustomAction object itself.
-
parameters
Get the parameters property: Parameters for the executable.- Returns:
- the parameters value.
-
withParameters
Set the parameters property: Parameters for the executable.- Parameters:
parameters
- the parameters value to set.- Returns:
- the AutoHealCustomAction 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<AutoHealCustomAction>
- Throws:
IOException
-
fromJson
public static AutoHealCustomAction fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AutoHealCustomAction from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of AutoHealCustomAction 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 AutoHealCustomAction.
-