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

com.pulumi.azure.media.kotlin.inputs.TransformOutputArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.media.kotlin.inputs

import com.pulumi.azure.media.inputs.TransformOutputArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Deprecated
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property audioAnalyzerPreset An `audio_analyzer_preset` block as defined above.
 * @property builtinPreset A `builtin_preset` block as defined above.
 * @property customPreset A `custom_preset` block as defined above.
 * @property faceDetectorPreset A `face_detector_preset` block as defined above.
 * @property onErrorAction A Transform can define more than one outputs. This property defines what the service should do when one output fails - either continue to produce other outputs, or, stop the other outputs. The overall Job state will not reflect failures of outputs that are specified with `ContinueJob`. Possible values are `StopProcessingJob` or `ContinueJob`. Defaults to `StopProcessingJob`.
 * @property relativePriority Sets the relative priority of the TransformOutputs within a Transform. This sets the priority that the service uses for processing Transform Outputs. Possible values are `High`, `Normal` or `Low`. Defaults to `Normal`.
 * @property videoAnalyzerPreset A `video_analyzer_preset` block as defined below.
 * > **NOTE:** Each output can only have one type of preset: `builtin_preset`, `audio_analyzer_preset`, `custom_preset`, `face_detector_preset` or `video_analyzer_preset`. If you need to apply different presets you must create one output for each one.
 */
