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