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

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

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.awsnative.sagemaker.inputs.ModelCardContentArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The content of the model card.
 * @property additionalInformation Additional information about the model.
 * @property businessDetails Information about how the model supports business goals.
 * @property evaluationDetails An overview about the model's evaluation.
 * @property intendedUses The intended usage of the model.
 * @property modelOverview An overview about the model
 * @property modelPackageDetails
 * @property trainingDetails An overview about model training.
 */
public data class ModelCardContentArgs(
    public val additionalInformation: Output? = null,
    public val businessDetails: Output? = null,
    public val evaluationDetails: Output>? = null,
    public val intendedUses: Output? = null,
    public val modelOverview: Output? = null,
    public val modelPackageDetails: Output? = null,
    public val trainingDetails: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.sagemaker.inputs.ModelCardContentArgs =
        com.pulumi.awsnative.sagemaker.inputs.ModelCardContentArgs.builder()
            .additionalInformation(
                additionalInformation?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .businessDetails(businessDetails?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .evaluationDetails(
                evaluationDetails?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .intendedUses(intendedUses?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .modelOverview(modelOverview?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .modelPackageDetails(
                modelPackageDetails?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .trainingDetails(
                trainingDetails?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [ModelCardContentArgs].
 */
@PulumiTagMarker
public class ModelCardContentArgsBuilder internal constructor() {
    private var additionalInformation: Output? = null

    private var businessDetails: Output? = null

    private var evaluationDetails: Output>? = null

    private var intendedUses: Output? = null

    private var modelOverview: Output? = null

    private var modelPackageDetails: Output? = null

    private var trainingDetails: Output? = null

    /**
     * @param value Additional information about the model.
     */
    @JvmName("mxkjkolwnkbcempr")
    public suspend fun additionalInformation(`value`: Output) {
        this.additionalInformation = value
    }

    /**
     * @param value Information about how the model supports business goals.
     */
    @JvmName("sdlhanxejgyogvks")
    public suspend fun businessDetails(`value`: Output) {
        this.businessDetails = value
    }

    /**
     * @param value An overview about the model's evaluation.
     */
    @JvmName("tdwsnylrbgbggtuh")
    public suspend fun evaluationDetails(`value`: Output>) {
        this.evaluationDetails = value
    }

    @JvmName("ddfutiakxuubexpa")
    public suspend fun evaluationDetails(vararg values: Output) {
        this.evaluationDetails = Output.all(values.asList())
    }

    /**
     * @param values An overview about the model's evaluation.
     */
    @JvmName("guppinnidinnuctb")
    public suspend fun evaluationDetails(values: List>) {
        this.evaluationDetails = Output.all(values)
    }

    /**
     * @param value The intended usage of the model.
     */
    @JvmName("nqtswnikhptwsyhf")
    public suspend fun intendedUses(`value`: Output) {
        this.intendedUses = value
    }

    /**
     * @param value An overview about the model
     */
    @JvmName("rwakidhqfuruffrq")
    public suspend fun modelOverview(`value`: Output) {
        this.modelOverview = value
    }

    /**
     * @param value
     */
    @JvmName("tcunfviyfjyjdltc")
    public suspend fun modelPackageDetails(`value`: Output) {
        this.modelPackageDetails = value
    }

    /**
     * @param value An overview about model training.
     */
    @JvmName("vuumwkeatchtqafy")
    public suspend fun trainingDetails(`value`: Output) {
        this.trainingDetails = value
    }

    /**
     * @param value Additional information about the model.
     */
    @JvmName("xsnmispknyqacslv")
    public suspend fun additionalInformation(`value`: ModelCardAdditionalInformationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.additionalInformation = mapped
    }

    /**
     * @param argument Additional information about the model.
     */
    @JvmName("eookcukemialmifb")
    public suspend fun additionalInformation(argument: suspend ModelCardAdditionalInformationArgsBuilder.() -> Unit) {
        val toBeMapped = ModelCardAdditionalInformationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.additionalInformation = mapped
    }

    /**
     * @param value Information about how the model supports business goals.
     */
    @JvmName("lxhbaggawbrahcmj")
    public suspend fun businessDetails(`value`: ModelCardBusinessDetailsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.businessDetails = mapped
    }

    /**
     * @param argument Information about how the model supports business goals.
     */
    @JvmName("kevwsuupicwrbqur")
    public suspend fun businessDetails(argument: suspend ModelCardBusinessDetailsArgsBuilder.() -> Unit) {
        val toBeMapped = ModelCardBusinessDetailsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.businessDetails = mapped
    }

    /**
     * @param value An overview about the model's evaluation.
     */
    @JvmName("udhehuefvrvibqjr")
    public suspend fun evaluationDetails(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.evaluationDetails = mapped
    }

    /**
     * @param argument An overview about the model's evaluation.
     */
    @JvmName("lfxrestsuvmhqpmp")
    public suspend fun evaluationDetails(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ModelCardEvaluationDetailArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.evaluationDetails = mapped
    }

    /**
     * @param argument An overview about the model's evaluation.
     */
    @JvmName("exffnukgnjukrmyn")
    public suspend fun evaluationDetails(vararg argument: suspend ModelCardEvaluationDetailArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ModelCardEvaluationDetailArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.evaluationDetails = mapped
    }

    /**
     * @param argument An overview about the model's evaluation.
     */
    @JvmName("ikibaobmtbbvtbya")
    public suspend fun evaluationDetails(argument: suspend ModelCardEvaluationDetailArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ModelCardEvaluationDetailArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.evaluationDetails = mapped
    }

    /**
     * @param values An overview about the model's evaluation.
     */
    @JvmName("tbrlhiitjhntxssw")
    public suspend fun evaluationDetails(vararg values: ModelCardEvaluationDetailArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.evaluationDetails = mapped
    }

    /**
     * @param value The intended usage of the model.
     */
    @JvmName("xunnrljyeyxuyhhv")
    public suspend fun intendedUses(`value`: ModelCardIntendedUsesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.intendedUses = mapped
    }

    /**
     * @param argument The intended usage of the model.
     */
    @JvmName("trdngoifcnfmgulj")
    public suspend fun intendedUses(argument: suspend ModelCardIntendedUsesArgsBuilder.() -> Unit) {
        val toBeMapped = ModelCardIntendedUsesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.intendedUses = mapped
    }

    /**
     * @param value An overview about the model
     */
    @JvmName("iyaabuhaondgssdt")
    public suspend fun modelOverview(`value`: ModelCardModelOverviewArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.modelOverview = mapped
    }

    /**
     * @param argument An overview about the model
     */
    @JvmName("liomcjuyebpjjojf")
    public suspend fun modelOverview(argument: suspend ModelCardModelOverviewArgsBuilder.() -> Unit) {
        val toBeMapped = ModelCardModelOverviewArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.modelOverview = mapped
    }

    /**
     * @param value
     */
    @JvmName("lgpqryjlkancssoh")
    public suspend fun modelPackageDetails(`value`: ModelCardModelPackageDetailsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.modelPackageDetails = mapped
    }

    /**
     * @param argument
     */
    @JvmName("anefhjsyronljmtw")
    public suspend fun modelPackageDetails(argument: suspend ModelCardModelPackageDetailsArgsBuilder.() -> Unit) {
        val toBeMapped = ModelCardModelPackageDetailsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.modelPackageDetails = mapped
    }

    /**
     * @param value An overview about model training.
     */
    @JvmName("wdwrljshofvtryis")
    public suspend fun trainingDetails(`value`: ModelCardTrainingDetailsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.trainingDetails = mapped
    }

    /**
     * @param argument An overview about model training.
     */
    @JvmName("xiuveprtybfsrqpl")
    public suspend fun trainingDetails(argument: suspend ModelCardTrainingDetailsArgsBuilder.() -> Unit) {
        val toBeMapped = ModelCardTrainingDetailsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.trainingDetails = mapped
    }

    internal fun build(): ModelCardContentArgs = ModelCardContentArgs(
        additionalInformation = additionalInformation,
        businessDetails = businessDetails,
        evaluationDetails = evaluationDetails,
        intendedUses = intendedUses,
        modelOverview = modelOverview,
        modelPackageDetails = modelPackageDetails,
        trainingDetails = trainingDetails,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy