com.pulumi.cloudflare.kotlin.outputs.InfrastructureAccessTargetIp.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.Suppress
/**
*
* @property ipv4 The target's IPv4 address.
* @property ipv6 The target's IPv6 address.
*/
public data class InfrastructureAccessTargetIp(
public val ipv4: InfrastructureAccessTargetIpIpv4? = null,
public val ipv6: InfrastructureAccessTargetIpIpv6? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.cloudflare.outputs.InfrastructureAccessTargetIp): InfrastructureAccessTargetIp = InfrastructureAccessTargetIp(
ipv4 = javaType.ipv4().map({ args0 ->
args0.let({ args0 ->
com.pulumi.cloudflare.kotlin.outputs.InfrastructureAccessTargetIpIpv4.Companion.toKotlin(args0)
})
}).orElse(null),
ipv6 = javaType.ipv6().map({ args0 ->
args0.let({ args0 ->
com.pulumi.cloudflare.kotlin.outputs.InfrastructureAccessTargetIpIpv6.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}