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

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

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

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

import com.pulumi.azurenative.servicefabricmesh.inputs.DiagnosticsRefArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Reference to sinks in DiagnosticsDescription.
 * @property enabled Status of whether or not sinks are enabled.
 * @property sinkRefs List of sinks to be used if enabled. References the list of sinks in DiagnosticsDescription.
 */
public data class DiagnosticsRefArgs(
    public val enabled: Output? = null,
    public val sinkRefs: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.servicefabricmesh.inputs.DiagnosticsRefArgs =
        com.pulumi.azurenative.servicefabricmesh.inputs.DiagnosticsRefArgs.builder()
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .sinkRefs(sinkRefs?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [DiagnosticsRefArgs].
 */
@PulumiTagMarker
public class DiagnosticsRefArgsBuilder internal constructor() {
    private var enabled: Output? = null

    private var sinkRefs: Output>? = null

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

    /**
     * @param value List of sinks to be used if enabled. References the list of sinks in DiagnosticsDescription.
     */
    @JvmName("eqqolyyyfwjkwots")
    public suspend fun sinkRefs(`value`: Output>) {
        this.sinkRefs = value
    }

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

    /**
     * @param values List of sinks to be used if enabled. References the list of sinks in DiagnosticsDescription.
     */
    @JvmName("fhbfvbbdgqnyeljd")
    public suspend fun sinkRefs(values: List>) {
        this.sinkRefs = Output.all(values)
    }

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

    /**
     * @param value List of sinks to be used if enabled. References the list of sinks in DiagnosticsDescription.
     */
    @JvmName("lgclyxkuaapxkccg")
    public suspend fun sinkRefs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sinkRefs = mapped
    }

    /**
     * @param values List of sinks to be used if enabled. References the list of sinks in DiagnosticsDescription.
     */
    @JvmName("twuvvvwlbtnkawgy")
    public suspend fun sinkRefs(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sinkRefs = mapped
    }

    internal fun build(): DiagnosticsRefArgs = DiagnosticsRefArgs(
        enabled = enabled,
        sinkRefs = sinkRefs,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy