UserAssignedIdentityProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.msi.fluent.models.UserAssignedIdentityProperties

Implements

public final class UserAssignedIdentityProperties
implements JsonSerializable<UserAssignedIdentityProperties>

User Assigned Identity properties. The properties associated with the user assigned identity.

Constructor Summary

Constructor Description
UserAssignedIdentityProperties()

Creates an instance of UserAssignedIdentityProperties class.

Method Summary

Modifier and Type Method and Description
UUID clientId()

Get the clientId property: The id of the app associated with the identity.

static UserAssignedIdentityProperties fromJson(JsonReader jsonReader)

Reads an instance of UserAssignedIdentityProperties from the JsonReader.

UUID principalId()

Get the principalId property: The id of the service principal object associated with the created identity.

UUID tenantId()

Get the tenantId property: The id of the tenant which the identity belongs to.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

UserAssignedIdentityProperties

public UserAssignedIdentityProperties()

Creates an instance of UserAssignedIdentityProperties class.

Method Details

clientId

public UUID clientId()

Get the clientId property: The id of the app associated with the identity. This is a random generated UUID by MSI.

Returns:

the clientId value.

fromJson

public static UserAssignedIdentityProperties fromJson(JsonReader jsonReader)

Reads an instance of UserAssignedIdentityProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

principalId

public UUID principalId()

Get the principalId property: The id of the service principal object associated with the created identity.

Returns:

the principalId value.

tenantId

public UUID tenantId()

Get the tenantId property: The id of the tenant which the identity belongs to.

Returns:

the tenantId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to

Azure SDK for Java

Latest