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

com.pulumi.awsnative.wafv2.kotlin.inputs.GetRegexPatternSetPlainArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.wafv2.kotlin.inputs

import com.pulumi.awsnative.wafv2.inputs.GetRegexPatternSetPlainArgs.builder
import com.pulumi.awsnative.wafv2.kotlin.enums.RegexPatternSetScope
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property id Id of the RegexPatternSet
 * @property name Name of the RegexPatternSet.
 * @property scope Use CLOUDFRONT for CloudFront RegexPatternSet, use REGIONAL for Application Load Balancer and API Gateway.
 */
public data class GetRegexPatternSetPlainArgs(
    public val id: String,
    public val name: String,
    public val scope: RegexPatternSetScope,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.wafv2.inputs.GetRegexPatternSetPlainArgs =
        com.pulumi.awsnative.wafv2.inputs.GetRegexPatternSetPlainArgs.builder()
            .id(id.let({ args0 -> args0 }))
            .name(name.let({ args0 -> args0 }))
            .scope(scope.let({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [GetRegexPatternSetPlainArgs].
 */
@PulumiTagMarker
public class GetRegexPatternSetPlainArgsBuilder internal constructor() {
    private var id: String? = null

    private var name: String? = null

    private var scope: RegexPatternSetScope? = null

    /**
     * @param value Id of the RegexPatternSet
     */
    @JvmName("habiexnpxwkmptqt")
    public suspend fun id(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.id = mapped
    }

    /**
     * @param value Name of the RegexPatternSet.
     */
    @JvmName("wdeiasrkpavufguj")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.name = mapped
    }

    /**
     * @param value Use CLOUDFRONT for CloudFront RegexPatternSet, use REGIONAL for Application Load Balancer and API Gateway.
     */
    @JvmName("rehqljewwfrcwkej")
    public suspend fun scope(`value`: RegexPatternSetScope) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.scope = mapped
    }

    internal fun build(): GetRegexPatternSetPlainArgs = GetRegexPatternSetPlainArgs(
        id = id ?: throw PulumiNullFieldException("id"),
        name = name ?: throw PulumiNullFieldException("name"),
        scope = scope ?: throw PulumiNullFieldException("scope"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy