Class DeadLetterWithResourceIdentity
java.lang.Object
com.azure.resourcemanager.eventgrid.models.DeadLetterWithResourceIdentity
Information about the deadletter destination with resource identity.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the deadLetterDestination property: Information about the destination where events have to be delivered for the event subscription.identity()
Get the identity property: The identity to use when dead-lettering events.void
validate()
Validates the instance.withDeadLetterDestination
(DeadLetterDestination deadLetterDestination) Set the deadLetterDestination property: Information about the destination where events have to be delivered for the event subscription.withIdentity
(EventSubscriptionIdentity identity) Set the identity property: The identity to use when dead-lettering events.
-
Constructor Details
-
DeadLetterWithResourceIdentity
public DeadLetterWithResourceIdentity()
-
-
Method Details
-
identity
Get the identity property: The identity to use when dead-lettering events.- Returns:
- the identity value.
-
withIdentity
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
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.
-