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

com.pulumi.gcp.networkservices.kotlin.inputs.EdgeCacheOriginOriginOverrideActionHeaderActionRequestHeadersToAddArgs.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.EdgeCacheOriginOriginOverrideActionHeaderActionRequestHeadersToAddArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property headerName The name of the header to add.
 * @property headerValue The value of the header to add.
 * @property replace Whether to replace all existing headers with the same name.
 * By default, added header values are appended
 * to the response or request headers with the
 * same field names. The added values are
 * separated by commas.
 * To overwrite existing values, set `replace` to `true`.
 */
public data class EdgeCacheOriginOriginOverrideActionHeaderActionRequestHeadersToAddArgs(
    public val headerName: Output,
    public val headerValue: Output,
    public val replace: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.networkservices.inputs.EdgeCacheOriginOriginOverrideActionHeaderActionRequestHeadersToAddArgs =
        com.pulumi.gcp.networkservices.inputs.EdgeCacheOriginOriginOverrideActionHeaderActionRequestHeadersToAddArgs.builder()
            .headerName(headerName.applyValue({ args0 -> args0 }))
            .headerValue(headerValue.applyValue({ args0 -> args0 }))
            .replace(replace?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EdgeCacheOriginOriginOverrideActionHeaderActionRequestHeadersToAddArgs].
 */
@PulumiTagMarker
public class EdgeCacheOriginOriginOverrideActionHeaderActionRequestHeadersToAddArgsBuilder internal constructor() {
    private var headerName: Output? = null

    private var headerValue: Output? = null

    private var replace: Output? = null

    /**
     * @param value The name of the header to add.
     */
    @JvmName("gjhakoomranobggu")
    public suspend fun headerName(`value`: Output) {
        this.headerName = value
    }

    /**
     * @param value The value of the header to add.
     */
    @JvmName("mouablbupuerixcm")
    public suspend fun headerValue(`value`: Output) {
        this.headerValue = value
    }

    /**
     * @param value Whether to replace all existing headers with the same name.
     * By default, added header values are appended
     * to the response or request headers with the
     * same field names. The added values are
     * separated by commas.
     * To overwrite existing values, set `replace` to `true`.
     */
    @JvmName("keuwtfcnrjfkdjeh")
    public suspend fun replace(`value`: Output) {
        this.replace = value
    }

    /**
     * @param value The name of the header to add.
     */
    @JvmName("fnbfqlfsabobuupl")
    public suspend fun headerName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.headerName = mapped
    }

    /**
     * @param value The value of the header to add.
     */
    @JvmName("ohllicaysxutybkm")
    public suspend fun headerValue(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.headerValue = mapped
    }

    /**
     * @param value Whether to replace all existing headers with the same name.
     * By default, added header values are appended
     * to the response or request headers with the
     * same field names. The added values are
     * separated by commas.
     * To overwrite existing values, set `replace` to `true`.
     */
    @JvmName("romscjewvphegmyh")
    public suspend fun replace(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.replace = mapped
    }

    internal fun build(): EdgeCacheOriginOriginOverrideActionHeaderActionRequestHeadersToAddArgs =
        EdgeCacheOriginOriginOverrideActionHeaderActionRequestHeadersToAddArgs(
            headerName = headerName ?: throw PulumiNullFieldException("headerName"),
            headerValue = headerValue ?: throw PulumiNullFieldException("headerValue"),
            replace = replace,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy