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

com.pulumi.azure.hdinsight.kotlin.inputs.KafkaClusterMonitorArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.hdinsight.kotlin.inputs

import com.pulumi.azure.hdinsight.inputs.KafkaClusterMonitorArgs.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 logAnalyticsWorkspaceId The Operations Management Suite (OMS) workspace ID.
 * @property primaryKey The Operations Management Suite (OMS) workspace key.
 */
public data class KafkaClusterMonitorArgs(
    public val logAnalyticsWorkspaceId: Output,
    public val primaryKey: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.hdinsight.inputs.KafkaClusterMonitorArgs =
        com.pulumi.azure.hdinsight.inputs.KafkaClusterMonitorArgs.builder()
            .logAnalyticsWorkspaceId(logAnalyticsWorkspaceId.applyValue({ args0 -> args0 }))
            .primaryKey(primaryKey.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [KafkaClusterMonitorArgs].
 */
@PulumiTagMarker
public class KafkaClusterMonitorArgsBuilder internal constructor() {
    private var logAnalyticsWorkspaceId: Output? = null

    private var primaryKey: Output? = null

    /**
     * @param value The Operations Management Suite (OMS) workspace ID.
     */
    @JvmName("elkummgssvwaxdyp")
    public suspend fun logAnalyticsWorkspaceId(`value`: Output) {
        this.logAnalyticsWorkspaceId = value
    }

    /**
     * @param value The Operations Management Suite (OMS) workspace key.
     */
    @JvmName("kstmqnhdunatgqpj")
    public suspend fun primaryKey(`value`: Output) {
        this.primaryKey = value
    }

    /**
     * @param value The Operations Management Suite (OMS) workspace ID.
     */
    @JvmName("xplawgjtvomnrcrc")
    public suspend fun logAnalyticsWorkspaceId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.logAnalyticsWorkspaceId = mapped
    }

    /**
     * @param value The Operations Management Suite (OMS) workspace key.
     */
    @JvmName("kxmbtuocfwgacljs")
    public suspend fun primaryKey(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.primaryKey = mapped
    }

    internal fun build(): KafkaClusterMonitorArgs = KafkaClusterMonitorArgs(
        logAnalyticsWorkspaceId = logAnalyticsWorkspaceId ?: throw
            PulumiNullFieldException("logAnalyticsWorkspaceId"),
        primaryKey = primaryKey ?: throw PulumiNullFieldException("primaryKey"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy