/*
 * This is an auto-generated file.
 * Any manual changes may be overwritten without notice!
 */

use derive_builder::Builder;
use serde::{Deserialize, Serialize};

/// RegisterOptions is used to pass through job registration parameters
///
/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct RegisterOptions {
    #[serde(rename = "EnforceIndex")]
    pub enforce_index: bool,

    #[serde(rename = "ModifyIndex")]
    pub modify_index: u64,

    #[serde(rename = "PolicyOverride")]
    pub policy_override: bool,

    #[serde(rename = "PreserveCounts")]
    pub preserve_counts: bool,

    #[serde(rename = "EvalPriority")]
    pub eval_priority: i64,

    #[serde(rename = "Submission", skip_serializing_if = "Option::is_none")]
    pub submission: Option<super::JobSubmission>,
}
