Dela via


EventSubscriptionIdentity Class

  • java.lang.Object
    • com.microsoft.azure.management.eventgrid.v2020_04_01_preview.EventSubscriptionIdentity

public class EventSubscriptionIdentity

The identity information with the event subscription.

Constructor Summary

Constructor Description
EventSubscriptionIdentity()

Method Summary

Modifier and Type Method and Description
EventSubscriptionIdentityType type()

Get the type of managed identity used.

java.lang.String userAssignedIdentity()

Get the user identity associated with the resource.

EventSubscriptionIdentity withType(EventSubscriptionIdentityType type)

Set the type of managed identity used.

EventSubscriptionIdentity withUserAssignedIdentity(String userAssignedIdentity)

Set the user identity associated with the resource.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

EventSubscriptionIdentity

public EventSubscriptionIdentity()

Method Details

type

public EventSubscriptionIdentityType type()

Get 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. Possible values include: 'SystemAssigned', 'UserAssigned'.

Returns:

the type value

userAssignedIdentity

public String userAssignedIdentity()

Get the user identity associated with the resource.

Returns:

the userAssignedIdentity value

withType

public EventSubscriptionIdentity withType(EventSubscriptionIdentityType type)

Set 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. Possible values include: 'SystemAssigned', 'UserAssigned'.

Parameters:

type - the type value to set

Returns:

the EventSubscriptionIdentity object itself.

withUserAssignedIdentity

public EventSubscriptionIdentity withUserAssignedIdentity(String userAssignedIdentity)

Set the user identity associated with the resource.

Parameters:

userAssignedIdentity - the userAssignedIdentity value to set

Returns:

the EventSubscriptionIdentity object itself.

Applies to