// Generated by redfish-codegen. Do not modify.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum DeliveryRetryPolicy {
/// This value shall indicate the subscription is terminated after the maximum number of retries is reached, specified by the DeliveryRetryAttempts property in the event service.
TerminateAfterRetries,
/// This value shall indicate the subscription is suspended after the maximum number of retries is reached, specified by the DeliveryRetryAttempts property in the event service. The value of the State property within Status shall contain `Disabled` for a suspended subscription.
SuspendRetries,
/// This value shall indicate the subscription is not suspended or terminated, and attempts at delivery of future events shall continue regardless of the number of retries. The interval between retries remains constant and is specified by the DeliveryRetryIntervalSeconds property in the event service.
RetryForever,
/// This value shall indicate the subscription is not suspended or terminated, and attempts at delivery of future events shall continue regardless of the number of retries. Retry attempts are issued over time according to a service-defined backoff algorithm. The backoff algorithm may insert an increasing amount of delay between retry attempts and may reach a maximum. Added in version v1_10_0.
RetryForeverWithBackoff,
}
#[allow(clippy::derivable_impls)]
impl Default for DeliveryRetryPolicy {
fn default() -> DeliveryRetryPolicy {
DeliveryRetryPolicy::TerminateAfterRetries
}
}
impl crate::Metadata<'static> for DeliveryRetryPolicy {
const JSON_SCHEMA: &'static str = "EventDestination.v1_13_0.json";
}