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

com.pulumi.azurenative.monitor.kotlin.inputs.PipelineArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.monitor.kotlin.inputs

import com.pulumi.azurenative.monitor.inputs.PipelineArgs.builder
import com.pulumi.azurenative.monitor.kotlin.enums.PipelineType
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.collections.List
import kotlin.jvm.JvmName

/**
 * Pipeline Info.
 * @property exporters Reference to exporters configured for the pipeline.
 * @property name Name of the pipeline.
 * @property processors Reference to processors configured for the pipeline.
 * @property receivers Reference to receivers configured for the pipeline.
 * @property type The type of pipeline
 */
public data class PipelineArgs(
    public val exporters: Output>,
    public val name: Output,
    public val processors: Output>? = null,
    public val receivers: Output>,
    public val type: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.monitor.inputs.PipelineArgs =
        com.pulumi.azurenative.monitor.inputs.PipelineArgs.builder()
            .exporters(exporters.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .name(name.applyValue({ args0 -> args0 }))
            .processors(processors?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .receivers(receivers.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .type(
                type.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var name: Output? = null

    private var processors: Output>? = null

    private var receivers: Output>? = null

    private var type: Output>? = null

    /**
     * @param value Reference to exporters configured for the pipeline.
     */
    @JvmName("widgoywekdlvpude")
    public suspend fun exporters(`value`: Output>) {
        this.exporters = value
    }

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

    /**
     * @param values Reference to exporters configured for the pipeline.
     */
    @JvmName("whghbilvvmistsgh")
    public suspend fun exporters(values: List>) {
        this.exporters = Output.all(values)
    }

    /**
     * @param value Name of the pipeline.
     */
    @JvmName("gkokhnpebsxnlevj")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Reference to processors configured for the pipeline.
     */
    @JvmName("ibjehgxsbcxlxekm")
    public suspend fun processors(`value`: Output>) {
        this.processors = value
    }

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

    /**
     * @param values Reference to processors configured for the pipeline.
     */
    @JvmName("ggmiwjkebyyvmwbs")
    public suspend fun processors(values: List>) {
        this.processors = Output.all(values)
    }

    /**
     * @param value Reference to receivers configured for the pipeline.
     */
    @JvmName("mdwpopctekqbqnmi")
    public suspend fun receivers(`value`: Output>) {
        this.receivers = value
    }

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

    /**
     * @param values Reference to receivers configured for the pipeline.
     */
    @JvmName("ywjvlxpfhqheohfb")
    public suspend fun receivers(values: List>) {
        this.receivers = Output.all(values)
    }

    /**
     * @param value The type of pipeline
     */
    @JvmName("qbnvjaowwfxdcsxc")
    public suspend fun type(`value`: Output>) {
        this.type = value
    }

    /**
     * @param value Reference to exporters configured for the pipeline.
     */
    @JvmName("cenrvaktdjiwfkuv")
    public suspend fun exporters(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.exporters = mapped
    }

    /**
     * @param values Reference to exporters configured for the pipeline.
     */
    @JvmName("vxgwucwvptblhema")
    public suspend fun exporters(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.exporters = mapped
    }

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

    /**
     * @param value Reference to processors configured for the pipeline.
     */
    @JvmName("lymsmohrilmpxqyu")
    public suspend fun processors(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.processors = mapped
    }

    /**
     * @param values Reference to processors configured for the pipeline.
     */
    @JvmName("xrarxobjfxsxpqyx")
    public suspend fun processors(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.processors = mapped
    }

    /**
     * @param value Reference to receivers configured for the pipeline.
     */
    @JvmName("ljleukmvmepybjfv")
    public suspend fun receivers(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.receivers = mapped
    }

    /**
     * @param values Reference to receivers configured for the pipeline.
     */
    @JvmName("ophrrokqlpmpywyn")
    public suspend fun receivers(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.receivers = mapped
    }

    /**
     * @param value The type of pipeline
     */
    @JvmName("dgndrcmphfvhvbdi")
    public suspend fun type(`value`: Either) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value The type of pipeline
     */
    @JvmName("olynurkqvrlylcxu")
    public fun type(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value The type of pipeline
     */
    @JvmName("onvteslcqcfgmvxm")
    public fun type(`value`: PipelineType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): PipelineArgs = PipelineArgs(
        exporters = exporters ?: throw PulumiNullFieldException("exporters"),
        name = name ?: throw PulumiNullFieldException("name"),
        processors = processors,
        receivers = receivers ?: throw PulumiNullFieldException("receivers"),
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy