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

com.pulumi.gcp.compute.kotlin.inputs.RegionUrlMapDefaultRouteActionUrlRewriteArgs.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.compute.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.RegionUrlMapDefaultRouteActionUrlRewriteArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property hostRewrite Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite.
 * The value must be from 1 to 255 characters.
 * @property pathPrefixRewrite Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite.
 * The value must be from 1 to 1024 characters.
 */
public data class RegionUrlMapDefaultRouteActionUrlRewriteArgs(
    public val hostRewrite: Output? = null,
    public val pathPrefixRewrite: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.RegionUrlMapDefaultRouteActionUrlRewriteArgs = com.pulumi.gcp.compute.inputs.RegionUrlMapDefaultRouteActionUrlRewriteArgs.builder()
        .hostRewrite(hostRewrite?.applyValue({ args0 -> args0 }))
        .pathPrefixRewrite(pathPrefixRewrite?.applyValue({ args0 -> args0 })).build()
}

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

    private var pathPrefixRewrite: Output? = null

    /**
     * @param value Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite.
     * The value must be from 1 to 255 characters.
     */
    @JvmName("lajcwyjywrqyvmxf")
    public suspend fun hostRewrite(`value`: Output) {
        this.hostRewrite = value
    }

    /**
     * @param value Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite.
     * The value must be from 1 to 1024 characters.
     */
    @JvmName("bjdgverbhtnaveph")
    public suspend fun pathPrefixRewrite(`value`: Output) {
        this.pathPrefixRewrite = value
    }

    /**
     * @param value Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite.
     * The value must be from 1 to 255 characters.
     */
    @JvmName("ewlxvpmqcubkvuau")
    public suspend fun hostRewrite(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hostRewrite = mapped
    }

    /**
     * @param value Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite.
     * The value must be from 1 to 1024 characters.
     */
    @JvmName("dthsdwrdygrdykdk")
    public suspend fun pathPrefixRewrite(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pathPrefixRewrite = mapped
    }

    internal fun build(): RegionUrlMapDefaultRouteActionUrlRewriteArgs =
        RegionUrlMapDefaultRouteActionUrlRewriteArgs(
            hostRewrite = hostRewrite,
            pathPrefixRewrite = pathPrefixRewrite,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy