All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.videoanalyzer.kotlin.inputs.VideoSinkArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.videoanalyzer.kotlin.inputs

import com.pulumi.azurenative.videoanalyzer.inputs.VideoSinkArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Video sink in a live topology allows for video and audio to be captured, optionally archived, and published via a video resource. If archiving is enabled, this results in a video of type 'archive'. If used in a batch topology, this allows for video and audio to be stored as a file, and published via a video resource of type 'file'
 * @property inputs An array of upstream node references within the topology to be used as inputs for this node.
 * @property name Node name. Must be unique within the topology.
 * @property type The discriminator for derived types.
 * Expected value is '#Microsoft.VideoAnalyzer.VideoSink'.
 * @property videoCreationProperties Optional video properties to be used in case a new video resource needs to be created on the service.
 * @property videoName Name of a new or existing video resource used to capture and publish content. Note: if downstream of RTSP source, and if disableArchive is set to true, then no content is archived.
 * @property videoPublishingOptions Options to change how the video sink publishes content via the video resource. This property is only allowed for topologies where "kind" is set to "live".
 */
public data class VideoSinkArgs(
    public val inputs: Output>,
    public val name: Output,
    public val type: Output,
    public val videoCreationProperties: Output? = null,
    public val videoName: Output,
    public val videoPublishingOptions: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.videoanalyzer.inputs.VideoSinkArgs =
        com.pulumi.azurenative.videoanalyzer.inputs.VideoSinkArgs.builder()
            .inputs(inputs.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .name(name.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 }))
            .videoCreationProperties(
                videoCreationProperties?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .videoName(videoName.applyValue({ args0 -> args0 }))
            .videoPublishingOptions(
                videoPublishingOptions?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [VideoSinkArgs].
 */
@PulumiTagMarker
public class VideoSinkArgsBuilder internal constructor() {
    private var inputs: Output>? = null

    private var name: Output? = null

    private var type: Output? = null

    private var videoCreationProperties: Output? = null

    private var videoName: Output? = null

    private var videoPublishingOptions: Output? = null

    /**
     * @param value An array of upstream node references within the topology to be used as inputs for this node.
     */
    @JvmName("qtxxkhxkhcqholpw")
    public suspend fun inputs(`value`: Output>) {
        this.inputs = value
    }

    @JvmName("fsfimcrbsalmqeke")
    public suspend fun inputs(vararg values: Output) {
        this.inputs = Output.all(values.asList())
    }

    /**
     * @param values An array of upstream node references within the topology to be used as inputs for this node.
     */
    @JvmName("cenlnivvnpbnfgli")
    public suspend fun inputs(values: List>) {
        this.inputs = Output.all(values)
    }

    /**
     * @param value Node name. Must be unique within the topology.
     */
    @JvmName("nflvkottcyapqylt")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The discriminator for derived types.
     * Expected value is '#Microsoft.VideoAnalyzer.VideoSink'.
     */
    @JvmName("ifhmepknbnsavmln")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value Optional video properties to be used in case a new video resource needs to be created on the service.
     */
    @JvmName("gmefdstuiyequdmi")
    public suspend fun videoCreationProperties(`value`: Output) {
        this.videoCreationProperties = value
    }

    /**
     * @param value Name of a new or existing video resource used to capture and publish content. Note: if downstream of RTSP source, and if disableArchive is set to true, then no content is archived.
     */
    @JvmName("vwixjuqoyitybqpp")
    public suspend fun videoName(`value`: Output) {
        this.videoName = value
    }

    /**
     * @param value Options to change how the video sink publishes content via the video resource. This property is only allowed for topologies where "kind" is set to "live".
     */
    @JvmName("xqyktbjirfmpxitk")
    public suspend fun videoPublishingOptions(`value`: Output) {
        this.videoPublishingOptions = value
    }

    /**
     * @param value An array of upstream node references within the topology to be used as inputs for this node.
     */
    @JvmName("frluwbjqcsogqisq")
    public suspend fun inputs(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.inputs = mapped
    }

    /**
     * @param argument An array of upstream node references within the topology to be used as inputs for this node.
     */
    @JvmName("fapmclhavbyadglh")
    public suspend fun inputs(argument: List Unit>) {
        val toBeMapped = argument.toList().map { NodeInputArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.inputs = mapped
    }

    /**
     * @param argument An array of upstream node references within the topology to be used as inputs for this node.
     */
    @JvmName("lkjpjqvswlbikboc")
    public suspend fun inputs(vararg argument: suspend NodeInputArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { NodeInputArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.inputs = mapped
    }

    /**
     * @param argument An array of upstream node references within the topology to be used as inputs for this node.
     */
    @JvmName("psrgtgjqyxipghdx")
    public suspend fun inputs(argument: suspend NodeInputArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(NodeInputArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.inputs = mapped
    }

    /**
     * @param values An array of upstream node references within the topology to be used as inputs for this node.
     */
    @JvmName("slrqmlsasjbuscdf")
    public suspend fun inputs(vararg values: NodeInputArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.inputs = mapped
    }

    /**
     * @param value Node name. Must be unique within the topology.
     */
    @JvmName("dihjjpqgtlgdbhti")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The discriminator for derived types.
     * Expected value is '#Microsoft.VideoAnalyzer.VideoSink'.
     */
    @JvmName("icrxitjlxbqtdyvv")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value Optional video properties to be used in case a new video resource needs to be created on the service.
     */
    @JvmName("lpbilmkqqnhqfjvr")
    public suspend fun videoCreationProperties(`value`: VideoCreationPropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.videoCreationProperties = mapped
    }

    /**
     * @param argument Optional video properties to be used in case a new video resource needs to be created on the service.
     */
    @JvmName("ojkkovfrexdfnmhu")
    public suspend fun videoCreationProperties(argument: suspend VideoCreationPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = VideoCreationPropertiesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.videoCreationProperties = mapped
    }

    /**
     * @param value Name of a new or existing video resource used to capture and publish content. Note: if downstream of RTSP source, and if disableArchive is set to true, then no content is archived.
     */
    @JvmName("xtrxioffatyqaqil")
    public suspend fun videoName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.videoName = mapped
    }

    /**
     * @param value Options to change how the video sink publishes content via the video resource. This property is only allowed for topologies where "kind" is set to "live".
     */
    @JvmName("ckwmrhcjmkvdejmr")
    public suspend fun videoPublishingOptions(`value`: VideoPublishingOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.videoPublishingOptions = mapped
    }

    /**
     * @param argument Options to change how the video sink publishes content via the video resource. This property is only allowed for topologies where "kind" is set to "live".
     */
    @JvmName("kiadydisqeajesou")
    public suspend fun videoPublishingOptions(argument: suspend VideoPublishingOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = VideoPublishingOptionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.videoPublishingOptions = mapped
    }

    internal fun build(): VideoSinkArgs = VideoSinkArgs(
        inputs = inputs ?: throw PulumiNullFieldException("inputs"),
        name = name ?: throw PulumiNullFieldException("name"),
        type = type ?: throw PulumiNullFieldException("type"),
        videoCreationProperties = videoCreationProperties,
        videoName = videoName ?: throw PulumiNullFieldException("videoName"),
        videoPublishingOptions = videoPublishingOptions,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy