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

com.pulumi.awsnative.fms.kotlin.inputs.PolicyNetworkAclCommonPolicyArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.fms.kotlin.inputs

import com.pulumi.awsnative.fms.inputs.PolicyNetworkAclCommonPolicyArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Network ACL common policy.
 * @property networkAclEntrySet The definition of the first and last rules for the network ACL policy.
 */
public data class PolicyNetworkAclCommonPolicyArgs(
    public val networkAclEntrySet: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.fms.inputs.PolicyNetworkAclCommonPolicyArgs =
        com.pulumi.awsnative.fms.inputs.PolicyNetworkAclCommonPolicyArgs.builder()
            .networkAclEntrySet(
                networkAclEntrySet.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [PolicyNetworkAclCommonPolicyArgs].
 */
@PulumiTagMarker
public class PolicyNetworkAclCommonPolicyArgsBuilder internal constructor() {
    private var networkAclEntrySet: Output? = null

    /**
     * @param value The definition of the first and last rules for the network ACL policy.
     */
    @JvmName("rdmwjxxyrjndqcsa")
    public suspend fun networkAclEntrySet(`value`: Output) {
        this.networkAclEntrySet = value
    }

    /**
     * @param value The definition of the first and last rules for the network ACL policy.
     */
    @JvmName("fpbrctlixsvmgcpr")
    public suspend fun networkAclEntrySet(`value`: PolicyNetworkAclEntrySetArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.networkAclEntrySet = mapped
    }

    /**
     * @param argument The definition of the first and last rules for the network ACL policy.
     */
    @JvmName("lkncivgrvxdfmrxd")
    public suspend fun networkAclEntrySet(argument: suspend PolicyNetworkAclEntrySetArgsBuilder.() -> Unit) {
        val toBeMapped = PolicyNetworkAclEntrySetArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.networkAclEntrySet = mapped
    }

    internal fun build(): PolicyNetworkAclCommonPolicyArgs = PolicyNetworkAclCommonPolicyArgs(
        networkAclEntrySet = networkAclEntrySet ?: throw PulumiNullFieldException("networkAclEntrySet"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy