com.pulumi.cloudflare.kotlin.outputs.TunnelConfigConfigIngressRule.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.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @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 TunnelConfigConfigIngressRule(
public val hostname: String? = null,
public val originRequest: TunnelConfigConfigIngressRuleOriginRequest? = null,
public val path: String? = null,
public val service: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.cloudflare.outputs.TunnelConfigConfigIngressRule): TunnelConfigConfigIngressRule = TunnelConfigConfigIngressRule(
hostname = javaType.hostname().map({ args0 -> args0 }).orElse(null),
originRequest = javaType.originRequest().map({ args0 ->
args0.let({ args0 ->
com.pulumi.cloudflare.kotlin.outputs.TunnelConfigConfigIngressRuleOriginRequest.Companion.toKotlin(args0)
})
}).orElse(null),
path = javaType.path().map({ args0 -> args0 }).orElse(null),
service = javaType.service(),
)
}
}