AddActionGroups Class

public final class AddActionGroups
extends Action

Add action groups to alert processing rule.

Constructor Summary

Constructor Description
AddActionGroups()

Creates an instance of AddActionGroups class.

Method Summary

Modifier and Type Method and Description
List<String> actionGroupIds()

Get the actionGroupIds property: List of action group Ids to add to alert processing rule.

ActionType actionType()

Get the actionType property: Action that should be applied.

static AddActionGroups fromJson(JsonReader jsonReader)

Reads an instance of AddActionGroups from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AddActionGroups withActionGroupIds(List<String> actionGroupIds)

Set the actionGroupIds property: List of action group Ids to add to alert processing rule.

Methods inherited from Action

Methods inherited from java.lang.Object

Constructor Details

AddActionGroups

public AddActionGroups()

Creates an instance of AddActionGroups class.

Method Details

actionGroupIds

public List<String> actionGroupIds()

Get the actionGroupIds property: List of action group Ids to add to alert processing rule.

Returns:

the actionGroupIds value.

actionType

public ActionType actionType()

Get the actionType property: Action that should be applied.

Overrides:

AddActionGroups.actionType()

Returns:

the actionType value.

fromJson

public static AddActionGroups fromJson(JsonReader jsonReader)

Reads an instance of AddActionGroups from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AddActionGroups if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AddActionGroups.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

AddActionGroups.validate()

withActionGroupIds

public AddActionGroups withActionGroupIds(List<String> actionGroupIds)

Set the actionGroupIds property: List of action group Ids to add to alert processing rule.

Parameters:

actionGroupIds - the actionGroupIds value to set.

Returns:

the AddActionGroups object itself.

Applies to