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

com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelPackageModelDataQualityArgs.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.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.awsnative.sagemaker.inputs.ModelPackageModelDataQualityArgs.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.jvm.JvmName

/**
 * Metrics that measure the quality of the input data for a model.
 * @property constraints Data quality constraints for a model.
 * @property statistics Data quality statistics for a model.
 */
public data class ModelPackageModelDataQualityArgs(
    public val constraints: Output? = null,
    public val statistics: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.sagemaker.inputs.ModelPackageModelDataQualityArgs =
        com.pulumi.awsnative.sagemaker.inputs.ModelPackageModelDataQualityArgs.builder()
            .constraints(constraints?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .statistics(statistics?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ModelPackageModelDataQualityArgs].
 */
@PulumiTagMarker
public class ModelPackageModelDataQualityArgsBuilder internal constructor() {
    private var constraints: Output? = null

    private var statistics: Output? = null

    /**
     * @param value Data quality constraints for a model.
     */
    @JvmName("lqrowobtocduxcdg")
    public suspend fun constraints(`value`: Output) {
        this.constraints = value
    }

    /**
     * @param value Data quality statistics for a model.
     */
    @JvmName("jgacayijkwqmbqur")
    public suspend fun statistics(`value`: Output) {
        this.statistics = value
    }

    /**
     * @param value Data quality constraints for a model.
     */
    @JvmName("cvgxcdeqjihfhgbi")
    public suspend fun constraints(`value`: ModelPackageMetricsSourceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.constraints = mapped
    }

    /**
     * @param argument Data quality constraints for a model.
     */
    @JvmName("hvfijgmjfubtxysp")
    public suspend fun constraints(argument: suspend ModelPackageMetricsSourceArgsBuilder.() -> Unit) {
        val toBeMapped = ModelPackageMetricsSourceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.constraints = mapped
    }

    /**
     * @param value Data quality statistics for a model.
     */
    @JvmName("hnbfqteucweddrbd")
    public suspend fun statistics(`value`: ModelPackageMetricsSourceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.statistics = mapped
    }

    /**
     * @param argument Data quality statistics for a model.
     */
    @JvmName("qduyuxhiriswsuaa")
    public suspend fun statistics(argument: suspend ModelPackageMetricsSourceArgsBuilder.() -> Unit) {
        val toBeMapped = ModelPackageMetricsSourceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.statistics = mapped
    }

    internal fun build(): ModelPackageModelDataQualityArgs = ModelPackageModelDataQualityArgs(
        constraints = constraints,
        statistics = statistics,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy