AutoHealCustomAction Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.AutoHealCustomAction

Implements

public final class AutoHealCustomAction
implements JsonSerializable<AutoHealCustomAction>

Custom action to be executed when an auto heal rule is triggered.

Constructor Summary

Constructor Description
AutoHealCustomAction()

Creates an instance of AutoHealCustomAction class.

Method Summary

Modifier and Type Method and Description
String exe()

Get the exe property: Executable to be run.

static AutoHealCustomAction fromJson(JsonReader jsonReader)

Reads an instance of AutoHealCustomAction from the JsonReader.

String parameters()

Get the parameters property: Parameters for the executable.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AutoHealCustomAction withExe(String exe)

Set the exe property: Executable to be run.

AutoHealCustomAction withParameters(String parameters)

Set the parameters property: Parameters for the executable.

Methods inherited from java.lang.Object

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.

fromJson

public static AutoHealCustomAction fromJson(JsonReader jsonReader)

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.

parameters

public String parameters()

Get the parameters property: Parameters for the executable.

Returns:

the parameters value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

Applies to