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

com.pulumi.awsnative.personalize.kotlin.inputs.SolutionConfigHpoConfigPropertiesArgs.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.SolutionConfigHpoConfigPropertiesArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Describes the properties for hyperparameter optimization (HPO)
 * @property algorithmHyperParameterRanges The hyperparameters and their allowable ranges
 * @property hpoObjective The metric to optimize during HPO.
 * @property hpoResourceConfig Describes the resource configuration for hyperparameter optimization (HPO).
 */
public data class SolutionConfigHpoConfigPropertiesArgs(
    public val algorithmHyperParameterRanges: Output? = null,
    public val hpoObjective: Output? =
        null,
    public val hpoResourceConfig: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.personalize.inputs.SolutionConfigHpoConfigPropertiesArgs =
        com.pulumi.awsnative.personalize.inputs.SolutionConfigHpoConfigPropertiesArgs.builder()
            .algorithmHyperParameterRanges(
                algorithmHyperParameterRanges?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .hpoObjective(hpoObjective?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .hpoResourceConfig(
                hpoResourceConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [SolutionConfigHpoConfigPropertiesArgs].
 */
@PulumiTagMarker
public class SolutionConfigHpoConfigPropertiesArgsBuilder internal constructor() {
    private var algorithmHyperParameterRanges:
        Output? = null

    private var hpoObjective: Output? =
        null

    private var hpoResourceConfig:
        Output? = null

    /**
     * @param value The hyperparameters and their allowable ranges
     */
    @JvmName("wuwdnvyobswyecmr")
    public suspend fun algorithmHyperParameterRanges(`value`: Output) {
        this.algorithmHyperParameterRanges = value
    }

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

    /**
     * @param value Describes the resource configuration for hyperparameter optimization (HPO).
     */
    @JvmName("ruimqpnttjgquhre")
    public suspend fun hpoResourceConfig(`value`: Output) {
        this.hpoResourceConfig = value
    }

    /**
     * @param value The hyperparameters and their allowable ranges
     */
    @JvmName("dsdaopoqvustvhkw")
    public suspend fun algorithmHyperParameterRanges(`value`: SolutionConfigHpoConfigPropertiesAlgorithmHyperParameterRangesPropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.algorithmHyperParameterRanges = mapped
    }

    /**
     * @param argument The hyperparameters and their allowable ranges
     */
    @JvmName("vyskijkbpttyydkl")
    public suspend fun algorithmHyperParameterRanges(argument: suspend SolutionConfigHpoConfigPropertiesAlgorithmHyperParameterRangesPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped =
            SolutionConfigHpoConfigPropertiesAlgorithmHyperParameterRangesPropertiesArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.algorithmHyperParameterRanges = mapped
    }

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

    /**
     * @param argument The metric to optimize during HPO.
     */
    @JvmName("xyieegaikquwvfic")
    public suspend fun hpoObjective(argument: suspend SolutionConfigHpoConfigPropertiesHpoObjectivePropertiesArgsBuilder.() -> Unit) {
        val toBeMapped =
            SolutionConfigHpoConfigPropertiesHpoObjectivePropertiesArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.hpoObjective = mapped
    }

    /**
     * @param value Describes the resource configuration for hyperparameter optimization (HPO).
     */
    @JvmName("mnlgafdqfljyccpn")
    public suspend fun hpoResourceConfig(`value`: SolutionConfigHpoConfigPropertiesHpoResourceConfigPropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hpoResourceConfig = mapped
    }

    /**
     * @param argument Describes the resource configuration for hyperparameter optimization (HPO).
     */
    @JvmName("vcftskedybmjcwhi")
    public suspend fun hpoResourceConfig(argument: suspend SolutionConfigHpoConfigPropertiesHpoResourceConfigPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped =
            SolutionConfigHpoConfigPropertiesHpoResourceConfigPropertiesArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.hpoResourceConfig = mapped
    }

    internal fun build(): SolutionConfigHpoConfigPropertiesArgs =
        SolutionConfigHpoConfigPropertiesArgs(
            algorithmHyperParameterRanges = algorithmHyperParameterRanges,
            hpoObjective = hpoObjective,
            hpoResourceConfig = hpoResourceConfig,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy