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

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

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

import com.pulumi.awsnative.mediaconnect.inputs.BridgeNetworkSourceArgs.builder
import com.pulumi.awsnative.mediaconnect.kotlin.enums.BridgeProtocolEnum
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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The source of the bridge. A network source originates at your premises.
 * @property multicastIp The network source multicast IP.
 * @property name The name of the network source.
 * @property networkName The network source's gateway network name.
 * @property port The network source port.
 * @property protocol The network source protocol.
 */
public data class BridgeNetworkSourceArgs(
    public val multicastIp: Output,
    public val name: Output,
    public val networkName: Output,
    public val port: Output,
    public val protocol: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.mediaconnect.inputs.BridgeNetworkSourceArgs =
        com.pulumi.awsnative.mediaconnect.inputs.BridgeNetworkSourceArgs.builder()
            .multicastIp(multicastIp.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .networkName(networkName.applyValue({ args0 -> args0 }))
            .port(port.applyValue({ args0 -> args0 }))
            .protocol(protocol.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [BridgeNetworkSourceArgs].
 */
@PulumiTagMarker
public class BridgeNetworkSourceArgsBuilder internal constructor() {
    private var multicastIp: Output? = null

    private var name: Output? = null

    private var networkName: Output? = null

    private var port: Output? = null

    private var protocol: Output? = null

    /**
     * @param value The network source multicast IP.
     */
    @JvmName("ydthkyknpvcmpyeq")
    public suspend fun multicastIp(`value`: Output) {
        this.multicastIp = value
    }

    /**
     * @param value The name of the network source.
     */
    @JvmName("qmvxcgabotvnqdla")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The network source's gateway network name.
     */
    @JvmName("npikllesrtuseomk")
    public suspend fun networkName(`value`: Output) {
        this.networkName = value
    }

    /**
     * @param value The network source port.
     */
    @JvmName("eqmhrxwargqwglaj")
    public suspend fun port(`value`: Output) {
        this.port = value
    }

    /**
     * @param value The network source protocol.
     */
    @JvmName("igabtipdrunlxtrp")
    public suspend fun protocol(`value`: Output) {
        this.protocol = value
    }

    /**
     * @param value The network source multicast IP.
     */
    @JvmName("vsyfoqmexqeqxsfh")
    public suspend fun multicastIp(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.multicastIp = mapped
    }

    /**
     * @param value The name of the network source.
     */
    @JvmName("ewpywpridbpbgwho")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The network source's gateway network name.
     */
    @JvmName("frecvrwvgfweimja")
    public suspend fun networkName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.networkName = mapped
    }

    /**
     * @param value The network source port.
     */
    @JvmName("gxquvkeqqtxsqdde")
    public suspend fun port(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.port = mapped
    }

    /**
     * @param value The network source protocol.
     */
    @JvmName("aehiauacwquyjyjw")
    public suspend fun protocol(`value`: BridgeProtocolEnum) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.protocol = mapped
    }

    internal fun build(): BridgeNetworkSourceArgs = BridgeNetworkSourceArgs(
        multicastIp = multicastIp ?: throw PulumiNullFieldException("multicastIp"),
        name = name ?: throw PulumiNullFieldException("name"),
        networkName = networkName ?: throw PulumiNullFieldException("networkName"),
        port = port ?: throw PulumiNullFieldException("port"),
        protocol = protocol ?: throw PulumiNullFieldException("protocol"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy