Class BatchNodeIdentityReference

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

public final class BatchNodeIdentityReference extends Object implements com.azure.json.JsonSerializable<BatchNodeIdentityReference>
The reference to a user assigned identity associated with the Batch pool which a compute node will use.
  • Constructor Details

    • BatchNodeIdentityReference

      public BatchNodeIdentityReference()
      Creates an instance of BatchNodeIdentityReference class.
  • Method Details

    • getResourceId

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

      public BatchNodeIdentityReference setResourceId(String resourceId)
      Set the resourceId property: The ARM resource id of the user assigned identity.
      Parameters:
      resourceId - the resourceId value to set.
      Returns:
      the BatchNodeIdentityReference object itself.
    • toJson

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

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