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

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

package com.pulumi.azurenative.cdn.kotlin.inputs

import com.pulumi.azurenative.cdn.inputs.DeliveryRuleRequestBodyConditionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Defines the RequestBody condition for the delivery rule.
 * @property name The name of the condition for the delivery rule.
 * Expected value is 'RequestBody'.
 * @property parameters Defines the parameters for the condition.
 */
public data class DeliveryRuleRequestBodyConditionArgs(
    public val name: Output,
    public val parameters: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.cdn.inputs.DeliveryRuleRequestBodyConditionArgs =
        com.pulumi.azurenative.cdn.inputs.DeliveryRuleRequestBodyConditionArgs.builder()
            .name(name.applyValue({ args0 -> args0 }))
            .parameters(parameters.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [DeliveryRuleRequestBodyConditionArgs].
 */
@PulumiTagMarker
public class DeliveryRuleRequestBodyConditionArgsBuilder internal constructor() {
    private var name: Output? = null

    private var parameters: Output? = null

    /**
     * @param value The name of the condition for the delivery rule.
     * Expected value is 'RequestBody'.
     */
    @JvmName("rmwhomsdxisvqtka")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Defines the parameters for the condition.
     */
    @JvmName("lcrpybjcejrhwman")
    public suspend fun parameters(`value`: Output) {
        this.parameters = value
    }

    /**
     * @param value The name of the condition for the delivery rule.
     * Expected value is 'RequestBody'.
     */
    @JvmName("wxbfimiksdoenoaf")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Defines the parameters for the condition.
     */
    @JvmName("gamafcyekonwegru")
    public suspend fun parameters(`value`: RequestBodyMatchConditionParametersArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param argument Defines the parameters for the condition.
     */
    @JvmName("mqukoddclrufglsb")
    public suspend fun parameters(argument: suspend RequestBodyMatchConditionParametersArgsBuilder.() -> Unit) {
        val toBeMapped = RequestBodyMatchConditionParametersArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    internal fun build(): DeliveryRuleRequestBodyConditionArgs = DeliveryRuleRequestBodyConditionArgs(
        name = name ?: throw PulumiNullFieldException("name"),
        parameters = parameters ?: throw PulumiNullFieldException("parameters"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy