ArmRoleReceiver Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. ArmRoleReceiver
- com.
Implements
public final class ArmRoleReceiver
implements JsonSerializable<ArmRoleReceiver>
An arm role receiver.
Constructor Summary
Constructor | Description |
---|---|
ArmRoleReceiver() |
Creates an instance of Arm |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Arm |
fromJson(JsonReader jsonReader)
Reads an instance of Arm |
String |
name()
Get the name property: The name of the arm role receiver. |
String |
roleId()
Get the role |
Json |
toJson(JsonWriter jsonWriter) |
Boolean |
useCommonAlertSchema()
Get the use |
void |
validate()
Validates the instance. |
Arm |
withName(String name)
Set the name property: The name of the arm role receiver. |
Arm |
withRoleId(String roleId)
Set the role |
Arm |
withUseCommonAlertSchema(Boolean useCommonAlertSchema)
Set the use |
Methods inherited from java.lang.Object
Constructor Details
ArmRoleReceiver
public ArmRoleReceiver()
Creates an instance of ArmRoleReceiver class.
Method Details
fromJson
public static ArmRoleReceiver fromJson(JsonReader jsonReader)
Reads an instance of ArmRoleReceiver from the JsonReader.
Parameters:
Returns:
Throws:
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:
roleId
public String roleId()
Get the roleId property: The arm role id.
Returns:
toJson
useCommonAlertSchema
public Boolean useCommonAlertSchema()
Get the useCommonAlertSchema property: Indicates whether to use common alert schema.
Returns:
validate
public void validate()
Validates the instance.
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:
Returns:
withRoleId
public ArmRoleReceiver withRoleId(String roleId)
Set the roleId property: The arm role id.
Parameters:
Returns:
withUseCommonAlertSchema
public ArmRoleReceiver withUseCommonAlertSchema(Boolean useCommonAlertSchema)
Set the useCommonAlertSchema property: Indicates whether to use common alert schema.
Parameters:
Returns:
Applies to
Azure SDK for Java