#[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 GetLeastCommonAncestorRequest {
    #[serde(rename = "commit1")]
    commit1: super::CommitId,
    #[serde(rename = "commit2")]
    commit2: super::CommitId,
}
impl GetLeastCommonAncestorRequest {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(commit1: super::CommitId, commit2: super::CommitId) -> Self {
        Self::builder().commit1(commit1).commit2(commit2).build()
    }
    #[inline]
    pub fn commit1(&self) -> &super::CommitId {
        &self.commit1
    }
    #[inline]
    pub fn commit2(&self) -> &super::CommitId {
        &self.commit2
    }
}
