com.pulumi.cloudflare.kotlin.inputs.TunnelConfigConfigIngressRuleOriginRequestIpRuleArgs.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.TunnelConfigConfigIngressRuleOriginRequestIpRuleArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property allow Whether to allow the IP prefix.
* @property ports Ports to use within the IP rule.
* @property prefix IP rule prefix.
*/
public data class TunnelConfigConfigIngressRuleOriginRequestIpRuleArgs(
public val allow: Output? = null,
public val ports: Output>? = null,
public val prefix: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.TunnelConfigConfigIngressRuleOriginRequestIpRuleArgs =
com.pulumi.cloudflare.inputs.TunnelConfigConfigIngressRuleOriginRequestIpRuleArgs.builder()
.allow(allow?.applyValue({ args0 -> args0 }))
.ports(ports?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.prefix(prefix?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TunnelConfigConfigIngressRuleOriginRequestIpRuleArgs].
*/
@PulumiTagMarker
public class TunnelConfigConfigIngressRuleOriginRequestIpRuleArgsBuilder internal constructor() {
private var allow: Output? = null
private var ports: Output>? = null
private var prefix: Output? = null
/**
* @param value Whether to allow the IP prefix.
*/
@JvmName("ebotherexxpsghom")
public suspend fun allow(`value`: Output) {
this.allow = value
}
/**
* @param value Ports to use within the IP rule.
*/
@JvmName("vothujwapitynagp")
public suspend fun ports(`value`: Output>) {
this.ports = value
}
@JvmName("ugyllujnyfkrppon")
public suspend fun ports(vararg values: Output) {
this.ports = Output.all(values.asList())
}
/**
* @param values Ports to use within the IP rule.
*/
@JvmName("wkpunnuxtfkakxmw")
public suspend fun ports(values: List