![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.media.kotlin.inputs.TransformOutputArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.media.kotlin.inputs
import com.pulumi.azurenative.media.inputs.TransformOutputArgs.builder
import com.pulumi.azurenative.media.kotlin.enums.OnErrorType
import com.pulumi.azurenative.media.kotlin.enums.Priority
import com.pulumi.core.Either
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 kotlin.Any
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Describes the properties of a TransformOutput, which are the rules to be applied while generating the desired output.
* @property onError 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'. The default is 'StopProcessingJob'.
* @property preset Preset that describes the operations that will be used to modify, transcode, or extract insights from the source file to generate the output.
* @property relativePriority Sets the relative priority of the TransformOutputs within a Transform. This sets the priority that the service uses for processing TransformOutputs. The default priority is Normal.
*/
public data class TransformOutputArgs(
public val onError: Output>? = null,
public val preset: Output,
public val relativePriority: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.media.inputs.TransformOutputArgs =
com.pulumi.azurenative.media.inputs.TransformOutputArgs.builder()
.onError(
onError?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.preset(preset.applyValue({ args0 -> args0 }))
.relativePriority(
relativePriority?.applyValue({ args0 ->
args0.transform(
{ args0 -> args0 },
{ args0 -> args0.let({ args0 -> args0.toJava() }) },
)
}),
).build()
}
/**
* Builder for [TransformOutputArgs].
*/
@PulumiTagMarker
public class TransformOutputArgsBuilder internal constructor() {
private var onError: Output>? = null
private var preset: Output? = null
private var relativePriority: Output>? = null
/**
* @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'. The default is 'StopProcessingJob'.
*/
@JvmName("mqbtcyvgjrvvnmad")
public suspend fun onError(`value`: Output>) {
this.onError = value
}
/**
* @param value Preset that describes the operations that will be used to modify, transcode, or extract insights from the source file to generate the output.
*/
@JvmName("oaxesxpoovxhwxme")
public suspend fun preset(`value`: Output) {
this.preset = value
}
/**
* @param value Sets the relative priority of the TransformOutputs within a Transform. This sets the priority that the service uses for processing TransformOutputs. The default priority is Normal.
*/
@JvmName("pvejlegvujourygx")
public suspend fun relativePriority(`value`: Output>) {
this.relativePriority = 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'. The default is 'StopProcessingJob'.
*/
@JvmName("ypwjijqtsgvatobu")
public suspend fun onError(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.onError = 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'. The default is 'StopProcessingJob'.
*/
@JvmName("fevrpwkbtgfyeedr")
public fun onError(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.onError = 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'. The default is 'StopProcessingJob'.
*/
@JvmName("lddshkhigqsixvom")
public fun onError(`value`: OnErrorType) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.onError = mapped
}
/**
* @param value Preset that describes the operations that will be used to modify, transcode, or extract insights from the source file to generate the output.
*/
@JvmName("stpkufvwiwcthdfg")
public suspend fun preset(`value`: Any) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.preset = mapped
}
/**
* @param value Sets the relative priority of the TransformOutputs within a Transform. This sets the priority that the service uses for processing TransformOutputs. The default priority is Normal.
*/
@JvmName("bwxdwtepmvonpepl")
public suspend fun relativePriority(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.relativePriority = mapped
}
/**
* @param value Sets the relative priority of the TransformOutputs within a Transform. This sets the priority that the service uses for processing TransformOutputs. The default priority is Normal.
*/
@JvmName("veatdfxrdxhtcyyr")
public fun relativePriority(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.relativePriority = mapped
}
/**
* @param value Sets the relative priority of the TransformOutputs within a Transform. This sets the priority that the service uses for processing TransformOutputs. The default priority is Normal.
*/
@JvmName("oeyrkpqfuxtjufoe")
public fun relativePriority(`value`: Priority) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.relativePriority = mapped
}
internal fun build(): TransformOutputArgs = TransformOutputArgs(
onError = onError,
preset = preset ?: throw PulumiNullFieldException("preset"),
relativePriority = relativePriority,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy