Partilhar via


ArmRoleReceiver Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.models.ArmRoleReceiver

Implements

public final class ArmRoleReceiver
implements JsonSerializable<ArmRoleReceiver>

An arm role receiver.

Constructor Summary

Constructor Description
ArmRoleReceiver()

Creates an instance of ArmRoleReceiver class.

Method Summary

Modifier and Type Method and Description
static ArmRoleReceiver fromJson(JsonReader jsonReader)

Reads an instance of ArmRoleReceiver from the JsonReader.

String name()

Get the name property: The name of the arm role receiver.

String roleId()

Get the roleId property: The arm role id.

JsonWriter toJson(JsonWriter jsonWriter)
Boolean useCommonAlertSchema()

Get the useCommonAlertSchema property: Indicates whether to use common alert schema.

void validate()

Validates the instance.

ArmRoleReceiver withName(String name)

Set the name property: The name of the arm role receiver.

ArmRoleReceiver withRoleId(String roleId)

Set the roleId property: The arm role id.

ArmRoleReceiver withUseCommonAlertSchema(Boolean useCommonAlertSchema)

Set the useCommonAlertSchema property: Indicates whether to use common alert schema.

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:

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:

IOException

- If the deserialized JSON object was missing any required properties.

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.

roleId

public String roleId()

Get the roleId property: The arm role id.

Returns:

the roleId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

useCommonAlertSchema

public Boolean useCommonAlertSchema()

Get the useCommonAlertSchema property: Indicates whether to use common alert schema.

Returns:

the useCommonAlertSchema value.

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:

name - the name value to set.

Returns:

the ArmRoleReceiver object itself.

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.

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.

Applies to