Share via


BatchNodeIdentityReference Class

  • java.lang.Object
    • com.azure.compute.batch.models.BatchNodeIdentityReference

Implements

public final class BatchNodeIdentityReference
implements JsonSerializable<BatchNodeIdentityReference>

The reference to a user assigned identity associated with the Batch pool which a compute node will use.

Constructor Summary

Constructor Description
BatchNodeIdentityReference()

Creates an instance of BatchNodeIdentityReference class.

Method Summary

Modifier and Type Method and Description
static BatchNodeIdentityReference fromJson(JsonReader jsonReader)

Reads an instance of BatchNodeIdentityReference from the JsonReader.

String getResourceId()

Get the resourceId property: The ARM resource id of the user assigned identity.

BatchNodeIdentityReference setResourceId(String resourceId)

Set the resourceId property: The ARM resource id of the user assigned identity.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

BatchNodeIdentityReference

public BatchNodeIdentityReference()

Creates an instance of BatchNodeIdentityReference class.

Method Details

fromJson

public static BatchNodeIdentityReference fromJson(JsonReader jsonReader)

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.

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 JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to