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

com.pulumi.azurenative.insights.kotlin.inputs.WindowsFirewallLogsDataSourceArgs.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.insights.kotlin.inputs

import com.pulumi.azurenative.insights.inputs.WindowsFirewallLogsDataSourceArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Enables Firewall logs to be collected by this data collection rule.
 * @property name A friendly name for the data source.
 * This name should be unique across all data sources (regardless of type) within the data collection rule.
 * @property streams Firewall logs streams
 */
public data class WindowsFirewallLogsDataSourceArgs(
    public val name: Output? = null,
    public val streams: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.insights.inputs.WindowsFirewallLogsDataSourceArgs =
        com.pulumi.azurenative.insights.inputs.WindowsFirewallLogsDataSourceArgs.builder()
            .name(name?.applyValue({ args0 -> args0 }))
            .streams(streams.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [WindowsFirewallLogsDataSourceArgs].
 */
@PulumiTagMarker
public class WindowsFirewallLogsDataSourceArgsBuilder internal constructor() {
    private var name: Output? = null

    private var streams: Output>? = null

    /**
     * @param value A friendly name for the data source.
     * This name should be unique across all data sources (regardless of type) within the data collection rule.
     */
    @JvmName("hqymxnajlsktxucq")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Firewall logs streams
     */
    @JvmName("ugdesdqeartoyrxo")
    public suspend fun streams(`value`: Output>) {
        this.streams = value
    }

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

    /**
     * @param values Firewall logs streams
     */
    @JvmName("jdponuxiwqaowqqc")
    public suspend fun streams(values: List>) {
        this.streams = Output.all(values)
    }

    /**
     * @param value A friendly name for the data source.
     * This name should be unique across all data sources (regardless of type) within the data collection rule.
     */
    @JvmName("fdkcbhjfnfsrdgpa")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Firewall logs streams
     */
    @JvmName("jaswpmseqmbcowyx")
    public suspend fun streams(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.streams = mapped
    }

    /**
     * @param values Firewall logs streams
     */
    @JvmName("vhratklftubakjfj")
    public suspend fun streams(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.streams = mapped
    }

    internal fun build(): WindowsFirewallLogsDataSourceArgs = WindowsFirewallLogsDataSourceArgs(
        name = name,
        streams = streams ?: throw PulumiNullFieldException("streams"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy