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

com.pulumi.azurenative.portal.kotlin.inputs.DashboardPartsArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.portal.kotlin.inputs

import com.pulumi.azurenative.portal.inputs.DashboardPartsArgs.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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * A dashboard part.
 * @property metadata The dashboard part's metadata.
 * @property position The dashboard's part position.
 */
public data class DashboardPartsArgs(
    public val metadata: Output? = null,
    public val position: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.portal.inputs.DashboardPartsArgs =
        com.pulumi.azurenative.portal.inputs.DashboardPartsArgs.builder()
            .metadata(metadata?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .position(position.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [DashboardPartsArgs].
 */
@PulumiTagMarker
public class DashboardPartsArgsBuilder internal constructor() {
    private var metadata: Output? = null

    private var position: Output? = null

    /**
     * @param value The dashboard part's metadata.
     */
    @JvmName("bkrjqqeiqxyduyre")
    public suspend fun metadata(`value`: Output) {
        this.metadata = value
    }

    /**
     * @param value The dashboard's part position.
     */
    @JvmName("brdbckvokprlycsd")
    public suspend fun position(`value`: Output) {
        this.position = value
    }

    /**
     * @param value The dashboard part's metadata.
     */
    @JvmName("etvbalprgyvxssto")
    public suspend fun metadata(`value`: MarkdownPartMetadataArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.metadata = mapped
    }

    /**
     * @param argument The dashboard part's metadata.
     */
    @JvmName("kjktnigehewskkun")
    public suspend fun metadata(argument: suspend MarkdownPartMetadataArgsBuilder.() -> Unit) {
        val toBeMapped = MarkdownPartMetadataArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.metadata = mapped
    }

    /**
     * @param value The dashboard's part position.
     */
    @JvmName("epbituyfepqfxqgd")
    public suspend fun position(`value`: DashboardPartsPositionArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.position = mapped
    }

    /**
     * @param argument The dashboard's part position.
     */
    @JvmName("lclikgkpbijocaon")
    public suspend fun position(argument: suspend DashboardPartsPositionArgsBuilder.() -> Unit) {
        val toBeMapped = DashboardPartsPositionArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.position = mapped
    }

    internal fun build(): DashboardPartsArgs = DashboardPartsArgs(
        metadata = metadata,
        position = position ?: throw PulumiNullFieldException("position"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy