AutoHealRules Class

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

Implements

public final class AutoHealRules
implements JsonSerializable<AutoHealRules>

Rules that can be defined for auto-heal.

Constructor Summary

Constructor Description
AutoHealRules()

Creates an instance of AutoHealRules class.

Method Summary

Modifier and Type Method and Description
AutoHealActions actions()

Get the actions property: Actions to be executed when a rule is triggered.

static AutoHealRules fromJson(JsonReader jsonReader)

Reads an instance of AutoHealRules from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
AutoHealTriggers triggers()

Get the triggers property: Conditions that describe when to execute the auto-heal actions.

void validate()

Validates the instance.

AutoHealRules withActions(AutoHealActions actions)

Set the actions property: Actions to be executed when a rule is triggered.

AutoHealRules withTriggers(AutoHealTriggers triggers)

Set the triggers property: Conditions that describe when to execute the auto-heal actions.

Methods inherited from java.lang.Object

Constructor Details

AutoHealRules

public AutoHealRules()

Creates an instance of AutoHealRules class.

Method Details

actions

public AutoHealActions actions()

Get the actions property: Actions to be executed when a rule is triggered.

Returns:

the actions value.

fromJson

public static AutoHealRules fromJson(JsonReader jsonReader)

Reads an instance of AutoHealRules from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AutoHealRules 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 AutoHealRules.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

triggers

public AutoHealTriggers triggers()

Get the triggers property: Conditions that describe when to execute the auto-heal actions.

Returns:

the triggers value.

validate

public void validate()

Validates the instance.

withActions

public AutoHealRules withActions(AutoHealActions actions)

Set the actions property: Actions to be executed when a rule is triggered.

Parameters:

actions - the actions value to set.

Returns:

the AutoHealRules object itself.

withTriggers

public AutoHealRules withTriggers(AutoHealTriggers triggers)

Set the triggers property: Conditions that describe when to execute the auto-heal actions.

Parameters:

triggers - the triggers value to set.

Returns:

the AutoHealRules object itself.

Applies to