Class RetryPolicy
- java.lang.Object
-
- com.azure.resourcemanager.eventgrid.models.RetryPolicy
-
public final class RetryPolicy extends Object
Information about the retry policy for an event subscription.
-
-
Constructor Summary
Constructors Constructor Description RetryPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegereventTimeToLiveInMinutes()Get the eventTimeToLiveInMinutes property: Time To Live (in minutes) for events.IntegermaxDeliveryAttempts()Get the maxDeliveryAttempts property: Maximum number of delivery retry attempts for events.voidvalidate()Validates the instance.RetryPolicywithEventTimeToLiveInMinutes(Integer eventTimeToLiveInMinutes)Set the eventTimeToLiveInMinutes property: Time To Live (in minutes) for events.RetryPolicywithMaxDeliveryAttempts(Integer maxDeliveryAttempts)Set the maxDeliveryAttempts property: Maximum number of delivery retry attempts for events.
-
-
-
Method Detail
-
maxDeliveryAttempts
public Integer maxDeliveryAttempts()
Get the maxDeliveryAttempts property: Maximum number of delivery retry attempts for events.- Returns:
- the maxDeliveryAttempts value.
-
withMaxDeliveryAttempts
public RetryPolicy withMaxDeliveryAttempts(Integer maxDeliveryAttempts)
Set the maxDeliveryAttempts property: Maximum number of delivery retry attempts for events.- Parameters:
maxDeliveryAttempts- the maxDeliveryAttempts value to set.- Returns:
- the RetryPolicy object itself.
-
eventTimeToLiveInMinutes
public Integer eventTimeToLiveInMinutes()
Get the eventTimeToLiveInMinutes property: Time To Live (in minutes) for events.- Returns:
- the eventTimeToLiveInMinutes value.
-
withEventTimeToLiveInMinutes
public RetryPolicy withEventTimeToLiveInMinutes(Integer eventTimeToLiveInMinutes)
Set the eventTimeToLiveInMinutes property: Time To Live (in minutes) for events.- Parameters:
eventTimeToLiveInMinutes- the eventTimeToLiveInMinutes value to set.- Returns:
- the RetryPolicy object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-