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