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

com.pulumi.cloudflare.kotlin.inputs.ApiTokenConditionRequestIpArgs.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.40.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin.inputs

import com.pulumi.cloudflare.inputs.ApiTokenConditionRequestIpArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property ins List of IP addresses or CIDR notation where the token may be used from. If not specified, the token will be valid for all IP addresses.
 * @property notIns List of IP addresses or CIDR notation where the token should not be used from.
 */
public data class ApiTokenConditionRequestIpArgs(
    public val ins: Output>? = null,
    public val notIns: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.ApiTokenConditionRequestIpArgs =
        com.pulumi.cloudflare.inputs.ApiTokenConditionRequestIpArgs.builder()
            .ins(ins?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .notIns(notIns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [ApiTokenConditionRequestIpArgs].
 */
@PulumiTagMarker
public class ApiTokenConditionRequestIpArgsBuilder internal constructor() {
    private var ins: Output>? = null

    private var notIns: Output>? = null

    /**
     * @param value List of IP addresses or CIDR notation where the token may be used from. If not specified, the token will be valid for all IP addresses.
     */
    @JvmName("sjgoaksxbxhwdakw")
    public suspend fun ins(`value`: Output>) {
        this.ins = value
    }

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

    /**
     * @param values List of IP addresses or CIDR notation where the token may be used from. If not specified, the token will be valid for all IP addresses.
     */
    @JvmName("wgrxxbktuhfdbcll")
    public suspend fun ins(values: List>) {
        this.ins = Output.all(values)
    }

    /**
     * @param value List of IP addresses or CIDR notation where the token should not be used from.
     */
    @JvmName("aelparirgypibqju")
    public suspend fun notIns(`value`: Output>) {
        this.notIns = value
    }

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

    /**
     * @param values List of IP addresses or CIDR notation where the token should not be used from.
     */
    @JvmName("yhirduejlpcwahff")
    public suspend fun notIns(values: List>) {
        this.notIns = Output.all(values)
    }

    /**
     * @param value List of IP addresses or CIDR notation where the token may be used from. If not specified, the token will be valid for all IP addresses.
     */
    @JvmName("pikbalntjrhwicfq")
    public suspend fun ins(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ins = mapped
    }

    /**
     * @param values List of IP addresses or CIDR notation where the token may be used from. If not specified, the token will be valid for all IP addresses.
     */
    @JvmName("rnmovrkrhkqkelsp")
    public suspend fun ins(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ins = mapped
    }

    /**
     * @param value List of IP addresses or CIDR notation where the token should not be used from.
     */
    @JvmName("uvcrjeqpunabrhsv")
    public suspend fun notIns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.notIns = mapped
    }

    /**
     * @param values List of IP addresses or CIDR notation where the token should not be used from.
     */
    @JvmName("yqtmoqxglxcfexpv")
    public suspend fun notIns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.notIns = mapped
    }

    internal fun build(): ApiTokenConditionRequestIpArgs = ApiTokenConditionRequestIpArgs(
        ins = ins,
        notIns = notIns,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy