com.pulumi.cloudflare.kotlin.inputs.InfrastructureAccessTargetIpIpv4Args.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.InfrastructureAccessTargetIpIpv4Args.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property ipAddr The IP address of the target.
* @property virtualNetworkId The private virtual network identifier for the target.
*/
public data class InfrastructureAccessTargetIpIpv4Args(
public val ipAddr: Output,
public val virtualNetworkId: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.InfrastructureAccessTargetIpIpv4Args =
com.pulumi.cloudflare.inputs.InfrastructureAccessTargetIpIpv4Args.builder()
.ipAddr(ipAddr.applyValue({ args0 -> args0 }))
.virtualNetworkId(virtualNetworkId.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [InfrastructureAccessTargetIpIpv4Args].
*/
@PulumiTagMarker
public class InfrastructureAccessTargetIpIpv4ArgsBuilder internal constructor() {
private var ipAddr: Output? = null
private var virtualNetworkId: Output? = null
/**
* @param value The IP address of the target.
*/
@JvmName("kvlarlooejkkgetg")
public suspend fun ipAddr(`value`: Output) {
this.ipAddr = value
}
/**
* @param value The private virtual network identifier for the target.
*/
@JvmName("popvkhvtdcfpnywe")
public suspend fun virtualNetworkId(`value`: Output) {
this.virtualNetworkId = value
}
/**
* @param value The IP address of the target.
*/
@JvmName("tcrwtifhrtlraoll")
public suspend fun ipAddr(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.ipAddr = mapped
}
/**
* @param value The private virtual network identifier for the target.
*/
@JvmName("smqohuwgoxgjnnfw")
public suspend fun virtualNetworkId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.virtualNetworkId = mapped
}
internal fun build(): InfrastructureAccessTargetIpIpv4Args = InfrastructureAccessTargetIpIpv4Args(
ipAddr = ipAddr ?: throw PulumiNullFieldException("ipAddr"),
virtualNetworkId = virtualNetworkId ?: throw PulumiNullFieldException("virtualNetworkId"),
)
}