com.pulumi.cloudflare.kotlin.inputs.PageRuleActionsForwardingUrlArgs.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.PageRuleActionsForwardingUrlArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property statusCode The status code to use for the redirection.
* @property url The URL to which the page rule should forward.
*/
public data class PageRuleActionsForwardingUrlArgs(
public val statusCode: Output,
public val url: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.PageRuleActionsForwardingUrlArgs =
com.pulumi.cloudflare.inputs.PageRuleActionsForwardingUrlArgs.builder()
.statusCode(statusCode.applyValue({ args0 -> args0 }))
.url(url.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PageRuleActionsForwardingUrlArgs].
*/
@PulumiTagMarker
public class PageRuleActionsForwardingUrlArgsBuilder internal constructor() {
private var statusCode: Output? = null
private var url: Output? = null
/**
* @param value The status code to use for the redirection.
*/
@JvmName("pmeolrkdwbqbbidm")
public suspend fun statusCode(`value`: Output) {
this.statusCode = value
}
/**
* @param value The URL to which the page rule should forward.
*/
@JvmName("irvstyabbciquigm")
public suspend fun url(`value`: Output) {
this.url = value
}
/**
* @param value The status code to use for the redirection.
*/
@JvmName("vbbliyogwpkiqmiw")
public suspend fun statusCode(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.statusCode = mapped
}
/**
* @param value The URL to which the page rule should forward.
*/
@JvmName("wqwhkkvrtyferejx")
public suspend fun url(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.url = mapped
}
internal fun build(): PageRuleActionsForwardingUrlArgs = PageRuleActionsForwardingUrlArgs(
statusCode = statusCode ?: throw PulumiNullFieldException("statusCode"),
url = url ?: throw PulumiNullFieldException("url"),
)
}