com.pulumi.cloudflare.kotlin.inputs.ZeroTrustTunnelCloudflaredConfigConfigIngressRuleArgs.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.ZeroTrustTunnelCloudflaredConfigConfigIngressRuleArgs.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 ZeroTrustTunnelCloudflaredConfigConfigIngressRuleArgs(
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.ZeroTrustTunnelCloudflaredConfigConfigIngressRuleArgs =
com.pulumi.cloudflare.inputs.ZeroTrustTunnelCloudflaredConfigConfigIngressRuleArgs.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 [ZeroTrustTunnelCloudflaredConfigConfigIngressRuleArgs].
*/
@PulumiTagMarker
public class ZeroTrustTunnelCloudflaredConfigConfigIngressRuleArgsBuilder 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("pixtyochlosaramm")
public suspend fun hostname(`value`: Output) {
this.hostname = value
}
/**
* @param value
*/
@JvmName("dvjnvvbvwathbqpv")
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("eycjhuyyfdjtumdg")
public suspend fun path(`value`: Output) {
this.path = value
}
/**
* @param value Name of the service to which the request will be sent.
*/
@JvmName("qupgfmjqphilxdan")
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("jscajlmsxqsqwqfp")
public suspend fun hostname(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.hostname = mapped
}
/**
* @param value
*/
@JvmName("radkycysnfqspvsc")
public suspend fun originRequest(`value`: ZeroTrustTunnelCloudflaredConfigConfigIngressRuleOriginRequestArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.originRequest = mapped
}
/**
* @param argument
*/
@JvmName("nbtqqyggxujxslch")
public suspend fun originRequest(argument: suspend ZeroTrustTunnelCloudflaredConfigConfigIngressRuleOriginRequestArgsBuilder.() -> Unit) {
val toBeMapped =
ZeroTrustTunnelCloudflaredConfigConfigIngressRuleOriginRequestArgsBuilder().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("rhvqawmxfpxanfjv")
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("rhxlvtxjnwtyhcoa")
public suspend fun service(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.service = mapped
}
internal fun build(): ZeroTrustTunnelCloudflaredConfigConfigIngressRuleArgs =
ZeroTrustTunnelCloudflaredConfigConfigIngressRuleArgs(
hostname = hostname,
originRequest = originRequest,
path = path,
service = service ?: throw PulumiNullFieldException("service"),
)
}