/// Subsets the tag dimensions of the input numeric series to the given tag keys. Preserves the input series'
/// cardinality: points that share the selected keys but differ on dropped keys remain distinct.
#[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 NumericSelectTagsSeries {
    #[builder(custom(type = super::NumericSeries, convert = Box::new))]
    #[serde(rename = "input")]
    input: Box<super::NumericSeries>,
    #[builder(default, set(item(type = super::StringConstant)))]
    #[serde(
        rename = "tagKeys",
        skip_serializing_if = "std::collections::BTreeSet::is_empty",
        default
    )]
    tag_keys: std::collections::BTreeSet<super::StringConstant>,
}
impl NumericSelectTagsSeries {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(input: super::NumericSeries) -> Self {
        Self::builder().input(input).build()
    }
    #[inline]
    pub fn input(&self) -> &super::NumericSeries {
        &*self.input
    }
    #[inline]
    pub fn tag_keys(&self) -> &std::collections::BTreeSet<super::StringConstant> {
        &self.tag_keys
    }
}
