/// Injects one ephemeral tag (key and value) onto the underlying dataset.
#[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 TaggedDataset {
    #[builder(custom(type = super::Dataset, convert = Box::new))]
    #[serde(rename = "input")]
    input: Box<super::Dataset>,
    #[builder(custom(type = super::StringConstant, convert = Box::new))]
    #[serde(rename = "key")]
    key: Box<super::StringConstant>,
    #[builder(custom(type = super::StringConstant, convert = Box::new))]
    #[serde(rename = "value")]
    value: Box<super::StringConstant>,
}
impl TaggedDataset {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        input: super::Dataset,
        key: super::StringConstant,
        value: super::StringConstant,
    ) -> Self {
        Self::builder().input(input).key(key).value(value).build()
    }
    /// The underlying dataset to tag.
    #[inline]
    pub fn input(&self) -> &super::Dataset {
        &*self.input
    }
    /// Tag key to inject onto each series in the dataset.
    #[inline]
    pub fn key(&self) -> &super::StringConstant {
        &*self.key
    }
    /// Tag value to assign to the injected key.
    #[inline]
    pub fn value(&self) -> &super::StringConstant {
        &*self.value
    }
}
