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

com.pulumi.awsnative.evidently.kotlin.inputs.ExperimentTreatmentToWeightArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.evidently.kotlin.inputs

import com.pulumi.awsnative.evidently.inputs.ExperimentTreatmentToWeightArgs.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 splitWeight The portion of experiment traffic to allocate to this treatment. Specify the traffic portion in thousandths of a percent, so 20,000 allocated to a treatment would allocate 20% of the experiment traffic to that treatment.
 * @property treatment The name of the treatment.
 */
public data class ExperimentTreatmentToWeightArgs(
    public val splitWeight: Output,
    public val treatment: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.evidently.inputs.ExperimentTreatmentToWeightArgs =
        com.pulumi.awsnative.evidently.inputs.ExperimentTreatmentToWeightArgs.builder()
            .splitWeight(splitWeight.applyValue({ args0 -> args0 }))
            .treatment(treatment.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ExperimentTreatmentToWeightArgs].
 */
@PulumiTagMarker
public class ExperimentTreatmentToWeightArgsBuilder internal constructor() {
    private var splitWeight: Output? = null

    private var treatment: Output? = null

    /**
     * @param value The portion of experiment traffic to allocate to this treatment. Specify the traffic portion in thousandths of a percent, so 20,000 allocated to a treatment would allocate 20% of the experiment traffic to that treatment.
     */
    @JvmName("jbquxmujughkqhtg")
    public suspend fun splitWeight(`value`: Output) {
        this.splitWeight = value
    }

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

    /**
     * @param value The portion of experiment traffic to allocate to this treatment. Specify the traffic portion in thousandths of a percent, so 20,000 allocated to a treatment would allocate 20% of the experiment traffic to that treatment.
     */
    @JvmName("bjktsjerbiqspwwj")
    public suspend fun splitWeight(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.splitWeight = mapped
    }

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

    internal fun build(): ExperimentTreatmentToWeightArgs = ExperimentTreatmentToWeightArgs(
        splitWeight = splitWeight ?: throw PulumiNullFieldException("splitWeight"),
        treatment = treatment ?: throw PulumiNullFieldException("treatment"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy