Class ArmRoleReceiver
- java.lang.Object
-
- com.azure.resourcemanager.monitor.models.ArmRoleReceiver
-
public final class ArmRoleReceiver extends Object
An arm role receiver.
-
-
Constructor Summary
Constructors Constructor Description ArmRoleReceiver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringname()Get the name property: The name of the arm role receiver.StringroleId()Get the roleId property: The arm role id.BooleanuseCommonAlertSchema()Get the useCommonAlertSchema property: Indicates whether to use common alert schema.voidvalidate()Validates the instance.ArmRoleReceiverwithName(String name)Set the name property: The name of the arm role receiver.ArmRoleReceiverwithRoleId(String roleId)Set the roleId property: The arm role id.ArmRoleReceiverwithUseCommonAlertSchema(Boolean useCommonAlertSchema)Set the useCommonAlertSchema property: Indicates whether to use common alert schema.
-
-
-
Method Detail
-
name
public String 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
public ArmRoleReceiver withName(String name)
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
public String roleId()
Get the roleId property: The arm role id.- Returns:
- the roleId value.
-
withRoleId
public ArmRoleReceiver withRoleId(String roleId)
Set the roleId property: The arm role id.- Parameters:
roleId- the roleId value to set.- Returns:
- the ArmRoleReceiver object itself.
-
useCommonAlertSchema
public Boolean useCommonAlertSchema()
Get the useCommonAlertSchema property: Indicates whether to use common alert schema.- Returns:
- the useCommonAlertSchema value.
-
withUseCommonAlertSchema
public ArmRoleReceiver withUseCommonAlertSchema(Boolean useCommonAlertSchema)
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.
-
-