/*
 * Artifact Keeper API
 *
 * Enterprise artifact registry supporting 45+ package formats.
 *
 * The version of the OpenAPI document: 1.2.1
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// DtAnalysis : Analysis state for a finding
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DtAnalysis {
    #[serde(rename = "details", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub details: Option<Option<String>>,
    #[serde(rename = "isSuppressed")]
    pub is_suppressed: bool,
    #[serde(rename = "justification", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub justification: Option<Option<String>>,
    #[serde(rename = "response", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub response: Option<Option<String>>,
    #[serde(rename = "state", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub state: Option<Option<String>>,
}

impl DtAnalysis {
    /// Analysis state for a finding
    pub fn new(is_suppressed: bool) -> DtAnalysis {
        DtAnalysis {
            details: None,
            is_suppressed,
            justification: None,
            response: None,
            state: None,
        }
    }
}

