Class ArmRoleReceiver
java.lang.Object
com.azure.resourcemanager.monitor.models.ArmRoleReceiver
An arm role receiver.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionname()Get the name property: The name of the arm role receiver.roleId()Get the roleId property: The arm role id.Get the useCommonAlertSchema property: Indicates whether to use common alert schema.voidvalidate()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.
-
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.
-