
com.pulumi.awsnative.gamelift.kotlin.inputs.AliasRoutingStrategyArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.gamelift.kotlin.inputs
import com.pulumi.awsnative.gamelift.inputs.AliasRoutingStrategyArgs.builder
import com.pulumi.awsnative.gamelift.kotlin.enums.AliasRoutingStrategyType
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 A unique identifier for a fleet that the alias points to. If you specify SIMPLE for the Type property, you must specify this property.
* @property message The message text to be used with a terminal routing strategy. If you specify TERMINAL for the Type property, you must specify this property.
* @property type Simple routing strategy. The alias resolves to one specific fleet. Use this type when routing to active fleets.
*/
public data class AliasRoutingStrategyArgs(
public val fleetId: Output? = null,
public val message: Output? = null,
public val type: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.gamelift.inputs.AliasRoutingStrategyArgs =
com.pulumi.awsnative.gamelift.inputs.AliasRoutingStrategyArgs.builder()
.fleetId(fleetId?.applyValue({ args0 -> args0 }))
.message(message?.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).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 A unique identifier for a fleet that the alias points to. If you specify SIMPLE for the Type property, you must specify this property.
*/
@JvmName("yrhjjwcmdpfegqhv")
public suspend fun fleetId(`value`: Output) {
this.fleetId = value
}
/**
* @param value The message text to be used with a terminal routing strategy. If you specify TERMINAL for the Type property, you must specify this property.
*/
@JvmName("novlxdtapbhdpycl")
public suspend fun message(`value`: Output) {
this.message = value
}
/**
* @param value Simple routing strategy. The alias resolves to one specific fleet. Use this type when routing to active fleets.
*/
@JvmName("imfvxppdpdhpgxyj")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value A unique identifier for a fleet that the alias points to. If you specify SIMPLE for the Type property, you must specify this property.
*/
@JvmName("fjafgwbwmajpguxx")
public suspend fun fleetId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.fleetId = mapped
}
/**
* @param value The message text to be used with a terminal routing strategy. If you specify TERMINAL for the Type property, you must specify this property.
*/
@JvmName("mnbtyqdxffwachis")
public suspend fun message(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.message = mapped
}
/**
* @param value Simple routing strategy. The alias resolves to one specific fleet. Use this type when routing to active fleets.
*/
@JvmName("qxohpkfmovranvjv")
public suspend fun type(`value`: AliasRoutingStrategyType) {
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 - 2025 Weber Informatics LLC | Privacy Policy