com.pulumi.cloudflare.kotlin.inputs.RateLimitActionResponseArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-cloudflare-kotlin Show documentation
Show all versions of pulumi-cloudflare-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.cloudflare.kotlin.inputs
import com.pulumi.cloudflare.inputs.RateLimitActionResponseArgs.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 body The body to return, the content here should conform to the `content_type`.
* @property contentType The content-type of the body. Available values: `text/plain`, `text/xml`, `application/json`.
*/
public data class RateLimitActionResponseArgs(
public val body: Output,
public val contentType: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.RateLimitActionResponseArgs =
com.pulumi.cloudflare.inputs.RateLimitActionResponseArgs.builder()
.body(body.applyValue({ args0 -> args0 }))
.contentType(contentType.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RateLimitActionResponseArgs].
*/
@PulumiTagMarker
public class RateLimitActionResponseArgsBuilder internal constructor() {
private var body: Output? = null
private var contentType: Output? = null
/**
* @param value The body to return, the content here should conform to the `content_type`.
*/
@JvmName("yvbboxxoejqhghah")
public suspend fun body(`value`: Output) {
this.body = value
}
/**
* @param value The content-type of the body. Available values: `text/plain`, `text/xml`, `application/json`.
*/
@JvmName("tpogfaoelqrppoil")
public suspend fun contentType(`value`: Output) {
this.contentType = value
}
/**
* @param value The body to return, the content here should conform to the `content_type`.
*/
@JvmName("qqfqxwfipnjjbcca")
public suspend fun body(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.body = mapped
}
/**
* @param value The content-type of the body. Available values: `text/plain`, `text/xml`, `application/json`.
*/
@JvmName("uvvqkgypijbwxbvt")
public suspend fun contentType(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.contentType = mapped
}
internal fun build(): RateLimitActionResponseArgs = RateLimitActionResponseArgs(
body = body ?: throw PulumiNullFieldException("body"),
contentType = contentType ?: throw PulumiNullFieldException("contentType"),
)
}