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 Type
    Method
    Description
    fromJson(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.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Method Details

    • getResourceId

      public String getResourceId()
      Get the resourceId property: The ARM resource id of the user assigned identity.
      Returns:
      the resourceId value.
    • getClientId

      public String getClientId()
      Get the clientId property: The client id of the user assigned identity.
      Returns:
      the clientId value.
    • getPrincipalId

      public String getPrincipalId()
      Get the principalId property: The principal id of the user assigned identity.
      Returns:
      the principalId value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.