ResourceIdentifier Class

  • java.lang.Object
    • com.azure.resourcemanager.security.models.ResourceIdentifier

Implements

public class ResourceIdentifier
implements JsonSerializable<ResourceIdentifier>

A resource identifier for an alert which can be used to direct the alert to the right product exposure group (tenant, workspace, subscription etc.).

Constructor Summary

Constructor Description
ResourceIdentifier()

Creates an instance of ResourceIdentifier class.

Method Summary

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

Reads an instance of ResourceIdentifier from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
ResourceIdentifierType type()

Get the type property: There can be multiple identifiers of different type per alert, this field specify the identifier type.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

ResourceIdentifier

public ResourceIdentifier()

Creates an instance of ResourceIdentifier class.

Method Details

fromJson

public static ResourceIdentifier fromJson(JsonReader jsonReader)

Reads an instance of ResourceIdentifier from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ResourceIdentifier if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ResourceIdentifier.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public ResourceIdentifierType type()

Get the type property: There can be multiple identifiers of different type per alert, this field specify the identifier type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

Applies to