com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelPackageMetricsSourceArgs.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.ModelPackageMetricsSourceArgs.builder
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.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Represents a Metric Source Object.
* @property contentDigest The digest of the metric source.
* @property contentType The type of content stored in the metric source.
* @property s3Uri The Amazon S3 URI for the metric source.
*/
public data class ModelPackageMetricsSourceArgs(
public val contentDigest: Output? = null,
public val contentType: Output,
public val s3Uri: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.sagemaker.inputs.ModelPackageMetricsSourceArgs =
com.pulumi.awsnative.sagemaker.inputs.ModelPackageMetricsSourceArgs.builder()
.contentDigest(contentDigest?.applyValue({ args0 -> args0 }))
.contentType(contentType.applyValue({ args0 -> args0 }))
.s3Uri(s3Uri.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ModelPackageMetricsSourceArgs].
*/
@PulumiTagMarker
public class ModelPackageMetricsSourceArgsBuilder internal constructor() {
private var contentDigest: Output? = null
private var contentType: Output? = null
private var s3Uri: Output? = null
/**
* @param value The digest of the metric source.
*/
@JvmName("yyicadovbdivqyvn")
public suspend fun contentDigest(`value`: Output) {
this.contentDigest = value
}
/**
* @param value The type of content stored in the metric source.
*/
@JvmName("nhmajacbodbifkbi")
public suspend fun contentType(`value`: Output) {
this.contentType = value
}
/**
* @param value The Amazon S3 URI for the metric source.
*/
@JvmName("kbqqngrwwfemqqdo")
public suspend fun s3Uri(`value`: Output) {
this.s3Uri = value
}
/**
* @param value The digest of the metric source.
*/
@JvmName("xsdnfcytrfyfcuph")
public suspend fun contentDigest(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.contentDigest = mapped
}
/**
* @param value The type of content stored in the metric source.
*/
@JvmName("uhecxyilwltngruf")
public suspend fun contentType(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.contentType = mapped
}
/**
* @param value The Amazon S3 URI for the metric source.
*/
@JvmName("owyjvkuuwiyhiqyw")
public suspend fun s3Uri(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.s3Uri = mapped
}
internal fun build(): ModelPackageMetricsSourceArgs = ModelPackageMetricsSourceArgs(
contentDigest = contentDigest,
contentType = contentType ?: throw PulumiNullFieldException("contentType"),
s3Uri = s3Uri ?: throw PulumiNullFieldException("s3Uri"),
)
}