com.pulumi.cloudflare.kotlin.inputs.TunnelConfigConfigIngressRuleArgs.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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.cloudflare.kotlin.inputs
import com.pulumi.cloudflare.inputs.TunnelConfigConfigIngressRuleArgs.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
/**
*
* @property hostname Hostname to match the incoming request with. If the hostname matches, the request will be sent to the service.
* @property originRequest
* @property path Path of the incoming request. If the path matches, the request will be sent to the local service.
* @property service Name of the service to which the request will be sent.
*/
public data class TunnelConfigConfigIngressRuleArgs(
public val hostname: Output? = null,
public val originRequest: Output? = null,
public val path: Output? = null,
public val service: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.TunnelConfigConfigIngressRuleArgs =
com.pulumi.cloudflare.inputs.TunnelConfigConfigIngressRuleArgs.builder()
.hostname(hostname?.applyValue({ args0 -> args0 }))
.originRequest(originRequest?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.path(path?.applyValue({ args0 -> args0 }))
.service(service.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TunnelConfigConfigIngressRuleArgs].
*/
@PulumiTagMarker
public class TunnelConfigConfigIngressRuleArgsBuilder internal constructor() {
private var hostname: Output? = null
private var originRequest: Output? = null
private var path: Output? = null
private var service: Output? = null
/**
* @param value Hostname to match the incoming request with. If the hostname matches, the request will be sent to the service.
*/
@JvmName("brosmhxnamaemtdr")
public suspend fun hostname(`value`: Output) {
this.hostname = value
}
/**
* @param value
*/
@JvmName("uicklretxuyaxbrr")
public suspend fun originRequest(`value`: Output) {
this.originRequest = value
}
/**
* @param value Path of the incoming request. If the path matches, the request will be sent to the local service.
*/
@JvmName("uatvoxfgkhvbwihf")
public suspend fun path(`value`: Output) {
this.path = value
}
/**
* @param value Name of the service to which the request will be sent.
*/
@JvmName("fjxkillabpbtmeew")
public suspend fun service(`value`: Output) {
this.service = value
}
/**
* @param value Hostname to match the incoming request with. If the hostname matches, the request will be sent to the service.
*/
@JvmName("wayugynqgeakdpiq")
public suspend fun hostname(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.hostname = mapped
}
/**
* @param value
*/
@JvmName("ifskhmsbnyvawcww")
public suspend fun originRequest(`value`: TunnelConfigConfigIngressRuleOriginRequestArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.originRequest = mapped
}
/**
* @param argument
*/
@JvmName("gspsxwlaeheslqss")
public suspend fun originRequest(argument: suspend TunnelConfigConfigIngressRuleOriginRequestArgsBuilder.() -> Unit) {
val toBeMapped = TunnelConfigConfigIngressRuleOriginRequestArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.originRequest = mapped
}
/**
* @param value Path of the incoming request. If the path matches, the request will be sent to the local service.
*/
@JvmName("mijjlkveajmcxvlo")
public suspend fun path(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.path = mapped
}
/**
* @param value Name of the service to which the request will be sent.
*/
@JvmName("iecafnkqliplfyrv")
public suspend fun service(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.service = mapped
}
internal fun build(): TunnelConfigConfigIngressRuleArgs = TunnelConfigConfigIngressRuleArgs(
hostname = hostname,
originRequest = originRequest,
path = path,
service = service ?: throw PulumiNullFieldException("service"),
)
}