#[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 ComputeUnitsRequest {
    #[builder(custom(type = super::ComputableNode, convert = Box::new))]
    #[serde(rename = "node")]
    node: Box<super::ComputableNode>,
    #[builder(custom(type = super::Context, convert = Box::new))]
    #[serde(rename = "context")]
    context: Box<super::Context>,
}
impl ComputeUnitsRequest {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(node: super::ComputableNode, context: super::Context) -> Self {
        Self::builder().node(node).context(context).build()
    }
    #[inline]
    pub fn node(&self) -> &super::ComputableNode {
        &*self.node
    }
    #[inline]
    pub fn context(&self) -> &super::Context {
        &*self.context
    }
}
