Share via


DeliveryWithResourceIdentity Class

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

Implements

public final class DeliveryWithResourceIdentity
implements JsonSerializable<DeliveryWithResourceIdentity>

Information about the delivery for an event subscription with resource identity.

Constructor Summary

Constructor Description
DeliveryWithResourceIdentity()

Creates an instance of DeliveryWithResourceIdentity class.

Method Summary

Modifier and Type Method and Description
EventSubscriptionDestination destination()

Get the destination property: Information about the destination where events have to be delivered for the event subscription.

static DeliveryWithResourceIdentity fromJson(JsonReader jsonReader)

Reads an instance of DeliveryWithResourceIdentity from the JsonReader.

EventSubscriptionIdentity identity()

Get the identity property: The identity to use when delivering events.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DeliveryWithResourceIdentity withDestination(EventSubscriptionDestination destination)

Set the destination property: Information about the destination where events have to be delivered for the event subscription.

DeliveryWithResourceIdentity withIdentity(EventSubscriptionIdentity identity)

Set the identity property: The identity to use when delivering events.

Methods inherited from java.lang.Object

Constructor Details

DeliveryWithResourceIdentity

public DeliveryWithResourceIdentity()

Creates an instance of DeliveryWithResourceIdentity class.

Method Details

destination

public EventSubscriptionDestination destination()

Get the destination property: Information about the destination where events have to be delivered for the event subscription. Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication tokens being used during delivery.

Returns:

the destination value.

fromJson

public static DeliveryWithResourceIdentity fromJson(JsonReader jsonReader)

Reads an instance of DeliveryWithResourceIdentity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DeliveryWithResourceIdentity 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 DeliveryWithResourceIdentity.

identity

public EventSubscriptionIdentity identity()

Get the identity property: The identity to use when delivering events.

Returns:

the identity value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDestination

public DeliveryWithResourceIdentity withDestination(EventSubscriptionDestination destination)

Set the destination property: Information about the destination where events have to be delivered for the event subscription. Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication tokens being used during delivery.

Parameters:

destination - the destination value to set.

Returns:

the DeliveryWithResourceIdentity object itself.

withIdentity

public DeliveryWithResourceIdentity withIdentity(EventSubscriptionIdentity identity)

Set the identity property: The identity to use when delivering events.

Parameters:

identity - the identity value to set.

Returns:

the DeliveryWithResourceIdentity object itself.

Applies to