/// This is used to refer to modules in requests by rid.
#[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 RequestModuleRidRef {
    #[serde(rename = "rid")]
    rid: conjure_object::ResourceIdentifier,
    #[builder(custom(type = super::VersionStrategy, convert = Box::new))]
    #[serde(rename = "versionStrategy")]
    version_strategy: Box<super::VersionStrategy>,
}
impl RequestModuleRidRef {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        rid: conjure_object::ResourceIdentifier,
        version_strategy: super::VersionStrategy,
    ) -> Self {
        Self::builder().rid(rid).version_strategy(version_strategy).build()
    }
    #[inline]
    pub fn rid(&self) -> &conjure_object::ResourceIdentifier {
        &self.rid
    }
    #[inline]
    pub fn version_strategy(&self) -> &super::VersionStrategy {
        &*self.version_strategy
    }
}
