次の方法で共有


EventSubscriptionIdentity Class

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

Implements

public final class EventSubscriptionIdentity
implements JsonSerializable<EventSubscriptionIdentity>

The identity information with the event subscription.

Constructor Summary

Constructor Description
EventSubscriptionIdentity()

Creates an instance of EventSubscriptionIdentity class.

Method Summary

Modifier and Type Method and Description
FederatedIdentityCredentialInfo federatedIdentityCredentialInfo()

Get the federatedIdentityCredentialInfo property: The details of the Federated Identity Credential (FIC) used with the resource delivery.

static EventSubscriptionIdentity fromJson(JsonReader jsonReader)

Reads an instance of EventSubscriptionIdentity from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
EventSubscriptionIdentityType type()

Get the type property: The type of managed identity used.

String userAssignedIdentity()

Get the userAssignedIdentity property: The user identity associated with the resource.

void validate()

Validates the instance.

EventSubscriptionIdentity withFederatedIdentityCredentialInfo(FederatedIdentityCredentialInfo federatedIdentityCredentialInfo)

Set the federatedIdentityCredentialInfo property: The details of the Federated Identity Credential (FIC) used with the resource delivery.

EventSubscriptionIdentity withType(EventSubscriptionIdentityType type)

Set the type property: The type of managed identity used.

EventSubscriptionIdentity withUserAssignedIdentity(String userAssignedIdentity)

Set the userAssignedIdentity property: The user identity associated with the resource.

Methods inherited from java.lang.Object

Constructor Details

EventSubscriptionIdentity

public EventSubscriptionIdentity()

Creates an instance of EventSubscriptionIdentity class.

Method Details

federatedIdentityCredentialInfo

public FederatedIdentityCredentialInfo federatedIdentityCredentialInfo()

Get the federatedIdentityCredentialInfo property: The details of the Federated Identity Credential (FIC) used with the resource delivery.

Returns:

the federatedIdentityCredentialInfo value.

fromJson

public static EventSubscriptionIdentity fromJson(JsonReader jsonReader)

Reads an instance of EventSubscriptionIdentity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of EventSubscriptionIdentity if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the EventSubscriptionIdentity.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public EventSubscriptionIdentityType type()

Get the type property: The type of managed identity used. Can be either 'SystemAssigned' or 'UserAssigned'.

Returns:

the type value.

userAssignedIdentity

public String userAssignedIdentity()

Get the userAssignedIdentity property: The user identity associated with the resource.

Returns:

the userAssignedIdentity value.

validate

public void validate()

Validates the instance.

withFederatedIdentityCredentialInfo

public EventSubscriptionIdentity withFederatedIdentityCredentialInfo(FederatedIdentityCredentialInfo federatedIdentityCredentialInfo)

Set the federatedIdentityCredentialInfo property: The details of the Federated Identity Credential (FIC) used with the resource delivery.

Parameters:

federatedIdentityCredentialInfo - the federatedIdentityCredentialInfo value to set.

Returns:

the EventSubscriptionIdentity object itself.

withType

public EventSubscriptionIdentity withType(EventSubscriptionIdentityType type)

Set the type property: The type of managed identity used. Can be either 'SystemAssigned' or 'UserAssigned'.

Parameters:

type - the type value to set.

Returns:

the EventSubscriptionIdentity object itself.

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.

Applies to