All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.cloudflare.kotlin.inputs.TunnelConfigConfigOriginRequestIpRuleArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 5.47.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin.inputs

import com.pulumi.cloudflare.inputs.TunnelConfigConfigOriginRequestIpRuleArgs.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 TunnelConfigConfigOriginRequestIpRuleArgs(
    public val allow: Output? = null,
    public val ports: Output>? = null,
    public val prefix: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.TunnelConfigConfigOriginRequestIpRuleArgs =
        com.pulumi.cloudflare.inputs.TunnelConfigConfigOriginRequestIpRuleArgs.builder()
            .allow(allow?.applyValue({ args0 -> args0 }))
            .ports(ports?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .prefix(prefix?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TunnelConfigConfigOriginRequestIpRuleArgs].
 */
@PulumiTagMarker
public class TunnelConfigConfigOriginRequestIpRuleArgsBuilder 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("pebugsqhbrqvnofr")
    public suspend fun allow(`value`: Output) {
        this.allow = value
    }

    /**
     * @param value Ports to use within the IP rule.
     */
    @JvmName("ecldgfecgkgjaats")
    public suspend fun ports(`value`: Output>) {
        this.ports = value
    }

    @JvmName("cxevvhmysdfeeyyk")
    public suspend fun ports(vararg values: Output) {
        this.ports = Output.all(values.asList())
    }

    /**
     * @param values Ports to use within the IP rule.
     */
    @JvmName("mxwgphkjiigfilqm")
    public suspend fun ports(values: List>) {
        this.ports = Output.all(values)
    }

    /**
     * @param value IP rule prefix.
     */
    @JvmName("dpiuhjhqsxbqbmku")
    public suspend fun prefix(`value`: Output) {
        this.prefix = value
    }

    /**
     * @param value Whether to allow the IP prefix.
     */
    @JvmName("mcaodvdwdmscuept")
    public suspend fun allow(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allow = mapped
    }

    /**
     * @param value Ports to use within the IP rule.
     */
    @JvmName("bncbruvvcjrcurji")
    public suspend fun ports(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ports = mapped
    }

    /**
     * @param values Ports to use within the IP rule.
     */
    @JvmName("krduorcvjeysfnkf")
    public suspend fun ports(vararg values: Int) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ports = mapped
    }

    /**
     * @param value IP rule prefix.
     */
    @JvmName("poxhavvhckpqrgfv")
    public suspend fun prefix(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.prefix = mapped
    }

    internal fun build(): TunnelConfigConfigOriginRequestIpRuleArgs =
        TunnelConfigConfigOriginRequestIpRuleArgs(
            allow = allow,
            ports = ports,
            prefix = prefix,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy