use serde::{Deserialize, Serialize}; /*
                                      * Compute Engine API
                                      *
                                      * Creates and runs virtual machines on Google Cloud Platform.
                                      *
                                      * The version of the OpenAPI document: v1
                                      *
                                      * Generated by: https://openapi-generator.tech
                                      */

/// ShieldedInstanceConfig : A set of Shielded Instance options.

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct ShieldedInstanceConfig {
    /// Defines whether the instance has integrity monitoring enabled. Enabled by default.
    #[serde(
        rename = "enableIntegrityMonitoring",
        skip_serializing_if = "Option::is_none"
    )]
    pub enable_integrity_monitoring: Option<bool>,
    /// Defines whether the instance has Secure Boot enabled. Disabled by default.
    #[serde(rename = "enableSecureBoot", skip_serializing_if = "Option::is_none")]
    pub enable_secure_boot: Option<bool>,
    /// Defines whether the instance has the vTPM enabled. Enabled by default.
    #[serde(rename = "enableVtpm", skip_serializing_if = "Option::is_none")]
    pub enable_vtpm: Option<bool>,
}

impl ShieldedInstanceConfig {
    /// A set of Shielded Instance options.
    pub fn new() -> ShieldedInstanceConfig {
        ShieldedInstanceConfig {
            enable_integrity_monitoring: None,
            enable_secure_boot: None,
            enable_vtpm: None,
        }
    }
}
