AzureResourceIdentifier Class

public final class AzureResourceIdentifier
extends ResourceIdentifier

Azure resource identifier.

Constructor Summary

Constructor Description
AzureResourceIdentifier()

Creates an instance of AzureResourceIdentifier class.

Method Summary

Modifier and Type Method and Description
String azureResourceId()

Get the azureResourceId property: ARM resource identifier for the cloud resource being alerted on.

static AzureResourceIdentifier fromJson(JsonReader jsonReader)

Reads an instance of AzureResourceIdentifier 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 ResourceIdentifier

Methods inherited from java.lang.Object

Constructor Details

AzureResourceIdentifier

public AzureResourceIdentifier()

Creates an instance of AzureResourceIdentifier class.

Method Details

azureResourceId

public String azureResourceId()

Get the azureResourceId property: ARM resource identifier for the cloud resource being alerted on.

Returns:

the azureResourceId value.

fromJson

public static AzureResourceIdentifier fromJson(JsonReader jsonReader)

Reads an instance of AzureResourceIdentifier from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AzureResourceIdentifier 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 AzureResourceIdentifier.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AzureResourceIdentifier.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.

Overrides:

AzureResourceIdentifier.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

AzureResourceIdentifier.validate()

Applies to