com.pulumi.cloudflare.kotlin.inputs.ApiTokenConditionArgs.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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.cloudflare.kotlin.inputs
import com.pulumi.cloudflare.inputs.ApiTokenConditionArgs.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 requestIp Request IP related conditions.
*/
public data class ApiTokenConditionArgs(
public val requestIp: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.ApiTokenConditionArgs =
com.pulumi.cloudflare.inputs.ApiTokenConditionArgs.builder()
.requestIp(requestIp?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ApiTokenConditionArgs].
*/
@PulumiTagMarker
public class ApiTokenConditionArgsBuilder internal constructor() {
private var requestIp: Output? = null
/**
* @param value Request IP related conditions.
*/
@JvmName("ukvepcnuqhhmvyrm")
public suspend fun requestIp(`value`: Output) {
this.requestIp = value
}
/**
* @param value Request IP related conditions.
*/
@JvmName("lmmfxjpgloqhpbxg")
public suspend fun requestIp(`value`: ApiTokenConditionRequestIpArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.requestIp = mapped
}
/**
* @param argument Request IP related conditions.
*/
@JvmName("hfydnqgalusbhhbl")
public suspend fun requestIp(argument: suspend ApiTokenConditionRequestIpArgsBuilder.() -> Unit) {
val toBeMapped = ApiTokenConditionRequestIpArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.requestIp = mapped
}
internal fun build(): ApiTokenConditionArgs = ApiTokenConditionArgs(
requestIp = requestIp,
)
}