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

com.pulumi.azure.cdn.kotlin.inputs.EndpointGlobalDeliveryRuleArgs.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.cdn.kotlin.inputs

import com.pulumi.azure.cdn.inputs.EndpointGlobalDeliveryRuleArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property cacheExpirationAction A `cache_expiration_action` block as defined above.
 * @property cacheKeyQueryStringAction A `cache_key_query_string_action` block as defined above.
 * @property modifyRequestHeaderActions A `modify_request_header_action` block as defined below.
 * @property modifyResponseHeaderActions A `modify_response_header_action` block as defined below.
 * @property urlRedirectAction A `url_redirect_action` block as defined below.
 * @property urlRewriteAction A `url_rewrite_action` block as defined below.
 */
public data class EndpointGlobalDeliveryRuleArgs(
    public val cacheExpirationAction: Output? =
        null,
    public val cacheKeyQueryStringAction:
    Output? = null,
    public val modifyRequestHeaderActions:
    Output>? = null,
    public val modifyResponseHeaderActions:
    Output>? = null,
    public val urlRedirectAction: Output? = null,
    public val urlRewriteAction: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.cdn.inputs.EndpointGlobalDeliveryRuleArgs =
        com.pulumi.azure.cdn.inputs.EndpointGlobalDeliveryRuleArgs.builder()
            .cacheExpirationAction(
                cacheExpirationAction?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .cacheKeyQueryStringAction(
                cacheKeyQueryStringAction?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .modifyRequestHeaderActions(
                modifyRequestHeaderActions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .modifyResponseHeaderActions(
                modifyResponseHeaderActions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .urlRedirectAction(urlRedirectAction?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .urlRewriteAction(
                urlRewriteAction?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [EndpointGlobalDeliveryRuleArgs].
 */
@PulumiTagMarker
public class EndpointGlobalDeliveryRuleArgsBuilder internal constructor() {
    private var cacheExpirationAction: Output? =
        null

    private var cacheKeyQueryStringAction:
        Output? = null

    private var modifyRequestHeaderActions:
        Output>? = null

    private var modifyResponseHeaderActions:
        Output>? = null

    private var urlRedirectAction: Output? = null

    private var urlRewriteAction: Output? = null

    /**
     * @param value A `cache_expiration_action` block as defined above.
     */
    @JvmName("dxyigfjdcrhqvhex")
    public suspend
    fun cacheExpirationAction(`value`: Output) {
        this.cacheExpirationAction = value
    }

    /**
     * @param value A `cache_key_query_string_action` block as defined above.
     */
    @JvmName("xssbqlguxqdfvvse")
    public suspend
    fun cacheKeyQueryStringAction(`value`: Output) {
        this.cacheKeyQueryStringAction = value
    }

    /**
     * @param value A `modify_request_header_action` block as defined below.
     */
    @JvmName("ysiumvddveyoxrul")
    public suspend
    fun modifyRequestHeaderActions(`value`: Output>) {
        this.modifyRequestHeaderActions = value
    }

    @JvmName("eqxvviftsfpsjopx")
    public suspend fun modifyRequestHeaderActions(
        vararg
        values: Output,
    ) {
        this.modifyRequestHeaderActions = Output.all(values.asList())
    }

    /**
     * @param values A `modify_request_header_action` block as defined below.
     */
    @JvmName("ctbamkvfstrvashu")
    public suspend
    fun modifyRequestHeaderActions(values: List>) {
        this.modifyRequestHeaderActions = Output.all(values)
    }

    /**
     * @param value A `modify_response_header_action` block as defined below.
     */
    @JvmName("aijeqplwilaqwcrq")
    public suspend
    fun modifyResponseHeaderActions(`value`: Output>) {
        this.modifyResponseHeaderActions = value
    }

    @JvmName("gtujqgpimtwcucom")
    public suspend fun modifyResponseHeaderActions(
        vararg
        values: Output,
    ) {
        this.modifyResponseHeaderActions = Output.all(values.asList())
    }

    /**
     * @param values A `modify_response_header_action` block as defined below.
     */
    @JvmName("wqkvoyyvobkcohwt")
    public suspend
    fun modifyResponseHeaderActions(values: List>) {
        this.modifyResponseHeaderActions = Output.all(values)
    }

    /**
     * @param value A `url_redirect_action` block as defined below.
     */
    @JvmName("pardqdmvgyewwjgp")
    public suspend
    fun urlRedirectAction(`value`: Output) {
        this.urlRedirectAction = value
    }

    /**
     * @param value A `url_rewrite_action` block as defined below.
     */
    @JvmName("vqaprsufjkmdyunq")
    public suspend
    fun urlRewriteAction(`value`: Output) {
        this.urlRewriteAction = value
    }

    /**
     * @param value A `cache_expiration_action` block as defined above.
     */
    @JvmName("pyvasnmybjapmmdq")
    public suspend
    fun cacheExpirationAction(`value`: EndpointGlobalDeliveryRuleCacheExpirationActionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cacheExpirationAction = mapped
    }

    /**
     * @param argument A `cache_expiration_action` block as defined above.
     */
    @JvmName("tqjvrqnhuypkiatm")
    public suspend
    fun cacheExpirationAction(argument: suspend EndpointGlobalDeliveryRuleCacheExpirationActionArgsBuilder.() -> Unit) {
        val toBeMapped = EndpointGlobalDeliveryRuleCacheExpirationActionArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.cacheExpirationAction = mapped
    }

    /**
     * @param value A `cache_key_query_string_action` block as defined above.
     */
    @JvmName("tmnhxndrttbwicgp")
    public suspend
    fun cacheKeyQueryStringAction(`value`: EndpointGlobalDeliveryRuleCacheKeyQueryStringActionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cacheKeyQueryStringAction = mapped
    }

    /**
     * @param argument A `cache_key_query_string_action` block as defined above.
     */
    @JvmName("rrefgwepfqyijtjb")
    public suspend
    fun cacheKeyQueryStringAction(argument: suspend EndpointGlobalDeliveryRuleCacheKeyQueryStringActionArgsBuilder.() -> Unit) {
        val toBeMapped = EndpointGlobalDeliveryRuleCacheKeyQueryStringActionArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.cacheKeyQueryStringAction = mapped
    }

    /**
     * @param value A `modify_request_header_action` block as defined below.
     */
    @JvmName("isyxtrlmpgvapoyu")
    public suspend
    fun modifyRequestHeaderActions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.modifyRequestHeaderActions = mapped
    }

    /**
     * @param argument A `modify_request_header_action` block as defined below.
     */
    @JvmName("fayqtvngxgaqabxq")
    public suspend
    fun modifyRequestHeaderActions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            EndpointGlobalDeliveryRuleModifyRequestHeaderActionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.modifyRequestHeaderActions = mapped
    }

    /**
     * @param argument A `modify_request_header_action` block as defined below.
     */
    @JvmName("eqtmevgqylphgxku")
    public suspend fun modifyRequestHeaderActions(
        vararg
        argument: suspend EndpointGlobalDeliveryRuleModifyRequestHeaderActionArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            EndpointGlobalDeliveryRuleModifyRequestHeaderActionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.modifyRequestHeaderActions = mapped
    }

    /**
     * @param argument A `modify_request_header_action` block as defined below.
     */
    @JvmName("emdnknqxihixsaig")
    public suspend
    fun modifyRequestHeaderActions(argument: suspend EndpointGlobalDeliveryRuleModifyRequestHeaderActionArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                EndpointGlobalDeliveryRuleModifyRequestHeaderActionArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.modifyRequestHeaderActions = mapped
    }

    /**
     * @param values A `modify_request_header_action` block as defined below.
     */
    @JvmName("hjqncuahlhvqioos")
    public suspend fun modifyRequestHeaderActions(
        vararg
        values: EndpointGlobalDeliveryRuleModifyRequestHeaderActionArgs,
    ) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.modifyRequestHeaderActions = mapped
    }

    /**
     * @param value A `modify_response_header_action` block as defined below.
     */
    @JvmName("nbujtqlbxsbdsuct")
    public suspend
    fun modifyResponseHeaderActions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.modifyResponseHeaderActions = mapped
    }

    /**
     * @param argument A `modify_response_header_action` block as defined below.
     */
    @JvmName("klnehakgieyeqmah")
    public suspend
    fun modifyResponseHeaderActions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            EndpointGlobalDeliveryRuleModifyResponseHeaderActionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.modifyResponseHeaderActions = mapped
    }

    /**
     * @param argument A `modify_response_header_action` block as defined below.
     */
    @JvmName("nguxdmkabojpelmq")
    public suspend fun modifyResponseHeaderActions(
        vararg
        argument: suspend EndpointGlobalDeliveryRuleModifyResponseHeaderActionArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            EndpointGlobalDeliveryRuleModifyResponseHeaderActionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.modifyResponseHeaderActions = mapped
    }

    /**
     * @param argument A `modify_response_header_action` block as defined below.
     */
    @JvmName("qfnscmgdyrlmyorv")
    public suspend
    fun modifyResponseHeaderActions(argument: suspend EndpointGlobalDeliveryRuleModifyResponseHeaderActionArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                EndpointGlobalDeliveryRuleModifyResponseHeaderActionArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.modifyResponseHeaderActions = mapped
    }

    /**
     * @param values A `modify_response_header_action` block as defined below.
     */
    @JvmName("cfuoaquojdavpuxs")
    public suspend fun modifyResponseHeaderActions(
        vararg
        values: EndpointGlobalDeliveryRuleModifyResponseHeaderActionArgs,
    ) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.modifyResponseHeaderActions = mapped
    }

    /**
     * @param value A `url_redirect_action` block as defined below.
     */
    @JvmName("ufpomaxisqkogrua")
    public suspend fun urlRedirectAction(`value`: EndpointGlobalDeliveryRuleUrlRedirectActionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.urlRedirectAction = mapped
    }

    /**
     * @param argument A `url_redirect_action` block as defined below.
     */
    @JvmName("hjiclkbjdqpxroxv")
    public suspend
    fun urlRedirectAction(argument: suspend EndpointGlobalDeliveryRuleUrlRedirectActionArgsBuilder.() -> Unit) {
        val toBeMapped = EndpointGlobalDeliveryRuleUrlRedirectActionArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.urlRedirectAction = mapped
    }

    /**
     * @param value A `url_rewrite_action` block as defined below.
     */
    @JvmName("bekeqpxjanpwdraf")
    public suspend fun urlRewriteAction(`value`: EndpointGlobalDeliveryRuleUrlRewriteActionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.urlRewriteAction = mapped
    }

    /**
     * @param argument A `url_rewrite_action` block as defined below.
     */
    @JvmName("csxvxsluqmexrhtu")
    public suspend
    fun urlRewriteAction(argument: suspend EndpointGlobalDeliveryRuleUrlRewriteActionArgsBuilder.() -> Unit) {
        val toBeMapped = EndpointGlobalDeliveryRuleUrlRewriteActionArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.urlRewriteAction = mapped
    }

    internal fun build(): EndpointGlobalDeliveryRuleArgs = EndpointGlobalDeliveryRuleArgs(
        cacheExpirationAction = cacheExpirationAction,
        cacheKeyQueryStringAction = cacheKeyQueryStringAction,
        modifyRequestHeaderActions = modifyRequestHeaderActions,
        modifyResponseHeaderActions = modifyResponseHeaderActions,
        urlRedirectAction = urlRedirectAction,
        urlRewriteAction = urlRewriteAction,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy