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

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

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

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

import com.pulumi.awsnative.sagemaker.inputs.InferenceExperimentModelVariantConfigArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Contains information about the deployment options of a model.
 * @property infrastructureConfig The configuration for the infrastructure that the model will be deployed to.
 * @property modelName The name of the Amazon SageMaker Model entity.
 * @property variantName The name of the variant.
 */
public data class InferenceExperimentModelVariantConfigArgs(
    public val infrastructureConfig: Output,
    public val modelName: Output,
    public val variantName: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.sagemaker.inputs.InferenceExperimentModelVariantConfigArgs =
        com.pulumi.awsnative.sagemaker.inputs.InferenceExperimentModelVariantConfigArgs.builder()
            .infrastructureConfig(
                infrastructureConfig.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .modelName(modelName.applyValue({ args0 -> args0 }))
            .variantName(variantName.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InferenceExperimentModelVariantConfigArgs].
 */
@PulumiTagMarker
public class InferenceExperimentModelVariantConfigArgsBuilder internal constructor() {
    private var infrastructureConfig: Output? = null

    private var modelName: Output? = null

    private var variantName: Output? = null

    /**
     * @param value The configuration for the infrastructure that the model will be deployed to.
     */
    @JvmName("xxtjaqhhjxdgynqv")
    public suspend fun infrastructureConfig(`value`: Output) {
        this.infrastructureConfig = value
    }

    /**
     * @param value The name of the Amazon SageMaker Model entity.
     */
    @JvmName("aaapyftxokdvbgkt")
    public suspend fun modelName(`value`: Output) {
        this.modelName = value
    }

    /**
     * @param value The name of the variant.
     */
    @JvmName("wjmdfjrwmhbprrgk")
    public suspend fun variantName(`value`: Output) {
        this.variantName = value
    }

    /**
     * @param value The configuration for the infrastructure that the model will be deployed to.
     */
    @JvmName("acnxattsspexwrkl")
    public suspend fun infrastructureConfig(`value`: InferenceExperimentModelInfrastructureConfigArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.infrastructureConfig = mapped
    }

    /**
     * @param argument The configuration for the infrastructure that the model will be deployed to.
     */
    @JvmName("bqxrfqoioclvjtdx")
    public suspend fun infrastructureConfig(argument: suspend InferenceExperimentModelInfrastructureConfigArgsBuilder.() -> Unit) {
        val toBeMapped = InferenceExperimentModelInfrastructureConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.infrastructureConfig = mapped
    }

    /**
     * @param value The name of the Amazon SageMaker Model entity.
     */
    @JvmName("lrepunpgyhltrrme")
    public suspend fun modelName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.modelName = mapped
    }

    /**
     * @param value The name of the variant.
     */
    @JvmName("hicajapselmukyeu")
    public suspend fun variantName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.variantName = mapped
    }

    internal fun build(): InferenceExperimentModelVariantConfigArgs =
        InferenceExperimentModelVariantConfigArgs(
            infrastructureConfig = infrastructureConfig ?: throw
                PulumiNullFieldException("infrastructureConfig"),
            modelName = modelName ?: throw PulumiNullFieldException("modelName"),
            variantName = variantName ?: throw PulumiNullFieldException("variantName"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy