Class EventSubscriptionIdentity
- java.lang.Object
-
- com.azure.resourcemanager.eventgrid.models.EventSubscriptionIdentity
-
public class EventSubscriptionIdentity extends Object
The identity information with the event subscription.
-
-
Constructor Summary
Constructors Constructor Description EventSubscriptionIdentity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventSubscriptionIdentityTypetype()Get the type property: The type of managed identity used.StringuserAssignedIdentity()Get the userAssignedIdentity property: The user identity associated with the resource.voidvalidate()Validates the instance.EventSubscriptionIdentitywithType(EventSubscriptionIdentityType type)Set the type property: The type of managed identity used.EventSubscriptionIdentitywithUserAssignedIdentity(String userAssignedIdentity)Set the userAssignedIdentity property: The user identity associated with the resource.
-
-
-
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.
-
-