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

com.pulumi.cloudflare.kotlin.inputs.ListItemValueArgs.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.ListItemValueArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property asn
 * @property hostnames
 * @property ip
 * @property redirects
 */
public data class ListItemValueArgs(
    public val asn: Output? = null,
    public val hostnames: Output>? = null,
    public val ip: Output? = null,
    public val redirects: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.ListItemValueArgs =
        com.pulumi.cloudflare.inputs.ListItemValueArgs.builder()
            .asn(asn?.applyValue({ args0 -> args0 }))
            .hostnames(
                hostnames?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .ip(ip?.applyValue({ args0 -> args0 }))
            .redirects(
                redirects?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ListItemValueArgs].
 */
@PulumiTagMarker
public class ListItemValueArgsBuilder internal constructor() {
    private var asn: Output? = null

    private var hostnames: Output>? = null

    private var ip: Output? = null

    private var redirects: Output>? = null

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

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

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

    /**
     * @param values
     */
    @JvmName("dyjwquwnmqgqvesr")
    public suspend fun hostnames(values: List>) {
        this.hostnames = Output.all(values)
    }

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

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

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

    /**
     * @param values
     */
    @JvmName("etperttyyxastkuk")
    public suspend fun redirects(values: List>) {
        this.redirects = Output.all(values)
    }

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

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

    /**
     * @param argument
     */
    @JvmName("jllyoarsunlblupr")
    public suspend fun hostnames(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ListItemValueHostnameArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.hostnames = mapped
    }

    /**
     * @param argument
     */
    @JvmName("qnwykjwtwsdipdwx")
    public suspend fun hostnames(vararg argument: suspend ListItemValueHostnameArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ListItemValueHostnameArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.hostnames = mapped
    }

    /**
     * @param argument
     */
    @JvmName("cvurksugxycoafea")
    public suspend fun hostnames(argument: suspend ListItemValueHostnameArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ListItemValueHostnameArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.hostnames = mapped
    }

    /**
     * @param values
     */
    @JvmName("minpihvhlexptqcu")
    public suspend fun hostnames(vararg values: ListItemValueHostnameArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.hostnames = mapped
    }

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

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

    /**
     * @param argument
     */
    @JvmName("nbtpittmssvdqtql")
    public suspend fun redirects(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ListItemValueRedirectArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.redirects = mapped
    }

    /**
     * @param argument
     */
    @JvmName("vwqhdqwcauflnajo")
    public suspend fun redirects(vararg argument: suspend ListItemValueRedirectArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ListItemValueRedirectArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.redirects = mapped
    }

    /**
     * @param argument
     */
    @JvmName("oewvuavbuexuliba")
    public suspend fun redirects(argument: suspend ListItemValueRedirectArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ListItemValueRedirectArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.redirects = mapped
    }

    /**
     * @param values
     */
    @JvmName("bidrfbusdxrsgebl")
    public suspend fun redirects(vararg values: ListItemValueRedirectArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.redirects = mapped
    }

    internal fun build(): ListItemValueArgs = ListItemValueArgs(
        asn = asn,
        hostnames = hostnames,
        ip = ip,
        redirects = redirects,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy