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

com.pulumi.awsnative.mediaconnect.kotlin.inputs.BridgeSourceArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

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

/**
 * The bridge's source.
 * @property flowSource The source of the bridge. A flow source originates in MediaConnect as an existing cloud flow.
 * @property networkSource The source of the bridge. A network source originates at your premises.
 */
public data class BridgeSourceArgs(
    public val flowSource: Output? = null,
    public val networkSource: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.mediaconnect.inputs.BridgeSourceArgs =
        com.pulumi.awsnative.mediaconnect.inputs.BridgeSourceArgs.builder()
            .flowSource(flowSource?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .networkSource(networkSource?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [BridgeSourceArgs].
 */
@PulumiTagMarker
public class BridgeSourceArgsBuilder internal constructor() {
    private var flowSource: Output? = null

    private var networkSource: Output? = null

    /**
     * @param value The source of the bridge. A flow source originates in MediaConnect as an existing cloud flow.
     */
    @JvmName("lukyjmtrgqukfbcg")
    public suspend fun flowSource(`value`: Output) {
        this.flowSource = value
    }

    /**
     * @param value The source of the bridge. A network source originates at your premises.
     */
    @JvmName("dmqswhsxpjuwvcni")
    public suspend fun networkSource(`value`: Output) {
        this.networkSource = value
    }

    /**
     * @param value The source of the bridge. A flow source originates in MediaConnect as an existing cloud flow.
     */
    @JvmName("iywpaevxdebqawdl")
    public suspend fun flowSource(`value`: BridgeFlowSourceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.flowSource = mapped
    }

    /**
     * @param argument The source of the bridge. A flow source originates in MediaConnect as an existing cloud flow.
     */
    @JvmName("jtdfiyboiygjfvou")
    public suspend fun flowSource(argument: suspend BridgeFlowSourceArgsBuilder.() -> Unit) {
        val toBeMapped = BridgeFlowSourceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.flowSource = mapped
    }

    /**
     * @param value The source of the bridge. A network source originates at your premises.
     */
    @JvmName("ajyinmrwnpuknjei")
    public suspend fun networkSource(`value`: BridgeNetworkSourceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.networkSource = mapped
    }

    /**
     * @param argument The source of the bridge. A network source originates at your premises.
     */
    @JvmName("ydweufuxvugltyjk")
    public suspend fun networkSource(argument: suspend BridgeNetworkSourceArgsBuilder.() -> Unit) {
        val toBeMapped = BridgeNetworkSourceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.networkSource = mapped
    }

    internal fun build(): BridgeSourceArgs = BridgeSourceArgs(
        flowSource = flowSource,
        networkSource = networkSource,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy