Class EventSubscriptionIdentity
java.lang.Object
com.azure.resourcemanager.eventgrid.models.EventSubscriptionIdentity
The identity information with the event subscription.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiontype()
Get the type property: The type of managed identity used.Get the userAssignedIdentity property: The user identity associated with the resource.void
validate()
Validates the instance.Set the type property: The type of managed identity used.withUserAssignedIdentity
(String userAssignedIdentity) Set the userAssignedIdentity property: The user identity associated with the resource.
-
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
Get the userAssignedIdentity property: The user identity associated with the resource.- Returns:
- the userAssignedIdentity value.
-
withUserAssignedIdentity
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.
-