com.pulumi.cloudflare.kotlin.outputs.ListItemValue.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.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property asn
* @property hostnames
* @property ip
* @property redirects
*/
public data class ListItemValue(
public val asn: Int? = null,
public val hostnames: List? = null,
public val ip: String? = null,
public val redirects: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.cloudflare.outputs.ListItemValue): ListItemValue =
ListItemValue(
asn = javaType.asn().map({ args0 -> args0 }).orElse(null),
hostnames = javaType.hostnames().map({ args0 ->
args0.let({ args0 ->
com.pulumi.cloudflare.kotlin.outputs.ListItemValueHostname.Companion.toKotlin(args0)
})
}),
ip = javaType.ip().map({ args0 -> args0 }).orElse(null),
redirects = javaType.redirects().map({ args0 ->
args0.let({ args0 ->
com.pulumi.cloudflare.kotlin.outputs.ListItemValueRedirect.Companion.toKotlin(args0)
})
}),
)
}
}