#[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 GroupedComputeNodeAppendResponse {
    #[builder(
        custom(
            type = super::super::super::super::scout::compute::api::Grouping,
            convert = Box::new
        )
    )]
    #[serde(rename = "grouping")]
    grouping: Box<super::super::super::super::scout::compute::api::Grouping>,
    #[builder(custom(type = super::ComputeNodeAppendResponse, convert = Box::new))]
    #[serde(rename = "response")]
    response: Box<super::ComputeNodeAppendResponse>,
}
impl GroupedComputeNodeAppendResponse {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        grouping: super::super::super::super::scout::compute::api::Grouping,
        response: super::ComputeNodeAppendResponse,
    ) -> Self {
        Self::builder().grouping(grouping).response(response).build()
    }
    #[inline]
    pub fn grouping(
        &self,
    ) -> &super::super::super::super::scout::compute::api::Grouping {
        &*self.grouping
    }
    #[inline]
    pub fn response(&self) -> &super::ComputeNodeAppendResponse {
        &*self.response
    }
}
