/// The provided module API name is invalid.
/// Module names must begin with a letter and can only contain letters, numbers, and underscores.
#[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 InvalidModuleApiName {
    #[builder(into)]
    #[serde(rename = "moduleApiName")]
    module_api_name: String,
}
impl InvalidModuleApiName {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(module_api_name: impl Into<String>) -> Self {
        Self::builder().module_api_name(module_api_name).build()
    }
    #[inline]
    pub fn module_api_name(&self) -> &str {
        &*self.module_api_name
    }
}
impl conjure_error::ErrorType for InvalidModuleApiName {
    #[inline]
    fn code() -> conjure_error::ErrorCode {
        conjure_error::ErrorCode::InvalidArgument
    }
    #[inline]
    fn name() -> &'static str {
        "Module:InvalidModuleApiName"
    }
    #[inline]
    fn safe_args() -> &'static [&'static str] {
        &[]
    }
}
