com.pulumi.awsnative.evidently.kotlin.inputs.LaunchGroupToWeightArgs.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.evidently.kotlin.inputs
import com.pulumi.awsnative.evidently.inputs.LaunchGroupToWeightArgs.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.jvm.JvmName
/**
*
* @property groupName The name of the launch group. It can include up to 127 characters.
* @property splitWeight The portion of launch traffic to allocate to this launch group.
* This is represented in thousandths of a percent. For example, specify 20,000 to allocate 20% of the launch audience to this launch group.
*/
public data class LaunchGroupToWeightArgs(
public val groupName: Output,
public val splitWeight: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.evidently.inputs.LaunchGroupToWeightArgs =
com.pulumi.awsnative.evidently.inputs.LaunchGroupToWeightArgs.builder()
.groupName(groupName.applyValue({ args0 -> args0 }))
.splitWeight(splitWeight.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [LaunchGroupToWeightArgs].
*/
@PulumiTagMarker
public class LaunchGroupToWeightArgsBuilder internal constructor() {
private var groupName: Output? = null
private var splitWeight: Output? = null
/**
* @param value The name of the launch group. It can include up to 127 characters.
*/
@JvmName("ishhlkbsuduerbos")
public suspend fun groupName(`value`: Output) {
this.groupName = value
}
/**
* @param value The portion of launch traffic to allocate to this launch group.
* This is represented in thousandths of a percent. For example, specify 20,000 to allocate 20% of the launch audience to this launch group.
*/
@JvmName("nedsfbsxfwwplell")
public suspend fun splitWeight(`value`: Output) {
this.splitWeight = value
}
/**
* @param value The name of the launch group. It can include up to 127 characters.
*/
@JvmName("efmwbqhkxriksywf")
public suspend fun groupName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.groupName = mapped
}
/**
* @param value The portion of launch traffic to allocate to this launch group.
* This is represented in thousandths of a percent. For example, specify 20,000 to allocate 20% of the launch audience to this launch group.
*/
@JvmName("gacbbpjtcymbiqfn")
public suspend fun splitWeight(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.splitWeight = mapped
}
internal fun build(): LaunchGroupToWeightArgs = LaunchGroupToWeightArgs(
groupName = groupName ?: throw PulumiNullFieldException("groupName"),
splitWeight = splitWeight ?: throw PulumiNullFieldException("splitWeight"),
)
}