use serde::{Deserialize, Serialize};
#[allow(unused_imports)]
use super::*;
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ThirdPartySoftwareSourceSummary {
pub software_source_type: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub is_mirror_sync_allowed: Option<bool>,
}
pub struct ThirdPartySoftwareSourceSummaryRequired {
pub software_source_type: String,
}
impl ThirdPartySoftwareSourceSummary {
pub fn new(required: ThirdPartySoftwareSourceSummaryRequired) -> Self {
Self {
software_source_type: required.software_source_type,
is_mirror_sync_allowed: None,
}
}
pub fn set_is_mirror_sync_allowed(mut self, value: Option<bool>) -> Self {
self.is_mirror_sync_allowed = value;
self
}
pub fn set_software_source_type(mut self, value: String) -> Self {
self.software_source_type = value;
self
}
pub fn with_is_mirror_sync_allowed(mut self, value: bool) -> Self {
self.is_mirror_sync_allowed = Some(value);
self
}
}