com.pulumi.cloudflare.kotlin.inputs.InfrastructureAccessTargetIpArgs.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.InfrastructureAccessTargetIpArgs.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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property ipv4 The target's IPv4 address.
* @property ipv6 The target's IPv6 address.
*/
public data class InfrastructureAccessTargetIpArgs(
public val ipv4: Output? = null,
public val ipv6: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.InfrastructureAccessTargetIpArgs =
com.pulumi.cloudflare.inputs.InfrastructureAccessTargetIpArgs.builder()
.ipv4(ipv4?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.ipv6(ipv6?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [InfrastructureAccessTargetIpArgs].
*/
@PulumiTagMarker
public class InfrastructureAccessTargetIpArgsBuilder internal constructor() {
private var ipv4: Output? = null
private var ipv6: Output? = null
/**
* @param value The target's IPv4 address.
*/
@JvmName("xieamnnlfouetfap")
public suspend fun ipv4(`value`: Output) {
this.ipv4 = value
}
/**
* @param value The target's IPv6 address.
*/
@JvmName("gijhacmatsjqrqtu")
public suspend fun ipv6(`value`: Output) {
this.ipv6 = value
}
/**
* @param value The target's IPv4 address.
*/
@JvmName("bwkaltjgwpeygjiv")
public suspend fun ipv4(`value`: InfrastructureAccessTargetIpIpv4Args?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.ipv4 = mapped
}
/**
* @param argument The target's IPv4 address.
*/
@JvmName("faqhikgelnwrnatb")
public suspend fun ipv4(argument: suspend InfrastructureAccessTargetIpIpv4ArgsBuilder.() -> Unit) {
val toBeMapped = InfrastructureAccessTargetIpIpv4ArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.ipv4 = mapped
}
/**
* @param value The target's IPv6 address.
*/
@JvmName("oehskvrginilgpvj")
public suspend fun ipv6(`value`: InfrastructureAccessTargetIpIpv6Args?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.ipv6 = mapped
}
/**
* @param argument The target's IPv6 address.
*/
@JvmName("wkdkwtmwchrflmwq")
public suspend fun ipv6(argument: suspend InfrastructureAccessTargetIpIpv6ArgsBuilder.() -> Unit) {
val toBeMapped = InfrastructureAccessTargetIpIpv6ArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.ipv6 = mapped
}
internal fun build(): InfrastructureAccessTargetIpArgs = InfrastructureAccessTargetIpArgs(
ipv4 = ipv4,
ipv6 = ipv6,
)
}