#[allow(unused_imports)]
use serde_json::Value;
#[derive(Debug, Serialize, Deserialize)]
pub struct InlineResponse20027LocationTree {
#[serde(rename = "display_name")]
display_name: Option<String>,
#[serde(rename = "locations")]
locations: Option<Vec<::models::InlineResponse20027Locations>>,
#[serde(rename = "type")]
_type: Option<String>
}
impl InlineResponse20027LocationTree {
pub fn new() -> InlineResponse20027LocationTree {
InlineResponse20027LocationTree {
display_name: None,
locations: None,
_type: None
}
}
pub fn set_display_name(&mut self, display_name: String) {
self.display_name = Some(display_name);
}
pub fn with_display_name(mut self, display_name: String) -> InlineResponse20027LocationTree {
self.display_name = Some(display_name);
self
}
pub fn display_name(&self) -> Option<&String> {
self.display_name.as_ref()
}
pub fn reset_display_name(&mut self) {
self.display_name = None;
}
pub fn set_locations(&mut self, locations: Vec<::models::InlineResponse20027Locations>) {
self.locations = Some(locations);
}
pub fn with_locations(mut self, locations: Vec<::models::InlineResponse20027Locations>) -> InlineResponse20027LocationTree {
self.locations = Some(locations);
self
}
pub fn locations(&self) -> Option<&Vec<::models::InlineResponse20027Locations>> {
self.locations.as_ref()
}
pub fn reset_locations(&mut self) {
self.locations = None;
}
pub fn set__type(&mut self, _type: String) {
self._type = Some(_type);
}
pub fn with__type(mut self, _type: String) -> InlineResponse20027LocationTree {
self._type = Some(_type);
self
}
pub fn _type(&self) -> Option<&String> {
self._type.as_ref()
}
pub fn reset__type(&mut self) {
self._type = None;
}
}