#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct TabbedPanelV1 {
    #[serde(rename = "id")]
    id: super::PanelId,
    #[builder(default, list(item(type = super::SingleTab)))]
    #[serde(rename = "tabs", skip_serializing_if = "Vec::is_empty", default)]
    tabs: Vec<super::SingleTab>,
}
impl TabbedPanelV1 {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(id: super::PanelId) -> Self {
        Self::builder().id(id).build()
    }
    #[inline]
    pub fn id(&self) -> &super::PanelId {
        &self.id
    }
    #[inline]
    pub fn tabs(&self) -> &[super::SingleTab] {
        &*self.tabs
    }
}
