Identity Class

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

Implements

public final class Identity
implements JsonSerializable<Identity>

Identity for the resource.

Method Summary

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

Reads an instance of Identity from the JsonReader.

String principalId()

Get the principalId property: The principal ID of resource identity.

String tenantId()

Get the tenantId property: The tenant ID of resource.

JsonWriter toJson(JsonWriter jsonWriter)
ResourceIdentityType type()

Get the type property: The identity type.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

fromJson

public static Identity fromJson(JsonReader jsonReader)

Reads an instance of Identity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

principalId

public String principalId()

Get the principalId property: The principal ID of resource identity. The value must be an UUID.

Returns:

the principalId value.

tenantId

public String tenantId()

Get the tenantId property: The tenant ID of resource. The value must be an UUID.

Returns:

the tenantId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public ResourceIdentityType type()

Get the type property: The identity type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

Applies to