
com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelCardSimpleMetricArgs.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.inputs
import com.pulumi.awsnative.sagemaker.inputs.ModelCardSimpleMetricArgs.builder
import com.pulumi.awsnative.sagemaker.kotlin.enums.ModelCardSimpleMetricType
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Any
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* metric data
* @property name
* @property notes
* @property type
* @property value
* @property xAxisName
* @property yAxisName
*/
public data class ModelCardSimpleMetricArgs(
public val name: Output,
public val notes: Output? = null,
public val type: Output,
public val `value`: Output,
public val xAxisName: Output? = null,
public val yAxisName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.sagemaker.inputs.ModelCardSimpleMetricArgs =
com.pulumi.awsnative.sagemaker.inputs.ModelCardSimpleMetricArgs.builder()
.name(name.applyValue({ args0 -> args0 }))
.notes(notes?.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.`value`(`value`.applyValue({ args0 -> args0 }))
.xAxisName(xAxisName?.applyValue({ args0 -> args0 }))
.yAxisName(yAxisName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ModelCardSimpleMetricArgs].
*/
@PulumiTagMarker
public class ModelCardSimpleMetricArgsBuilder internal constructor() {
private var name: Output? = null
private var notes: Output? = null
private var type: Output? = null
private var `value`: Output? = null
private var xAxisName: Output? = null
private var yAxisName: Output? = null
/**
* @param value
*/
@JvmName("jctvvkvybructkrj")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value
*/
@JvmName("sdghhyeqmbsghytd")
public suspend fun notes(`value`: Output) {
this.notes = value
}
/**
* @param value
*/
@JvmName("uoyyotvlyttuwibc")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value
*/
@JvmName("ryafsuptnnmcniju")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value
*/
@JvmName("drgkvjwdrtcetguj")
public suspend fun xAxisName(`value`: Output) {
this.xAxisName = value
}
/**
* @param value
*/
@JvmName("iqcrvgemqmtcyjqm")
public suspend fun yAxisName(`value`: Output) {
this.yAxisName = value
}
/**
* @param value
*/
@JvmName("njhlgkuyiotvvcrp")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value
*/
@JvmName("hpfrqhhafovvitbg")
public suspend fun notes(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.notes = mapped
}
/**
* @param value
*/
@JvmName("efjaeqxwjkbsrkpo")
public suspend fun type(`value`: ModelCardSimpleMetricType) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
/**
* @param value
*/
@JvmName("qhslhcogoutccoqy")
public suspend fun `value`(`value`: Any) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.`value` = mapped
}
/**
* @param value
*/
@JvmName("uuvjftnmsestsndv")
public suspend fun xAxisName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.xAxisName = mapped
}
/**
* @param value
*/
@JvmName("fhhugtvabqvyaknk")
public suspend fun yAxisName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.yAxisName = mapped
}
internal fun build(): ModelCardSimpleMetricArgs = ModelCardSimpleMetricArgs(
name = name ?: throw PulumiNullFieldException("name"),
notes = notes,
type = type ?: throw PulumiNullFieldException("type"),
`value` = `value` ?: throw PulumiNullFieldException("value"),
xAxisName = xAxisName,
yAxisName = yAxisName,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy