Class EventSubscriptionIdentity

java.lang.Object
com.azure.resourcemanager.eventgrid.models.EventSubscriptionIdentity

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

    • EventSubscriptionIdentity

      public EventSubscriptionIdentity()
  • Method Details

    • 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

      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.