CacheIdentity Class
- java.
lang. Object - com.
azure. resourcemanager. storagecache. models. CacheIdentity
- com.
Implements
public final class CacheIdentity
implements JsonSerializable<CacheIdentity>
Cache identity properties.
Constructor Summary
| Constructor | Description |
|---|---|
| CacheIdentity() |
Creates an instance of Cache |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Cache |
fromJson(JsonReader jsonReader)
Reads an instance of Cache |
| String |
principalId()
Get the principal |
| String |
tenantId()
Get the tenant |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Cache |
type()
Get the type property: The type of identity used for the cache. |
|
Map<String,User |
userAssignedIdentities()
Get the user |
|
Cache |
withType(CacheIdentityType type)
Set the type property: The type of identity used for the cache. |
|
Cache |
withUserAssignedIdentities(Map<String,UserAssignedIdentitiesValue> userAssignedIdentities)
Set the user |
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:
Returns:
Throws:
principalId
public String principalId()
Get the principalId property: The principal ID for the system-assigned identity of the cache.
Returns:
tenantId
public String tenantId()
Get the tenantId property: The tenant ID associated with the cache.
Returns:
toJson
type
public CacheIdentityType type()
Get the type property: The type of identity used for the cache.
Returns:
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:
withType
public CacheIdentity withType(CacheIdentityType type)
Set the type property: The type of identity used for the cache.
Parameters:
Returns:
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:
Returns: