Class CacheIdentity
java.lang.Object
com.azure.resourcemanager.storagecache.models.CacheIdentity
Cache identity properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the principalId property: The principal ID for the system-assigned identity of the cache.tenantId()
Get the tenantId property: The tenant ID associated with the cache.type()
Get the type property: The type of identity used for the cache.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.withType
(CacheIdentityType type) Set the type property: The type of identity used for the cache.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.
-
Constructor Details
-
CacheIdentity
public CacheIdentity()Creates an instance of CacheIdentity class.
-
-
Method Details
-
principalId
Get the principalId property: The principal ID for the system-assigned identity of the cache.- Returns:
- the principalId value.
-
tenantId
Get the tenantId property: The tenant ID associated with the cache.- Returns:
- the tenantId value.
-
type
Get the type property: The type of identity used for the cache.- Returns:
- the type value.
-
withType
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
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.
-