#[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 RenamePropertyKey {
#[builder(default, set(item(type = super::super::super::api::PropertyName)))]
#[serde(
rename = "source",
skip_serializing_if = "std::collections::BTreeSet::is_empty",
default
)]
source: std::collections::BTreeSet<super::super::super::api::PropertyName>,
#[serde(rename = "target")]
target: super::super::super::api::PropertyName,
#[builder(custom(type = super::ConflictBehavior, convert = Box::new))]
#[serde(rename = "onConflict")]
on_conflict: Box<super::ConflictBehavior>,
}
impl RenamePropertyKey {
#[inline]
pub fn new(
target: super::super::super::api::PropertyName,
on_conflict: super::ConflictBehavior,
) -> Self {
Self::builder().target(target).on_conflict(on_conflict).build()
}
#[inline]
pub fn source(
&self,
) -> &std::collections::BTreeSet<super::super::super::api::PropertyName> {
&self.source
}
#[inline]
pub fn target(&self) -> &super::super::super::api::PropertyName {
&self.target
}
#[inline]
pub fn on_conflict(&self) -> &super::ConflictBehavior {
&*self.on_conflict
}
}