/// This function type is unsupported.
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    conjure_object::private::DeriveWith
)]
#[serde(crate = "conjure_object::serde")]
#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct Function {
    #[serde(rename = "rid")]
    rid: super::super::super::rids::api::FunctionRid,
    #[serde(rename = "functionLineageRid")]
    function_lineage_rid: super::super::super::rids::api::FunctionLineageRid,
    #[builder(into)]
    #[serde(rename = "title")]
    title: String,
    #[builder(into)]
    #[serde(rename = "description")]
    description: String,
    #[builder(default, into)]
    #[serde(
        rename = "autoGeneratedTitle",
        skip_serializing_if = "Option::is_none",
        default
    )]
    auto_generated_title: Option<String>,
    #[builder(default, into)]
    #[serde(
        rename = "autoGeneratedDescription",
        skip_serializing_if = "Option::is_none",
        default
    )]
    auto_generated_description: Option<String>,
    #[builder(custom(type = super::FunctionNode, convert = Box::new))]
    #[serde(rename = "functionNode")]
    function_node: Box<super::FunctionNode>,
}
impl Function {
    #[inline]
    pub fn rid(&self) -> &super::super::super::rids::api::FunctionRid {
        &self.rid
    }
    #[inline]
    pub fn function_lineage_rid(
        &self,
    ) -> &super::super::super::rids::api::FunctionLineageRid {
        &self.function_lineage_rid
    }
    #[inline]
    pub fn title(&self) -> &str {
        &*self.title
    }
    #[inline]
    pub fn description(&self) -> &str {
        &*self.description
    }
    #[inline]
    pub fn auto_generated_title(&self) -> Option<&str> {
        self.auto_generated_title.as_ref().map(|o| &**o)
    }
    #[inline]
    pub fn auto_generated_description(&self) -> Option<&str> {
        self.auto_generated_description.as_ref().map(|o| &**o)
    }
    #[inline]
    pub fn function_node(&self) -> &super::FunctionNode {
        &*self.function_node
    }
}
