#[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 NewVideoIngestDestination {
    #[builder(default, into)]
    #[serde(rename = "title", skip_serializing_if = "Option::is_none", default)]
    title: Option<String>,
    #[builder(default, into)]
    #[serde(rename = "description", skip_serializing_if = "Option::is_none", default)]
    description: Option<String>,
    #[builder(default, map(key(type = String, into), value(type = String, into)))]
    #[serde(
        rename = "properties",
        skip_serializing_if = "std::collections::BTreeMap::is_empty",
        default
    )]
    properties: std::collections::BTreeMap<String, String>,
    #[builder(default, set(item(type = String, into)))]
    #[serde(
        rename = "labels",
        skip_serializing_if = "std::collections::BTreeSet::is_empty",
        default
    )]
    labels: std::collections::BTreeSet<String>,
    #[builder(
        default,
        custom(
            type = impl
            Into<Option<super::VideoFileIngestDetails>>,
            convert = |v|v.into().map(Box::new)
        )
    )]
    #[serde(
        rename = "videoFileDetails",
        skip_serializing_if = "Option::is_none",
        default
    )]
    video_file_details: Option<Box<super::VideoFileIngestDetails>>,
    #[builder(default, into)]
    #[serde(rename = "workspace", skip_serializing_if = "Option::is_none", default)]
    workspace: Option<conjure_object::ResourceIdentifier>,
    #[builder(
        default,
        set(item(type = super::super::super::scout::rids::api::MarkingRid))
    )]
    #[serde(
        rename = "markingRids",
        skip_serializing_if = "std::collections::BTreeSet::is_empty",
        default
    )]
    marking_rids: std::collections::BTreeSet<
        super::super::super::scout::rids::api::MarkingRid,
    >,
}
impl NewVideoIngestDestination {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    /// Title of the Video that will get created.
    /// If not provided, a name is deduced from the ingested file.
    #[inline]
    pub fn title(&self) -> Option<&str> {
        self.title.as_ref().map(|o| &**o)
    }
    /// Description that is applied to the newly created video
    #[inline]
    pub fn description(&self) -> Option<&str> {
        self.description.as_ref().map(|o| &**o)
    }
    /// Key-Value properties that are applied to the newly created video
    #[inline]
    pub fn properties(&self) -> &std::collections::BTreeMap<String, String> {
        &self.properties
    }
    /// Labels that are applied to the newly created video
    #[inline]
    pub fn labels(&self) -> &std::collections::BTreeSet<String> {
        &self.labels
    }
    /// Metadata to associate with any created video file
    #[inline]
    pub fn video_file_details(&self) -> Option<&super::VideoFileIngestDetails> {
        self.video_file_details.as_ref().map(|o| &**o)
    }
    /// The workspace in which to create the video. If not provided, the video will be created in the default workspace for
    /// the user's organization, if the default workspace for the organization is configured.
    #[inline]
    pub fn workspace(&self) -> Option<&conjure_object::ResourceIdentifier> {
        self.workspace.as_ref().map(|o| &*o)
    }
    /// The markings to apply to the created video.
    /// If not provided, the video will be visible to all users in the same workspace.
    #[inline]
    pub fn marking_rids(
        &self,
    ) -> &std::collections::BTreeSet<super::super::super::scout::rids::api::MarkingRid> {
        &self.marking_rids
    }
}
