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

com.pulumi.awsnative.route53resolver.kotlin.FirewallRuleGroupAssociationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.route53resolver.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.route53resolver.FirewallRuleGroupAssociationArgs.builder
import com.pulumi.awsnative.route53resolver.kotlin.enums.FirewallRuleGroupAssociationMutationProtection
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource schema for AWS::Route53Resolver::FirewallRuleGroupAssociation.
 * @property firewallRuleGroupId FirewallRuleGroupId
 * @property mutationProtection MutationProtectionStatus
 * @property name FirewallRuleGroupAssociationName
 * @property priority Priority
 * @property tags Tags
 * @property vpcId VpcId
 */
public data class FirewallRuleGroupAssociationArgs(
    public val firewallRuleGroupId: Output? = null,
    public val mutationProtection: Output? = null,
    public val name: Output? = null,
    public val priority: Output? = null,
    public val tags: Output>? = null,
    public val vpcId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.route53resolver.FirewallRuleGroupAssociationArgs =
        com.pulumi.awsnative.route53resolver.FirewallRuleGroupAssociationArgs.builder()
            .firewallRuleGroupId(firewallRuleGroupId?.applyValue({ args0 -> args0 }))
            .mutationProtection(
                mutationProtection?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .name(name?.applyValue({ args0 -> args0 }))
            .priority(priority?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .vpcId(vpcId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [FirewallRuleGroupAssociationArgs].
 */
@PulumiTagMarker
public class FirewallRuleGroupAssociationArgsBuilder internal constructor() {
    private var firewallRuleGroupId: Output? = null

    private var mutationProtection: Output? = null

    private var name: Output? = null

    private var priority: Output? = null

    private var tags: Output>? = null

    private var vpcId: Output? = null

    /**
     * @param value FirewallRuleGroupId
     */
    @JvmName("ervghcvscwxtdxem")
    public suspend fun firewallRuleGroupId(`value`: Output) {
        this.firewallRuleGroupId = value
    }

    /**
     * @param value MutationProtectionStatus
     */
    @JvmName("vawiemifewevrrqp")
    public suspend fun mutationProtection(`value`: Output) {
        this.mutationProtection = value
    }

    /**
     * @param value FirewallRuleGroupAssociationName
     */
    @JvmName("fsprkhbypjsqljut")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Priority
     */
    @JvmName("jlbtlewqawvomlob")
    public suspend fun priority(`value`: Output) {
        this.priority = value
    }

    /**
     * @param value Tags
     */
    @JvmName("pkyttqvvtpsyfhbw")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values Tags
     */
    @JvmName("djuifvybjcplfcyk")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value VpcId
     */
    @JvmName("ogsxphuhpkphxild")
    public suspend fun vpcId(`value`: Output) {
        this.vpcId = value
    }

    /**
     * @param value FirewallRuleGroupId
     */
    @JvmName("lmtunsysqhonjyyp")
    public suspend fun firewallRuleGroupId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.firewallRuleGroupId = mapped
    }

    /**
     * @param value MutationProtectionStatus
     */
    @JvmName("searffepeapppkwg")
    public suspend fun mutationProtection(`value`: FirewallRuleGroupAssociationMutationProtection?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mutationProtection = mapped
    }

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

    /**
     * @param value Priority
     */
    @JvmName("ngrugulvhvbibjpf")
    public suspend fun priority(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.priority = mapped
    }

    /**
     * @param value Tags
     */
    @JvmName("datialuerodjcaki")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Tags
     */
    @JvmName("lftsfjccagfouvfy")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Tags
     */
    @JvmName("pkvgvluylbvajnic")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Tags
     */
    @JvmName("papfctlywgsefvmc")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Tags
     */
    @JvmName("vdtbyrqjrhlmywjc")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value VpcId
     */
    @JvmName("nfnilffbufxijajd")
    public suspend fun vpcId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpcId = mapped
    }

    internal fun build(): FirewallRuleGroupAssociationArgs = FirewallRuleGroupAssociationArgs(
        firewallRuleGroupId = firewallRuleGroupId,
        mutationProtection = mutationProtection,
        name = name,
        priority = priority,
        tags = tags,
        vpcId = vpcId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy