#[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 ParameterizedComputeNodeRequest {
    #[builder(custom(type = super::ComputableNode, convert = Box::new))]
    #[serde(rename = "node")]
    node: Box<super::ComputableNode>,
    #[builder(
        custom(type = super::super::super::super::api::Timestamp, convert = Box::new)
    )]
    #[serde(rename = "start")]
    start: Box<super::super::super::super::api::Timestamp>,
    #[builder(
        custom(type = super::super::super::super::api::Timestamp, convert = Box::new)
    )]
    #[serde(rename = "end")]
    end: Box<super::super::super::super::api::Timestamp>,
    #[builder(custom(type = super::Context, convert = Box::new))]
    #[serde(rename = "context")]
    context: Box<super::Context>,
    #[builder(default, into)]
    #[serde(rename = "sourceRid", skip_serializing_if = "Option::is_none", default)]
    source_rid: Option<conjure_object::ResourceIdentifier>,
    #[builder(custom(type = super::ParameterizedContext, convert = Box::new))]
    #[serde(rename = "parameterizedContext")]
    parameterized_context: Box<super::ParameterizedContext>,
}
impl ParameterizedComputeNodeRequest {
    #[inline]
    pub fn node(&self) -> &super::ComputableNode {
        &*self.node
    }
    /// The start of the time range (inclusive).
    #[inline]
    pub fn start(&self) -> &super::super::super::super::api::Timestamp {
        &*self.start
    }
    /// The end of the time range (inclusive).
    #[inline]
    pub fn end(&self) -> &super::super::super::super::api::Timestamp {
        &*self.end
    }
    #[inline]
    pub fn context(&self) -> &super::Context {
        &*self.context
    }
    /// Optional RID identifying the resource that initiated this query (e.g. workbook/notebook RID, checklist RID).
    /// Used for observability only — trusted as-is, no permission checks are performed on this value.
    #[inline]
    pub fn source_rid(&self) -> Option<&conjure_object::ResourceIdentifier> {
        self.source_rid.as_ref().map(|o| &*o)
    }
    /// Specifies how certain variables should be parameterized. If a variable name appears in both the context
    /// and the parameterized context, it will be treated as parameterized.
    #[inline]
    pub fn parameterized_context(&self) -> &super::ParameterizedContext {
        &*self.parameterized_context
    }
}
