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

com.pulumi.gcp.compute.kotlin.outputs.GetHcVpnGatewayResult.kt Maven / Gradle / Ivy

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

package com.pulumi.gcp.compute.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 * A collection of values returned by getHcVpnGateway.
 * @property description
 * @property gatewayIpVersion
 * @property id The provider-assigned unique ID for this managed resource.
 * @property name
 * @property network
 * @property project
 * @property region
 * @property selfLink
 * @property stackType
 * @property vpnInterfaces
 */
public data class GetHcVpnGatewayResult(
    public val description: String,
    public val gatewayIpVersion: String,
    public val id: String,
    public val name: String,
    public val network: String,
    public val project: String? = null,
    public val region: String? = null,
    public val selfLink: String,
    public val stackType: String,
    public val vpnInterfaces: List,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.GetHcVpnGatewayResult): GetHcVpnGatewayResult = GetHcVpnGatewayResult(
            description = javaType.description(),
            gatewayIpVersion = javaType.gatewayIpVersion(),
            id = javaType.id(),
            name = javaType.name(),
            network = javaType.network(),
            project = javaType.project().map({ args0 -> args0 }).orElse(null),
            region = javaType.region().map({ args0 -> args0 }).orElse(null),
            selfLink = javaType.selfLink(),
            stackType = javaType.stackType(),
            vpnInterfaces = javaType.vpnInterfaces().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.compute.kotlin.outputs.GetHcVpnGatewayVpnInterface.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy