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

com.pulumi.azure.network.kotlin.outputs.VpnSiteLink.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.network.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property bgp A `bgp` block as defined above.
 * > **NOTE:** The `link.bgp` has to be set when the `address_cidrs` isn't specified.
 * @property fqdn The FQDN of this VPN Site Link.
 * @property id The ID of the VPN Site Link.
 * @property ipAddress The IP address of this VPN Site Link.
 * > **NOTE:** Either `fqdn` or `ip_address` should be specified.
 * @property name The name which should be used for this VPN Site Link.
 * @property providerName The name of the physical link at the VPN Site. Example: `ATT`, `Verizon`.
 * @property speedInMbps The speed of the VPN device at the branch location in unit of mbps. Defaults to `0`.
 */
public data class VpnSiteLink(
    public val bgp: VpnSiteLinkBgp? = null,
    public val fqdn: String? = null,
    public val id: String? = null,
    public val ipAddress: String? = null,
    public val name: String,
    public val providerName: String? = null,
    public val speedInMbps: Int? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.network.outputs.VpnSiteLink): VpnSiteLink =
            VpnSiteLink(
                bgp = javaType.bgp().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.azure.network.kotlin.outputs.VpnSiteLinkBgp.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                fqdn = javaType.fqdn().map({ args0 -> args0 }).orElse(null),
                id = javaType.id().map({ args0 -> args0 }).orElse(null),
                ipAddress = javaType.ipAddress().map({ args0 -> args0 }).orElse(null),
                name = javaType.name(),
                providerName = javaType.providerName().map({ args0 -> args0 }).orElse(null),
                speedInMbps = javaType.speedInMbps().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy