com.pulumi.cloudflare.kotlin.inputs.ListItemValueArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-cloudflare-kotlin Show documentation
Show all versions of pulumi-cloudflare-kotlin Show documentation
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