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

com.pulumi.cloudflare.kotlin.inputs.TunnelConfigConfigOriginRequestAccessArgs.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.TunnelConfigConfigOriginRequestAccessArgs.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 TunnelConfigConfigOriginRequestAccessArgs(
    public val audTags: Output>? = null,
    public val required: Output? = null,
    public val teamName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.TunnelConfigConfigOriginRequestAccessArgs =
        com.pulumi.cloudflare.inputs.TunnelConfigConfigOriginRequestAccessArgs.builder()
            .audTags(audTags?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .required(required?.applyValue({ args0 -> args0 }))
            .teamName(teamName?.applyValue({ args0 -> args0 })).build()
}

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

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

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

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

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

    /**
     * @param value Audience tags of the access rule.
     */
    @JvmName("nqcybxexcmosfgob")
    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("ggbjkusumlurcrwy")
    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("bkpgblmutpdefiai")
    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("mxptlljfxrkbxgne")
    public suspend fun teamName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.teamName = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy