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

com.pulumi.cloudflare.kotlin.inputs.RulesetRuleActionParametersResponseArgs.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: 5.40.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin.inputs

import com.pulumi.cloudflare.inputs.RulesetRuleActionParametersResponseArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property content Body content to include in the response.
 * @property contentType HTTP content type to send in the response.
 * @property statusCode HTTP status code to send in the response.
 */
public data class RulesetRuleActionParametersResponseArgs(
    public val content: Output? = null,
    public val contentType: Output? = null,
    public val statusCode: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.RulesetRuleActionParametersResponseArgs =
        com.pulumi.cloudflare.inputs.RulesetRuleActionParametersResponseArgs.builder()
            .content(content?.applyValue({ args0 -> args0 }))
            .contentType(contentType?.applyValue({ args0 -> args0 }))
            .statusCode(statusCode?.applyValue({ args0 -> args0 })).build()
}

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

    private var contentType: Output? = null

    private var statusCode: Output? = null

    /**
     * @param value Body content to include in the response.
     */
    @JvmName("phnnslhxcequjiik")
    public suspend fun content(`value`: Output) {
        this.content = value
    }

    /**
     * @param value HTTP content type to send in the response.
     */
    @JvmName("ctvwjocciakyfwov")
    public suspend fun contentType(`value`: Output) {
        this.contentType = value
    }

    /**
     * @param value HTTP status code to send in the response.
     */
    @JvmName("eualrqtpbhgqprhf")
    public suspend fun statusCode(`value`: Output) {
        this.statusCode = value
    }

    /**
     * @param value Body content to include in the response.
     */
    @JvmName("ggvqngcnnrjsewha")
    public suspend fun content(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.content = mapped
    }

    /**
     * @param value HTTP content type to send in the response.
     */
    @JvmName("xhivrktfishgxvfo")
    public suspend fun contentType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.contentType = mapped
    }

    /**
     * @param value HTTP status code to send in the response.
     */
    @JvmName("ujyplyehgljlkumg")
    public suspend fun statusCode(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.statusCode = mapped
    }

    internal fun build(): RulesetRuleActionParametersResponseArgs =
        RulesetRuleActionParametersResponseArgs(
            content = content,
            contentType = contentType,
            statusCode = statusCode,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy