/// A spherical sensor volume.
#[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 Geo3dSensorShapeSpherical {
    #[builder(custom(type = super::VariableStaticOrChannel, convert = Box::new))]
    #[serde(rename = "radius")]
    radius: Box<super::VariableStaticOrChannel>,
}
impl Geo3dSensorShapeSpherical {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(radius: super::VariableStaticOrChannel) -> Self {
        Self::builder().radius(radius).build()
    }
    /// Radius of the sphere, in meters.
    #[inline]
    pub fn radius(&self) -> &super::VariableStaticOrChannel {
        &*self.radius
    }
}
