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

com.pulumi.aws.globalaccelerator.kotlin.inputs.CustomRoutingEndpointGroupDestinationConfigurationArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.globalaccelerator.kotlin.inputs

import com.pulumi.aws.globalaccelerator.inputs.CustomRoutingEndpointGroupDestinationConfigurationArgs.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 kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property fromPort The first port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing accelerator.
 * @property protocols The protocol for the endpoint group that is associated with a custom routing accelerator. The protocol can be either `"TCP"` or `"UDP"`.
 * @property toPort The last port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing accelerator.
 */
public data class CustomRoutingEndpointGroupDestinationConfigurationArgs(
    public val fromPort: Output,
    public val protocols: Output>,
    public val toPort: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.globalaccelerator.inputs.CustomRoutingEndpointGroupDestinationConfigurationArgs =
        com.pulumi.aws.globalaccelerator.inputs.CustomRoutingEndpointGroupDestinationConfigurationArgs.builder()
            .fromPort(fromPort.applyValue({ args0 -> args0 }))
            .protocols(protocols.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .toPort(toPort.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CustomRoutingEndpointGroupDestinationConfigurationArgs].
 */
@PulumiTagMarker
public class CustomRoutingEndpointGroupDestinationConfigurationArgsBuilder internal constructor() {
    private var fromPort: Output? = null

    private var protocols: Output>? = null

    private var toPort: Output? = null

    /**
     * @param value The first port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing accelerator.
     */
    @JvmName("xeqhwjrwtlfgmtqe")
    public suspend fun fromPort(`value`: Output) {
        this.fromPort = value
    }

    /**
     * @param value The protocol for the endpoint group that is associated with a custom routing accelerator. The protocol can be either `"TCP"` or `"UDP"`.
     */
    @JvmName("kgevafmrwmvjphrc")
    public suspend fun protocols(`value`: Output>) {
        this.protocols = value
    }

    @JvmName("uyuwnoqqpykhmwpy")
    public suspend fun protocols(vararg values: Output) {
        this.protocols = Output.all(values.asList())
    }

    /**
     * @param values The protocol for the endpoint group that is associated with a custom routing accelerator. The protocol can be either `"TCP"` or `"UDP"`.
     */
    @JvmName("sckoycrihgmgldqb")
    public suspend fun protocols(values: List>) {
        this.protocols = Output.all(values)
    }

    /**
     * @param value The last port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing accelerator.
     */
    @JvmName("khgevutheltnstnn")
    public suspend fun toPort(`value`: Output) {
        this.toPort = value
    }

    /**
     * @param value The first port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing accelerator.
     */
    @JvmName("ocpytgdyqecdejva")
    public suspend fun fromPort(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.fromPort = mapped
    }

    /**
     * @param value The protocol for the endpoint group that is associated with a custom routing accelerator. The protocol can be either `"TCP"` or `"UDP"`.
     */
    @JvmName("lrueoqcnkwsxbumh")
    public suspend fun protocols(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.protocols = mapped
    }

    /**
     * @param values The protocol for the endpoint group that is associated with a custom routing accelerator. The protocol can be either `"TCP"` or `"UDP"`.
     */
    @JvmName("oqeilweaybhsbsgv")
    public suspend fun protocols(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.protocols = mapped
    }

    /**
     * @param value The last port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing accelerator.
     */
    @JvmName("xypfxhkbfniudnuc")
    public suspend fun toPort(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.toPort = mapped
    }

    internal fun build(): CustomRoutingEndpointGroupDestinationConfigurationArgs =
        CustomRoutingEndpointGroupDestinationConfigurationArgs(
            fromPort = fromPort ?: throw PulumiNullFieldException("fromPort"),
            protocols = protocols ?: throw PulumiNullFieldException("protocols"),
            toPort = toPort ?: throw PulumiNullFieldException("toPort"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy