#[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 DeprecatedDefinitionAndSchemaVersion {
    #[builder(into)]
    #[serde(rename = "schemaVersion")]
    schema_version: String,
    #[serde(rename = "definition")]
    definition: super::JsonString,
}
impl DeprecatedDefinitionAndSchemaVersion {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        schema_version: impl Into<String>,
        definition: super::JsonString,
    ) -> Self {
        Self::builder().schema_version(schema_version).definition(definition).build()
    }
    #[inline]
    pub fn schema_version(&self) -> &str {
        &*self.schema_version
    }
    #[inline]
    pub fn definition(&self) -> &super::JsonString {
        &self.definition
    }
}
