
com.pulumi.awsnative.sagemaker.kotlin.outputs.ModelCardSimpleMetric.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.sagemaker.kotlin.outputs
import com.pulumi.awsnative.sagemaker.kotlin.enums.ModelCardSimpleMetricType
import kotlin.Any
import kotlin.String
import kotlin.Suppress
/**
* metric data
* @property name
* @property notes
* @property type
* @property value
* @property xAxisName
* @property yAxisName
*/
public data class ModelCardSimpleMetric(
public val name: String,
public val notes: String? = null,
public val type: ModelCardSimpleMetricType,
public val `value`: Any,
public val xAxisName: String? = null,
public val yAxisName: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.sagemaker.outputs.ModelCardSimpleMetric): ModelCardSimpleMetric = ModelCardSimpleMetric(
name = javaType.name(),
notes = javaType.notes().map({ args0 -> args0 }).orElse(null),
type = javaType.type().let({ args0 ->
com.pulumi.awsnative.sagemaker.kotlin.enums.ModelCardSimpleMetricType.Companion.toKotlin(args0)
}),
`value` = javaType.`value`(),
xAxisName = javaType.xAxisName().map({ args0 -> args0 }).orElse(null),
yAxisName = javaType.yAxisName().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy