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

com.pulumi.cloudflare.kotlin.outputs.InfrastructureAccessTargetIp.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.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),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy