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

com.pulumi.azure.paloalto.kotlin.NextGenerationFirewallVirtualHubPanorama.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

import com.pulumi.azure.paloalto.kotlin.outputs.NextGenerationFirewallVirtualHubPanoramaDestinationNat
import com.pulumi.azure.paloalto.kotlin.outputs.NextGenerationFirewallVirtualHubPanoramaDnsSettings
import com.pulumi.azure.paloalto.kotlin.outputs.NextGenerationFirewallVirtualHubPanoramaNetworkProfile
import com.pulumi.azure.paloalto.kotlin.outputs.NextGenerationFirewallVirtualHubPanoramaPanorama
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import com.pulumi.azure.paloalto.kotlin.outputs.NextGenerationFirewallVirtualHubPanoramaDestinationNat.Companion.toKotlin as nextGenerationFirewallVirtualHubPanoramaDestinationNatToKotlin
import com.pulumi.azure.paloalto.kotlin.outputs.NextGenerationFirewallVirtualHubPanoramaDnsSettings.Companion.toKotlin as nextGenerationFirewallVirtualHubPanoramaDnsSettingsToKotlin
import com.pulumi.azure.paloalto.kotlin.outputs.NextGenerationFirewallVirtualHubPanoramaNetworkProfile.Companion.toKotlin as nextGenerationFirewallVirtualHubPanoramaNetworkProfileToKotlin
import com.pulumi.azure.paloalto.kotlin.outputs.NextGenerationFirewallVirtualHubPanoramaPanorama.Companion.toKotlin as nextGenerationFirewallVirtualHubPanoramaPanoramaToKotlin

/**
 * Builder for [NextGenerationFirewallVirtualHubPanorama].
 */
@PulumiTagMarker
public class NextGenerationFirewallVirtualHubPanoramaResourceBuilder internal constructor() {
    public var name: String? = null

    public var args: NextGenerationFirewallVirtualHubPanoramaArgs =
        NextGenerationFirewallVirtualHubPanoramaArgs()

    public var opts: CustomResourceOptions = CustomResourceOptions()

    /**
     * @param name The _unique_ name of the resulting resource.
     */
    public fun name(`value`: String) {
        this.name = value
    }

    /**
     * @param block The arguments to use to populate this resource's properties.
     */
    public suspend
    fun args(block: suspend NextGenerationFirewallVirtualHubPanoramaArgsBuilder.() -> Unit) {
        val builder = NextGenerationFirewallVirtualHubPanoramaArgsBuilder()
        block(builder)
        this.args = builder.build()
    }

    /**
     * @param block A bag of options that control this resource's behavior.
     */
    public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
        this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
    }

    internal fun build(): NextGenerationFirewallVirtualHubPanorama {
        val builtJavaResource =
            com.pulumi.azure.paloalto.NextGenerationFirewallVirtualHubPanorama(
                this.name,
                this.args.toJava(),
                this.opts.toJava(),
            )
        return NextGenerationFirewallVirtualHubPanorama(builtJavaResource)
    }
}

public class NextGenerationFirewallVirtualHubPanorama internal constructor(
    override val javaResource: com.pulumi.azure.paloalto.NextGenerationFirewallVirtualHubPanorama,
) : KotlinCustomResource(javaResource, NextGenerationFirewallVirtualHubPanoramaMapper) {
    public val destinationNats: Output>?
        get() = javaResource.destinationNats().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 ->
                        nextGenerationFirewallVirtualHubPanoramaDestinationNatToKotlin(args0)
                    })
                })
            }).orElse(null)
        })

    public val dnsSettings: Output?
        get() = javaResource.dnsSettings().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 ->
                    nextGenerationFirewallVirtualHubPanoramaDnsSettingsToKotlin(args0)
                })
            }).orElse(null)
        })

    public val location: Output
        get() = javaResource.location().applyValue({ args0 -> args0 })

    public val name: Output
        get() = javaResource.name().applyValue({ args0 -> args0 })

    public val networkProfile: Output
        get() = javaResource.networkProfile().applyValue({ args0 ->
            args0.let({ args0 ->
                nextGenerationFirewallVirtualHubPanoramaNetworkProfileToKotlin(args0)
            })
        })

    public val panoramaBase64Config: Output
        get() = javaResource.panoramaBase64Config().applyValue({ args0 -> args0 })

    public val panoramas: Output>
        get() = javaResource.panoramas().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 ->
                    nextGenerationFirewallVirtualHubPanoramaPanoramaToKotlin(args0)
                })
            })
        })

    public val resourceGroupName: Output
        get() = javaResource.resourceGroupName().applyValue({ args0 -> args0 })

    public val tags: Output>?
        get() = javaResource.tags().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.map({ args0 ->
                    args0.key.to(args0.value)
                }).toMap()
            }).orElse(null)
        })
}

public object NextGenerationFirewallVirtualHubPanoramaMapper :
    ResourceMapper {
    override fun supportsMappingOfType(javaResource: Resource): Boolean =
        com.pulumi.azure.paloalto.NextGenerationFirewallVirtualHubPanorama::class == javaResource::class

    override fun map(javaResource: Resource): NextGenerationFirewallVirtualHubPanorama =
        NextGenerationFirewallVirtualHubPanorama(
            javaResource as
                com.pulumi.azure.paloalto.NextGenerationFirewallVirtualHubPanorama,
        )
}

/**
 * @see [NextGenerationFirewallVirtualHubPanorama].
 * @param name The _unique_ name of the resulting resource.
 * @param block Builder for [NextGenerationFirewallVirtualHubPanorama].
 */
public suspend fun nextGenerationFirewallVirtualHubPanorama(
    name: String,
    block: suspend NextGenerationFirewallVirtualHubPanoramaResourceBuilder.() -> Unit,
):
    NextGenerationFirewallVirtualHubPanorama {
    val builder = NextGenerationFirewallVirtualHubPanoramaResourceBuilder()
    builder.name(name)
    block(builder)
    return builder.build()
}

/**
 * @see [NextGenerationFirewallVirtualHubPanorama].
 * @param name The _unique_ name of the resulting resource.
 */
public fun nextGenerationFirewallVirtualHubPanorama(name: String):
    NextGenerationFirewallVirtualHubPanorama {
    val builder = NextGenerationFirewallVirtualHubPanoramaResourceBuilder()
    builder.name(name)
    return builder.build()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy