Class EventSubscriptionIdentity


  • public class EventSubscriptionIdentity
    extends Object
    The identity information with the event subscription.
    • Constructor Detail

      • EventSubscriptionIdentity

        public EventSubscriptionIdentity()
    • Method Detail

      • type

        public EventSubscriptionIdentityType type()
        Get the type property: The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identity.
        Returns:
        the type value.
      • withType

        public EventSubscriptionIdentity withType​(EventSubscriptionIdentityType type)
        Set the type property: The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identity.
        Parameters:
        type - the type value to set.
        Returns:
        the EventSubscriptionIdentity object itself.
      • userAssignedIdentity

        public String userAssignedIdentity()
        Get the userAssignedIdentity property: The user identity associated with the resource.
        Returns:
        the userAssignedIdentity value.
      • withUserAssignedIdentity

        public EventSubscriptionIdentity withUserAssignedIdentity​(String userAssignedIdentity)
        Set the userAssignedIdentity property: The user identity associated with the resource.
        Parameters:
        userAssignedIdentity - the userAssignedIdentity value to set.
        Returns:
        the EventSubscriptionIdentity object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.