use serde::{Deserialize, Serialize};
#[allow(unused_imports)]
use super::*;
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct VendorSoftwareSourceSummary {
pub vendor_name: VendorName,
pub software_source_type: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub is_mandatory_for_autonomous_linux: Option<bool>,
}
pub struct VendorSoftwareSourceSummaryRequired {
pub vendor_name: VendorName,
pub software_source_type: String,
}
impl VendorSoftwareSourceSummary {
pub fn new(required: VendorSoftwareSourceSummaryRequired) -> Self {
Self {
vendor_name: required.vendor_name,
software_source_type: required.software_source_type,
is_mandatory_for_autonomous_linux: None,
}
}
pub fn set_vendor_name(mut self, value: VendorName) -> Self {
self.vendor_name = value;
self
}
pub fn set_is_mandatory_for_autonomous_linux(mut self, value: Option<bool>) -> Self {
self.is_mandatory_for_autonomous_linux = value;
self
}
pub fn set_software_source_type(mut self, value: String) -> Self {
self.software_source_type = value;
self
}
pub fn with_is_mandatory_for_autonomous_linux(mut self, value: bool) -> Self {
self.is_mandatory_for_autonomous_linux = Some(value);
self
}
}