Class BatchPoolIdentity

java.lang.Object
com.azure.compute.batch.models.BatchPoolIdentity
All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchPoolIdentity>

public final class BatchPoolIdentity extends Object implements com.azure.json.JsonSerializable<BatchPoolIdentity>
The identity of the Batch pool, if configured.
  • Method Details

    • getType

      public BatchPoolIdentityType getType()
      Get the type property: The identity of the Batch pool, if configured. The list of user identities associated with the Batch pool. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
      Returns:
      the type value.
    • getUserAssignedIdentities

      public List<UserAssignedIdentity> getUserAssignedIdentities()
      Get the userAssignedIdentities property: The list of user identities associated with the Batch account. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
      Returns:
      the userAssignedIdentities value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<BatchPoolIdentity>
      Throws:
      IOException
    • fromJson

      public static BatchPoolIdentity fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of BatchPoolIdentity from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of BatchPoolIdentity 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 BatchPoolIdentity.