use serde::{Deserialize, Serialize};
#[allow(unused_imports)]
use super::*;
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ManagedInstanceGroupModuleSummary {
pub name: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub enabled_stream: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub installed_profiles: Option<Vec<String>>,
#[serde(skip_serializing_if = "Option::is_none")]
pub software_source_id: Option<String>,
}
pub struct ManagedInstanceGroupModuleSummaryRequired {
pub name: String,
}
impl ManagedInstanceGroupModuleSummary {
pub fn new(required: ManagedInstanceGroupModuleSummaryRequired) -> Self {
Self {
name: required.name,
enabled_stream: None,
installed_profiles: None,
software_source_id: None,
}
}
pub fn set_name(mut self, value: String) -> Self {
self.name = value;
self
}
pub fn set_enabled_stream(mut self, value: Option<String>) -> Self {
self.enabled_stream = value;
self
}
pub fn set_installed_profiles(mut self, value: Option<Vec<String>>) -> Self {
self.installed_profiles = value;
self
}
pub fn set_software_source_id(mut self, value: Option<String>) -> Self {
self.software_source_id = value;
self
}
pub fn with_enabled_stream(mut self, value: impl Into<String>) -> Self {
self.enabled_stream = Some(value.into());
self
}
pub fn with_installed_profiles(mut self, value: Vec<String>) -> Self {
self.installed_profiles = Some(value);
self
}
pub fn with_software_source_id(mut self, value: impl Into<String>) -> Self {
self.software_source_id = Some(value.into());
self
}
}