Class DeadLetterWithResourceIdentity
- java.lang.Object
-
- com.azure.resourcemanager.eventgrid.models.DeadLetterWithResourceIdentity
-
public class DeadLetterWithResourceIdentity extends Object
Information about the deadletter destination with resource identity.
-
-
Constructor Summary
Constructors Constructor Description DeadLetterWithResourceIdentity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeadLetterDestinationdeadLetterDestination()Get the deadLetterDestination 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 dead-lettering events.voidvalidate()Validates the instance.DeadLetterWithResourceIdentitywithDeadLetterDestination(DeadLetterDestination deadLetterDestination)Set the deadLetterDestination property: Information about the destination where events have to be delivered for the event subscription.DeadLetterWithResourceIdentitywithIdentity(EventSubscriptionIdentity identity)Set the identity property: The identity to use when dead-lettering events.
-
-
-
Method Detail
-
identity
public EventSubscriptionIdentity identity()
Get the identity property: The identity to use when dead-lettering events.- Returns:
- the identity value.
-
withIdentity
public DeadLetterWithResourceIdentity withIdentity(EventSubscriptionIdentity identity)
Set the identity property: The identity to use when dead-lettering events.- Parameters:
identity- the identity value to set.- Returns:
- the DeadLetterWithResourceIdentity object itself.
-
deadLetterDestination
public DeadLetterDestination deadLetterDestination()
Get the deadLetterDestination 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 / dead-lettering.- Returns:
- the deadLetterDestination value.
-
withDeadLetterDestination
public DeadLetterWithResourceIdentity withDeadLetterDestination(DeadLetterDestination deadLetterDestination)
Set the deadLetterDestination 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 / dead-lettering.- Parameters:
deadLetterDestination- the deadLetterDestination value to set.- Returns:
- the DeadLetterWithResourceIdentity object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-