
com.pulumi.awsnative.personalize.kotlin.outputs.SolutionConfigHpoConfigPropertiesHpoObjectiveProperties.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.personalize.kotlin.outputs
import com.pulumi.awsnative.personalize.kotlin.enums.SolutionConfigHpoConfigPropertiesHpoObjectivePropertiesType
import kotlin.String
import kotlin.Suppress
/**
* 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 SolutionConfigHpoConfigPropertiesHpoObjectiveProperties(
public val metricName: String? = null,
public val metricRegex: String? = null,
public val type: SolutionConfigHpoConfigPropertiesHpoObjectivePropertiesType? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.personalize.outputs.SolutionConfigHpoConfigPropertiesHpoObjectiveProperties): SolutionConfigHpoConfigPropertiesHpoObjectiveProperties =
SolutionConfigHpoConfigPropertiesHpoObjectiveProperties(
metricName = javaType.metricName().map({ args0 -> args0 }).orElse(null),
metricRegex = javaType.metricRegex().map({ args0 -> args0 }).orElse(null),
type = javaType.type().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.personalize.kotlin.enums.SolutionConfigHpoConfigPropertiesHpoObjectivePropertiesType.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy