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

com.pulumi.cloudflare.kotlin.inputs.TunnelConfigConfigIngressRuleOriginRequestIpRuleArgs.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.

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>) {
        this.ports = Output.all(values)
    }

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

    /**
     * @param value Whether to allow the IP prefix.
     */
    @JvmName("mqmlktcaqcktsudw")
    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("jlwidedhbhlhpftm")
    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("pwqfaoksmnuxgond")
    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("jqsrprgauwlmawru")
    public suspend fun prefix(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.prefix = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy