oci-rust-sdk 0.4.4

Unofficial Oracle OCI SDK for Rust
Documentation
use serde::{Deserialize, Serialize};

#[allow(unused_imports)]
use super::*;
/// An object that defines an installed update for a Windows instance.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct InstalledWindowsUpdateSummary {
    /// Name of the Windows update.
    pub name: String,

    /// Unique identifier for the Windows update. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
    pub update_id: String,

    /// The type of Windows update.
    pub update_type: ClassificationTypes,
}

/// Required fields for InstalledWindowsUpdateSummary
pub struct InstalledWindowsUpdateSummaryRequired {
    /// Name of the Windows update.
    pub name: String,

    /// Unique identifier for the Windows update. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
    pub update_id: String,

    /// The type of Windows update.
    pub update_type: ClassificationTypes,
}

impl InstalledWindowsUpdateSummary {
    /// Create a new InstalledWindowsUpdateSummary with required fields
    pub fn new(required: InstalledWindowsUpdateSummaryRequired) -> Self {
        Self {
            name: required.name,

            update_id: required.update_id,

            update_type: required.update_type,
        }
    }

    /// Set name
    pub fn set_name(mut self, value: String) -> Self {
        self.name = value;
        self
    }

    /// Set update_id
    pub fn set_update_id(mut self, value: String) -> Self {
        self.update_id = value;
        self
    }

    /// Set update_type
    pub fn set_update_type(mut self, value: ClassificationTypes) -> Self {
        self.update_type = value;
        self
    }
}