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

com.pulumi.azurenative.machinelearning.kotlin.inputs.DiagnosticsConfigurationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.machinelearning.kotlin.inputs

import com.pulumi.azurenative.machinelearning.inputs.DiagnosticsConfigurationArgs.builder
import com.pulumi.azurenative.machinelearning.kotlin.enums.DiagnosticsLevel
import com.pulumi.core.Either
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

/**
 * Diagnostics settings for an Azure ML web service.
 * @property expiry Specifies the date and time when the logging will cease. If null, diagnostic collection is not time limited.
 * @property level Specifies the verbosity of the diagnostic output. Valid values are: None - disables tracing; Error - collects only error (stderr) traces; All - collects all traces (stdout and stderr).
 */
public data class DiagnosticsConfigurationArgs(
    public val expiry: Output? = null,
    public val level: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.machinelearning.inputs.DiagnosticsConfigurationArgs = com.pulumi.azurenative.machinelearning.inputs.DiagnosticsConfigurationArgs.builder()
        .expiry(expiry?.applyValue({ args0 -> args0 }))
        .level(
            level.applyValue({ args0 ->
                args0.transform({ args0 -> args0 }, { args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                })
            }),
        ).build()
}

/**
 * Builder for [DiagnosticsConfigurationArgs].
 */
@PulumiTagMarker
public class DiagnosticsConfigurationArgsBuilder internal constructor() {
    private var expiry: Output? = null

    private var level: Output>? = null

    /**
     * @param value Specifies the date and time when the logging will cease. If null, diagnostic collection is not time limited.
     */
    @JvmName("memttykfojpxuhce")
    public suspend fun expiry(`value`: Output) {
        this.expiry = value
    }

    /**
     * @param value Specifies the verbosity of the diagnostic output. Valid values are: None - disables tracing; Error - collects only error (stderr) traces; All - collects all traces (stdout and stderr).
     */
    @JvmName("amkybfdmuqjeeuwc")
    public suspend fun level(`value`: Output>) {
        this.level = value
    }

    /**
     * @param value Specifies the date and time when the logging will cease. If null, diagnostic collection is not time limited.
     */
    @JvmName("cpqycwlksghbhdao")
    public suspend fun expiry(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.expiry = mapped
    }

    /**
     * @param value Specifies the verbosity of the diagnostic output. Valid values are: None - disables tracing; Error - collects only error (stderr) traces; All - collects all traces (stdout and stderr).
     */
    @JvmName("btxlduvkhsofimuf")
    public suspend fun level(`value`: Either) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.level = mapped
    }

    /**
     * @param value Specifies the verbosity of the diagnostic output. Valid values are: None - disables tracing; Error - collects only error (stderr) traces; All - collects all traces (stdout and stderr).
     */
    @JvmName("wiiyrsvumxfhogyk")
    public fun level(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.level = mapped
    }

    /**
     * @param value Specifies the verbosity of the diagnostic output. Valid values are: None - disables tracing; Error - collects only error (stderr) traces; All - collects all traces (stdout and stderr).
     */
    @JvmName("phyoiwelugtepuxd")
    public fun level(`value`: DiagnosticsLevel) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.level = mapped
    }

    internal fun build(): DiagnosticsConfigurationArgs = DiagnosticsConfigurationArgs(
        expiry = expiry,
        level = level ?: throw PulumiNullFieldException("level"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy