com.pulumi.cloudflare.kotlin.inputs.RulesetRuleActionParametersUriArgs.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.RulesetRuleActionParametersUriArgs.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.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property origin
* @property path URI path configuration when performing a URL rewrite.
* @property query Query string configuration when performing a URL rewrite.
*/
public data class RulesetRuleActionParametersUriArgs(
public val origin: Output? = null,
public val path: Output? = null,
public val query: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.RulesetRuleActionParametersUriArgs =
com.pulumi.cloudflare.inputs.RulesetRuleActionParametersUriArgs.builder()
.origin(origin?.applyValue({ args0 -> args0 }))
.path(path?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.query(query?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [RulesetRuleActionParametersUriArgs].
*/
@PulumiTagMarker
public class RulesetRuleActionParametersUriArgsBuilder internal constructor() {
private var origin: Output? = null
private var path: Output? = null
private var query: Output? = null
/**
* @param value
*/
@JvmName("eahnwersbxcqfhvb")
public suspend fun origin(`value`: Output) {
this.origin = value
}
/**
* @param value URI path configuration when performing a URL rewrite.
*/
@JvmName("hdkajvsrinwjgpha")
public suspend fun path(`value`: Output) {
this.path = value
}
/**
* @param value Query string configuration when performing a URL rewrite.
*/
@JvmName("matnhagtmmxjqtpr")
public suspend fun query(`value`: Output) {
this.query = value
}
/**
* @param value
*/
@JvmName("bpqwnnemqrhtxsow")
public suspend fun origin(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.origin = mapped
}
/**
* @param value URI path configuration when performing a URL rewrite.
*/
@JvmName("iqwnnctobmnwrhmx")
public suspend fun path(`value`: RulesetRuleActionParametersUriPathArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.path = mapped
}
/**
* @param argument URI path configuration when performing a URL rewrite.
*/
@JvmName("rsypobtdwmmqxsqj")
public suspend fun path(argument: suspend RulesetRuleActionParametersUriPathArgsBuilder.() -> Unit) {
val toBeMapped = RulesetRuleActionParametersUriPathArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.path = mapped
}
/**
* @param value Query string configuration when performing a URL rewrite.
*/
@JvmName("fmaoiqkqalgrqtnh")
public suspend fun query(`value`: RulesetRuleActionParametersUriQueryArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.query = mapped
}
/**
* @param argument Query string configuration when performing a URL rewrite.
*/
@JvmName("dlsoxtnhhhjeovfa")
public suspend fun query(argument: suspend RulesetRuleActionParametersUriQueryArgsBuilder.() -> Unit) {
val toBeMapped = RulesetRuleActionParametersUriQueryArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.query = mapped
}
internal fun build(): RulesetRuleActionParametersUriArgs = RulesetRuleActionParametersUriArgs(
origin = origin,
path = path,
query = query,
)
}