com.pulumi.gcp.networkservices.kotlin.inputs.HttpRouteRuleActionUrlRewriteArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.networkservices.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.networkservices.inputs.HttpRouteRuleActionUrlRewriteArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property hostRewrite Prior to forwarding the request to the selected destination, the requests host header is replaced by this value.
* @property pathPrefixRewrite Prior to forwarding the request to the selected destination, the matching portion of the requests path is replaced by this value.
*/
public data class HttpRouteRuleActionUrlRewriteArgs(
public val hostRewrite: Output? = null,
public val pathPrefixRewrite: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.networkservices.inputs.HttpRouteRuleActionUrlRewriteArgs =
com.pulumi.gcp.networkservices.inputs.HttpRouteRuleActionUrlRewriteArgs.builder()
.hostRewrite(hostRewrite?.applyValue({ args0 -> args0 }))
.pathPrefixRewrite(pathPrefixRewrite?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [HttpRouteRuleActionUrlRewriteArgs].
*/
@PulumiTagMarker
public class HttpRouteRuleActionUrlRewriteArgsBuilder internal constructor() {
private var hostRewrite: Output? = null
private var pathPrefixRewrite: Output? = null
/**
* @param value Prior to forwarding the request to the selected destination, the requests host header is replaced by this value.
*/
@JvmName("ihnvcndvudbegewo")
public suspend fun hostRewrite(`value`: Output) {
this.hostRewrite = value
}
/**
* @param value Prior to forwarding the request to the selected destination, the matching portion of the requests path is replaced by this value.
*/
@JvmName("vjpladgpyqjhstqr")
public suspend fun pathPrefixRewrite(`value`: Output) {
this.pathPrefixRewrite = value
}
/**
* @param value Prior to forwarding the request to the selected destination, the requests host header is replaced by this value.
*/
@JvmName("gugigjumublahqdl")
public suspend fun hostRewrite(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.hostRewrite = mapped
}
/**
* @param value Prior to forwarding the request to the selected destination, the matching portion of the requests path is replaced by this value.
*/
@JvmName("blkbpevhvlhtkloi")
public suspend fun pathPrefixRewrite(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.pathPrefixRewrite = mapped
}
internal fun build(): HttpRouteRuleActionUrlRewriteArgs = HttpRouteRuleActionUrlRewriteArgs(
hostRewrite = hostRewrite,
pathPrefixRewrite = pathPrefixRewrite,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy