Package com.azure.compute.batch.models
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 Summary
ConstructorsConstructorDescriptionCreates an instance of BatchNodeIdentityReference class. -
Method Summary
Modifier and TypeMethodDescriptionstatic BatchNodeIdentityReference
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of BatchNodeIdentityReference from the JsonReader.Get the resourceId property: The ARM resource id of the user assigned identity.setResourceId
(String resourceId) Set 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
-
Constructor Details
-
BatchNodeIdentityReference
public BatchNodeIdentityReference()Creates an instance of BatchNodeIdentityReference class.
-
-
Method Details
-
getResourceId
Get the resourceId property: The ARM resource id of the user assigned identity.- Returns:
- the resourceId value.
-
setResourceId
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
- Specified by:
toJson
in interfacecom.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.
-