#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    conjure_object::private::DeriveWith
)]
#[serde(crate = "conjure_object::serde")]
#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct NthRangeNode {
    #[builder(custom(type = super::RangesNode, convert = Box::new))]
    #[serde(rename = "input")]
    input: Box<super::RangesNode>,
    #[serde(rename = "index")]
    index: i32,
    #[serde(rename = "sortOrder")]
    sort_order: super::RangeSortOrder,
}
impl NthRangeNode {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        input: super::RangesNode,
        index: i32,
        sort_order: super::RangeSortOrder,
    ) -> Self {
        Self::builder().input(input).index(index).sort_order(sort_order).build()
    }
    #[inline]
    pub fn input(&self) -> &super::RangesNode {
        &*self.input
    }
    #[inline]
    pub fn index(&self) -> i32 {
        self.index
    }
    #[inline]
    pub fn sort_order(&self) -> &super::RangeSortOrder {
        &self.sort_order
    }
}
