All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.networkservices.kotlin.inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionUrlRewriteArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@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.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionUrlRewriteArgs.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 origin, the request's host header is replaced with contents of hostRewrite.
 * @property pathPrefixRewrite Prior to forwarding the request to the selected origin, the matching portion of the request's path is replaced by pathPrefixRewrite.
 * @property pathTemplateRewrite Prior to forwarding the request to the selected origin, if the
 * request matched a pathTemplateMatch, the matching portion of the
 * request's path is replaced re-written using the pattern specified
 * by pathTemplateRewrite.
 * pathTemplateRewrite must be between 1 and 255 characters
 * (inclusive), must start with a '/', and must only use variables
 * captured by the route's pathTemplate matchers.
 * pathTemplateRewrite may only be used when all of a route's
 * MatchRules specify pathTemplate.
 * Only one of pathPrefixRewrite and pathTemplateRewrite may be
 * specified.
 */
public data class EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionUrlRewriteArgs(
    public val hostRewrite: Output? = null,
    public val pathPrefixRewrite: Output? = null,
    public val pathTemplateRewrite: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.networkservices.inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionUrlRewriteArgs =
        com.pulumi.gcp.networkservices.inputs.EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionUrlRewriteArgs.builder()
            .hostRewrite(hostRewrite?.applyValue({ args0 -> args0 }))
            .pathPrefixRewrite(pathPrefixRewrite?.applyValue({ args0 -> args0 }))
            .pathTemplateRewrite(pathTemplateRewrite?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionUrlRewriteArgs].
 */
@PulumiTagMarker
public class EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionUrlRewriteArgsBuilder internal constructor() {
    private var hostRewrite: Output? = null

    private var pathPrefixRewrite: Output? = null

    private var pathTemplateRewrite: Output? = null

    /**
     * @param value Prior to forwarding the request to the selected origin, the request's host header is replaced with contents of hostRewrite.
     */
    @JvmName("pcurrtwbwqlojedf")
    public suspend fun hostRewrite(`value`: Output) {
        this.hostRewrite = value
    }

    /**
     * @param value Prior to forwarding the request to the selected origin, the matching portion of the request's path is replaced by pathPrefixRewrite.
     */
    @JvmName("gobcepkiekhdhnmm")
    public suspend fun pathPrefixRewrite(`value`: Output) {
        this.pathPrefixRewrite = value
    }

    /**
     * @param value Prior to forwarding the request to the selected origin, if the
     * request matched a pathTemplateMatch, the matching portion of the
     * request's path is replaced re-written using the pattern specified
     * by pathTemplateRewrite.
     * pathTemplateRewrite must be between 1 and 255 characters
     * (inclusive), must start with a '/', and must only use variables
     * captured by the route's pathTemplate matchers.
     * pathTemplateRewrite may only be used when all of a route's
     * MatchRules specify pathTemplate.
     * Only one of pathPrefixRewrite and pathTemplateRewrite may be
     * specified.
     */
    @JvmName("jbyajasjlkqbpqis")
    public suspend fun pathTemplateRewrite(`value`: Output) {
        this.pathTemplateRewrite = value
    }

    /**
     * @param value Prior to forwarding the request to the selected origin, the request's host header is replaced with contents of hostRewrite.
     */
    @JvmName("qotmxorvqyunpylw")
    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 origin, the matching portion of the request's path is replaced by pathPrefixRewrite.
     */
    @JvmName("fpekhbkwwqtvmfwj")
    public suspend fun pathPrefixRewrite(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pathPrefixRewrite = mapped
    }

    /**
     * @param value Prior to forwarding the request to the selected origin, if the
     * request matched a pathTemplateMatch, the matching portion of the
     * request's path is replaced re-written using the pattern specified
     * by pathTemplateRewrite.
     * pathTemplateRewrite must be between 1 and 255 characters
     * (inclusive), must start with a '/', and must only use variables
     * captured by the route's pathTemplate matchers.
     * pathTemplateRewrite may only be used when all of a route's
     * MatchRules specify pathTemplate.
     * Only one of pathPrefixRewrite and pathTemplateRewrite may be
     * specified.
     */
    @JvmName("emiostvgclgnaibc")
    public suspend fun pathTemplateRewrite(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pathTemplateRewrite = mapped
    }

    internal fun build(): EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionUrlRewriteArgs =
        EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionUrlRewriteArgs(
            hostRewrite = hostRewrite,
            pathPrefixRewrite = pathPrefixRewrite,
            pathTemplateRewrite = pathTemplateRewrite,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy