CacheIdentity Class

  • java.lang.Object
    • com.azure.resourcemanager.storagecache.models.CacheIdentity

Implements

public final class CacheIdentity
implements JsonSerializable<CacheIdentity>

Cache identity properties.

Constructor Summary

Constructor Description
CacheIdentity()

Creates an instance of CacheIdentity class.

Method Summary

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

Reads an instance of CacheIdentity from the JsonReader.

String principalId()

Get the principalId property: The principal ID for the system-assigned identity of the cache.

String tenantId()

Get the tenantId property: The tenant ID associated with the cache.

JsonWriter toJson(JsonWriter jsonWriter)
CacheIdentityType type()

Get the type property: The type of identity used for the cache.

Map<String,UserAssignedIdentitiesValue> userAssignedIdentities()

Get the userAssignedIdentities property: A dictionary where each key is a user assigned identity resource ID, and each key's value is an empty dictionary.

CacheIdentity withType(CacheIdentityType type)

Set the type property: The type of identity used for the cache.

CacheIdentity withUserAssignedIdentities(Map<String,UserAssignedIdentitiesValue> userAssignedIdentities)

Set the userAssignedIdentities property: A dictionary where each key is a user assigned identity resource ID, and each key's value is an empty dictionary.

Methods inherited from java.lang.Object

Constructor Details

CacheIdentity

public CacheIdentity()

Creates an instance of CacheIdentity class.

Method Details

fromJson

public static CacheIdentity fromJson(JsonReader jsonReader)

Reads an instance of CacheIdentity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

principalId

public String principalId()

Get the principalId property: The principal ID for the system-assigned identity of the cache.

Returns:

the principalId value.

tenantId

public String tenantId()

Get the tenantId property: The tenant ID associated with the cache.

Returns:

the tenantId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public CacheIdentityType type()

Get the type property: The type of identity used for the cache.

Returns:

the type value.

userAssignedIdentities

public Map<String,UserAssignedIdentitiesValue> userAssignedIdentities()

Get the userAssignedIdentities property: A dictionary where each key is a user assigned identity resource ID, and each key's value is an empty dictionary.

Returns:

the userAssignedIdentities value.

withType

public CacheIdentity withType(CacheIdentityType type)

Set the type property: The type of identity used for the cache.

Parameters:

type - the type value to set.

Returns:

the CacheIdentity object itself.

withUserAssignedIdentities

public CacheIdentity withUserAssignedIdentities(Map<String,UserAssignedIdentitiesValue> userAssignedIdentities)

Set the userAssignedIdentities property: A dictionary where each key is a user assigned identity resource ID, and each key's value is an empty dictionary.

Parameters:

userAssignedIdentities - the userAssignedIdentities value to set.

Returns:

the CacheIdentity object itself.

Applies to