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

com.pulumi.azurenative.databoxedge.kotlin.inputs.MetricConfigurationArgs.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.databoxedge.kotlin.inputs

import com.pulumi.azurenative.databoxedge.inputs.MetricConfigurationArgs.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

/**
 * Metric configuration.
 * @property counterSets Host name for the IoT hub associated to the device.
 * @property mdmAccount The MDM account to which the counters should be pushed.
 * @property metricNameSpace The MDM namespace to which the counters should be pushed. This is required if MDMAccount is specified
 * @property resourceId The Resource ID on which the metrics should be pushed.
 */
public data class MetricConfigurationArgs(
    public val counterSets: Output>,
    public val mdmAccount: Output? = null,
    public val metricNameSpace: Output? = null,
    public val resourceId: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.databoxedge.inputs.MetricConfigurationArgs =
        com.pulumi.azurenative.databoxedge.inputs.MetricConfigurationArgs.builder()
            .counterSets(
                counterSets.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .mdmAccount(mdmAccount?.applyValue({ args0 -> args0 }))
            .metricNameSpace(metricNameSpace?.applyValue({ args0 -> args0 }))
            .resourceId(resourceId.applyValue({ args0 -> args0 })).build()
}

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

    private var mdmAccount: Output? = null

    private var metricNameSpace: Output? = null

    private var resourceId: Output? = null

    /**
     * @param value Host name for the IoT hub associated to the device.
     */
    @JvmName("rrcnnlkpsibkgoft")
    public suspend fun counterSets(`value`: Output>) {
        this.counterSets = value
    }

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

    /**
     * @param values Host name for the IoT hub associated to the device.
     */
    @JvmName("ojjlyhvpelkorddf")
    public suspend fun counterSets(values: List>) {
        this.counterSets = Output.all(values)
    }

    /**
     * @param value The MDM account to which the counters should be pushed.
     */
    @JvmName("ygipvjjqjpwhepkw")
    public suspend fun mdmAccount(`value`: Output) {
        this.mdmAccount = value
    }

    /**
     * @param value The MDM namespace to which the counters should be pushed. This is required if MDMAccount is specified
     */
    @JvmName("iplioedfwxsvijgy")
    public suspend fun metricNameSpace(`value`: Output) {
        this.metricNameSpace = value
    }

    /**
     * @param value The Resource ID on which the metrics should be pushed.
     */
    @JvmName("qfjoagbrqhmoncch")
    public suspend fun resourceId(`value`: Output) {
        this.resourceId = value
    }

    /**
     * @param value Host name for the IoT hub associated to the device.
     */
    @JvmName("vietmybebqwyfucy")
    public suspend fun counterSets(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.counterSets = mapped
    }

    /**
     * @param argument Host name for the IoT hub associated to the device.
     */
    @JvmName("rvltbggaefjswusj")
    public suspend fun counterSets(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            MetricCounterSetArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.counterSets = mapped
    }

    /**
     * @param argument Host name for the IoT hub associated to the device.
     */
    @JvmName("ybkgrnvkhyeuldms")
    public suspend fun counterSets(vararg argument: suspend MetricCounterSetArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            MetricCounterSetArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.counterSets = mapped
    }

    /**
     * @param argument Host name for the IoT hub associated to the device.
     */
    @JvmName("dfmopkxvfhjsgvvb")
    public suspend fun counterSets(argument: suspend MetricCounterSetArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(MetricCounterSetArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.counterSets = mapped
    }

    /**
     * @param values Host name for the IoT hub associated to the device.
     */
    @JvmName("bjtuyeblccyujbjt")
    public suspend fun counterSets(vararg values: MetricCounterSetArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.counterSets = mapped
    }

    /**
     * @param value The MDM account to which the counters should be pushed.
     */
    @JvmName("umeemhstbkwwiwbp")
    public suspend fun mdmAccount(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mdmAccount = mapped
    }

    /**
     * @param value The MDM namespace to which the counters should be pushed. This is required if MDMAccount is specified
     */
    @JvmName("oeopdcxxltyggfuh")
    public suspend fun metricNameSpace(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.metricNameSpace = mapped
    }

    /**
     * @param value The Resource ID on which the metrics should be pushed.
     */
    @JvmName("xexfybuiovuqvknv")
    public suspend fun resourceId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.resourceId = mapped
    }

    internal fun build(): MetricConfigurationArgs = MetricConfigurationArgs(
        counterSets = counterSets ?: throw PulumiNullFieldException("counterSets"),
        mdmAccount = mdmAccount,
        metricNameSpace = metricNameSpace,
        resourceId = resourceId ?: throw PulumiNullFieldException("resourceId"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy