com.pulumi.cloudflare.kotlin.inputs.RulesetRuleActionParametersOriginArgs.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.RulesetRuleActionParametersOriginArgs.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 host Origin Hostname where request is sent.
* @property port Origin Port where request is sent.
*/
public data class RulesetRuleActionParametersOriginArgs(
public val host: Output? = null,
public val port: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.RulesetRuleActionParametersOriginArgs =
com.pulumi.cloudflare.inputs.RulesetRuleActionParametersOriginArgs.builder()
.host(host?.applyValue({ args0 -> args0 }))
.port(port?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RulesetRuleActionParametersOriginArgs].
*/
@PulumiTagMarker
public class RulesetRuleActionParametersOriginArgsBuilder internal constructor() {
private var host: Output? = null
private var port: Output? = null
/**
* @param value Origin Hostname where request is sent.
*/
@JvmName("euemwsomnfdkucqp")
public suspend fun host(`value`: Output) {
this.host = value
}
/**
* @param value Origin Port where request is sent.
*/
@JvmName("birxyedyysvwbrtd")
public suspend fun port(`value`: Output) {
this.port = value
}
/**
* @param value Origin Hostname where request is sent.
*/
@JvmName("rvnycskixrhtgkxq")
public suspend fun host(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.host = mapped
}
/**
* @param value Origin Port where request is sent.
*/
@JvmName("jlaygequcnjuencj")
public suspend fun port(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.port = mapped
}
internal fun build(): RulesetRuleActionParametersOriginArgs =
RulesetRuleActionParametersOriginArgs(
host = host,
port = port,
)
}