#[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 EnumGroupBySortCustom {
    #[builder(default, list(item(type = String, into)))]
    #[serde(rename = "order", skip_serializing_if = "Vec::is_empty", default)]
    order: Vec<String>,
}
impl EnumGroupBySortCustom {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    /// Specify the values in the order they should appear.
    /// Unspecified values will be sorted to the bottom.
    #[inline]
    pub fn order(&self) -> &[String] {
        &*self.order
    }
}
