#[allow(unused_imports)]
use serde_json::Value;
#[derive(Debug, Serialize, Deserialize)]
pub struct InlineResponse2009 {
#[serde(rename = "scan_type_list")]
scan_type_list: Option<Vec<::models::InlineResponse2009ScanTypeList>>,
#[serde(rename = "instrument_list")]
instrument_list: Option<Vec<::models::InlineResponse2009InstrumentList>>,
#[serde(rename = "filter_list")]
filter_list: Option<Vec<::models::InlineResponse2009FilterList>>,
#[serde(rename = "location_tree")]
location_tree: Option<Vec<::models::InlineResponse2009LocationTree>>
}
impl InlineResponse2009 {
pub fn new() -> InlineResponse2009 {
InlineResponse2009 {
scan_type_list: None,
instrument_list: None,
filter_list: None,
location_tree: None
}
}
pub fn set_scan_type_list(&mut self, scan_type_list: Vec<::models::InlineResponse2009ScanTypeList>) {
self.scan_type_list = Some(scan_type_list);
}
pub fn with_scan_type_list(mut self, scan_type_list: Vec<::models::InlineResponse2009ScanTypeList>) -> InlineResponse2009 {
self.scan_type_list = Some(scan_type_list);
self
}
pub fn scan_type_list(&self) -> Option<&Vec<::models::InlineResponse2009ScanTypeList>> {
self.scan_type_list.as_ref()
}
pub fn reset_scan_type_list(&mut self) {
self.scan_type_list = None;
}
pub fn set_instrument_list(&mut self, instrument_list: Vec<::models::InlineResponse2009InstrumentList>) {
self.instrument_list = Some(instrument_list);
}
pub fn with_instrument_list(mut self, instrument_list: Vec<::models::InlineResponse2009InstrumentList>) -> InlineResponse2009 {
self.instrument_list = Some(instrument_list);
self
}
pub fn instrument_list(&self) -> Option<&Vec<::models::InlineResponse2009InstrumentList>> {
self.instrument_list.as_ref()
}
pub fn reset_instrument_list(&mut self) {
self.instrument_list = None;
}
pub fn set_filter_list(&mut self, filter_list: Vec<::models::InlineResponse2009FilterList>) {
self.filter_list = Some(filter_list);
}
pub fn with_filter_list(mut self, filter_list: Vec<::models::InlineResponse2009FilterList>) -> InlineResponse2009 {
self.filter_list = Some(filter_list);
self
}
pub fn filter_list(&self) -> Option<&Vec<::models::InlineResponse2009FilterList>> {
self.filter_list.as_ref()
}
pub fn reset_filter_list(&mut self) {
self.filter_list = None;
}
pub fn set_location_tree(&mut self, location_tree: Vec<::models::InlineResponse2009LocationTree>) {
self.location_tree = Some(location_tree);
}
pub fn with_location_tree(mut self, location_tree: Vec<::models::InlineResponse2009LocationTree>) -> InlineResponse2009 {
self.location_tree = Some(location_tree);
self
}
pub fn location_tree(&self) -> Option<&Vec<::models::InlineResponse2009LocationTree>> {
self.location_tree.as_ref()
}
pub fn reset_location_tree(&mut self) {
self.location_tree = None;
}
}