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

com.pulumi.aws.gamelift.kotlin.inputs.AliasRoutingStrategyArgs.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.gamelift.kotlin.inputs

import com.pulumi.aws.gamelift.inputs.AliasRoutingStrategyArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property fleetId ID of the GameLift Fleet to point the alias to.
 * @property message Message text to be used with the `TERMINAL` routing strategy.
 * @property type Type of routing strategyE.g., `SIMPLE` or `TERMINAL`
 */
public data class AliasRoutingStrategyArgs(
    public val fleetId: Output? = null,
    public val message: Output? = null,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.gamelift.inputs.AliasRoutingStrategyArgs =
        com.pulumi.aws.gamelift.inputs.AliasRoutingStrategyArgs.builder()
            .fleetId(fleetId?.applyValue({ args0 -> args0 }))
            .message(message?.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AliasRoutingStrategyArgs].
 */
@PulumiTagMarker
public class AliasRoutingStrategyArgsBuilder internal constructor() {
    private var fleetId: Output? = null

    private var message: Output? = null

    private var type: Output? = null

    /**
     * @param value ID of the GameLift Fleet to point the alias to.
     */
    @JvmName("lecxrvcijtmvbsyg")
    public suspend fun fleetId(`value`: Output) {
        this.fleetId = value
    }

    /**
     * @param value Message text to be used with the `TERMINAL` routing strategy.
     */
    @JvmName("optxbompkvpravmf")
    public suspend fun message(`value`: Output) {
        this.message = value
    }

    /**
     * @param value Type of routing strategyE.g., `SIMPLE` or `TERMINAL`
     */
    @JvmName("ovlfjdsbryfqrvck")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value ID of the GameLift Fleet to point the alias to.
     */
    @JvmName("obiiytvblkjnpngg")
    public suspend fun fleetId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fleetId = mapped
    }

    /**
     * @param value Message text to be used with the `TERMINAL` routing strategy.
     */
    @JvmName("qvccxccldrtdbmaf")
    public suspend fun message(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.message = mapped
    }

    /**
     * @param value Type of routing strategyE.g., `SIMPLE` or `TERMINAL`
     */
    @JvmName("xvjythkmverehiio")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): AliasRoutingStrategyArgs = AliasRoutingStrategyArgs(
        fleetId = fleetId,
        message = message,
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy