All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelPackageStatusItemArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.sagemaker.kotlin.inputs

import com.pulumi.awsnative.sagemaker.inputs.ModelPackageStatusItemArgs.builder
import com.pulumi.awsnative.sagemaker.kotlin.enums.ModelPackageStatusItemStatus
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 the overall status of a model package.
 * @property failureReason If the overall status is Failed, the reason for the failure.
 * @property name The name of the model package for which the overall status is being reported.
 * @property status The current status.
 */
public data class ModelPackageStatusItemArgs(
    public val failureReason: Output? = null,
    public val name: Output,
    public val status: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.sagemaker.inputs.ModelPackageStatusItemArgs =
        com.pulumi.awsnative.sagemaker.inputs.ModelPackageStatusItemArgs.builder()
            .failureReason(failureReason?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .status(status.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ModelPackageStatusItemArgs].
 */
@PulumiTagMarker
public class ModelPackageStatusItemArgsBuilder internal constructor() {
    private var failureReason: Output? = null

    private var name: Output? = null

    private var status: Output? = null

    /**
     * @param value If the overall status is Failed, the reason for the failure.
     */
    @JvmName("bdmkdtfvlbwtosbx")
    public suspend fun failureReason(`value`: Output) {
        this.failureReason = value
    }

    /**
     * @param value The name of the model package for which the overall status is being reported.
     */
    @JvmName("ocbgnhwiigueqpus")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The current status.
     */
    @JvmName("jdjfeialyhblxprx")
    public suspend fun status(`value`: Output) {
        this.status = value
    }

    /**
     * @param value If the overall status is Failed, the reason for the failure.
     */
    @JvmName("qwauvtlljjgbpbhg")
    public suspend fun failureReason(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.failureReason = mapped
    }

    /**
     * @param value The name of the model package for which the overall status is being reported.
     */
    @JvmName("ifambwbxchfapjsc")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The current status.
     */
    @JvmName("mcoywnybqkdvjhhi")
    public suspend fun status(`value`: ModelPackageStatusItemStatus) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.status = mapped
    }

    internal fun build(): ModelPackageStatusItemArgs = ModelPackageStatusItemArgs(
        failureReason = failureReason,
        name = name ?: throw PulumiNullFieldException("name"),
        status = status ?: throw PulumiNullFieldException("status"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy