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

com.pulumi.cloudflare.kotlin.inputs.ListItemArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin.inputs

import com.pulumi.cloudflare.inputs.ListItemArgs.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.jvm.JvmName

/**
 *
 * @property comment An optional comment for the item.
 * @property value
 */
public data class ListItemArgs(
    public val comment: Output? = null,
    public val `value`: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.ListItemArgs =
        com.pulumi.cloudflare.inputs.ListItemArgs.builder()
            .comment(comment?.applyValue({ args0 -> args0 }))
            .`value`(`value`.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ListItemArgs].
 */
@PulumiTagMarker
public class ListItemArgsBuilder internal constructor() {
    private var comment: Output? = null

    private var `value`: Output? = null

    /**
     * @param value An optional comment for the item.
     */
    @JvmName("dxkuxdegllhkvwvd")
    public suspend fun comment(`value`: Output) {
        this.comment = value
    }

    /**
     * @param value
     */
    @JvmName("buthrbqqqcubncls")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

    /**
     * @param value An optional comment for the item.
     */
    @JvmName("tlvewuuwkvinkifw")
    public suspend fun comment(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.comment = mapped
    }

    /**
     * @param value
     */
    @JvmName("pburtqejdqpvigeq")
    public suspend fun `value`(`value`: ListItemValueArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

    /**
     * @param argument
     */
    @JvmName("gjmmvafgyaywtxed")
    public suspend fun `value`(argument: suspend ListItemValueArgsBuilder.() -> Unit) {
        val toBeMapped = ListItemValueArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.`value` = mapped
    }

    internal fun build(): ListItemArgs = ListItemArgs(
        comment = comment,
        `value` = `value` ?: throw PulumiNullFieldException("value"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy