BatchPoolIdentityReference Class

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

Implements

public final class BatchPoolIdentityReference
implements JsonSerializable<BatchPoolIdentityReference>

The reference of one of the pool identities to encrypt Disk. This identity will be used to access the key vault.

Constructor Summary

Constructor Description
BatchPoolIdentityReference()

Creates an instance of BatchPoolIdentityReference class.

Method Summary

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

Reads an instance of BatchPoolIdentityReference from the JsonReader.

String getResourceId()

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

BatchPoolIdentityReference 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

BatchPoolIdentityReference

public BatchPoolIdentityReference()

Creates an instance of BatchPoolIdentityReference class.

Method Details

fromJson

public static BatchPoolIdentityReference fromJson(JsonReader jsonReader)

Reads an instance of BatchPoolIdentityReference from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getResourceId

public String getResourceId()

Get the resourceId property: The ARM resource id of the user assigned identity. This reference must be included in the pool identities.

Returns:

the resourceId value.

setResourceId

public BatchPoolIdentityReference setResourceId(String resourceId)

Set the resourceId property: The ARM resource id of the user assigned identity. This reference must be included in the pool identities.

Parameters:

resourceId - the resourceId value to set.

Returns:

the BatchPoolIdentityReference object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to