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

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

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

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

import com.pulumi.awsnative.evidently.inputs.ExperimentTreatmentObjectArgs.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 description The description of the treatment.
 * @property feature The name of the feature for this experiment.
 * @property treatmentName A name for this treatment. It can include up to 127 characters.
 * @property variation The name of the variation to use for this treatment.
 */
public data class ExperimentTreatmentObjectArgs(
    public val description: Output? = null,
    public val feature: Output,
    public val treatmentName: Output,
    public val variation: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.evidently.inputs.ExperimentTreatmentObjectArgs =
        com.pulumi.awsnative.evidently.inputs.ExperimentTreatmentObjectArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .feature(feature.applyValue({ args0 -> args0 }))
            .treatmentName(treatmentName.applyValue({ args0 -> args0 }))
            .variation(variation.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ExperimentTreatmentObjectArgs].
 */
@PulumiTagMarker
public class ExperimentTreatmentObjectArgsBuilder internal constructor() {
    private var description: Output? = null

    private var feature: Output? = null

    private var treatmentName: Output? = null

    private var variation: Output? = null

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

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

    /**
     * @param value A name for this treatment. It can include up to 127 characters.
     */
    @JvmName("thnkfsdjfbfwjkvg")
    public suspend fun treatmentName(`value`: Output) {
        this.treatmentName = value
    }

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

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

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

    /**
     * @param value A name for this treatment. It can include up to 127 characters.
     */
    @JvmName("quuybdomhkigqlog")
    public suspend fun treatmentName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.treatmentName = mapped
    }

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

    internal fun build(): ExperimentTreatmentObjectArgs = ExperimentTreatmentObjectArgs(
        description = description,
        feature = feature ?: throw PulumiNullFieldException("feature"),
        treatmentName = treatmentName ?: throw PulumiNullFieldException("treatmentName"),
        variation = variation ?: throw PulumiNullFieldException("variation"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy