Share via


ComputeNodeIdentityReference Class

  • java.lang.Object
    • com.azure.resourcemanager.batch.models.ComputeNodeIdentityReference

Implements

public final class ComputeNodeIdentityReference
implements JsonSerializable<ComputeNodeIdentityReference>

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

Constructor Summary

Constructor Description
ComputeNodeIdentityReference()

Creates an instance of ComputeNodeIdentityReference class.

Method Summary

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

Reads an instance of ComputeNodeIdentityReference from the JsonReader.

String resourceId()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ComputeNodeIdentityReference withResourceId(String resourceId)

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

Methods inherited from java.lang.Object

Constructor Details

ComputeNodeIdentityReference

public ComputeNodeIdentityReference()

Creates an instance of ComputeNodeIdentityReference class.

Method Details

fromJson

public static ComputeNodeIdentityReference fromJson(JsonReader jsonReader)

Reads an instance of ComputeNodeIdentityReference from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ComputeNodeIdentityReference 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 ComputeNodeIdentityReference.

resourceId

public String resourceId()

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

Returns:

the resourceId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withResourceId

public ComputeNodeIdentityReference withResourceId(String resourceId)

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

Parameters:

resourceId - the resourceId value to set.

Returns:

the ComputeNodeIdentityReference object itself.

Applies to