Class CacheIdentity


  • public class CacheIdentity
    extends Object
    Cache identity properties.
    • Constructor Detail

      • CacheIdentity

        public CacheIdentity()
    • 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.