use serde::{Deserialize, Serialize};

#[allow(unused_imports)]
use super::*;
/// Provides additional information about the Ksplice known exploit detection.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ExploitAttemptAdditionalDetails {
    /// List of CVEs in the exploit.
    pub exploit_cves: Vec<String>,
}

/// Required fields for ExploitAttemptAdditionalDetails
pub struct ExploitAttemptAdditionalDetailsRequired {
    /// List of CVEs in the exploit.
    pub exploit_cves: Vec<String>,
}

impl ExploitAttemptAdditionalDetails {
    /// Create a new ExploitAttemptAdditionalDetails with required fields
    pub fn new(required: ExploitAttemptAdditionalDetailsRequired) -> Self {
        Self {
            exploit_cves: required.exploit_cves,
        }
    }

    /// Set exploit_cves
    pub fn set_exploit_cves(mut self, value: Vec<String>) -> Self {
        self.exploit_cves = value;
        self
    }
}
