Class CacheIdentity
- java.lang.Object
-
- com.azure.resourcemanager.storagecache.models.CacheIdentity
-
public class CacheIdentity extends Object
Cache identity properties.
-
-
Constructor Summary
Constructors Constructor Description CacheIdentity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.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.void
validate()
Validates the instance.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.
-
-
-
Method Detail
-
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.
-
type
public CacheIdentityType type()
Get the type property: The type of identity used for the cache.- Returns:
- the type 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.
-
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.
-
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-