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

com.pulumi.gcp.networkservices.kotlin.inputs.EdgeCacheOriginOriginOverrideActionArgs.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.12.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.EdgeCacheOriginOriginOverrideActionArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property headerAction The header actions, including adding and removing
 * headers, for request handled by this origin.
 * Structure is documented below.
 * @property urlRewrite The URL rewrite configuration for request that are
 * handled by this origin.
 * Structure is documented below.
 */
public data class EdgeCacheOriginOriginOverrideActionArgs(
    public val headerAction: Output? = null,
    public val urlRewrite: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.networkservices.inputs.EdgeCacheOriginOriginOverrideActionArgs =
        com.pulumi.gcp.networkservices.inputs.EdgeCacheOriginOriginOverrideActionArgs.builder()
            .headerAction(headerAction?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .urlRewrite(urlRewrite?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [EdgeCacheOriginOriginOverrideActionArgs].
 */
@PulumiTagMarker
public class EdgeCacheOriginOriginOverrideActionArgsBuilder internal constructor() {
    private var headerAction: Output? = null

    private var urlRewrite: Output? = null

    /**
     * @param value The header actions, including adding and removing
     * headers, for request handled by this origin.
     * Structure is documented below.
     */
    @JvmName("fphvimgbdodeaysi")
    public suspend fun headerAction(`value`: Output) {
        this.headerAction = value
    }

    /**
     * @param value The URL rewrite configuration for request that are
     * handled by this origin.
     * Structure is documented below.
     */
    @JvmName("wkihympbimliqyag")
    public suspend fun urlRewrite(`value`: Output) {
        this.urlRewrite = value
    }

    /**
     * @param value The header actions, including adding and removing
     * headers, for request handled by this origin.
     * Structure is documented below.
     */
    @JvmName("hydlvjadletiwacq")
    public suspend fun headerAction(`value`: EdgeCacheOriginOriginOverrideActionHeaderActionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.headerAction = mapped
    }

    /**
     * @param argument The header actions, including adding and removing
     * headers, for request handled by this origin.
     * Structure is documented below.
     */
    @JvmName("oqihlalcdjvvtrlb")
    public suspend fun headerAction(argument: suspend EdgeCacheOriginOriginOverrideActionHeaderActionArgsBuilder.() -> Unit) {
        val toBeMapped = EdgeCacheOriginOriginOverrideActionHeaderActionArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.headerAction = mapped
    }

    /**
     * @param value The URL rewrite configuration for request that are
     * handled by this origin.
     * Structure is documented below.
     */
    @JvmName("xrqpjotftwxpgele")
    public suspend fun urlRewrite(`value`: EdgeCacheOriginOriginOverrideActionUrlRewriteArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.urlRewrite = mapped
    }

    /**
     * @param argument The URL rewrite configuration for request that are
     * handled by this origin.
     * Structure is documented below.
     */
    @JvmName("nepprsfxerihtqoi")
    public suspend fun urlRewrite(argument: suspend EdgeCacheOriginOriginOverrideActionUrlRewriteArgsBuilder.() -> Unit) {
        val toBeMapped = EdgeCacheOriginOriginOverrideActionUrlRewriteArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.urlRewrite = mapped
    }

    internal fun build(): EdgeCacheOriginOriginOverrideActionArgs =
        EdgeCacheOriginOriginOverrideActionArgs(
            headerAction = headerAction,
            urlRewrite = urlRewrite,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy