Class Actions
java.lang.Object
com.azure.resourcemanager.monitor.models.Actions
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Actions>
Actions to invoke when the alert fires.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the actionGroups property: Action Group resource Ids to invoke when the alert fires.Get the customProperties property: The properties of an alert payload.static Actions
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of Actions from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withActionGroups
(List<String> actionGroups) Set the actionGroups property: Action Group resource Ids to invoke when the alert fires.withCustomProperties
(Map<String, String> customProperties) Set the customProperties property: The properties of an alert payload.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
Actions
public Actions()Creates an instance of Actions class.
-
-
Method Details
-
actionGroups
Get the actionGroups property: Action Group resource Ids to invoke when the alert fires.- Returns:
- the actionGroups value.
-
withActionGroups
Set the actionGroups property: Action Group resource Ids to invoke when the alert fires.- Parameters:
actionGroups
- the actionGroups value to set.- Returns:
- the Actions object itself.
-
customProperties
Get the customProperties property: The properties of an alert payload.- Returns:
- the customProperties value.
-
withCustomProperties
Set the customProperties property: The properties of an alert payload.- Parameters:
customProperties
- the customProperties value to set.- Returns:
- the Actions object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<Actions>
- Throws:
IOException
-
fromJson
Reads an instance of Actions from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of Actions 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 Actions.
-