/// The query exceeded that limit for number of rows returned. For the query to complete,
/// either zoom in or downsample.
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash,
    Copy
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct RowLimitExceeded {
    #[serde(rename = "queryId")]
    query_id: conjure_object::Uuid,
    #[serde(rename = "limit")]
    limit: conjure_object::SafeLong,
}
impl RowLimitExceeded {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(query_id: conjure_object::Uuid, limit: conjure_object::SafeLong) -> Self {
        Self::builder().query_id(query_id).limit(limit).build()
    }
    #[inline]
    pub fn query_id(&self) -> conjure_object::Uuid {
        self.query_id
    }
    #[inline]
    pub fn limit(&self) -> conjure_object::SafeLong {
        self.limit
    }
}
impl conjure_error::ErrorType for RowLimitExceeded {
    #[inline]
    fn code() -> conjure_error::ErrorCode {
        conjure_error::ErrorCode::InvalidArgument
    }
    #[inline]
    fn name() -> &'static str {
        "Compute:RowLimitExceeded"
    }
    #[inline]
    fn safe_args() -> &'static [&'static str] {
        &["limit", "queryId"]
    }
}
