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

com.pulumi.azure.paloalto.kotlin.inputs.NextGenerationFirewallVirtualNetworkLocalRulestackDestinationNatArgs.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: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.paloalto.kotlin.inputs

import com.pulumi.azure.paloalto.inputs.NextGenerationFirewallVirtualNetworkLocalRulestackDestinationNatArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property backendConfig A `backend_config` block as defined above.
 * @property frontendConfig A `frontend_config` block as defined below.
 * @property name The name which should be used for this Destination NAT.
 * @property protocol The Protocol for this Destination NAT configuration. Possible values include `TCP` and `UDP`.
 */
public data class NextGenerationFirewallVirtualNetworkLocalRulestackDestinationNatArgs(
    public val backendConfig:
    Output? =
        null,
    public val frontendConfig:
    Output? =
        null,
    public val name: Output,
    public val protocol: Output,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.paloalto.inputs.NextGenerationFirewallVirtualNetworkLocalRulestackDestinationNatArgs =
        com.pulumi.azure.paloalto.inputs.NextGenerationFirewallVirtualNetworkLocalRulestackDestinationNatArgs.builder()
            .backendConfig(backendConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .frontendConfig(frontendConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name.applyValue({ args0 -> args0 }))
            .protocol(protocol.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [NextGenerationFirewallVirtualNetworkLocalRulestackDestinationNatArgs].
 */
@PulumiTagMarker
public class NextGenerationFirewallVirtualNetworkLocalRulestackDestinationNatArgsBuilder internal
constructor() {
    private var backendConfig:
        Output? =
        null

    private var frontendConfig:
        Output? =
        null

    private var name: Output? = null

    private var protocol: Output? = null

    /**
     * @param value A `backend_config` block as defined above.
     */
    @JvmName("rdgnxjomaandivbr")
    public suspend
    fun backendConfig(`value`: Output) {
        this.backendConfig = value
    }

    /**
     * @param value A `frontend_config` block as defined below.
     */
    @JvmName("ijvvjsnauafegawo")
    public suspend
    fun frontendConfig(`value`: Output) {
        this.frontendConfig = value
    }

    /**
     * @param value The name which should be used for this Destination NAT.
     */
    @JvmName("ukbsfupjhcxlbycv")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The Protocol for this Destination NAT configuration. Possible values include `TCP` and `UDP`.
     */
    @JvmName("ahbldiuilihjhwjq")
    public suspend fun protocol(`value`: Output) {
        this.protocol = value
    }

    /**
     * @param value A `backend_config` block as defined above.
     */
    @JvmName("ausvfmoxpqsjtftl")
    public suspend
    fun backendConfig(`value`: NextGenerationFirewallVirtualNetworkLocalRulestackDestinationNatBackendConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.backendConfig = mapped
    }

    /**
     * @param argument A `backend_config` block as defined above.
     */
    @JvmName("depgblphayxjqumg")
    public suspend
    fun backendConfig(argument: suspend NextGenerationFirewallVirtualNetworkLocalRulestackDestinationNatBackendConfigArgsBuilder.() -> Unit) {
        val toBeMapped =
            NextGenerationFirewallVirtualNetworkLocalRulestackDestinationNatBackendConfigArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.backendConfig = mapped
    }

    /**
     * @param value A `frontend_config` block as defined below.
     */
    @JvmName("bfvyakijmddwxnha")
    public suspend
    fun frontendConfig(`value`: NextGenerationFirewallVirtualNetworkLocalRulestackDestinationNatFrontendConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.frontendConfig = mapped
    }

    /**
     * @param argument A `frontend_config` block as defined below.
     */
    @JvmName("iysddretmhnsmrln")
    public suspend
    fun frontendConfig(argument: suspend NextGenerationFirewallVirtualNetworkLocalRulestackDestinationNatFrontendConfigArgsBuilder.() -> Unit) {
        val toBeMapped =
            NextGenerationFirewallVirtualNetworkLocalRulestackDestinationNatFrontendConfigArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.frontendConfig = mapped
    }

    /**
     * @param value The name which should be used for this Destination NAT.
     */
    @JvmName("xterqklrkjdpjhpo")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The Protocol for this Destination NAT configuration. Possible values include `TCP` and `UDP`.
     */
    @JvmName("pgnrekolhdgyxpdq")
    public suspend fun protocol(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.protocol = mapped
    }

    internal fun build(): NextGenerationFirewallVirtualNetworkLocalRulestackDestinationNatArgs =
        NextGenerationFirewallVirtualNetworkLocalRulestackDestinationNatArgs(
            backendConfig = backendConfig,
            frontendConfig = frontendConfig,
            name = name ?: throw PulumiNullFieldException("name"),
            protocol = protocol ?: throw PulumiNullFieldException("protocol"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy