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

com.pulumi.aws.wafv2.kotlin.inputs.RuleGroupCustomResponseBodyArgs.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.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.wafv2.kotlin.inputs

import com.pulumi.aws.wafv2.inputs.RuleGroupCustomResponseBodyArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property content The payload of the custom response.
 * @property contentType The type of content in the payload that you are defining in the `content` argument. Valid values are `TEXT_PLAIN`, `TEXT_HTML`, or `APPLICATION_JSON`.
 * @property key A unique key identifying the custom response body. This is referenced by the `custom_response_body_key` argument in the Custom Response block.
 */
public data class RuleGroupCustomResponseBodyArgs(
    public val content: Output,
    public val contentType: Output,
    public val key: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.wafv2.inputs.RuleGroupCustomResponseBodyArgs =
        com.pulumi.aws.wafv2.inputs.RuleGroupCustomResponseBodyArgs.builder()
            .content(content.applyValue({ args0 -> args0 }))
            .contentType(contentType.applyValue({ args0 -> args0 }))
            .key(key.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RuleGroupCustomResponseBodyArgs].
 */
@PulumiTagMarker
public class RuleGroupCustomResponseBodyArgsBuilder internal constructor() {
    private var content: Output? = null

    private var contentType: Output? = null

    private var key: Output? = null

    /**
     * @param value The payload of the custom response.
     */
    @JvmName("vjctadjmacxjhxwo")
    public suspend fun content(`value`: Output) {
        this.content = value
    }

    /**
     * @param value The type of content in the payload that you are defining in the `content` argument. Valid values are `TEXT_PLAIN`, `TEXT_HTML`, or `APPLICATION_JSON`.
     */
    @JvmName("iqocwkbfwqfocnur")
    public suspend fun contentType(`value`: Output) {
        this.contentType = value
    }

    /**
     * @param value A unique key identifying the custom response body. This is referenced by the `custom_response_body_key` argument in the Custom Response block.
     */
    @JvmName("ucqgfihvpuwbtvfg")
    public suspend fun key(`value`: Output) {
        this.key = value
    }

    /**
     * @param value The payload of the custom response.
     */
    @JvmName("wklgnwcflmlvxamw")
    public suspend fun content(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.content = mapped
    }

    /**
     * @param value The type of content in the payload that you are defining in the `content` argument. Valid values are `TEXT_PLAIN`, `TEXT_HTML`, or `APPLICATION_JSON`.
     */
    @JvmName("nnsoctmuewgxqmxa")
    public suspend fun contentType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.contentType = mapped
    }

    /**
     * @param value A unique key identifying the custom response body. This is referenced by the `custom_response_body_key` argument in the Custom Response block.
     */
    @JvmName("jfowkqldjlmgthgw")
    public suspend fun key(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.key = mapped
    }

    internal fun build(): RuleGroupCustomResponseBodyArgs = RuleGroupCustomResponseBodyArgs(
        content = content ?: throw PulumiNullFieldException("content"),
        contentType = contentType ?: throw PulumiNullFieldException("contentType"),
        key = key ?: throw PulumiNullFieldException("key"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy