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

com.pulumi.azure.monitoring.kotlin.inputs.DataCollectionRuleDestinationsEventHubArgs.kt Maven / Gradle / Ivy

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

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

import com.pulumi.azure.monitoring.inputs.DataCollectionRuleDestinationsEventHubArgs.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.jvm.JvmName

/**
 *
 * @property eventHubId The resource ID of the Event Hub.
 * @property name The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
 */
public data class DataCollectionRuleDestinationsEventHubArgs(
    public val eventHubId: Output,
    public val name: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.monitoring.inputs.DataCollectionRuleDestinationsEventHubArgs =
        com.pulumi.azure.monitoring.inputs.DataCollectionRuleDestinationsEventHubArgs.builder()
            .eventHubId(eventHubId.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DataCollectionRuleDestinationsEventHubArgs].
 */
@PulumiTagMarker
public class DataCollectionRuleDestinationsEventHubArgsBuilder internal constructor() {
    private var eventHubId: Output? = null

    private var name: Output? = null

    /**
     * @param value The resource ID of the Event Hub.
     */
    @JvmName("vsvitvijfitgtuel")
    public suspend fun eventHubId(`value`: Output) {
        this.eventHubId = value
    }

    /**
     * @param value The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
     */
    @JvmName("sfukqopdhuyfcypp")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The resource ID of the Event Hub.
     */
    @JvmName("jrjdrlhfilxddsls")
    public suspend fun eventHubId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.eventHubId = mapped
    }

    /**
     * @param value The name which should be used for this destination. This name should be unique across all destinations regardless of type within the Data Collection Rule.
     */
    @JvmName("kifjtcdmgfiqswrd")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    internal fun build(): DataCollectionRuleDestinationsEventHubArgs =
        DataCollectionRuleDestinationsEventHubArgs(
            eventHubId = eventHubId ?: throw PulumiNullFieldException("eventHubId"),
            name = name ?: throw PulumiNullFieldException("name"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy