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

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

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.awsnative.personalize.inputs.SolutionConfigHpoConfigPropertiesHpoObjectivePropertiesArgs.builder
import com.pulumi.awsnative.personalize.kotlin.enums.SolutionConfigHpoConfigPropertiesHpoObjectivePropertiesType
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.jvm.JvmName

/**
 * The metric to optimize during HPO.
 * @property metricName The name of the metric
 * @property metricRegex A regular expression for finding the metric in the training job logs.
 * @property type The type of the metric. Valid values are Maximize and Minimize.
 */
public data class SolutionConfigHpoConfigPropertiesHpoObjectivePropertiesArgs(
    public val metricName: Output? = null,
    public val metricRegex: Output? = null,
    public val type: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.personalize.inputs.SolutionConfigHpoConfigPropertiesHpoObjectivePropertiesArgs =
        com.pulumi.awsnative.personalize.inputs.SolutionConfigHpoConfigPropertiesHpoObjectivePropertiesArgs.builder()
            .metricName(metricName?.applyValue({ args0 -> args0 }))
            .metricRegex(metricRegex?.applyValue({ args0 -> args0 }))
            .type(type?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var metricRegex: Output? = null

    private var type: Output? = null

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

    /**
     * @param value A regular expression for finding the metric in the training job logs.
     */
    @JvmName("cqdladdbrwdxptsc")
    public suspend fun metricRegex(`value`: Output) {
        this.metricRegex = value
    }

    /**
     * @param value The type of the metric. Valid values are Maximize and Minimize.
     */
    @JvmName("imebmbhnspirdavi")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

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

    /**
     * @param value A regular expression for finding the metric in the training job logs.
     */
    @JvmName("oknhvuwxuwjvonaf")
    public suspend fun metricRegex(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.metricRegex = mapped
    }

    /**
     * @param value The type of the metric. Valid values are Maximize and Minimize.
     */
    @JvmName("hbxarbnjvomcbnjp")
    public suspend fun type(`value`: SolutionConfigHpoConfigPropertiesHpoObjectivePropertiesType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): SolutionConfigHpoConfigPropertiesHpoObjectivePropertiesArgs =
        SolutionConfigHpoConfigPropertiesHpoObjectivePropertiesArgs(
            metricName = metricName,
            metricRegex = metricRegex,
            type = type,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy