AutoHealActions Class

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

Implements

public final class AutoHealActions
implements JsonSerializable<AutoHealActions>

Actions which to take by the auto-heal module when a rule is triggered.

Constructor Summary

Constructor Description
AutoHealActions()

Creates an instance of AutoHealActions class.

Method Summary

Modifier and Type Method and Description
AutoHealActionType actionType()

Get the actionType property: Predefined action to be taken.

AutoHealCustomAction customAction()

Get the customAction property: Custom action to be taken.

static AutoHealActions fromJson(JsonReader jsonReader)

Reads an instance of AutoHealActions from the JsonReader.

String minProcessExecutionTime()

Get the minProcessExecutionTime property: Minimum time the process must execute before taking the action.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AutoHealActions withActionType(AutoHealActionType actionType)

Set the actionType property: Predefined action to be taken.

AutoHealActions withCustomAction(AutoHealCustomAction customAction)

Set the customAction property: Custom action to be taken.

AutoHealActions withMinProcessExecutionTime(String minProcessExecutionTime)

Set the minProcessExecutionTime property: Minimum time the process must execute before taking the action.

Methods inherited from java.lang.Object

Constructor Details

AutoHealActions

public AutoHealActions()

Creates an instance of AutoHealActions class.

Method Details

actionType

public AutoHealActionType actionType()

Get the actionType property: Predefined action to be taken.

Returns:

the actionType value.

customAction

public AutoHealCustomAction customAction()

Get the customAction property: Custom action to be taken.

Returns:

the customAction value.

fromJson

public static AutoHealActions fromJson(JsonReader jsonReader)

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.

minProcessExecutionTime

public String minProcessExecutionTime()

Get the minProcessExecutionTime property: Minimum time the process must execute before taking the action.

Returns:

the minProcessExecutionTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withActionType

public AutoHealActions withActionType(AutoHealActionType actionType)

Set the actionType property: Predefined action to be taken.

Parameters:

actionType - the actionType value to set.

Returns:

the AutoHealActions object itself.

withCustomAction

public AutoHealActions withCustomAction(AutoHealCustomAction customAction)

Set the customAction property: Custom action to be taken.

Parameters:

customAction - the customAction value to set.

Returns:

the AutoHealActions object itself.

withMinProcessExecutionTime

public AutoHealActions withMinProcessExecutionTime(String minProcessExecutionTime)

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.

Applies to