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

com.pulumi.azurenative.monitor.kotlin.inputs.ScopeMapArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.monitor.kotlin.inputs

import com.pulumi.azurenative.monitor.inputs.ScopeMapArgs.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

/**
 * Scope map for schema in azure monitor.
 * @property from Scope Map Key.
 * @property to Scope Map Value.
 */
public data class ScopeMapArgs(
    public val from: Output,
    public val to: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.monitor.inputs.ScopeMapArgs =
        com.pulumi.azurenative.monitor.inputs.ScopeMapArgs.builder()
            .from(from.applyValue({ args0 -> args0 }))
            .to(to.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ScopeMapArgs].
 */
@PulumiTagMarker
public class ScopeMapArgsBuilder internal constructor() {
    private var from: Output? = null

    private var to: Output? = null

    /**
     * @param value Scope Map Key.
     */
    @JvmName("bwtpswtpvvjvntjn")
    public suspend fun from(`value`: Output) {
        this.from = value
    }

    /**
     * @param value Scope Map Value.
     */
    @JvmName("xbmuohhdtetfhvmg")
    public suspend fun to(`value`: Output) {
        this.to = value
    }

    /**
     * @param value Scope Map Key.
     */
    @JvmName("gfuvllgrwievctkd")
    public suspend fun from(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.from = mapped
    }

    /**
     * @param value Scope Map Value.
     */
    @JvmName("jagjqnayoahvikal")
    public suspend fun to(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.to = mapped
    }

    internal fun build(): ScopeMapArgs = ScopeMapArgs(
        from = from ?: throw PulumiNullFieldException("from"),
        to = to ?: throw PulumiNullFieldException("to"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy