Action Class

  • java.lang.Object
    • com.azure.resourcemanager.alertsmanagement.models.Action

Implements

public class Action
implements JsonSerializable<Action>

Action to be applied.

Constructor Summary

Constructor Description
Action()

Creates an instance of Action class.

Method Summary

Modifier and Type Method and Description
ActionType actionType()

Get the actionType property: Action that should be applied.

static Action fromJson(JsonReader jsonReader)

Reads an instance of Action from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

Action

public Action()

Creates an instance of Action class.

Method Details

actionType

public ActionType actionType()

Get the actionType property: Action that should be applied.

Returns:

the actionType value.

fromJson

public static Action fromJson(JsonReader jsonReader)

Reads an instance of Action from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to