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

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

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

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

import com.pulumi.awsnative.evidently.inputs.ExperimentMetricGoalObjectArgs.builder
import com.pulumi.awsnative.evidently.kotlin.enums.ExperimentMetricGoalObjectDesiredChange
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 desiredChange `INCREASE` means that a variation with a higher number for this metric is performing better.
 * `DECREASE` means that a variation with a lower number for this metric is performing better.
 * @property entityIdKey The JSON path to reference the entity id in the event.
 * @property eventPattern Event patterns have the same structure as the events they match. Rules use event patterns to select events. An event pattern either matches an event or it doesn't.
 * @property metricName A name for the metric. It can include up to 255 characters.
 * @property unitLabel A label for the units that the metric is measuring.
 * @property valueKey The JSON path to reference the numerical metric value in the event.
 */
public data class ExperimentMetricGoalObjectArgs(
    public val desiredChange: Output,
    public val entityIdKey: Output,
    public val eventPattern: Output? = null,
    public val metricName: Output,
    public val unitLabel: Output? = null,
    public val valueKey: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.evidently.inputs.ExperimentMetricGoalObjectArgs =
        com.pulumi.awsnative.evidently.inputs.ExperimentMetricGoalObjectArgs.builder()
            .desiredChange(desiredChange.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .entityIdKey(entityIdKey.applyValue({ args0 -> args0 }))
            .eventPattern(eventPattern?.applyValue({ args0 -> args0 }))
            .metricName(metricName.applyValue({ args0 -> args0 }))
            .unitLabel(unitLabel?.applyValue({ args0 -> args0 }))
            .valueKey(valueKey.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ExperimentMetricGoalObjectArgs].
 */
@PulumiTagMarker
public class ExperimentMetricGoalObjectArgsBuilder internal constructor() {
    private var desiredChange: Output? = null

    private var entityIdKey: Output? = null

    private var eventPattern: Output? = null

    private var metricName: Output? = null

    private var unitLabel: Output? = null

    private var valueKey: Output? = null

    /**
     * @param value `INCREASE` means that a variation with a higher number for this metric is performing better.
     * `DECREASE` means that a variation with a lower number for this metric is performing better.
     */
    @JvmName("dcsfdkxolprpmqom")
    public suspend fun desiredChange(`value`: Output) {
        this.desiredChange = value
    }

    /**
     * @param value The JSON path to reference the entity id in the event.
     */
    @JvmName("opmgjhoclhwdketl")
    public suspend fun entityIdKey(`value`: Output) {
        this.entityIdKey = value
    }

    /**
     * @param value Event patterns have the same structure as the events they match. Rules use event patterns to select events. An event pattern either matches an event or it doesn't.
     */
    @JvmName("qlxkgvclharxcksy")
    public suspend fun eventPattern(`value`: Output) {
        this.eventPattern = value
    }

    /**
     * @param value A name for the metric. It can include up to 255 characters.
     */
    @JvmName("jcbiemffkiouirda")
    public suspend fun metricName(`value`: Output) {
        this.metricName = value
    }

    /**
     * @param value A label for the units that the metric is measuring.
     */
    @JvmName("wmjcofswalnxyftf")
    public suspend fun unitLabel(`value`: Output) {
        this.unitLabel = value
    }

    /**
     * @param value The JSON path to reference the numerical metric value in the event.
     */
    @JvmName("rwbjpruaolxcpfdj")
    public suspend fun valueKey(`value`: Output) {
        this.valueKey = value
    }

    /**
     * @param value `INCREASE` means that a variation with a higher number for this metric is performing better.
     * `DECREASE` means that a variation with a lower number for this metric is performing better.
     */
    @JvmName("dlcimykpdmbsvxrt")
    public suspend fun desiredChange(`value`: ExperimentMetricGoalObjectDesiredChange) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.desiredChange = mapped
    }

    /**
     * @param value The JSON path to reference the entity id in the event.
     */
    @JvmName("vvwgmnrduksdslde")
    public suspend fun entityIdKey(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.entityIdKey = mapped
    }

    /**
     * @param value Event patterns have the same structure as the events they match. Rules use event patterns to select events. An event pattern either matches an event or it doesn't.
     */
    @JvmName("bmsepbthmpgmvxoa")
    public suspend fun eventPattern(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.eventPattern = mapped
    }

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

    /**
     * @param value A label for the units that the metric is measuring.
     */
    @JvmName("lcletkpuvcrtbrpl")
    public suspend fun unitLabel(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.unitLabel = mapped
    }

    /**
     * @param value The JSON path to reference the numerical metric value in the event.
     */
    @JvmName("pyqfwbgqohesmpna")
    public suspend fun valueKey(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.valueKey = mapped
    }

    internal fun build(): ExperimentMetricGoalObjectArgs = ExperimentMetricGoalObjectArgs(
        desiredChange = desiredChange ?: throw PulumiNullFieldException("desiredChange"),
        entityIdKey = entityIdKey ?: throw PulumiNullFieldException("entityIdKey"),
        eventPattern = eventPattern,
        metricName = metricName ?: throw PulumiNullFieldException("metricName"),
        unitLabel = unitLabel,
        valueKey = valueKey ?: throw PulumiNullFieldException("valueKey"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy