/// Enhanced video panel data source to be compatible with multiple assets
#[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 VideoPanelDataSource {
    #[builder(default, into)]
    #[serde(rename = "runRid", skip_serializing_if = "Option::is_none", default)]
    run_rid: Option<super::super::super::run::api::RunRid>,
    #[serde(rename = "assetRid")]
    asset_rid: super::super::super::rids::api::AssetRid,
    #[serde(rename = "refName")]
    ref_name: super::DataSourceRefName,
}
impl VideoPanelDataSource {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        asset_rid: super::super::super::rids::api::AssetRid,
        ref_name: super::DataSourceRefName,
    ) -> Self {
        Self::builder().asset_rid(asset_rid).ref_name(ref_name).build()
    }
    #[inline]
    pub fn run_rid(&self) -> Option<&super::super::super::run::api::RunRid> {
        self.run_rid.as_ref().map(|o| &*o)
    }
    #[inline]
    pub fn asset_rid(&self) -> &super::super::super::rids::api::AssetRid {
        &self.asset_rid
    }
    #[inline]
    pub fn ref_name(&self) -> &super::DataSourceRefName {
        &self.ref_name
    }
}
