Class ArmRoleReceiver
java.lang.Object
com.azure.resourcemanager.monitor.models.ArmRoleReceiver
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ArmRoleReceiver>
public final class ArmRoleReceiver
extends Object
implements com.azure.json.JsonSerializable<ArmRoleReceiver>
An arm role receiver.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ArmRoleReceiver
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ArmRoleReceiver from the JsonReader.name()
Get the name property: The name of the arm role receiver.roleId()
Get the roleId property: The arm role id.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Get the useCommonAlertSchema property: Indicates whether to use common alert schema.void
validate()
Validates the instance.Set the name property: The name of the arm role receiver.withRoleId
(String roleId) Set the roleId property: The arm role id.withUseCommonAlertSchema
(Boolean useCommonAlertSchema) Set the useCommonAlertSchema property: Indicates whether to use common alert schema.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
-
ArmRoleReceiver
public ArmRoleReceiver()Creates an instance of ArmRoleReceiver class.
-
-
Method Details
-
name
Get the name property: The name of the arm role receiver. Names must be unique across all receivers within an action group.- Returns:
- the name value.
-
withName
Set the name property: The name of the arm role receiver. Names must be unique across all receivers within an action group.- Parameters:
name
- the name value to set.- Returns:
- the ArmRoleReceiver object itself.
-
roleId
Get the roleId property: The arm role id.- Returns:
- the roleId value.
-
withRoleId
Set the roleId property: The arm role id.- Parameters:
roleId
- the roleId value to set.- Returns:
- the ArmRoleReceiver object itself.
-
useCommonAlertSchema
Get the useCommonAlertSchema property: Indicates whether to use common alert schema.- Returns:
- the useCommonAlertSchema value.
-
withUseCommonAlertSchema
Set the useCommonAlertSchema property: Indicates whether to use common alert schema.- Parameters:
useCommonAlertSchema
- the useCommonAlertSchema value to set.- Returns:
- the ArmRoleReceiver 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<ArmRoleReceiver>
- Throws:
IOException
-
fromJson
Reads an instance of ArmRoleReceiver from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ArmRoleReceiver if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the ArmRoleReceiver.
-