com.pulumi.cloudflare.kotlin.inputs.AccessRuleConfigurationArgs.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.AccessRuleConfigurationArgs.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 target The request property to target. Available values: `ip`, `ip6`, `ip_range`, `asn`, `country`. **Modifying this attribute will force creation of a new resource.**
* @property value The value to target. Depends on target's type. **Modifying this attribute will force creation of a new resource.**
*/
public data class AccessRuleConfigurationArgs(
public val target: Output,
public val `value`: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.AccessRuleConfigurationArgs =
com.pulumi.cloudflare.inputs.AccessRuleConfigurationArgs.builder()
.target(target.applyValue({ args0 -> args0 }))
.`value`(`value`.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AccessRuleConfigurationArgs].
*/
@PulumiTagMarker
public class AccessRuleConfigurationArgsBuilder internal constructor() {
private var target: Output? = null
private var `value`: Output? = null
/**
* @param value The request property to target. Available values: `ip`, `ip6`, `ip_range`, `asn`, `country`. **Modifying this attribute will force creation of a new resource.**
*/
@JvmName("ohrfjqupqxukvwle")
public suspend fun target(`value`: Output) {
this.target = value
}
/**
* @param value The value to target. Depends on target's type. **Modifying this attribute will force creation of a new resource.**
*/
@JvmName("otyiewtfibqhrjlj")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value The request property to target. Available values: `ip`, `ip6`, `ip_range`, `asn`, `country`. **Modifying this attribute will force creation of a new resource.**
*/
@JvmName("nwddchqqmipwhjua")
public suspend fun target(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.target = mapped
}
/**
* @param value The value to target. Depends on target's type. **Modifying this attribute will force creation of a new resource.**
*/
@JvmName("hjhuebdlsycxagnc")
public suspend fun `value`(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.`value` = mapped
}
internal fun build(): AccessRuleConfigurationArgs = AccessRuleConfigurationArgs(
target = target ?: throw PulumiNullFieldException("target"),
`value` = `value` ?: throw PulumiNullFieldException("value"),
)
}