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

com.pulumi.awsnative.personalize.kotlin.inputs.SolutionConfigAutoMlConfigPropertiesArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.personalize.kotlin.inputs

import com.pulumi.awsnative.personalize.inputs.SolutionConfigAutoMlConfigPropertiesArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The AutoMLConfig object containing a list of recipes to search when AutoML is performed.
 * @property metricName The metric to optimize.
 * @property recipeList The list of candidate recipes.
 */
public data class SolutionConfigAutoMlConfigPropertiesArgs(
    public val metricName: Output? = null,
    public val recipeList: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.personalize.inputs.SolutionConfigAutoMlConfigPropertiesArgs =
        com.pulumi.awsnative.personalize.inputs.SolutionConfigAutoMlConfigPropertiesArgs.builder()
            .metricName(metricName?.applyValue({ args0 -> args0 }))
            .recipeList(recipeList?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [SolutionConfigAutoMlConfigPropertiesArgs].
 */
@PulumiTagMarker
public class SolutionConfigAutoMlConfigPropertiesArgsBuilder internal constructor() {
    private var metricName: Output? = null

    private var recipeList: Output>? = null

    /**
     * @param value The metric to optimize.
     */
    @JvmName("aclrqukukpxoehas")
    public suspend fun metricName(`value`: Output) {
        this.metricName = value
    }

    /**
     * @param value The list of candidate recipes.
     */
    @JvmName("yttkrrvvypmmcmxr")
    public suspend fun recipeList(`value`: Output>) {
        this.recipeList = value
    }

    @JvmName("iwmwgcfckhxkcash")
    public suspend fun recipeList(vararg values: Output) {
        this.recipeList = Output.all(values.asList())
    }

    /**
     * @param values The list of candidate recipes.
     */
    @JvmName("olynutrnjodmluxf")
    public suspend fun recipeList(values: List>) {
        this.recipeList = Output.all(values)
    }

    /**
     * @param value The metric to optimize.
     */
    @JvmName("xkgbuygjwsuxmjts")
    public suspend fun metricName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.metricName = mapped
    }

    /**
     * @param value The list of candidate recipes.
     */
    @JvmName("gytwbcxrcuhogpdh")
    public suspend fun recipeList(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.recipeList = mapped
    }

    /**
     * @param values The list of candidate recipes.
     */
    @JvmName("ccgdjcbvixfgyjpr")
    public suspend fun recipeList(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.recipeList = mapped
    }

    internal fun build(): SolutionConfigAutoMlConfigPropertiesArgs =
        SolutionConfigAutoMlConfigPropertiesArgs(
            metricName = metricName,
            recipeList = recipeList,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy