/// Group by queries are not supported for the compute node supplied
#[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 GroupBysNotSupportedForQuery {
    #[builder(into)]
    #[serde(rename = "computeNode")]
    compute_node: String,
}
impl GroupBysNotSupportedForQuery {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(compute_node: impl Into<String>) -> Self {
        Self::builder().compute_node(compute_node).build()
    }
    #[inline]
    pub fn compute_node(&self) -> &str {
        &*self.compute_node
    }
}
impl conjure_error::ErrorType for GroupBysNotSupportedForQuery {
    #[inline]
    fn code() -> conjure_error::ErrorCode {
        conjure_error::ErrorCode::InvalidArgument
    }
    #[inline]
    fn name() -> &'static str {
        "Compute:GroupBysNotSupportedForQuery"
    }
    #[inline]
    fn safe_args() -> &'static [&'static str] {
        &["computeNode"]
    }
}
