Package com.azure.compute.batch.models
Class UserAssignedIdentity
java.lang.Object
com.azure.compute.batch.models.UserAssignedIdentity
- All Implemented Interfaces:
com.azure.json.JsonSerializable<UserAssignedIdentity>
public final class UserAssignedIdentity
extends Object
implements com.azure.json.JsonSerializable<UserAssignedIdentity>
The user assigned Identity.
-
Method Summary
Modifier and TypeMethodDescriptionstatic UserAssignedIdentityfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of UserAssignedIdentity from the JsonReader.Get the clientId property: The client id of the user assigned identity.Get the principalId property: The principal id of the user assigned identity.Get the resourceId property: The ARM resource id of the user assigned identity.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getResourceId
Get the resourceId property: The ARM resource id of the user assigned identity.- Returns:
- the resourceId value.
-
getClientId
Get the clientId property: The client id of the user assigned identity.- Returns:
- the clientId value.
-
getPrincipalId
Get the principalId property: The principal id of the user assigned identity.- Returns:
- the principalId value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<UserAssignedIdentity>- Throws:
IOException
-
fromJson
public static UserAssignedIdentity fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of UserAssignedIdentity from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of UserAssignedIdentity if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the UserAssignedIdentity.
-