/*
 * Tapis Workflows API
 *
 * Create and manage pipelines
 *
 * The version of the OpenAPI document: 1.6.0
 * Contact: cicsupport@tacc.utexas.edu
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ExecutionProfile {
    #[serde(rename = "invocation_mode", skip_serializing_if = "Option::is_none")]
    pub invocation_mode: Option<models::EnumInvocationMode>,
    #[serde(rename = "max_retries", skip_serializing_if = "Option::is_none")]
    pub max_retries: Option<i32>,
    #[serde(rename = "max_exec_time", skip_serializing_if = "Option::is_none")]
    pub max_exec_time: Option<i32>,
    #[serde(rename = "retry_policy", skip_serializing_if = "Option::is_none")]
    pub retry_policy: Option<models::EnumRetryPolicy>,
}

impl ExecutionProfile {
    pub fn new() -> ExecutionProfile {
        ExecutionProfile {
            invocation_mode: None,
            max_retries: None,
            max_exec_time: None,
            retry_policy: None,
        }
    }
}
