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

com.pulumi.azure.monitoring.kotlin.inputs.DataCollectionRuleStreamDeclarationArgs.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.monitoring.kotlin.inputs

import com.pulumi.azure.monitoring.inputs.DataCollectionRuleStreamDeclarationArgs.builder
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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property columns One or more `column` blocks as defined above.
 * @property streamName The name of the custom stream. This name should be unique across all `stream_declaration` blocks and must begin with a prefix of `Custom-`.
 */
public data class DataCollectionRuleStreamDeclarationArgs(
    public val columns: Output>,
    public val streamName: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.monitoring.inputs.DataCollectionRuleStreamDeclarationArgs = com.pulumi.azure.monitoring.inputs.DataCollectionRuleStreamDeclarationArgs.builder()
        .columns(
            columns.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                })
            }),
        )
        .streamName(streamName.applyValue({ args0 -> args0 })).build()
}

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

    private var streamName: Output? = null

    /**
     * @param value One or more `column` blocks as defined above.
     */
    @JvmName("heqsnmlngglydyjs")
    public suspend fun columns(`value`: Output>) {
        this.columns = value
    }

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

    /**
     * @param values One or more `column` blocks as defined above.
     */
    @JvmName("horisbrvwyqhruvs")
    public suspend fun columns(values: List>) {
        this.columns = Output.all(values)
    }

    /**
     * @param value The name of the custom stream. This name should be unique across all `stream_declaration` blocks and must begin with a prefix of `Custom-`.
     */
    @JvmName("tkbvspaavbipohvg")
    public suspend fun streamName(`value`: Output) {
        this.streamName = value
    }

    /**
     * @param value One or more `column` blocks as defined above.
     */
    @JvmName("avbhfiubjltvefjy")
    public suspend fun columns(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.columns = mapped
    }

    /**
     * @param argument One or more `column` blocks as defined above.
     */
    @JvmName("mggnaplicagrmwxm")
    public suspend fun columns(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DataCollectionRuleStreamDeclarationColumnArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.columns = mapped
    }

    /**
     * @param argument One or more `column` blocks as defined above.
     */
    @JvmName("kkqkkfpkqutyccht")
    public suspend fun columns(vararg argument: suspend DataCollectionRuleStreamDeclarationColumnArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DataCollectionRuleStreamDeclarationColumnArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.columns = mapped
    }

    /**
     * @param argument One or more `column` blocks as defined above.
     */
    @JvmName("adrfredibhnvdqwi")
    public suspend fun columns(argument: suspend DataCollectionRuleStreamDeclarationColumnArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            DataCollectionRuleStreamDeclarationColumnArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.columns = mapped
    }

    /**
     * @param values One or more `column` blocks as defined above.
     */
    @JvmName("kwsjsxiuemydsgrl")
    public suspend fun columns(vararg values: DataCollectionRuleStreamDeclarationColumnArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.columns = mapped
    }

    /**
     * @param value The name of the custom stream. This name should be unique across all `stream_declaration` blocks and must begin with a prefix of `Custom-`.
     */
    @JvmName("ouoqndcrsiodwdlw")
    public suspend fun streamName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.streamName = mapped
    }

    internal fun build(): DataCollectionRuleStreamDeclarationArgs =
        DataCollectionRuleStreamDeclarationArgs(
            columns = columns ?: throw PulumiNullFieldException("columns"),
            streamName = streamName ?: throw PulumiNullFieldException("streamName"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy