/// Options for ingesting point cloud data into Dagger via Scout.
#[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 PointCloudOpts {
    #[builder(custom(type = super::IngestSource, convert = Box::new))]
    #[serde(rename = "source")]
    source: Box<super::IngestSource>,
    #[builder(custom(type = super::PointCloudIngestTarget, convert = Box::new))]
    #[serde(rename = "target")]
    target: Box<super::PointCloudIngestTarget>,
    #[builder(
        default,
        custom(
            type = impl
            Into<Option<super::super::super::scout::spatial::api::PointCloudMetadata>>,
            convert = |v|v.into().map(Box::new)
        )
    )]
    #[serde(rename = "sensorMetadata", skip_serializing_if = "Option::is_none", default)]
    sensor_metadata: Option<
        Box<super::super::super::scout::spatial::api::PointCloudMetadata>,
    >,
    #[builder(into)]
    #[serde(rename = "channel")]
    channel: String,
    #[builder(default, map(key(type = String, into), value(type = String, into)))]
    #[serde(
        rename = "tags",
        skip_serializing_if = "std::collections::BTreeMap::is_empty",
        default
    )]
    tags: std::collections::BTreeMap<String, String>,
}
impl PointCloudOpts {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        source: super::IngestSource,
        target: super::PointCloudIngestTarget,
        channel: impl Into<String>,
    ) -> Self {
        Self::builder().source(source).target(target).channel(channel).build()
    }
    #[inline]
    pub fn source(&self) -> &super::IngestSource {
        &*self.source
    }
    #[inline]
    pub fn target(&self) -> &super::PointCloudIngestTarget {
        &*self.target
    }
    /// Sensor metadata to associate with the point cloud.
    #[inline]
    pub fn sensor_metadata(
        &self,
    ) -> Option<&super::super::super::scout::spatial::api::PointCloudMetadata> {
        self.sensor_metadata.as_ref().map(|o| &**o)
    }
    /// Channel name for workbook integration.
    #[inline]
    pub fn channel(&self) -> &str {
        &*self.channel
    }
    /// Tags to apply to the point cloud series.
    #[inline]
    pub fn tags(&self) -> &std::collections::BTreeMap<String, String> {
        &self.tags
    }
}
