/// Documents that already have the target property key are included in the rename.
/// The priority list determines which value wins via ordered precedence.
/// Must contain exactly the source keys + target key.
#[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 OverwriteOnConflict {
    #[builder(default, list(item(type = String, into)))]
    #[serde(rename = "priority", skip_serializing_if = "Vec::is_empty", default)]
    priority: Vec<String>,
}
impl OverwriteOnConflict {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    #[inline]
    pub fn priority(&self) -> &[String] {
        &*self.priority
    }
}
