#[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 ChannelVariableComputeExpressionInput {
    #[builder(
        custom(
            type = super::ChannelVariableComputeExpressionInputValue,
            convert = Box::new
        )
    )]
    #[serde(rename = "value")]
    value: Box<super::ChannelVariableComputeExpressionInputValue>,
    #[serde(rename = "dataType")]
    data_type: super::ChannelVariableComputeExpressionInputDataType,
}
impl ChannelVariableComputeExpressionInput {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        value: super::ChannelVariableComputeExpressionInputValue,
        data_type: super::ChannelVariableComputeExpressionInputDataType,
    ) -> Self {
        Self::builder().value(value).data_type(data_type).build()
    }
    #[inline]
    pub fn value(&self) -> &super::ChannelVariableComputeExpressionInputValue {
        &*self.value
    }
    #[inline]
    pub fn data_type(&self) -> &super::ChannelVariableComputeExpressionInputDataType {
        &self.data_type
    }
}