public data class TransformOutputArgs(
    public val audioAnalyzerPreset: Output? = null,
    public val builtinPreset: Output? = null,
    public val customPreset: Output? = null,
    @Deprecated(
        message = """
  `face_detector_preset` will be removed in version 4.0 of the AzureRM Provider as it has been
      retired.
  """,
    )
    public val faceDetectorPreset: Output? = null,
    public val onErrorAction: Output? = null,
    public val relativePriority: Output? = null,
    @Deprecated(
        message = """
  `video_analyzer_preset` will be removed in version 4.0 of the AzureRM Provider as it has been
      retired.
  """,
    )
    public val videoAnalyzerPreset: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.media.inputs.TransformOutputArgs =
        com.pulumi.azure.media.inputs.TransformOutputArgs.builder()
            .audioAnalyzerPreset(
                audioAnalyzerPreset?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .builtinPreset(builtinPreset?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .customPreset(customPreset?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .faceDetectorPreset(
                faceDetectorPreset?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .onErrorAction(onErrorAction?.applyValue({ args0 -> args0 }))
            .relativePriority(relativePriority?.applyValue({ args0 -> args0 }))
            .videoAnalyzerPreset(
                videoAnalyzerPreset?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [TransformOutputArgs].
 */
@PulumiTagMarker
public class TransformOutputArgsBuilder internal constructor() {
    private var audioAnalyzerPreset: Output? = null

    private var builtinPreset: Output? = null

    private var customPreset: Output? = null

    private var faceDetectorPreset: Output? = null

    private var onErrorAction: Output? = null

    private var relativePriority: Output? = null

    private var videoAnalyzerPreset: Output? = null

    /**
     * @param value An `audio_analyzer_preset` block as defined above.
     */
    @JvmName("nywdbgmnnigjqpxj")
    public suspend fun audioAnalyzerPreset(`value`: Output) {
        this.audioAnalyzerPreset = value
    }

    /**
     * @param value A `builtin_preset` block as defined above.
     */
    @JvmName("avrwmlaifyuxbbiq")
    public suspend fun builtinPreset(`value`: Output) {
        this.builtinPreset = value
    }

    /**
     * @param value A `custom_preset` block as defined above.
     */
    @JvmName("esrtmsretgoljfxq")
    public suspend fun customPreset(`value`: Output) {
        this.customPreset = value
    }

    /**
     * @param value A `face_detector_preset` block as defined above.
     */
    @Deprecated(
        message = """
  `face_detector_preset` will be removed in version 4.0 of the AzureRM Provider as it has been
      retired.
  """,
    )
    @JvmName("yetyrennqymwirvq")
    public suspend fun faceDetectorPreset(`value`: Output) {
        this.faceDetectorPreset = value
    }

    /**
     * @param value A Transform can define more than one outputs. This property defines what the service should do when one output fails - either continue to produce other outputs, or, stop the other outputs. The overall Job state will not reflect failures of outputs that are specified with `ContinueJob`. Possible values are `StopProcessingJob` or `ContinueJob`. Defaults to `StopProcessingJob`.
     */
    @JvmName("dxyoqriksnbwytbi")
    public suspend fun onErrorAction(`value`: Output) {
        this.onErrorAction = value
    }

    /**
     * @param value Sets the relative priority of the TransformOutputs within a Transform. This sets the priority that the service uses for processing Transform Outputs. Possible values are `High`, `Normal` or `Low`. Defaults to `Normal`.
     */
    @JvmName("tguskixesmgpvotd")
    public suspend fun relativePriority(`value`: Output) {
        this.relativePriority = value
    }

    /**
     * @param value A `video_analyzer_preset` block as defined below.
     * > **NOTE:** Each output can only have one type of preset: `builtin_preset`, `audio_analyzer_preset`, `custom_preset`, `face_detector_preset` or `video_analyzer_preset`. If you need to apply different presets you must create one output for each one.
     */
    @Deprecated(
        message = """
  `video_analyzer_preset` will be removed in version 4.0 of the AzureRM Provider as it has been
      retired.
  """,
    )
    @JvmName("agfajgqsprvdeprx")
    public suspend fun videoAnalyzerPreset(`value`: Output) {
        this.videoAnalyzerPreset = value
    }

    /**
     * @param value An `audio_analyzer_preset` block as defined above.
     */
    @JvmName("hqahuehbwalfpqdv")
    public suspend fun audioAnalyzerPreset(`value`: TransformOutputAudioAnalyzerPresetArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.audioAnalyzerPreset = mapped
    }

    /**
     * @param argument An `audio_analyzer_preset` block as defined above.
     */
    @JvmName("vhhyuqfudgmppere")
    public suspend
    fun audioAnalyzerPreset(argument: suspend TransformOutputAudioAnalyzerPresetArgsBuilder.() -> Unit) {
        val toBeMapped = TransformOutputAudioAnalyzerPresetArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.audioAnalyzerPreset = mapped
    }

    /**
     * @param value A `builtin_preset` block as defined above.
     */
    @JvmName("mqshairnqigyqhvr")
    public suspend fun builtinPreset(`value`: TransformOutputBuiltinPresetArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.builtinPreset = mapped
    }

    /**
     * @param argument A `builtin_preset` block as defined above.
     */
    @JvmName("jeqpvlypuqltqfak")
    public suspend
    fun builtinPreset(argument: suspend TransformOutputBuiltinPresetArgsBuilder.() -> Unit) {
        val toBeMapped = TransformOutputBuiltinPresetArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.builtinPreset = mapped
    }

    /**
     * @param value A `custom_preset` block as defined above.
     */
    @JvmName("jtklydxdxuwdfpgl")
    public suspend fun customPreset(`value`: TransformOutputCustomPresetArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customPreset = mapped
    }

    /**
     * @param argument A `custom_preset` block as defined above.
     */
    @JvmName("iducoxqktbfexjjk")
    public suspend
    fun customPreset(argument: suspend TransformOutputCustomPresetArgsBuilder.() -> Unit) {
        val toBeMapped = TransformOutputCustomPresetArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.customPreset = mapped
    }

    /**
     * @param value A `face_detector_preset` block as defined above.
     */
    @Deprecated(
        message = """
  `face_detector_preset` will be removed in version 4.0 of the AzureRM Provider as it has been
      retired.
  """,
    )
    @JvmName("jklttrucvcajpprj")
    public suspend fun faceDetectorPreset(`value`: TransformOutputFaceDetectorPresetArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.faceDetectorPreset = mapped
    }

    /**
     * @param argument A `face_detector_preset` block as defined above.
     */
    @Deprecated(
        message = """
  `face_detector_preset` will be removed in version 4.0 of the AzureRM Provider as it has been
      retired.
  """,
    )
    @JvmName("qogofxvtansdoxqw")
    public suspend
    fun faceDetectorPreset(argument: suspend TransformOutputFaceDetectorPresetArgsBuilder.() -> Unit) {
        val toBeMapped = TransformOutputFaceDetectorPresetArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.faceDetectorPreset = mapped
    }

    /**
     * @param value A Transform can define more than one outputs. This property defines what the service should do when one output fails - either continue to produce other outputs, or, stop the other outputs. The overall Job state will not reflect failures of outputs that are specified with `ContinueJob`. Possible values are `StopProcessingJob` or `ContinueJob`. Defaults to `StopProcessingJob`.
     */
    @JvmName("trhvyjnokmsmxkko")
    public suspend fun onErrorAction(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.onErrorAction = mapped
    }

    /**
     * @param value Sets the relative priority of the TransformOutputs within a Transform. This sets the priority that the service uses for processing Transform Outputs. Possible values are `High`, `Normal` or `Low`. Defaults to `Normal`.
     */
    @JvmName("jjlqesftgcvaqsih")
    public suspend fun relativePriority(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.relativePriority = mapped
    }

    /**
     * @param value A `video_analyzer_preset` block as defined below.
     * > **NOTE:** Each output can only have one type of preset: `builtin_preset`, `audio_analyzer_preset`, `custom_preset`, `face_detector_preset` or `video_analyzer_preset`. If you need to apply different presets you must create one output for each one.
     */
    @Deprecated(
        message = """
  `video_analyzer_preset` will be removed in version 4.0 of the AzureRM Provider as it has been
      retired.
  """,
    )
    @JvmName("vnxifevqgjemjfkv")
    public suspend fun videoAnalyzerPreset(`value`: TransformOutputVideoAnalyzerPresetArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.videoAnalyzerPreset = mapped
    }

    /**
     * @param argument A `video_analyzer_preset` block as defined below.
     * > **NOTE:** Each output can only have one type of preset: `builtin_preset`, `audio_analyzer_preset`, `custom_preset`, `face_detector_preset` or `video_analyzer_preset`. If you need to apply different presets you must create one output for each one.
     */
    @Deprecated(
        message = """
  `video_analyzer_preset` will be removed in version 4.0 of the AzureRM Provider as it has been
      retired.
  """,
    )
    @JvmName("rpsyllubwekndvhy")
    public suspend
    fun videoAnalyzerPreset(argument: suspend TransformOutputVideoAnalyzerPresetArgsBuilder.() -> Unit) {
        val toBeMapped = TransformOutputVideoAnalyzerPresetArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.videoAnalyzerPreset = mapped
    }

    internal fun build(): TransformOutputArgs = TransformOutputArgs(
        audioAnalyzerPreset = audioAnalyzerPreset,
        builtinPreset = builtinPreset,
        customPreset = customPreset,
        faceDetectorPreset = faceDetectorPreset,
        onErrorAction = onErrorAction,
        relativePriority = relativePriority,
        videoAnalyzerPreset = videoAnalyzerPreset,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy