/// An offset that is defined relative to a target run.
#[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 RunAlignment {
    #[serde(rename = "alignTo")]
    align_to: super::RunAlignTo,
    #[serde(rename = "targetRunRid")]
    target_run_rid: super::super::super::run::api::RunRid,
}
impl RunAlignment {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        align_to: super::RunAlignTo,
        target_run_rid: super::super::super::run::api::RunRid,
    ) -> Self {
        Self::builder().align_to(align_to).target_run_rid(target_run_rid).build()
    }
    #[inline]
    pub fn align_to(&self) -> &super::RunAlignTo {
        &self.align_to
    }
    #[inline]
    pub fn target_run_rid(&self) -> &super::super::super::run::api::RunRid {
        &self.target_run_rid
    }
}
