com.pulumi.gcp.compute.kotlin.inputs.ExternalVpnGatewayInterfaceArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.compute.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.ExternalVpnGatewayInterfaceArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property id The numeric ID for this interface. Allowed values are based on the redundancy type
* of this external VPN gateway
* * `0 - SINGLE_IP_INTERNALLY_REDUNDANT`
* * `0, 1 - TWO_IPS_REDUNDANCY`
* * `0, 1, 2, 3 - FOUR_IPS_REDUNDANCY`
* @property ipAddress IP address of the interface in the external VPN gateway.
* Only IPv4 is supported. This IP address can be either from
* your on-premise gateway or another Cloud provider's VPN gateway,
* it cannot be an IP address from Google Compute Engine.
*/
public data class ExternalVpnGatewayInterfaceArgs(
public val id: Output? = null,
public val ipAddress: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.ExternalVpnGatewayInterfaceArgs =
com.pulumi.gcp.compute.inputs.ExternalVpnGatewayInterfaceArgs.builder()
.id(id?.applyValue({ args0 -> args0 }))
.ipAddress(ipAddress?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ExternalVpnGatewayInterfaceArgs].
*/
@PulumiTagMarker
public class ExternalVpnGatewayInterfaceArgsBuilder internal constructor() {
private var id: Output? = null
private var ipAddress: Output? = null
/**
* @param value The numeric ID for this interface. Allowed values are based on the redundancy type
* of this external VPN gateway
* * `0 - SINGLE_IP_INTERNALLY_REDUNDANT`
* * `0, 1 - TWO_IPS_REDUNDANCY`
* * `0, 1, 2, 3 - FOUR_IPS_REDUNDANCY`
*/
@JvmName("xltedwnvkerawfln")
public suspend fun id(`value`: Output) {
this.id = value
}
/**
* @param value IP address of the interface in the external VPN gateway.
* Only IPv4 is supported. This IP address can be either from
* your on-premise gateway or another Cloud provider's VPN gateway,
* it cannot be an IP address from Google Compute Engine.
*/
@JvmName("mqkidfbdtxgnjawl")
public suspend fun ipAddress(`value`: Output) {
this.ipAddress = value
}
/**
* @param value The numeric ID for this interface. Allowed values are based on the redundancy type
* of this external VPN gateway
* * `0 - SINGLE_IP_INTERNALLY_REDUNDANT`
* * `0, 1 - TWO_IPS_REDUNDANCY`
* * `0, 1, 2, 3 - FOUR_IPS_REDUNDANCY`
*/
@JvmName("hwfixhhsysnkgkpw")
public suspend fun id(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.id = mapped
}
/**
* @param value IP address of the interface in the external VPN gateway.
* Only IPv4 is supported. This IP address can be either from
* your on-premise gateway or another Cloud provider's VPN gateway,
* it cannot be an IP address from Google Compute Engine.
*/
@JvmName("kgjfnekinfgxhfdf")
public suspend fun ipAddress(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.ipAddress = mapped
}
internal fun build(): ExternalVpnGatewayInterfaceArgs = ExternalVpnGatewayInterfaceArgs(
id = id,
ipAddress = ipAddress,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy