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

com.pulumi.azurenative.servicefabricmesh.kotlin.inputs.DiagnosticsDescriptionArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.servicefabricmesh.kotlin.inputs

import com.pulumi.azurenative.servicefabricmesh.inputs.DiagnosticsDescriptionArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Describes the diagnostics options available
 * @property defaultSinkRefs The sinks to be used if diagnostics is enabled. Sink choices can be overridden at the service and code package level.
 * @property enabled Status of whether or not sinks are enabled.
 * @property sinks List of supported sinks that can be referenced.
 */
public data class DiagnosticsDescriptionArgs(
    public val defaultSinkRefs: Output>? = null,
    public val enabled: Output? = null,
    public val sinks: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.servicefabricmesh.inputs.DiagnosticsDescriptionArgs = com.pulumi.azurenative.servicefabricmesh.inputs.DiagnosticsDescriptionArgs.builder()
        .defaultSinkRefs(defaultSinkRefs?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
        .enabled(enabled?.applyValue({ args0 -> args0 }))
        .sinks(
            sinks?.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                })
            }),
        ).build()
}

/**
 * Builder for [DiagnosticsDescriptionArgs].
 */
@PulumiTagMarker
public class DiagnosticsDescriptionArgsBuilder internal constructor() {
    private var defaultSinkRefs: Output>? = null

    private var enabled: Output? = null

    private var sinks: Output>? = null

    /**
     * @param value The sinks to be used if diagnostics is enabled. Sink choices can be overridden at the service and code package level.
     */
    @JvmName("dqswakyvyglochnt")
    public suspend fun defaultSinkRefs(`value`: Output>) {
        this.defaultSinkRefs = value
    }

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

    /**
     * @param values The sinks to be used if diagnostics is enabled. Sink choices can be overridden at the service and code package level.
     */
    @JvmName("veltshkyjoowkxls")
    public suspend fun defaultSinkRefs(values: List>) {
        this.defaultSinkRefs = Output.all(values)
    }

    /**
     * @param value Status of whether or not sinks are enabled.
     */
    @JvmName("qbrilrgttiulvoqa")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value List of supported sinks that can be referenced.
     */
    @JvmName("qpexchgniypdytcs")
    public suspend fun sinks(`value`: Output>) {
        this.sinks = value
    }

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

    /**
     * @param values List of supported sinks that can be referenced.
     */
    @JvmName("naaemdyimsqeusub")
    public suspend fun sinks(values: List>) {
        this.sinks = Output.all(values)
    }

    /**
     * @param value The sinks to be used if diagnostics is enabled. Sink choices can be overridden at the service and code package level.
     */
    @JvmName("anpphqpllterfqcs")
    public suspend fun defaultSinkRefs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultSinkRefs = mapped
    }

    /**
     * @param values The sinks to be used if diagnostics is enabled. Sink choices can be overridden at the service and code package level.
     */
    @JvmName("yjhiqmngqhijbjfu")
    public suspend fun defaultSinkRefs(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.defaultSinkRefs = mapped
    }

    /**
     * @param value Status of whether or not sinks are enabled.
     */
    @JvmName("scdopxotusyqblwd")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value List of supported sinks that can be referenced.
     */
    @JvmName("rvpgluvunflnklie")
    public suspend fun sinks(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sinks = mapped
    }

    /**
     * @param argument List of supported sinks that can be referenced.
     */
    @JvmName("arowfcpekdusliab")
    public suspend fun sinks(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AzureInternalMonitoringPipelineSinkDescriptionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.sinks = mapped
    }

    /**
     * @param argument List of supported sinks that can be referenced.
     */
    @JvmName("aqhvweiorufasvrw")
    public suspend fun sinks(vararg argument: suspend AzureInternalMonitoringPipelineSinkDescriptionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AzureInternalMonitoringPipelineSinkDescriptionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.sinks = mapped
    }

    /**
     * @param argument List of supported sinks that can be referenced.
     */
    @JvmName("tqdntunxnqlufbdd")
    public suspend fun sinks(argument: suspend AzureInternalMonitoringPipelineSinkDescriptionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AzureInternalMonitoringPipelineSinkDescriptionArgsBuilder().applySuspend
                { argument() }.build(),
        )
        val mapped = of(toBeMapped)
        this.sinks = mapped
    }

    /**
     * @param values List of supported sinks that can be referenced.
     */
    @JvmName("svskwiwvtfmggeon")
    public suspend fun sinks(vararg values: AzureInternalMonitoringPipelineSinkDescriptionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sinks = mapped
    }

    internal fun build(): DiagnosticsDescriptionArgs = DiagnosticsDescriptionArgs(
        defaultSinkRefs = defaultSinkRefs,
        enabled = enabled,
        sinks = sinks,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy