
com.pulumi.awsnative.mediaconnect.kotlin.inputs.FlowInputConfigurationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-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.awsnative.mediaconnect.kotlin.inputs
import com.pulumi.awsnative.mediaconnect.inputs.FlowInputConfigurationArgs.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.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* The transport parameters associated with an incoming media stream.
* @property inputPort The port that the flow listens on for an incoming media stream.
* @property interface The VPC interface where the media stream comes in from.
*/
public data class FlowInputConfigurationArgs(
public val inputPort: Output,
public val `interface`: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.mediaconnect.inputs.FlowInputConfigurationArgs =
com.pulumi.awsnative.mediaconnect.inputs.FlowInputConfigurationArgs.builder()
.inputPort(inputPort.applyValue({ args0 -> args0 }))
.interface_(`interface`.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [FlowInputConfigurationArgs].
*/
@PulumiTagMarker
public class FlowInputConfigurationArgsBuilder internal constructor() {
private var inputPort: Output? = null
private var `interface`: Output? = null
/**
* @param value The port that the flow listens on for an incoming media stream.
*/
@JvmName("ynhqqnitkcyajtim")
public suspend fun inputPort(`value`: Output) {
this.inputPort = value
}
/**
* @param value The VPC interface where the media stream comes in from.
*/
@JvmName("orcmytvkxoiqdhsc")
public suspend fun `interface`(`value`: Output) {
this.`interface` = value
}
/**
* @param value The port that the flow listens on for an incoming media stream.
*/
@JvmName("iyqilfhdfpxtucmr")
public suspend fun inputPort(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.inputPort = mapped
}
/**
* @param value The VPC interface where the media stream comes in from.
*/
@JvmName("xmbtarbgjfccqenf")
public suspend fun `interface`(`value`: FlowInterfaceArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.`interface` = mapped
}
/**
* @param argument The VPC interface where the media stream comes in from.
*/
@JvmName("pcodraefgvlcfpmt")
public suspend fun `interface`(argument: suspend FlowInterfaceArgsBuilder.() -> Unit) {
val toBeMapped = FlowInterfaceArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.`interface` = mapped
}
internal fun build(): FlowInputConfigurationArgs = FlowInputConfigurationArgs(
inputPort = inputPort ?: throw PulumiNullFieldException("inputPort"),
`interface` = `interface` ?: throw PulumiNullFieldException("interface"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy