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

com.pulumi.awsnative.mediaconnect.kotlin.inputs.FlowOutputDestinationConfigurationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.mediaconnect.kotlin.inputs

import com.pulumi.awsnative.mediaconnect.inputs.FlowOutputDestinationConfigurationArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * The definition of a media stream that is associated with the output.
 * @property destinationIp The IP address where contents of the media stream will be sent.
 * @property destinationPort The port to use when the content of the media stream is distributed to the output.
 * @property interface The VPC interface that is used for the media stream associated with the output.
 */
public data class FlowOutputDestinationConfigurationArgs(
    public val destinationIp: Output,
    public val destinationPort: Output,
    public val `interface`: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.mediaconnect.inputs.FlowOutputDestinationConfigurationArgs =
        com.pulumi.awsnative.mediaconnect.inputs.FlowOutputDestinationConfigurationArgs.builder()
            .destinationIp(destinationIp.applyValue({ args0 -> args0 }))
            .destinationPort(destinationPort.applyValue({ args0 -> args0 }))
            .interface_(`interface`.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [FlowOutputDestinationConfigurationArgs].
 */
@PulumiTagMarker
public class FlowOutputDestinationConfigurationArgsBuilder internal constructor() {
    private var destinationIp: Output? = null

    private var destinationPort: Output? = null

    private var `interface`: Output? = null

    /**
     * @param value The IP address where contents of the media stream will be sent.
     */
    @JvmName("ieuyauscilsnbneq")
    public suspend fun destinationIp(`value`: Output) {
        this.destinationIp = value
    }

    /**
     * @param value The port to use when the content of the media stream is distributed to the output.
     */
    @JvmName("okhogiaplwruqykf")
    public suspend fun destinationPort(`value`: Output) {
        this.destinationPort = value
    }

    /**
     * @param value The VPC interface that is used for the media stream associated with the output.
     */
    @JvmName("gsmjheqcrrmprbhv")
    public suspend fun `interface`(`value`: Output) {
        this.`interface` = value
    }

    /**
     * @param value The IP address where contents of the media stream will be sent.
     */
    @JvmName("vateieuoqlqnytix")
    public suspend fun destinationIp(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.destinationIp = mapped
    }

    /**
     * @param value The port to use when the content of the media stream is distributed to the output.
     */
    @JvmName("lxfhuguogwlvenlx")
    public suspend fun destinationPort(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.destinationPort = mapped
    }

    /**
     * @param value The VPC interface that is used for the media stream associated with the output.
     */
    @JvmName("odjvkuflperdhkxj")
    public suspend fun `interface`(`value`: FlowOutputInterfaceArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`interface` = mapped
    }

    /**
     * @param argument The VPC interface that is used for the media stream associated with the output.
     */
    @JvmName("hkmbgjafgjtuwdii")
    public suspend fun `interface`(argument: suspend FlowOutputInterfaceArgsBuilder.() -> Unit) {
        val toBeMapped = FlowOutputInterfaceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.`interface` = mapped
    }

    internal fun build(): FlowOutputDestinationConfigurationArgs =
        FlowOutputDestinationConfigurationArgs(
            destinationIp = destinationIp ?: throw PulumiNullFieldException("destinationIp"),
            destinationPort = destinationPort ?: throw PulumiNullFieldException("destinationPort"),
            `interface` = `interface` ?: throw PulumiNullFieldException("interface"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy