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

com.pulumi.cloudflare.kotlin.inputs.TunnelConfigConfigIngressRuleOriginRequestAccessArgs.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.TunnelConfigConfigIngressRuleOriginRequestAccessArgs.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.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property audTags Audience tags of the access rule.
 * @property required Whether the access rule is required.
 * @property teamName Name of the team to which the access rule applies.
 */
public data class TunnelConfigConfigIngressRuleOriginRequestAccessArgs(
    public val audTags: Output>? = null,
    public val required: Output? = null,
    public val teamName: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.TunnelConfigConfigIngressRuleOriginRequestAccessArgs =
        com.pulumi.cloudflare.inputs.TunnelConfigConfigIngressRuleOriginRequestAccessArgs.builder()
            .audTags(audTags?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .required(required?.applyValue({ args0 -> args0 }))
            .teamName(teamName?.applyValue({ args0 -> args0 })).build()
}

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

    private var required: Output? = null

    private var teamName: Output? = null

    /**
     * @param value Audience tags of the access rule.
     */
    @JvmName("anvyfeqxblxjqsqu")
    public suspend fun audTags(`value`: Output>) {
        this.audTags = value
    }

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

    /**
     * @param values Audience tags of the access rule.
     */
    @JvmName("qrsevkvwdyuldqyt")
    public suspend fun audTags(values: List>) {
        this.audTags = Output.all(values)
    }

    /**
     * @param value Whether the access rule is required.
     */
    @JvmName("awfngscsyugtyksu")
    public suspend fun required(`value`: Output) {
        this.required = value
    }

    /**
     * @param value Name of the team to which the access rule applies.
     */
    @JvmName("dlcegywqqyctykpr")
    public suspend fun teamName(`value`: Output) {
        this.teamName = value
    }

    /**
     * @param value Audience tags of the access rule.
     */
    @JvmName("nydxuskteefgeamc")
    public suspend fun audTags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.audTags = mapped
    }

    /**
     * @param values Audience tags of the access rule.
     */
    @JvmName("ughovngwxfoewtvg")
    public suspend fun audTags(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.audTags = mapped
    }

    /**
     * @param value Whether the access rule is required.
     */
    @JvmName("saqpfmnabikpaacj")
    public suspend fun required(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.required = mapped
    }

    /**
     * @param value Name of the team to which the access rule applies.
     */
    @JvmName("ueudqhamimrlmxuy")
    public suspend fun teamName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.teamName = mapped
    }

    internal fun build(): TunnelConfigConfigIngressRuleOriginRequestAccessArgs =
        TunnelConfigConfigIngressRuleOriginRequestAccessArgs(
            audTags = audTags,
            required = required,
            teamName = teamName,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy