/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.2.0
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// Retry : Retry configuration for failed module executions
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Retry {
    #[serde(rename = "constant", skip_serializing_if = "Option::is_none")]
    pub constant: Option<Box<models::RetryConstant>>,
    #[serde(rename = "exponential", skip_serializing_if = "Option::is_none")]
    pub exponential: Option<Box<models::RetryExponential>>,
    #[serde(rename = "retry_if", skip_serializing_if = "Option::is_none")]
    pub retry_if: Option<Box<models::RetryIf>>,
}

impl Retry {
    /// Retry configuration for failed module executions
    pub fn new() -> Retry {
        Retry {
            constant: None,
            exponential: None,
            retry_if: None,
        }
    }
}

