com.pulumi.awsnative.sagemaker.kotlin.inputs.SpaceCustomImageArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.sagemaker.kotlin.inputs
import com.pulumi.awsnative.sagemaker.inputs.SpaceCustomImageArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A custom SageMaker image.
* @property appImageConfigName The Name of the AppImageConfig.
* @property imageName The name of the CustomImage. Must be unique to your account.
* @property imageVersionNumber The version number of the CustomImage.
*/
public data class SpaceCustomImageArgs(
public val appImageConfigName: Output,
public val imageName: Output,
public val imageVersionNumber: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.sagemaker.inputs.SpaceCustomImageArgs =
com.pulumi.awsnative.sagemaker.inputs.SpaceCustomImageArgs.builder()
.appImageConfigName(appImageConfigName.applyValue({ args0 -> args0 }))
.imageName(imageName.applyValue({ args0 -> args0 }))
.imageVersionNumber(imageVersionNumber?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [SpaceCustomImageArgs].
*/
@PulumiTagMarker
public class SpaceCustomImageArgsBuilder internal constructor() {
private var appImageConfigName: Output? = null
private var imageName: Output? = null
private var imageVersionNumber: Output? = null
/**
* @param value The Name of the AppImageConfig.
*/
@JvmName("mvxnfxfmfgokjatd")
public suspend fun appImageConfigName(`value`: Output) {
this.appImageConfigName = value
}
/**
* @param value The name of the CustomImage. Must be unique to your account.
*/
@JvmName("newpumairbgjfvej")
public suspend fun imageName(`value`: Output) {
this.imageName = value
}
/**
* @param value The version number of the CustomImage.
*/
@JvmName("lpvbrjdcuwxgauyn")
public suspend fun imageVersionNumber(`value`: Output) {
this.imageVersionNumber = value
}
/**
* @param value The Name of the AppImageConfig.
*/
@JvmName("nkimfdskyoljluym")
public suspend fun appImageConfigName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.appImageConfigName = mapped
}
/**
* @param value The name of the CustomImage. Must be unique to your account.
*/
@JvmName("nrynxilpqvnmbjti")
public suspend fun imageName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.imageName = mapped
}
/**
* @param value The version number of the CustomImage.
*/
@JvmName("doenmcqvdxcqkakf")
public suspend fun imageVersionNumber(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.imageVersionNumber = mapped
}
internal fun build(): SpaceCustomImageArgs = SpaceCustomImageArgs(
appImageConfigName = appImageConfigName ?: throw PulumiNullFieldException("appImageConfigName"),
imageName = imageName ?: throw PulumiNullFieldException("imageName"),
imageVersionNumber = imageVersionNumber,
)
}