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 Details

    • AutoHealCustomAction

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

    • exe

      public String exe()
      Get the exe property: Executable to be run.
      Returns:
      the exe value.
    • withExe

      public AutoHealCustomAction withExe(String exe)
      Set the exe property: Executable to be run.
      Parameters:
      exe - the exe value to set.
      Returns:
      the AutoHealCustomAction object itself.
    • parameters

      public String parameters()
      Get the parameters property: Parameters for the executable.
      Returns:
      the parameters value.
    • withParameters

      public AutoHealCustomAction withParameters(String parameters)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.