use serde::{Deserialize, Serialize};
#[allow(unused_imports)]
use super::*;
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct SearchSoftwareSourceModuleStreamsDetails {
pub software_source_ids: Vec<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub sort_order: Option<SearchSoftwareSourceModuleStreamsDetailsSortOrder>,
#[serde(skip_serializing_if = "Option::is_none")]
pub module_name: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub sort_by: Option<SearchSoftwareSourceModuleStreamsDetailsSortBy>,
}
pub struct SearchSoftwareSourceModuleStreamsDetailsRequired {
pub software_source_ids: Vec<String>,
}
impl SearchSoftwareSourceModuleStreamsDetails {
pub fn new(required: SearchSoftwareSourceModuleStreamsDetailsRequired) -> Self {
Self {
software_source_ids: required.software_source_ids,
sort_order: None,
module_name: None,
sort_by: None,
}
}
pub fn set_software_source_ids(mut self, value: Vec<String>) -> Self {
self.software_source_ids = value;
self
}
pub fn set_sort_order(
mut self,
value: Option<SearchSoftwareSourceModuleStreamsDetailsSortOrder>,
) -> Self {
self.sort_order = value;
self
}
pub fn set_module_name(mut self, value: Option<String>) -> Self {
self.module_name = value;
self
}
pub fn set_sort_by(
mut self,
value: Option<SearchSoftwareSourceModuleStreamsDetailsSortBy>,
) -> Self {
self.sort_by = value;
self
}
pub fn with_sort_order(
mut self,
value: SearchSoftwareSourceModuleStreamsDetailsSortOrder,
) -> Self {
self.sort_order = Some(value);
self
}
pub fn with_module_name(mut self, value: impl Into<String>) -> Self {
self.module_name = Some(value.into());
self
}
pub fn with_sort_by(mut self, value: SearchSoftwareSourceModuleStreamsDetailsSortBy) -> Self {
self.sort_by = Some(value);
self
}
}