Share via


ResourceIdentity Class

  • java.lang.Object
    • com.azure.resourcemanager.databox.models.ResourceIdentity

Implements

public final class ResourceIdentity
implements JsonSerializable<ResourceIdentity>

Msi identity details of the resource.

Constructor Summary

Constructor Description
ResourceIdentity()

Creates an instance of ResourceIdentity class.

Method Summary

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

Reads an instance of ResourceIdentity from the JsonReader.

String principalId()

Get the principalId property: Service Principal Id backing the Msi.

String tenantId()

Get the tenantId property: Home Tenant Id.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Identity type.

Map<String,UserAssignedIdentity> userAssignedIdentities()

Get the userAssignedIdentities property: User Assigned Identities.

void validate()

Validates the instance.

ResourceIdentity withType(String type)

Set the type property: Identity type.

ResourceIdentity withUserAssignedIdentities(Map<String,UserAssignedIdentity> userAssignedIdentities)

Set the userAssignedIdentities property: User Assigned Identities.

Methods inherited from java.lang.Object

Constructor Details

ResourceIdentity

public ResourceIdentity()

Creates an instance of ResourceIdentity class.

Method Details

fromJson

public static ResourceIdentity fromJson(JsonReader jsonReader)

Reads an instance of ResourceIdentity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

principalId

public String principalId()

Get the principalId property: Service Principal Id backing the Msi.

Returns:

the principalId value.

tenantId

public String tenantId()

Get the tenantId property: Home Tenant Id.

Returns:

the tenantId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Identity type.

Returns:

the type value.

userAssignedIdentities

public Map<String,UserAssignedIdentity> userAssignedIdentities()

Get the userAssignedIdentities property: User Assigned Identities.

Returns:

the userAssignedIdentities value.

validate

public void validate()

Validates the instance.

withType

public ResourceIdentity withType(String type)

Set the type property: Identity type.

Parameters:

type - the type value to set.

Returns:

the ResourceIdentity object itself.

withUserAssignedIdentities

public ResourceIdentity withUserAssignedIdentities(Map<String,UserAssignedIdentity> userAssignedIdentities)

Set the userAssignedIdentities property: User Assigned Identities.

Parameters:

userAssignedIdentities - the userAssignedIdentities value to set.

Returns:

the ResourceIdentity object itself.

Applies to