/*
 * 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};

/// DtAnalysisResponse : Response from analysis update
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DtAnalysisResponse {
    #[serde(rename = "analysisDetails", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub analysis_details: Option<Option<String>>,
    #[serde(rename = "analysisJustification", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub analysis_justification: Option<Option<String>>,
    #[serde(rename = "analysisState")]
    pub analysis_state: String,
    #[serde(rename = "isSuppressed")]
    pub is_suppressed: bool,
}

impl DtAnalysisResponse {
    /// Response from analysis update
    pub fn new(analysis_state: String, is_suppressed: bool) -> DtAnalysisResponse {
        DtAnalysisResponse {
            analysis_details: None,
            analysis_justification: None,
            analysis_state,
            is_suppressed,
        }
    }
}

