Class DeliveryWithResourceIdentity
- java.lang.Object
-
- com.azure.resourcemanager.eventgrid.models.DeliveryWithResourceIdentity
-
public class DeliveryWithResourceIdentity extends Object
Information about the delivery for an event subscription with resource identity.
-
-
Constructor Summary
Constructors Constructor Description DeliveryWithResourceIdentity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventSubscriptionDestinationdestination()Get the destination property: Information about the destination where events have to be delivered for the event subscription.EventSubscriptionIdentityidentity()Get the identity property: The identity to use when delivering events.voidvalidate()Validates the instance.DeliveryWithResourceIdentitywithDestination(EventSubscriptionDestination destination)Set the destination property: Information about the destination where events have to be delivered for the event subscription.DeliveryWithResourceIdentitywithIdentity(EventSubscriptionIdentity identity)Set the identity property: The identity to use when delivering events.
-
-
-
Method Detail
-
identity
public EventSubscriptionIdentity identity()
Get the identity property: The identity to use when delivering events.- Returns:
- the identity value.
-
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.
-
destination
public EventSubscriptionDestination destination()
Get the destination property: Information about the destination where events have to be delivered for the event subscription. Uses Azure Event Grid's identity to acquire the authentication tokens being used during delivery / dead-lettering.- Returns:
- the destination value.
-
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 Azure Event Grid's identity to acquire the authentication tokens being used during delivery / dead-lettering.- Parameters:
destination- the destination value to set.- Returns:
- the DeliveryWithResourceIdentity object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-